:root {
  --cream: #faf6ed;
  --cream-deep: #f0e8d8;
  --jade: #4f8f83;
  --jade-dark: #2f6e68;
  --gold: #d7a84b;
  --coral: #d96b4c;
  --plum: #d9828b;
  --lake: #6ca6b8;
  --ink: #303936;
  --muted: #777970;
  --line: rgba(48, 57, 54, 0.16);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { background: var(--cream); }
button { font: inherit; border: 0; cursor: pointer; }
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.app-shell { min-height: 100dvh; height: 100%; position: relative; overflow: hidden; padding: clamp(22px, 4vw, 58px) clamp(26px, 6vw, 108px); isolation: isolate; }
.app-shell::before, .app-shell::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 999px; opacity: .42; }
.app-shell::before { width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; right: -12vw; top: -17vw; border: 1px solid rgba(79,143,131,.32); }
.app-shell::after { width: 28vw; height: 28vw; max-width: 440px; max-height: 440px; left: -15vw; bottom: -17vw; background: rgba(217,130,139,.11); }
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; max-width: 1440px; margin: 0 auto; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; color: var(--cream); background: var(--jade); border-radius: 50%; font-size: 17px; }
.eyebrow, .step-kicker { margin: 0 0 4px; color: var(--jade-dark); font-size: 11px; letter-spacing: .16em; font-weight: 700; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(20px, 2.2vw, 31px); letter-spacing: .08em; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-weight: 600; }
.subtitle { margin: 0; color: var(--muted); font-size: clamp(12px, 1.1vw, 16px); letter-spacing: .08em; white-space: nowrap; }
.progress { justify-self: end; display: flex; align-items: center; gap: 15px; color: var(--muted); font-size: 11px; }
.progress-dots { display: flex; align-items: center; gap: 7px; }
.progress-dots span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid rgba(48,57,54,.22); color: var(--muted); border-radius: 50%; transition: .25s ease; }
.progress-dots span.is-current { color: var(--cream); border-color: var(--jade); background: var(--jade); }
.progress-dots span.is-done { color: var(--jade-dark); border-color: var(--jade); }
.progress-dots i { width: 13px; height: 1px; background: var(--line); }
.main-stage { height: calc(100% - 92px); max-width: 1440px; margin: 0 auto; }
.screen { height: 100%; display: flex; flex-direction: column; justify-content: center; animation: fade-in .4s ease both; }
.screen[hidden] { display: none; }
.screen-intro { max-width: 750px; margin-bottom: clamp(24px, 4vh, 50px); }
h2 { margin-bottom: 14px; font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; font-size: clamp(30px, 4.2vw, 62px); line-height: 1.15; font-weight: 600; letter-spacing: .03em; }
.screen-intro > p:last-child { margin: 0; color: var(--muted); font-size: clamp(14px, 1.35vw, 18px); }
.keyword-grid { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 13px; max-width: 980px; }
.keyword-grid--seven { grid-template-columns: repeat(7, minmax(105px, 1fr)); max-width: 1120px; }
.keyword-card { position: relative; min-height: clamp(62px, 8vh, 92px); padding: 12px; color: var(--ink); border: 1px solid rgba(79,143,131,.35); border-radius: 17px; background: rgba(255,255,255,.42); font-size: clamp(17px, 1.55vw, 23px); letter-spacing: .08em; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.keyword-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px rgba(79,143,131,.12); }
.keyword-card.is-selected { color: var(--cream); background: var(--jade); border-color: var(--jade); box-shadow: 0 10px 22px rgba(79,143,131,.2); }
.keyword-card.is-selected::after { content: "✓"; position: absolute; top: 8px; right: 11px; font-size: 13px; color: var(--gold); }
.screen-footer { display: flex; align-items: center; justify-content: space-between; max-width: 980px; margin-top: clamp(28px, 5vh, 58px); }
.selection-count { color: var(--jade-dark); font-size: 14px; letter-spacing: .08em; }
.primary-button { min-width: 180px; padding: 14px 21px; color: var(--cream); background: var(--jade); border-radius: 999px; font-weight: 700; letter-spacing: .08em; box-shadow: 0 9px 20px rgba(79,143,131,.2); transition: transform .18s ease, filter .18s ease, opacity .18s ease; }
.primary-button:hover { transform: translateY(-2px); filter: saturate(1.1); }
.primary-button:disabled { cursor: not-allowed; opacity: .42; box-shadow: none; }
.primary-button span { color: var(--gold); margin-left: 10px; }
.primary-button--coral { background: var(--coral); box-shadow: 0 9px 20px rgba(217,107,76,.2); }
.screen--loading { align-items: center; text-align: center; }
.screen--loading h2 { font-size: clamp(30px, 4vw, 58px); }
.loading-orbit { width: 84px; height: 84px; position: relative; margin-bottom: 30px; border: 1px solid rgba(79,143,131,.35); border-radius: 50%; }
.loading-orbit::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(215,168,75,.55); border-radius: 50%; }
.loading-orbit span { position: absolute; width: 8px; height: 8px; top: -4px; left: calc(50% - 4px); border-radius: 50%; background: var(--coral); animation: orbit 2.1s linear infinite; transform-origin: 4px 46px; }
.loading-orbit span:nth-child(2) { animation-delay: -.7s; background: var(--gold); }
.loading-orbit span:nth-child(3) { animation-delay: -1.4s; background: var(--jade); }
.teacher-prompt { display: flex; align-items: center; gap: 12px; margin-top: 30px; color: var(--ink); font-size: clamp(14px, 1.35vw, 18px); }
.teacher-prompt span { padding: 5px 10px; color: var(--cream); background: var(--coral); border-radius: 999px; font-size: 11px; letter-spacing: .12em; }
.teacher-prompt strong { font-weight: 500; }
.loading-bar { width: min(520px, 65vw); height: 3px; margin-top: 32px; overflow: hidden; background: rgba(48,57,54,.1); border-radius: 10px; }
.loading-bar span { display: block; width: 40%; height: 100%; background: var(--gold); animation: loading 1.7s ease-in-out infinite; }
.loading-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.split-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.split-heading h2 { margin-bottom: 0; }
.source-badge, .vote-note { padding: 7px 12px; border: 1px solid rgba(215,168,75,.55); color: #8d6b29; background: rgba(215,168,75,.12); border-radius: 999px; font-size: 12px; }
.image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; min-height: min(42vh, 460px); }
.art-card { position: relative; min-height: 260px; margin: 0; overflow: hidden; background: var(--cream-deep); border-radius: 23px; border: 1px solid rgba(48,57,54,.13); }
.art-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(250,246,237,.55); border-radius: inherit; }
.art-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.art-label { position: absolute; z-index: 1; top: 18px; left: 18px; padding: 7px 12px; color: var(--ink); background: rgba(250,246,237,.86); border-radius: 999px; font-size: 12px; letter-spacing: .15em; }
.screen-footer--right { max-width: none; margin-top: 20px; }
.hint-text { margin: 0; color: var(--muted); font-size: 13px; }
.vote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; }
.vote-card { position: relative; min-height: min(37vh, 370px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: 24px; border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease; }
.vote-card:hover { transform: translateY(-4px); box-shadow: 0 18px 35px rgba(48,57,54,.12); }
.vote-card--a { background: rgba(217,107,76,.15); border-color: rgba(217,107,76,.35); }
.vote-card--b { background: rgba(108,166,184,.17); border-color: rgba(108,166,184,.36); }
.vote-letter { font-family: "Songti SC", serif; font-size: clamp(60px, 8vw, 110px); line-height: 1; color: var(--ink); }
.vote-plus { padding: 5px 11px; color: var(--cream); background: var(--coral); border-radius: 999px; font-size: 13px; }
.vote-card--b .vote-plus { background: var(--lake); }
.vote-card strong { color: var(--muted); font-size: 16px; }
.vote-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; }
.question-line { margin: 0; font-family: "Songti SC", serif; font-size: clamp(18px, 1.7vw, 25px); }
.vote-actions { display: flex; align-items: center; gap: 14px; }
.text-button { padding: 8px 3px; color: var(--jade-dark); background: transparent; font-size: 12px; }
.text-button:disabled { opacity: .35; cursor: not-allowed; }
.text-button--danger { color: var(--coral); }
.vote-actions .primary-button { min-width: 148px; padding: 12px 17px; }
.screen--reflection { position: relative; align-items: center; text-align: center; }
.reflection-content { width: min(900px, 100%); }
.reflection-content h2 { font-size: clamp(36px, 5vw, 75px); }
.reveal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 42px 0 29px; }
.reveal-item { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; opacity: 0; transform: translateY(8px); border-top: 2px solid var(--jade); background: rgba(79,143,131,.08); transition: opacity .35s ease, transform .35s ease; }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.reveal-item span { color: var(--gold); font-size: 12px; letter-spacing: .1em; }
.reveal-item strong { font-family: "Songti SC", serif; font-size: clamp(20px, 2vw, 28px); font-weight: 600; }
.reveal-item em { color: var(--coral); font-style: normal; }
.closing-line { max-width: 650px; margin: 0 auto 28px; color: var(--muted); font-size: clamp(15px, 1.45vw, 20px); line-height: 1.7; opacity: 0; transition: opacity .35s ease; }
.closing-line.is-visible { opacity: 1; }
.return-to-deck { display: grid; gap: 4px; max-width: 520px; margin: 18px auto 22px; padding: 13px 20px; border: 1px solid rgba(79,143,131,.3); border-radius: 16px; background: rgba(79,143,131,.08); }
.return-to-deck strong { color: var(--jade-dark); font-size: clamp(17px, 1.6vw, 23px); }
.return-to-deck span { color: var(--ink); font-size: clamp(14px, 1.2vw, 17px); }
.return-to-deck small { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.restart-button { position: absolute; bottom: 0; right: 0; color: var(--muted); background: transparent; font-size: 12px; }
.live-status { position: fixed; left: 50%; bottom: 18px; z-index: 10; transform: translate(-50%, 12px); padding: 9px 14px; color: var(--cream); background: var(--ink); border-radius: 999px; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.live-status.is-visible { opacity: .93; transform: translate(-50%, 0); }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes loading { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@media (max-width: 900px) { .site-header { grid-template-columns: 1fr auto; } .subtitle { display: none; } .progress { grid-column: 1 / -1; justify-self: start; } .main-stage { height: calc(100% - 120px); } .keyword-grid, .keyword-grid--seven { grid-template-columns: repeat(4, 1fr); } .image-pair, .vote-grid { min-height: 0; } .vote-card { min-height: 260px; } }
@media (max-width: 600px) { html, body { overflow: auto; } .app-shell { height: auto; min-height: 100%; padding: 24px 18px 45px; } .main-stage { height: auto; min-height: 600px; } .screen { min-height: 620px; height: auto; } .keyword-grid, .keyword-grid--seven, .image-pair, .vote-grid, .reveal-list { grid-template-columns: repeat(2, 1fr); } .image-pair, .vote-grid { gap: 12px; } .vote-bottom, .screen-footer--right { align-items: flex-start; flex-direction: column; } .split-heading { align-items: flex-start; gap: 12px; flex-direction: column; } .source-badge { align-self: flex-start; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
