@font-face {
  font-family: "YanYanBrand";
  src:
    url("/assets/fonts/ShiShiRuYi-XiaoYaCiLi-2.ttf") format("truetype"),
    url("./assets/fonts/ShiShiRuYi-XiaoYaCiLi-2.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YanYanHand";
  src:
    url("/assets/fonts/Slidefu-Regular-2.ttf") format("truetype"),
    url("./assets/fonts/Slidefu-Regular-2.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YanYanInk";
  src:
    url("/assets/fonts/No.246-ShangShouBenMoTi-2.ttf") format("truetype"),
    url("./assets/fonts/No.246-ShangShouBenMoTi-2.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YanYanAlt";
  src:
    url("/assets/fonts/ShanHaiBanRuoTiW-2.ttf") format("truetype"),
    url("./assets/fonts/ShanHaiBanRuoTiW-2.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #172532;
  --muted: #62695c;
  --soft: #edf5f2;
  --paper: #fff9e7;
  --line: #c7d9d4;
  --clay: #2f83a3;
  --clay-dark: #175f83;
  --sage: #6f8350;
  --sky: #2f9bc2;
  --gold: #c59a42;
  --mineral-blue: #176d9c;
  --azurite: #244f9f;
  --malachite: #65aa82;
  --silk-ochre: #c9a657;
  --moss: #67784a;
  --shadow: 0 18px 50px rgba(26, 54, 76, 0.12);
  --font-brand: "YanYanBrand", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-hand: "YanYanHand", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-ink: "YanYanInk", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-alt: "YanYanAlt", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: var(--font-brand);
  --font-sans: var(--font-body);
  --font-display: var(--font-brand);
  --font-brand-title: var(--font-hand);
  --font-brand-body: var(--font-body);
  --font-brand-soft: var(--font-hand);
}

@font-face {
  font-family: "ShangShouBenMo";
  src: url("./assets/fonts/shangshou-benmo-title.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    linear-gradient(135deg, rgba(23, 109, 156, 0.12), transparent 32%),
    linear-gradient(225deg, rgba(101, 170, 130, 0.1), transparent 36%),
    var(--soft);
}

body[data-view="library"] {
  background:
    radial-gradient(circle at 14% 80%, rgba(152, 190, 210, 0.46), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(232, 203, 211, 0.36), transparent 24%),
    linear-gradient(180deg, #f9fbfb, #eef7fa);
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 32px 18px 56px;
}

.surface {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 88px);
  padding: 34px;
  border: 1px solid rgba(139, 117, 92, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 253, 248, 0.92)),
    var(--paper);
  box-shadow: var(--shadow);
}

.surface::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 12px 12px, #8c735d 1px, transparent 1.4px),
    radial-gradient(circle at 38px 27px, #b99467 0.8px, transparent 1.2px);
  background-size: 46px 46px;
}

#app.surface[data-view="library"] {
  --ink: #3a332e;
  --muted: #6f6862;
  --soft: #f4f9fb;
  --paper: #fbfcfb;
  --line: rgba(152, 190, 210, 0.42);
  --clay: #0150b3;
  --clay-dark: #013e8a;
  --sage: #29a5be;
  --sky: #98bed2;
  --gold: #e8cbd3;
  --shadow: 0 22px 58px rgba(1, 80, 179, 0.12);
  --font-brand-title: var(--font-brand);
  --font-brand-body: var(--font-body);
  --font-brand-soft: var(--font-hand);
  border-color: rgba(152, 190, 210, 0.38);
  background:
    radial-gradient(circle at 74% 76%, rgba(232, 203, 211, 0.46) 0 10%, transparent 11%),
    radial-gradient(circle at 72% 30%, rgba(41, 165, 190, 0.2) 0 16%, transparent 17%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 251, 0.94)),
    #fbfcfb;
  box-shadow: var(--shadow);
}

#app.surface[data-view="library"]::before {
  z-index: 0;
  opacity: 0.48;
  background-image:
    radial-gradient(circle at 14px 12px, rgba(52, 47, 43, 0.07) 0.8px, transparent 1.2px),
    radial-gradient(circle at 36px 30px, rgba(1, 80, 179, 0.08) 0.8px, transparent 1.2px),
    linear-gradient(90deg, rgba(52, 47, 43, 0.035) 1px, transparent 1px);
  background-size:
    44px 44px,
    58px 58px,
    17px 100%;
}

#app.surface[data-view="library"]::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -8%;
  bottom: -22%;
  width: min(78vw, 760px);
  height: min(86vw, 820px);
  pointer-events: none;
  border-radius: 48% 47% 24% 24% / 34% 34% 28% 28%;
  background:
    radial-gradient(circle at 56% 35%, rgba(255, 255, 255, 0.54) 0 7%, transparent 8%),
    radial-gradient(circle at 48% 48%, rgba(41, 165, 190, 0.3) 0 16%, transparent 17%),
    linear-gradient(145deg, rgba(1, 80, 179, 0.1), rgba(41, 165, 190, 0.16) 42%, rgba(152, 190, 210, 0.24));
  filter: blur(0.2px);
  opacity: 0.68;
  transform: rotate(-8deg);
  box-shadow:
    inset 0 0 80px rgba(255, 255, 255, 0.52),
    34px -30px 0 rgba(152, 190, 210, 0.16);
}

.view {
  position: relative;
  z-index: 1;
}

.library-view {
  display: grid;
  gap: 28px;
  min-height: calc(100vh - 160px);
  align-content: center;
}

#app[data-view="library"] .library-view {
  gap: 32px;
  font-family: var(--font-brand-body);
}

.library-hero {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

#app[data-view="library"] .library-hero {
  max-width: 820px;
}

.library-hero > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

#app[data-view="library"] .library-hero > p:not(.eyebrow) {
  max-width: 720px;
  color: #665f5b;
  font-size: 17px;
  font-family: var(--font-brand-body);
  font-weight: 400;
}

.library-intro {
  max-width: 680px;
}

#app[data-view="library"] .library-intro {
  max-width: 720px;
}

.creator-entry,
.reward-entry,
.profile-section {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(152, 190, 210, 0.44);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 12%, rgba(232, 203, 211, 0.46), transparent 24%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(244, 249, 251, 0.74));
  box-shadow: 0 16px 34px rgba(1, 80, 179, 0.08);
}

.creator-entry {
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
  align-items: center;
  padding: 20px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.creator-entry:hover {
  border-color: rgba(1, 80, 179, 0.34);
  box-shadow: 0 20px 42px rgba(1, 80, 179, 0.12);
  transform: translateY(-1px);
}

.creator-copy {
  display: grid;
  gap: 8px;
}

.creator-banner-note {
  width: fit-content;
  margin-top: 2px;
  padding: 6px 10px;
  border: 1px solid rgba(1, 80, 179, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: #0150b3;
  font-size: 13px;
  font-weight: 800;
}

#app[data-view="library"] .creator-copy .eyebrow,
#app[data-view="library"] .reward-entry .eyebrow,
#app[data-view="library"] .profile-hero .eyebrow {
  margin-bottom: 4px;
}

.creator-copy p:last-child,
.reward-entry p,
.profile-section p,
.profile-hero p {
  color: #665f5b;
  font-size: 15px;
  line-height: 1.75;
}

.platform-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.platform-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(152, 190, 210, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: #3d342f;
  text-align: left;
  cursor: inherit;
}

.platform-link:hover {
  border-color: rgba(1, 80, 179, 0.38);
  background: rgba(255, 255, 255, 0.86);
}

.platform-link strong,
.platform-link em {
  display: block;
}

.platform-link strong {
  font-size: 14px;
  line-height: 1.25;
}

.platform-link em {
  margin-top: 2px;
  color: #6f6862;
  font-size: 12px;
  font-style: normal;
}

.platform-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #0150b3;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.platform-link.xiaohongshu .platform-logo {
  background: #e94b5f;
}

.platform-link.shipinhao .platform-logo,
.platform-link.wechat .platform-logo {
  background: #29a5be;
}

.platform-link.douyin .platform-logo {
  background: #111;
}

.platform-link.bilibili .platform-logo {
  background: #98bed2;
  color: #0150b3;
}

.reward-entry {
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 0.72fr);
  align-items: center;
  padding: 18px 20px;
}

.reward-meter {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(41, 165, 190, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
}

.reward-meter-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #665f5b;
  font-size: 13px;
}

.reward-meter-head strong {
  color: #0150b3;
}

.reward-track {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: rgba(152, 190, 210, 0.3);
}

.reward-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0150b3, #29a5be, #e8cbd3);
}

.creator-profile-view {
  display: grid;
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.profile-hero {
  display: grid;
  gap: 10px;
  padding: 10px 0 4px;
}

.profile-section {
  padding: 18px;
}

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

.profile-list p {
  padding-left: 12px;
  border-left: 3px solid rgba(41, 165, 190, 0.35);
}

.profile-platforms .platform-link {
  cursor: default;
}

.page-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

.page-back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(74, 143, 186, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--clay-dark);
  cursor: pointer;
  font-weight: 800;
}

.page-back-button:hover {
  border-color: rgba(63, 127, 159, 0.5);
  background: rgba(255, 255, 255, 0.84);
}

.page-back-button span {
  font-size: 20px;
  line-height: 0.8;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.test-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(74, 143, 186, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 10%, rgba(197, 154, 66, 0.16), transparent 26%),
    linear-gradient(145deg, rgba(251, 253, 255, 0.92), rgba(237, 245, 242, 0.72));
  box-shadow: 0 16px 34px rgba(26, 54, 76, 0.08);
}

#app[data-view="library"] .test-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(152, 190, 210, 0.45);
  background:
    radial-gradient(circle at 88% 12%, rgba(232, 203, 211, 0.58), transparent 25%),
    radial-gradient(circle at 10% 100%, rgba(41, 165, 190, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(244, 249, 251, 0.86));
  box-shadow: 0 18px 38px rgba(1, 80, 179, 0.09);
  font-family: var(--font-brand-body);
}

#app[data-view="library"] .test-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.56;
  background-image:
    radial-gradient(circle at 18px 18px, rgba(1, 80, 179, 0.06) 1px, transparent 1.3px),
    linear-gradient(135deg, transparent 0 52%, rgba(152, 190, 210, 0.13) 53%, transparent 60%);
  background-size:
    44px 44px,
    100% 100%;
}

#app[data-view="library"] .test-card > * {
  position: relative;
  z-index: 1;
}

.test-card-top,
.test-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.test-card-top {
  justify-content: space-between;
}

.test-card-top span,
.test-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(23, 95, 131, 0.08);
  color: #175f83;
  font-size: 12px;
  font-weight: 700;
}

#app[data-view="library"] .test-card-top span,
#app[data-view="library"] .test-meta-row span {
  background: rgba(152, 190, 210, 0.2);
  color: #0150b3;
  font-family: var(--font-brand-body);
  font-weight: 700;
}

.test-card-top span:last-child {
  background: rgba(197, 154, 66, 0.16);
  color: #7b6b3f;
}

#app[data-view="library"] .test-card-top span:last-child {
  background: rgba(232, 203, 211, 0.66);
  color: #4c423d;
}

.test-card h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.test-card p {
  color: var(--muted);
  line-height: 1.7;
}

#app[data-view="library"] .test-card p {
  color: #6f6862;
  font-family: var(--font-brand-body);
  font-weight: 400;
}

.test-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay-dark);
  font-family: var(--font-hand);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

#app[data-view="library"] .eyebrow {
  width: fit-content;
  padding: 5px 11px;
  border: 1px solid rgba(152, 190, 210, 0.44);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: #29a5be;
  font-family: var(--font-brand-soft);
  font-size: 13px;
  font-weight: 600;
}

h1,
h2 {
  margin: 0;
  color: #175f83;
  font-family: var(--font-hand);
  font-weight: 600;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.12;
}

#app[data-view="library"] h1 {
  max-width: 760px;
  color: #3d342f;
  font-family: var(--font-brand-title);
  font-size: clamp(52px, 10vw, 120px);
  font-weight: 700;
  line-height: 0.98;
}

h2 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.18;
}

#app[data-view="library"] h2 {
  color: #0150b3;
  font-family: var(--font-brand-title);
  font-weight: 700;
}

p {
  margin: 0;
}

.intro {
  display: grid;
  gap: 24px;
  min-height: calc(100vh - 160px);
  align-content: start;
}

.intro-copy {
  display: grid;
  gap: 14px;
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.playtest-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.playtest-strip span {
  padding: 8px 11px;
  border: 1px solid rgba(139, 117, 92, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.disclaimer {
  max-width: 720px;
  padding-left: 14px;
  border-left: 3px solid rgba(63, 127, 159, 0.42);
  color: #746c63;
  font-size: 13px;
  line-height: 1.7;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  background: var(--clay);
  color: white;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--clay-dark);
}

#app[data-view="library"] .button {
  background: #0150b3;
  font-family: var(--font-brand-body);
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(1, 80, 179, 0.18);
}

#app[data-view="library"] .button:hover {
  background: #013e8a;
}

.button:disabled,
.button:disabled:hover,
input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.button.secondary {
  border-color: rgba(103, 126, 106, 0.36);
  background: transparent;
  color: var(--sage);
}

.button.secondary:hover {
  background: rgba(103, 126, 106, 0.08);
}

