/* 橙子文游主界面 App
   目标：完全采用 demo 的手机壳、雾蓝色、玻璃卡片和底部 tab 结构。 */

:root {
  --app-bg: #eaf1f5;
  --phone-bg: #f7f9fa;
  --paper: #fcfbf6;
  --card: rgba(255, 255, 255, 0.78);
  --solid: #ffffff;
  --text: #263238;
  --muted: #6f7d86;
  --faint: #9aa7ad;
  --primary: #6e9db7;
  --primary-deep: #3f6f8a;
  --primary-soft: #e6f0f5;
  --lavender: #b9aecf;
  --warm: #c6a36a;
  --library-bg: #eef7ff;
  --library-surface: #ffffff;
  --library-blue: #7ea7ef;
  --library-blue-deep: #416ea9;
  --library-blue-soft: #e4f1ff;
  --library-orange: #f6b15d;
  --library-orange-soft: #fff7ec;
  --library-ink: #243a55;
  --library-muted: #66819f;
  --library-line: rgba(126, 167, 239, 0.28);
  --premium-bg: #f4f8ff;
  --premium-ink: #102d5c;
  --premium-muted: #60789f;
  --premium-gold: #d99533;
  --premium-gold-soft: #fff2d8;
  --premium-line: rgba(80, 121, 179, 0.2);
  --line: #dce6e8;
  --shadow: 0 18px 45px rgba(52, 81, 96, 0.15);
  --small-shadow: 0 10px 28px rgba(52, 81, 96, 0.1);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 28%),
    radial-gradient(circle at 78% 12%, color-mix(in srgb, var(--warm) 14%, transparent), transparent 26%),
    linear-gradient(135deg, #f5f8fa 0%, var(--app-bg) 46%, #f7efe8 100%);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.phone-shell {
  width: min(100vw, 448px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 12px;
}

.phone-app {
  position: relative;
  min-height: calc(100vh - 24px);
  min-height: calc(100dvh - 24px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 34px;
  background:
    radial-gradient(circle at 84% 12%, rgba(185, 174, 207, 0.28), transparent 20%),
    radial-gradient(circle at 16% 36%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--phone-bg));
  box-shadow: var(--shadow);
}

.phone-app::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, color-mix(in srgb, var(--primary) 20%, transparent) 1px, transparent 1.5px),
    radial-gradient(circle, color-mix(in srgb, var(--warm) 16%, transparent) 1px, transparent 1.5px);
  background-position:
    28px 84px,
    120px 180px;
  background-size:
    120px 180px,
    150px 210px;
  opacity: 0.42;
}

.screen {
  position: relative;
  z-index: 2;
  display: none;
  height: calc(100vh - 24px);
  height: calc(100dvh - 24px);
  min-height: 700px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 16px 96px;
  scrollbar-width: none;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.screen::-webkit-scrollbar,
.app-panel::-webkit-scrollbar,
.horizontal-row::-webkit-scrollbar,
.filter-chips::-webkit-scrollbar {
  display: none;
}

.screen--active {
  display: block;
}

.app-panel {
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.top-brand {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  place-items: center;
  min-height: 72px;
  margin: 0 -16px;
  padding: 14px 16px 13px;
  border-bottom: 1px solid rgba(220, 230, 232, 0.72);
  background: rgba(247, 249, 250, 0.88);
  text-align: center;
  backdrop-filter: blur(18px);
}

.top-brand__copy {
  min-width: 0;
}

.top-brand__spacer {
  width: 42px;
  height: 42px;
}

.top-brand__notice {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-deep);
}

.top-brand__notice:hover,
.top-brand__notice:focus-visible {
  background: var(--primary-soft);
  outline: none;
}

.top-brand__notice.has-unread,
.library-hero__notice.has-unread {
  border-color: rgba(224, 72, 72, 0.46);
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.top-brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.top-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.top-brand__notice .icon-svg {
  width: 21px;
  height: 21px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.section-title span {
  color: var(--muted);
  font-size: 12px;
}

.section-title__action {
  min-height: 34px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 900;
}

.soft-panel {
  border: 1px solid rgba(220, 230, 232, 0.8);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--small-shadow);
  backdrop-filter: blur(18px);
}

.primary-button,
.ghost-button,
.mini-button,
.chip,
.tabbar__item,
.app-tile,
.creator-option,
.workshop-entry,
.creator-work-card,
.shop-plan,
.game-card,
.quick-card,
.top-brand__notice {
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button:active,
.ghost-button:active,
.mini-button:active,
.chip:active,
.tabbar__item:active,
.app-tile:active,
.creator-option:active,
.workshop-entry:active,
.creator-work-card:active,
.shop-plan:active,
.game-card:active,
.quick-card:active,
.top-brand__notice:active {
  transform: translateY(1px);
}

.primary-button,
.ghost-button,
.mini-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}

.primary-button {
  border: 0;
  padding: 0 18px;
  background: linear-gradient(135deg, var(--primary), #86b6c8);
  color: var(--solid);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--primary) 25%, transparent);
}

.ghost-button {
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  padding: 0 15px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-deep);
}

.mini-button {
  min-height: 36px;
  padding: 0 13px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 13px;
}

.mini-button--primary {
  background: #263238;
  color: #ffffff;
}

.field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* iOS Safari 聚焦小于 16px 的表单控件时会自动放大页面。 */
input,
textarea,
select {
  font-size: 16px;
  line-height: 1.35;
}

input,
textarea {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  outline: none;
}

input {
  height: 42px;
  padding: 0 13px;
}

textarea {
  min-height: 90px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: color-mix(in srgb, var(--primary) 58%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent);
}

.horizontal-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.game-library {
  display: grid;
  gap: 10px;
  padding: 9px 0 16px;
}

#screenGame {
  padding: 0 14px calc(104px + env(safe-area-inset-bottom));
  background: var(--library-bg);
}

#screenPremium {
  padding: 0 14px calc(104px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 232, 192, 0.72), transparent 22%),
    radial-gradient(circle at 14% 32%, rgba(207, 226, 255, 0.78), transparent 26%),
    var(--premium-bg);
}

.premium-page {
  display: grid;
  gap: 22px;
  padding: 34px 0 18px;
}

.premium-page__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 3px;
}

.premium-page__header h1 {
  margin: 0;
  color: var(--premium-ink);
  font-family: "KaiTi", "STKaiti", "SimSun", "Microsoft YaHei", serif;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
}

.premium-page__header p {
  margin: 8px 0 0;
  color: var(--premium-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.premium-info-button,
.premium-more-link,
.premium-text-button,
.premium-card-button,
.premium-primary-button,
.premium-icon-button,
.premium-wishlist-button {
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.premium-info-button:active,
.premium-more-link:active,
.premium-text-button:active,
.premium-card-button:active,
.premium-primary-button:active,
.premium-icon-button:active,
.premium-wishlist-button:active,
.premium-pass-card:active {
  transform: translateY(1px);
}

.premium-info-button,
.premium-more-link,
.premium-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--premium-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #315b93;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.premium-info-button {
  min-height: 38px;
  padding: 0 13px;
}

.premium-info-button .icon-svg,
.premium-more-link .icon-svg,
.premium-text-button .icon-svg {
  width: 15px;
  height: 15px;
}

.premium-featured-card {
  position: relative;
  display: grid;
  gap: 9px;
  width: 100%;
  max-width: 100%;
  min-height: 264px;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 24px 24px 22px;
  background: #f7fbff;
  box-shadow: 0 14px 30px rgba(55, 92, 139, 0.12);
}

.premium-featured-card::after,
.premium-detail-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.08) 76%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(244, 248, 255, 0.82));
}

.premium-featured-card__media,
.premium-detail-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 75% 26%, rgba(255, 220, 164, 0.82), transparent 24%),
    radial-gradient(circle at 18% 34%, rgba(209, 229, 255, 0.8), transparent 28%),
    linear-gradient(135deg, #f9fbff, #eaf3ff 48%, #fff5e3);
  background-position: right center;
  background-size: cover;
}

.premium-media--empty span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.76);
  color: #7890ad;
  font-size: 11px;
  font-weight: 900;
}

.premium-featured-card__content,
.premium-featured-card__actions {
  position: relative;
  z-index: 2;
}

.premium-featured-card__content {
  display: grid;
  max-width: min(86%, 520px);
  align-content: start;
  gap: 8px;
}

.premium-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border: 1px solid rgba(217, 149, 51, 0.36);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 242, 216, 0.88);
  color: #b76419;
  font-size: 12px;
  font-weight: 900;
}

.premium-badge .icon-svg {
  width: 14px;
  height: 14px;
}

.premium-badge--solid {
  background: rgba(255, 242, 216, 0.96);
}

.premium-featured-card h2,
.premium-detail-hero h1 {
  margin: 0;
  color: var(--premium-ink);
  font-family: "KaiTi", "STKaiti", "SimSun", "Microsoft YaHei", serif;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

.premium-featured-card h2 {
  font-size: 34px;
  line-height: 1.12;
}

.premium-subtitle,
.premium-desc,
.premium-detail-hero p {
  color: var(--premium-muted);
  font-weight: 700;
}

.premium-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.premium-desc {
  max-width: 32ch;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.65;
}

.premium-featured-card .premium-desc {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.premium-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.premium-tag {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border: 1px solid rgba(217, 149, 51, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 242, 216, 0.78);
  color: #a86118;
  font-size: 12px;
  font-weight: 900;
}

.premium-tag-row--compact {
  gap: 5px;
  max-height: 24px;
  overflow: hidden;
}

.premium-tag-row--compact .premium-tag {
  min-height: 22px;
  padding: 0 7px;
  font-size: 10px;
}

.premium-preview-thumb {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.premium-preview-thumb__image {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(20, 48, 84, 0.08), rgba(217, 149, 51, 0.12)),
    #edf5ff;
  background-position: center;
  background-size: cover;
  box-shadow: 0 7px 14px rgba(50, 82, 120, 0.12);
}

.premium-preview-thumb figcaption {
  color: #3769a7;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.premium-featured-card__actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 4px 0 0;
  width: min(100%, 360px);
}

.premium-featured-card__actions--single {
  grid-template-columns: 1fr;
  width: min(100%, 232px);
}

.premium-primary-button,
.premium-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe8b8, #ffc56d);
  color: #7d4612;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(205, 132, 42, 0.18);
}

.premium-primary-button {
  min-height: 48px;
  padding: 0 22px;
  font-size: 16px;
}

.premium-primary-button--wide {
  width: 100%;
}

.premium-text-button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #4e6590;
}

