@font-face { font-family: 'Chakra'; src: url('../fonts/chakra-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Chakra'; src: url('../fonts/chakra-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --red: #EE1837; --red-d: #A80F2A; --red-dd: #620D25;
  --green: #21BB64; --green-d: #018B4A; --green-dd: #015530;
  --blue: #1765FC; --blue-d: #022DB9; --blue-dd: #011A70;
  --neutral: #8A8FA3;
  --deep: #12141F; --mid: #2A2D3E; --ink: #0B0C14;
  --white: #F4F1E8; --dim: #9CA0B4; --gold: #FFD34D;
  --panel: rgba(18, 20, 31, 0.92);
  --line: rgba(244, 241, 232, 0.12);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --btn: 88px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--deep); color: var(--white);
  font-family: 'Chakra', system-ui, sans-serif; font-weight: 500; user-select: none; -webkit-user-select: none;
  touch-action: none; overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
.hidden { display: none !important; }

#app { position: fixed; inset: 0; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }

/* ------------------------------------------------------------ type */
.kicker { font-size: 12px; letter-spacing: 0.32em; color: var(--dim); font-weight: 700; }
h2 { font-weight: 700; letter-spacing: 0.18em; font-size: 30px; line-height: 1.1; }

/* ------------------------------------------------------------ logo (pixel letters, built in ui.js) */
.logo svg { display: block; width: 100%; height: auto; shape-rendering: crispEdges; filter: drop-shadow(0 4px 0 rgba(0,0,0,.35)); }
.logo.big { width: min(78vw, 420px); }
.logo.small { width: 128px; }

/* ------------------------------------------------------------ buttons */
.btn { display: block; width: 100%; padding: 16px 20px; border-radius: 12px; font-weight: 700; letter-spacing: 0.24em;
  font-size: 16px; background: var(--mid); box-shadow: inset 0 -4px 0 rgba(0,0,0,.35), 0 0 0 1px var(--line);
  transition: transform .06s, filter .1s; }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgba(0,0,0,.35), 0 0 0 1px var(--line); }
.btn.primary { background: var(--white); color: var(--deep); font-size: 20px; padding: 18px 20px;
  box-shadow: inset 0 -5px 0 #c9c4b3, 0 0 30px rgba(244,241,232,.25); }
.btn.ghost { background: transparent; box-shadow: 0 0 0 2px var(--line); }
.btn.ad { background: linear-gradient(180deg, #ffd34d, #f0a92a); color: var(--deep); box-shadow: inset 0 -4px 0 #b97a14;
  white-space: nowrap; letter-spacing: .1em; padding-left: 10px; padding-right: 10px; }
.panel .row .btn { white-space: nowrap; }
.btn.ad[disabled] { filter: grayscale(1) brightness(.6); pointer-events: none; }
.ad-ico { font-size: 11px; vertical-align: 1px; margin-right: 4px; }
.row { display: flex; gap: 10px; width: 100%; }
.row > * { flex: 1; }

.icon-btn { width: 46px; height: 46px; border-radius: 12px; background: rgba(8,12,26,.5); box-shadow: inset 0 0 0 2px rgba(225,230,245,.6);
  display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; fill: var(--white); }
.icon-btn:active { transform: scale(.94); }

/* ------------------------------------------------------------ HUD */
#hud { position: absolute; inset: 0; pointer-events: none; }
#hud button { pointer-events: auto; }
.hud-top { position: absolute; top: calc(10px + var(--safe-t)); left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r));
  display: flex; align-items: center; gap: 12px; }
.progress { flex: 1; max-width: 520px; margin: 0 auto; }
.track { position: relative; height: 8px; border-radius: 4px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(225,230,245,.4); }
.track .fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, #FF4A5E, #2FE07A 50%, #1E8BFF); box-shadow: 0 0 10px rgba(80,200,255,.45); }
.track .ticks i { position: absolute; top: -3px; width: 2px; height: 14px; background: var(--dim); border-radius: 1px; transform: translateX(-1px); }
.track .ticks i.on { background: var(--white); box-shadow: 0 0 6px var(--white); }
.track .marker { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 4px;
  background: #F4F6FF; box-shadow: 0 0 10px rgba(255,255,255,.9), 0 0 0 1px rgba(255,255,255,.6); transition: background .1s; }
.coins { display: flex; align-items: center; gap: 6px; min-width: 76px; justify-content: flex-end; font-weight: 700;
  font-size: 18px; letter-spacing: .06em; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.coin-ico { width: 16px; height: 16px; border-radius: 50%; display: inline-block;
  background: conic-gradient(var(--red) 0 33.3%, var(--green) 0 66.6%, var(--blue) 0); box-shadow: 0 0 0 2px var(--deep), 0 0 8px rgba(255,255,255,.25); }
.mult { font-size: 13px; padding: 2px 6px; border-radius: 6px; background: var(--gold); color: var(--deep); letter-spacing: .04em;
  animation: multpop .3s; }
.mult.x3 { background: var(--white); box-shadow: 0 0 10px var(--white); }
@keyframes multpop { 0% { transform: scale(1.8); } 100% { transform: scale(1); } }

/* the three state buttons */
#controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 calc(16px + var(--safe-r)) calc(16px + var(--safe-b)) calc(16px + var(--safe-l)); }
#controls .group { display: flex; gap: 12px; }
/* image2's buttons: a glassy rounded square in the colour, lighter at the top, a thin bright rim,
   a soft halo, and the symbol in a pale tint of the colour, glowing */
.state { position: relative; width: var(--btn); height: var(--btn); border-radius: 18px; display: grid; place-items: center;
  transition: transform .07s, box-shadow .12s, filter .12s; filter: saturate(.9) brightness(.82); }
.state .sym { width: 44%; height: 44%; display: block; filter: drop-shadow(0 0 5px rgba(255,255,255,.65)); }
.state .sym svg { width: 100%; height: 100%; display: block; }
.state .key { position: absolute; bottom: -20px; left: 0; right: 0; text-align: center; font-size: 11px; letter-spacing: .32em;
  color: rgba(225,230,245,.75); font-weight: 600; display: none; }
.state.r { background: radial-gradient(120% 90% at 50% 18%, #FF5C74 0%, var(--red) 45%, var(--red-d) 100%);
  box-shadow: inset 0 0 0 2px rgba(255,160,175,.75), inset 0 0 16px rgba(255,255,255,.16), 0 0 16px rgba(238,24,55,.55), 0 0 38px rgba(238,24,55,.3); }
.state.g { background: radial-gradient(120% 90% at 50% 18%, #42D88A 0%, var(--green) 45%, var(--green-d) 100%);
  box-shadow: inset 0 0 0 2px rgba(140,240,196,.75), inset 0 0 16px rgba(255,255,255,.16), 0 0 16px rgba(33,187,100,.55), 0 0 38px rgba(33,187,100,.3); }
.state.b { background: radial-gradient(120% 90% at 50% 18%, #4D8EFF 0%, var(--blue) 45%, var(--blue-d) 100%);
  box-shadow: inset 0 0 0 2px rgba(156,196,255,.8), inset 0 0 16px rgba(255,255,255,.16), 0 0 16px rgba(23,101,252,.6), 0 0 38px rgba(23,101,252,.32); }
.state.active { filter: brightness(1.08); transform: translateY(-3px); }
.state.r.active { box-shadow: inset 0 0 0 2px rgba(255,190,200,.95), inset 0 0 18px rgba(255,255,255,.22), 0 0 22px rgba(238,24,55,.85), 0 0 60px rgba(238,24,55,.45); }
.state.g.active { box-shadow: inset 0 0 0 2px rgba(170,250,215,.95), inset 0 0 18px rgba(255,255,255,.22), 0 0 22px rgba(33,187,100,.85), 0 0 60px rgba(33,187,100,.45); }
.state.b.active { box-shadow: inset 0 0 0 2px rgba(190,215,255,.95), inset 0 0 18px rgba(255,255,255,.22), 0 0 22px rgba(23,101,252,.9), 0 0 60px rgba(23,101,252,.5); }
.state.pressed { transform: translateY(2px) scale(.95); filter: brightness(1.2); }
.state.want { animation: want .55s ease-in-out infinite; filter: brightness(1.08); z-index: 2; }
@keyframes want { 0%, 100% { transform: translateY(-4px) scale(1); } 50% { transform: translateY(-10px) scale(1.12); } }
.desktop .state .key { display: block; }
.desktop #controls { padding-bottom: calc(30px + var(--safe-b)); }

/* portrait: the buttons span the bottom edge */
.portrait #controls { justify-content: center; gap: 14px; }
.portrait #controls .group { gap: 14px; }
.portrait .state { width: min(var(--btn) * 1.15, 28vw); height: min(var(--btn) * 1.15, 28vw); max-width: 112px; max-height: 112px; }

/* score pops */
#pops { position: absolute; inset: 0; overflow: hidden; }
.pop { position: absolute; transform: translate(-50%, -50%); font-weight: 700; letter-spacing: .16em; font-size: 15px;
  white-space: nowrap; text-shadow: 0 2px 0 rgba(0,0,0,.6); animation: pop .7s ease-out forwards; }
.pop.perfect { color: var(--white); font-size: 17px; }
.pop.late { color: var(--dim); font-size: 13px; }
.pop.good { color: rgba(244,241,232,.75); font-size: 13px; }
.pop.big { font-size: 22px; color: var(--gold); }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.7); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -160%) scale(1); } }

/* the needed colour, shown above the block (after deaths) */
#hint { position: absolute; width: 30px; height: 30px; transform: translate(-50%, -100%); animation: hint .5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 8px currentColor); }
#hint svg { width: 100%; height: 100%; display: block; }
@keyframes hint { from { margin-top: 0; } to { margin-top: -5px; } }

/* tutorial: a hand tapping the button the block needs */
#tutor { position: absolute; width: 56px; height: 56px; transform: translate(-30%, -40%); pointer-events: none; z-index: 3; }
#tutor .hand { width: 100%; height: 100%; animation: tap .55s ease-in-out infinite;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23F4F1E8' stroke='%2312141F' stroke-width='1.2' d='M9 2.5a1.5 1.5 0 0 1 3 0V10l.6-.1a1.5 1.5 0 0 1 2.9.5l.5-.1a1.5 1.5 0 0 1 2.8.7l.3-.1A1.5 1.5 0 0 1 21 12.4V16c0 3.3-2.7 6-6 6h-1.6a6 6 0 0 1-4.6-2.2L4.6 14.7a1.6 1.6 0 0 1 2.3-2.2L9 14.4z'/%3E%3C/svg%3E"); }
@keyframes tap { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-4px, -8px); } }