#app[data-view="library"] .button.secondary {
  border-color: rgba(41, 165, 190, 0.42);
  background: rgba(255, 255, 255, 0.5);
  color: #0150b3;
  box-shadow: none;
}

#app[data-view="library"] .button.secondary:hover {
  background: rgba(152, 190, 210, 0.16);
}

#app.surface[data-test-id="group_position_sense_v1"] {
  --ink: #2d2530;
  --muted: #665a64;
  --soft: #dae5f5;
  --paper: #f8fbff;
  --line: rgba(118, 177, 225, 0.34);
  --clay: #874154;
  --clay-dark: #6f3143;
  --sage: #874154;
  --sky: #76b1e1;
  --gold: #76b1e1;
  --shadow: 0 18px 50px rgba(135, 65, 84, 0.16);
  border-color: rgba(135, 65, 84, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(248, 251, 255, 0.94)),
    var(--soft);
}

#app.surface[data-test-id="group_position_sense_v1"]::before {
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 12px 12px, rgba(135, 65, 84, 0.32) 1px, transparent 1.4px),
    radial-gradient(circle at 38px 27px, rgba(118, 177, 225, 0.34) 0.8px, transparent 1.2px);
}

#app[data-test-id="group_position_sense_v1"] .eyebrow,
#app[data-test-id="group_position_sense_v1"] h1,
#app[data-test-id="group_position_sense_v1"] h2,
#app[data-test-id="group_position_sense_v1"] .scene-title,
#app[data-test-id="group_position_sense_v1"] .result-name,
#app[data-test-id="group_position_sense_v1"] .result-section h3,
#app[data-test-id="group_position_sense_v1"] .feedback-panel h3,
#app[data-test-id="group_position_sense_v1"] .poster-copy h2,
#app[data-test-id="group_position_sense_v1"] .poster-guide h3,
#app[data-test-id="group_position_sense_v1"] .radar-copy h3 {
  color: #874154;
}

#app[data-test-id="group_position_sense_v1"] .scene-kicker,
#app[data-test-id="group_position_sense_v1"] .choice-label,
#app[data-test-id="group_position_sense_v1"] .speaker,
#app[data-test-id="group_position_sense_v1"] .result-section-title-row span,
#app[data-test-id="group_position_sense_v1"] .poster-top span,
#app[data-test-id="group_position_sense_v1"] .poster-role-stamp {
  color: #874154;
}

#app[data-test-id="group_position_sense_v1"] .button {
  background: #874154;
}

#app[data-test-id="group_position_sense_v1"] .button:hover {
  background: #6f3143;
}

#app[data-test-id="group_position_sense_v1"] .button.secondary {
  border-color: rgba(135, 65, 84, 0.34);
  background: transparent;
  color: #874154;
}

#app[data-test-id="group_position_sense_v1"] .button.secondary:hover {
  background: rgba(135, 65, 84, 0.08);
}

#app[data-test-id="group_position_sense_v1"] .progress-track {
  background: rgba(118, 177, 225, 0.28);
}

#app[data-test-id="group_position_sense_v1"] .progress-fill,
#app[data-test-id="group_position_sense_v1"] .score-fill {
  background: linear-gradient(90deg, #874154, #76b1e1);
}

#app[data-test-id="group_position_sense_v1"] .playtest-strip span,
#app[data-test-id="group_position_sense_v1"] .game-panel,
#app[data-test-id="group_position_sense_v1"] .scene-card,
#app[data-test-id="group_position_sense_v1"] .script-panel,
#app[data-test-id="group_position_sense_v1"] .prompt-card,
#app[data-test-id="group_position_sense_v1"] .result-section,
#app[data-test-id="group_position_sense_v1"] .feedback-panel,
#app[data-test-id="group_position_sense_v1"] .radar-panel,
#app[data-test-id="group_position_sense_v1"] .poster-panel,
#app[data-test-id="group_position_sense_v1"] .poster-card,
#app[data-test-id="group_position_sense_v1"] .redeem-box,
#app[data-test-id="group_position_sense_v1"] .score-row {
  border-color: rgba(118, 177, 225, 0.34);
}

#app[data-test-id="group_position_sense_v1"] .game-panel,
#app[data-test-id="group_position_sense_v1"] .script-panel,
#app[data-test-id="group_position_sense_v1"] .prompt-card,
#app[data-test-id="group_position_sense_v1"] .result-section,
#app[data-test-id="group_position_sense_v1"] .feedback-panel,
#app[data-test-id="group_position_sense_v1"] .radar-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(218, 229, 245, 0.54)),
    rgba(255, 255, 255, 0.84);
}

#app[data-test-id="group_position_sense_v1"] .scene-card,
#app[data-test-id="group_position_sense_v1"] .scene-visual {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.86) 0 9%, transparent 10%),
    linear-gradient(120deg, rgba(118, 177, 225, 0.28), transparent 46%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(218, 229, 245, 0.82)),
    #dae5f5;
}

#app[data-test-id="group_position_sense_v1"] .ink-sun {
  background: rgba(118, 177, 225, 0.32);
  box-shadow: 0 0 0 9px rgba(118, 177, 225, 0.1);
}

#app[data-test-id="group_position_sense_v1"] .ink-mountain {
  background: rgba(118, 177, 225, 0.28);
}

#app[data-test-id="group_position_sense_v1"] .ink-mountain.front,
#app[data-test-id="group_position_sense_v1"] .ink-object {
  color: rgba(135, 65, 84, 0.68);
  border-color: rgba(135, 65, 84, 0.34);
}

#app[data-test-id="group_position_sense_v1"] .bubble {
  color: #4b3040;
}

#app[data-test-id="group_position_sense_v1"] .bubble.me {
  background: rgba(218, 229, 245, 0.9);
  border-color: rgba(118, 177, 225, 0.24);
}

#app[data-test-id="group_position_sense_v1"] .bubble.them {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(135, 65, 84, 0.18);
  color: #4b3040;
}

#app[data-test-id="group_position_sense_v1"] .avatar.self {
  box-shadow: 0 0 0 3px rgba(118, 177, 225, 0.18);
}

#app[data-test-id="group_position_sense_v1"] .avatar.other {
  box-shadow: 0 0 0 3px rgba(135, 65, 84, 0.14);
}

#app[data-test-id="group_position_sense_v1"] .option {
  border-color: rgba(118, 177, 225, 0.3);
  background: rgba(255, 255, 255, 0.86);
  color: #3a2d38;
}

#app[data-test-id="group_position_sense_v1"] .option-key {
  background: rgba(218, 229, 245, 0.92);
  color: #874154;
}

#app[data-test-id="group_position_sense_v1"] .option.selected {
  border-color: rgba(135, 65, 84, 0.68);
  background:
    linear-gradient(135deg, rgba(218, 229, 245, 0.96), rgba(255, 255, 255, 0.94));
  color: #3a2d38;
  box-shadow:
    inset 0 0 0 1px rgba(135, 65, 84, 0.22),
    0 12px 24px rgba(135, 65, 84, 0.12);
}

#app[data-test-id="group_position_sense_v1"] .option.selected .option-key {
  background: #874154;
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  #app[data-test-id="group_position_sense_v1"] .option:hover {
    border-color: rgba(135, 65, 84, 0.68);
    background:
      linear-gradient(135deg, rgba(218, 229, 245, 0.96), rgba(255, 255, 255, 0.94));
    color: #3a2d38;
  }

  #app[data-test-id="group_position_sense_v1"] .option:hover .option-key {
    background: #874154;
    color: #fff;
  }
}

.progress-row {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(139, 117, 92, 0.18);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--clay), var(--gold));
}

.question-layout,
.game-layout {
  display: grid;
  gap: 14px;
}

.game-stage {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1fr);
  gap: 16px;
  align-items: stretch;
  min-height: min(660px, calc(100vh - 190px));
}

.game-panel {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  align-self: stretch;
  min-height: 0;
  padding: 16px;
  border: 1px solid rgba(74, 143, 186, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 245, 0.94), rgba(239, 247, 249, 0.88)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(26, 54, 76, 0.1);
}

.question-text {
  max-width: 720px;
  font-size: clamp(22px, 3.8vw, 32px);
  line-height: 1.45;
}

.question-text.compact {
  font-size: clamp(21px, 3.2vw, 28px);
}

.tip {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.scene-block {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 12px;
  min-height: 0;
}

.scene-block.animated-scene {
  animation: sceneEnter 560ms ease both;
}

.scene-card {
  position: relative;
  display: grid;
  justify-self: center;
  width: min(100%, 520px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(74, 143, 186, 0.24);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(251, 253, 255, 0.72), rgba(232, 244, 250, 0.54)),
    rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.scene-visual {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.86) 0 9%, transparent 10%),
    linear-gradient(120deg, rgba(90, 111, 93, 0.13), transparent 42%),
    linear-gradient(180deg, rgba(255, 253, 245, 0.96), rgba(236, 226, 207, 0.72)),
    #efe5d3;
  box-shadow: inset 0 0 0 1px rgba(89, 74, 55, 0.12);
}

.scene-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 244, 209, 0.18) 46%, transparent 56%),
    radial-gradient(circle at 52% 42%, rgba(255, 244, 209, 0.16), transparent 28%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: softLightSweep 2400ms ease 260ms both;
}

.scene-card.reading-overlay::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, rgba(7, 31, 48, 0.18) 22%, rgba(246, 240, 225, 0.88) 78%, rgba(246, 240, 225, 0.95) 100%);
}

.scene-art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  animation: sceneDrift 9s ease-in-out infinite alternate;
}

.scene-art.fixed-art {
  padding: 0;
  animation: sceneDrift 12s ease-in-out infinite alternate;
}

.scene-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.scene-focus {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: 28%;
  height: 18%;
  border: 2px solid rgba(255, 222, 143, 0.5);
  border-radius: 50%;
  opacity: 0;
  filter: blur(0.2px);
  box-shadow:
    0 0 0 8px rgba(255, 222, 143, 0.08),
    0 0 34px rgba(255, 222, 143, 0.34);
  animation: focusPulse 2600ms ease 780ms both;
}

.scene-focus.bathroom {
  left: 38%;
  top: 29%;
  width: 30%;
  height: 23%;
  transform: rotate(-4deg);
}

.scene-focus.kitchen {
  left: 34%;
  top: 23%;
  width: 28%;
  height: 18%;
}

.scene-focus.phone {
  left: 39%;
  top: 40%;
  width: 23%;
  height: 18%;
  transform: rotate(-8deg);
}

.scene-focus.food {
  left: 39%;
  top: 41%;
  width: 25%;
  height: 16%;
}

.scene-focus.clock {
  left: 45%;
  top: 23%;
  width: 22%;
  height: 14%;
}

.scene-focus.bedroom {
  left: 33%;
  top: 43%;
  width: 34%;
  height: 15%;
}

.scene-focus.money {
  left: 35%;
  top: 37%;
  width: 33%;
  height: 18%;
  transform: rotate(-5deg);
}

.scene-focus.photo {
  left: 34%;
  top: 31%;
  width: 32%;
  height: 22%;
  transform: rotate(4deg);
}

.scene-focus.family {
  left: 36%;
  top: 30%;
  width: 29%;
  height: 21%;
}

.scene-focus.gift {
  left: 35%;
  top: 39%;
  width: 33%;
  height: 18%;
}

.scene-focus.repair {
  left: 35%;
  top: 31%;
  width: 32%;
  height: 21%;
}

.scene-focus.weekend {
  left: 32%;
  top: 40%;
  width: 37%;
  height: 17%;
}

.scene-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at 18px 22px, rgba(86, 70, 48, 0.16) 1px, transparent 1.4px),
    radial-gradient(circle at 44px 12px, rgba(86, 70, 48, 0.12) 0.8px, transparent 1.2px);
  background-size: 58px 48px;
}

.ink-sun {
  position: absolute;
  top: 28px;
  right: 34px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(63, 127, 159, 0.18);
  box-shadow: 0 0 0 9px rgba(63, 127, 159, 0.06);
}

.ink-mountain {
  position: absolute;
  left: -18px;
  right: -18px;
  bottom: 50px;
  height: 116px;
  background: rgba(74, 86, 72, 0.24);
  clip-path: polygon(0 76%, 12% 56%, 23% 70%, 38% 36%, 51% 62%, 62% 42%, 76% 68%, 89% 45%, 100% 76%, 100% 100%, 0 100%);
  filter: blur(0.2px);
}

.ink-mountain.front {
  bottom: 28px;
  height: 90px;
  background: rgba(37, 34, 31, 0.22);
  clip-path: polygon(0 74%, 16% 52%, 31% 75%, 47% 38%, 63% 70%, 80% 48%, 100% 76%, 100% 100%, 0 100%);
}

.ink-branch {
  position: absolute;
  left: 22px;
  top: 18px;
  width: 96px;
  height: 72px;
  border-left: 3px solid rgba(37, 34, 31, 0.38);
  border-bottom: 2px solid rgba(37, 34, 31, 0.26);
  border-radius: 0 0 0 42px;
  transform: rotate(-14deg);
}

.ink-branch::before,
.ink-branch::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 18px;
  border-radius: 50%;
  background: rgba(103, 126, 106, 0.28);
}

.ink-branch::before {
  left: 18px;
  top: 10px;
  transform: rotate(28deg);
}