.premium-section-title {
  margin: 0 3px 12px;
}

.premium-section-title h2,
.premium-detail-section__title h2 {
  color: var(--premium-ink);
  font-family: "KaiTi", "STKaiti", "SimSun", "Microsoft YaHei", serif;
  font-size: 24px;
  letter-spacing: 0;
}

.premium-more-link {
  min-height: 32px;
  border: 0;
  padding: 0 2px;
  background: transparent;
}

.premium-more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px 10px;
}

.premium-pass-card {
  border-color: rgba(126, 167, 239, 0.2);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(76, 111, 158, 0.1);
}

.premium-pass-card__media-button,
.premium-pass-card__body-button {
  width: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.premium-pass-card__media-button {
  display: block;
}

.premium-pass-card__body-button {
  display: block;
  flex: 1;
}

.premium-pass-cover {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 45, 92, 0.14), rgba(217, 149, 51, 0.16)),
    #e9f3ff;
  background-position: center;
  background-size: cover;
}

.premium-pass-cover--empty {
  display: grid;
  place-items: center;
}

.premium-pass-cover--empty span {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.86);
  color: #7890ad;
  font-size: 11px;
  font-weight: 900;
}

.premium-pass-card .game-card__body {
  min-height: 118px;
}

.premium-pass-card .game-card__controls {
  margin-top: 6px;
}

.premium-pass-card .tag-line {
  max-height: 24px;
  overflow: hidden;
}

.premium-pass-card .game-stat .icon-svg {
  color: #f6a21f;
  fill: currentColor;
}

.premium-card-button {
  min-height: 34px;
  margin-top: 2px;
  font-size: 13px;
}

.premium-pass-card .premium-card-button {
  min-width: 58px;
  min-height: 28px;
  margin-top: 0;
  padding: 0 12px;
  font-size: 12px;
  box-shadow: none;
}

.premium-detail-page {
  min-height: 100%;
  margin: 0 -16px;
  padding: 0 14px 34px;
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 232, 192, 0.62), transparent 22%),
    linear-gradient(180deg, #f8fbff, var(--premium-bg));
}

.premium-detail-topbar {
  position: sticky;
  top: 0;
  z-index: 7;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 82px;
  margin: 0 -14px 14px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(126, 167, 239, 0.2);
  background: rgba(248, 251, 255, 0.92);
  backdrop-filter: blur(18px);
}

.premium-detail-topbar h2 {
  margin: 0;
  color: var(--premium-ink);
  font-family: "KaiTi", "STKaiti", "SimSun", "Microsoft YaHei", serif;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
}

.premium-icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: #315b93;
}

.premium-icon-button:focus-visible,
.premium-info-button:focus-visible,
.premium-primary-button:focus-visible,
.premium-card-button:focus-visible,
.premium-text-button:focus-visible,
.premium-wishlist-button:focus-visible {
  outline: 2px solid rgba(49, 91, 147, 0.42);
  outline-offset: 2px;
}

.premium-detail-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 264px;
  aspect-ratio: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 20px;
  background: #f7fbff;
  box-shadow: 0 12px 24px rgba(55, 92, 139, 0.11);
}

.premium-detail-hero::after {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.8) 42%, rgba(255, 255, 255, 0.06) 78%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(244, 248, 255, 0.44));
}

.premium-detail-hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: min(86%, 520px);
  gap: 9px;
  padding: 24px 24px 22px;
}

.premium-detail-hero h1 {
  font-size: 34px;
  line-height: 1.12;
}

.premium-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.premium-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 27px;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 242, 216, 0.86);
  color: #a86118;
  font-size: 12px;
  font-weight: 900;
}

.premium-detail-meta .premium-rating {
  background: transparent;
  color: #2f5f9b;
}

.premium-rating .icon-svg {
  width: 16px;
  height: 16px;
  color: #f6a21f;
  fill: currentColor;
}

.premium-detail-hero p {
  max-width: 29ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.premium-detail-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: min(100%, 300px);
  margin-top: 2px;
}

.premium-wishlist-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8b9bb7;
  font-size: 13px;
  font-weight: 900;
  padding: 0 6px;
}

.premium-wishlist-button--active {
  color: #b76419;
}

.premium-wishlist-button .icon-svg {
  width: 19px;
  height: 19px;
}

.premium-detail-section {
  margin-top: 12px;
  border: 1px solid rgba(126, 167, 239, 0.16);
  border-radius: 18px;
  padding: 14px 14px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 20px rgba(76, 111, 158, 0.08);
}

.premium-detail-section__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.premium-detail-section__title h2 {
  margin: 0;
}

.premium-detail-preview-grid,
.premium-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.premium-preview-thumb--portrait .premium-preview-thumb__image {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
}

.premium-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  align-items: center;
  justify-items: center;
  min-width: 0;
  text-align: center;
}

.premium-feature__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(217, 149, 51, 0.18);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.95), transparent 38%),
    linear-gradient(180deg, #fffaf0, #eef6ff);
  color: var(--premium-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-feature__icon .icon-svg {
  width: 22px;
  height: 22px;
}

.premium-feature h3 {
  margin: 0 0 3px;
  color: var(--premium-ink);
  font-size: 14px;
  line-height: 1.25;
}

.premium-feature p {
  margin: 0;
  color: var(--premium-muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.library-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  background: #dbeeff;
  box-shadow: 0 5px 10px rgba(83, 126, 188, 0.1);
}

.library-hero img {
  display: block;
  width: 100%;
  max-height: 150px;
  aspect-ratio: 1920 / 650;
  object-fit: cover;
  object-position: center;
}

.library-hero__notice {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(126, 167, 239, 0.36);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--library-blue-deep);
  box-shadow: 0 6px 12px rgba(65, 110, 169, 0.12);
}

.library-hero__notice .icon-svg {
  width: 19px;
  height: 19px;
}

.library-hero__notice .notification-badge {
  top: -6px;
  right: -6px;
}

.library-access-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  min-height: 48px;
  padding: 4px;
  border: 1px solid rgba(126, 167, 239, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.library-access-switch__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 6px 8px;
  background: transparent;
  color: var(--library-muted);
  text-align: left;
  box-shadow: none;
}

.library-access-switch__icon {
  flex: 0 0 24px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.78);
}

.library-access-switch__icon .icon-svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.library-access-switch__copy,
.library-access-switch__copy span,
.library-access-switch__copy small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-access-switch__copy span {
  color: inherit;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.2;
}

.library-access-switch__copy small {
  margin-top: 2px;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.78;
}

.library-access-switch__button--pass {
  color: #7a5c37;
}

.library-access-switch__button--pass .library-access-switch__icon {
  background: #fff2da;
  color: #d77e15;
}

.library-access-switch__button--free {
  color: #526f97;
}

.library-access-switch__button--free .library-access-switch__icon {
  background: #eaf4ff;
  color: #315f9f;
}

.library-access-switch__button--pass.library-access-switch__button--active {
  border-color: rgba(246, 177, 93, 0.42);
  background: #fff7ec;
  color: #a85f15;
}

.library-access-switch__button--free.library-access-switch__button--active {
  border-color: rgba(126, 167, 239, 0.36);
  background: #f0f7ff;
  color: #315f9f;
}

.library-access-switch__button--active {
  box-shadow: 0 2px 5px rgba(83, 126, 188, 0.08);
}

.library-access-switch__button:focus-visible {
  outline: 2px solid rgba(126, 167, 239, 0.72);
  outline-offset: 2px;
}

.library-tools {
  display: grid;
  gap: 7px;
}

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.library-toolbar--search-active {
  grid-template-columns: minmax(0, 1fr) auto;
}

.library-search {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--library-line);
  border-radius: 13px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--library-muted);
  cursor: text;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.library-search .icon-svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.library-search input {
  height: 36px;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--library-ink);
  font-size: 13px;
  box-shadow: none;
}

.library-search input[readonly] {
  cursor: pointer;
}

.library-search--active {
  border-color: rgba(126, 167, 239, 0.74);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(126, 167, 239, 0.12);
}

.library-search input::placeholder {
  color: #6f89a8;
}

.library-search:focus-within {
  border-color: rgba(126, 167, 239, 0.74);
  box-shadow: 0 0 0 3px rgba(126, 167, 239, 0.16);
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 52px;
  min-height: 38px;
  border: 1px solid var(--library-line);
  border-radius: 13px;
  padding: 0 9px;
  background: var(--library-surface);
  color: var(--library-blue-deep);
  font-size: 12.5px;
  font-weight: 900;
}

.filter-button--active {
  border-color: rgba(242, 155, 66, 0.38);
  background: var(--library-orange-soft);
  color: #b76419;
}

.filter-button .icon-svg {
  width: 15px;
  height: 15px;
}

.search-cancel-button {
  min-height: 38px;
  border: 1px solid var(--library-line);
  border-radius: 13px;
  padding: 0 11px;
  background: var(--library-surface);
  color: var(--library-blue-deep);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.active-filter-bar {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.active-filter-bar::-webkit-scrollbar {
  display: none;
}

.active-filter-pill {
  flex: 0 0 auto;
  min-height: 28px;
  border: 1px solid rgba(242, 155, 66, 0.3);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 247, 236, 0.9);
  color: #a65f17;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.active-filter-pill::after {
  margin-left: 5px;
  content: "×";
}

.quick-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.quick-filter-bar::-webkit-scrollbar {
  display: none;
}

.quick-filter {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--library-muted);
  font-size: 13px;
  font-weight: 900;
}

