:root{font-family:system-ui,-apple-system,"PingFang TC","Microsoft JhengHei",sans-serif;color:#f0ead9;background:#101f19;color-scheme:dark;--gold:#eac780;--green:#123d2b;--muted:#b4bcaa}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:radial-gradient(ellipse at 20% -20%,#35513b 0,transparent 55%),#101f19}button,a,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #ffe4a6;outline-offset:5px}header{height:84px;max-width:1500px;padding:0 48px;display:flex;align-items:center;justify-content:space-between;margin:auto;border-bottom:1px solid #b8c5ac20}.wordmark{color:inherit;text-decoration:none;font-size:14px;letter-spacing:.06em;display:flex;gap:13px;align-items:center}.mark{display:inline-grid;place-items:center;border:1px solid #b8c5ac50;width:34px;height:34px;border-radius:50%;font-size:23px;color:var(--gold)}.event-date{font-size:13px;letter-spacing:.07em;color:var(--gold)}.event-date i{font-style:normal;display:inline-block;padding-left:15px;color:var(--muted);font-size:12px}main{max-width:1500px;margin:auto;padding:24px 48px 30px}.overline{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;letter-spacing:.08em;margin:4px 0 16px}.game-shell{display:grid;grid-template-columns:minmax(0,1fr) 306px;min-height:600px;border:1px solid #8ea08640;border-radius:16px;overflow:hidden;box-shadow:0 28px 90px #0005}.stage-wrap{position:relative;min-width:0;background:#1c3025;display:flex;align-items:center;overflow:hidden}canvas{width:100%;height:100%;aspect-ratio:16/10;object-fit:contain;display:block}.sound{position:absolute;left:20px;bottom:20px;border:1px solid #d7d5bb45;border-radius:30px;background:#152c24cc;color:#f5e9ca;font-size:12px;min-height:42px;padding:10px 16px;backdrop-filter:blur(8px)}.console{background:linear-gradient(135deg,#243a2b,#15291f 80%);padding:26px 25px 15px;display:flex;flex-direction:column;min-width:0}.console-heading{display:flex;justify-content:space-between;align-items:center;min-height:25px;margin-bottom:19px}.eyebrow{font-size:10px;letter-spacing:.18em;color:var(--gold);font-weight:650}.console-heading button{border:1px solid #b4bcaa50;border-radius:6px;background:none;color:#dfdfc8;padding:6px 9px;font-size:11px;min-height:36px}h1{font-size:38px;line-height:1.25;letter-spacing:-.03em;margin:8px 0 22px;font-weight:800}h1 span{display:block;font-size:19px;color:#d1cdb7;font-weight:450;letter-spacing:.02em;margin-top:9px}.intro-copy{font-size:14px;line-height:1.85;color:#c8cdbb;margin-bottom:22px}.steps{font-size:12px;line-height:1.8;color:#e3e4d2;margin-bottom:24px}.steps p{margin:8px 0}.steps b{display:inline-block;font-size:10px;color:var(--gold);font-weight:650;width:27px}.primary{width:100%;border:1px solid #f7dfaa40;border-radius:8px;min-height:55px;background:linear-gradient(110deg,#f4d99a,#d8b771);color:#233327;box-shadow:0 3px 0 #8c7545;display:flex;align-items:center;justify-content:space-between;padding:14px 17px;font-size:16px;font-weight:750;transition:filter .15s,transform .1s}.primary:hover{filter:brightness(1.07)}.primary:active{transform:translateY(2px);box-shadow:0 1px 0 #8c7545}.primary span{font-size:22px;font-weight:500}.secondary{width:100%;min-height:45px;padding:10px;margin-top:13px;background:transparent;color:#ebd4a1;border:1px solid #c3c8ae40;border-radius:7px;font-size:13px}.hint{font-size:11px;line-height:1.7;color:#b0b9a5}#intro>.hint{text-align:center}details{font-size:12px;color:#c1c9b3;line-height:1.7}summary{cursor:pointer;min-height:38px;padding:9px 0}details p{margin:8px 0}.console-footer{margin-top:auto;padding-top:20px;display:flex;align-items:center;gap:8px;border-top:1px solid #bcc6a21f;font-size:10px;line-height:1.5;color:#aebda1}.signal{display:inline-block;width:5px;height:5px;border-radius:50%;background:#95bd7d;flex-shrink:0}#audio-status{margin-bottom:0;font-size:10px}.live-stats{display:flex;justify-content:space-between;margin:4px 0 32px}.live-stats small{display:block;font-size:10px;letter-spacing:.05em;color:#c1c9b3;margin-bottom:7px}.live-stats strong{font-size:28px;font-weight:650;line-height:1.2;color:#f5dfad;display:block;font-variant-numeric:tabular-nums}.live-stats strong small{display:inline;padding-left:3px;font-size:12px}.distance-row{display:flex;justify-content:space-between;font-size:11px;color:#c0c8b3}progress{width:100%;height:5px;margin-top:12px;border:0;appearance:none;accent-color:#dabc78}progress::-webkit-progress-bar{background:#78876b40;border-radius:3px}progress::-webkit-progress-value{background:#dabc78;border-radius:3px}#feedback{font-size:15px;line-height:1.7;min-height:60px;margin:28px 0 15px;color:#efe4c5}.rhythm{height:27px;position:relative;background:#86917530;overflow:hidden;border-radius:6px;border:1px solid #b2bc9c30}.rhythm span{position:absolute;height:100%;background:linear-gradient(90deg,#599470,#90b77e)}.rhythm i{position:absolute;top:0;bottom:0;width:5px;background:#fff5d7;box-shadow:0 0 9px #ffffb070;transform:translateX(-2.5px)}.rhythm-labels{display:flex;justify-content:space-between;font-size:10px;color:#a5b99a;margin:8px 0 25px}.primary[data-perfect="true"]{background:linear-gradient(100deg,#d6e6ad,#b8d78e);color:#173a2a}.score{display:flex;align-items:baseline;gap:9px;color:var(--gold);margin:20px 0}.score strong{font-size:76px;font-weight:750;line-height:1}.score span{font-size:15px;color:#b5bda7}h2{font-size:27px;line-height:1.35;font-weight:650;letter-spacing:-.03em}#result-detail{font-size:12px;line-height:1.85;color:#d4d9c3}.goal{font-size:12px;line-height:1.7;padding:13px;border:1px solid #acbb9540;border-radius:8px;color:#dac592}#paused>p{font-size:13px;line-height:1.7;margin-bottom:25px}.event-strip{padding:33px 2px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #bfd0ac25}.event-strip h2{font-size:23px;margin:10px 0 0}.event-details{font-size:17px;line-height:1.6;color:#ebd19b;text-align:right}.event-details span{font-size:11px;color:#acb59e}.rules{margin-top:16px}.rules p{max-width:850px}footer{margin-top:25px;font-size:10px;line-height:1.85;color:#9eac96}footer p{margin:7px 0}
@media(min-width:1600px){.game-shell{min-height:680px}.console{padding:35px 29px}.steps{margin-bottom:35px}.intro-copy{margin-bottom:30px}}
@media(max-width:1050px){header{padding:0 24px}main{padding:22px 24px}.game-shell{grid-template-columns:minmax(0,1fr) 280px;min-height:560px}.console{padding:24px 21px}h1{font-size:33px}.event-date i{display:none}}
@media(max-width:760px){header{height:63px;padding:0 17px}.wordmark{font-size:11px;gap:8px;letter-spacing:0}.mark{width:26px;height:26px;font-size:18px}.event-date{font-size:10px}main{padding:16px 12px 25px}.overline{font-size:10px;margin:0 4px 12px}.game-shell{display:block;border-radius:12px;min-height:0}.stage-wrap{height:auto;aspect-ratio:3/4;display:block}canvas{height:100%;aspect-ratio:3/4}.sound{left:13px;bottom:12px;font-size:10px;min-height:35px;padding:8px 12px}.console{padding:19px 23px 16px}.console-heading{margin-bottom:12px}.console h1{font-size:31px;margin:0 0 12px}.console h1 span{display:inline;margin-left:11px;font-size:14px}.intro-copy{display:none}.steps{margin:12px 0 18px;font-size:12px;display:grid;grid-template-columns:1fr;gap:0}.steps p{margin:3px 0}.primary{min-height:56px}.console-footer{padding-top:12px;margin-top:13px}.event-strip{padding:23px 8px;gap:18px}.event-strip h2{font-size:18px;max-width:195px;line-height:1.6}.event-details{font-size:14px;flex-shrink:0}.event-details span{font-size:9px}.event-strip .eyebrow{font-size:9px}.live-stats{margin-bottom:20px}.live-stats strong{font-size:32px}#feedback{min-height:27px;margin:16px 0 12px}.rhythm-labels{margin-bottom:17px}.score strong{font-size:66px}#playing{scroll-margin-top:15px}.rules,footer{margin-left:6px;margin-right:6px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){
 .game-shell{scroll-margin-top:4px}
 .game-shell:is([data-phase="playing"],[data-phase="handoff"],[data-phase="paused"]) .stage-wrap{height:clamp(220px,44svh,380px);aspect-ratio:auto}
 .game-shell:is([data-phase="playing"],[data-phase="handoff"]) .console{padding:9px 16px 12px}
 .game-shell:is([data-phase="playing"],[data-phase="handoff"]) .console-heading{margin-bottom:3px;justify-content:flex-end}
 .game-shell:is([data-phase="playing"],[data-phase="handoff"]) .console-heading>.eyebrow,.game-shell:is([data-phase="playing"],[data-phase="handoff"]) .live-stats,.game-shell:is([data-phase="playing"],[data-phase="handoff"]) .console-footer{display:none}
 .game-shell:is([data-phase="playing"],[data-phase="handoff"]) #feedback{font-size:13px;min-height:23px;margin:8px 0}
 .game-shell:is([data-phase="playing"],[data-phase="handoff"]) .rhythm-labels{margin:5px 0 10px}
 .game-shell:is([data-phase="playing"],[data-phase="handoff"]) #action-help{margin:8px 0 0}
 .game-shell:is([data-phase="playing"],[data-phase="handoff"]) #audio-status{margin:4px 0 0}
 .sound{min-height:44px}
}
.audio-test{font-size:11px;min-height:44px;margin-top:5px;padding:8px}
.result-share{margin:20px 0;border-top:1px solid #eac78035;padding-top:18px}.result-share-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.result-share a.secondary{display:flex;align-items:center;justify-content:center;text-decoration:none;text-align:center}.result-share-actions .secondary{font-size:12px;padding:10px 5px}.result-share img{display:block;width:100%;height:auto;border-radius:8px}.result-share a{color:#f2d58f;overflow-wrap:anywhere}.result-share #result-link{font-size:10px}.result-share button:disabled{opacity:.65;cursor:wait}.result-share summary{min-height:44px}#result-share-status:empty{display:none}
#action{touch-action:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
.rhythm[data-over="true"]{border-color:#edaa72;background:#8b533d55}.rhythm[data-over="true"] i{background:#ffba81}
.fullscreen-entry{position:absolute;right:18px;bottom:18px;border:1px solid #f0d294;border-radius:10px;padding:13px 18px;min-height:48px;background:#172d25ee;color:#f7dfaa;font-size:14px;font-weight:700;box-shadow:0 4px 18px #0004}
.exit-fullscreen{position:fixed;right:max(16px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));z-index:1002;min-height:44px;padding:10px 15px;border:1px solid #eee0ad66;border-radius:9px;background:#10241ff0;color:#fff0cc;font-size:13px}
.game-shell.immersive{position:fixed;inset:0;z-index:1000;width:100vw;height:100dvh;min-height:0;max-height:100dvh;border:0;border-radius:0;background:#10231b;grid-template-columns:minmax(0,1fr) minmax(280px,320px)}
.immersive .stage-wrap{height:100%;min-height:0}.immersive .console{padding-top:66px;overflow-y:auto;min-height:0;overscroll-behavior:contain}.immersive canvas{height:100%;width:100%}
.immersive :is(#pause,#sound){min-height:44px;min-width:44px}
/* In-app browsers can reject native fullscreen. The viewport fallback must
   still expand the scene, rather than retain the ordinary stacked page. */
@media(max-width:760px), (max-height:500px) and (orientation:landscape){
 .fullscreen-entry{font-size:12px;padding:10px 12px;right:10px;bottom:12px}
 .game-shell.immersive{
  display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;
  padding:calc(56px + env(safe-area-inset-top)) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
 }
 .game-shell.immersive .stage-wrap{height:100%;min-height:0;aspect-ratio:auto}
 .game-shell.immersive .console{padding:12px 16px;max-height:52dvh;min-height:0}
 .immersive .exit-fullscreen{top:calc(6px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));font-size:12px}
 .immersive .sound{position:fixed;z-index:1002;top:calc(6px + env(safe-area-inset-top));left:calc(12px + env(safe-area-inset-left));bottom:auto;min-height:44px}
 .immersive #pause{position:fixed;z-index:1002;top:calc(6px + env(safe-area-inset-top));left:50%;transform:translateX(-50%);min-height:44px;min-width:60px;background:#10241f}
 .immersive .console-heading{min-height:0;margin:0}
 .immersive .console-heading>.eyebrow,.immersive .console-footer{display:none}
 .immersive .steps{margin:4px 0 12px}
 .immersive .console h1{font-size:25px}
 .game-shell.immersive:is([data-phase="playing"],[data-phase="handoff"]) .console{padding:8px 16px 12px;min-height:158px;max-height:none;overflow:visible;border-top:1px solid #d7c39035}
 .game-shell.immersive:is([data-phase="playing"],[data-phase="handoff"]) .console-heading{margin:0;min-height:0}
 .immersive:is([data-phase="playing"],[data-phase="handoff"]) :is(.live-stats,#distance,.rhythm-labels,#action-help,#audio-status,#test-sound){display:none}
 .game-shell.immersive:is([data-phase="playing"],[data-phase="handoff"]) #feedback{font-size:12px;line-height:1.6;min-height:20px;margin:4px 0 6px}
 .immersive .rhythm{height:26px;margin-bottom:10px}
 .immersive #action{min-height:56px}
}
@media(max-height:500px) and (orientation:landscape){
 .game-shell.immersive{grid-template-columns:minmax(0,1fr) 224px;grid-template-rows:minmax(0,1fr)}
 .game-shell.immersive .console{max-height:none;padding:10px 12px;overflow-y:auto}
 .game-shell.immersive:is([data-phase="playing"],[data-phase="handoff"]) .console{padding:12px;overflow-y:auto;justify-content:center;border-top:0;border-left:1px solid #d7c39035}
 .immersive #feedback{min-height:38px!important}
}

.rhythm b{position:absolute;top:0;height:100%;background:#f6d580;pointer-events:none}.rhythm i{z-index:1}.result-share-actions a,.result-share-actions button{min-height:48px}

.game-shell.immersive[data-phase="exchange"] .console{max-height:240px}.immersive[data-phase="exchange"] :is(#audio-status,#test-sound){display:none}#exchange h2{color:#f2d58f;margin:8px 0}#exchange p{font-size:13px;line-height:1.6}
.party-invite{border-left:3px solid #e5c37b;padding:9px 12px;background:#e5c37b0c;margin:0 0 15px}.party-invite b{display:block;font-size:14px;color:#f5d995}.party-invite span{display:block;font-size:11px;line-height:1.6;color:#c0ccb7;margin-top:5px}.result-story{margin:18px 0;padding:16px;border:1px solid #e5c37b55;background:linear-gradient(135deg,#e5c37b12,transparent);border-radius:10px}.result-story h3{font-size:19px;color:#f2d38d;margin:9px 0}.result-story p{font-size:12px;line-height:1.7;margin:7px 0;color:#d6dec8}.result-story #rival-result{color:#a8dce6}.result-story #story-goal{border-top:1px solid #e5c37b25;padding-top:10px;color:#ccb889}

.public-links{display:flex;flex-wrap:wrap;gap:14px 24px;margin-top:24px}.public-links a,.rules a{color:#ebd4a1;font-size:13px;text-underline-offset:4px}.event-cta{display:block;text-align:center;text-decoration:none}.game-share{max-width:480px;margin:24px 0}.game-share a{overflow-wrap:anywhere}