.ink-branch::after {
  left: 45px;
  top: 34px;
  transform: rotate(-18deg);
}

.ink-floor {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 32px;
  height: 16px;
  border-radius: 50%;
  background: rgba(37, 34, 31, 0.14);
  filter: blur(3px);
}

.ink-object {
  position: absolute;
  border-color: rgba(37, 34, 31, 0.36);
  color: rgba(37, 34, 31, 0.58);
}

.ink-object.primary {
  left: 30px;
  bottom: 46px;
  width: 112px;
  height: 78px;
  border: 2px solid rgba(37, 34, 31, 0.28);
  border-radius: 52% 46% 48% 50% / 38% 42% 58% 56%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.62), transparent 28%),
    rgba(255, 253, 245, 0.66);
  box-shadow: 0 12px 26px rgba(37, 34, 31, 0.12);
}

.ink-object.secondary {
  right: 30px;
  bottom: 88px;
  width: 86px;
  height: 58px;
  border: 2px solid rgba(37, 34, 31, 0.22);
  border-radius: 44% 56% 52% 48% / 52% 44% 56% 48%;
  background: rgba(255, 253, 245, 0.48);
}

.ink-object::before,
.ink-object::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.ink-object.primary.bathroom {
  width: 96px;
  height: 78px;
  border-radius: 48% 48% 42% 42%;
}

.ink-object.primary.bathroom::before {
  inset: 13px 20px 22px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.ink-object.primary.bathroom::after {
  left: 28px;
  right: 28px;
  bottom: -14px;
  height: 22px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 16px 16px;
}

.ink-object.secondary.bathroom {
  width: 86px;
  height: 48px;
  border-radius: 8px 8px 46% 46%;
}

.ink-object.secondary.bathroom::before {
  left: 12px;
  right: 12px;
  top: 12px;
  height: 16px;
  border-bottom: 3px solid currentColor;
  border-radius: 50%;
}

.ink-object.primary.kitchen {
  width: 112px;
  height: 66px;
  border-radius: 0 0 52% 52%;
}

.ink-object.primary.kitchen::before {
  left: 14px;
  right: 14px;
  top: 16px;
  height: 20px;
  border-bottom: 3px solid currentColor;
  border-radius: 50%;
}

.ink-object.primary.kitchen::after {
  right: -12px;
  top: 16px;
  width: 20px;
  height: 22px;
  border: 3px solid currentColor;
  border-left: 0;
  border-radius: 0 14px 14px 0;
}

.ink-object.secondary.kitchen {
  width: 76px;
  height: 76px;
  border-radius: 50%;
}

.ink-object.secondary.kitchen::before {
  left: 13px;
  right: 13px;
  top: 22px;
  height: 22px;
  border-bottom: 3px solid currentColor;
  border-radius: 50%;
}

.ink-object.primary.phone {
  width: 64px;
  height: 102px;
  border-radius: 14px;
  transform: rotate(-8deg);
}

.ink-object.primary.phone::before {
  inset: 10px;
  border: 2px solid currentColor;
  border-radius: 9px;
}

.ink-object.primary.phone::after {
  left: 28px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.ink-object.secondary.phone,
.ink-object.secondary.food {
  width: 100px;
  height: 56px;
  border-radius: 50%;
  transform: rotate(4deg);
}

.ink-object.secondary.phone::before,
.ink-object.secondary.food::before {
  inset: 14px 20px;
  border-top: 3px solid currentColor;
  border-radius: 50%;
}

.ink-object.primary.food {
  width: 84px;
  height: 108px;
  border-radius: 8px;
  transform: rotate(6deg);
}

.ink-object.primary.food::before {
  left: 16px;
  top: 22px;
  width: 50px;
  height: 0;
  border-top: 3px solid currentColor;
  box-shadow:
    0 18px 0 currentColor,
    0 36px 0 currentColor;
}

.ink-object.primary.clock {
  width: 88px;
  height: 88px;
  border-radius: 50%;
}

.ink-object.primary.clock::before {
  left: 42px;
  top: 18px;
  width: 3px;
  height: 28px;
  background: currentColor;
  transform-origin: bottom;
  transform: rotate(0deg);
}

.ink-object.primary.clock::after {
  left: 42px;
  top: 42px;
  width: 28px;
  height: 3px;
  background: currentColor;
  transform-origin: left;
  transform: rotate(35deg);
}

.ink-object.secondary.clock {
  width: 78px;
  height: 86px;
  border-radius: 40% 40% 18% 18%;
}

.ink-object.secondary.clock::before {
  left: 18px;
  right: 18px;
  top: -12px;
  height: 28px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
}

.ink-object.primary.bedroom {
  width: 124px;
  height: 58px;
  border-radius: 8px 8px 28px 28px;
}

.ink-object.primary.bedroom::before {
  left: 12px;
  top: -28px;
  width: 70px;
  height: 34px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.ink-object.primary.bedroom::after {
  right: 12px;
  bottom: 14px;
  width: 34px;
  height: 16px;
  border-top: 3px solid currentColor;
  border-radius: 50%;
}

.ink-object.secondary.bedroom {
  width: 88px;
  height: 34px;
  border-radius: 8px;
}

.ink-object.secondary.bedroom::before {
  left: 16px;
  right: 16px;
  top: 13px;
  height: 0;
  border-top: 3px solid currentColor;
  box-shadow: 0 8px 0 rgba(37, 34, 31, 0.2);
}

.ink-object.primary.money {
  width: 90px;
  height: 116px;
  border-radius: 8px;
  transform: rotate(-5deg);
}

.ink-object.primary.money::before {
  left: 18px;
  top: 22px;
  width: 54px;
  height: 0;
  border-top: 3px solid currentColor;
  box-shadow:
    0 20px 0 currentColor,
    0 40px 0 currentColor;
}

.ink-object.primary.money::after {
  right: 14px;
  bottom: 16px;
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.ink-object.secondary.money {
  width: 92px;
  height: 58px;
  border-radius: 8px 8px 20px 20px;
}

.ink-object.secondary.money::before {
  left: 10px;
  right: 10px;
  top: -16px;
  height: 28px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
}

.ink-object.primary.photo {
  width: 116px;
  height: 84px;
  border-radius: 8px;
  transform: rotate(-3deg);
}

.ink-object.primary.photo::before {
  inset: 11px;
  border: 3px solid currentColor;
  border-radius: 4px;
  background:
    radial-gradient(circle at 32% 36%, currentColor 0 7%, transparent 8%),
    radial-gradient(circle at 62% 36%, currentColor 0 7%, transparent 8%),
    linear-gradient(135deg, transparent 54%, rgba(37, 34, 31, 0.18) 55%);
  opacity: 0.72;
}

.ink-object.secondary.photo {
  width: 54px;
  height: 88px;
  border-radius: 12px;
  transform: rotate(8deg);
}

.ink-object.secondary.photo::before {
  inset: 9px;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.ink-object.primary.family {
  width: 86px;
  height: 118px;
  border-radius: 44px 44px 8px 8px;
}

.ink-object.primary.family::before {
  left: 35px;
  top: 52px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
}

.ink-object.secondary.family {
  width: 104px;
  height: 58px;
  border-radius: 50%;
}

.ink-object.secondary.family::before {
  left: 18px;
  right: 18px;
  top: 24px;
  border-top: 3px solid currentColor;
}

.ink-object.primary.gift {
  width: 96px;
  height: 78px;
  border-radius: 8px;
}

.ink-object.primary.gift::before {
  left: 45px;
  top: 0;
  bottom: 0;
  border-left: 3px solid currentColor;
}

.ink-object.primary.gift::after {
  left: 0;
  right: 0;
  top: 24px;
  border-top: 3px solid currentColor;
}

.ink-object.secondary.gift {
  width: 80px;
  height: 96px;
  border-radius: 8px;
}

.ink-object.secondary.gift::before {
  left: 14px;
  right: 14px;
  top: 20px;
  border-top: 3px solid currentColor;
  box-shadow:
    0 20px 0 rgba(37, 34, 31, 0.22),
    0 40px 0 rgba(37, 34, 31, 0.16);
}

.ink-object.primary.repair {
  width: 112px;
  height: 64px;
  border-radius: 48% 48% 48% 16px;
}

.ink-object.primary.repair::before {
  left: 22px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    24px 0 0 currentColor,
    48px 0 0 currentColor;
}

.ink-object.secondary.repair {
  width: 92px;
  height: 54px;
  border-radius: 48% 48% 16px 48%;
}

.ink-object.primary.weekend,
.ink-object.primary.sofa {
  width: 126px;
  height: 56px;
  border-radius: 26px 26px 12px 12px;
}

.ink-object.primary.weekend::before,
.ink-object.primary.sofa::before {
  left: -10px;
  top: 18px;
  width: 28px;
  height: 44px;
  border: 3px solid currentColor;
  border-radius: 18px;
}

.ink-object.primary.weekend::after,
.ink-object.primary.sofa::after {
  right: -10px;
  top: 18px;
  width: 28px;
  height: 44px;
  border: 3px solid currentColor;
  border-radius: 18px;
}

.ink-object.secondary.weekend {
  width: 76px;
  height: 96px;
  border-radius: 8px;
  transform: rotate(5deg);
}

.ink-object.secondary.weekend::before {
  left: 14px;
  right: 14px;
  top: 22px;
  border-top: 3px solid currentColor;
  box-shadow:
    0 18px 0 currentColor,
    0 36px 0 rgba(37, 34, 31, 0.2);
}

.art-caption {
  position: absolute;
  left: 18px;
  top: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 253, 245, 0.68);
  color: rgba(90, 74, 54, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.scene-visual.bathroom {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.86) 0 9%, transparent 10%),
    linear-gradient(120deg, rgba(91, 113, 139, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(255, 253, 245, 0.96), rgba(222, 232, 226, 0.7)),
    #e9efe8;
}

.scene-visual.kitchen,
.scene-visual.food,
.scene-visual.gift,
.scene-visual.weekend {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.86) 0 9%, transparent 10%),
    linear-gradient(120deg, rgba(74, 143, 186, 0.15), transparent 46%),
    linear-gradient(180deg, rgba(251, 253, 255, 0.96), rgba(214, 231, 239, 0.72)),
    #e5f0f5;
}

.scene-visual.phone,
.scene-visual.clock,
.scene-visual.money,
.scene-visual.photo,
.scene-visual.repair {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.86) 0 9%, transparent 10%),
    linear-gradient(120deg, rgba(63, 127, 159, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(251, 253, 255, 0.96), rgba(208, 226, 237, 0.74)),
    #e2eef4;
}

.scene-visual.bedroom,
.scene-visual.family,
.scene-visual.sofa {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.86) 0 9%, transparent 10%),
    linear-gradient(120deg, rgba(103, 126, 106, 0.16), transparent 46%),
    linear-gradient(180deg, rgba(255, 253, 245, 0.96), rgba(218, 229, 211, 0.7)),
    #e5eddc;
}

.scene-content {
  position: static;
  z-index: 1;
  display: grid;
  justify-self: center;
  gap: 10px;
  width: min(100%, 460px);
  align-content: start;
}

.script-panel {
  padding: 12px;
  border: 1px solid rgba(41, 88, 116, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 245, 0.94), rgba(239, 247, 249, 0.88)),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(7, 31, 48, 0.1);
}

.scene-heading,
.prompt-card {
  animation: bubbleIn 320ms ease both;
}

.scene-heading {
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  animation-delay: 180ms;
}

.scene-kicker {
  margin-bottom: 4px;
  color: #7b6b3f;
  font-family: var(--font-hand);
  font-size: 13px;
  font-weight: 600;
}

.scene-title {
  color: #175f83;
  font-family: var(--font-hand);
  font-size: clamp(20px, 2.7vw, 28px);
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.86);
}

.dialogue {
  display: grid;
  gap: 8px;
  max-width: 640px;
}

.bubble {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: min(96%, 390px);
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.5;
  animation: bubbleIn 260ms ease both;
  color: #234457;
  font-family: var(--font-hand);
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(7, 31, 48, 0.08);
  backdrop-filter: none;
}

.bubble.me {
  justify-self: start;
  background: rgba(255, 251, 232, 0.9);
  border: 1px solid rgba(197, 154, 66, 0.18);
}

.bubble.them {
  justify-self: end;
  background: rgba(231, 243, 238, 0.9);
  border: 1px solid rgba(101, 170, 130, 0.18);
  color: #496342;
}

.bubble.latest {
  box-shadow: 0 10px 28px rgba(26, 54, 76, 0.08);
}

.speaker {
  color: #9b7a2f;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
}

.avatar {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, rgba(37, 34, 31, 0.18) 0 10%, transparent 11%),
    radial-gradient(circle at 50% 88%, rgba(37, 34, 31, 0.18) 0 22%, transparent 23%),
    rgba(255, 253, 248, 0.84);
  border: 1px solid rgba(37, 34, 31, 0.16);
}

.avatar::before,
.avatar::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(37, 34, 31, 0.48);
}

.avatar::before {
  left: 11px;
}

.avatar::after {
  right: 11px;
}

.avatar.self {
  box-shadow: 0 0 0 3px rgba(91, 113, 139, 0.12);
}

.avatar.other {
  box-shadow: 0 0 0 3px rgba(63, 127, 159, 0.12);
}

.bubble-body {
  display: grid;
  gap: 3px;
}