.quick-filter--active {
  border-color: rgba(242, 155, 66, 0.38);
  background: var(--library-orange-soft);
  color: #b76419;
}

.game-cover {
  background-color: #dbeeff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cover-night {
  background: linear-gradient(135deg, #2b4660, #7a5270);
}

.cover-space {
  background: linear-gradient(135deg, #335a78, #9e8cc8);
}

.cover-xiuxian {
  background-color: #4a5568;
  background-image:
    linear-gradient(180deg, rgba(30, 40, 60, 0.1), rgba(30, 40, 60, 0.3)),
    url("/修仙传.png");
  background-size: cover;
  background-position: center;
}

.cover-sea {
  background: linear-gradient(135deg, #477e8a, #9fc4c2);
}

.cover-starjourney {
  background-color: #526f79;
  background-image: url("data:image/svg+xml,%3Csvg width='560' height='360' viewBox='0 0 560 360' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='560' height='360' fill='%23526f79'/%3E%3Cpath d='M52 78h180M52 108h132M52 138h92M356 96h110M356 122h86' stroke='%23f8faf8' stroke-opacity='.5' stroke-width='3' stroke-linecap='round'/%3E%3Crect x='330' y='76' width='160' height='96' rx='18' fill='%23f8faf8' fill-opacity='.16'/%3E%3Crect x='82' y='202' width='156' height='82' rx='18' fill='%23f8faf8' fill-opacity='.16'/%3E%3Cpath d='M96 226h92M96 250h64' stroke='%23f8faf8' stroke-opacity='.6' stroke-width='3' stroke-linecap='round'/%3E%3Ccircle cx='420' cy='230' r='58' fill='%23b18f83' fill-opacity='.32'/%3E%3Cpath d='M388 230h64M420 198v64' stroke='%23f8faf8' stroke-opacity='.55' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M280 34v292' stroke='%23f8faf8' stroke-opacity='.18' stroke-width='2'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.cover-live-streamer {
  background-color: #2a2520;
  background-image:
    linear-gradient(180deg, rgba(40, 30, 20, 0.1), rgba(40, 30, 20, 0.3)),
    url("/直播神豪.png");
  background-size: cover;
  background-position: center;
}

.cover-kuaichuan {
  background-color: #6b5c8f;
  background-image:
    linear-gradient(180deg, rgba(35, 27, 55, 0.02), rgba(35, 27, 55, 0.26)),
    url("/快穿系统.png");
  background-size: cover;
  background-position: center;
}

.cover-yulequan {
  background-color: #4a3a5c;
  background-image:
    linear-gradient(180deg, rgba(50, 30, 60, 0.1), rgba(50, 30, 60, 0.3)),
    url("/娱乐圈.png");
  background-size: cover;
  background-position: center;
}

.cover-school {
  background: linear-gradient(135deg, #8bb6b0, #d8c28e);
}

.cover-tianju {
  background-color: #4a5a3a;
  background-image:
    linear-gradient(180deg, rgba(40, 50, 30, 0.1), rgba(40, 50, 30, 0.3)),
    url("/古代种田模拟器.png");
  background-size: cover;
  background-position: center;
}

.cover-violet {
  background: linear-gradient(135deg, #706aa7, #b9aecf);
}

.cover-manhuangji {
  background-color: #5a4a3a;
  background-image:
    linear-gradient(180deg, rgba(50, 40, 30, 0.1), rgba(50, 40, 30, 0.3)),
    url("/蛮荒纪.png");
  background-size: cover;
  background-position: center;
}

.cover-nvzu {
  background-color: #5c4a6a;
  background-image:
    linear-gradient(180deg, rgba(60, 40, 70, 0.1), rgba(60, 40, 70, 0.3)),
    url("/女尊世界.png");
  background-size: cover;
  background-position: center;
}

.cover-campus-romance {
  background-color: #4a6a5a;
  background-image:
    linear-gradient(180deg, rgba(40, 60, 50, 0.1), rgba(40, 60, 50, 0.3)),
    url("/校园恋爱.png");
  background-size: cover;
  background-position: center;
}

.cover-letter-for-you {
  background-color: #6a4a7a;
  background-image:
    linear-gradient(180deg, rgba(60, 40, 70, 0.1), rgba(60, 40, 70, 0.3)),
    url("/我在快穿世界收情书.png");
  background-size: cover;
  background-position: center;
}

.cover-saozimoniqi {
  background-color: #8B5A6B;
  background-image:
    linear-gradient(180deg, rgba(80, 40, 50, 0.1), rgba(80, 40, 50, 0.3)),
    url("/嫂子模拟器.png");
  background-size: cover;
  background-position: center;
}

.game-cover__overlay,
.game-cover__title {
  display: none;
}

.filter-drawer {
  display: none;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 12px;
  overflow: hidden;
  border-color: var(--library-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  backdrop-filter: none;
}

.filter-drawer--open {
  display: grid;
  gap: 12px;
}

.filter-row {
  min-width: 0;
  margin-bottom: 0;
}

.filter-row--topics {
  padding-top: 2px;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-row__label {
  margin-bottom: 8px;
  color: var(--library-muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-chips {
  display: flex;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 2px;
}

.filter-row--sort .filter-chips {
  gap: 8px;
}

.filter-row--topics .filter-chips {
  gap: 8px 7px;
}

.chip {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--library-line);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--library-muted);
  font-size: 13px;
  font-weight: 800;
}

.chip--active {
  border-color: rgba(242, 155, 66, 0.38);
  background: var(--library-orange-soft);
  color: #b76419;
}

.game-feed-title {
  margin: 2px 0 11px;
}

.game-feed-title h2 {
  color: var(--library-ink);
  font-size: 18px;
}

.game-feed-title span {
  color: var(--library-muted);
  font-weight: 800;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px 10px;
}

.game-empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  min-height: 112px;
  align-content: center;
  border-color: var(--library-line);
  background: rgba(255, 255, 255, 0.84);
  color: var(--library-ink);
  text-align: center;
}

.game-empty-state strong {
  font-size: 14px;
  line-height: 1.35;
}

.game-empty-state p {
  margin: 0;
  color: var(--library-muted);
  font-size: 12px;
  line-height: 1.45;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(126, 167, 239, 0.16);
  border-radius: 20px;
  background: #ffffff;
  color: var(--library-ink);
  text-align: left;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(83, 126, 188, 0.09);
}

.game-card__media,
.game-card__media-link {
  position: relative;
}

.game-card__media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  min-width: 26px;
  min-height: 26px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(228, 241, 255, 0.78);
  color: var(--library-blue-deep);
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.favorite-button--active {
  background: var(--library-orange-soft);
  color: #b76419;
}

.game-cover {
  position: relative;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 20px 20px 0 0;
}

.template-card {
  cursor: default;
}

.template-cover {
  overflow: hidden;
  background-position: center;
}

.template-cover::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(12, 28, 43, 0.08), rgba(12, 28, 43, 0.18) 45%, rgba(11, 24, 37, 0.76));
}

.template-cover--school::after {
  background: linear-gradient(180deg, rgba(255, 244, 216, 0.06), rgba(44, 78, 56, 0.16) 46%, rgba(39, 72, 54, 0.66));
}

.template-cover--suspense::after {
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.08), rgba(7, 12, 24, 0.18) 42%, rgba(5, 10, 19, 0.84));
}

.template-cover--fantasy::after {
  background: linear-gradient(180deg, rgba(56, 26, 52, 0.06), rgba(58, 30, 62, 0.18) 44%, rgba(47, 25, 58, 0.7));
}

.template-cover__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--library-blue-deep);
  font-size: 11px;
  font-weight: 900;
}

.template-cover__title {
  position: absolute;
  right: 10px;
  bottom: 13px;
  left: 10px;
  z-index: 2;
  display: grid;
  gap: 4px;
  color: #fff7dc;
  text-shadow: 0 2px 7px rgba(0, 0, 0, 0.46);
}

.template-cover__title small {
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.template-cover__title strong {
  display: block;
  max-width: 100%;
  color: currentColor;
  font-family: "KaiTi", "STKaiti", "SimSun", "Microsoft YaHei", serif;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.template-cover--school .template-cover__title {
  color: #fff5cf;
}

.template-cover--suspense .template-cover__title {
  color: #dbe8ff;
}

.template-cover--fantasy .template-cover__title {
  color: #ffe5b2;
}

.game-ribbon {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px 0 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--library-blue-deep);
  font-size: 11px;
  font-weight: 900;
}

.game-ribbon__icon {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(126, 167, 239, 0.16);
}

.game-ribbon .icon-svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.4;
}

.game-ribbon--featured,
.game-ribbon--hot {
  color: #b76419;
}

.game-ribbon--featured .game-ribbon__icon,
.game-ribbon--hot .game-ribbon__icon {
  background: rgba(246, 177, 93, 0.2);
}

.game-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 96px;
  padding: 9px 10px 7px;
  color: inherit;
  text-decoration: none;
}

.game-card__body-link {
  display: block;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.game-card h3 {
  min-width: 0;
  margin: 0;
  color: var(--library-ink);
  font-size: 16px;
  line-height: 1.22;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-card p {
  display: -webkit-box;
  min-height: 28px;
  margin: 4px 0 0;
  color: #526f90;
  font-size: 11.5px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.tag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.tag-line--cover {
  position: absolute;
  top: 8px;
  right: 7px;
  left: auto;
  z-index: 3;
  justify-content: flex-end;
  max-width: calc(100% - 82px);
  max-height: 24px;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--library-blue-deep);
  font-size: 10.5px;
  font-weight: 900;
}

.tag .icon-svg {
  width: 11px;
  height: 11px;
}

.game-stat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 21px;
  color: var(--library-muted);
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

.game-card__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 23px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(126, 167, 239, 0.12);
}

.template-card__controls {
  justify-content: flex-start;
}

.template-card__hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  border-radius: 999px;
  padding: 0 8px;
  background: var(--library-blue-soft);
  color: var(--library-blue-deep);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.template-card__hint .icon-svg {
  width: 13px;
  height: 13px;
}

.game-stat .icon-svg {
  width: 12px;
  height: 12px;
}

.creator-page {
  margin: 0 -16px;
  min-height: calc(100vh - 116px);
  background:
    linear-gradient(180deg, rgba(247, 249, 250, 0.94), rgba(236, 243, 246, 0.76) 34%, transparent);
}

.creator-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(220, 230, 232, 0.72);
  background: rgba(247, 249, 250, 0.92);
  backdrop-filter: blur(18px);
}

