:root{font-family:Inter,system-ui,-apple-system,sans-serif;color:#f1f1fa;background:#0b0c18;font-synthesis:none;color-scheme:dark}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 70% 0%,#241b39 0,transparent 52%)}main{max-width:1080px;margin:auto;padding:28px 28px 20px}header{display:flex;justify-content:space-between;gap:12px;align-items:center}.brand{font-size:14px;font-weight:850;letter-spacing:2px;color:inherit;text-decoration:none}.brand span{color:#63edbb}.tag{font-size:10px;letter-spacing:1.7px;border:1px solid #39334e;border-radius:20px;padding:9px 12px;color:#b8adce}.intro{margin:46px 0 28px}.eyebrow{font-size:10px;letter-spacing:3px;color:#65e7b8}h1{font-size:clamp(40px,7vw,68px);letter-spacing:-3px;line-height:1.1;margin:12px 0}h1 span{color:#b89aff}.intro>p:last-child{color:#a5a4bc;font-size:14px}.arena{overflow:hidden;border:1px solid #39334c;border-radius:20px;background:#101021;box-shadow:0 22px 80px #0005}.hud{display:flex;justify-content:space-between;padding:20px 26px;border-bottom:1px solid #29273d;font-size:9px;letter-spacing:1.5px;color:#9c98b4}.hud strong{display:block;color:#f2f1ff;font-size:23px;letter-spacing:0;margin-top:5px;font-variant-numeric:tabular-nums}.hud>div:last-child strong{color:#65e7b8}#stage{position:relative;width:100%;height:clamp(310px,50vw,540px);touch-action:manipulation}#stage canvas{display:block;touch-action:none}#placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse,#233b3533,transparent 65%)}.gem{font-size:110px;line-height:1;color:#66edbc;text-shadow:0 0 40px #65e7b844}#placeholder p{margin-bottom:8px}small{color:#9895ad}.toolbar{display:flex;gap:10px;padding:16px 24px;border-top:1px solid #29273d}button{font:inherit;font-size:13px;font-weight:650;min-height:46px;border-radius:10px;border:1px solid #47415e;background:#252238;color:#efecff;padding:10px 20px;cursor:pointer;touch-action:manipulation}button:first-child{background:#65e7b8;border-color:#65e7b8;color:#102b24;margin-right:auto}button:disabled{opacity:.4;cursor:default}button:hover:not(:disabled){filter:brightness(1.12)}:focus-visible{outline:3px solid #d3baff;outline-offset:3px}#stage:focus-visible{outline-offset:-4px}#status{font-size:12px;line-height:1.7;color:#b8b2cd;min-height:40px;margin:16px 0 28px}.guide{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}.guide b{font-size:10px;letter-spacing:1.7px;color:#c4b3e5}.guide p{font-size:12px;color:#9994ae;line-height:1.8}footer{margin-top:30px;border-top:1px solid #252237;padding-top:18px;color:#77738b;font-size:10px;line-height:1.7}@media(max-width:600px){main{padding:20px 14px}.brand{font-size:11px;letter-spacing:1px}.tag{font-size:8px;padding:7px}.intro{margin-top:32px}.hud{padding:15px;font-size:8px}.hud strong{font-size:20px}.toolbar{padding:12px;gap:8px;flex-wrap:wrap}button{padding:10px 12px;font-size:12px}.toolbar #jump{flex-grow:1}.guide{grid-template-columns:1fr;gap:12px}.guide p{margin:6px 0}.arena{border-radius:14px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}main{max-width:1260px}.intro{margin:26px 0 22px}.intro h1{font-family:Georgia,serif;font-style:italic;font-weight:600;font-size:54px;letter-spacing:-2px;text-shadow:0 0 22px #ad65ef66}.intro h1 span{color:#dcc5ff}.eyebrow{color:#a1e8d5}.arena{position:relative;border-color:#706096;box-shadow:0 0 0 4px #18152a,0 22px 80px #0008}.hud{position:absolute;z-index:2;top:18px;left:18px;right:18px;border:0;padding:0;gap:12px;pointer-events:none}.hud>div{min-width:130px;padding:9px 16px;border:1px solid #9982c0;border-radius:6px 18px;background:linear-gradient(110deg,#110d24eb,#25163bc9);box-shadow:inset 0 0 14px #9960df28,0 0 14px #9d56fa22;color:#ded1ee}.hud>div:last-child{border-color:#54c5bd;background:linear-gradient(110deg,#0a1c29ed,#123b3ac9)}.hud strong{font-style:italic;font-size:25px;color:#fff;text-shadow:0 0 10px #b98aff}.toolbar{background:linear-gradient(90deg,#141426,#211932,#101e28);border-top-color:#64527d}.toolbar button{border-color:#8672a4;background:linear-gradient(#332344,#191c32)}.toolbar button:first-child{background:linear-gradient(#246956,#17453f);border-color:#60d9b9;color:#ddfff7;box-shadow:inset 0 0 12px #77ffd52a}#placeholder{background:linear-gradient(#0a122b44,#080b1a99),url(../assets/forest-ruins/moonlit-ruins.webp) center/cover}#placeholder p{font-family:Georgia,serif;font-size:24px;text-shadow:0 2px 10px #000}.gem{color:#dab3ff}.tag{color:#b8f4e0;border-color:#376759}@media(max-width:600px){.intro h1{font-size:42px}.hud{top:10px;left:8px;right:8px;gap:5px}.hud>div{min-width:0;flex:1;padding:8px 9px;font-size:7px;letter-spacing:1px}.hud strong{font-size:19px}.intro{margin:24px 0 20px}.tag{font-size:7px;letter-spacing:1px}}html.embedded,html.embedded body{height:100%;overflow:hidden;background:#0b0c18}.embedded main{height:100dvh;max-width:none;padding:0;display:flex;flex-direction:column}.embedded main>header,.embedded .intro,.embedded .guide,.embedded main>footer{display:none}.embedded .arena{flex:1;min-height:0;display:flex;flex-direction:column;border:0;border-radius:0;box-shadow:none;overflow:hidden}.embedded #stage{flex:1;min-height:0;height:auto;aspect-ratio:auto!important;width:100%}.embedded .toolbar{flex:none;margin:0;display:flex;flex-wrap:nowrap;gap:8px;padding:10px max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))}.embedded .toolbar button{min-height:48px;padding:10px 12px;font-size:12px;white-space:nowrap}.embedded .toolbar #jump{flex:1;font-size:15px}.embedded #status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}.embedded .hud{top:max(10px,env(safe-area-inset-top));left:10px;right:10px;gap:6px}.embedded .hud>div{min-width:0;flex:1;max-width:170px;padding:7px 10px;font-size:8px}.embedded .hud strong{font-size:20px}@media(max-height:450px){.embedded .toolbar{padding-top:6px;padding-bottom:max(6px,env(safe-area-inset-bottom))}.embedded .toolbar button{min-height:42px;padding-block:7px}.embedded .hud>div{padding:5px 10px}.embedded .hud strong{font-size:17px}}.start-crystal{width:150px;height:180px;object-fit:contain;filter:drop-shadow(0 0 28px #77eacb70);animation:crystal-bob 3s ease-in-out infinite}@keyframes crystal-bob{50%{transform:translateY(-10px) rotate(5deg)}}@media(prefers-reduced-motion:reduce){.start-crystal{animation:none}}#result-panel[hidden]{display:none!important}#result-panel{position:absolute;top:0;right:0;bottom:0;left:0;z-index:10;display:grid;place-items:center;padding:16px;background:#090d20db;overflow:auto}.result-card{width:min(100%,420px);max-height:100%;overflow:auto;border:1px solid #8d71be;border-radius:18px;background:#171629;padding:22px;box-shadow:0 20px 50px #0008}.result-card h2{font-size:24px;margin:0 0 14px}.result-card p{line-height:1.5}.result-card label{display:block;font-weight:700;margin-bottom:8px}.result-card input{width:100%;box-sizing:border-box;min-height:46px;padding:10px;border-radius:8px;border:1px solid #9486ad;background:#0e1020;color:#fff;font:inherit}.ranking-note{font-size:12px;color:#c1bfd1}.result-card button{width:100%;min-height:44px;margin-top:10px}.embedded .arena{position:relative}#score-message{font-size:14px;color:#d8f8e6}.audio-controls{display:flex;flex:none;align-items:center;gap:10px;padding:8px 12px;background:#151b2c;border:1px solid #3b3552;color:#c8c3dc;font-size:11px;flex-wrap:wrap}.audio-controls button{min-height:40px;padding:7px 12px;margin:0!important;font-size:12px}.audio-controls input{width:90px;accent-color:#65e7b8;min-height:32px;margin:0}.audio-controls #audio-status{font-size:11px;color:#ffdf9e;line-height:1.4}.audio-controls #audio-status:empty{display:none}.embedded .audio-controls{border:0;border-bottom:1px solid #3b3552;padding:5px 10px;gap:8px}.embedded .audio-controls button{min-height:36px}.embedded .audio-controls input{width:80px}@media(max-height:450px){.embedded .audio-controls{padding:3px 10px}.embedded .audio-controls button{min-height:32px}}#prize-receipt{padding:14px;margin:12px 0;border:1px solid #66dfb6;border-radius:8px;background:#142a26;color:#e3fff4;text-align:left}#prize-receipt[hidden]{display:none}#prize-receipt strong,#prize-receipt label{display:block;font:13px/1.5 system-ui;margin:0 0 8px}#prize-receipt input{width:100%;box-sizing:border-box;min-height:44px;font:11px monospace;padding:8px;border:1px solid #547a70;background:#0c1916;color:#effff9;border-radius:4px}#prize-receipt button{min-height:40px;width:100%;margin:8px 0}#prize-receipt p{font:12px/1.6 system-ui;margin:0;color:#cae8dc}