.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-content: start;
}

.choice-stage {
  display: grid;
  gap: 10px;
  animation: choiceIn 260ms ease both;
  min-height: 0;
}

.voice-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.voice-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(74, 143, 186, 0.26);
  border-radius: 8px;
  background: rgba(251, 253, 255, 0.68);
  color: var(--clay-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.voice-button:hover,
.voice-button.active {
  border-color: rgba(63, 127, 159, 0.72);
  background: rgba(63, 127, 159, 0.1);
}

.voice-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(63, 127, 159, 0.12);
  color: var(--sky);
  font-size: 12px;
  line-height: 1;
}

.choice-label {
  color: #7b6b3f;
  font-family: var(--font-hand);
  font-size: 14px;
  font-weight: 600;
}

.option {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(41, 88, 116, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.84);
  color: #2d4652;
  text-align: left;
  cursor: pointer;
  animation: choiceIn 260ms ease both;
}

.option.selected {
  border-color: rgba(197, 154, 66, 0.72);
  background:
    linear-gradient(135deg, rgba(255, 250, 231, 0.98), rgba(232, 245, 238, 0.94));
  color: #12364a;
}

.option.selected {
  box-shadow:
    inset 0 0 0 1px rgba(197, 154, 66, 0.34),
    0 12px 24px rgba(7, 31, 48, 0.1);
}

.option-key {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(35, 93, 124, 0.1);
  color: #175f83;
  font-family: var(--font-hand);
  font-weight: 600;
}

.option.selected .option-key {
  background: rgba(197, 154, 66, 0.9);
  color: #fff9e7;
}

@media (hover: hover) and (pointer: fine) {
  .option:hover {
    border-color: rgba(197, 154, 66, 0.72);
    background:
      linear-gradient(135deg, rgba(255, 250, 231, 0.98), rgba(232, 245, 238, 0.94));
    color: #12364a;
  }

  .option:hover .option-key {
    background: rgba(197, 154, 66, 0.9);
    color: #fff9e7;
  }
}

.option-text {
  align-self: center;
  line-height: 1.45;
  font-size: 14px;
}

.prompt-card {
  position: static;
  max-width: none;
  padding: 12px 14px;
  border: 1px solid rgba(74, 143, 186, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.9);
  color: #102e42;
  box-shadow: 0 14px 32px rgba(7, 31, 48, 0.16);
  backdrop-filter: blur(12px);
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.center-view {
  display: grid;
  gap: 20px;
  min-height: calc(100vh - 160px);
  align-content: start;
}

.benefits {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefits li {
  padding: 12px 14px;
  border-left: 3px solid rgba(103, 126, 106, 0.55);
  background: rgba(103, 126, 106, 0.08);
  line-height: 1.55;
}

.payment-steps {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(197, 154, 66, 0.24);
  border-radius: 8px;
  background: rgba(255, 249, 231, 0.58);
}

.payment-title {
  margin: 0;
  color: #175f83;
  font-family: var(--font-hand);
  font-size: 18px;
  font-weight: 600;
}

.payment-steps ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25em;
  color: var(--text);
  line-height: 1.65;
}

.payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.payment-note strong {
  color: #8b6d2c;
  font-family: var(--font-hand);
  font-size: 15px;
}

.payment-box {
  display: grid;
  gap: 12px;
  width: min(100%, 620px);
  padding: 18px;
  border: 1px solid rgba(74, 143, 186, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 143, 186, 0.08), transparent 58%),
    rgba(251, 253, 255, 0.78);
  box-shadow: 0 14px 30px rgba(7, 31, 48, 0.08);
}

.payment-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-methods span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(74, 143, 186, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--clay-dark);
  font-size: 13px;
  font-weight: 800;
}

.payment-button {
  justify-self: start;
  min-width: 220px;
}

.payment-hint,
.payment-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
}

.payment-hint {
  color: var(--muted);
}

.payment-error {
  color: #9f3f32;
}

.prepay-preview {
  display: grid;
  gap: 14px;
  width: min(100%, 760px);
  padding: 16px;
  border: 1px solid rgba(197, 154, 66, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 249, 231, 0.72), rgba(251, 253, 255, 0.78)),
    rgba(255, 253, 245, 0.82);
  box-shadow: 0 16px 36px rgba(7, 31, 48, 0.1);
}

.prepay-preview-head {
  display: grid;
  gap: 6px;
}

.prepay-preview-head h2 {
  margin: 0;
  color: #175f83;
  font-family: var(--font-hand);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0;
}

.prepay-preview-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.prepay-preview-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding-right: 4px;
}

.prepay-preview-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(74, 143, 186, 0.18);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.88);
}

.prepay-preview-card span {
  color: rgba(23, 95, 131, 0.78);
  font-family: var(--font-hand);
  font-size: 13px;
  font-weight: 600;
}

.prepay-preview-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
}

.prepay-preview-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.redeem-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(74, 143, 186, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 143, 186, 0.08), transparent 58%),
    rgba(251, 253, 255, 0.74);
}

.redeem-label {
  color: #175f83;
  font-family: var(--font-hand);
  font-size: 17px;
  font-weight: 600;
}

.redeem-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.redeem-input {
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid rgba(74, 143, 186, 0.34);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 253, 245, 0.92);
  font: inherit;
  text-transform: uppercase;
  outline: none;
}

.redeem-input:focus {
  border-color: rgba(23, 95, 131, 0.62);
  box-shadow: 0 0 0 3px rgba(74, 143, 186, 0.12);
}

.redeem-hint,
.redeem-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.redeem-hint {
  color: var(--muted);
}

.redeem-error {
  color: #9f3f32;
}

.result-head {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
}

.result-name {
  color: #175f83;
  font-family: var(--font-hand);
  font-weight: 600;
}

.one-liner {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.poster-panel {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(240px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(74, 143, 186, 0.24);
  border-radius: 8px;
  background: rgba(251, 253, 255, 0.72);
}

.poster-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  gap: 12px;
  aspect-ratio: 9 / 16;
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid rgba(74, 143, 186, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.9) 0 8%, transparent 9%),
    linear-gradient(145deg, rgba(63, 127, 159, 0.16), rgba(251, 253, 255, 0.82) 45%, rgba(93, 127, 146, 0.16)),
    var(--paper);
  box-shadow: 0 18px 42px rgba(26, 54, 76, 0.14);
}

.poster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 18px 22px, rgba(35, 93, 124, 0.22) 1px, transparent 1.4px),
    radial-gradient(circle at 44px 12px, rgba(35, 93, 124, 0.14) 0.8px, transparent 1.2px);
  background-size: 58px 48px;
}

.poster-top,
.poster-copy,
.poster-foot,
.poster-figure {
  position: relative;
  z-index: 1;
}

.poster-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  color: #175f83;
  font-family: var(--font-hand);
  font-size: 12px;
  font-weight: 600;
}

.poster-top p,
.poster-top span {
  margin: 0;
}

.poster-top span {
  color: #7b6b3f;
  font-weight: 600;
}

.poster-figure {
  position: relative;
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.poster-role-image {
  display: block;
  width: min(108%, 202px);
  height: min(108%, 334px);
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(26, 54, 76, 0.16);
}

.poster-aura {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.86), rgba(74, 143, 186, 0.18) 62%, transparent 63%);
  filter: blur(0.2px);
}

.poster-person {
  position: relative;
  width: 118px;
  height: 164px;
  border-radius: 58px 58px 32px 32px;
  background:
    radial-gradient(circle at 50% 22%, rgba(251, 253, 255, 0.96) 0 22%, transparent 23%),
    linear-gradient(180deg, rgba(63, 127, 159, 0.72), rgba(35, 93, 124, 0.74));
  box-shadow: 0 20px 36px rgba(26, 54, 76, 0.16);
}

.poster-person::before,
.poster-person::after {
  content: "";
  position: absolute;
  top: 32px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(37, 34, 31, 0.42);
}

.poster-person::before {
  left: 45px;
}

.poster-person::after {
  right: 45px;
}

.poster-prop {
  position: absolute;
  right: 42px;
  bottom: 24px;
  width: 76px;
  height: 52px;
  border: 2px solid rgba(35, 93, 124, 0.32);
  border-radius: 44% 56% 52% 48% / 52% 44% 56% 48%;
  background: rgba(251, 253, 255, 0.58);
}

.poster-prop::before,
.poster-prop::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.poster-role-stamp {
  position: static;
  display: grid;
  place-items: center;
  width: fit-content;
  min-width: 58px;
  min-height: 28px;
  padding: 4px 12px;
  border: 2px solid rgba(197, 154, 66, 0.62);
  border-radius: 999px;
  color: #9b7a2f;
  background: rgba(255, 249, 231, 0.82);
  font-family: var(--font-hand);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(26, 54, 76, 0.08);
}

.poster-copy {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding-top: 2px;
}

.poster-copy h2 {
  color: #175f83;
  font-family: var(--font-hand);
  font-size: clamp(23px, 7vw, 28px);
  font-weight: 600;
  line-height: 1.16;
}

.poster-copy p {
  color: #435f62;
  font-size: 13px;
  line-height: 1.55;
}