.creator-topbar__label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.creator-topbar h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  text-align: left;
}

.creator-topbar__action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 0 14px;
  background: #263238;
  color: var(--solid);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.creator-content {
  display: grid;
  gap: 18px;
  padding: 18px 16px 112px;
}

.creator-brief {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 102px;
  gap: 12px;
  overflow: hidden;
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 14%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(145deg, #263238, #4f768a);
  color: var(--solid);
}

.creator-brief__copy {
  min-width: 0;
}

.creator-brief__copy span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.creator-brief h2 {
  margin: 0;
  max-width: 10em;
  font-size: 24px;
  line-height: 1.22;
  text-wrap: balance;
}

.creator-brief p {
  margin: 12px 0 0;
  max-width: 26ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.65;
}

.creator-brief__panel {
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 16px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.12);
}

.creator-brief__panel strong,
.creator-brief__panel span {
  display: block;
}

.creator-brief__panel strong {
  font-size: 42px;
  line-height: 1;
}

.creator-brief__panel span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
}

.creator-workbench {
  display: grid;
  gap: 12px;
}

.creator-workbench__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.creator-workbench__header h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.creator-workbench__header span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.creator-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.creator-option {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 166px;
  padding: 14px;
  border: 1px solid rgba(220, 230, 232, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  box-shadow: var(--small-shadow);
}

.creator-option--primary {
  grid-column: 1 / -1;
  min-height: 148px;
  border-color: color-mix(in srgb, var(--primary) 38%, transparent);
  background:
    radial-gradient(circle at 90% 12%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 28%),
    rgba(255, 255, 255, 0.92);
}

.creator-option__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.creator-option__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.creator-option__title {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

.creator-option__desc {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.creator-option__pill {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 800;
}

.creator-option__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 900;
}

.creator-option__cta svg {
  width: 16px;
  height: 16px;
}

.works-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(220, 230, 232, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--small-shadow);
}

.works-card--ledger {
  margin-top: 0;
  border-color: rgba(38, 50, 56, 0.16);
  background: #263238;
  color: var(--solid);
}

.works-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.works-card--ledger .works-card__icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--solid);
}

.works-card__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.works-card h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.works-card p {
  margin: 0;
  color: var(--muted);
}

.works-card__body strong {
  font-size: 17px;
  line-height: 1.2;
}

.works-card__body span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.works-card__action {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 900;
}

.works-card__arrow {
  margin-left: auto;
  color: var(--faint);
}

.works-card--ledger .works-card__arrow {
  margin-left: 0;
  color: rgba(255, 255, 255, 0.62);
}

.workshop-home .creator-content {
  gap: 16px;
}

.workshop-section {
  display: grid;
  gap: 12px;
}

.workshop-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workshop-entry {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 164px;
  border: 1px solid rgba(220, 230, 232, 0.9);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  text-align: left;
  text-decoration: none;
  box-shadow: var(--small-shadow);
}

.workshop-entry--primary {
  grid-column: 1 / -1;
  min-height: 150px;
  border-color: color-mix(in srgb, var(--primary) 36%, transparent);
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 243, 246, 0.78));
}

.workshop-entry__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workshop-entry__pill {
  justify-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.workshop-entry__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(38, 50, 56, 0.08);
  color: #4f768a;
}

.workshop-entry__title {
  display: block;
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.3;
}

.workshop-entry__desc {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.workshop-entry__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 900;
}

.workshop-entry__cta svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 374px) {
  .creator-brief {
    grid-template-columns: 1fr;
  }

  .creator-brief__panel {
    justify-items: start;
  }

  .workshop-entry-grid {
    grid-template-columns: 1fr;
  }

  .workshop-entry--primary {
    grid-column: auto;
  }
}

.creator-page {
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.82), transparent 24%),
    linear-gradient(180deg, var(--library-bg), rgba(247, 251, 255, 0.72) 55%, transparent);
}

.creator-topbar {
  min-height: 66px;
  border-bottom-color: var(--library-line);
  background: rgba(247, 251, 255, 0.9);
}

.creator-topbar__label {
  color: var(--library-muted);
}

.creator-topbar h1 {
  color: var(--library-ink);
  font-size: 21px;
}

.creator-topbar__action {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--library-blue), #b9d9ff);
  box-shadow: 0 10px 20px rgba(126, 167, 239, 0.2);
}

.creator-content {
  gap: 14px;
  padding-top: 14px;
}

.creator-desk-hero {
  overflow: hidden;
  border: 1px solid rgba(126, 167, 239, 0.22);
  border-radius: 20px;
  padding: 15px;
  background:
    radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.9), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(228, 241, 255, 0.86));
  box-shadow: 0 12px 26px rgba(88, 126, 171, 0.1);
}

.creator-desk-hero span {
  color: var(--library-blue-deep);
  font-size: 11px;
  font-weight: 900;
}

.creator-desk-hero h2 {
  margin: 7px 0 0;
  max-width: 13em;
  color: var(--library-ink);
  font-size: 21px;
  line-height: 1.25;
}

.creator-desk-hero p {
  margin: 9px 0 0;
  color: var(--library-muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.workshop-section {
  padding: 0;
}

.creator-workbench__header h3 {
  color: var(--library-ink);
}

.creator-workbench__header span {
  color: var(--library-muted);
}

.workshop-entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workshop-entry,
.workshop-entry--primary {
  grid-column: auto;
  min-height: 154px;
  border-color: rgba(126, 167, 239, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(88, 126, 171, 0.1);
}

.workshop-entry--primary:first-child {
  background:
    radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.92), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(228, 241, 255, 0.82));
}

.workshop-entry--primary:nth-child(2) {
  background:
    radial-gradient(circle at 88% 12%, rgba(225, 233, 247, 0.8), transparent 28%),
    linear-gradient(145deg, rgba(249, 252, 255, 0.98), rgba(237, 245, 255, 0.9));
}

.workshop-entry__pill {
  background: rgba(228, 241, 255, 0.9);
  color: var(--library-blue-deep);
}

.workshop-entry__icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--library-blue-soft);
  color: var(--library-blue-deep);
}

.workshop-entry__title {
  color: var(--library-ink);
  font-size: 16px;
}

.workshop-entry__desc {
  color: var(--library-muted);
  font-size: 12px;
}

.workshop-entry__cta {
  color: var(--library-blue-deep);
}

.creator-desk-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.creator-desk-item {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 122px;
  padding: 13px;
  border: 1px solid rgba(126, 167, 239, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--library-ink);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(88, 126, 171, 0.08);
}

.creator-desk-item:nth-child(n + 3) {
  grid-column: 1 / -1;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  min-height: 66px;
  padding: 12px;
}

.creator-desk-item__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--library-blue-deep);
}

