/* Full-screen glass surface; layout anchors share the live camera viewport. */
html {background:#08080a radial-gradient(ellipse at 80% 19%,#111114 0%,#08080a 62%,#060607 100%) fixed;}
body {background:transparent;}
.game-stage {
  --stage-width:min(100cqw,calc(100cqh / 1.79),540px);
  --stage-height:calc(var(--stage-width) * 1.79);
  width:var(--stage-width);height:var(--stage-height);aspect-ratio:auto;
  align-self:start;
  /* Keep the old logo position when the safe viewport has room below it. */
  margin-top:max(0px,min(calc((100cqh - var(--stage-width) * 1.66) / 2),calc(100cqh - var(--stage-height))));
}
.board-slot {position:absolute;inset:54cqw .3% auto;height:99.6cqw;pointer-events:none;}
.topbar {z-index:3;pointer-events:none;}
.topbar>* {pointer-events:none;}
.brand {position:absolute;left:20%;top:1.66cqw;width:60%;height:23.24cqw;clip-path:none;overflow:visible;padding:0;}
.brand h1 {margin:0;width:100%;height:100%;}
.brand img {display:block;width:100%;height:100%;object-fit:contain;}
.scores {top:36.5cqw;left:42.07%;width:15.86%;height:16.6cqw;text-shadow:none;}
.score-label {left:auto;right:calc(100% + 2cqw);top:38%;width:auto;white-space:nowrap;color:#e9e4db;text-shadow:none;font-size:clamp(9px,2.5cqw,13px);}
.score-value {margin:0;width:100%;}
.best-tile {width:90%;height:94%;}
.run-score {top:37.5cqw;left:65%;min-width:23%;max-width:31%;background:#f5f2ec;border-color:#c5beb3;color:#302b25;text-shadow:none;box-shadow:none;}
.run-score>span:first-child {color:#65594c;}
.pause {pointer-events:auto;right:2%;top:4.98cqw;background:#f5f2ec;color:#40382e;border:1px solid #c5beb3;box-shadow:none;backdrop-filter:none;}
.preview {z-index:2;left:22%;top:155cqw;width:56%;height:21.58cqw;transform:none;overflow:visible;}
.queue {display:flex;align-items:center;justify-content:center;gap:5%;padding:0;}
.preview-tile,.preview-tile:nth-child(n) {position:relative;left:auto;top:auto;width:29%;height:94%;max-height:none;}
.gesture-note {bottom:2%;}
.duel-hud {top:25.2cqw;left:7%;right:7%;padding:0;}
#duel-timer {font-size:clamp(15px,4.8cqw,20px);}
@media(max-height:500px) and (orientation:landscape) {
  .pause {width:32px;}
  .run-score {padding:3px 7px 5px;}
}