.poster-foot {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.poster-guide {
  display: grid;
  gap: 10px;
}

.poster-guide h3 {
  margin: 0;
  color: #175f83;
  font-family: var(--font-hand);
  font-size: 20px;
  font-weight: 600;
}

.poster-guide p:last-child {
  color: var(--muted);
  line-height: 1.75;
}

.poster-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.poster-actions .button {
  min-width: 132px;
}

.poster-status {
  padding: 10px 12px;
  border: 1px solid rgba(74, 143, 186, 0.22);
  border-radius: 8px;
  color: #175f83;
  background: rgba(251, 253, 255, 0.7);
  font-size: 13px;
}

.poster-card.S .poster-person {
  background:
    radial-gradient(circle at 50% 22%, rgba(251, 253, 255, 0.96) 0 22%, transparent 23%),
    linear-gradient(180deg, #4f8eae, #235d7c);
}

.poster-card.S .poster-prop {
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.8);
}

.poster-card.S .poster-prop::before {
  left: 14px;
  top: 14px;
  width: 14px;
  height: 8px;
  border-left: 3px solid #9b7a2f;
  border-bottom: 3px solid #9b7a2f;
  transform: rotate(-45deg);
}

.poster-card.S .poster-prop::after {
  left: 36px;
  right: 12px;
  top: 19px;
  border-top: 3px solid rgba(23, 95, 131, 0.5);
  box-shadow: 0 15px 0 rgba(23, 95, 131, 0.36);
}

.poster-card.E .poster-person {
  background:
    radial-gradient(circle at 50% 22%, rgba(251, 253, 255, 0.96) 0 22%, transparent 23%),
    linear-gradient(180deg, #6aa7bd, #3f7f9f);
}

.poster-card.E .poster-prop {
  right: 32px;
  bottom: 26px;
  width: 88px;
  height: 36px;
  border-radius: 999px;
  background:
    linear-gradient(120deg, rgba(255, 253, 245, 0.88), rgba(101, 170, 130, 0.24)),
    rgba(251, 253, 255, 0.58);
  transform: rotate(-18deg);
}

.poster-card.E .poster-prop::before {
  left: 6px;
  top: 50%;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(197, 154, 66, 0.72);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 20%, rgba(197, 154, 66, 0.8) 0 9%, transparent 10%),
    radial-gradient(circle at 24% 64%, rgba(101, 170, 130, 0.72) 0 10%, transparent 11%),
    radial-gradient(circle at 72% 62%, rgba(47, 155, 194, 0.68) 0 10%, transparent 11%);
  transform: translateY(-50%);
}

.poster-card.E .poster-prop::after {
  left: 38px;
  right: 13px;
  top: 16px;
  height: 4px;
  border-radius: 999px;
  background: rgba(23, 95, 131, 0.36);
  box-shadow:
    10px -7px 0 -1px rgba(197, 154, 66, 0.72),
    22px 8px 0 -1px rgba(101, 170, 130, 0.72);
}

.poster-card.D .poster-person {
  background:
    radial-gradient(circle at 50% 22%, rgba(251, 253, 255, 0.96) 0 22%, transparent 23%),
    linear-gradient(180deg, #5d7f92, #315f75);
}

.poster-card.D .poster-prop {
  width: 72px;
  height: 42px;
  border-radius: 8px;
  background: rgba(231, 243, 238, 0.72);
}

.poster-card.D .poster-prop::before {
  right: -8px;
  top: 13px;
  width: 7px;
  height: 16px;
  border-radius: 0 4px 4px 0;
  background: rgba(35, 93, 124, 0.34);
}

.poster-card.D .poster-prop::after {
  left: 8px;
  top: 8px;
  width: 18px;
  height: 26px;
  border-radius: 5px;
  background: rgba(197, 154, 66, 0.52);
}

.poster-card.R .poster-person {
  background:
    radial-gradient(circle at 50% 22%, rgba(251, 253, 255, 0.96) 0 22%, transparent 23%),
    linear-gradient(180deg, #4a8fba, #285d86);
}

.poster-card.R .poster-prop {
  width: 86px;
  height: 68px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(#9b7a2f, #9b7a2f) 50% 18px / 58px 3px no-repeat,
    linear-gradient(#9b7a2f, #9b7a2f) 50% 18px / 3px 42px no-repeat,
    radial-gradient(ellipse at 50% 62px, rgba(255, 253, 245, 0.82) 0 35%, transparent 36%);
  transform: rotate(-3deg);
}

.poster-card.R .poster-prop::before {
  left: 7px;
  top: 31px;
  width: 27px;
  height: 13px;
  border: 2px solid rgba(23, 95, 131, 0.45);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  background: rgba(255, 253, 245, 0.5);
}

.poster-card.R .poster-prop::after {
  right: 7px;
  top: 31px;
  width: 27px;
  height: 13px;
  border: 2px solid rgba(23, 95, 131, 0.45);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  background: rgba(255, 253, 245, 0.5);
}

.poster-card.H .poster-person {
  background:
    radial-gradient(circle at 50% 22%, rgba(251, 253, 255, 0.96) 0 22%, transparent 23%),
    linear-gradient(180deg, #7aa7b8, #486f8c);
}

.poster-card.H .poster-prop {
  width: 72px;
  height: 58px;
  border-radius: 50% 50% 46% 46%;
  background: rgba(255, 249, 231, 0.82);
}

.poster-card.H .poster-prop::before {
  left: 18px;
  top: 25px;
  width: 36px;
  border-top: 6px solid rgba(197, 154, 66, 0.72);
  transform: rotate(-12deg);
}

.poster-card.H .poster-prop::after {
  left: 27px;
  top: 15px;
  width: 18px;
  height: 28px;
  border-left: 6px solid rgba(197, 154, 66, 0.72);
  transform: rotate(-12deg);
}

.radar-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(230px, 0.7fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(74, 143, 186, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(74, 143, 186, 0.09), transparent 58%),
    rgba(251, 253, 255, 0.72);
}

.radar-copy {
  display: grid;
  gap: 10px;
}

.radar-copy h3 {
  margin: 0;
  color: #175f83;
  font-family: var(--font-hand);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.radar-copy p:last-child {
  color: var(--muted);
  line-height: 1.75;
}

.radar-wrap {
  display: grid;
  place-items: center;
}

.radar-wrap svg {
  width: min(100%, 260px);
  overflow: visible;
}

.radar-ring {
  fill: none;
  stroke: rgba(74, 143, 186, 0.18);
  stroke-width: 0.8;
}

.radar-axis {
  stroke: rgba(74, 143, 186, 0.22);
  stroke-width: 0.6;
}

.radar-shape {
  fill: rgba(63, 127, 159, 0.22);
  stroke: rgba(35, 93, 124, 0.82);
  stroke-width: 1.5;
}

.radar-dot {
  fill: var(--clay-dark);
}

.radar-label {
  fill: var(--clay-dark);
  font-size: 6px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
}

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

.dimension-item {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(74, 143, 186, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.dimension-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.dimension-head strong {
  color: var(--clay-dark);
}

.dimension-bar {
  overflow: hidden;
  height: 7px;
  border-radius: 999px;
  background: rgba(74, 143, 186, 0.12);
}

.dimension-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sky), var(--clay-dark));
}

.dimension-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.sections {
  display: grid;
  gap: 16px;
}

.result-section {
  padding: 20px;
  border: 1px solid rgba(139, 117, 92, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.result-section h3 {
  margin: 0 0 10px;
  color: #175f83;
  font-family: var(--font-hand);
  font-size: 18px;
  font-weight: 600;
}

.result-section p {
  color: var(--muted);
  line-height: 1.8;
}

.result-section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.result-section-title-row h3 {
  margin: 0;
}

.result-section-title-row span {
  flex: 0 0 auto;
  padding: 4px 10px;
  border: 1px solid rgba(197, 154, 66, 0.34);
  border-radius: 999px;
  color: #8b6d2c;
  background: rgba(255, 249, 231, 0.68);
  font-family: var(--font-hand);
  font-size: 13px;
  font-weight: 600;
}

.grit-recap {
  background:
    linear-gradient(135deg, rgba(74, 143, 186, 0.08), transparent 54%),
    rgba(251, 253, 255, 0.76);
}

.grit-recap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.grit-recap-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(74, 143, 186, 0.2);
  border-radius: 8px;
  background: rgba(255, 253, 245, 0.66);
}

.grit-recap-index {
  color: #7b6b3f;
  font-family: var(--font-hand);
  font-size: 13px;
  font-weight: 600;
}

.grit-recap-card h4 {
  margin: 0;
  color: #175f83;
  font-family: var(--font-hand);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.grit-recap-card p {
  margin: 0;
}

.grit-recap-note {
  color: #294d57;
  font-size: 14px;
  line-height: 1.6;
}

.grit-recap-choice {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.feedback-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(63, 127, 159, 0.28);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.78);
}

.feedback-panel h3 {
  margin: 0 0 8px;
  color: #175f83;
  font-family: var(--font-hand);
  font-size: 20px;
  font-weight: 600;
}

.feedback-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.feedback-group {
  display: grid;
  gap: 8px;
}

.feedback-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.rating-row,
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-button,
.choice-button {
  min-height: 38px;
  border: 1px solid rgba(139, 117, 92, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.rating-button {
  width: 42px;
}

.choice-button {
  padding: 0 14px;
}

.rating-button:hover,
.choice-button:hover,
.rating-button.selected,
.choice-button.selected {
  border-color: rgba(63, 127, 159, 0.75);
  background: rgba(63, 127, 159, 0.1);
  color: var(--clay-dark);
}

.feedback-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(139, 117, 92, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  line-height: 1.6;
}

textarea.feedback-input {
  resize: vertical;
}

@keyframes sceneEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softLightSweep {
  0% {
    opacity: 0;
    transform: translateX(-10%);
  }
  42% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.18;
    transform: translateX(8%);
  }
}

@keyframes focusPulse {
  0% {
    opacity: 0;
    transform: scale(0.92) rotate(-4deg);
  }
  36% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.14) rotate(-4deg);
  }
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes choiceIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(63, 127, 159, 0.34);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(63, 127, 159, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(63, 127, 159, 0);
  }
}

@keyframes sceneDrift {
  from {
    transform: translateX(-2px) translateY(0);
  }
  to {
    transform: translateX(2px) translateY(-3px);
  }
}

.score-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.score-chip {
  padding: 7px 10px;
  border: 1px solid rgba(139, 117, 92, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
}

.loading {
  position: relative;
  z-index: 1;
  color: var(--muted);
}

@media (max-width: 640px) {
  .app-shell {
    padding: 12px;
  }

  .surface {
    min-height: calc(100vh - 24px);
    padding: 20px;
  }

  .creator-entry,
  .reward-entry {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .platform-strip {
    grid-template-columns: 1fr;
  }

  #app[data-view="library"] h1 {
    font-size: clamp(52px, 18vw, 86px);
  }

  .intro,
  .center-view {
    min-height: calc(100vh - 90px);
  }

  .footer-nav {
    flex-direction: column-reverse;
  }

  .button {
    width: 100%;
  }

  .redeem-row {
    grid-template-columns: 1fr;
  }

  .payment-button {
    justify-self: stretch;
    min-width: 0;
  }

  .prepay-preview {
    padding: 14px;
  }

  #app[data-view="library"] .library-hero {
    grid-template-columns: 1fr;
  }

  #app[data-view="library"] .site-topbar,
  #app[data-view="library"] .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #app[data-view="library"] .hilma-orbit {
    min-height: 280px;
  }

  .prepay-preview-head h2 {
    font-size: 21px;
  }

  .prepay-preview-list {
    grid-template-columns: 1fr;
    max-height: 360px;
  }

  .game-stage {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .scene-card {
    width: min(100%, 360px);
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .scene-visual {
    min-height: 0;
  }

  .scene-content {
    width: min(100%, 390px);
  }

  .bubble {
    max-width: 100%;
    padding: 9px 11px;
    font-size: 14px;
  }

  .game-panel {
    padding: 14px;
  }

  .options {
    grid-template-columns: 1fr;
  }

  .radar-panel {
    grid-template-columns: 1fr;
  }

  .grit-recap-grid {
    grid-template-columns: 1fr;
  }

  .poster-panel {
    grid-template-columns: 1fr;
  }
}

/* Final homepage override: keep this last. The homepage is now image-led, not ornament-led. */
body[data-view="library"] {
  background:
    linear-gradient(180deg, rgba(14, 20, 25, 0.02), rgba(14, 20, 25, 0.06)),
    #f4efe5;
}

#app.surface[data-view="library"] {
  --home-ink: #241f1a;
  --home-muted: #6f655d;
  --home-paper: #f8f0e4;
  --home-blue: #2f6fa2;
  --home-red: #b64632;
  --home-gold: #c89f3e;
  --home-black: #151310;
  max-width: 1240px;
  padding: clamp(18px, 3vw, 38px);
  border: 1px solid rgba(36, 31, 26, 0.18);
  background:
    linear-gradient(90deg, rgba(36, 31, 26, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 31, 26, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 16% 18%, rgba(232, 184, 191, 0.18), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(47, 111, 162, 0.13), transparent 22%),
    var(--home-paper);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  box-shadow: 0 28px 80px rgba(36, 31, 26, 0.14);
}

#app.surface[data-view="library"]::before {
  opacity: 0.11;
  background-image:
    radial-gradient(circle at 16px 16px, rgba(36, 31, 26, 0.34) 1px, transparent 1.3px),
    radial-gradient(circle at 46px 38px, rgba(182, 70, 50, 0.28) 1px, transparent 1.3px);
  background-size: 62px 62px;
}

#app.surface[data-view="library"]::after {
  display: none;
}

#app[data-view="library"] .library-view {
  gap: clamp(28px, 4vw, 48px);
  align-content: start;
}

#app[data-view="library"] .site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(36, 31, 26, 0.16);
}

#app[data-view="library"] .wordmark {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--home-ink);
  cursor: pointer;
  font-family: var(--font-brand-body);
  font-size: 14px;
  font-weight: 900;
}

#app[data-view="library"] .topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#app[data-view="library"] .topbar-links a,
#app[data-view="library"] .topbar-links button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(36, 31, 26, 0.18);
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.64);
  color: var(--home-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

#app[data-view="library"] .library-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: stretch;
  max-width: none;
  min-height: min(74vh, 690px);
  padding: clamp(10px, 3vw, 26px) 0 0;
}

#app[data-view="library"] .hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
  max-width: 540px;
}

#app[data-view="library"] .eyebrow {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--home-red);
  font-family: var(--font-brand-body);
  font-size: 13px;
  font-weight: 900;
}

#app[data-view="library"] h1 {
  max-width: 540px;
  color: var(--home-ink);
  font-family: var(--font-brand-title);
  font-size: clamp(70px, 10vw, 136px);
  font-weight: 800;
  line-height: 0.84;
}

#app[data-view="library"] .hero-lead {
  max-width: 500px;
  color: #372f29;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 900;
  line-height: 1.55;
}

#app[data-view="library"] .library-intro {
  max-width: 500px;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.9;
}

#app[data-view="library"] .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

#app[data-view="library"] .button {
  min-height: 46px;
  border-radius: 999px;
  background: var(--home-black);
  color: #fffaf0;
  box-shadow: 0 16px 30px rgba(36, 31, 26, 0.18);
}

#app[data-view="library"] .button.secondary {
  border-color: rgba(36, 31, 26, 0.2);
  background: rgba(255, 250, 240, 0.54);
  color: var(--home-ink);
  box-shadow: none;
}

#app[data-view="library"] .hilma-orbit {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(36, 31, 26, 0.18);
  border-radius: 0;
  background: #fbf5ea;
  box-shadow: 0 18px 48px rgba(36, 31, 26, 0.14);
}

#app[data-view="library"] .hilma-orbit::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 5%;
  pointer-events: none;
  border: 1px solid rgba(255, 250, 240, 0.72);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(255, 250, 240, 0.18),
    inset 0 0 42px rgba(255, 250, 240, 0.24);
}

#app[data-view="library"] .hilma-orbit::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  pointer-events: none;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, transparent, rgba(255, 250, 240, 0.88) 14% 84%, transparent);
}

#app[data-view="library"] .hilma-orbit img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(74vh, 690px);
  object-fit: cover;
  object-position: 50% 44%;
}

#app[data-view="library"] .hilma-orbit figcaption {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  color: #fffaf0;
  text-shadow: 0 2px 14px rgba(36, 31, 26, 0.52);
}

#app[data-view="library"] .hilma-orbit figcaption strong {
  max-width: 220px;
  text-align: right;
  font-family: var(--font-brand-title);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 0.96;
}

#app[data-view="library"] .library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

#app[data-view="library"] .test-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 260px auto auto auto auto;
  gap: 14px;
  min-height: 0;
  padding: 0 0 22px;
  border: 1px solid rgba(36, 31, 26, 0.18);
  border-radius: 0;
  background: rgba(255, 250, 240, 0.68);
  box-shadow: 0 16px 44px rgba(36, 31, 26, 0.1);
}

#app[data-view="library"] .test-card > *:not(.test-card-visual) {
  position: relative;
  z-index: 2;
  margin-inline: 22px;
}

#app[data-view="library"] .test-card-visual {
  position: relative;
  overflow: hidden;
  height: 260px;
  background: var(--home-black);
}

#app[data-view="library"] .test-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 24%, rgba(36, 31, 26, 0.22) 25% 26%, transparent 27%),
    linear-gradient(180deg, transparent 58%, rgba(36, 31, 26, 0.4));
}