.creator-desk-item:nth-child(2) {
  border-color: rgba(214, 178, 99, 0.34);
  background:
    radial-gradient(circle at 82% 12%, rgba(222, 184, 92, 0.22), transparent 30%),
    linear-gradient(145deg, #172234, #263347);
  color: #fff6df;
}

.creator-desk-item:nth-child(2) .creator-desk-item__icon {
  border: 1px solid rgba(244, 215, 150, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #f0cf85;
}

.creator-desk-item:nth-child(2) .creator-desk-item__body strong {
  color: #fff6df;
}

.creator-desk-item:nth-child(2) .creator-desk-item__body small {
  color: rgba(255, 246, 223, 0.72);
}

.creator-desk-item:nth-child(2) .creator-desk-item__meta {
  background: rgba(240, 207, 133, 0.16);
  color: #f3d995;
}

.creator-desk-item:nth-child(n + 3) {
  border-color: rgba(65, 110, 169, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(236, 245, 255, 0.74));
}

.creator-desk-item__body {
  min-width: 0;
}

.creator-desk-item__body strong,
.creator-desk-item__body small {
  display: block;
}

.creator-desk-item__body strong {
  font-size: 14.5px;
  line-height: 1.3;
}

.creator-desk-item__body small {
  margin-top: 3px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--library-muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.creator-desk-item__meta {
  justify-self: start;
  margin-top: auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(228, 241, 255, 0.88);
  color: var(--library-blue-deep);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.creator-desk-item:nth-child(n + 3) .creator-desk-item__meta {
  justify-self: end;
  margin-top: 0;
}

.creator-desk-item:nth-child(n + 3) .creator-desk-item__body small {
  -webkit-line-clamp: 1;
}

.workshop-home--ritual .creator-content {
  gap: 18px;
  padding-top: 12px;
}

.creator-topbar--ritual {
  min-height: 70px;
  background: rgba(247, 251, 255, 0.86);
}

.creator-topbar--ritual > div {
  min-width: 0;
}

.creator-topbar--ritual h1 {
  font-size: 22px;
  font-weight: 700;
}

.creator-topbar--ritual p {
  margin: 3px 0 0;
  color: var(--library-muted);
  font-size: 12px;
  font-weight: 700;
}

.workshop-ritual-hero {
  position: relative;
  display: grid;
  min-height: 184px;
  align-content: end;
  gap: 14px;
  overflow: hidden;
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.34), transparent 20%),
    radial-gradient(circle at 18% 0%, rgba(168, 216, 255, 0.48), transparent 28%),
    linear-gradient(145deg, #183048 0%, #244d68 44%, #a8d8ff 132%);
  color: #f7fbff;
  box-shadow: 0 12px 24px rgba(38, 75, 106, 0.14);
  isolation: isolate;
}

.workshop-ritual-hero::before {
  position: absolute;
  inset: -24% -18% auto;
  height: 150px;
  content: "";
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: rotate(-12deg);
  animation: workshopRitualLight 7s ease-in-out infinite;
}

.workshop-ritual-hero__light {
  position: absolute;
  right: 28px;
  top: 32px;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  filter: blur(4px);
}

.workshop-ritual-hero__copy,
.workshop-hero-action {
  position: relative;
  z-index: 1;
}

.workshop-ritual-hero__copy span {
  display: block;
  margin-bottom: 8px;
  color: rgba(247, 251, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.workshop-ritual-hero h2 {
  margin: 0;
  max-width: 9em;
  font-size: 26px;
  font-weight: 650;
  line-height: 1.16;
  text-wrap: balance;
}

.workshop-ritual-hero p {
  margin: 8px 0 0;
  max-width: 28ch;
  color: rgba(247, 251, 255, 0.78);
  font-size: 13px;
  line-height: 1.65;
}

.workshop-hero-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 15px;
  background: #ffffff;
  color: #173149;
  text-decoration: none;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(168, 216, 255, 0.34);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.workshop-hero-action:active {
  transform: translateY(1px);
}

.workshop-hero-action svg {
  width: 18px;
  height: 18px;
}

.workshop-ritual-section {
  display: grid;
  gap: 10px;
}

.workshop-ritual-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.workshop-ritual-heading h3 {
  margin: 0;
  color: var(--library-ink);
  font-size: 17px;
  font-weight: 850;
}

.workshop-ritual-heading span,
.workshop-ritual-heading a {
  color: var(--library-muted);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.workshop-idea-rail,
.workshop-memory-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(246px, 86%);
  gap: 12px;
  overflow-x: auto;
  padding: 1px 2px 7px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.workshop-idea-rail::-webkit-scrollbar,
.workshop-memory-rail::-webkit-scrollbar {
  display: none;
}

.creator-work-list {
  display: grid;
  gap: 10px;
}

.creator-work-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(126, 167, 239, 0.18);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--library-ink);
  box-shadow: 0 8px 14px rgba(88, 126, 171, 0.07);
}

.creator-work-card--compact {
  min-height: 0;
}

.creator-work-card__cover {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(155deg, #d8eaff, #f3f8ff 55%, #e6e1f2);
  background-position: center;
  background-size: cover;
}

.creator-work-card__cover--empty {
  display: grid;
  place-items: center;
}

.creator-work-card__cover span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  left: 7px;
  display: inline-flex;
  justify-content: center;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--library-blue-deep);
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

.creator-work-cover-placeholder {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  min-height: 112px;
  border: 0;
  border-radius: inherit;
  padding: 10px 6px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(155deg, #d8eaff, #f8fbff);
  color: var(--library-blue-deep);
  font-size: 11px;
  font-weight: 900;
}

.creator-work-cover-placeholder span {
  position: static;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-height: 0;
  border-radius: 999px;
  padding: 0;
  background: #ffffff;
}

.creator-work-cover-placeholder strong {
  font-size: 11px;
  line-height: 1.2;
}

.creator-work-card__body {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.creator-work-card__title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.creator-work-card__title h4 {
  margin: 0;
  color: var(--library-ink);
  font-size: 15.5px;
  font-weight: 900;
  line-height: 1.28;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-work-card__title small {
  color: var(--library-muted);
  font-size: 11px;
  font-weight: 800;
}

.creator-work-card__body p {
  display: -webkit-box;
  min-height: 32px;
  margin: 0;
  color: #526b7d;
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.creator-work-card__actions {
  display: grid;
  gap: 7px;
}

.creator-work-card__primary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.creator-work-card__primary-actions .mini-button {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
  white-space: nowrap;
}

.creator-work-card__secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 22px;
}

.creator-work-card__secondary-actions a,
.creator-work-card__secondary-actions button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #526f90;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
}

.creator-work-card__secondary-actions .creator-work-delete-action {
  margin-left: auto;
  color: #a85353;
}

.creator-work-empty {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 10px;
  min-height: 168px;
  scroll-snap-align: start;
  border: 1px solid rgba(126, 167, 239, 0.18);
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--library-ink);
}

.creator-work-empty__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--library-blue-soft);
  color: var(--library-blue-deep);
}

.creator-work-empty strong {
  font-size: 16px;
}

.creator-work-empty p {
  margin: 0;
  color: var(--library-muted);
  font-size: 12px;
  line-height: 1.55;
}

.workshop-idea-card {
  position: relative;
  display: grid;
  min-height: 132px;
  align-content: end;
  gap: 7px;
  overflow: hidden;
  scroll-snap-align: start;
  border-radius: 18px;
  padding: 15px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.72), transparent 25%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(229, 242, 255, 0.76));
  color: #23394b;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(88, 126, 171, 0.08);
  transition: transform 180ms ease;
}

.workshop-idea-card:active {
  transform: translateY(1px);
}

.workshop-idea-card--court {
  background:
    radial-gradient(circle at 84% 12%, rgba(255, 244, 214, 0.78), transparent 27%),
    linear-gradient(145deg, #eef4ff, #ffffff);
}

.workshop-idea-card--storm {
  background:
    radial-gradient(circle at 84% 14%, rgba(181, 216, 255, 0.72), transparent 28%),
    linear-gradient(145deg, #e8f3ff, #ffffff);
}

.workshop-idea-card--campus {
  background:
    radial-gradient(circle at 84% 14%, rgba(205, 244, 239, 0.78), transparent 28%),
    linear-gradient(145deg, #effbff, #ffffff);
}

.workshop-idea-card--loop {
  background:
    radial-gradient(circle at 84% 14%, rgba(216, 206, 244, 0.72), transparent 28%),
    linear-gradient(145deg, #edf3ff, #ffffff);
}

.workshop-idea-card strong,
.workshop-idea-card span,
.workshop-idea-card small {
  position: relative;
  z-index: 1;
}

.workshop-idea-card strong {
  font-size: 16px;
  line-height: 1.28;
}

.workshop-idea-card span {
  color: #526b7d;
  font-size: 12px;
  line-height: 1.52;
}

.workshop-idea-card small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--library-blue-deep);
  font-size: 12px;
  font-weight: 900;
}

.workshop-idea-card small svg {
  width: 14px;
  height: 14px;
}

.workshop-memory-card {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 10px 12px;
  scroll-snap-align: start;
  min-height: 126px;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--library-ink);
  box-shadow: 0 8px 16px rgba(88, 126, 171, 0.08);
}

.workshop-memory-card__cover {
  grid-row: 1 / 3;
  border-radius: 14px;
  background:
    radial-gradient(circle at 52% 24%, rgba(255, 255, 255, 0.7), transparent 28%),
    linear-gradient(155deg, #bedfff, #f2f8ff 52%, #d9d0f0);
  text-decoration: none;
}

.workshop-memory-card__body {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.workshop-memory-card__body strong,
.workshop-memory-card__body span,
.workshop-memory-card__body small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workshop-memory-card__body strong {
  font-size: 15px;
  line-height: 1.3;
}

.workshop-memory-card__body span {
  color: #506b7d;
  font-size: 12px;
}

.workshop-memory-card__body small {
  color: var(--library-muted);
  font-size: 11px;
}

.workshop-memory-card__action {
  justify-self: start;
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #263238;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.workshop-memory-card--empty {
  grid-template-columns: 1fr;
  align-content: center;
}

@keyframes workshopRitualLight {
  0%,
  100% {
    transform: translateX(-12%) rotate(-12deg);
  }
  50% {
    transform: translateX(20%) rotate(-12deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .workshop-ritual-hero::before {
    animation: none;
  }

  .workshop-hero-action,
  .workshop-idea-card {
    transition: none;
  }
}

.balance-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.3), transparent 22%),
    linear-gradient(135deg, var(--primary-deep), var(--primary));
  color: var(--solid);
  box-shadow: var(--small-shadow);
}

.balance-card span {
  font-size: 13px;
  opacity: 0.88;
}

.balance-card strong {
  display: block;
  margin-top: 8px;
  font-size: 34px;
  line-height: 1;
}

.shop-wallet-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(126, 167, 239, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 255, 255, 0.92), transparent 28%),
    linear-gradient(135deg, rgba(228, 241, 255, 0.96), rgba(255, 248, 239, 0.78));
  box-shadow: 0 10px 24px rgba(88, 126, 171, 0.1);
}

.shop-wallet-card span {
  display: block;
  color: var(--library-muted);
  font-size: 12px;
  font-weight: 800;
}

.shop-wallet-card strong {
  display: block;
  margin-top: 3px;
  color: var(--library-ink);
  font-size: 24px;
  line-height: 1;
}

.shop-wallet-card__actions {
  display: flex;
  gap: 7px;
}

.shop-wallet-card__actions button {
  min-height: 34px;
  border: 1px solid rgba(126, 167, 239, 0.22);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--library-blue-deep);
  font-size: 12px;
  font-weight: 900;
}

.shop-list,
.quick-list,
.card-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.shop-card,
.quick-card,
.settings-block {
  padding: 15px;
}

.shop-card {
  display: grid;
  gap: 11px;
  border-color: rgba(126, 167, 239, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.shop-card__topline,
.shop-card__footer,
.panel-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shop-card__tag {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(228, 241, 255, 0.9);
  color: var(--library-blue-deep);
  font-size: 11px;
  font-weight: 900;
}

.shop-card__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 13px;
  background: var(--library-blue-soft);
  color: var(--library-blue-deep);
}

.shop-card h3,
.quick-card h3,
.settings-block h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.shop-card h3 {
  margin: 0;
  color: var(--library-ink);
}

.shop-card p,
.quick-card p,
.settings-block p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.shop-card p {
  min-height: 40px;
  margin: 0;
  color: var(--library-muted);
}

.shop-card__footer strong {
  color: var(--library-blue-deep);
  font-size: 20px;
  line-height: 1;
}

.shop-card__footer .primary-button {
  min-height: 36px;
  padding: 0 16px;
  background: linear-gradient(135deg, var(--library-blue), #9dc6ff);
  box-shadow: 0 10px 18px rgba(126, 167, 239, 0.2);
}

.panel-section-title h3 {
  margin: 0;
}

.redeem-history__list {
  display: grid;
  gap: 10px;
}

.redeem-history--panel {
  margin-top: 12px;
}

.redeem-history__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  padding: 12px;
  border: 1px solid rgba(220, 230, 232, 0.86);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.64);
}

