/* Jumpy Prince. Colours are the game's UI palette (Assets/_Project/Scripts/Game/UI/UiSkin.cs, Pal). */
@font-face {
  font-family: "Silkscreen";
  src: url("assets/fonts/Silkscreen-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #140f12;
  --stone0: #1f1a1c;
  --panel: #2e2728;
  --stone2: #41383a;
  --stone3: #574b47;
  --gold: #e0bb5a;
  --gold-hi: #f6e6a0;
  --gold-dark: #b88a34;
  --text: #f4ead0;
  --parchment: #e2d2a8;
  --muted: #a8956f;
  --lamp: #e8a040;
  --cape: #b8322e;
  --epic: #ffd140;
  --body: #d8ccb1;
  --bg: #1f1a1c;
  --px: "Silkscreen", ui-monospace, monospace;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: auto; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .8s ease;
}
img, .px, .actor i, .world, .world * { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: var(--gold-hi); text-underline-offset: 3px; }
a:hover { color: #fff; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #3c5260;
}
.topnav {
  position: absolute; z-index: 5; top: 18px; right: 20px;
  display: flex; gap: 8px;
}
.topnav a {
  padding: 9px 14px 10px;
  font: 12px/1 var(--px); text-transform: uppercase; letter-spacing: .04em;
  color: var(--text); text-decoration: none;
  background: rgba(20, 15, 18, .55); box-shadow: inset 0 0 0 2px rgba(244, 234, 208, .18);
  transition: background .15s, box-shadow .15s;
}
.topnav a:hover { background: rgba(20, 15, 18, .8); box-shadow: inset 0 0 0 2px var(--gold); color: var(--gold-hi); }

/* The stage is the game's 384 x 900 title backdrop, anchored to the bottom and scaled by a whole number (--hs). */
.stage {
  position: absolute; left: 50%; bottom: 0;
  width: 384px; height: 900px;
  transform: translateX(-50%) scale(var(--hs, 3));
  transform-origin: 50% 100%;
}
.stage .layer, .stage .clouds {
  position: absolute; bottom: 0; left: 50%;
  width: 3840px; margin-left: -1920px;
  background-repeat: repeat-x; background-position: 1920px 100%;
}
.stage .sky { height: 900px; background-image: url(assets/menu/sky.png); background-position: 1728px 100%; }
.stage .far { height: 341px; background-image: url(assets/menu/far.png); background-position: 1728px 100%; }
.stage .near { height: 150px; background-image: url(assets/menu/near.png); background-position: 1728px 100%; }
.stage .near-floor { height: 21px; background-image: url(assets/menu/near_floor.png); background-position: 1728px 100%; }
.stage .tower { width: 384px; margin-left: -192px; height: 900px; background: url(assets/menu/tower.png) no-repeat; }
.stage .clouds { will-change: transform; }
.c-up3 { height: 100px; bottom: 430px !important; background-image: url(assets/menu/clouds_up3.png); }
.c-high { height: 80px; bottom: 205px !important; background-image: url(assets/menu/clouds_high.png); }
.c-up1 { height: 80px; bottom: 250px !important; background-image: url(assets/menu/clouds_up1.png); }
.c-mid { height: 96px; bottom: 60px !important; background-image: url(assets/menu/clouds_mid.png); }
.c-up2 { height: 88px; bottom: 325px !important; background-image: url(assets/menu/clouds_up2.png); }
.c-wisp { height: 80px; bottom: 290px !important; background-image: url(assets/menu/clouds_wisp.png); }
.c-low { height: 96px; bottom: 70px !important; background-image: url(assets/menu/clouds_low.png); }
.windows i { position: absolute; background: var(--lamp); }
.birds i, .motes i { position: absolute; left: 50%; bottom: 0; }
.birds i { width: 7px; height: 4px; background: url(assets/menu/bird_0.png); }
.birds i.f { background-image: url(assets/menu/bird_1.png); }
.motes i { width: 1px; height: 1px; background: #e8e08c; opacity: 0; }
.motes i.big { width: 2px; height: 2px; }
.hero-prince { position: absolute; left: calc(50% - 62px - 8px); bottom: 118px; }

.hero-copy { position: absolute; z-index: 4; left: 16px; right: 16px; }
/* the title sits centred in the sky, above the ground the prince stands on */
.hero-top {
  top: 0; bottom: calc(150px * var(--hs, 3));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.hero-bottom { bottom: max(6vh, 32px); display: flex; justify-content: center; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.hero-actions .stores { margin: 0; }
.logo { margin: 0 0 22px; position: relative; width: 450px; max-width: 100%; aspect-ratio: 150 / 72; }
.tagline { margin-bottom: 0 !important; }
.logo img { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 0 rgba(20, 15, 18, .35)); }
.logo .shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(assets/ui/logo_body.png) 0 0 / 100% 100% no-repeat;
  mask: url(assets/ui/logo_body.png) 0 0 / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 0 40%, rgba(255, 250, 220, .9) 40% 46%, transparent 46% 52%, rgba(255, 250, 220, .7) 52% 54%, transparent 54%) no-repeat;
  background-size: 260% 100%;
  background-position: 130% 0;
  animation: shine 4.5s 1.3s steps(24) infinite;
}
@keyframes shine { 0% { background-position: 130% 0; } 17%, 100% { background-position: -40% 0; } }
.tagline {
  margin: 0 0 14px;
  font: 32px/1.25 var(--px); color: var(--text);
  text-shadow: 2px 0 0 var(--ink), -2px 0 0 var(--ink), 0 2px 0 var(--ink), 0 -2px 0 var(--ink),
    2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 0 5px 0 var(--ink);
}
.sub { margin: 0; color: var(--parchment); max-width: 27em; font-size: 17px; }

.stores { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 0 0 18px; }
.badge { display: inline-flex; align-items: center; height: 54px; transition: transform .12s ease; }
.badge img { display: block; height: 100%; width: auto; image-rendering: auto; }
.badge.google { height: 80px; margin: -13px -10px; }      /* Google's badge image carries its own clear space */
a.badge:hover { transform: translateY(-2px); }
.badge.soon { cursor: default; }
.start {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 300px; height: 76px; padding: 0 28px;
  border: 0; cursor: pointer;
  background: url(assets/ui/play.png) 0 0 / 100% 100% no-repeat;
  image-rendering: pixelated;
  color: var(--ink);
  font: 20px/1 var(--px); text-transform: uppercase; letter-spacing: .02em;
  filter: drop-shadow(0 6px 0 rgba(20, 15, 18, .45));
  transition: transform .12s ease, filter .12s ease;
}
.start::after {
  content: "▼"; font-size: 12px; margin-left: 12px; display: inline-block;
  animation: nudge 1.4s ease-in-out infinite;
}
.start:hover { transform: translateY(-2px); }
.start:active, .start.pressed { background-image: url(assets/ui/play_pressed.png); transform: translateY(2px); filter: drop-shadow(0 2px 0 rgba(20, 15, 18, .45)); }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* ------------------------------------------------------------------ climb: pinned while you scroll */

.climb { position: relative; }
.pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(40px, 7vw, 120px);
  padding: 0 clamp(24px, 5vw, 80px);
}
.phone {
  order: 2; flex: none; position: relative;
  padding: 11px; border-radius: 58px;
  background: #0b0809;
  box-shadow: 0 0 0 1.5px #4a3f42, 0 0 0 7px #19141a, 0 0 0 8.5px #3b3236, 0 40px 90px -20px rgba(0, 0, 0, .75);
}
.screen {
  position: relative; overflow: hidden;
  width: var(--screen-w, 416px); height: var(--screen-h, 800px);
  border-radius: 47px; background: #000;
  isolation: isolate;
}
.screen::before { /* the island */
  content: ""; position: absolute; z-index: 5; left: 50%; top: 11px;
  width: 112px; height: 32px; margin-left: -56px; border-radius: 20px; background: #000;
}
.screen.shake { animation: shake .28s steps(6); }
.world {
  position: absolute; top: 0; left: 0;
  width: 448px;
  transform-origin: 0 0;
  will-change: transform;
}
.world * { position: absolute; }
.world .tag { white-space: nowrap; }
.banner {
  position: absolute; z-index: 4; left: 0; right: 0; top: 22%;
  display: flex; justify-content: center; pointer-events: none;
  opacity: 0;
}
.banner span {
  padding: 12px 26px 14px;
  font: 22px/1 var(--px); color: var(--text); text-transform: uppercase; white-space: nowrap;
  background: rgba(20, 15, 18, .9);
  box-shadow: 0 4px 0 var(--ink), inset 0 0 0 3px var(--realm, var(--gold)), inset 0 0 0 6px var(--ink);
}
.banner.on { animation: banner 2.2s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes banner {
  0% { opacity: 0; transform: scale(1.6); }
  12% { opacity: 1; transform: none; }
  80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-12px); }
}
.realm-sky { overflow: hidden; left: 128px; width: 192px; }
.realm-sky img { position: absolute; left: 50%; margin-left: -128px; will-change: transform; }
.terrain { left: 0; width: 448px; }
.terrain.fade-top { -webkit-mask: linear-gradient(#0000, #000 32px); mask: linear-gradient(#0000, #000 32px); }
.terrain.fade-bottom { -webkit-mask: linear-gradient(#000 calc(100% - 32px), #0000); mask: linear-gradient(#000 calc(100% - 32px), #0000); }
.terrain.fade-both { -webkit-mask: linear-gradient(#0000, #000 32px, #000 calc(100% - 32px), #0000); mask: linear-gradient(#0000, #000 32px, #000 calc(100% - 32px), #0000); }
.mist { left: 0; width: 448px; height: 44px; background-repeat: repeat-x; background-position: 0 0; animation: mist 40s linear infinite; }
.mist.back { opacity: .7; animation-duration: 70s; animation-direction: reverse; transform: translateY(-10px); }
@keyframes mist { to { background-position: 256px 0; } }
.summit-cap { left: 0; width: 448px; }

/* Sprites. Frames are set from world.json, which carries the game's slice rects. */
.actor { position: absolute; width: 16px; height: 24px; will-change: transform; }
.actor i { position: absolute; inset: 0; background-repeat: no-repeat; }
.actor .base { background-image: url(assets/sprites/prince.png); }
.actor.ghost { opacity: .5; }
.actor .tag {
  position: absolute; left: 50%; bottom: 27px; transform: translateX(-50%);
  font: 8px/1 var(--px); white-space: nowrap; letter-spacing: 0;
  text-shadow: 1px 0 0 var(--ink), -1px 0 0 var(--ink), 0 1px 0 var(--ink), 0 -1px 0 var(--ink);
  -webkit-font-smoothing: none; font-smooth: never;
}
.sprite { position: absolute; background-repeat: no-repeat; pointer-events: none; }
.fx { background-image: url(assets/sprites/fx.png); }
.gacha { background-image: url(assets/sprites/gacha.png); }
.gacha-epic { background-image: url(assets/sprites/gacha_epic.png); }
.goal { background-image: url(assets/sprites/goal.png); }
.flash { position: fixed; inset: 0; background: #fff; pointer-events: none; opacity: 0; z-index: 30; }
.flash.go { animation: flash .5s ease-out; }
@keyframes flash { 0% { opacity: .55; } 100% { opacity: 0; } }
@keyframes shake {
  0% { transform: translate(6px, -3px); } 20% { transform: translate(-6px, 3px); } 40% { transform: translate(3px, 3px); }
  60% { transform: translate(-3px, -3px); } 80% { transform: translate(3px, 0); } 100% { transform: none; }
}
.epic-tag {
  position: absolute; font: 8px/1 var(--px); color: var(--epic);
  text-shadow: 1px 0 0 var(--ink), -1px 0 0 var(--ink), 0 1px 0 var(--ink), 0 -1px 0 var(--ink);
  transform: translateX(-50%); opacity: 0; transition: opacity .3s, transform .3s; white-space: nowrap;
}
.epic-tag.on { opacity: 1; transform: translate(-50%, -4px); }

/* ------------------------------------------------------------------ beats: one at a time beside the phone */

.beats { order: 1; position: relative; flex: 1; max-width: 520px; height: min(640px, 80vh); }
.beat {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.beat.in, .beat.out { visibility: visible; }
.beat.in { opacity: 1; pointer-events: auto; }
.beat.out { opacity: 0; transition: opacity .3s ease, transform .4s ease; transform: translateY(calc(-50% + 30px)); }
.beat h2 {
  margin: 0 0 18px; max-width: 13em;
  font: 40px/1.15 var(--px); font-weight: 400; color: var(--text);
  text-shadow: 3px 3px 0 var(--ink);
  text-wrap: balance;
}
.beat h2 .w { display: inline-block; white-space: nowrap; }
.beat h2 .ch { display: inline-block; }
.beat > p { margin: 0 0 22px; max-width: 30em; text-wrap: pretty; }
.beat .fine { font-size: 14px; color: var(--muted); }

.beat > p, .beat [data-widget], .beat .stores { opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1); }
.beat.in > p { opacity: 1; transform: none; transition-delay: .25s; }
.beat.in [data-widget], .beat.in .stores { opacity: 1; transform: none; transition-delay: .4s; }
.beat h2 .ch { opacity: 0; transform: translateY(-18px) scale(1.4); }
.beat.in h2 .ch, .beat.out h2 .ch { opacity: 1; transform: none; }
.beat.in h2 .ch { animation: stamp .3s steps(4, end) backwards; animation-delay: calc(var(--i) * 18ms); }
@keyframes stamp {
  0% { opacity: 0; transform: translateY(-18px) scale(1.4); }
  60% { opacity: 1; transform: translateY(2px) scale(.96); }
  100% { opacity: 1; transform: none; }
}

/* Widgets in the game's panel frame */
.panel {
  border: 12px solid transparent;
  border-image: url(assets/ui/panel.png) 6 fill / 12px;
  image-rendering: pixelated;
  padding: 6px 8px;
}
.pad { display: flex; align-items: center; justify-content: center; gap: 22px; width: 100%; }
.pad .thumb { width: 64px; height: 64px; flex: none; background: url(assets/sprites/hand.png) 0 0 / 128px 64px no-repeat; image-rendering: pixelated; }
.pad .thumb.down { background-position: -64px 0; }
.pad .meter { flex: 1; max-width: 260px; text-align: left; }
.pad .meter-label { display: flex; justify-content: space-between; font: 11px/1 var(--px); color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.pad .bar { height: 18px; background: var(--ink); box-shadow: inset 0 0 0 2px var(--stone2), 0 2px 0 var(--ink); position: relative; overflow: hidden; }
.pad .bar i { position: absolute; left: 2px; top: 2px; bottom: 2px; width: 0; background: linear-gradient(var(--gold-hi) 0 35%, var(--gold) 35% 75%, var(--gold-dark) 75%); }
.pad .bar.full i { animation: blink .2s steps(2) infinite; }
@keyframes blink { 50% { filter: brightness(1.35); } }
.pad .slide { position: relative; width: 220px; height: 64px; }
.pad .slide .thumb { position: absolute; left: 78px; top: 0; transition: left .5s cubic-bezier(.5, 0, .3, 1); }
.pad .slide .arrow { position: absolute; top: 22px; font: 16px/1 var(--px); color: var(--gold); opacity: .25; transition: opacity .2s; }
.pad .slide .arrow.l { left: 0; } .pad .slide .arrow.r { right: 0; }
.pad .slide .arrow.on { opacity: 1; }

.board { width: 100%; max-width: 440px; text-align: left; }
.board .panel { padding: 4px 6px 8px; }
.board h4 { margin: 0 0 10px; display: flex; flex-direction: column; gap: 6px; font: 14px/1 var(--px); color: var(--gold); text-transform: uppercase; font-weight: 400; }
.board h4 small { font-size: 10px; color: var(--muted); }
.board ol { list-style: none; margin: 0; padding: 0; font: 13px/1 var(--px); text-transform: uppercase; }
.board li { display: grid; grid-template-columns: 34px 1fr 76px 44px; align-items: center; gap: 6px; height: 28px; padding: 0 8px; color: var(--parchment); transition: transform .4s cubic-bezier(.2, .8, .2, 1), background .3s; }
.board li:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.board li .t { text-align: right; color: var(--text); }
.board li .j { text-align: right; color: var(--muted); }
.board li .r { color: var(--muted); }
.board li.top .r { color: var(--gold-hi); }
.board li.you { background: rgba(224, 187, 90, .16); box-shadow: inset 0 0 0 2px var(--gold); color: var(--gold-hi); }
.board li.gap { height: 12px; background: none; border-top: 2px dashed var(--stone2); margin: 6px 8px 0; padding: 0; }
.board li.head { height: 22px; background: none; font-size: 10px; color: var(--muted); }
.board li.head .t, .board li.head .j { color: var(--muted); }

.loot-card { text-align: left; display: flex; gap: 18px; align-items: center; padding: 14px 18px 14px 14px; background: linear-gradient(90deg, rgba(255, 209, 64, .16), rgba(255, 209, 64, 0) 80%); box-shadow: inset 3px 0 0 var(--epic); }
.loot-art { width: 64px; height: 64px; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 209, 64, .35), transparent 70%); }
.actor-mini { width: 16px; height: 24px; transform: scale(2.6); background: url(assets/sprites/crown_phoenix.png) 0 -0px no-repeat, url(assets/sprites/prince.png) 0 0 no-repeat; image-rendering: pixelated; }
.loot-tier { margin: 0 0 4px; font: 11px/1 var(--px); color: var(--epic); text-transform: uppercase; letter-spacing: .1em; }
.loot-name { margin: 0 0 4px; font: 20px/1.1 var(--px); color: var(--text); }
.loot-blurb { margin: 0; font-size: 15px; color: var(--muted); font-style: italic; }
.beat[data-kind="chest"] .loot { opacity: 0 !important; transform: translateY(14px) !important; }
.beat[data-kind="chest"].opened .loot { opacity: 1 !important; transform: none !important; }

.map { display: flex; align-items: flex-end; justify-content: center; gap: 28px; }
.map .tower-stack { display: flex; flex-direction: column-reverse; align-items: center; }
.map .tower-stack img { width: 123px; height: 96px; display: block; opacity: .25; filter: grayscale(1); transition: opacity .4s, filter .4s; }
.map .tower-stack img.lit { opacity: 1; filter: none; }
.map .labels { display: flex; flex-direction: column-reverse; gap: 0; font: 11px/1 var(--px); text-transform: uppercase; color: var(--muted); }
.map .labels span { height: 96px; display: flex; align-items: center; transition: color .3s; }
.map .labels span.lit { color: var(--text); }
.map .next { display: flex; flex-direction: column; align-items: center; gap: 10px; font: 11px/1.3 var(--px); text-transform: uppercase; color: var(--muted); text-align: center; }
.map .next { position: relative; }
.map .next img { width: 96px; height: auto; opacity: .45; }
.map .next .lock { position: absolute; width: 32px; left: 50%; top: 40%; margin-left: -16px; opacity: .9; }

/* The finale beat sits above the door */
.beat[data-kind="finale"] h2 { font-size: 48px; }

/* ------------------------------------------------------------------ chrome while climbing */

.coach {
  position: fixed; z-index: 20; left: 50%; bottom: 28px; transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px;
  background: rgba(20, 15, 18, .82); box-shadow: inset 0 0 0 2px var(--gold-dark), 0 4px 0 rgba(20, 15, 18, .5);
  font: 14px/1 var(--px); text-transform: uppercase; color: var(--text);
  opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s;
}
.coach.on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 860px) { .coach { display: none; } }
.hint { display: inline-flex; align-items: center; gap: 12px; font: 14px/1 var(--px); text-transform: uppercase; color: var(--gold); }
.hint .hand, .coach .hand { width: 32px; height: 32px; background: url(assets/sprites/hand.png) 0 0 / 64px 32px no-repeat; image-rendering: pixelated; animation: swipe-up 1.2s ease-in-out infinite; }
@keyframes swipe-up {
  0%, 15% { transform: translateY(8px); background-position: -32px 0; }
  60% { transform: translateY(-8px); background-position: -32px 0; }
  61%, 100% { transform: translateY(-8px); background-position: 0 0; }
}

.hud {
  position: fixed; z-index: 15; right: 22px; top: 50%; transform: translate(12px, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; transition: opacity .4s, transform .4s; pointer-events: none;
}
.hud.on { opacity: 1; transform: translate(0, -50%); }
.hud-realm { display: flex; flex-direction: column; align-items: center; gap: 4px; font: 10px/1 var(--px); text-transform: uppercase; color: var(--muted); }
.rope { position: relative; width: 8px; height: 46vh; background: url(assets/ui/rope.png) 0 0 / 8px 8px repeat-y; image-rendering: pixelated; }
.rope-fill { position: absolute; left: 2px; bottom: 0; width: 4px; height: 0; background: url(assets/ui/rope_fill.png) 0 0 / 4px 4px repeat-y; image-rendering: pixelated; }
.bead { position: absolute; left: -2px; bottom: 0; width: 12px; height: 16px; margin-bottom: -8px; background: url(assets/ui/bead.png) 0 0 / 12px 16px no-repeat; image-rendering: pixelated; transition: bottom .25s ease-out; }

/* ------------------------------------------------------------------ narrow screens: the shaft fills the width and the copy rides above it */

@media (max-width: 859px) {
  body { font-size: 16px; }
  .logo { width: min(300px, 76vw); margin-bottom: 8px; }
  .tagline { font-size: 22px; margin-bottom: 8px; }
  .hero-bottom { bottom: max(28px, 4vh); }
  .hero-actions { flex-direction: column; gap: 14px; }
  .start { min-width: 0; width: min(320px, 100%); height: 68px; font-size: 17px; }
  .badge { height: 46px; }
  .badge.google { height: 68px; margin: -11px -9px; }
  .topnav { top: 12px; right: 12px; gap: 6px; }
  .topnav a { padding: 8px 10px 9px; font-size: 10px; }

  .hud { display: none; }

  /* the game fills the screen; the copy rides on top of it */
  .pin { padding: 0; display: block; }
  .phone { position: absolute; inset: 0; padding: 0; border-radius: 0; box-shadow: none; background: #000; }
  .screen { border-radius: 0; }
  .screen::before { display: none; }
  .beats { position: absolute; left: 12px; right: 12px; top: max(14px, env(safe-area-inset-top)); height: auto; max-width: none; z-index: 6; pointer-events: none; }
  .beat { top: 0; transform: none; padding: 16px 16px 14px; background: rgba(20, 15, 18, .88); box-shadow: inset 0 0 0 2px var(--stone2), 0 4px 0 rgba(20, 15, 18, .6); }
  .beat.out { transform: translateY(-16px); }
  .beat h2 { font-size: 22px; margin-bottom: 8px; }
  .beat > p { margin-bottom: 10px; font-size: 15px; line-height: 1.5; }
  .beat [data-widget] { transform: scale(.85); }
  .beat .stores { margin-bottom: 6px; }
  .banner { top: 46%; }
  .pad .thumb { width: 48px; height: 48px; background-size: 96px 48px; }
  .pad .thumb.down { background-position: -48px 0; }
  .pad .slide { height: 48px; width: 180px; }
  .pad .slide .thumb { left: 66px; }
  .pad .slide .arrow { top: 16px; }
  .board li { grid-template-columns: 28px 1fr 70px 34px; font-size: 12px; height: 24px; }
  .map .tower-stack img { width: 41px; height: 32px; }
  .map .labels span { height: 32px; }
  .map .next img { width: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo .shine, .mist, .start::after, .hint .hand, .coach .hand { animation: none; }
  .beat h2 .ch { opacity: 1; transform: none; }
  .beat.in h2 .ch { animation: none; }
  .banner.on { animation: none; }
  .screen.shake { animation: none; }
}
