/* Kaiju Escape. Bright, chunky lettering with hard dark outlines; candy-coloured buttons.
   Touch controls are scaled as a whole by --pad (set in src/main.js). */
:root { --pad: 1; --ink: #1d1a2a; --mint: #3cc8b4; --sun: #ffd23a; --hot: #ff6a3d; }

/* Luckiest Guy by Astigmatic, Apache License 2.0 (see fonts/LuckiestGuy-LICENSE.txt). */
@font-face {
  font-family: 'Luckiest Guy';
  src: url('fonts/LuckiestGuy.woff2') format('woff2');
  font-display: swap;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; height: 100%; overflow: hidden; background: #c8f5ea;
  font-family: 'Luckiest Guy', 'Arial Black', Impact, system-ui, sans-serif; letter-spacing: .5px;
  color: #fff; user-select: none; -webkit-user-select: none; touch-action: none;
}
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hidden { display: none !important; }
body.hostMute #btnMute, body.hostMute #btnSound, body.hostMute #btnSoundPause { display: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.outline { text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink), 0 4px 0 var(--ink); }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud, #title, #pause, #shop, #end { text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink), 0 3px 0 var(--ink); }
#hudLeft { position: absolute; left: max(12px, env(safe-area-inset-left)); top: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
#size { display: flex; align-items: baseline; gap: 6px; padding: 4px 12px 2px; background: var(--mint); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); }
#size span { font-size: 14px; }
#size b { font-size: 30px; font-weight: normal; line-height: 1; color: var(--sun); }
#coins { display: flex; align-items: center; gap: 6px; font-size: 22px; }
#coins b { font-weight: normal; }
#coins.bump { animation: bump .25s; }
@keyframes bump { 50% { transform: scale(1.25); } }
.coin { display: inline-block; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff3a0, #ffc21a 55%, #d89400); border: 3px solid var(--ink); box-shadow: inset 0 0 0 3px #ffe14a; }

#hudMid { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); width: min(40vw, 320px); text-align: center; }
#stageLine { font-size: 24px; line-height: 1; }
#stageLine b { font-weight: normal; color: var(--sun); font-size: 30px; }
#stageLine span { font-size: 16px; opacity: .9; }
#stageBar { height: 12px; margin-top: 5px; background: rgba(29,26,42,.45); border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; }
#stageFill { display: block; height: 100%; background: linear-gradient(90deg, #7dff6a, #3cc8b4); transform: scaleX(0); transform-origin: left; }
#zoneName { margin-top: 4px; font-size: 12px; letter-spacing: 1.5px; opacity: .95; }

#hudRight { position: absolute; right: max(10px, env(safe-area-inset-right)); top: 10px; display: flex; gap: 6px; align-items: center; pointer-events: auto; }
#hudRight button { position: relative; background: #fff; color: var(--ink); text-shadow: none; border: 3px solid var(--ink); border-radius: 12px; padding: 7px 10px 4px; font-size: 13px; box-shadow: 0 4px 0 var(--ink); }
#hudRight button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
#btnPause { min-width: 40px; font-size: 16px !important; letter-spacing: 1px; }
#btnSkins.new::after { content: ''; position: absolute; right: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--hot); border: 3px solid var(--ink); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.3); } }

/* The rewarded ad, offered after a few falls on one stage. */
#btnSkip { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); pointer-events: auto; padding: 8px 16px 5px; font-size: 16px; border-radius: 14px; animation: skipIn .4s cubic-bezier(.2, 1.5, .3, 1); }
@keyframes skipIn { 0% { transform: translateX(-50%) scale(.3); opacity: 0; } }
.ad::before { content: '\25B6'; display: inline-block; margin-right: 8px; padding: 1px 5px 0; font-size: .7em; vertical-align: 2px; background: var(--ink); color: #fff; border-radius: 5px; text-shadow: none; }
button.ad { background: linear-gradient(#ffd23a, #ff9f1a); color: var(--ink); text-shadow: none; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
/* A skip ad just failed: the button waits, grey, with a countdown (main.js, drawSkipWait). */
button.ad.wait, .big.ad.wait { background: #9a96a8; color: #3a3648; box-shadow: 0 3px 0 var(--ink); animation: none; }
#toast { position: fixed; left: 50%; top: 30%; z-index: 50; max-width: min(90vw, 560px); padding: 12px 22px 8px; font-size: clamp(16px, 2.6vw, 24px); text-align: center; color: #fff; background: rgba(29,26,42,.92); border: 3px solid var(--ink); border-radius: 16px; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .25s, transform .25s cubic-bezier(.2, 1.5, .3, 1); }
#toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ---------- Touch controls ---------- */
#stickZone { position: absolute; left: 0; bottom: 0; width: 50%; height: 78%; pointer-events: auto; touch-action: none; }
#jumpZone { position: absolute; right: 0; bottom: 0; width: 50%; height: 78%; pointer-events: auto; touch-action: none; }
#stickBase { position: absolute; width: calc(120px * var(--pad)); height: calc(120px * var(--pad)); transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255,255,255,.22); border: 3px solid rgba(29,26,42,.5); display: none; pointer-events: none; }
#stickBase.on { display: block; }
#stickKnob { position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; border-radius: 50%; background: #fff; border: 3px solid var(--ink); transform: translate(-50%, -50%); }
#tJump {
  position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom));
  width: calc(96px * var(--pad)); height: calc(96px * var(--pad)); border-radius: 50%; pointer-events: auto; touch-action: none;
  font-size: calc(19px * var(--pad)); color: #fff; background: radial-gradient(circle at 50% 35%, #7dff6a, #2fb84a);
  border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink), inset 0 -8px 0 rgba(0,0,0,.18);
}
#tJump.down { transform: translateY(4px) scale(.95); box-shadow: 0 2px 0 var(--ink), inset 0 -4px 0 rgba(0,0,0,.18); }
body:not(.touch) #tJump { display: none; }
#btnSkip { z-index: 2; }

/* ---------- Controls hint (over the play, in the two bottom corners) ---------- */
#hint { position: fixed; left: 0; right: 0; bottom: max(14px, env(safe-area-inset-bottom)); display: flex; justify-content: space-between; align-items: flex-end; padding: 0 max(14px, 2.5vw); font-size: clamp(14px, 1.8vw, 22px); text-align: center; pointer-events: none; transition: opacity .6s; }
#hint.done { opacity: 0; }
.hintSide { display: flex; flex-direction: column; align-items: center; gap: 3px; max-width: 44vw; padding: 9px 14px 7px; background: rgba(29,26,42,.78); border: 3px solid var(--ink); border-radius: 16px; animation: hintIn .5s cubic-bezier(.2, 1.4, .3, 1) both; }
.hintSide.jump { animation-delay: .12s; }
@keyframes hintIn { from { opacity: 0; transform: translateY(30px) scale(.8); } }
.hintSide .what { font-weight: normal; font-size: 1.25em; color: var(--sun); }
.hintSide em { font-style: normal; font-size: .72em; opacity: .9; }
.keyRow { display: flex; align-items: center; justify-content: center; gap: 3px; margin: 3px 0; }
.keyRow em { margin-right: 4px; }
/* Inside a portal's frame the keys do nothing until the game is clicked: say so, quietly. */
.hintSide .focus { display: none; color: #7dff6a; }
body.needClick .hintSide .focus { display: block; }
.k { display: inline-block; min-width: 1.8em; margin: 0 2px; padding: 5px 7px 1px; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 4px 0 #8a86a0; text-shadow: none; }
.k.wide { padding: 5px 18px 1px; }
.thumb { display: none; padding: 10px 14px 6px; border-radius: 14px; animation: thumb 1s ease-in-out infinite alternate; text-shadow: none; }
.hintSide.jump .thumb { animation-delay: .5s; }
@keyframes thumb { to { transform: translateY(-8px) scale(1.06); } }
/* Stage 1's coach: over the kaiju (placed by main.js). */
#coach { position: fixed; left: 0; top: 0; pointer-events: none; will-change: transform; }
#coach .in { position: absolute; left: 0; bottom: 0; transform: translateX(-50%); padding: 8px 16px 4px; white-space: nowrap; font-size: clamp(18px, 2.3vw, 30px); color: var(--sun); background: rgba(29,26,42,.85); border: 3px solid var(--ink); border-radius: 14px; animation: coachPulse .75s ease-in-out infinite alternate; transform-origin: 50% 100%; }
#coach .in::after { content: ''; position: absolute; left: 50%; bottom: -12px; margin-left: -9px; border: 9px solid transparent; border-bottom: 0; border-top-color: var(--ink); }
@keyframes coachPulse { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) translateY(-6px) scale(1.1); } }
/* CLICK TO PLAY: only while the page has no keyboard focus, never on touch. Clicks go through. */
#clickPlay { display: none; position: fixed; left: 50%; top: 40%; padding: 18px 34px 10px; font-size: clamp(32px, 6.5vw, 72px); color: #7dff6a; white-space: nowrap; background: rgba(29,26,42,.86); border: 4px solid var(--ink); border-radius: 24px; pointer-events: none; animation: clickPulse .8s ease-in-out infinite alternate; }
body.needClick:not(.touch) #clickPlay { display: block; }
@keyframes clickPulse { from { transform: translate(-50%, -50%) scale(1); } to { transform: translate(-50%, -50%) scale(1.08); } }
/* Touch: just the two thumb labels, the jump one sitting above the JUMP button. */
body.touch #hint { bottom: calc(max(22px, env(safe-area-inset-bottom)) + 118px * var(--pad)); padding: 0 max(12px, 6vw); font-size: clamp(16px, 4.2vw, 24px); }
body.touch .hintSide { padding: 0; background: none; border: 0; }
body.touch .hintSide > :not(.thumb) { display: none !important; }
body.touch .thumb { display: block; background: rgba(29,26,42,.78); }

/* ---------- Popups ---------- */
#popups { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.pop { position: absolute; left: 0; top: 0; font-size: 20px; color: #fff; white-space: nowrap; will-change: transform, opacity; text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink); }
.pop.coin { color: var(--sun); font-size: 18px; width: auto; height: auto; background: none; border: 0; box-shadow: none; border-radius: 0; }
.pop.smash { color: var(--hot); font-size: 34px; }
.pop.eek { color: #fff; font-size: 16px; }
.pop.need { color: #ffd23a; font-size: 18px; }
.pop.good { color: #7dff6a; font-size: 22px; }

/* ---------- Banner ---------- */
#banner { position: fixed; left: 0; right: 0; top: 13%; text-align: center; pointer-events: none; opacity: 0; }
#banner.show { animation: bannerIn 2.2s cubic-bezier(.2, 1.3, .3, 1) forwards; }
#bannerTitle {
  font-size: clamp(32px, 8vw, 76px); line-height: 1; color: var(--sun); letter-spacing: 2px; padding: 0 10px; transform: rotate(-3deg);
  text-shadow: -4px -4px 0 var(--ink), 4px -4px 0 var(--ink), -4px 4px 0 var(--ink), 4px 4px 0 var(--ink), 0 9px 0 var(--ink);
}
#banner.grow #bannerTitle { color: #7dff6a; font-size: clamp(44px, 13vw, 120px); }
#banner.zone #bannerTitle { color: #fff; }
#bannerSub { margin-top: 8px; font-size: clamp(15px, 3vw, 28px); color: #fff; text-shadow: -3px -3px 0 var(--ink), 3px -3px 0 var(--ink), -3px 3px 0 var(--ink), 3px 3px 0 var(--ink); }
#banner.zone #bannerSub { color: var(--sun); }
#bannerSub:empty { display: none; }
@keyframes bannerIn {
  0% { opacity: 0; transform: scale(2.4); }
  12% { opacity: 1; transform: scale(.92); }
  20% { transform: scale(1.06); }
  28% { transform: scale(1); }
  78% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0; transform: scale(1.2) translateY(-30px); }
}

/* The quick fade between stages. */
#wipe { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s; }
#wipe.on { opacity: 1; }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; justify-content: safe center; gap: 10px; padding: 16px; background: rgba(29,26,42,.55); text-align: center; overflow-y: auto; z-index: 5; }
h1 { margin: 0; font-weight: normal; font-size: clamp(40px, 10vw, 92px); line-height: .9; color: var(--sun); letter-spacing: 2px; text-shadow: -4px -4px 0 var(--ink), 4px -4px 0 var(--ink), -4px 4px 0 var(--ink), 4px 4px 0 var(--ink), 0 9px 0 var(--ink) !important; }
h2 { font-weight: normal; }
.sub { margin: 2px 0 8px; max-width: 520px; font: 800 clamp(14px, 2.2vw, 19px) 'Segoe UI', system-ui, sans-serif; }
.sub.small { font-size: clamp(12px, 1.8vw, 15px); opacity: .9; }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.big { min-width: 150px; padding: 13px 22px 9px; font-size: clamp(18px, 3vw, 26px); border-radius: 18px; border: 4px solid var(--ink); background: linear-gradient(#7dff6a, #2fb84a); color: #fff; box-shadow: 0 6px 0 var(--ink); text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink); }
.big:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.big.alt { background: #fff; color: var(--ink); text-shadow: none; font-size: clamp(15px, 2.4vw, 20px); }
.big.ad { background: linear-gradient(#ffd23a, #ff9f1a); color: var(--ink); text-shadow: none; }
.big.small { min-width: 0; padding: 9px 16px 6px; font-size: 14px; }

#loading { background: linear-gradient(#c8f5ea, #6fd3bd); gap: 22px; z-index: 10; }
#loadBar { width: min(70vw, 400px); height: 22px; background: rgba(29,26,42,.3); border: 4px solid var(--ink); border-radius: 13px; overflow: hidden; }
#loadFill { display: block; height: 100%; background: linear-gradient(90deg, #ffd23a, #ff6a3d); transform: scaleX(0); transform-origin: left; transition: transform .25s; }

/* Title: words on the left on a wide screen (the kaiju stands on the right), on top on a tall one. */
#title { background: linear-gradient(90deg, rgba(29,26,42,.45), rgba(29,26,42,0) 60%); align-items: flex-start; padding-left: max(5vw, 20px); }
body.tall #title { background: linear-gradient(rgba(29,26,42,.35), rgba(29,26,42,0) 45%, rgba(29,26,42,.35)); align-items: center; justify-content: space-between; padding: 6vh 16px 5vh; }
.titleBox { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 460px; }
.titleTop, .titleBottom { display: flex; flex-direction: column; align-items: center; gap: 10px; }
body.tall .titleBox { height: 100%; justify-content: space-between; }
.plus { margin-top: 2px; padding: 5px 16px 2px; font-size: clamp(20px, 4vw, 32px); background: var(--hot); border: 4px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink); transform: rotate(-4deg); }
#titleSize { font-size: 20px; color: #7dff6a; }
#titleRuns { font-size: 15px; }
#btnPlay { min-width: 240px; font-size: clamp(22px, 4vw, 32px); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05); } }
body.tall .titleBox .sub { display: none; }

#pause { background: rgba(29,26,42,.78); z-index: 6; }
#btnResume { min-width: 220px; }

/* ---------- Shop ---------- */
#shop { background: rgba(29,26,42,.86); z-index: 7; justify-content: flex-start; padding-top: 14px; }
.shopTitle { font-size: clamp(30px, 6vw, 56px); }
#shopTop { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.tabs { display: flex; gap: 6px; }
.tabs button { padding: 8px 16px 5px; font-size: 16px; border-radius: 12px; border: 3px solid var(--ink); background: #4a4660; box-shadow: 0 4px 0 var(--ink); }
.tabs button.on { background: var(--mint); }
#shopWallet { display: flex; align-items: center; gap: 6px; font-size: 24px; }
#shopWallet b { font-weight: normal; color: var(--sun); }
#shopCards { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; width: 100%; max-width: 760px; padding: 6px 4px; }
/* DONE stays in reach however long the list. */
#btnShopBack { position: sticky; bottom: 0; flex: none; margin-top: 4px; }
.item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 6px 8px; background: #fff; color: var(--ink); text-shadow: none; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 var(--ink); }
.item:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.item .pic { position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px; background: radial-gradient(circle at 50% 60%, #d8fff4, #a8e8d8); overflow: hidden; }
.item .pic img { width: 100%; height: 100%; display: block; }
.item .pic i { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ink); }
.item .pic i.bub { border-color: #fff; opacity: .85; }
.item b { font-weight: normal; font-size: 14px; }
.item .tag { padding: 3px 10px 1px; font-size: 14px; border-radius: 10px; background: #e8e6f0; }
.item .tag.price::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 50%; background: #ffc21a; border: 2px solid var(--ink); vertical-align: -1px; }
.item:not(.have) .pic { filter: saturate(.5) brightness(.85); }
.item.afford { border-color: #2fb84a; }
.item.afford .tag { background: #7dff6a; }
.item.using { background: #fff6c8; }
.item.using .tag { background: var(--sun); }

/* ---------- End ---------- */
#end { background: #f3a75a; z-index: 6; padding: 0; overflow: hidden; }
/* The painted picture fills the screen and drifts in slowly. */
#endArt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 45%; animation: endZoom 9s ease-out both; }
body.tall #endArt { object-position: 50% 30%; }
@keyframes endZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
/* Wide: a panel on the right, over the sunset. Tall: along the bottom, over the street. */
#endPanel { position: absolute; right: max(3vw, 16px); top: 50%; transform: translateY(-50%); width: min(42vw, 440px); display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 16px; background: rgba(29,26,42,.55); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 8px 0 rgba(29,26,42,.6); animation: panelIn .6s .5s cubic-bezier(.2, 1.3, .3, 1) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-50%) translateX(40px); } }
body.tall #endPanel { left: 16px; right: 16px; top: auto; bottom: max(16px, env(safe-area-inset-bottom)); width: auto; transform: none; animation-name: panelUp; }
@keyframes panelUp { from { opacity: 0; transform: translateY(40px); } }
#endPanel h1 { font-size: clamp(34px, 6vw, 68px); }
#endPanel .sub { margin: 0; }
#end h1 { color: #7dff6a; animation: slam .8s cubic-bezier(.2, 1.4, .3, 1) both; }
@keyframes slam { 0% { opacity: 0; transform: scale(4) rotate(-8deg); } 60% { opacity: 1; transform: scale(.94); } 100% { transform: scale(1); } }
#endStats { display: flex; gap: 8px; }
#endStats div { display: flex; flex-direction: column; padding: 6px 12px 3px; background: rgba(255,255,255,.14); border: 3px solid var(--ink); border-radius: 14px; }
#endStats span { font-size: 12px; }
#endStats b { font-weight: normal; font-size: 26px; color: var(--sun); }

#adStandIn { background: #05060c; z-index: 20; gap: 14px; }
#adStandIn h2 { margin: 0; font-size: clamp(24px, 6vw, 48px); color: #9aa3b8; }
#adStandInBar { width: min(70vw, 420px); height: 12px; background: #1b2036; border-radius: 7px; overflow: hidden; }
#adStandInFill { display: block; height: 100%; background: #6f7aa0; transform: scaleX(0); transform-origin: left; }

/* ---------- Small and narrow screens ---------- */
@media (max-width: 520px) {
  #hudMid { top: 92px; width: 70vw; }
  #shopCards { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .item b { font-size: 12px; }
  .item .tag { font-size: 12px; padding: 2px 6px 0; }
  #stageLine { font-size: 18px; }
  #stageLine b { font-size: 22px; }
  #hudRight button { padding: 6px 7px 3px; font-size: 11px; }
  #btnSkip { top: 160px; }
  #size b { font-size: 24px; }
}
@media (max-height: 420px) {
  #zoneName { display: none; }
  #title h1 br, #end h1 br { display: none; }
  #endPanel { gap: 5px; padding: 10px 12px; }
  #endPanel .sub:not(.small), #endPanel .sub.small { display: none; }
  #endPanel h1 { font-size: clamp(26px, 9vh, 40px); }
  #title h1 { font-size: clamp(30px, 11vh, 48px); }
  #title .sub, #titleRuns { display: none; }
  .titleBox, .titleTop, .titleBottom { gap: 6px; }
  .plus { font-size: 16px; padding: 3px 10px 1px; }
  #btnPlay { min-width: 200px; }
  #btnSkip { top: 62px; }
  .overlay { gap: 6px; padding: 8px; }
  h1 { font-size: clamp(30px, 9vh, 60px); }
  .big { padding: 8px 16px 5px; }
  #shopCards { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}
/* Very narrow: SKINS stays in the pause menu, so the top row fits. */
@media (max-width: 340px) {
  #btnSkins { display: none; }
}
/* Tall screens: a compact panel, so most of the picture shows. */
body.tall #endPanel { gap: 7px; padding: 12px 12px 14px; }
body.tall #endPanel .sub.small { display: none; }
body.tall #endPanel .sub { font-size: 13px; }
body.tall #endPanel h1 br { display: none; }
body.tall #endPanel h1 { font-size: clamp(28px, 8.5vw, 50px); }
body.tall #endPanel .row { flex-wrap: nowrap; width: 100%; }
body.tall #endPanel .row .big { flex: 1; min-width: 0; padding-left: 8px; padding-right: 8px; }
body.tall #endArt { object-position: 50% 12%; }
/* A short window: a smaller controls hint. */
@media (max-height: 420px) {
  #hint { font-size: 12px; bottom: 8px; }
  .hintSide { padding: 5px 10px 4px; gap: 1px; }
  .keyRow { margin: 1px 0; }
}