.redeem-history__main,
.redeem-history__side {
  display: grid;
  gap: 3px;
}

.redeem-history__main strong,
.redeem-history__side strong {
  color: var(--text);
  font-size: 14px;
}

.redeem-history__main span,
.redeem-history__side span {
  color: var(--muted);
  font-size: 12px;
}

.redeem-history__side {
  text-align: right;
}

.spend-history__item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.redeem-history__item code {
  grid-column: 1 / -1;
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: rgba(226, 236, 239, 0.72);
  color: var(--text);
  font-size: 12px;
}

.redeem-history__empty {
  padding: 14px 12px;
  border-radius: 10px;
  background: rgba(226, 236, 239, 0.55);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.redeem-history__empty--error {
  color: #b42318;
}

.quick-card {
  width: 100%;
  border: 1px solid rgba(220, 230, 232, 0.8);
  color: var(--text);
  text-align: left;
}

.settings-title-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  border: 1px solid rgba(126, 167, 239, 0.18);
  border-radius: 8px;
  background: rgba(241, 247, 255, 0.9);
  color: #4f7dad;
  vertical-align: -6px;
}

.settings-title-icon .icon-svg {
  width: 15px;
  height: 15px;
}

.orange-model-btn {
  border-color: rgba(126, 167, 239, 0.14);
  background: rgba(255, 255, 255, 0.84);
}

.orange-model-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.orange-model-row > div {
  min-width: 0;
}

.orange-model-row h4,
.orange-model-row small {
  display: block;
}

.orange-model-row h4 {
  margin: 0;
  color: #34495e;
  font-size: 15px;
  line-height: 1.25;
}

.orange-model-row small {
  margin-top: 3px;
  color: #7d8c99;
  font-size: 12px;
}

.orange-model-cost {
  flex: 0 0 auto;
  border: 1px solid rgba(80, 125, 170, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(235, 244, 255, 0.9);
  color: #426f9f;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.orange-model-btn--active {
  border-color: rgba(80, 125, 170, 0.36);
  background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(235, 246, 240, 0.82));
}

.orange-model-btn--active .orange-model-cost {
  border-color: rgba(80, 125, 170, 0.28);
  background: rgba(76, 132, 181, 0.12);
  color: #315f90;
}

.form-card {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
}

.form-card h3 {
  margin: 0;
  font-size: 17px;
}

.muted-line {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

select {
  width: 100%;
  height: 42px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 14px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  outline: none;
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-row--compact {
  gap: 7px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
  padding: 6px;
  border: 1px solid rgba(220, 230, 232, 0.84);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(52, 81, 96, 0.08);
}

.segmented__button {
  min-height: 38px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.segmented__button--active {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.segmented--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-mode-switch {
  margin-top: 8px;
}

.auth-helper {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.auth-helper .ghost-button {
  width: 100%;
}

.switch-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.switch-row strong,
.switch-row small {
  display: block;
}

.switch-row strong {
  font-size: 15px;
}

.switch-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.switch-control {
  position: relative;
  display: inline-flex;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
}

.switch-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.switch-control span {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.56);
}

.switch-control span::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--solid);
  box-shadow: 0 5px 12px rgba(52, 81, 96, 0.18);
  content: "";
  transition: transform 160ms ease;
}

.switch-control input:checked + span {
  border-color: color-mix(in srgb, var(--primary) 45%, transparent);
  background: linear-gradient(135deg, var(--primary), #86b6c8);
}

.switch-control input:checked + span::before {
  transform: translateX(22px);
}

.api-float {
  position: absolute;
  right: 14px;
  bottom: 94px;
  z-index: 42;
  width: 46px;
  height: 46px;
  pointer-events: none;
  touch-action: none;
}

.api-float[hidden] {
  display: none;
}

.api-float__button,
.api-float__panel,
.api-float__scrim {
  pointer-events: auto;
}

.api-float__button {
  display: grid;
  place-items: center;
  gap: 0;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.95), transparent 34%),
    linear-gradient(145deg, #fff9ee 0%, #ffffff 46%, #ffe0a7 100%);
  color: #d47012;
  box-shadow:
    0 10px 18px rgba(52, 81, 96, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  user-select: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.api-float--dragging .api-float__button {
  cursor: grabbing;
  box-shadow: 0 6px 12px rgba(52, 81, 96, 0.12);
  transform: scale(0.97);
}

.api-float__button span {
  margin-top: -5px;
  color: #af5d12;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
}

.api-float__button .icon-svg {
  width: 29px;
  height: 29px;
}

.api-float__button .icon-svg--orange {
  stroke: none;
}

.api-float__scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(29, 44, 52, 0.22);
  backdrop-filter: blur(1px);
}

.api-float__scrim[hidden] {
  display: none;
}

.api-float__panel {
  position: fixed;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  z-index: 41;
  width: min(340px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 96px));
  max-height: min(560px, calc(100dvh - 96px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px;
  border-color: rgba(126, 167, 239, 0.26);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(52, 81, 96, 0.16);
  transform: translate(-50%, -50%);
}

.api-float--panel-below .api-float__panel {
  top: 50%;
  bottom: auto;
}

.api-float--panel-left .api-float__panel {
  right: auto;
  left: 50%;
  transform: translate(-50%, -50%);
}

.api-float--panel-center .api-float__panel {
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
}

.api-float__panel[hidden] {
  display: none;
}

.api-float__header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.api-float__header > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #fff2d8;
  color: #d47012;
}

.api-float__header strong,
.api-float__header small {
  display: block;
}

.api-float__header strong {
  font-size: 14px;
}

.api-float__header small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 18px;
  line-height: 1;
}

.api-preset-name {
  margin-bottom: 10px;
}

.api-preset-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.api-preset-manager {
  display: grid;
  gap: 10px;
}

.api-float .api-preset-manager {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.api-float .api-mode-card,
.api-float .api-orange-list {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.api-float .api-preset-list {
  gap: 7px;
  margin-top: 8px;
}

.api-float .api-orange-list h3,
.api-float .api-preset-manager h3 {
  margin: 10px 0 0;
  color: var(--primary-deep);
  font-size: 12px;
}

.api-mode-card {
  display: grid;
  gap: 10px;
}

.api-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.api-mode-switch__button {
  display: grid;
  gap: 4px;
  min-height: 58px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  text-align: left;
}

.api-mode-switch__button strong,
.api-mode-switch__button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-mode-switch__button strong {
  color: var(--text);
  font-size: 13px;
}

.api-mode-switch__button span {
  font-size: 11px;
}

.api-mode-switch__button--active {
  border-color: color-mix(in srgb, var(--primary-deep) 42%, transparent);
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.api-mode-card--float .api-mode-switch__button {
  min-height: 48px;
  border-radius: 13px;
  padding: 8px;
}

.api-orange-list {
  display: grid;
  gap: 10px;
}

.api-float-settings {
  width: 100%;
  min-height: 38px;
  margin-top: 9px;
  border-radius: 13px;
  font-size: 12px;
}

.api-preset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.api-preset {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 15px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  text-align: left;
}

.api-float .api-preset {
  min-height: 48px;
  border-radius: 13px;
  padding: 8px;
}

.api-preset-manager--float .api-preset-row {
  grid-template-columns: minmax(0, 1fr);
}

.api-preset strong,
.api-preset small {
  display: block;
}

.api-preset > span:first-child {
  min-width: 0;
}

.api-preset strong {
  font-size: 13px;
}

.api-preset small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.api-preset > span:last-child {
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 900;
}

.api-preset--active {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary-deep) 38%, transparent);
}

.orange-model-btn--pending {
  opacity: 0.72;
  cursor: wait;
}

.api-preset-delete {
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
  border-radius: 14px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.balance-detail span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.balance-detail strong {
  display: block;
  margin: 7px 0 10px;
  color: var(--primary-deep);
  font-size: 34px;
  line-height: 1;
}

.profile-panel {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 22px 16px;
  text-align: center;
}

.avatar--large {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  font-size: 30px;
}

.profile-panel h3 {
  margin: 6px 0 0;
  font-size: 20px;
}

.profile-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.avatar-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-deep);
  font-size: 13px;
  font-weight: 800;
}

.avatar-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.avatar-upload span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.avatar-upload .icon-svg {
  width: 17px;
  height: 17px;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  padding: 15px;
}

.stats-card div {
  border-radius: 16px;
  padding: 12px 8px;
  background: rgba(230, 240, 245, 0.62);
  text-align: center;
}

.stats-card strong,
.stats-card span {
  display: block;
}

.stats-card strong {
  color: var(--primary-deep);
  font-size: 21px;
}

.stats-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.empty-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 16px;
  text-align: center;
}

.empty-card__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.empty-card h3,
.empty-card p {
  margin: 0;
}

.empty-card p {
  color: var(--muted);
}

.work-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.work-thumb {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background-color: color-mix(in srgb, var(--primary) 18%, white);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.work-body h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.work-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.creator-work-list-item {
  display: grid;
  gap: 8px;
}

.creator-work-list-item .creator-work-card {
  min-height: 0;
}

.model-list {
  display: grid;
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 2px;
}

.result-box--error {
  border-color: rgba(200, 86, 86, 0.24);
  background: rgba(200, 86, 86, 0.08);
  color: #9d4a4a;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 14px;
  padding: 22px 12px 10px;
}

.app-tile {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 19px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(230, 240, 245, 0.8));
  color: var(--primary-deep);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(85, 92, 117, 0.12);
}

.app-tile span:last-child {
  max-width: 68px;
  color: #526773;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.mine-hero {
  position: relative;
  min-height: 250px;
  margin: 12px -4px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 30px;
  background:
    radial-gradient(circle at 24% 26%, rgba(255, 255, 255, 0.8), transparent 20%),
    radial-gradient(circle at 76% 18%, rgba(185, 174, 207, 0.38), transparent 23%),
    linear-gradient(145deg, #f7edf5, #eaf3f6 58%, #f7efe5);
  box-shadow: var(--small-shadow);
}

.profile-card {
  position: relative;
  margin: 24px 14px 0;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 34px rgba(85, 92, 117, 0.11);
  backdrop-filter: blur(18px);
}

.profile-card:not(.profile-card--logged) .profile-row {
  padding-right: 112px;
}

.profile-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.profile-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #7ca88f;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}

.profile-login-button {
  position: absolute;
  top: 54px;
  right: 22px;
  min-width: 88px;
  min-height: 42px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--primary-deep);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(52, 81, 96, 0.1);
  backdrop-filter: blur(16px);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(230, 240, 245, 0.85));
  color: var(--primary-deep);
  font-size: 22px;
  font-weight: 800;
  box-shadow: var(--small-shadow);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  margin: 0 0 3px;
  font-size: 19px;
}