#app[data-view="library"] .test-card-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 250, 240, 0.72);
}

#app[data-view="library"] .test-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

#app[data-view="library"] .test-card-visual span {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 14px;
  padding: 6px 10px;
  background: rgba(255, 250, 240, 0.74);
  color: var(--home-ink);
  font-size: 12px;
  font-weight: 900;
}

#app[data-view="library"] .test-card h2,
#app[data-view="library"] .section-heading h2,
#app[data-view="library"] .creator-entry h2,
#app[data-view="library"] .reward-entry h2,
#app[data-view="library"] .profile-section h2 {
  color: var(--home-ink);
  font-family: var(--font-brand-title);
  line-height: 0.98;
}

#app[data-view="library"] .test-card h2 {
  font-size: clamp(36px, 5vw, 64px);
}

#app[data-view="library"] .section-heading h2,
#app[data-view="library"] .creator-entry h2,
#app[data-view="library"] .reward-entry h2,
#app[data-view="library"] .profile-section h2 {
  font-size: clamp(34px, 5vw, 62px);
}

#app[data-view="library"] .test-card-top span,
#app[data-view="library"] .test-meta-row span {
  min-height: 26px;
  border: 1px solid rgba(36, 31, 26, 0.14);
  background: rgba(255, 250, 240, 0.62);
  color: var(--home-muted);
}

#app[data-view="library"] .daily-card-entry {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: stretch;
  min-height: 220px;
  padding: 0;
  border: 1px solid rgba(36, 31, 26, 0.18);
  border-radius: 0;
  background: rgba(255, 250, 240, 0.66);
  box-shadow: 0 16px 44px rgba(36, 31, 26, 0.1);
}

#app[data-view="library"] .daily-card-symbol {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 0;
  background: var(--home-black);
}

#app[data-view="library"] .daily-card-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.06);
}

#app[data-view="library"] .daily-card-copy {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 22px 0;
}

#app[data-view="library"] .daily-card-copy h2 {
  color: var(--home-ink);
  font-family: var(--font-brand-title);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.9;
}

#app[data-view="library"] .daily-card-entry > .button {
  align-self: center;
  margin-right: 22px;
}

#app[data-view="library"] .creator-entry,
#app[data-view="library"] .reward-entry,
#app[data-view="library"] .profile-section,
#app[data-view="library"] .daily-card-result {
  border: 1px solid rgba(36, 31, 26, 0.16);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.72), rgba(255, 250, 240, 0.4)),
    rgba(248, 240, 228, 0.72);
}

#app[data-view="library"] .platform-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border: 0;
  background: transparent;
}

#app[data-view="library"] .platform-signature strong,
#app[data-view="library"] .platform-signature > span {
  color: var(--home-ink);
  font-family: var(--font-brand-body);
  font-size: 15px;
  font-weight: 900;
}

#app[data-view="library"] .platform-signature:not(.compact) strong {
  font-family: var(--font-brand-title);
  font-size: clamp(38px, 6vw, 76px);
}

#app[data-view="library"] .platform-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

#app[data-view="library"] .daily-card-result {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  max-width: 920px;
  padding: clamp(22px, 4vw, 44px);
}

#app[data-view="library"] .daily-card-large-symbol {
  grid-row: 1 / 6;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  background: var(--home-black);
}

#app[data-view="library"] .daily-card-large-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

@media (max-width: 860px) {
  #app[data-view="library"] .library-hero,
  #app[data-view="library"] .library-grid,
  #app[data-view="library"] .daily-card-entry,
  #app[data-view="library"] .creator-entry,
  #app[data-view="library"] .reward-entry,
  #app[data-view="library"] .daily-card-result {
    grid-template-columns: 1fr;
  }

  #app[data-view="library"] .hilma-orbit {
    order: -1;
  }

  #app[data-view="library"] .hilma-orbit img {
    min-height: 360px;
  }

  #app[data-view="library"] .daily-card-entry > .button {
    justify-self: start;
    margin: 0 22px 22px;
  }

  #app[data-view="library"] .daily-card-large-symbol {
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  #app.surface[data-view="library"] {
    padding: 18px;
  }

  #app[data-view="library"] .site-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  #app[data-view="library"] h1 {
    font-size: clamp(54px, 18vw, 82px);
    line-height: 0.88;
  }

  #app[data-view="library"] .hilma-orbit img {
    min-height: 300px;
    object-position: 50% 38%;
  }

  #app[data-view="library"] .test-card {
    grid-template-rows: 210px auto auto auto auto;
  }

  #app[data-view="library"] .test-card-visual {
    height: 210px;
  }

  #app[data-view="library"] .daily-card-symbol {
    min-height: 170px;
  }
}

/* Homepage visual system v3: image-led Hilma-inspired graph language. */
body[data-view="library"] {
  background:
    linear-gradient(180deg, rgba(14, 20, 25, 0.02), rgba(14, 20, 25, 0.06)),
    #f4efe5;
}

#app.surface[data-view="library"] {
  --home-ink: #241f1a;
  --home-muted: #6f655d;
  --home-paper: #f8f0e4;
  --home-panel: rgba(255, 250, 240, 0.72);
  --home-blue: #2f6fa2;
  --home-red: #b64632;
  --home-gold: #c89f3e;
  --home-pink: #e8b8bf;
  --home-black: #151310;
  width: min(100%, 1240px);
  max-width: 1240px;
  padding: clamp(18px, 3vw, 38px);
  border: 1px solid rgba(36, 31, 26, 0.18);
  background:
    linear-gradient(90deg, rgba(36, 31, 26, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(36, 31, 26, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 16% 18%, rgba(232, 184, 191, 0.18), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(47, 111, 162, 0.13), transparent 22%),
    var(--home-paper);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  box-shadow: 0 28px 80px rgba(36, 31, 26, 0.14);
}

#app.surface[data-view="library"]::before {
  opacity: 0.11;
  background-image:
    radial-gradient(circle at 16px 16px, rgba(36, 31, 26, 0.34) 1px, transparent 1.3px),
    radial-gradient(circle at 46px 38px, rgba(182, 70, 50, 0.28) 1px, transparent 1.3px);
  background-size: 62px 62px;
}

#app[data-view="library"] .library-view {
  gap: clamp(28px, 4vw, 48px);
  align-content: start;
}

#app[data-view="library"] .site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(36, 31, 26, 0.16);
}

#app[data-view="library"] .wordmark {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--home-ink);
  cursor: pointer;
  font-family: var(--font-brand-body);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

#app[data-view="library"] .topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#app[data-view="library"] .topbar-links a,
#app[data-view="library"] .topbar-links button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(36, 31, 26, 0.18);
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.64);
  color: var(--home-muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

#app[data-view="library"] .library-hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1fr);
  gap: clamp(24px, 5vw, 68px);
  align-items: stretch;
  max-width: none;
  min-height: min(74vh, 690px);
  padding: clamp(10px, 3vw, 26px) 0 0;
}

#app[data-view="library"] .hero-copy {
  display: grid;
  gap: 18px;
  align-content: center;
  max-width: 540px;
  padding: clamp(12px, 2vw, 22px) 0;
}

#app[data-view="library"] .eyebrow {
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--home-red);
  font-family: var(--font-brand-body);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

#app[data-view="library"] h1 {
  max-width: 540px;
  color: var(--home-ink);
  font-family: var(--font-brand-title);
  font-size: clamp(70px, 10vw, 136px);
  font-weight: 800;
  line-height: 0.84;
}

#app[data-view="library"] .hero-lead {
  max-width: 500px;
  color: #372f29;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 900;
  line-height: 1.55;
}

#app[data-view="library"] .library-intro {
  max-width: 500px;
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.9;
}

#app[data-view="library"] .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

#app[data-view="library"] .button {
  min-height: 46px;
  border-radius: 999px;
  background: var(--home-black);
  color: #fffaf0;
  box-shadow: 0 16px 30px rgba(36, 31, 26, 0.18);
}

#app[data-view="library"] .button:hover {
  background: #2d4f76;
}

#app[data-view="library"] .button.secondary {
  border-color: rgba(36, 31, 26, 0.2);
  background: rgba(255, 250, 240, 0.54);
  color: var(--home-ink);
  box-shadow: none;
}

#app[data-view="library"] .hilma-orbit {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: 0;
  margin: 0;
  border: 1px solid rgba(36, 31, 26, 0.18);
  border-radius: 0;
  background: #fbf5ea;
  box-shadow: 0 18px 48px rgba(36, 31, 26, 0.14);
  isolation: isolate;
}

#app[data-view="library"] .hilma-orbit::before,
#app[data-view="library"] .hilma-orbit::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

#app[data-view="library"] .hilma-orbit::before {
  inset: 5%;
  border: 1px solid rgba(255, 250, 240, 0.72);
  border-radius: 50%;
  box-shadow:
    0 0 0 22px rgba(255, 250, 240, 0.18),
    inset 0 0 42px rgba(255, 250, 240, 0.24);
}

#app[data-view="library"] .hilma-orbit::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, transparent, rgba(255, 250, 240, 0.88) 14% 84%, transparent);
}

#app[data-view="library"] .hilma-orbit img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(74vh, 690px);
  object-fit: cover;
  object-position: 50% 44%;
  filter: saturate(0.98) contrast(1.02);
}

#app[data-view="library"] .hilma-orbit figcaption {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  color: #fffaf0;
  text-shadow: 0 2px 14px rgba(36, 31, 26, 0.52);
}

#app[data-view="library"] .hilma-orbit figcaption span {
  font-size: 12px;
  font-weight: 900;
}

#app[data-view="library"] .hilma-orbit figcaption strong {
  max-width: 220px;
  text-align: right;
  font-family: var(--font-brand-title);
  font-size: clamp(26px, 4vw, 44px);
  line-height: 0.96;
}

#app[data-view="library"] .library-section {
  display: grid;
  gap: 18px;
}

#app[data-view="library"] .section-heading {
  display: grid;
  gap: 8px;
  max-width: 680px;
}

#app[data-view="library"] .section-heading h2,
#app[data-view="library"] .creator-entry h2,
#app[data-view="library"] .reward-entry h2,
#app[data-view="library"] .profile-section h2 {
  color: var(--home-ink);
  font-family: var(--font-brand-title);
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
}

#app[data-view="library"] .section-heading p:not(.eyebrow),
#app[data-view="library"] .creator-entry p,
#app[data-view="library"] .reward-entry p,
#app[data-view="library"] .profile-section p,
#app[data-view="library"] .profile-hero p {
  color: var(--home-muted);
  line-height: 1.82;
}

#app[data-view="library"] .library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

#app[data-view="library"] .test-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 260px auto auto auto auto;
  gap: 14px;
  min-height: 0;
  padding: 0 0 22px;
  border: 1px solid rgba(36, 31, 26, 0.18);
  border-radius: 0;
  background: rgba(255, 250, 240, 0.68);
  box-shadow: 0 16px 44px rgba(36, 31, 26, 0.1);
}

#app[data-view="library"] .test-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.26;
  background:
    linear-gradient(90deg, rgba(255, 250, 240, 0.34) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 250, 240, 0.3) 1px, transparent 1px);
  background-size: 28px 28px;
}

#app[data-view="library"] .test-card > *:not(.test-card-visual) {
  position: relative;
  z-index: 2;
  margin-inline: 22px;
}

#app[data-view="library"] .test-card-visual {
  position: relative;
  z-index: 0;
  overflow: hidden;
  height: 260px;
  background: var(--home-black);
}

#app[data-view="library"] .test-card-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, transparent 0 24%, rgba(36, 31, 26, 0.22) 25% 26%, transparent 27%),
    linear-gradient(180deg, transparent 58%, rgba(36, 31, 26, 0.4));
}

#app[data-view="library"] .test-card-visual::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(255, 250, 240, 0.72);
}

#app[data-view="library"] .test-card-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

#app[data-view="library"] .test-card-visual span {
  position: absolute;
  z-index: 3;
  left: 16px;
  bottom: 14px;
  padding: 6px 10px;
  background: rgba(255, 250, 240, 0.74);
  color: var(--home-ink);
  font-size: 12px;
  font-weight: 900;
}

#app[data-view="library"] .test-card-top {
  justify-content: flex-start;
  margin-top: 4px;
}

#app[data-view="library"] .test-card-top span,
#app[data-view="library"] .test-meta-row span {
  min-height: 26px;
  border: 1px solid rgba(36, 31, 26, 0.14);
  background: rgba(255, 250, 240, 0.62);
  color: var(--home-muted);
}

#app[data-view="library"] .test-card-top span:last-child {
  background: rgba(200, 159, 62, 0.2);
  color: #70541f;
}

#app[data-view="library"] .test-card h2 {
  color: var(--home-ink);
  font-family: var(--font-brand-title);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
}

#app[data-view="library"] .test-card p {
  color: var(--home-muted);
  line-height: 1.72;
}

#app[data-view="library"] .test-card-actions {
  margin-top: 4px;
}

#app[data-view="library"] .daily-card-entry {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: stretch;
  min-height: 220px;
  padding: 0;
  border: 1px solid rgba(36, 31, 26, 0.18);
  border-radius: 0;
  cursor: pointer;
  background: rgba(255, 250, 240, 0.66);
  box-shadow: 0 16px 44px rgba(36, 31, 26, 0.1);
}

