/* ForgeFlip page styles: layout, the rotate-your-phone notice, and the menus (ui.js) */
/* Fonts are bundled so the game works offline on a phone */
@font-face { font-family: "Saira Stencil One"; font-weight: 400; font-display: swap; src: url("fonts/saira-stencil-one-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Teko"; font-weight: 500; font-display: swap; src: url("fonts/teko-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Teko"; font-weight: 600; font-display: swap; src: url("fonts/teko-latin-600-normal.woff2") format("woff2"); }

/* Forge: one committed dark, firelit look, deliberately not theme-switched */
:root { --bg: #0b0706; --glow: rgba(255, 90, 20, 0.14); color-scheme: dark; }
html, body { height: 100%; overflow: hidden; }
body {
  margin: 0; background: var(--bg); position: relative;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
/* The menus (#stage) fill the whole phone screen, notch area included, so there are no bands of another shade;
   the 1:2 game canvas sits centered inside the safe area. game.js (fitStage) sets the sizes once per screen size,
   so the status or navigation bar briefly appearing never makes the layout jump. */
#stage { position: absolute; left: 0; top: 0; width: 100%; height: 100%; container-type: inline-size; }
#stage canvas {
  position: absolute; display: block; width: 100%; height: 100%;
  touch-action: none; background: #120a08;
  box-shadow: 0 0 80px var(--glow);
}
[hidden] { display: none !important; }
/* phones held sideways: ask to turn upright instead of showing a tiny game */
#rotate {
  display: none; position: fixed; inset: 0; z-index: 10;
  background: var(--bg); color: #ffcf8a;
  flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  font: 600 26px/1.2 Teko, "Arial Narrow", sans-serif; letter-spacing: 0.04em; text-align: center;
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
}
#rotate img { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 0 40px var(--glow); }
#rotate span { animation: tilt 1.6s ease-in-out infinite; display: block; width: 30px; height: 50px; border: 3px solid #ffcf8a; border-radius: 7px; }
@keyframes tilt { 0%, 30% { transform: rotate(90deg); } 60%, 100% { transform: rotate(0deg); } }
/* only phones (short when sideways); tablets play sideways with the game centered */
@media (orientation: landscape) and (pointer: coarse) and (max-height: 600px) { #rotate { display: flex; } }
@media (prefers-reduced-motion: reduce) { #rotate span { animation: none; } }

/* ---- menus and dialogs (ui.js). Sizes use cqw: 1% of the stage width, so everything scales with the game ---- */
#ui { position: absolute; inset: 0; pointer-events: none; overflow: hidden;
      font: 500 4.5cqw/1.1 Teko, "Arial Narrow", sans-serif; color: #f0d9c4; letter-spacing: 0.02em; }
#ui button, #ui input { font: inherit; }
.screen { position: absolute; inset: 0; display: none; flex-direction: column; pointer-events: auto; box-sizing: border-box;
          padding: calc(4cqw + var(--safe-top, 0px)) 5cqw calc(5cqw + var(--safe-bottom, 0px));   /* clear of the notch */
          background: radial-gradient(120% 60% at 50% 0%, #1d110b 0%, #0b0706 70%);   /* solid: nothing shows through */ }
.screen.on { display: flex; }
.screen .body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2.5cqw; padding-bottom: 4cqw; }
.topbar { display: flex; align-items: center; gap: 3cqw; margin-bottom: 3cqw; }
.topbar h2, .card h2 { margin: 0; font: 7.5cqw/1 "Saira Stencil One", Impact, sans-serif; color: #ffb347; text-shadow: 0 0 3cqw rgba(255,90,20,0.6); }
.btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5cqw; width: 100%;
       padding: 2.4cqw 3cqw; border-radius: 3.5cqw; border: 0.4cqw solid #8a5a35; cursor: pointer;
       background: linear-gradient(#3a2216, #24150f); color: #ffe2c2; font-weight: 600; font-size: 6cqw; letter-spacing: 0.05em;
       box-shadow: 0 0.8cqw 0 #120a08, inset 0 0.4cqw 0 rgba(255,220,180,0.12); }
.btn:active { transform: translateY(0.6cqw); box-shadow: 0 0.2cqw 0 #120a08; }
.btn:focus-visible, .look:focus-visible { outline: 0.6cqw solid #ffd27a; outline-offset: 0.6cqw; }
.btn small { font-size: 3.8cqw; font-weight: 500; color: #c9b2a2; letter-spacing: 0.02em; }
.btn.primary { background: linear-gradient(#ff8a2a, #d8461a); border-color: #ffd27a; color: #2a1209; font-size: 8.5cqw; }
.btn.gold { border-color: #ffcf4a; background: linear-gradient(#5a3c12, #3a250b); }
.btn.hot { border-color: #ffb347; background: linear-gradient(#7a3a14, #4a200b); }
.btn.small { width: auto; font-size: 4.6cqw; padding: 1.6cqw 3cqw; }
.btn.back { width: auto; font-size: 4.6cqw; padding: 1.4cqw 3cqw; }
.logo { display: flex; flex-direction: column; align-items: center; margin: 3cqw 0 4cqw; }
.logo img { width: 28cqw; border-radius: 7cqw; box-shadow: 0 0 8cqw rgba(255,110,30,0.6); }
.logo h1 { margin: 3cqw 0 0; font: 13cqw/1 "Saira Stencil One", Impact, sans-serif; color: #ffb347;
           background: linear-gradient(#fff3c8, #ffb347 55%, #ff5a14); -webkit-background-clip: text; background-clip: text;
           -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 2cqw rgba(255,90,20,0.6)); }
.menu-buttons { display: flex; flex-direction: column; gap: 2.3cqw; }
/* home: the logo takes the open space up top; the buttons sit at the bottom, above the tab bar */
#screen-menu .body { justify-content: space-between; overflow: visible; }   /* (scrolling would clip the buttons' glow into a visible box) */
#screen-menu .logo { flex: 1; justify-content: center; margin: 0; }
#screen-menu .logo img { width: 34cqw; border-radius: 8cqw; }
#screen-menu .logo h1 { font-size: 15cqw; }
.home-buttons { display: flex; flex-direction: column; gap: 3.2cqw; padding-bottom: 2cqw; }
/* PLAY: a bar of molten metal */
#ui .home-play { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 24cqw; border-radius: 5cqw; cursor: pointer; overflow: hidden;
  border: 0.5cqw solid #ffe2a0; color: #3a1405;
  background: radial-gradient(120% 140% at 50% 0%, #fff0b8 0%, #ffb347 32%, #ff6a1a 70%, #c23a0c 100%);
  box-shadow: 0 1.4cqw 0 #6b2509, 0 0 10cqw rgba(255,110,25,0.55), inset 0 -1.5cqw 3cqw rgba(120,30,0,0.45);
  animation: playGlow 2.4s ease-in-out infinite; }
#ui .home-play:active { transform: translateY(1cqw); box-shadow: 0 0.4cqw 0 #6b2509, 0 0 8cqw rgba(255,110,25,0.5), inset 0 -1.5cqw 3cqw rgba(120,30,0,0.45); }
#ui .play-label { font: 12cqw/1 "Saira Stencil One", Impact, sans-serif; letter-spacing: 0.06em; text-shadow: 0 0.4cqw 0 rgba(255,240,200,0.6); }
#ui .play-sub { margin-top: 1cqw; font: 600 4.2cqw/1 Teko, sans-serif; letter-spacing: 0.12em; color: rgba(58,20,5,0.75); }
@keyframes playGlow { 50% { box-shadow: 0 1.4cqw 0 #6b2509, 0 0 14cqw rgba(255,130,30,0.75), inset 0 -1.5cqw 3cqw rgba(120,30,0,0.45); } }
/* the two modes: dark iron tiles with an icon, same size */
.home-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2cqw; }
#ui .home-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1cqw;
  height: 30cqw; border-radius: 5cqw; cursor: pointer; color: #f0d9c4;
  background: linear-gradient(160deg, #3b2619 0%, #23150f 60%, #1a0f0b 100%);
  border: 0.5cqw solid var(--accent); box-shadow: 0 1cqw 0 #0e0806, inset 0 0.4cqw 0 rgba(255,255,255,0.06), 0 0 5cqw var(--glow); }
#ui .home-tile:active { transform: translateY(0.8cqw); box-shadow: 0 0.2cqw 0 #0e0806, 0 0 5cqw var(--glow); }
#ui .home-tile.trial { --accent: #ff7a2e; --glow: rgba(255,90,20,0.25); }
#ui .home-tile.learn { --accent: #6fbfe6; --glow: rgba(110,190,230,0.18); }
/* the Daily Forge: one wide, shorter tile across both columns (icon, then title over subtitle) */
#ui .home-tile.daily { --accent: #ffd24d; --glow: rgba(255,200,60,0.2); grid-column: 1 / -1; height: 19cqw;
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 3.5cqw; row-gap: 1cqw; align-content: center; justify-content: center; }
#ui .home-tile.daily .tile-icon { grid-row: 1 / 3; align-self: center; }
#ui .home-tile.daily .tile-title, #ui .home-tile.daily .tile-sub { justify-self: start; }
#ui .home-tile.locked { opacity: 0.55; }
#ui .tile-icon { width: 10cqw; height: 10cqw; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 1.5cqw var(--accent)); }
#ui .home-tile.trial .tile-icon { fill: rgba(255,122,46,0.25); }
#ui .tile-title { font: 600 6cqw/1 Teko, sans-serif; letter-spacing: 0.06em; }
#ui .tile-sub { font: 500 3.8cqw/1 Teko, sans-serif; letter-spacing: 0.1em; color: #a8968a; }
.home-name { text-align: center; color: #a8968a; font-size: 4.4cqw; }
.menu-row { display: flex; gap: 2.3cqw; }
.menu-row .btn { flex: 1; }
.mission { position: relative; display: flex; align-items: center; gap: 3cqw; padding: 2.4cqw 3cqw 3.2cqw; border-radius: 2.5cqw; background: rgba(40,24,18,0.6); }
.mission > div { flex: 1; }
.mission b { display: block; font-size: 5.2cqw; }
.mission small { font-size: 3.9cqw; color: #a8968a; }
.mission .reward { font-size: 5.2cqw; color: #ffcf6a; white-space: nowrap; }
.mission .mbar { position: absolute; left: 3cqw; right: 3cqw; bottom: 1.2cqw; height: 0.9cqw; border-radius: 1cqw; background: rgba(255,255,255,0.1); }
.mission .mbar::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); border-radius: 1cqw; background: #ffb347; }
.menu-foot { margin-top: auto; padding-top: 3cqw; text-align: center; color: #a8968a; font-size: 4.6cqw; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; padding: 2.4cqw 3cqw; border-radius: 3cqw;
       background: rgba(40,24,18,0.75); border: 0.3cqw solid #4a3428; font-size: 5.2cqw; font-weight: 600; }
.row span small { display: block; font-size: 3.8cqw; color: #a8968a; font-weight: 500; }
.row input[type=range] { width: 45%; accent-color: #ff8a2a; }
.row input[type=checkbox] { width: 7cqw; height: 7cqw; accent-color: #ff8a2a; }
.tabs { display: flex; gap: 2cqw; }
.tabs .btn { flex: 1; font-size: 4.4cqw; padding: 1.8cqw 0.8cqw; }
.tabs .btn.on { border-color: #ffd27a; background: linear-gradient(#7a3a14, #4a200b); }
.list { display: flex; flex-direction: column; gap: 1.4cqw; }
.entry { display: grid; grid-template-columns: 11cqw 1fr auto 14cqw 8cqw; align-items: center; gap: 2cqw; padding: 1.8cqw 2.5cqw;
         border-radius: 2.5cqw; background: rgba(40,24,18,0.75); font-size: 5cqw; font-weight: 600; }
.entry .rank { color: #ffcf8a; }
.entry .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry .score { color: #ffe2c2; text-align: right; font-variant-numeric: tabular-nums; }
.entry .lap { color: #a8968a; font-size: 3.8cqw; text-align: right; }
.entry.you { background: rgba(255,140,40,0.25); border: 0.3cqw solid #ffb347; }
.entry .flag { width: auto; padding: 0.6cqw 1.4cqw; font-size: 3.8cqw; border-radius: 2cqw; box-shadow: none; background: transparent; border-color: #5c4a40; color: #a8968a; }
.muted { margin: 1cqw 0; text-align: center; color: #a8968a; font-size: 4.4cqw; }
.muted.small { font-size: 3.8cqw; }
#ui h3 { margin: 3cqw 0 1cqw; font-size: 5.4cqw; font-weight: 600; color: #ffb347; letter-spacing: 0.06em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.look { display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; padding: 2.4cqw 1.5cqw; border-radius: 3cqw; cursor: pointer;
        border: 0.4cqw solid #4a3428; background: rgba(40,24,18,0.8); color: #ffe2c2; }
.look .swatch { width: 14cqw; height: 14cqw; border-radius: 3.5cqw; }
.look b { font-size: 4.6cqw; }
.look small { font-size: 3.8cqw; line-height: 1.1; text-align: center; color: #c9b2a2; }
.look.on { border-color: #ffd27a; box-shadow: 0 0 3cqw rgba(255,180,70,0.5); }
.look.on small { color: #ffd27a; }
.look.locked { opacity: 0.6; cursor: default; }
.look.forsale small { color: #ffcf6a; }
.look.locked .swatch { filter: grayscale(0.85) brightness(0.6); }
.lic-text { margin: 0; white-space: pre-wrap; word-break: break-word; font: 3.2cqw/1.45 ui-monospace, Consolas, monospace; color: #d9c3b3; }
.practice-card { display: flex; align-items: center; gap: 3cqw; padding: 3cqw; border-radius: 3cqw; background: rgba(40,24,18,0.6); }
.practice-card > div { flex: 1; display: flex; flex-direction: column; gap: 1cqw; }
.practice-card b { font-size: 5.4cqw; color: #ffe2c2; }
.practice-card small { font-size: 3.9cqw; color: #a8968a; line-height: 1.2; }
.practice-card .btn { width: auto; flex: 0 0 auto; }
.stars { font-size: 6cqw; color: #ffcf4a; letter-spacing: 0.1em; white-space: nowrap; }
.stars.big { font-size: 12cqw; }
.ach-row .reward { margin-left: auto; font-size: 4.4cqw; color: #ffcf6a; white-space: nowrap; }
.ach-row { display: flex; align-items: center; gap: 3cqw; padding: 2cqw 3cqw; border-radius: 2.5cqw; background: rgba(40,24,18,0.6); }
.ach-row .mark { font-size: 7cqw; color: #5c4a40; }
.ach-row.got .mark { color: #ffcf4a; text-shadow: 0 0 2cqw rgba(255,200,60,0.7); }
.ach-row b { display: block; font-size: 5.2cqw; }
.ach-row small { font-size: 3.9cqw; color: #a8968a; }
.ach-row:not(.got) b { color: #a8968a; }
.modal { position: absolute; inset: 0; z-index: 5; display: none; align-items: center; justify-content: center; padding: 5cqw;
         background: rgba(5,3,2,0.75); pointer-events: auto; }
.modal.on { display: flex; }
.card { width: 100%; display: flex; flex-direction: column; gap: 3cqw; padding: 5cqw; text-align: center; border-radius: 5cqw;
        background: linear-gradient(#2a1912, #1a0f0b); border: 0.5cqw solid #ffb347; box-shadow: 0 0 8cqw rgba(255,110,30,0.35); }
.card p { margin: 0; }
.card .warn { color: #ff6a3d; font-size: 5.6cqw; letter-spacing: 0.05em; }
.warnlist { margin: 0; padding-left: 5cqw; text-align: left; font-size: 4.6cqw; line-height: 1.35; color: #f0d9c4; }
.card.form { max-height: 92%; overflow-y: auto; text-align: left; gap: 2.4cqw; }
.card.form h2, .card.form h3 { text-align: center; }
.card h3 { margin: 1cqw 0 0; font-size: 5.2cqw; color: #ffb347; letter-spacing: 0.06em; }
.card .small { font-size: 3.8cqw; }
.field { display: flex; flex-direction: column; gap: 1cqw; font-size: 4.2cqw; color: #d9c3b3; }
.card select, .card textarea, .card input[type=email], .inline input[type=text] { width: 100%; box-sizing: border-box; padding: 2cqw 2.6cqw;
  border-radius: 2.5cqw; border: 0.4cqw solid #8a5a35; background: #120a08; color: #ffe2c2; font: 500 4.6cqw Teko, sans-serif;
  -webkit-user-select: text; user-select: text; }
.card textarea { resize: vertical; min-height: 22cqw; font: 500 4.2cqw/1.3 Teko, sans-serif; }
.inline { display: flex; gap: 2cqw; align-items: stretch; }
.inline > * { flex: 1; }
.inline .btn { flex: 0 0 auto; width: auto; }
.agree { display: flex; align-items: center; gap: 3cqw; font-size: 4.6cqw; color: #f0d9c4; text-align: left; }
.agree input { width: 7cqw; height: 7cqw; flex: 0 0 auto; accent-color: #ff8a2a; }
.modal.gate { z-index: 9; background: rgba(12,7,6,0.97); }
.terms-pane { height: 92%; }
.terms-body { flex: 1; overflow-y: auto; text-align: left; }
.terms-title, .terms-body h3 { text-align: left; }
.terms-p, .terms-body p { font-size: 4.2cqw; line-height: 1.35; color: #e8d6c8; margin: 0 0 2.4cqw; }
#screen-terms .body h3 { font-size: 5.2cqw; color: #ffb347; margin: 2cqw 0 1cqw; }
#screen-terms .body p { font-size: 4.2cqw; line-height: 1.35; color: #e8d6c8; margin: 0; }
#screen-menu { background: radial-gradient(90% 55% at 50% 30%, #2a150b 0%, #0b0706 75%); }   /* home: a warm forge glow behind the logo */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: none; height: calc(15cqw + var(--safe-bottom, 0px));
  padding-bottom: var(--safe-bottom, 0px); box-sizing: border-box; pointer-events: auto;   /* #ui ignores taps; the bar takes them */
  background: linear-gradient(rgba(20,12,10,0.96), rgba(12,7,6,0.99)); border-top: 0.4cqw solid #5c3a26; }
.tabbar.on { display: flex; }
.tab-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4cqw;
  background: none; border: 0; color: #a8968a; cursor: pointer; padding: 1cqw 0; }
.tab-icon { font-size: 5.6cqw; line-height: 1; }
.tab-label { font: 600 3.6cqw/1 Teko, sans-serif; letter-spacing: 0.06em; }
.tab-btn.active { color: #ffb347; text-shadow: 0 0 2cqw rgba(255,140,40,0.6); }
#ui.tabs-on .screen { padding-bottom: calc(18cqw + var(--safe-bottom, 0px)); }
#ui.tabs-on .screen .btn.back { display: none; }
.section-title { margin: 3cqw 0 0; font-size: 5.6cqw; color: #ffb347; letter-spacing: 0.06em; }
.linkbtn { background: none; border: 0; color: #a8968a; text-decoration: underline; font-size: 4cqw; padding: 1cqw; cursor: pointer; align-self: center; }
.card input[type=text] { width: 100%; box-sizing: border-box; padding: 2.4cqw 3cqw; border-radius: 3cqw; border: 0.4cqw solid #8a5a35;
                         background: #120a08; color: #ffe2c2; font-size: 7cqw; text-align: center; -webkit-user-select: text; user-select: text; }
.error { min-height: 5cqw; color: #ff8a6a; font-size: 4.4cqw; }
.btnrow { display: flex; gap: 2.5cqw; }
.btnrow .btn { flex: 1; font-size: 5.4cqw; }
.sharecard { width: 70%; margin: 0 auto; border-radius: 3cqw; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; }
.toasts { position: absolute; bottom: 30cqw; left: 0; right: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; }
.toast { padding: 1.6cqw 4cqw; text-align: center; border-radius: 3cqw; background: rgba(30,18,14,0.95); border: 0.4cqw solid #ffcf4a;
         box-shadow: 0 0 4cqw rgba(255,180,60,0.4); animation: toastIn 0.3s ease-out; transition: opacity 0.5s, transform 0.5s; }
.toast b { display: block; font-size: 3.8cqw; color: #ffcf4a; letter-spacing: 0.08em; }
.toast span { font-size: 5.4cqw; font-weight: 600; color: #ffe2c2; }
.toast.out { opacity: 0; transform: translateY(3cqw); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-3cqw) scale(0.95); } }
.gamebar { position: absolute; left: 5cqw; right: 5cqw; bottom: 12cqw; z-index: 2; display: none; gap: 2.5cqw; pointer-events: none; }
.gamebar.on { display: flex; }
.btn.danger { border-color: #c4452f; color: #ffb3a3; }
.btn.skip-up { width: auto; left: 22cqw; right: 22cqw; bottom: 16cqw; font-size: 4.6cqw; padding: 2cqw; }
.btn.skip, .btn.rules-tut, .btn.rules-back, .btn.skip-up { position: absolute; z-index: 3; display: none; pointer-events: auto; }
.btn.skip { width: auto; right: 3cqw; bottom: 2.5cqw; font-size: 4.4cqw; padding: 1.6cqw 3cqw; }
.btn.rules-tut { width: auto; left: 33cqw; right: 5cqw; bottom: 4cqw; font-size: 5.4cqw; padding: 2.4cqw; }
.btn.rules-back { width: auto; left: 5cqw; right: 69cqw; bottom: 4cqw; font-size: 5.4cqw; padding: 2.4cqw; }
.btn.skip.on, .btn.rules-tut.on, .btn.rules-back.on, .btn.skip-up.on { display: flex; }
.gamebar .btn { flex: 1; pointer-events: auto; font-size: 5cqw; padding: 2cqw; }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }
.card.form input[type=text], .card.form input[type=email] { font: 500 4.6cqw Teko, sans-serif; text-align: left; padding: 2cqw 2.6cqw; }

/* Awards: "Next up" progress */
#ui .ach-head { margin: 3cqw 0 1.5cqw; font-size: 4.2cqw; letter-spacing: 0.06em; color: #ffb347; }
#ui .ach-row.next { box-shadow: inset 0 0 0 0.4cqw rgba(255,179,71,0.5); }
#ui .ach-row.next > div { flex: 1; }
#ui .ach-bar { height: 1.6cqw; margin: 1.4cqw 0 0.8cqw; border-radius: 1cqw; background: rgba(255,220,180,0.15); overflow: hidden; }
#ui .ach-bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff8a2a, #ffd24d); border-radius: 1cqw; }
#ui .ach-count { color: #ffd24d; }
#ui .locker-embers { margin: 0; font-size: 6cqw; color: #ffcf6a; text-align: center; }
#ui .seg { display: flex; gap: 1cqw; }
#ui .seg .btn { padding-left: 2cqw; padding-right: 2cqw; }
/* the pause menu, over the paused forge */
#ui .pausemenu { position: absolute; left: 50%; top: calc(var(--safe-top, 0px) + 46%); transform: translateX(-50%); width: 64cqw;
  display: none; flex-direction: column; gap: 2.4cqw; pointer-events: auto; z-index: 5; }
#ui .pausemenu.on { display: flex; }
#ui .pausemenu .btn { width: 100%; font-size: 5.2cqw; padding: 3cqw 0; }
#ui .build-info { text-align: center; margin-top: 2cqw; }