.profile-id {
  color: var(--muted);
  font-size: 12px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.profile-stat {
  border-radius: 16px;
  padding: 10px;
  background: rgba(230, 240, 245, 0.62);
}

.profile-stat strong {
  display: block;
  font-size: 16px;
}

.profile-stat span {
  color: var(--muted);
  font-size: 11px;
}

.mine-hero {
  min-height: 224px;
  border-color: rgba(126, 167, 239, 0.22);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.86), transparent 22%),
    radial-gradient(circle at 80% 16%, rgba(255, 241, 223, 0.82), transparent 24%),
    linear-gradient(145deg, var(--library-blue-soft), #fff9f1 72%);
}

.profile-card {
  margin-top: 18px;
  border-radius: 22px;
}

.profile-card__eyebrow {
  color: var(--library-muted);
  letter-spacing: 0;
}

.profile-card__dot {
  background: var(--library-orange);
}

.profile-name {
  color: var(--library-ink);
}

.profile-stat {
  background: rgba(228, 241, 255, 0.68);
}

.profile-stat strong {
  color: var(--library-ink);
}

.mine-action-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 12px;
  padding: 12px 4px 10px;
}

.mine-action-list .app-tile {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 84px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--library-ink);
  text-align: center;
  box-shadow: none;
}

.mine-action-list .app-tile--button {
  cursor: pointer;
}

.mine-action-list .app-icon {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(209, 228, 248, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.92));
  color: #3f76b7;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 16px rgba(88, 126, 171, 0.08);
}

.mine-action-list .app-icon .icon-svg {
  width: 22px;
  height: 22px;
}

.app-tile__label {
  max-width: 70px;
  overflow: hidden;
  color: #284660;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-action-list .app-tile__label {
  color: #284660;
}

.mine-action-list .app-tile span.app-tile__label {
  color: #284660;
}

.app-panel {
  position: absolute;
  inset: 0;
  z-index: 34;
  overflow-y: auto;
  padding: 0 16px 96px;
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), var(--phone-bg));
  scrollbar-width: none;
}

.panel-header {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  align-items: center;
  min-height: 70px;
  margin: 0 -16px 16px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(220, 230, 232, 0.72);
  background: rgba(247, 249, 250, 0.92);
  backdrop-filter: blur(18px);
}

.panel-header h2 {
  margin: 0;
  font-size: 19px;
  text-align: center;
}

.panel-back {
  border: 0;
  background: transparent;
  color: var(--primary-deep);
  font-weight: 800;
  text-align: left;
}

.result-box {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 13px;
  line-height: 1.6;
}

.result-box--compact {
  margin-top: 10px;
}

.result-box--visible {
  display: block;
}

.tabbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  min-height: 66px;
  padding: 7px 10px;
  border: 0;
  border-top: 1px solid rgba(126, 167, 239, 0.22);
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 -4px 12px rgba(83, 126, 188, 0.08);
  backdrop-filter: none;
}

.tabbar__item {
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 0;
  border: 0;
  position: relative;
  border-radius: 14px;
  background: transparent;
  color: #7890ad;
  font-size: 12px;
  font-weight: 800;
}

.tabbar__item:disabled {
  cursor: default;
}

.tabbar__item--disabled,
.tabbar__item--disabled:disabled {
  color: #aeb7c2;
  cursor: not-allowed;
  opacity: 0.72;
}

.tabbar__item--placeholder {
  color: #aebdcb;
}

.tabbar__item--active {
  background: transparent;
  color: #d77e15;
}

.tabbar__item--active::before {
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.tabbar__item--phone {
  color: #8a668c;
  text-decoration: none;
}

.tabbar__item--phone:hover,
.tabbar__item--phone:focus-visible {
  background: #f4eaf5;
  color: #68496b;
  outline: none;
}

.tabbar__phone-icon {
  display: grid;
  place-items: center;
  font-size: 25px;
  line-height: 22px;
}

.tabbar__phone-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.tabbar__item--compose {
  align-self: start;
  gap: 2px;
  margin-top: -12px;
  color: var(--library-blue-deep);
}

.tabbar__item--compose,
.tabbar__item--compose.tabbar__item--active {
  background: transparent;
}

.tabbar__item--compose::before {
  display: none;
}

.tabbar__compose-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(126, 167, 239, 0.34);
  background: #dcebff;
  color: var(--library-blue-deep);
  box-shadow: 0 5px 10px rgba(65, 110, 169, 0.14);
}

.tabbar__compose-icon .icon-svg {
  width: 22px;
  height: 22px;
}

.tabbar__icon svg,
.icon-svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(29, 44, 52, 0.36);
  backdrop-filter: blur(12px);
}

.modal--visible {
  display: grid;
}

.modal__panel {
  width: min(100%, 392px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 24%),
    var(--paper);
  box-shadow: var(--shadow);
}

.modal__topline {
  width: 48px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: var(--line);
}

.modal h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.modal p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.content-disclaimer {
  width: min(100%, 420px);
}

.content-disclaimer__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 0 0 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.notice-modal {
  display: grid;
  gap: 16px;
}

.notice-modal__list {
  display: grid;
  gap: 12px;
  max-height: min(62vh, 560px);
  overflow: auto;
  padding-right: 2px;
}

.notice-modal__empty {
  margin: 0;
  color: #526773;
  font-size: 14px;
}

.notice-modal__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.notice-modal__header h1 {
  margin: 0;
}

.notice-modal__header p {
  margin: 5px 0 0;
  color: #526773;
  font-size: 13px;
}

.notice-modal__close {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--primary-deep);
  font-size: 24px;
  line-height: 1;
}

.notice-modal__close:hover,
.notice-modal__close:focus-visible {
  background: var(--primary-soft);
  outline: none;
}

.notice-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(220, 230, 232, 0.92);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.notice-card--pinned {
  border-color: rgba(198, 163, 106, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(230, 240, 245, 0.72)),
    color-mix(in srgb, var(--warm) 10%, white);
}

.notice-card--unread {
  border-color: rgba(224, 72, 72, 0.32);
}

.notice-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--primary-deep);
  font-size: 12px;
  font-weight: 900;
}

.notice-card__meta-left {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.notice-card__tag,
.notice-card__state {
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--primary-soft);
}

.notice-card__state {
  background: rgba(224, 72, 72, 0.12);
  color: #b4232b;
}

.notice-card__meta time {
  color: #526773;
  font-weight: 800;
}

.notice-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
}

.notice-card p {
  margin: 0;
  color: #40515b;
  font-size: 14px;
  line-height: 1.65;
}

.notice-card__link {
  width: 100%;
  margin-top: 2px;
}

.shop-plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border: 1px solid rgba(110, 157, 183, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  text-align: left;
}

.modal__panel {
  border-color: rgba(126, 167, 239, 0.22);
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 241, 223, 0.7), transparent 26%),
    rgba(255, 255, 255, 0.94);
}