#app[data-view="library"] .daily-card-symbol {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border-radius: 0;
  background: var(--home-black);
}

#app[data-view="library"] .daily-card-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: scale(1.06);
}

#app[data-view="library"] .daily-card-symbol::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 62%, rgba(36, 31, 26, 0.28)),
    radial-gradient(circle at 55% 30%, transparent 0 18%, rgba(255, 250, 240, 0.22) 19% 20%, transparent 21%);
}

#app[data-view="library"] .daily-card-copy {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 22px 0;
}

#app[data-view="library"] .daily-card-copy h2 {
  color: var(--home-ink);
  font-family: var(--font-brand-title);
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.9;
}

#app[data-view="library"] .daily-card-copy p:not(.eyebrow) {
  color: var(--home-muted);
  line-height: 1.72;
}

#app[data-view="library"] .daily-card-entry > .button {
  align-self: center;
  margin-right: 22px;
}

#app[data-view="library"] .creator-entry,
#app[data-view="library"] .reward-entry,
#app[data-view="library"] .profile-section,
#app[data-view="library"] .daily-card-result {
  border: 1px solid rgba(36, 31, 26, 0.16);
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.72), rgba(255, 250, 240, 0.4)),
    rgba(248, 240, 228, 0.72);
  box-shadow: 0 14px 38px rgba(36, 31, 26, 0.08);
}

#app[data-view="library"] .creator-entry {
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
}

#app[data-view="library"] .platform-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#app[data-view="library"] .platform-signature strong,
#app[data-view="library"] .platform-signature > span {
  color: var(--home-ink);
  font-family: var(--font-brand-body);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

#app[data-view="library"] .platform-signature:not(.compact) strong {
  font-family: var(--font-brand-title);
  font-size: clamp(38px, 6vw, 76px);
}

#app[data-view="library"] .platform-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

#app[data-view="library"] .platform-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(36, 31, 26, 0.08);
}

#app[data-view="library"] .platform-logo.xiaohongshu {
  background: #e94b5f;
}

#app[data-view="library"] .platform-logo.shipinhao,
#app[data-view="library"] .platform-logo.wechat {
  background: #2f9fba;
}

#app[data-view="library"] .platform-logo.douyin {
  background: #111;
}

#app[data-view="library"] .platform-logo.bilibili {
  background: #98bed2;
  color: #0150b3;
}

#app[data-view="library"] .reward-entry {
  grid-template-columns: minmax(280px, 1fr) minmax(260px, 0.62fr);
  padding: clamp(20px, 3vw, 34px);
}

#app[data-view="library"] .reward-meter {
  border-radius: 0;
  background: rgba(255, 250, 240, 0.58);
}

#app[data-view="library"] .reward-track span {
  background: linear-gradient(90deg, var(--home-red), var(--home-gold), var(--home-blue));
}

#app[data-view="library"] .daily-card-view {
  display: grid;
  gap: 20px;
}

#app[data-view="library"] .daily-card-result {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 44px);
  align-items: center;
  max-width: 920px;
  padding: clamp(22px, 4vw, 44px);
}

#app[data-view="library"] .daily-card-large-symbol {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 0;
  background: var(--home-black);
}

#app[data-view="library"] .daily-card-large-symbol img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

#app[data-view="library"] .daily-card-result h1 {
  max-width: 620px;
  font-size: clamp(48px, 7vw, 90px);
}

#app[data-view="library"] .daily-card-result > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--home-muted);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 800;
  line-height: 1.8;
}

#app[data-view="library"] .page-nav {
  margin-bottom: 14px;
}

#app[data-view="library"] .page-back-button {
  border-radius: 999px;
  border-color: rgba(36, 31, 26, 0.2);
  background: rgba(255, 250, 240, 0.64);
  color: var(--home-ink);
}

@media (max-width: 860px) {
  #app[data-view="library"] .library-hero,
  #app[data-view="library"] .library-grid,
  #app[data-view="library"] .daily-card-entry,
  #app[data-view="library"] .creator-entry,
  #app[data-view="library"] .reward-entry,
  #app[data-view="library"] .daily-card-result {
    grid-template-columns: 1fr;
  }

  #app[data-view="library"] .library-hero {
    min-height: 0;
  }

  #app[data-view="library"] .hilma-orbit {
    order: -1;
  }

  #app[data-view="library"] .hilma-orbit img {
    min-height: 360px;
  }

  #app[data-view="library"] .daily-card-entry > .button {
    justify-self: start;
    margin: 0 22px 22px;
  }
}

@media (max-width: 640px) {
  #app.surface[data-view="library"] {
    padding: 18px;
  }

  #app[data-view="library"] .site-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  #app[data-view="library"] h1 {
    font-size: clamp(54px, 18vw, 82px);
    line-height: 0.88;
  }

  #app[data-view="library"] .hilma-orbit img {
    min-height: 300px;
    object-position: 50% 38%;
  }

  #app[data-view="library"] .test-card {
    grid-template-rows: 210px auto auto auto auto;
  }

  #app[data-view="library"] .test-card-visual {
    height: 210px;
  }

  #app[data-view="library"] .daily-card-symbol {
    min-height: 170px;
  }
}

/* Homepage refresh v2: keep this at the end so it wins over older homepage styling. */
body[data-view="library"] {
  background:
    radial-gradient(circle at 8% 18%, rgba(214, 169, 65, 0.16), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(184, 163, 196, 0.22), transparent 24%),
    radial-gradient(circle at 78% 86%, rgba(57, 111, 159, 0.18), transparent 28%),
    linear-gradient(180deg, #f8f1e6, #f3e9da 42%, #eff3ed);
}

#app.surface[data-view="library"] {
  --home-ink: #312923;
  --home-muted: #706761;
  --home-paper: #fbf4e8;
  --home-blue: #396f9f;
  --home-deep-blue: #163d66;
  --home-pink: #eab7bd;
  --home-gold: #d6a941;
  --home-red: #bf4b34;
  --home-black: #171512;
  max-width: 1180px;
  border-color: rgba(49, 41, 35, 0.18);
  background:
    linear-gradient(90deg, rgba(49, 41, 35, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(49, 41, 35, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 18% 74%, rgba(234, 183, 189, 0.24), transparent 18%),
    radial-gradient(circle at 86% 18%, rgba(57, 111, 159, 0.12), transparent 25%),
    var(--home-paper);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  box-shadow: 0 20px 70px rgba(49, 41, 35, 0.12);
}

#app.surface[data-view="library"]::before {
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 18px 18px, rgba(49, 41, 35, 0.34) 1px, transparent 1.3px),
    radial-gradient(circle at 44px 36px, rgba(191, 75, 52, 0.22) 1px, transparent 1.3px);
  background-size: 62px 62px;
}

#app.surface[data-view="library"]::after {
  display: none;
}

#app[data-view="library"] .library-view {
  gap: 34px;
  align-content: start;
  min-height: 0;
}

#app[data-view="library"] .site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(49, 41, 35, 0.14);
}

#app[data-view="library"] .wordmark,
#app[data-view="library"] .topbar-links button,
#app[data-view="library"] .topbar-links a {
  border: 0;
  background: transparent;
  color: var(--home-ink);
  text-decoration: none;
}

#app[data-view="library"] .wordmark {
  cursor: pointer;
  font-family: var(--font-brand-title);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1;
}

#app[data-view="library"] .topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#app[data-view="library"] .topbar-links button,
#app[data-view="library"] .topbar-links a {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(49, 41, 35, 0.18);
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.38);
  color: var(--home-muted);
  font-size: 13px;
  font-weight: 700;
}

#app[data-view="library"] .library-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  max-width: none;
  min-height: min(70vh, 620px);
  padding: clamp(18px, 5vw, 54px) 0 clamp(16px, 4vw, 44px);
}

#app[data-view="library"] .hero-copy {
  display: grid;
  gap: 18px;
  max-width: 620px;
}

#app[data-view="library"] .eyebrow {
  width: fit-content;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--home-red);
  font-family: var(--font-brand-body);
  font-size: 13px;
  font-weight: 800;
}

#app[data-view="library"] h1 {
  max-width: 720px;
  color: var(--home-ink);
  font-family: var(--font-brand-title);
  font-size: clamp(54px, 8vw, 112px);
  font-weight: 700;
  line-height: 0.98;
}

#app[data-view="library"] .hero-lead,
#app[data-view="library"] .library-intro {
  max-width: 560px;
  color: var(--home-muted);
  font-family: var(--font-brand-body);
  font-size: 17px;
  line-height: 1.8;
}

#app[data-view="library"] .hero-lead {
  color: #453c36;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 800;
}

#app[data-view="library"] .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

#app[data-view="library"] .button {
  border-radius: 999px;
  background: var(--home-black);
  box-shadow: 0 16px 28px rgba(49, 41, 35, 0.16);
}

#app[data-view="library"] .button:hover {
  background: var(--home-deep-blue);
}

#app[data-view="library"] .button.secondary {
  border-color: rgba(49, 41, 35, 0.2);
  background: rgba(255, 255, 255, 0.4);
  color: var(--home-ink);
}

#app[data-view="library"] .hilma-orbit {
  position: relative;
  min-height: 470px;
  isolation: isolate;
}

#app[data-view="library"] .hilma-orbit::before,
#app[data-view="library"] .hilma-orbit::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

#app[data-view="library"] .hilma-orbit::before {
  width: min(86%, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(49, 41, 35, 0.16);
  background:
    conic-gradient(from 180deg, rgba(234, 183, 189, 0.55), rgba(255, 255, 255, 0.72), rgba(214, 169, 65, 0.44), rgba(184, 163, 196, 0.46), rgba(234, 183, 189, 0.55));
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.46);
}

#app[data-view="library"] .hilma-orbit::after {
  width: min(42%, 210px);
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0 50%, rgba(234, 183, 189, 0.82) 50%),
    var(--home-pink);
  box-shadow: 0 0 0 1px rgba(49, 41, 35, 0.08);
}

#app[data-view="library"] .orbit-ring,
#app[data-view="library"] .orbit-pyramid,
#app[data-view="library"] .orbit-spine,
#app[data-view="library"] .orbit-spiral,
#app[data-view="library"] .orbit-dot {
  position: absolute;
  display: block;
  z-index: 1;
}

#app[data-view="library"] .orbit-ring {
  left: 50%;
  top: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

#app[data-view="library"] .ring-one {
  width: min(96%, 470px);
  aspect-ratio: 1;
  border: 8px solid rgba(255, 255, 255, 0.84);
}

#app[data-view="library"] .ring-two {
  width: min(58%, 280px);
  aspect-ratio: 1;
  border: 16px solid rgba(57, 111, 159, 0.7);
  border-left-color: rgba(23, 21, 18, 0.86);
  border-bottom-color: rgba(214, 169, 65, 0.72);
}

#app[data-view="library"] .ring-three {
  width: min(18%, 92px);
  aspect-ratio: 1;
  background: var(--home-gold);
  border: 14px solid rgba(234, 183, 189, 0.8);
}

#app[data-view="library"] .orbit-pyramid {
  left: 50%;
  bottom: 0;
  width: min(58%, 300px);
  height: min(48%, 250px);
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  background:
    linear-gradient(90deg, rgba(191, 75, 52, 0.72), rgba(214, 169, 65, 0.5) 28%, rgba(255, 255, 255, 0.7) 43%, rgba(57, 111, 159, 0.62) 68%, rgba(23, 21, 18, 0.82));
  opacity: 0.86;
}

#app[data-view="library"] .orbit-spine {
  left: 50%;
  top: 2%;
  width: 12px;
  height: 96%;
  transform: translateX(-50%);
  background:
    repeating-radial-gradient(ellipse at center, transparent 0 11px, rgba(255, 255, 255, 0.96) 12px 13px, transparent 14px 24px);
  border-left: 1px solid rgba(191, 75, 52, 0.46);
  border-right: 1px solid rgba(57, 111, 159, 0.38);
}

#app[data-view="library"] .orbit-spiral {
  border: 3px solid transparent;
  border-top-color: rgba(214, 169, 65, 0.84);
  border-left-color: rgba(57, 111, 159, 0.56);
  border-radius: 999px;
}

#app[data-view="library"] .spiral-one {
  right: 3%;
  top: 9%;
  width: 96px;
  height: 96px;
  transform: rotate(25deg);
}

#app[data-view="library"] .spiral-two {
  left: 6%;
  bottom: 20%;
  width: 70px;
  height: 70px;
  transform: rotate(-22deg);
}

#app[data-view="library"] .orbit-dot {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.5);
}

#app[data-view="library"] .dot-blue {
  right: 16%;
  bottom: 18%;
  background: var(--home-blue);
}

#app[data-view="library"] .dot-pink {
  left: 14%;
  top: 22%;
  background: var(--home-pink);
}

#app[data-view="library"] .dot-gold {
  right: 22%;
  top: 25%;
  background: var(--home-gold);
}

#app[data-view="library"] .dot-red {
  left: 18%;
  bottom: 30%;
  background: var(--home-red);
}

#app[data-view="library"] .library-section {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

#app[data-view="library"] .section-heading {
  display: grid;
  gap: 10px;
  max-width: 680px;
}

