body[data-arena-game="wave"]{--wave-ink:#345a4b;--wave-muted:#7b8d7d}.wave-hud{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;width:100%;color:#37644d;font-variant-numeric:tabular-nums}.wave-hud>div:last-child{text-align:right}.wave-hud small{display:block;font-size:10px;font-weight:500;color:#83927f;margin-bottom:3px}.wave-hud b{font-size:22px;font-weight:700;letter-spacing:-.04em}.wave-round{font-size:12px;color:#7b8d79;white-space:nowrap}.wave-stage{position:relative;width:100%;aspect-ratio:600/420;min-height:0;overflow:hidden;border:1px solid #dde5d6;border-radius:20px;background:#fafbf5;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;isolation:isolate}.wave-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;user-select:none;-webkit-user-select:none}.wave-stage:focus-within{outline:2px solid #8cac90;outline-offset:2px}.wave-stage canvas:focus-visible{outline:none}.wave-brief{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:24px;font-size:11px;line-height:1.5;color:#82917c}.wave-brief strong{color:#457456;font-weight:600}.wave-meter{height:3px;background:#e0e8d8;border-radius:9px;overflow:hidden;width:100%;flex-shrink:0}.wave-meter i{display:block;height:100%;width:100%;transform-origin:left;background:#82aa89;will-change:transform}.wave-round-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;background:#fafbf5dd;pointer-events:none;z-index:2;text-align:center;padding:16px}.wave-round-overlay strong{font-size:30px;letter-spacing:-.05em;color:#376b50}.wave-round-overlay span{font-size:13px;color:#7a8e76}.wave-shot-label{position:absolute;bottom:12px;left:12px;right:12px;text-align:center;color:#7e927a;font-size:10px;letter-spacing:.06em;pointer-events:none}.wave-board{display:flex;flex-direction:column;align-items:stretch}.wave-board>div{flex-shrink:0}.wave-board .wave-stage{flex-shrink:1}body[data-arena-game="wave"].series-playing #game .play-board{width:min(100%,650px);max-width:650px;overflow:hidden;gap:9px;background:#f5f8ee;padding:16px}body[data-arena-game="wave"].series-playing #game .wave-stage{height:auto;flex:0 1 auto;max-height:calc(100dvh - 330px)}body[data-arena-game="wave"] #game .instruction p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}body[data-arena-game="wave"] #game .ready{background:#d95f57}body[data-arena-game="wave"] .poster{background:#edf2e4}body[data-arena-game="wave"] .poster svg{width:100%;height:100%}.wave-share{width:100%;margin-top:12px;min-height:42px;border:1px solid #d9e1d2;background:#fafbf5;border-radius:12px;font:600 12px/1.5 inherit;color:#4d7358}.wave-share-status{min-height:20px;font-size:11px;color:#83917c}.wave-record-line{font-size:12px;line-height:1.8;color:#7f8e7b;overflow-wrap:anywhere}
@media(max-width:600px){.wave-hud b{font-size:19px}.wave-round{font-size:10px}.wave-brief{font-size:10px}body[data-arena-game="wave"].series-playing #game .play-board{padding:10px;gap:7px}body[data-arena-game="wave"].series-playing #game .wave-stage{max-height:calc(100dvh - 310px);border-radius:14px}.wave-round-overlay strong{font-size:24px}.wave-shot-label{bottom:8px;font-size:9px}.wave-share{font-size:12px}}
@media(max-height:600px){body[data-arena-game="wave"].series-playing #game .wave-stage{max-height:calc(100dvh - 245px)}.wave-hud small{display:none}.wave-hud b{font-size:15px}.wave-brief{min-height:16px}body[data-arena-game="wave"].series-playing #game .play-board{padding:8px;gap:4px}}
@media(prefers-reduced-motion:reduce){.wave-meter i{will-change:auto}}

body[data-arena-game="wave"].series-playing #game .wave-stage{flex:0 0 auto;max-height:none;margin-inline:auto}
body[data-arena-game="wave"] #result.so-official #result-score{display:none!important}
body[data-arena-game="wave"] #result .so-score #journey-points{font-size:clamp(42px,6vw,72px);font-weight:800;line-height:1.15;letter-spacing:-.05em;margin:14px 0 28px}

.wave-speed-legend{list-style:none;padding:0;margin:14px 0;display:grid;grid-template-columns:1fr 1fr;gap:8px 12px;font-size:12px;line-height:1.5;color:#667c70}.wave-speed-legend li{display:flex;align-items:center;gap:7px}.wave-speed-legend i{width:9px;height:9px;border-radius:50%;flex:none;background:#6caa95}.wave-speed-legend .tone-1{background:#b3bc86}.wave-speed-legend .tone-2{background:#c5ae86}.wave-speed-legend .tone-3{background:#91b6bc}

/* Match Color Spot intro artwork framing. */
body[data-arena-game="wave"] #intro .poster{background:#fff}body[data-arena-game="wave"] #intro .poster img,body[data-arena-game="wave"] #intro .poster svg{display:block;width:100%;height:256px;max-width:300px;object-fit:contain;margin:auto}
@media(max-width:700px){body[data-arena-game="wave"] #intro .poster img,body[data-arena-game="wave"] #intro .poster svg{height:194px}}

/* Align the back button with Color Spot on the intro screen. */
body[data-arena-game="wave"]:has(#intro:not([hidden])) main{padding-top:30px}body[data-arena-game="wave"] #intro{margin-top:0}
