:root { color-scheme: dark; font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; --ink:#fff5de; --muted:#c9a89f; --gold:#f1c66e; --panel:rgba(38,15,25,.78); }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; color:var(--ink); background:#170b14; background-image:radial-gradient(circle at 50% -10%,#8e392f 0,#4b1c27 34%,#170b14 80%); }
body::before { content:""; position:fixed; inset:0; pointer-events:none; opacity:.15; background-image:radial-gradient(#ffd68a 1px,transparent 1px); background-size:30px 30px; }
.game-shell { width:min(1240px,calc(100% - 36px)); margin:0 auto; padding:42px 0 52px; position:relative; }
.masthead { display:flex; align-items:end; justify-content:space-between; gap:28px; }
.eyebrow,.section-kicker,.scene-label { color:var(--gold); letter-spacing:.2em; font-size:11px; font-weight:700; }
.eyebrow { margin:0 0 10px; } h1 { margin:0; font-size:clamp(34px,5.2vw,68px); line-height:1.06; letter-spacing:0; } h1 span { color:#f0aa51; }
.subtitle { margin:15px 0 0; color:var(--muted); font-size:15px; }
.status-pill { display:inline-flex; align-items:center; gap:9px; padding:9px 14px; border:1px solid #efc16c3d; border-radius:99px; color:#e7c39e; background:#28121eb8; font-size:12px; }
.status-dot,.live-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#e9a54f; box-shadow:0 0 0 4px #e9a54f20; }
.play-layout { display:grid; grid-template-columns:minmax(0,1fr) 325px; gap:22px; margin-top:35px; align-items:start; }
.scene-card { min-width:0; overflow:hidden; border:1px solid #efc16c3b; border-radius:24px; background:#2a1220c7; box-shadow:0 24px 80px #09030988,inset 0 1px #ffffff16; }
.scene-topbar,.scene-actions { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:15px 20px; } .scene-topbar { border-bottom:1px solid #ffffff10; }
.scene-label { display:flex; align-items:center; gap:8px; font-size:10px; } .live-dot { width:6px; height:6px; background:#ec8264; box-shadow:0 0 0 4px #ec82641c; }
.scene-tip,.audio-note { color:#b89693; font-size:12px; } .scene-wrap { position:relative; height:clamp(470px,60vw,650px); min-height:410px; background:#100910; }
#scene { display:block; width:100%; height:100%; outline:none; } .scene-caption { position:absolute; bottom:15px; left:18px; display:flex; gap:8px; color:#eac88488; font-size:10px; letter-spacing:.18em; pointer-events:none; }
.hand-control { position:absolute; right:18px; bottom:18px; z-index:3; display:flex; flex-direction:column; align-items:center; gap:3px; width:82px; min-height:82px; padding:9px 8px 8px; border:1px solid #ffe2a866; border-radius:22px; color:#5b2025; background:linear-gradient(145deg,#ffe6ae,#e6a04b); box-shadow:0 8px 18px #080308aa, inset 0 1px #fff8; font-size:11px; transform-origin:50% 100%; touch-action:manipulation; user-select:none; -webkit-tap-highlight-color:transparent; }
.hand-control:hover { transform:translateY(-3px) rotate(-2deg); } .hand-control.is-throwing { animation:handThrow .8s cubic-bezier(.2,.8,.3,1); pointer-events:none; }
.hand-icon { display:block; font-size:37px; line-height:1; filter:drop-shadow(0 3px 1px #a45f3544); } .hand-control span:last-child { font-weight:800; }
@keyframes handThrow { 0% { transform:translate(0,0) rotate(0); } 30% { transform:translate(-14px,-22px) rotate(-13deg); } 62% { transform:translate(-26px,-8px) rotate(-25deg) scale(1.08); } 100% { transform:translate(0,0) rotate(0); } }
.scene-loader { position:absolute; inset:0; display:grid; place-content:center; gap:14px; justify-items:center; color:#eac884; font-size:13px; background:#100910; transition:opacity .45s ease; } .scene-loader.is-hidden { opacity:0; pointer-events:none; }
.loader-ring { width:32px; height:32px; border:2px solid #efc16c32; border-top-color:var(--gold); border-radius:50%; animation:spin 1s linear infinite; } @keyframes spin { to { transform:rotate(360deg); } }
.scene-actions { border-top:1px solid #ffffff10; } .audio-note { display:flex; align-items:center; gap:8px; } .sound-wave { color:var(--gold); font-weight:800; letter-spacing:-2px; }
.gesture-dock { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 20px 14px; border-top:1px solid #ffffff0d; background:#1b111bc2; }
.gesture-copy { display:flex; align-items:center; gap:9px; min-width:0; color:#d9d3dc; }
.gesture-copy strong { display:block; color:#f2d18f; font-size:12px; }
.gesture-copy small { display:block; margin-top:3px; overflow:hidden; color:#a99aa8; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.camera-dot { display:block; width:9px; height:9px; flex:0 0 auto; border-radius:50%; background:#74717c; box-shadow:0 0 0 4px #74717c1f; }
.gesture-dock.is-active .camera-dot { background:#65d59b; box-shadow:0 0 0 4px #65d59b22; }
.camera-btn { min-width:74px; padding:9px 14px; border:1px solid #ffffff1e; color:#f0e4d1; background:#ffffff0d; box-shadow:none; font-size:12px; }
.camera-btn:hover { background:#ffffff18; } .camera-btn.is-active { color:#30221e; background:linear-gradient(135deg,#a7e6ba,#5fcf9a); }
button { display:inline-flex; align-items:center; gap:9px; border:0; border-radius:99px; padding:13px 22px; cursor:pointer; color:#531a25; background:linear-gradient(135deg,#ffe8ac,#e9a849); box-shadow:0 8px 24px #0007; font:inherit; font-size:14px; font-weight:800; transition:transform .2s ease,filter .2s ease,opacity .2s ease; } button:hover { transform:translateY(-2px); filter:brightness(1.08); } button:disabled { cursor:wait; opacity:.58; } .button-glyph { font-size:22px; line-height:.7; }
.info-panel { display:grid; gap:14px; } .info-panel>section,.result-block,.history-block,.rules-block { border:1px solid #ffffff14; border-radius:18px; background:var(--panel); box-shadow:inset 0 1px #ffffff0b; }
.result-block { padding:23px 23px 25px; border-color:#efc16c3d; background:linear-gradient(145deg,#642631d9,#2d1320dc); } .section-kicker { margin:0 0 14px; }
.result { min-height:42px; color:#ffd477; font-size:30px; font-weight:900; line-height:1.25; } .result-detail { min-height:19px; margin:10px 0 0; color:#d8b8aa; font-size:12px; }
.history-block,.rules-block { padding:20px; } .block-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; } h2 { margin:0; color:#f3d095; font-size:17px; } .block-heading span { color:#ae8984; font-size:11px; }
.history { max-height:235px; margin:15px 0 0; padding:0 0 0 23px; overflow:auto; color:#e6cec0; font-size:12px; line-height:1.85; } .history li { padding:3px 0 3px 3px; border-bottom:1px solid #ffffff0d; } .history .empty-history { padding-left:0; border:0; list-style:none; color:#9d7e7c; }
.rules-block p { margin:15px 0 18px; color:#caa9a2; font-size:12px; line-height:1.75; } .rank-list { display:flex; flex-wrap:wrap; gap:7px; } .rank-list span { display:inline-flex; align-items:center; gap:5px; color:#d4b09a; font-size:11px; } .rank-list b { display:grid; width:20px; height:20px; place-items:center; border-radius:50%; color:#5b1c24; background:#efc16c; font-size:10px; }
@media (max-width:880px) { .play-layout { grid-template-columns:1fr; } .info-panel { grid-template-columns:1fr 1fr; } .result-block { grid-column:1/-1; } }
@media (max-width:620px) { .game-shell { width:min(100% - 22px,560px); padding-top:28px; } .masthead { display:block; } .status-pill { margin-top:18px; } .play-layout { margin-top:25px; } .scene-topbar,.scene-actions,.gesture-dock { padding-left:14px; padding-right:14px; } .scene-tip { display:none; } .scene-wrap { height:72vw; min-height:360px; } .scene-actions { align-items:stretch; flex-direction:column; } button { justify-content:center; } .gesture-copy small { max-width:230px; } .hand-control { right:12px; bottom:12px; width:72px; min-height:72px; } .hand-icon { font-size:31px; } .info-panel { grid-template-columns:1fr; } .result-block { grid-column:auto; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.001ms!important; transition-duration:.001ms!important; } }