#app[data-view="library"] .section-heading h2,
#app[data-view="library"] .creator-entry h2,
#app[data-view="library"] .reward-entry h2,
#app[data-view="library"] .profile-section h2 {
  color: var(--home-ink);
  font-family: var(--font-brand-title);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
}

#app[data-view="library"] .section-heading p:not(.eyebrow),
#app[data-view="library"] .creator-entry p,
#app[data-view="library"] .reward-entry p {
  color: var(--home-muted);
  line-height: 1.78;
}

#app[data-view="library"] .library-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

#app[data-view="library"] .test-card,
#app[data-view="library"] .creator-entry,
#app[data-view="library"] .reward-entry,
#app[data-view="library"] .profile-section {
  border: 1px solid rgba(49, 41, 35, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.28)),
    rgba(251, 244, 232, 0.74);
  box-shadow: 0 12px 32px rgba(49, 41, 35, 0.08);
}

#app[data-view="library"] .test-card {
  min-height: 360px;
  padding-top: 170px;
}

#app[data-view="library"] .test-card::before {
  opacity: 0.24;
  background-image:
    radial-gradient(circle at 18px 18px, rgba(49, 41, 35, 0.22) 1px, transparent 1.3px),
    linear-gradient(135deg, transparent 0 58%, rgba(214, 169, 65, 0.22) 59%, transparent 66%);
}

#app[data-view="library"] .test-card-symbol {
  position: absolute;
  z-index: 0;
  inset: 18px 18px auto;
  height: 146px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(49, 41, 35, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(49, 41, 35, 0.04) 1px, transparent 1px),
    rgba(255, 255, 255, 0.3);
  background-size: 24px 24px;
}

#app[data-view="library"] .test-card-symbol::before,
#app[data-view="library"] .test-card-symbol::after {
  content: "";
  position: absolute;
  display: block;
}

#app[data-view="library"] .test-card-symbol::before {
  left: 50%;
  top: 50%;
  width: 168px;
  aspect-ratio: 1;
  border: 1px solid rgba(49, 41, 35, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#app[data-view="library"] .test-card-symbol::after {
  left: 50%;
  top: 50%;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.28);
}

#app[data-view="library"] .test-card-symbol span {
  position: absolute;
  display: block;
}

#app[data-view="library"] .symbol-ring {
  left: 50%;
  top: 50%;
  width: 128px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 14px solid rgba(57, 111, 159, 0.62);
  border-left-color: rgba(23, 21, 18, 0.86);
  border-bottom-color: rgba(214, 169, 65, 0.72);
  background: rgba(234, 183, 189, 0.44);
}

#app[data-view="library"] .symbol-core {
  left: 50%;
  top: 50%;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--home-gold);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.46);
}

#app[data-view="library"] .symbol-axis {
  left: 50%;
  top: 6px;
  width: 2px;
  height: calc(100% - 12px);
  transform: translateX(-50%);
  background: rgba(49, 41, 35, 0.46);
}

#app[data-view="library"] .symbol-cut {
  left: 50%;
  bottom: -4px;
  width: 118px;
  height: 92px;
  transform: translateX(-50%);
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
  background:
    linear-gradient(90deg, rgba(191, 75, 52, 0.7), rgba(214, 169, 65, 0.54) 36%, rgba(57, 111, 159, 0.62) 70%, rgba(23, 21, 18, 0.82));
}

#app[data-view="library"] .test-card.grit_relationship_mode_v2 .test-card-symbol {
  background:
    radial-gradient(circle at 20% 74%, rgba(191, 75, 52, 0.26), transparent 20%),
    radial-gradient(circle at 78% 28%, rgba(214, 169, 65, 0.26), transparent 18%),
    linear-gradient(90deg, rgba(49, 41, 35, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(49, 41, 35, 0.04) 1px, transparent 1px),
    rgba(255, 255, 255, 0.3);
  background-size: auto, auto, 24px 24px, 24px 24px, auto;
}

#app[data-view="library"] .test-card.grit_relationship_mode_v2 .symbol-ring {
  width: 142px;
  border-width: 18px;
  border-color: rgba(23, 21, 18, 0.88);
  border-top-color: rgba(255, 255, 255, 0.86);
  border-right-color: rgba(57, 111, 159, 0.68);
  border-bottom-color: rgba(191, 75, 52, 0.76);
  background: rgba(214, 169, 65, 0.32);
}

#app[data-view="library"] .test-card.grit_relationship_mode_v2 .symbol-cut {
  width: 128px;
  height: 98px;
  background:
    linear-gradient(90deg, rgba(23, 21, 18, 0.88), rgba(191, 75, 52, 0.7) 32%, rgba(214, 169, 65, 0.52) 50%, rgba(57, 111, 159, 0.7));
}

#app[data-view="library"] .test-card.group_position_sense_v1 .symbol-ring {
  width: 154px;
  border-color: rgba(135, 65, 84, 0.74);
  border-right-color: rgba(118, 177, 225, 0.78);
  border-bottom-color: rgba(218, 229, 245, 0.9);
  background: rgba(218, 229, 245, 0.62);
}

#app[data-view="library"] .test-card.group_position_sense_v1 .test-card-symbol::before {
  width: 188px;
  border-style: dashed;
  border-color: rgba(135, 65, 84, 0.28);
}

#app[data-view="library"] .test-card.group_position_sense_v1 .symbol-core {
  background: #874154;
  box-shadow:
    0 0 0 14px rgba(118, 177, 225, 0.34),
    0 0 0 32px rgba(218, 229, 245, 0.58);
}

#app[data-view="library"] .test-card.group_position_sense_v1 .symbol-cut {
  background:
    linear-gradient(90deg, rgba(135, 65, 84, 0.82), rgba(118, 177, 225, 0.7), rgba(218, 229, 245, 0.9));
}

#app[data-view="library"] .test-card h2 {
  color: var(--home-ink);
  font-size: clamp(30px, 4vw, 48px);
}

#app[data-view="library"] .test-card-top span,
#app[data-view="library"] .test-meta-row span {
  background: rgba(255, 255, 255, 0.54);
  color: var(--home-muted);
}

#app[data-view="library"] .test-card-top span:last-child {
  background: rgba(214, 169, 65, 0.22);
  color: #72551f;
}

#app[data-view="library"] .creator-entry {
  grid-template-columns: minmax(260px, 0.75fr) minmax(320px, 1.25fr);
  background:
    radial-gradient(circle at 84% 24%, rgba(234, 183, 189, 0.28), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.3)),
    rgba(251, 244, 232, 0.78);
}

#app[data-view="library"] .platform-strip {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

#app[data-view="library"] .platform-signature {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  padding: 18px;
  border: 1px solid rgba(49, 41, 35, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.34);
}

#app[data-view="library"] .platform-signature strong,
#app[data-view="library"] .platform-signature > span {
  color: var(--home-ink);
  font-family: var(--font-brand-title);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
}

#app[data-view="library"] .platform-logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

#app[data-view="library"] .platform-logo.xiaohongshu {
  background: #e94b5f;
}

#app[data-view="library"] .platform-logo.shipinhao,
#app[data-view="library"] .platform-logo.wechat {
  background: #29a5be;
}

#app[data-view="library"] .platform-logo.douyin {
  background: #111;
}

#app[data-view="library"] .platform-logo.bilibili {
  background: #98bed2;
  color: #0150b3;
}

#app[data-view="library"] .platform-link {
  background: rgba(255, 255, 255, 0.44);
  border-color: rgba(49, 41, 35, 0.13);
}

#app[data-view="library"] .creator-banner-note {
  color: var(--home-red);
}

#app[data-view="library"] .reward-track {
  background: rgba(49, 41, 35, 0.12);
}

#app[data-view="library"] .reward-track span {
  background: linear-gradient(90deg, var(--home-red), var(--home-gold), var(--home-blue));
}

#app[data-view="library"] .daily-card-entry {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(49, 41, 35, 0.16);
  border-radius: 8px;
  cursor: pointer;
  background:
    radial-gradient(circle at 10% 50%, rgba(234, 183, 189, 0.32), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.28)),
    rgba(251, 244, 232, 0.76);
  box-shadow: 0 12px 32px rgba(49, 41, 35, 0.08);
}

#app[data-view="library"] .daily-card-symbol {
  position: relative;
  min-height: 104px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(49, 41, 35, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(49, 41, 35, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.34);
  background-size: 20px 20px;
}

#app[data-view="library"] .daily-card-symbol span {
  position: absolute;
  display: block;
}

#app[data-view="library"] .daily-orbit {
  left: 50%;
  top: 50%;
  width: 78px;
  aspect-ratio: 1;
  border: 12px solid rgba(234, 183, 189, 0.82);
  border-right-color: rgba(57, 111, 159, 0.76);
  border-bottom-color: rgba(214, 169, 65, 0.72);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

#app[data-view="library"] .daily-moon {
  left: 50%;
  top: 50%;
  width: 28px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--home-gold);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.58);
}

#app[data-view="library"] .daily-axis {
  left: 50%;
  top: 8px;
  width: 2px;
  height: calc(100% - 16px);
  transform: translateX(-50%);
  background: rgba(191, 75, 52, 0.42);
}

#app[data-view="library"] .daily-card-copy {
  display: grid;
  gap: 8px;
}

#app[data-view="library"] .daily-card-copy h2 {
  color: var(--home-ink);
  font-family: var(--font-brand-title);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

#app[data-view="library"] .daily-card-copy p:not(.eyebrow) {
  color: var(--home-muted);
  line-height: 1.7;
}

#app[data-view="library"] .daily-card-view {
  display: grid;
  gap: 20px;
}

#app[data-view="library"] .daily-card-result {
  display: grid;
  gap: 18px;
  max-width: 760px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(49, 41, 35, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 16%, rgba(214, 169, 65, 0.24), transparent 24%),
    radial-gradient(circle at 20% 78%, rgba(234, 183, 189, 0.3), transparent 28%),
    rgba(255, 255, 255, 0.34);
}

#app[data-view="library"] .daily-card-large-symbol {
  position: relative;
  width: min(220px, 62vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(from 180deg, rgba(234, 183, 189, 0.78), rgba(255, 255, 255, 0.66), rgba(214, 169, 65, 0.66), rgba(57, 111, 159, 0.62), rgba(234, 183, 189, 0.78));
  box-shadow:
    inset 0 0 0 14px rgba(255, 255, 255, 0.56),
    0 0 0 1px rgba(49, 41, 35, 0.12);
}

#app[data-view="library"] .daily-card-large-symbol span {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--home-gold);
  box-shadow:
    0 0 0 18px rgba(255, 255, 255, 0.56),
    0 0 0 48px rgba(49, 41, 35, 0.08);
}

#app[data-view="library"] .daily-card-result h1 {
  max-width: 620px;
  font-size: clamp(48px, 8vw, 88px);
}

#app[data-view="library"] .daily-card-result > p:not(.eyebrow) {
  max-width: 620px;
  color: var(--home-muted);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 700;
  line-height: 1.8;
}

@media (max-width: 780px) {
  #app[data-view="library"] .library-hero,
  #app[data-view="library"] .creator-entry,
  #app[data-view="library"] .reward-entry,
  #app[data-view="library"] .daily-card-entry {
    grid-template-columns: 1fr;
  }

  #app[data-view="library"] .library-hero {
    min-height: 0;
  }

  #app[data-view="library"] .hilma-orbit {
    order: -1;
    min-height: 310px;
  }
}

@media (max-width: 640px) {
  #app[data-view="library"] .site-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  #app[data-view="library"] .library-hero {
    gap: 18px;
    padding-top: 18px;
  }

  #app[data-view="library"] .hilma-orbit {
    order: 0;
    min-height: 230px;
  }

  #app[data-view="library"] h1 {
    font-size: clamp(40px, 13vw, 58px);
    line-height: 1.02;
  }

  #app[data-view="library"] .section-heading h2,
  #app[data-view="library"] .creator-entry h2,
  #app[data-view="library"] .reward-entry h2,
  #app[data-view="library"] .profile-section h2 {
    font-size: clamp(30px, 10vw, 48px);
  }
}

/* Shared font roles for test detail, quiz, result and poster pages. */
body {
  font-family: var(--font-body);
}

.page-nav > span,
.intro h1,
.result-head h1,
.result-name,
.poster-copy h2,
.poster-guide h3,
.payment-title,
.prepay-main h1,
.exchange-shell h1,
.result-section h3,
.grit-recap-card h4 {
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: 0.05em;
}

.intro h1,
.result-name,
.prepay-main h1,
.exchange-shell h1 {
  color: var(--clay-dark);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.2;
}

.poster-role-stamp,
.grit-recap-index,
.playtest-strip span,
.test-card-top span,
.test-meta-row span,
.choice-label,
.tip,
.eyebrow {
  font-family: var(--font-alt);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.question-text,
.scene-title {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.one-liner,
.poster-foot span:last-child,
.result-section:last-of-type p {
  font-family: var(--font-hand);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.intro-copy,
.result-section p,
.grit-recap-note,
.grit-recap-choice,
.option-text,
.disclaimer,
.poster-guide p,
.page-back-button,
.button {
  font-family: var(--font-body);
}

.one-liner {
  color: var(--clay-dark);
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.65;
}

.button,
.page-back-button,
.option,
.playtest-strip span,
.result-section h3,
.poster-role-stamp,
.grit-recap-index,
.question-text,
.scene-title {
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: pretty;
}