#banner { position: absolute; top: 34%; left: 0; right: 0; text-align: center; font-weight: 700; font-size: 44px; letter-spacing: .3em;
  text-shadow: 0 4px 0 rgba(0,0,0,.5), 0 0 30px rgba(244,241,232,.4); animation: banner 0.9s ease-out forwards; }
@keyframes banner { 0% { opacity: 0; transform: scale(1.6); } 20% { opacity: 1; transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(.96); } }

/* ------------------------------------------------------------ screens */
.screen { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(20px + var(--safe-t)) calc(20px + var(--safe-r)) calc(20px + var(--safe-b)) calc(20px + var(--safe-l)); }
.screen.show { display: flex; animation: fade .25s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.panel { width: min(92vw, 380px); background: var(--panel); border-radius: 20px; padding: 28px 24px 22px;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0,0,0,.55); display: flex; flex-direction: column; align-items: center; gap: 14px;
  animation: rise .3s cubic-bezier(.2,1.4,.4,1); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@keyframes rise { from { transform: translateY(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
#screen-pause, #screen-complete { background: rgba(8, 9, 15, .55); }

/* loading */
#screen-loading { background: var(--deep); gap: 34px; }
.load-block { width: 64px; height: 64px; }
.cube { width: 64px; height: 64px; border-radius: 12px; background: #C9CDD8; position: relative; transform-origin: 50% 100%;
  box-shadow: inset 0 8px 0 #F4F1E8, inset -6px -6px 0 #9ea3b5, 0 0 0 3px var(--ink);
  animation: wobble 0.9s cubic-bezier(.3,1.6,.5,1) infinite; }
.cube i { position: absolute; top: 20px; width: 7px; height: 18px; background: var(--deep); border-radius: 1px; }
.cube i:first-child { left: 28px; } .cube i:last-child { left: 41px; }
@keyframes wobble { 0% { transform: scale(1.25, .72); } 30% { transform: scale(.85, 1.2) translateY(-18px); } 55% { transform: scale(1.05, .95); }
  75% { transform: scale(.97, 1.03); } 100% { transform: scale(1.25, .72); } }
.loadbar { width: min(60vw, 260px); height: 6px; border-radius: 3px; background: var(--mid); overflow: hidden; }
.loadbar div { height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--green), var(--blue)); transition: width .2s; }

/* map */
#screen-map { justify-content: space-between; background: linear-gradient(180deg, rgba(10,11,18,.82), rgba(10,11,18,.35) 40%, rgba(10,11,18,.8)); }
.map-top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-right { display: flex; gap: 8px; align-items: center; }
.pill { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--panel);
  box-shadow: 0 0 0 1px var(--line); font-weight: 700; letter-spacing: .08em; font-size: 15px; }
.skins-pill em { font-style: normal; color: var(--gold); font-size: 12px; display: flex; align-items: center; gap: 4px; }
.skins-pill em::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(var(--red) 0 33.3%, var(--green) 0 66.6%, var(--blue) 0); }
.mini-cube { width: 14px; height: 14px; border-radius: 3px; background: #C9CDD8; box-shadow: inset 0 3px 0 #fff; }
.world-title { text-align: center; }
.world-title h2 { font-size: 36px; margin-top: 4px; }
.path-wrap { width: 100%; max-width: 820px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 10px 0 24px;
  background: rgba(12, 13, 21, .78); border-radius: 22px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0,0,0,.45);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.path-wrap::-webkit-scrollbar { display: none; }
.path { position: relative; display: flex; align-items: center; gap: 0; padding: 30px 30px; width: max-content; }
.node { position: relative; width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 22px;
  background: var(--mid); box-shadow: inset 0 -5px 0 rgba(0,0,0,.35), 0 0 0 1px var(--line); flex: none; }
.node.open { background: var(--white); color: var(--deep); box-shadow: inset 0 -5px 0 #c9c4b3, 0 0 30px rgba(244,241,232,.35); cursor: pointer; }
.node.open.current { animation: nodepulse 1.4s ease-in-out infinite; }
@keyframes nodepulse { 50% { box-shadow: inset 0 -5px 0 #c9c4b3, 0 0 46px rgba(244,241,232,.6); } }
.node.done { background: #d7d4ca; }
.node.locked { color: rgba(244,241,232,.35); }
.node.locked::after { content: ''; position: absolute; width: 14px; height: 12px; bottom: -6px; right: -6px; border-radius: 3px; background: var(--dim);
  box-shadow: 0 0 0 3px var(--deep); }
.node .nstars { position: absolute; bottom: -20px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; }
.node .nstars b { width: 10px; height: 10px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: rgba(244,241,232,.2); }
.node .nstars b.on { background: var(--gold); }
.node.up { transform: translateY(-22px); } .node.down { transform: translateY(22px); }
.link { width: 34px; height: 4px; flex: none; background: repeating-linear-gradient(90deg, var(--dim) 0 6px, transparent 6px 12px); opacity: .5; }
.node.endless { width: 84px; border-radius: 18px; font-size: 13px; letter-spacing: .12em; text-align: center; line-height: 1.2;
  background: linear-gradient(135deg, var(--red-dd), var(--green-dd), var(--blue-dd)); color: rgba(244,241,232,.75); }
.node.soon { font-size: 18px; }
#btn-play { max-width: 340px; }

/* complete */
.stars { display: flex; gap: 10px; margin-top: 6px; }
.stars i { width: 64px; height: 64px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: rgba(244,241,232,.12); transition: background .2s; }
.stars i:nth-child(2) { transform: translateY(-10px); width: 76px; height: 76px; }
.stars i.on { background: var(--gold); animation: star .45s cubic-bezier(.2,1.8,.4,1); filter: drop-shadow(0 0 10px var(--gold)); }
@keyframes star { from { transform: scale(2.2) rotate(-30deg); opacity: 0; } }
.stars i:nth-child(2).on { animation-name: star2; }
@keyframes star2 { from { transform: translateY(-10px) scale(2.2) rotate(30deg); opacity: 0; } to { transform: translateY(-10px); } }
.star-notes { display: flex; gap: 10px; font-size: 9px; letter-spacing: .14em; color: var(--dim); font-weight: 700; margin-top: -6px; }
.star-notes span { width: 72px; text-align: center; }
.star-notes span.on { color: var(--white); }
.done-coins { display: flex; align-items: center; gap: 10px; font-size: 30px; font-weight: 700; letter-spacing: .06em; margin: 4px 0 8px; }
.done-coins .coin-ico { width: 24px; height: 24px; }
.panel .row { margin-top: 2px; }
.toggles { margin-top: 6px; }
.toggle { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; border-radius: 12px;
  box-shadow: 0 0 0 2px var(--line); font-size: 11px; letter-spacing: .2em; font-weight: 700; color: var(--dim); }
.toggle svg { width: 24px; height: 24px; fill: var(--dim); stroke: var(--dim); }
.toggle.on { color: var(--white); box-shadow: 0 0 0 2px rgba(244,241,232,.4); }
.toggle.on svg { fill: var(--white); stroke: var(--white); }
.toggle:not(.on) svg { opacity: .5; }

#toast { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); padding: 10px 16px; border-radius: 10px; background: var(--panel);
  box-shadow: 0 0 0 1px var(--line); font-size: 13px; letter-spacing: .14em; font-weight: 700; animation: fade .2s; white-space: nowrap; }

/* portrait map: the whole world in rows, no sideways scroll */
.portrait .path { flex-wrap: wrap; width: 100%; justify-content: center; gap: 30px 14px; padding: 22px 12px 30px; }
.portrait .path .link { display: none; }
.portrait .node.up, .portrait .node.down { transform: none; }
.portrait .node { width: 56px; height: 56px; }
.portrait .node.endless { width: 126px; }

/* small landscape phones: smaller chrome */
@media (max-height: 420px) {
  :root { --btn: 76px; }
  .world-title h2 { font-size: 26px; }
  .logo.big { width: min(50vw, 300px); }
  .panel { padding: 18px 20px 16px; gap: 10px; }
  .stars i { width: 48px; height: 48px; } .stars i:nth-child(2) { width: 58px; height: 58px; }
  #screen-loading { gap: 20px; }
}

/* ------------------------------------------------------------ tutorial captions and the target arrow */
.caption { position: absolute; top: calc(64px + var(--safe-t)); left: 50%; transform: translateX(-50%); text-align: center;
  padding: 12px 20px 13px; border-radius: 14px; background: rgba(12, 13, 21, .82); box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(0,0,0,.4);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); max-width: calc(100vw - 32px); animation: capin .3s cubic-bezier(.2,1.5,.4,1); pointer-events: none; }
.caption b { display: block; font-weight: 700; letter-spacing: .18em; font-size: 17px; white-space: nowrap; }
.caption span { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 6px; font-size: 12px; letter-spacing: .24em; color: var(--dim); font-weight: 700; }
.caption.tap-r span { color: var(--red); } .caption.tap-g span { color: var(--green); } .caption.tap-b span { color: var(--blue); }
.caption .csym { width: 14px; height: 14px; display: inline-block; } .caption .csym svg { width: 100%; height: 100%; display: block; }
.caption.ok { background: rgba(244, 241, 232, .95); color: var(--deep); }
.caption.ok b { font-size: 20px; }
@keyframes capin { from { opacity: 0; transform: translate(-50%, -10px) scale(.94); } }
.portrait .caption b { font-size: 14px; white-space: normal; }
#marker { position: absolute; width: 44px; height: 44px; transform: translate(-50%, -100%); margin-top: -14px; pointer-events: none;
  animation: mark .5s ease-in-out infinite alternate; filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 2px #12141F); }
#marker svg { width: 100%; height: 100%; display: block; }
@keyframes mark { to { margin-top: -26px; } }
.map-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; align-items: stretch; }
.map-actions .btn.ghost { padding: 12px; font-size: 13px; }

/* full screen buttons */
.fs-btn svg { width: 16px; height: 16px; stroke: var(--white); fill: none; }
.pill.fs-btn { padding: 8px 10px; }
.toggle.fs-toggle svg { fill: none; }
.toggles { flex-wrap: wrap; }
.toggles .toggle { min-width: 30%; }
.caption em { display: block; margin-top: 8px; font-style: normal; font-size: 11px; letter-spacing: .3em; color: var(--white); font-weight: 700;
  animation: tapgo 1s ease-in-out infinite; }
@keyframes tapgo { 50% { opacity: .35; } }
.caption:has(em) { pointer-events: none; }

/* captions float by what they're about: positioned from JS, above the point */
.caption { top: auto; transform: translate(-50%, -100%); }
@keyframes capin { from { opacity: 0; transform: translate(-50%, calc(-100% + 10px)) scale(.94); } }
#dim { position: absolute; inset: 0; pointer-events: none; transition: opacity .2s; }

/* level complete: the next level starts by itself while this bar fills */
.next-wrap { width: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; margin: 4px 0 2px; }
.next-wrap span { font-size: 12px; letter-spacing: .3em; font-weight: 700; color: var(--white); }
.next-bar { width: 100%; height: 8px; border-radius: 4px; background: var(--mid); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.next-bar div { height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--green), var(--blue)); }
.next-wrap.stopped { opacity: .4; }
.panel .row .btn { padding: 12px 8px; font-size: 13px; letter-spacing: .16em; }

/* endless timer */
.timer { font-weight: 700; font-size: 22px; letter-spacing: .08em; min-width: 70px; text-align: center; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.node .nbest { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--gold); letter-spacing: .05em; }
.node.endless.open { color: var(--white); box-shadow: inset 0 -5px 0 rgba(0,0,0,.35), 0 0 30px rgba(244,241,232,.25); cursor: pointer; }
.over-best { font-size: 13px; letter-spacing: .24em; color: var(--dim); font-weight: 700; }
.over-best.new { color: var(--gold); }
#screen-skins, #screen-over { background: rgba(8, 9, 15, .7); }
/* skins shop */
.panel.wide { width: min(94vw, 560px); max-height: calc(100vh - 40px); overflow: auto; }
.skins-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.skins-grid { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.skin { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 8px; border-radius: 12px; background: var(--mid);
  box-shadow: 0 0 0 1px var(--line), inset 0 -3px 0 rgba(0,0,0,.3); }
.skin canvas { width: 72px; height: 78px; image-rendering: pixelated; }
.skin b { font-size: 11px; letter-spacing: .14em; }
.skin em { font-style: normal; font-size: 11px; color: var(--gold); display: flex; gap: 4px; align-items: center; font-weight: 700; }
.skin em .coin-ico { width: 10px; height: 10px; }
.skin.owned em { color: var(--dim); }
.skin.on { box-shadow: 0 0 0 2px var(--white), 0 0 18px rgba(244,241,232,.3); }
.skin.on em { color: var(--white); }
.skin.poor { opacity: .55; }

/* ------------------------------------------------------------ modals: one aligned column of buttons */
/* the game's own controls step back while a modal is up (its buttons are the only ones) */
body.modal-open #controls, body.modal-open .hud-top { opacity: 0; pointer-events: none; transition: opacity .15s; }
body.modal-open #hud button { pointer-events: none; }
/* every button in a panel spans the panel's width; rows split it into equal columns of equal height */
.panel > .btn, .panel > .row, .panel > .next-wrap, .map-actions > .btn { width: 100%; align-self: stretch; }
.panel .row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; width: 100%; margin-top: 0; align-items: stretch; }
.panel .row > * { min-width: 0; }
.panel .btn { min-height: 50px; display: flex; align-items: center; justify-content: center; }
.panel .btn.primary { min-height: 58px; }
.panel .row .btn { padding: 0 6px; font-size: 13px; letter-spacing: .14em; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.panel .row .btn.ad { letter-spacing: .08em; }
/* the pause toggles: three equal tiles, icon over label, the label never pushing its tile wider */
.toggles { flex-wrap: nowrap; margin-top: 0; }
.toggles .toggle { min-width: 0; min-height: 74px; justify-content: center; padding: 10px 4px; font-size: 10px; letter-spacing: .14em; text-align: center; line-height: 1.25; }
/* the map's header pills: the same height as the HUD's buttons, centred on one line */
.map-right { align-items: stretch; }
.pill { height: 44px; padding: 0 14px; box-sizing: border-box; }
.pill.fs-btn { width: 44px; padding: 0; justify-content: center; }
.icon-btn { width: 44px; height: 44px; }
.map-actions { gap: 10px; }
.map-actions .btn { min-height: 50px; display: flex; align-items: center; justify-content: center; }
#btn-play { max-width: none; min-height: 58px; }
@media (max-height: 420px) {
  .panel .btn { min-height: 44px; } .panel .btn.primary { min-height: 50px; }
  .toggles .toggle { min-height: 62px; padding: 8px 4px; }
}

/* the build's version, small and out of the way */
.version { position: absolute; left: calc(14px + var(--safe-l)); bottom: calc(10px + var(--safe-b)); font-size: 10px; letter-spacing: .2em; color: var(--dim); opacity: .7; pointer-events: none; }
.panel .version { position: absolute; left: auto; right: 14px; top: 12px; bottom: auto; }
.panel { position: relative; }

/* ------------------------------------------------------------ v0.03: controls you can see, pictures over words */
/* desktop: each colour button IS its key: the key's character big in the middle, the colour's
   symbol small in the corner (v0.02 play tests: players clicked instead of pressing the keys) */
/* number and symbol stacked on the button's centre line */
.desktop .state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.desktop .state .key { display: block; position: static; transform: none; line-height: 1;
  font-size: calc(var(--btn) * 0.42); font-weight: 800; letter-spacing: 0; color: #F4F1E8; text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 12px rgba(255,255,255,.35); }
.desktop .state .sym { position: static; width: 20%; height: 20%; opacity: .8; filter: none; }
.desktop .state .key { order: -1; }             /* the key first, the symbol under it */
.desktop #controls { padding-bottom: calc(18px + var(--safe-b)); }
.state.keyflash .key { animation: keyflash .7s ease-out; }
@keyframes keyflash { 0% { transform: scale(1.5); text-shadow: 0 0 26px #fff, 0 0 8px #fff; } 100% { transform: scale(1); } }
/* looking for the controls: the buttons hop and their keys glow */
#controls.nudge .state { animation: nudgehop .5s ease-in-out 3; filter: brightness(1.12); }
#controls.nudge .state:nth-child(2) { animation-delay: .08s; }
#controls .group.right .state:nth-child(2) { animation-delay: .16s; }
#controls.nudge .state .key { text-shadow: 0 0 22px #fff, 0 0 8px #fff; }
@keyframes nudgehop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* picture captions */
.caption.pic { padding: 12px 16px 13px; }
.prow { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.caption.pic { display: flex; flex-direction: column; align-items: center; }
.prow + .prow { margin-top: 10px; }
.pblock { position: relative; width: 30px; height: 30px; border-radius: 7px; background: var(--c); flex: none;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(0,0,0,.2), 0 0 0 2px #06070d; }
.pblock i { position: absolute; top: 8px; width: 4px; height: 9px; background: #12141F; border-radius: 1px; }
.pblock i:first-child { left: 10px; } .pblock i:nth-child(2) { left: 17px; }
.parrow { width: 22px; height: 22px; flex: none; opacity: .9; }
.pk { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 9px; border-radius: 8px; background: #F4F1E8;
  color: #12141F; font-size: 19px; font-weight: 800; box-shadow: 0 3px 0 #8f95a8, 0 0 0 3px var(--c, #8f95a8); animation: pkpulse 1s ease-in-out infinite; }
.pk--wide { font-size: 11px; letter-spacing: .14em; min-width: 76px; height: 26px; }
@keyframes pkpulse { 50% { transform: translateY(2px); box-shadow: 0 1px 0 #8f95a8, 0 0 0 3px var(--c, #8f95a8); } }
.pbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.pbtn > svg { width: 18px; height: 18px; }
.phand { position: absolute; right: -14px; bottom: -16px; width: 26px; height: 26px; animation: phand 1s ease-in-out infinite; }
.phand svg { width: 100%; height: 100%; display: block; }
.phand--solo { position: relative; right: auto; bottom: auto; display: inline-block; }
@keyframes phand { 50% { transform: translate(-3px, -4px) scale(.92); } }
.pmove { display: flex; gap: 4px; } .pmove i { width: 12px; height: 3px; border-radius: 2px; background: rgba(244,241,232,.75); animation: pmove .9s linear infinite; }
.pmove i:nth-child(2) { animation-delay: .15s; } .pmove i:nth-child(3) { animation-delay: .3s; }
@keyframes pmove { 0% { opacity: .2; } 50% { opacity: 1; } 100% { opacity: .2; } }
.parc { width: 34px; height: 18px; border: 3px dashed rgba(244,241,232,.75); border-bottom: 0; border-radius: 34px 34px 0 0; }
.pslab { width: 110px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: inset 0 3px 0 rgba(255,255,255,.4), 0 0 0 2px #06070d; }
.pbeam { --c: #fff; width: 8px; height: 40px; border-radius: 3px; background: var(--c); box-shadow: 0 0 16px var(--c), 0 0 30px var(--c); }
.pcoin { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 3px rgba(255,255,255,.5), 0 0 10px var(--c); }
.pok { color: #5BE08E; font-size: 22px; } .pbad { color: #FF5468; font-size: 20px; }
.pblock .pbad { position: absolute; right: -14px; top: -14px; font-size: 18px; text-shadow: 0 0 4px #000; }
.pnote { font-size: 26px; color: #F4F1E8; } .pperfect { font-size: 13px; letter-spacing: .18em; color: #F4F1E8; }
.caption .ptap { display: flex; justify-content: center; margin-top: 10px; font-style: normal; }

/* the keyboard row in the tutorial: 1 2 3 as keys, the one to press big and lit */
.pkeys { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pkeys .pk { min-width: 40px; height: 40px; font-size: 22px; box-shadow: 0 4px 0 #8f95a8, 0 0 0 3px var(--c); animation: none; }
.pkeys .pk--on { min-width: 58px; height: 58px; font-size: 32px; animation: pkpulse 1s ease-in-out infinite; box-shadow: 0 4px 0 #8f95a8, 0 0 0 4px var(--c), 0 0 22px var(--c); }
.pkeys .pk--off { opacity: .45; }
.prow + .pkeys, .pkeys + .prow { margin-top: 10px; }

/* the hint above the block, as a key on a keyboard */
#hint .pk--hint { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); min-width: 36px; height: 36px; font-size: 20px; box-shadow: 0 3px 0 #8f95a8, 0 0 0 3px var(--c), 0 0 16px var(--c); }

/* ------------------------------------------------------------ v0.05: phone columns, chapters */
/* touch screens: the scene is three colour columns; the buttons sit at the bottom of their columns
   (red left, green middle, blue right) in portrait and landscape alike */
#columns { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; pointer-events: none; }
#columns i { transition: background .2s; }
#columns i.want[data-c="r"] { background: linear-gradient(0deg, rgba(238,24,55,.2), rgba(238,24,55,.05) 70%, transparent); }
#columns i.want[data-c="g"] { background: linear-gradient(0deg, rgba(33,187,100,.2), rgba(33,187,100,.05) 70%, transparent); }
#columns i.want[data-c="b"] { background: linear-gradient(0deg, rgba(23,101,252,.22), rgba(23,101,252,.05) 70%, transparent); }
#columns i.want { animation: colwant 1s ease-in-out infinite; }
@keyframes colwant { 50% { opacity: .55; } }
.desktop #columns { display: none; }
body:not(.desktop) #controls { display: grid; grid-template-columns: 1fr 1fr 1fr; justify-items: center; gap: 0; }
body:not(.desktop) #controls .group { display: contents; }
/* landscape touch screens: the columns take the taps, the buttons only label them: small and low
   (v0.06 play tests: three big buttons took too much of a short screen) */
body:not(.desktop):not(.portrait) #controls { padding-bottom: calc(8px + var(--safe-b)); }
body:not(.desktop):not(.portrait) .state { width: clamp(46px, 14vh, 64px); height: clamp(46px, 14vh, 64px); border-radius: 13px; }
.ripple { position: absolute; width: 90px; height: 90px; margin: -45px 0 0 -45px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 3px currentColor, inset 0 0 18px currentColor; animation: ripple .42s ease-out forwards; }
@keyframes ripple { from { transform: scale(.25); opacity: .9; } to { transform: scale(1.3); opacity: 0; } }

/* inside a chapter, a level's end: a tick and the next level's id */
#flash { position: absolute; top: 34%; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 16px;
  font-weight: 700; font-size: 44px; letter-spacing: .2em; text-shadow: 0 4px 0 rgba(0,0,0,.5), 0 0 30px rgba(244,241,232,.4);
  animation: flash .8s ease-out forwards; pointer-events: none; }
#flash .ftick { color: #5BE08E; font-size: 48px; text-shadow: 0 0 22px rgba(91,224,142,.8); }
@keyframes flash { 0% { opacity: 0; transform: scale(1.5); } 20% { opacity: 1; transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; } }

/* captions: a jump picture, a thing's short name over its picture */
.pstep { width: 22px; height: 16px; border-radius: 3px; background: #C9CDD8; box-shadow: inset 0 3px 0 rgba(255,255,255,.4), 0 0 0 2px #06070d; align-self: flex-end; }
.caption .pname { font-size: 15px; letter-spacing: .2em; margin-bottom: 8px; }

/* the map: chapters as doors in a row, five level dots each */
.path { align-items: stretch; gap: 14px; }
.door { position: relative; width: 116px; min-height: 132px; flex: none; border-radius: 16px; padding: 12px 10px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--mid);
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.35), 0 0 0 1px var(--line); color: rgba(244,241,232,.35); }
.door .dnum { font-size: 30px; font-weight: 700; line-height: 1; }
.door .dname { font-size: 10px; letter-spacing: .14em; font-weight: 700; text-align: center; line-height: 1.25; min-height: 25px; display: grid; place-items: center; }
.door .dstars { display: flex; gap: 3px; }
.door .dstars b { width: 12px; height: 12px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: rgba(244,241,232,.2); }
.door .dstars b.on { background: var(--gold); }
.door .dots { display: flex; gap: 5px; margin-top: auto; }
.door .dot { width: 12px; height: 12px; border-radius: 3px; background: rgba(244,241,232,.15); }
.door .dot.open { background: rgba(244,241,232,.45); cursor: pointer; }
.door .dot.done { background: var(--gold); }
.door .dot.current { background: var(--white); box-shadow: 0 0 8px var(--white); }
.door.open { background: var(--white); color: var(--deep); cursor: pointer; box-shadow: inset 0 -5px 0 #c9c4b3, 0 0 24px rgba(244,241,232,.25); }
.door.open .dot { background: rgba(18,20,31,.18); } .door.open .dot.done { background: #d6a21c; }
.door.open .dot.current { background: var(--deep); box-shadow: none; animation: nodepulse 1.4s ease-in-out infinite; }
.door.open .dstars b { background: rgba(18,20,31,.18); } .door.open .dstars b.on { background: #e0a815; }
.door.done { background: #d7d4ca; }
.door.current { animation: doorpulse 1.4s ease-in-out infinite; }
@keyframes doorpulse { 50% { box-shadow: inset 0 -5px 0 #c9c4b3, 0 0 44px rgba(244,241,232,.6); } }
.door.locked::after { content: ''; position: absolute; width: 14px; height: 12px; top: 10px; right: 10px; border-radius: 3px; background: var(--dim);
  box-shadow: 0 0 0 3px var(--mid); }
.door.endless { background: linear-gradient(135deg, var(--red-dd), var(--green-dd), var(--blue-dd)); color: rgba(244,241,232,.75); justify-content: center; }
.door.endless.open { color: var(--white); box-shadow: inset 0 -5px 0 rgba(0,0,0,.35), 0 0 30px rgba(244,241,232,.25); }
.door .nbest { font-size: 11px; color: var(--gold); letter-spacing: .05em; font-weight: 700; }
/* portrait: two doors a row */
.portrait .path-wrap { overflow-y: auto; max-height: 58vh; }
.portrait .path { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; padding: 16px 14px 18px; }
.portrait .door { width: auto; min-height: 118px; }
.portrait .door.endless { grid-column: span 2; min-height: 64px; flex-direction: row; gap: 14px; }

/* the chapter card: NEXT always there (its bar fills while the next chapter gets ready); 2x coins
   a small secondary button marked AD */
.done-stats { display: flex; align-items: center; gap: 22px; }
.done-perfects { display: flex; align-items: baseline; gap: 8px; font-size: 30px; font-weight: 700; }
.done-perfects b { font-size: 11px; letter-spacing: .2em; color: var(--dim); }
.btn.next-btn { flex-direction: column; gap: 8px; }
.next-btn .next-bar { display: block; width: 70%; height: 6px; border-radius: 3px; background: rgba(18,20,31,.15); overflow: hidden; }
.next-btn #next-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red), var(--green), var(--blue)); }
.next-btn.stopped .next-bar { opacity: .35; }
#next-label { font-size: 16px; letter-spacing: .24em; }
.panel .row .btn.dbl { font-size: 11px; letter-spacing: .1em; gap: 6px; }
.btn.dbl[disabled] { opacity: .35; pointer-events: none; }
.ad-tag { font-size: 9px; letter-spacing: .08em; padding: 2px 4px; border-radius: 4px; background: var(--gold); color: var(--deep); }

/* ------------------------------------------------------------ v0.07: the map on small screens */
/* the chapter box takes the room left between the title and the buttons and scrolls inside itself
   (a swipe, a wheel): it never squeezes under the buttons. The page blocks touch scrolling (html,
   body), so the box allows it back (v0.07 notes: on a small screen the chapters didn't fit and
   wouldn't scroll) */
#screen-map { justify-content: flex-start; gap: 10px; }
#screen-map > * { flex: none; }
#screen-map .path-wrap { flex: 0 1 auto; min-height: 0; overflow: auto; touch-action: pan-x pan-y;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#screen-map .map-actions { margin-top: auto; }
.portrait .path-wrap { max-height: none; }
.map-top .logo { flex: none; }
/* short landscape screens and windows: smaller doors and title, the two buttons side by side */
@media (max-height: 620px) {
  body:not(.portrait) .logo.small { width: 96px; }
  body:not(.portrait) .world-title h2 { font-size: 20px; margin-top: 0; }
  body:not(.portrait) #screen-map .path { padding: 12px 16px; gap: 10px; }
  body:not(.portrait) .door { width: 100px; min-height: 104px; padding: 8px 8px 10px; gap: 4px; }
  body:not(.portrait) .door .dnum { font-size: 24px; }
  body:not(.portrait) #screen-map .map-actions { flex-direction: row; max-width: 460px; }
  body:not(.portrait) #screen-map .map-actions .btn { min-height: 44px; }
}
/* the shortest landscape phones: doors keep their number, stars and level dots, not the name */
@media (max-height: 340px) {
  body:not(.portrait) #screen-map .path-wrap { padding: 0; }
  body:not(.portrait) #screen-map .path { padding: 8px 12px; }
  body:not(.portrait) .door { min-height: 0; width: 84px; }
  body:not(.portrait) .door .dname { display: none; }
}
/* narrow portrait phones: the header's pills fit next to the logo (the skins pill keeps its
   cube and price) */
@media (max-width: 420px) {
  .logo.small { width: 96px; }
  .map-right { gap: 6px; }
  .map-right .pill { padding: 7px 9px; font-size: 13px; }
  .skins-pill > span:not(.mini-cube) { display: none; }
}
@media (max-width: 340px) { .portrait .world-title h2 { font-size: 26px; } }

/* ------------------------------------------------------------ Playgama / website builds (shown only when the build turns them on) */
.mute-btn { display: none; }
body:not(.has-calib) #sync-row { display: none !important; }
body.has-mute .icon-btn.mute-btn { display: grid; }
body.has-mute .pill.mute-btn { display: flex; width: 44px; padding: 0; justify-content: center; }
.mute-btn svg { width: 18px; height: 18px; fill: var(--white); }
.mute-btn .wave { stroke: var(--white); }
.mute-btn .slash { display: none; stroke: var(--red); }
.mute-btn.off .slash { display: block; }
.mute-btn.off .wave { display: none; }
.mute-btn.off svg { opacity: .8; }

/* the rewarded "start near where you fell": a small button over the scene, clear of the three colour buttons */
.ad-continue { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--btn) + 30px + var(--safe-b)); width: auto; max-width: min(92vw, 380px);
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: 13px; letter-spacing: .12em; z-index: 3;
  background: rgba(18,20,31,.9); box-shadow: inset 0 0 0 2px rgba(255,211,77,.8), 0 0 18px rgba(0,0,0,.5); pointer-events: auto; }
.ad-continue .ad-tag { font-size: 10px; padding: 3px 6px; border-radius: 5px; background: var(--gold); color: var(--deep); letter-spacing: .08em; }
.desktop .ad-continue { bottom: calc(var(--btn) + 66px + var(--safe-b)); }
.portrait .ad-continue { bottom: calc(min(var(--btn) * 1.15, 28vw, 112px) + 30px + var(--safe-b)); }
.desktop.portrait .ad-continue { bottom: calc(min(var(--btn) * 1.15, 28vw, 112px) + 48px + var(--safe-b)); }

/* the pause menu's audio sync row: - [ AUDIO SYNC +20 MS ] + */
.panel .row.sync { grid-template-columns: 52px minmax(0, 1fr) 52px; }
.panel .row.sync .btn { min-height: 44px; font-size: 20px; letter-spacing: 0; }
#sync-row #sync-test { flex-direction: column; gap: 2px; font-size: 10px; letter-spacing: .16em; line-height: 1.2; }
#sync-row #sync-test b { font-size: 13px; letter-spacing: .08em; }
#sync-test.on { box-shadow: 0 0 0 2px rgba(244,241,232,.5); }
#sync-test.beat { animation: syncbeat .18s ease-out; }
@keyframes syncbeat { from { background: rgba(244,241,232,.55); } to { background: transparent; } }

/* the website build's link back to the studio, on the map */
.studio-link { position: absolute; right: calc(14px + var(--safe-r)); bottom: calc(10px + var(--safe-b)); font-size: 11px; letter-spacing: .2em; color: var(--dim);
  text-decoration: none; opacity: .8; padding: 6px 4px; font-weight: 700; }
.studio-link:hover { color: var(--white); opacity: 1; }
/* the pause menu with the audio sync row, on the shortest landscape phones (568 x 320): everything a little tighter */
@media (max-height: 360px) {
  body.has-calib #screen-pause .panel { padding: 10px 16px 10px; gap: 6px; }
  body.has-calib #screen-pause h2 { font-size: 22px; }
  body.has-calib #screen-pause .panel .btn { min-height: 38px; }
  body.has-calib #screen-pause .panel .btn.primary { min-height: 44px; }
  body.has-calib #screen-pause .panel .row.sync .btn { min-height: 38px; }
  body.has-calib #screen-pause .toggles .toggle { min-height: 46px; padding: 4px; gap: 3px; }
}
