.app-shell { height: 100svh; isolation: isolate; position: relative; z-index: 10; }
.topbar { align-items: center; display: flex; height: 78px; justify-content: space-between; left: 0; padding: 18px clamp(28px,4vw,72px); position: absolute; right: 0; top: 0; z-index: 11; }
.topbar__left { align-items: center; display: flex; gap: clamp(32px,2.5vw,48px); }
.brand { align-items: center; background: transparent; border: 0; cursor: pointer; display: flex; gap: 12px; padding: 4px; text-align: left; }
.brand__sigil { border: 1px solid rgba(255,240,184,.56); display: grid; height: 30px; place-items: center; rotate: 45deg; width: 30px; }
.brand__sigil i { background: var(--gold-pale); box-shadow: 0 0 16px var(--gold); height: 8px; width: 8px; }
.brand b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: .08em; }
.brand small { color: var(--ink-faint); display: block; font-family: Georgia,serif; font-size: 9px; letter-spacing: .26em; margin-top: 2px; text-transform: uppercase; }
.background-picker { position: relative; }
.background-picker__toggle { align-items: center; background: rgba(5,16,15,.34); border: 1px solid rgba(235,222,166,.36); border-radius: 2px; color: var(--ink); cursor: pointer; display: flex; gap: 10px; height: 44px; justify-content: flex-start; padding: 0 13px; transition: background-color var(--motion-fast), border-color var(--motion-fast); width: clamp(196px,15vw,244px); }
.background-picker__toggle:hover, .background-picker__toggle[aria-expanded="true"] { background: rgba(11,31,27,.72); border-color: var(--gold-pale); }
.background-picker__icon { height: 18px; stroke: var(--gold-pale); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.45; width: 18px; }
.background-picker__label { flex: 1; font-size: 13px; letter-spacing: .05em; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.background-picker__chevron { height: 17px; stroke: var(--ink-muted); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: transform var(--motion-fast) var(--ease-out); width: 17px; }
.background-picker__toggle[aria-expanded="true"] .background-picker__chevron { transform: rotate(180deg); }
.background-picker__menu { background: rgba(8,20,18,.96); border: 1px solid rgba(235,222,166,.3); box-shadow: 0 16px 36px rgba(0,0,0,.28); display: grid; gap: 4px; min-width: 100%; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); width: max-content; z-index: 20; }
.background-picker__option { background: transparent; border: 1px solid transparent; color: var(--ink-muted); cursor: pointer; font-size: 13px; min-height: 36px; padding: 7px 10px; text-align: left; transition: background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast); white-space: nowrap; }
.background-picker__option:hover, .background-picker__option:focus-visible { background: rgba(255,255,255,.06); border-color: rgba(235,222,166,.26); color: var(--ink); outline: none; }
.background-picker__option[aria-current="true"] { color: var(--gold-pale); }
.session-meta { align-items: center; color: var(--ink-muted); display: flex; font-size: 13px; gap: 12px; }
.session-meta > i { background: var(--line); height: 14px; width: 1px; }
.session-meta b { color: var(--gold-pale); font-variant-numeric: tabular-nums; }
.choice-counter { align-items: center; display: inline-flex; gap: 6px; white-space: nowrap; }
.skip-round { align-items: center; background: rgba(255,255,255,.055); border: 1px solid rgba(238,225,170,.28); border-radius: var(--radius-sm); color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; min-height: 40px; padding: 8px 14px; transition: background-color var(--motion-fast), border-color var(--motion-fast), transform 80ms; }
.skip-round svg { fill: none; height: 16px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; width: 16px; }
.skip-round:hover { background: rgba(255,255,255,.1); border-color: var(--line-strong); }
.skip-round:active { transform: scale(.97); }
.finish-experience { background: linear-gradient(135deg,#8e6b24,#e0bd65 52%,#8b6721); border: 1px solid rgba(255,240,184,.84); border-radius: 8px; box-shadow: 0 0 0 1px rgba(7,15,13,.8), 0 0 24px rgba(224,189,101,.28), inset 0 1px rgba(255,255,255,.44); color: #111713; cursor: pointer; font-family: var(--font-display); font-size: 16px; font-weight: 700; min-height: 50px; min-width: 132px; overflow: hidden; padding: 10px 24px; position: relative; text-shadow: 0 1px rgba(255,255,255,.28); transition: box-shadow var(--motion-base), filter var(--motion-fast), transform 80ms; }
.finish-experience span { position: relative; z-index: 1; }
.finish-experience::after { animation: finish-sheen 1100ms .45s var(--ease-out) 1 both; background: linear-gradient(105deg,transparent 36%,rgba(255,255,255,.72) 50%,transparent 64%); content: ""; inset: 0; position: absolute; transform: translateX(-140%); }
.finish-experience:hover { box-shadow: 0 0 0 1px rgba(7,15,13,.8), 0 0 34px rgba(255,220,123,.48), inset 0 1px rgba(255,255,255,.55); filter: brightness(1.08); }
.finish-experience:active { transform: scale(.97); }
@keyframes finish-sheen { to { transform: translateX(140%); } }

#main { height: 100%; }
.board-select, .experience, .recoverable-error { height: 100%; }
.board-select { display: grid; grid-template-columns: minmax(360px, .72fr) 1.28fr; padding: 108px clamp(70px,8vw,150px) 60px; place-items: center; }
.board-intro { max-width: 500px; transform: translate(clamp(-40px,-1.5vw,-24px),clamp(-140px,-10vh,-96px)); }
.kicker { color: var(--gold); font-size: 12px; letter-spacing: .24em; margin: 0 0 20px; }
.board-intro h1 { font-family: var(--font-display); font-size: clamp(48px,4.2vw,80px); font-weight: 500; letter-spacing: -.045em; line-height: 1.08; margin: 0; text-wrap: balance; }
.board-intro h1 span { display: block; transform-origin: 14% 72%; width: max-content; }
.board-intro h1 span:first-child { animation: handwritten-breathe-a 5.8s var(--ease-in-out) infinite alternate; }
.board-intro h1 span:last-child { animation: handwritten-breathe-b 6.6s var(--ease-in-out) .45s infinite alternate; margin-top: -.03em; }
.board-intro > p:last-child { color: var(--ink-muted); font-size: 16px; line-height: 1.9; margin: 26px 0 0; max-width: 390px; }
.board-wheel { aspect-ratio: 1.2 / 1; border-left: 1px solid var(--line); max-height: 650px; max-width: 780px; min-height: 500px; position: relative; width: 100%; }
.board-wheel::before, .board-wheel::after { background: var(--gold-pale); border-radius: 50%; box-shadow: 0 0 18px var(--gold); content: ""; height: 5px; left: -3px; position: absolute; width: 5px; }
.board-wheel::before { top: 16%; }
.board-wheel::after { bottom: 16%; }
.wheel-rotor { animation: destiny-spin 34s linear infinite; height: clamp(176px,19vw,250px); left: 50%; position: absolute; top: 51%; transform: translate(-50%,-50%); width: clamp(176px,19vw,250px); }
.wheel-rotor__ring { border: 1px solid rgba(255,240,184,.44); border-radius: 50%; inset: 0; position: absolute; }
.wheel-rotor__ring--outer { box-shadow: 0 0 34px rgba(216,187,114,.1), inset 0 0 24px rgba(216,187,114,.05); }
.wheel-rotor__ring--outer::before, .wheel-rotor__ring--outer::after { background: var(--gold-pale); border-radius: 50%; box-shadow: 0 0 13px var(--gold); content: ""; height: 7px; left: 50%; position: absolute; width: 7px; }
.wheel-rotor__ring--outer::before { top: -4px; transform: translateX(-50%); }
.wheel-rotor__ring--outer::after { bottom: -4px; transform: translateX(-50%); }
.wheel-rotor__ring--middle { border-style: dashed; inset: 13%; opacity: .65; }
.wheel-rotor__ring--inner { inset: 30%; opacity: .48; }
.wheel-pointer { height: clamp(192px,20.5vw,270px); left: 50%; pointer-events: none; position: absolute; top: 51%; transform: translate(-50%,-50%) rotate(315deg); transform-origin: 50% 50%; transition: transform 90ms linear; width: clamp(192px,20.5vw,270px); z-index: 2; }
.wheel-pointer::before { border-color: transparent transparent rgba(255,240,184,.88); border-style: solid; border-width: 0 7px 19px; content: ""; left: calc(50% - 7px); position: absolute; top: -19px; }
.wheel-pointer::after { background: var(--gold-pale); border: 2px solid rgba(8,17,15,.72); border-radius: 50%; box-shadow: 0 0 16px var(--gold); content: ""; height: 10px; left: calc(50% - 5px); position: absolute; top: 7px; width: 10px; }
.wheel-core { align-items: center; display: flex; flex-direction: column; height: clamp(136px,15vw,194px); justify-content: center; left: 50%; padding: 22px; pointer-events: none; position: absolute; text-align: center; top: 51%; transform: translate(-50%,-50%); width: clamp(136px,15vw,194px); z-index: 2; }
.wheel-core span { color: var(--gold); font-size: 10px; letter-spacing: .22em; margin-bottom: 8px; }
.wheel-core strong { font-family: var(--font-display); font-size: clamp(17px,1.4vw,23px); font-weight: 500; line-height: 1.25; max-width: 150px; text-wrap: balance; }
.wheel-core small { color: var(--ink-faint); font-size: 10px; line-height: 1.5; margin-top: 7px; max-width: 132px; }
.board-list { animation: board-orbit 68s linear infinite; inset: 0; position: absolute; transform-origin: 50% 50%; will-change: transform; z-index: 4; }
.board-option-slot { --x: 50%; --y: 50%; animation: board-counter-orbit 68s linear infinite; left: var(--x); position: absolute; top: var(--y); transform: translate(-50%,-50%); will-change: transform; }
.board-option-slot:nth-child(1) { --x: 50%; --y: 9%; }
.board-option-slot:nth-child(2) { --x: 78.1%; --y: 24.4%; }
.board-option-slot:nth-child(3) { --x: 85.1%; --y: 59.1%; }
.board-option-slot:nth-child(4) { --x: 65.6%; --y: 86.9%; }
.board-option-slot:nth-child(5) { --x: 34.4%; --y: 86.9%; }
.board-option-slot:nth-child(6) { --x: 14.9%; --y: 59.1%; }
.board-option-slot:nth-child(7) { --x: 21.9%; --y: 24.4%; }
.board-option { align-items: center; backdrop-filter: blur(8px) saturate(118%); background: radial-gradient(circle at 16% 0%,rgba(255,240,184,.13),transparent 42%),linear-gradient(135deg,rgba(22,43,36,.92),rgba(11,30,27,.72) 58%,rgba(21,36,31,.88)); border: 1px solid rgba(238,225,170,.32); border-radius: 12px; box-shadow: 0 15px 34px rgba(0,0,0,.28), 0 2px 7px rgba(0,0,0,.18), inset 0 1px rgba(255,255,255,.08); color: var(--ink-muted); cursor: pointer; display: grid; grid-template-columns: 62px 1fr; min-height: 88px; padding: 8px 14px 8px 8px; text-align: left; transform: translateZ(0); transition: border-color var(--motion-fast), box-shadow var(--motion-base), color var(--motion-fast), filter var(--motion-fast), transform var(--motion-fast) var(--ease-out); width: clamp(190px,14.5vw,230px); }
.board-option-slot:nth-child(1) .board-option { width: clamp(220px,16vw,250px); }
.board-option__art { align-self: stretch; border: 1px solid rgba(255,240,184,.38); border-radius: 6px; box-shadow: inset 0 0 12px rgba(0,0,0,.36); min-height: 70px; overflow: hidden; position: relative; }
.board-option__art > img:first-child { height: 100%; inset: 0; object-fit: cover; opacity: .68; position: absolute; width: 100%; }
.board-option__icon { filter: drop-shadow(0 3px 6px rgba(0,0,0,.7)); height: 44px; left: 50%; object-fit: contain; position: absolute; top: 50%; transform: translate(-50%,-50%); width: 44px; }
.board-option__plus { color: var(--gold-pale); height: 29px; left: 50%; position: absolute; stroke: currentColor; stroke-width: 1.35; top: 50%; transform: translate(-50%,-50%); width: 29px; }
.board-option__copy { min-width: 0; padding-left: 10px; }
.board-option__num { color: rgba(255,240,184,.58); display: block; font-family: Georgia,serif; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .14em; margin-bottom: 4px; }
.board-option b { display: block; font-family: var(--font-display); font-size: clamp(16px,1.18vw,20px); font-weight: 500; letter-spacing: .02em; line-height: 1.25; text-wrap: balance; }
.board-option[data-board="all"] { width: clamp(204px,15.3vw,244px); }
.board-option[data-board="all"] b { font-size: clamp(15px,1.02vw,18px); letter-spacing: 0; white-space: nowrap; }
.board-option small { color: rgba(234,235,214,.56); display: block; font-size: 10px; line-height: 1.35; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-option.is-priority { border-color: rgba(255,240,184,.58); box-shadow: 0 13px 34px rgba(0,0,0,.26), 0 0 22px rgba(216,187,114,.11), inset 0 1px rgba(255,255,255,.08); color: var(--gold-pale); }
.board-option.is-priority::after { background: var(--gold); border-radius: 50%; box-shadow: 0 0 10px var(--gold); content: ""; height: 5px; position: absolute; right: 10px; top: 10px; width: 5px; }
.board-option:hover, .board-option:focus-visible, .board-option.is-active { border-color: rgba(255,240,184,.78); box-shadow: 0 18px 42px rgba(0,0,0,.36), 0 0 28px rgba(216,187,114,.17), inset 0 1px rgba(255,255,255,.12); color: var(--gold-pale); filter: brightness(1.06); transform: scale(1.035); }
.board-option[aria-disabled="true"] { border-style: dashed; color: var(--ink-faint); }
.board-option[aria-disabled="true"] .board-option__art { opacity: .68; }
@keyframes destiny-spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes board-orbit { to { transform: rotate(360deg); } }
@keyframes board-counter-orbit { to { transform: translate(-50%,-50%) rotate(-360deg); } }
@keyframes handwritten-breathe-a {
  0% { transform: translate3d(0,0,0) rotate(-.16deg) scale(1); }
  46% { transform: translate3d(1px,-2px,0) rotate(.12deg) scale(1.006,1.002); }
  100% { transform: translate3d(-1px,1px,0) rotate(-.05deg) scale(.999,1.004); }
}
@keyframes handwritten-breathe-b {
  0% { transform: translate3d(0,1px,0) rotate(.12deg) scale(1.002,1); }
  55% { transform: translate3d(-1px,-1px,0) rotate(-.14deg) scale(.998,1.005); }
  100% { transform: translate3d(1px,0,0) rotate(.06deg) scale(1.005,1.001); }
}
.board-hint { bottom: 22px; color: rgba(234,235,214,.62); font-size: 13px; left: 50%; letter-spacing: .09em; margin: 0; position: absolute; text-align: center; transform: translateX(-50%); white-space: nowrap; }
.board-hint p { margin: 0; }
.board-hint p + p { color: rgba(234,235,214,.44); font-size: 12px; letter-spacing: .06em; margin-top: 7px; }
.board-hint span { color: var(--gold); margin-right: 8px; }
.board-hint b { color: var(--gold-pale); font-family: Georgia,serif; font-variant-numeric: tabular-nums; font-weight: 500; }

.experience { padding: 126px 36px 18px; text-align: center; }
.recoverable-error { align-items: center; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.recoverable-error > span { color: var(--gold); font-size: 44px; }
.recoverable-error h1 { font-family: var(--font-display); font-size: 42px; font-weight: 500; margin: 18px 0 10px; }
.recoverable-error p { color: var(--ink-muted); margin: 0 0 28px; }

.desktop-gate { align-items: center; background: var(--night); display: none; inset: 0; justify-content: center; position: fixed; text-align: center; z-index: 100; }
.desktop-gate h1 { font-family: var(--font-display); font-size: 32px; font-weight: 500; margin: 18px 0 8px; }
.desktop-gate p { color: var(--ink-muted); line-height: 1.7; margin: 0; }
.desktop-gate small { color: var(--ink-faint); display: block; font-size: 12px; letter-spacing: .08em; margin-top: 12px; }
.gate-mark { color: var(--gold); font-size: 44px; }
/* 只拦截明确的竖屏；1:1 方屏、小尺寸横屏和桌面窗口均直接显示页面。 */
@media (max-aspect-ratio: 999/1000) { .desktop-gate { display: flex; } }
@media (hover:hover) and (pointer:fine) { .brand:hover .brand__sigil { border-color: var(--gold-pale); } }
@media (max-width: 1260px) {
  .board-select { grid-template-columns: minmax(300px,.65fr) 1.35fr; padding-left: 54px; padding-right: 54px; }
  .board-wheel { min-height: 470px; }
  .board-option { grid-template-columns: 50px 1fr; min-height: 74px; padding: 6px 10px 6px 6px; width: 176px; }
  .board-option-slot:nth-child(1) .board-option { width: 218px; }
  .board-option__art { min-height: 60px; }
  .board-option__icon { height: 35px; width: 35px; }
  .board-option small { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .wheel-rotor, .board-list, .board-option-slot, .board-intro h1 span { animation: none; }
  .wheel-pointer { transition: none; }
}