.modal__topline {
  background: linear-gradient(90deg, #b9d9ff, var(--library-blue));
}

.modal h1 {
  color: var(--library-ink);
}

.modal p {
  color: var(--library-muted);
}

.shop-plan strong,
.shop-plan small {
  display: block;
}

.shop-plan strong {
  font-size: 14px;
}

.shop-plan small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.shop-plan span:last-child {
  color: var(--primary-deep);
  font-weight: 900;
}

.shop-plan--selected {
  border-color: rgba(126, 167, 239, 0.48);
  background: linear-gradient(135deg, var(--library-blue-soft), rgba(255, 241, 223, 0.62));
  box-shadow: 0 10px 22px rgba(88, 126, 171, 0.12);
}

.shop-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 340px) {
  .workshop-entry-grid,
  .shop-wallet-card {
    grid-template-columns: 1fr;
  }

  .shop-wallet-card__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .phone-shell {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 0;
  }

  .phone-app {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .screen {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-right: 14px;
    padding-left: 14px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }

  #screenGame {
    padding-right: 8px;
    padding-left: 8px;
  }

  .game-library {
    gap: 9px;
    padding-top: 7px;
  }

  .library-hero {
    border-radius: 14px;
  }

  .library-hero img {
    max-height: 126px;
    aspect-ratio: 1920 / 640;
  }

  .library-hero__notice {
    width: 32px;
    height: 32px;
  }

  .library-access-switch {
    gap: 4px;
    min-height: 46px;
    padding: 3px;
    border-radius: 15px;
  }

  .library-access-switch__button {
    min-height: 38px;
    border-radius: 12px;
    padding: 6px 7px;
    gap: 6px;
  }

  .library-access-switch__icon {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
    border-radius: 8px;
  }

  .library-access-switch__icon .icon-svg {
    width: 13px;
    height: 13px;
  }

  .library-access-switch__copy span {
    font-size: 12.5px;
  }

  .library-access-switch__copy small {
    font-size: 9.5px;
  }

  .game-grid {
    gap: 12px 10px;
  }

  .game-card {
    border-radius: 18px;
  }

  .game-cover {
    border-radius: 18px 18px 0 0;
  }

  .template-cover__title {
    right: 9px;
    bottom: 11px;
    left: 9px;
  }

  .template-cover__title strong {
    font-size: 23px;
  }

  .game-card__body {
    min-height: 90px;
    padding: 8px 9px 6px;
  }

  .game-card h3 {
    font-size: 16px;
  }

  .game-card p {
    min-height: 26px;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.28;
    -webkit-line-clamp: 2;
  }

  .tag-line--cover {
    top: 7px;
    right: 7px;
    left: auto;
    gap: 3px;
  }

  .tag {
    padding: 3px 6px;
    font-size: 10px;
  }

  .favorite-button span {
    display: inline;
  }

  .favorite-button {
    width: 24px;
    min-width: 24px;
    min-height: 24px;
    font-size: 16px;
    justify-content: center;
    padding: 0;
  }

  .game-card__controls {
    min-height: 22px;
    margin-top: 3px;
    padding-top: 3px;
  }

  .tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 66px;
    padding: 7px 10px max(7px, env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 18px 18px 0 0;
  }

  .tabbar__item--compose {
    margin-top: -13px;
  }

  .modal {
    align-items: center;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .modal__panel {
    max-height: calc(100dvh - 32px - env(safe-area-inset-bottom));
    border-radius: 24px;
  }

  .creator-brief {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-brief__panel {
    display: none;
  }
}

/* ========== 电脑端响应式布局 - 侧边栏导航 ========== */

/* 侧边栏容器 - 默认折叠状态 */
.desktop-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  width: 72px;
  height: 100vh;
  padding: 20px 0;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid rgba(220, 230, 232, 0.8);
  box-shadow: 4px 0 24px rgba(52, 81, 96, 0.1);
  backdrop-filter: blur(20px);
  display: none;
  flex-direction: column;
  gap: 8px;
  transition:
    box-shadow 160ms ease,
    background 160ms ease;
}

/* 侧边栏悬停展开 */
.desktop-sidebar:hover,
.desktop-sidebar--expanded {
  width: 220px;
}

/* 侧边栏导航项 */
.desktop-sidebar__item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 0 24px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.desktop-sidebar__item--phone {
  text-decoration: none;
}

.desktop-sidebar__item:focus-visible {
  outline: 2px solid var(--primary-deep);
  outline-offset: -4px;
}

.desktop-sidebar__item:hover {
  background: rgba(110, 157, 183, 0.12);
  color: var(--primary-deep);
}

.desktop-sidebar__item--disabled,
.desktop-sidebar__item--disabled:hover {
  background: transparent;
  color: #aeb7c2;
  cursor: not-allowed;
  opacity: 0.72;
}

.desktop-sidebar__item--active {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

/* 侧边栏图标 */
.desktop-sidebar__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.desktop-sidebar__icon svg {
  width: 24px;
  height: 24px;
}

/* 侧边栏文字标签 - 默认隐藏 */
.desktop-sidebar__label {
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
}

.desktop-sidebar:hover .desktop-sidebar__label,
.desktop-sidebar--expanded .desktop-sidebar__label {
  opacity: 1;
}

/* 侧边栏品牌区 */
.desktop-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(220, 230, 232, 0.6);
}

.desktop-sidebar__brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--lavender));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.desktop-sidebar__brand-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--primary-deep);
  opacity: 0;
  transition: opacity 0.2s ease 0.1s;
}

.desktop-sidebar:hover .desktop-sidebar__brand-name,
.desktop-sidebar--expanded .desktop-sidebar__brand-name {
  opacity: 1;
}

/* ========== 768px - 平板及以上 ========== */
@media (min-width: 768px) {
  /* 显示电脑端侧边栏导航，隐藏移动端tabbar */
  .desktop-sidebar {
    display: flex;
  }

  .tabbar {
    display: none;
  }

  /* 主容器调整 - 移除手机壳居中限制 */
  .phone-shell {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    padding-left: 72px;
  }

  .phone-app {
    min-height: 100vh;
    border-radius: 0;
    border: none;
  }

  .screen {
    height: auto;
    min-height: 100vh;
    overflow-y: visible;
    overscroll-behavior: auto;
    touch-action: auto;
    padding: 0 24px 60px;
    padding-left: calc(72px + 24px);
  }

  /* 精选推荐横向滚动 - 强制显示滚动条 */
  #screenGame {
    max-width: 1040px;
    margin: 0 auto;
    padding: 18px 24px 60px;
  }

  .game-library {
    gap: 16px;
  }

  .library-hero {
    border-radius: 20px;
  }
}

/* ========== 1024px - 桌面及以上 ========== */
@media (min-width: 1024px) {
  /* 主容器左侧偏移 */
  .phone-shell {
    padding-left: 72px;
  }

  .screen {
    padding-left: calc(72px + 24px);
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 16px;
  }

  .game-card {
    border-radius: 20px;
  }

  .game-cover {
    height: auto;
  }

  .filter-drawer--open {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
  }

  .filter-row {
    margin-bottom: 0;
  }

  .filter-chips {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

/* ========== 1440px - 大屏限制 ========== */
@media (min-width: 1440px) {
  /* 侧边栏保持展开状态 */
  .desktop-sidebar {
    width: 220px;
  }

  .desktop-sidebar .desktop-sidebar__label {
    opacity: 1;
  }

  .desktop-sidebar__brand-name {
    opacity: 1;
  }

  /* 主容器偏移 */
  .phone-shell {
    padding-left: 220px;
  }

  .screen {
    padding-left: 24px;
    max-width: 1400px;
    margin: 0 auto;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
  }

  #screenGame {
    max-width: 1180px;
  }
}

/* 隐藏手机壳装饰元素 - 电脑端 */
@media (min-width: 768px) {
  .phone-app::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .api-float__button {
    transition: none;
  }
}


/* 精品区响应式补充 */
@media (max-width: 340px) {
  .premium-page__header {
    display: grid;
  }

  .premium-featured-card__content,
  .premium-detail-hero__content {
    max-width: 86%;
  }

  .premium-featured-card h2,
  .premium-detail-hero h1 {
    font-size: 31px;
  }

  .premium-featured-card__actions {
    grid-template-columns: 1fr;
  }

  .premium-detail-preview-grid,
  .premium-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  #screenPremium {
    padding-right: 10px;
    padding-left: 10px;
  }

  .premium-page {
    gap: 20px;
    padding-top: 30px;
  }

  .premium-page__header h1 {
    font-size: 38px;
  }

  .premium-page__header p {
    font-size: 13px;
  }

  .premium-info-button {
    min-height: 36px;
    padding: 0 11px;
  }

  .premium-featured-card {
    gap: 8px;
    height: 252px;
    min-height: 252px;
    aspect-ratio: auto;
    border-radius: 20px;
    padding: 22px 20px 20px;
  }

  .premium-featured-card__content {
    max-width: min(88%, 330px);
    gap: 4px;
  }

  .premium-featured-card h2,
  .premium-detail-hero h1 {
    font-size: 31px;
  }

  .premium-subtitle {
    font-size: 15px;
  }

  .premium-desc {
    font-size: 12px;
  }

  .premium-featured-card .premium-desc {
    margin-top: 2px;
    line-height: 1.45;
    -webkit-line-clamp: 1;
  }

  .premium-featured-card__actions {
    gap: 9px;
    margin-top: 2px;
    width: min(100%, 220px);
  }

  .premium-featured-card .premium-primary-button {
    min-height: 42px;
  }

  .premium-more-grid {
    gap: 10px;
  }

  .premium-pass-card {
    border-radius: 18px;
  }

  .premium-pass-card .game-card__body {
    min-height: 112px;
  }

  .premium-detail-page {
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .premium-detail-topbar {
    margin-right: -10px;
    margin-left: -10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .premium-detail-hero {
    min-height: 252px;
    aspect-ratio: auto;
    border-radius: 20px;
  }

  .premium-detail-hero__content {
    max-width: min(88%, 330px);
    gap: 8px;
    padding: 22px 20px 20px;
  }

  .premium-detail-section {
    margin-top: 10px;
    padding: 12px;
  }

  .premium-feature-grid,
  .premium-detail-preview-grid {
    gap: 8px;
  }

  .premium-feature {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .premium-feature__icon {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 768px) {
  #screenPremium {
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 24px 70px;
  }

  .premium-featured-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: 8px;
    height: clamp(280px, 25vw, 330px);
    min-height: 0;
    padding: 24px 30px;
  }

  .premium-featured-card__content {
    grid-column: auto;
    max-width: min(54%, 560px);
    gap: 6px;
  }

  .premium-featured-card h2 {
    font-size: 32px;
  }

  .premium-featured-card .premium-subtitle {
    font-size: 15px;
    line-height: 1.35;
  }

  .premium-featured-card .premium-desc {
    margin-top: 0;
    line-height: 1.42;
    -webkit-line-clamp: 1;
  }

  .premium-featured-card__actions {
    grid-column: auto;
    align-self: end;
    margin-top: 0;
    width: min(100%, 220px);
  }

  .premium-featured-card .premium-primary-button {
    min-height: 42px;
  }

  .premium-detail-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    align-items: start;
    align-content: start;
    gap: 14px;
    max-width: 1040px;
    margin: 0 auto;
    padding-bottom: 54px;
  }

  .premium-detail-topbar,
  .premium-detail-hero {
    grid-column: 1 / -1;
  }

  .premium-detail-hero {
    height: clamp(280px, 25vw, 330px);
    min-height: 0;
  }

  .premium-detail-hero__content {
    max-width: min(54%, 560px);
    padding: 28px 30px;
  }

  .premium-detail-section {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .premium-more-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    align-items: start;
    gap: 16px;
  }
}

@media (min-width: 1440px) {
  .premium-more-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 18px;
  }

  #screenPremium,
  .premium-detail-page {
    max-width: 1180px;
  }
}
