:root {
  --ink: #1A1033;
  --ink2: #2B1F4D;
  --paper: #FFF6E5;
  --sun: #FFD23C;
  --hot: #FF5A36;
  --red: #E8323C;
  --teal: #2EC4B6;
  --sky: #8FD3F4;
  --steel: #6E8FC4;
  --mute: #8C84A3;
  --ease: cubic-bezier(.2, .9, .25, 1.25);
  --vvh: 100vh;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  letter-spacing: -0.01em;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); color: var(--paper); overscroll-behavior: none; }
body { touch-action: none; user-select: none; -webkit-user-select: none; }
canvas#cv { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; letter-spacing: inherit; }
.bangers { font-family: 'Bangers', 'Barlow Condensed', sans-serif; letter-spacing: 0.01em; font-weight: 400; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; background: var(--paper); color: var(--ink);
  font-weight: 800; font-size: 18px; text-transform: uppercase; letter-spacing: 0.01em;
  border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .2s, filter .2s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 8px 0 var(--ink); filter: brightness(1.04); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); transition-duration: .06s; }
.btn.go { background: var(--sun); }
.btn.hot { background: var(--hot); color: #fff; }
.btn.ghost { background: transparent; color: var(--paper); border-color: rgba(255, 246, 229, .5); box-shadow: none; }
.btn.ghost:hover { border-color: var(--paper); box-shadow: none; background: rgba(255, 246, 229, .08); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .k { font-size: 12px; opacity: .55; font-weight: 700; }

.rbtn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.rbtn:hover { transform: translateY(-2px) scale(1.06) rotate(-6deg); box-shadow: 0 6px 0 var(--ink); }
.rbtn:active { transform: translateY(2px) scale(.96); box-shadow: 0 1px 0 var(--ink); }
.rbtn svg { width: 22px; height: 22px; }
.rbtn.off { opacity: .5; }

/* ---------- screens ---------- */
.screen { position: fixed; inset: 0; display: none; z-index: 20; }
.screen.on { display: flex; }

#title {
  flex-direction: column; align-items: center; justify-content: center; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 110%, #FF8A3D 0%, #E8323C 30%, transparent 60%),
    radial-gradient(90% 70% at 50% 0%, #3B2A6E 0%, var(--ink) 70%);
}
#title .hazard { position: absolute; left: -5%; right: -5%; bottom: 0; height: 26px; transform: rotate(-1.2deg) translateY(4px);
  background: repeating-linear-gradient(-45deg, var(--sun) 0 22px, var(--ink) 22px 44px); border-top: 4px solid var(--ink); }
#title .city { position: absolute; left: 0; right: 0; bottom: 22px; height: 38%; opacity: .55; pointer-events: none; }
#title .wrap { position: relative; flex: 1; display: flex; align-items: flex-end; gap: clamp(8px, 4vw, 60px); padding: 20px; max-width: 1100px; width: 100%; justify-content: center; }
#title .oma { height: min(82vh, 620px); margin-bottom: 4px; filter: drop-shadow(0 18px 0 rgba(0,0,0,.25)); animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes bob { 0%, 100% { transform: rotate(-1.5deg) translateY(0); } 50% { transform: rotate(1.5deg) translateY(-8px); } }
#title .copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 520px; align-self: center; }
.logo { margin: 0; line-height: .86; font-size: clamp(54px, 10vw, 128px); color: var(--sun);
  text-shadow: 0 5px 0 var(--ink), 4px 9px 0 var(--hot), 0 0 0 var(--ink); transform: rotate(-3deg); }
.logo small { display: block; font-size: .46em; color: var(--paper); letter-spacing: .02em; transform: translateX(6px); }
.tag { font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; color: var(--paper); margin: 0; opacity: .92; }
.tag b { color: var(--sun); }
.studio { position: absolute; top: 18px; left: 20px; font-weight: 800; letter-spacing: .14em; font-size: 13px; text-transform: uppercase; opacity: .7; }
.studio i { color: var(--hot); font-style: normal; }

#levels { flex-direction: column; align-items: center; background: radial-gradient(100% 80% at 50% 0%, #3B2A6E, var(--ink) 75%); overflow-y: auto; padding: 22px 16px 40px; touch-action: pan-y; }
#levels > header { width: 100%; max-width: 1080px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
#levels h2 { margin: 0; font-size: clamp(34px, 5vw, 56px); color: var(--sun); text-shadow: 0 4px 0 var(--hot); transform: rotate(-2deg); }
.total { font-weight: 800; font-size: 20px; display: flex; gap: 6px; align-items: center; }
.grid { width: 100%; max-width: 1080px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card {
  position: relative; text-align: left; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px;
  box-shadow: 0 6px 0 var(--ink); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { transform: translateY(-5px) rotate(-.8deg); box-shadow: 0 11px 0 var(--ink); }
.card:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.card .pic { height: 130px; background: linear-gradient(#9ADCF7, #DDF3FB); border-bottom: 3px solid var(--ink); position: relative; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.card:hover .pic img { transform: scale(1.06); }
.card .nr { position: absolute; top: 8px; left: 10px; font-size: 30px; color: var(--sun); text-shadow: 0 3px 0 var(--ink), 2px 3px 0 var(--ink), -2px 3px 0 var(--ink); }
.card .meta { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.card .nm { font-weight: 800; font-size: 21px; line-height: 1.05; letter-spacing: -0.01em; }
.card .cl { font-size: 14px; font-weight: 600; color: #6A5F86; }
.card .st { margin-top: 6px; display: flex; gap: 3px; }
.card.lock { filter: grayscale(.9); opacity: .55; pointer-events: none; }
.card.lock::after { content: 'OP SLOT'; position: absolute; inset: 0; display: grid; place-items: center; font: 400 34px 'Bangers'; color: var(--ink); background: rgba(255,246,229,.4); }
.star { width: 22px; height: 22px; }
.star path { fill: #D8D1E6; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.star.on path { fill: var(--sun); }

/* ---------- modals ---------- */
.modal { align-items: center; justify-content: center; background: rgba(26, 16, 51, .55); backdrop-filter: blur(3px); padding: 16px; }
.panel {
  position: relative; width: min(560px, 100%); max-height: calc(var(--vvh) - 32px); overflow: auto; background: var(--paper); color: var(--ink);
  border: 4px solid var(--ink); border-radius: 22px; box-shadow: 0 10px 0 var(--ink); padding: 22px 24px 20px;
  animation: pop .45s var(--ease) both;
}
@keyframes pop { from { transform: scale(.6) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.panel h3 { margin: 0; font-size: clamp(32px, 5vw, 44px); line-height: .95; color: var(--ink); }
.panel .who { font-weight: 700; color: #6A5F86; font-size: 16px; margin: 2px 0 12px; }
.brief-top { display: flex; gap: 14px; align-items: flex-start; }
.face { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--ink); background: var(--sun); flex: none; object-fit: cover; box-shadow: 0 4px 0 var(--ink); }
.say { position: relative; background: #fff; border: 3px solid var(--ink); border-radius: 14px; padding: 10px 14px; font-size: 18px; font-weight: 600; line-height: 1.25; }
.say::before { content: ''; position: absolute; left: -12px; top: 22px; border: 8px solid transparent; border-right-color: var(--ink); border-left: 0; }
.goals { list-style: none; padding: 0; margin: 16px 0 6px; display: grid; gap: 8px; }
.goals li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; padding: 8px 12px; border-radius: 12px; background: #F3E9D6; border: 2px solid rgba(26,16,51,.12); }
.goals li .star { flex: none; }
.goals li em { font-style: normal; margin-left: auto; font-weight: 800; color: #6A5F86; }
.goals li.ok em { color: #1E9E62; }
.goals li.no em { color: var(--red); }
.goals li.ok { background: #DDF5E6; }
.tipline { font-size: 15px; font-weight: 600; color: #6A5F86; margin: 10px 0 0; }
.tipline b { color: var(--ink); }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.row .btn { flex: 1 1 auto; }



/* =====================================================================================
   GAMEPLAY UI (v7) — one system for everything you see while playing:
   ink panels with a hard edge (like the outlines in the world), safety yellow for what matters,
   red only for the detonator. Bangers for numbers and big words, Rubik for everything you read.
   ===================================================================================== */
:root {
  --ui: #22306C; --ui2: #2E3F88; --ui3: #3D51A6; --edge: #111842;
  --tx: #FFFFFF; --tx2: #BCC8F2; --y: #FFC23A; --r: #FF4B3A; --ok: #3EE08F; --ok2: #1FA866;
  --f-ui: 'Rubik', system-ui, sans-serif;
  font-family: var(--f-ui); letter-spacing: 0;
}
#title, #levels { font-family: 'Barlow Condensed', system-ui, sans-serif; letter-spacing: -0.01em; }
.bangers { font-family: 'Bangers', var(--f-ui); }

/* ---------- shared bits ---------- */
.ib {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: var(--ui2); color: var(--tx); transition: background .15s, transform .18s var(--ease), color .15s;
}
.ib:hover { background: var(--ui3); transform: translateY(-1px); }
.ib:active { transform: scale(.9); transition-duration: .05s; }
.ib svg { width: 20px; height: 20px; }
.ib.off { color: var(--tx2); }
.ib.off svg path:last-child { opacity: .25; }
.ib.on { background: var(--y); color: var(--edge); }
.ib[disabled] { opacity: .35; pointer-events: none; }
.hbar, .scard, .dock, .fastbtn, #pop, #toast {
  background: linear-gradient(180deg, #34479A, var(--ui)); color: var(--tx); border: 2px solid var(--edge);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 4px 0 var(--edge), 0 12px 28px rgba(22, 12, 74, .25);
}

/* ---------- top: level (left), score + goals (right) ---------- */
#hud { position: fixed; top: 0; left: 0; right: 0; display: none; justify-content: space-between; align-items: flex-start; gap: 10px;
  padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left)); z-index: 10; pointer-events: none; }
#hud.on, #tools.on { display: flex; }
#hud > * { pointer-events: auto; }
.hbar { display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 16px; min-width: 0; }
.lvname { display: flex; align-items: baseline; gap: 8px; padding: 0 12px 0 10px; min-width: 0; }
.lvname i { font: 400 24px/1 Bangers, sans-serif; color: var(--y); font-style: normal; }
.lvname b { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lvname span { display: none; }

.scard { width: 300px; border-radius: 16px; padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.scorebox { display: flex; align-items: center; gap: 10px; min-height: 40px; }
#scoreNum { font: 400 40px/1 Bangers, sans-serif; letter-spacing: .02em; color: var(--tx); display: inline-block; transform-origin: 0 60%; transition: font-size .35s var(--ease); }
#scoreNum.bump { animation: sbump .26s var(--ease); }
@keyframes sbump { 0% { transform: scale(1.18, .86); color: var(--y); } 45% { transform: scale(.96, 1.06); } 100% { transform: none; } }
.scorebox .rec { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--tx2); white-space: nowrap; }
.scard { position: relative; }
.combo { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 9px 2px; border-radius: 99px; background: var(--cc, var(--y)); color: var(--edge);
  opacity: 0; transform: scale(.4) rotate(-8deg); transition: opacity .18s, transform .3s var(--ease); pointer-events: none; }
.combo.on { opacity: 1; transform: rotate(-3deg); }
.combo b { font: 400 22px/1 Bangers, sans-serif; letter-spacing: .02em; }
.combo span { font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.combo.kick { animation: ckick .28s var(--ease); }
@keyframes ckick { 0% { transform: scale(1.45) rotate(-8deg); } 100% { transform: rotate(-3deg); } }
.combo.on.rec { display: inline-flex; }
/* the combo runs out: a bar under the pill drains until the next destruction moment refills it */
.combo::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -6px; height: 3px; border-radius: 3px; background: var(--cc, var(--y)); transform-origin: left center; transform: scaleX(var(--left, 1)); }
.combo.hot { box-shadow: 0 0 0 2px var(--edge), 0 0 18px var(--cc); }
.scorebox.mile b#scoreNum { animation: mile .6s var(--ease); }
@keyframes mile { 0% { transform: scale(1.35); color: #FFE98A; text-shadow: 0 0 18px #FFC93C; } 100% { transform: none; } }
.meter { display: flex; align-items: center; gap: 10px; }
.meter .bar { position: relative; flex: 1; height: 10px; border-radius: 99px; background: var(--ui3); }
.meter .bar b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, hsl(var(--h0, 8) 95% 56%), hsl(var(--h1, 20) 98% 60%)); box-shadow: 0 0 12px hsla(var(--h1, 20), 95%, 60%, .55);
  transition: width .25s cubic-bezier(.2, .9, .25, 1); }
.meter .bar b::after { content: ''; position: absolute; right: -2px; top: -3px; bottom: -3px; width: 6px; border-radius: 4px; background: #fff; box-shadow: 0 0 10px 2px hsla(var(--h1, 20), 100%, 70%, .9); }
.meter .bar.pulse b { animation: mpulse .3s var(--ease); }
@keyframes mpulse { 0% { filter: brightness(1.7); } 100% { filter: none; } }
.meter .bar .ms { position: absolute; top: 2px; bottom: 2px; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, .18); border-radius: 2px; transition: background .3s; }
.meter .bar .ms.hit { background: rgba(255, 255, 255, .7); }
.meter span { font-weight: 700; font-size: 14px; min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.meter.full .bar b { background: linear-gradient(90deg, #22C273, #8BF0B8); box-shadow: 0 0 16px rgba(139, 240, 184, .8); }
.meter.full span { color: var(--ok); }
.gchips { display: flex; gap: 6px; flex-wrap: wrap; }
.gchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 5px; border-radius: 99px; background: var(--ui2); color: var(--tx2); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: background .25s, color .25s; }
.gchip svg { width: 15px; height: 15px; }
.gchip svg path { fill: #4C4466; transition: fill .25s; }
.gchip em { font-style: normal; font-weight: 700; color: var(--tx); font-variant-numeric: tabular-nums; }
.gchip.ok { background: rgba(255, 198, 41, .16); color: var(--tx); }
.gchip.ok svg path { fill: var(--y); }
.gchip.bad { background: rgba(255, 75, 58, .16); }
.gchip.bad em { color: var(--r); }
.gchip.pop { animation: gpop .5s var(--ease); }
@keyframes gpop { 0% { transform: scale(1); } 30% { transform: scale(1.35, .8); } 60% { transform: scale(.9, 1.12); } 100% { transform: none; } }
body.running #scoreNum { font-size: 50px; }
body.running .scorebox .rec { display: none; }

/* ---------- bottom: the control dock ---------- */
#tools { position: fixed; left: 0; right: 0; bottom: 0; display: none; justify-content: center; padding: 0 12px max(12px, env(safe-area-inset-bottom)); z-index: 10; pointer-events: none; }
#tools > * { pointer-events: auto; }
.dock { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: 20px; transition: transform .45s var(--ease), opacity .25s; }
.grp { display: flex; align-items: center; gap: 4px; }
.util .ib { width: 44px; height: 44px; }
.seg { background: var(--ui2); border-radius: 14px; padding: 4px; }
.ctype { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px 0 8px; border-radius: 11px; color: var(--tx2); font-weight: 700; font-size: 15px; transition: background .15s, color .15s, transform .18s var(--ease); }
.ctype svg { width: 28px; height: 28px; }
.ctype:hover { background: var(--ui3); color: var(--tx); }
.ctype.sel { background: var(--y); color: var(--edge); }
.ctype.sel:active, .ctype:active { transform: scale(.94); }
.ctype b { font: 400 19px/1 Bangers, sans-serif; letter-spacing: .02em; }
.ctype i { font-style: normal; font-size: 12px; opacity: .7; margin-left: -3px; }
.ctype b:empty, .ctype i:empty { display: none; }
.ctype.empty b { color: var(--r); }
.waves .lab { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--tx2); padding: 0 6px 0 8px; }
.waves button { width: 40px; height: 40px; border-radius: 10px; font: 400 22px/1 Bangers, sans-serif; color: var(--wc); transition: background .15s, color .15s, transform .18s var(--ease); }
.waves button:hover { background: var(--ui3); }
.waves button.sel { background: var(--wc); color: var(--edge); }
.waves button:active { transform: scale(.9); }
.fire {
  position: relative; height: 58px; min-width: 200px; padding: 0 28px; border-radius: 15px; font-size: 32px; letter-spacing: .03em; color: #fff;
  background: var(--r); box-shadow: 0 5px 0 #A3200F, inset 0 3px 0 rgba(255, 255, 255, .28); text-shadow: 0 2px 0 rgba(11, 9, 18, .35);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .2s, color .2s; margin-left: 4px;
}
.fire:hover { transform: translateY(-2px); background: #FF5D4D; box-shadow: 0 7px 0 #A3200F, inset 0 3px 0 rgba(255, 255, 255, .28); }
.fire:active { transform: translateY(4px) scale(.97, .94); box-shadow: 0 1px 0 #A3200F; transition-duration: .05s; }
.fire[disabled] { background: var(--ui3); color: #6F6789; box-shadow: 0 5px 0 var(--edge); text-shadow: none; pointer-events: none; }
.fire.ready { animation: ready 1.5s ease-out infinite; }
@keyframes ready { 0% { box-shadow: 0 5px 0 #A3200F, inset 0 3px 0 rgba(255,255,255,.28), 0 0 0 0 rgba(255, 75, 58, .55); } 70%, 100% { box-shadow: 0 5px 0 #A3200F, inset 0 3px 0 rgba(255,255,255,.28), 0 0 0 16px rgba(255, 75, 58, 0); } }
.fastbtn { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: max(14px, env(safe-area-inset-bottom)); display: none; align-items: center; gap: 8px; height: 48px; padding: 0 16px 0 14px; border-radius: 14px; font-weight: 700; font-size: 15px; transition: transform .18s var(--ease), background .15s; }
.fastbtn svg { width: 20px; height: 20px; }
.fastbtn:active { transform: scale(.94); }
.fastbtn.on { background: var(--y); color: var(--edge); }
/* firing: the controls get out of the way, the picture gets the whole screen */
body.running .dock { transform: translateY(160%); opacity: 0; pointer-events: none; }
body.running .fastbtn { display: flex; animation: fadeup .35s var(--ease) .3s both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(20px); } }

/* ---------- charge popover, toast, countdown ---------- */
#pop { position: fixed; z-index: 12; display: none; transform: translate(-50%, calc(-100% - 22px)); border-radius: 14px; padding: 5px; gap: 3px; align-items: center; }
#pop.on { display: flex; animation: popin .22s var(--ease); }
@keyframes popin { from { transform: translate(-50%, calc(-100% - 10px)) scale(.7); opacity: 0; } }
#pop::after { content: ''; position: absolute; left: 50%; bottom: -10px; margin-left: -8px; border: 8px solid transparent; border-top-color: var(--edge); border-bottom: 0; }
#pop.below { transform: translate(-50%, 0); }
#pop.below::after { top: -10px; bottom: auto; border-top: 0; border-bottom: 8px solid var(--edge); }
#pop .lab { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--tx2); padding: 0 4px 0 6px; }
#pop button { width: 40px; height: 40px; border-radius: 10px; font: 400 21px/1 Bangers, sans-serif; color: var(--wc, var(--tx)); transition: background .15s, transform .15s var(--ease); }
#pop button:hover { background: var(--ui3); }
#pop button.sel { background: var(--wc); color: var(--edge); }
#pop button.del { background: var(--ui2); color: var(--r); font: 700 17px var(--f-ui); margin-left: 3px; }
#pop button.del:hover { background: var(--r); color: #fff; }
#toast { position: fixed; left: 50%; top: 80px; transform: translate(-50%, -16px); opacity: 0; z-index: 15; pointer-events: none; border-radius: 14px; padding: 10px 16px; font-weight: 600; font-size: 15px; line-height: 1.3; max-width: min(520px, 92vw); text-align: center; transition: opacity .25s, transform .35s var(--ease); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#count { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 11; font: 400 clamp(110px, 22vw, 240px) 'Bangers'; color: var(--y); text-shadow: 0 8px 0 var(--edge), 6px 12px 0 var(--r); opacity: 0; }
#count.go { animation: cnt .32s var(--ease) forwards; }
@keyframes cnt { 0% { opacity: 0; transform: scale(2.4); } 40% { opacity: 1; transform: scale(.9); } 100% { opacity: 1; transform: scale(1); } }
#rotate { display: none !important; }

/* ---------- briefing + result panels ---------- */
.modal { align-items: center; justify-content: center; background: rgba(11, 9, 18, .5); backdrop-filter: blur(2px); padding: 16px; }
.panel { background: var(--ui); color: var(--tx); border: 2px solid var(--edge); border-radius: 22px; box-shadow: 0 6px 0 var(--edge), 0 30px 70px rgba(11, 9, 18, .4); padding: 22px 24px 20px; animation: panelin .45s var(--ease) both; }
@keyframes panelin { from { transform: translateY(40px) scale(.94); opacity: 0; } }
.panel h3 { color: var(--tx); letter-spacing: .02em; }
.panel .who { color: var(--tx2); font-weight: 500; font-size: 15px; }
.say { background: #fff; color: var(--edge); border: 0; font-weight: 500; font-size: 17px; }
.say::before { border-right-color: #fff; }
.face { border: 3px solid var(--edge); background: var(--y); box-shadow: none; }
.goals li { background: var(--ui2); border: 0; color: var(--tx); font-weight: 500; font-size: 15px; }
.goals li b { color: var(--y); font-weight: 700; }
.star path { fill: #3A3350; stroke: var(--edge); stroke-width: 2; }
.star.on path { fill: var(--y); }
.tipline { color: var(--tx2); font-weight: 500; font-size: 14px; line-height: 1.4; }
.tipline b { color: var(--tx); font-weight: 700; }
.panel .btn { background: var(--ui2); color: var(--tx); border: 2px solid var(--edge); box-shadow: 0 4px 0 var(--edge); font-family: var(--f-ui); font-weight: 700; font-size: 16px; letter-spacing: .01em; border-radius: 13px; padding: 12px 18px; }
.panel .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--edge); background: var(--ui3); }
.panel .btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.panel .btn.go { background: var(--y); color: var(--edge); }
.panel .btn.ghost { background: transparent; box-shadow: none; border-color: var(--ui3); }
.panel .btn .k { opacity: .5; font-size: 11px; }

/* ---------- portrait phones: HUD on top in two slim rows, dock at the bottom in two rows ---------- */
body.portrait #hud { flex-direction: column; align-items: stretch; gap: 6px; padding: max(8px, env(safe-area-inset-top)) 8px 0; }
body.portrait .hbar { padding: 4px; border-radius: 14px; }
body.portrait .lvname { flex: 1; padding: 0 6px; }
body.portrait .lvname b { font-size: 15px; }
body.portrait .scard { width: auto; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 6px; padding: 7px 12px 9px; border-radius: 14px; }
body.portrait .scorebox { min-height: 0; }
body.portrait #scoreNum { font-size: 30px; }
body.portrait.running #scoreNum { font-size: 34px; }
body.portrait .scorebox .rec { display: none; }
body.portrait .combo { right: 10px; top: calc(100% + 6px); }
body.portrait .gchips { grid-column: 1 / span 2; justify-content: space-between; flex-wrap: nowrap; }
body.portrait .gchip { font-size: 12px; }
body.portrait #tools { padding: 0 8px max(8px, env(safe-area-inset-bottom)); }
body.portrait .dock { width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding: 6px; border-radius: 18px; }
body.portrait #types { order: 1; }
body.portrait .waves { order: 2; }
body.portrait .util { order: 3; }
body.portrait .fire { order: 4; flex: 1; min-width: 0; height: 54px; font-size: 27px; padding: 0 12px; margin-left: 0; }
body.portrait .waves button { width: 38px; height: 38px; }
body.narrow .waves .lab { display: none; }
body.narrow .ctype { padding: 0 9px 0 6px; font-size: 14px; }
@media (max-width: 370px) { body.portrait .ctype span { display: none; } body.portrait .gchip { font-size: 11px; padding-right: 7px; } }
body.portrait #toast { top: 150px; }
body.portrait .panel { max-height: calc(var(--vvh) - 24px); padding: 18px 16px 16px; }

/* ---------- short landscape phones ---------- */
body.short #hud { padding-top: max(8px, env(safe-area-inset-top)); }
body.short .ib { width: 36px; height: 36px; }
body.short .scard { width: 250px; padding: 7px 11px 9px; gap: 6px; }
body.short #scoreNum { font-size: 30px; }
body.short.running #scoreNum { font-size: 36px; }
body.short .scorebox { min-height: 0; }
body.short .gchip { font-size: 11px; }
body.short .dock { padding: 5px; gap: 5px; }
body.short .util .ib { width: 38px; height: 38px; }
body.short .ctype { height: 38px; }
body.short .ctype svg { width: 22px; height: 22px; }
body.short .waves button { width: 34px; height: 34px; font-size: 19px; }
body.short .fire { height: 46px; min-width: 150px; font-size: 25px; }

/* ---------- start-screen helpers kept from before ---------- */
.card .fee { position: absolute; right: 8px; bottom: 8px; background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 1px 9px; font-weight: 800; font-size: 14px; }
.total { gap: 14px; }
.total .cash { background: var(--sun); color: var(--ink); border: 3px solid var(--ink); border-radius: 99px; padding: 2px 12px; box-shadow: 0 3px 0 var(--ink); }
.card .rec { font-weight: 700; font-size: 13px; color: #6A5F86; }
.goals .ss { display: flex; gap: 1px; min-width: 62px; }
.goals .ss .star { width: 17px; height: 17px; }
.panel { touch-action: pan-y; }
@media (max-width: 640px) {
  #title .wrap { flex-direction: column-reverse; gap: 0; }
  #title .oma { height: 38vh; }
  #title .copy { align-items: center; text-align: center; }
}
#levels > header { flex-wrap: wrap; }
@media (max-width: 560px) {
  #levels > header { gap: 8px; }
  #levels > header .btn { padding: 8px 12px; font-size: 14px; white-space: nowrap; }
  #levels h2 { font-size: 28px; order: -1; width: 100%; text-align: center; }
  .total { font-size: 16px; }
}
@media (max-height: 520px) {
  #title .oma { height: 78vh; }
  .panel { padding: 16px 18px; }
  .goals li { font-size: 14px; padding: 6px 10px; }
}
@media (max-height: 520px) and (min-width: 600px) {
  #brief .panel { width: min(820px, 100%); display: grid; grid-template-columns: minmax(220px, 0.85fr) 1.15fr; column-gap: 20px; align-content: start; }
  #brief .panel > h3, #brief .panel > .who, #brief .panel > .brief-top { grid-column: 1; }
  #brief .panel > .goals, #brief .panel > .tipline, #brief .panel > .row { grid-column: 2; }
  #brief .panel > .goals { grid-row: 1 / span 3; margin-top: 0; }
  #brief .panel > .tipline { grid-row: 4; }
  #brief .panel > .row { grid-row: 5; margin-top: 10px; }
  #brief .panel > .brief-top { grid-row: 3 / span 3; flex-direction: column; }
  .say::before { display: none; }
  .face { width: 54px; height: 54px; }
  .say { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body.short .scorebox .rec { display: none; }
body.short .scard { width: 268px; }
body.short .gchips { flex-wrap: nowrap; gap: 4px; }
body.short .gchip { padding: 2px 7px 2px 4px; }
body.short .gchip svg { width: 12px; height: 12px; }
body.short .panel .btn { padding: 9px 12px; font-size: 14px; }


/* =====================================================================================
   RESULT (v8): one card, violet and gold. Stars, the score, four tiles, one big green button.
   ===================================================================================== */
#result.modal { background: radial-gradient(120% 90% at 50% 30%, rgba(44, 30, 122, .35), rgba(22, 12, 74, .78)); backdrop-filter: blur(3px); }
.panel.res { position: relative; width: min(520px, 100%); padding: 26px 22px 20px; text-align: center; overflow: visible;
  background: linear-gradient(180deg, #4560C8 0%, #2F428E 55%, #22306C 100%); border: 3px solid var(--edge); border-radius: 28px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .22), 0 8px 0 var(--edge), 0 40px 80px rgba(22, 12, 74, .5); animation: resin .5s var(--ease) both; }
@keyframes resin { from { transform: translateY(60px) scale(.9); opacity: 0; } }
.panel.res.thud { animation: thud .22s ease-out; }
@keyframes thud { 0% { transform: translateY(6px) scale(.995); } 100% { transform: none; } }
.res-oma { position: absolute; left: -128px; bottom: 6px; height: 170px; filter: drop-shadow(0 6px 0 rgba(22, 12, 74, .45)); pointer-events: none; }
.res-stars { display: flex; justify-content: center; align-items: flex-end; gap: 2px; margin: -70px 0 6px; height: 96px; }
.res-stars .sw { position: relative; display: block; }
.res-stars .star { width: 66px; height: 66px; display: block; transform: scale(0); }
.res-stars .sw:nth-child(2) .star { width: 92px; height: 92px; }
.res-stars .star path { fill: #2A1C70; stroke: var(--edge); stroke-width: 1.6; }
.res-stars .star.on path { fill: url(#gold); stroke: #8A4B00; }
.res-stars .sw.pop .star { animation: stamp .42s cubic-bezier(.2, .8, .3, 1.2) forwards; }
@keyframes stamp { 0% { transform: scale(2.6) rotate(-25deg); opacity: 0; } 55% { transform: scale(.86) rotate(4deg); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.res-stars .sw.pop.on::after { content: ''; position: absolute; inset: 8%; border-radius: 50%; border: 4px solid var(--y); animation: ring .55s ease-out .1s both; pointer-events: none; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
#result h3 { font-size: clamp(36px, 6vw, 50px); line-height: .95; margin: 0; color: #fff; letter-spacing: .02em; text-shadow: 0 3px 0 var(--edge); }
.res-sub { margin: 6px auto 0; max-width: 34ch; color: var(--tx2); font-size: 14.5px; font-weight: 500; font-style: italic; }
.res-total { margin: 14px 0 4px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.res-total b { font: 400 72px/.9 Bangers, sans-serif; letter-spacing: .02em; color: #fff; text-shadow: 0 4px 0 var(--edge); display: inline-block; }
.res-total b.bump { animation: sbump .24s var(--ease); }
.res-total span { min-height: 22px; font-size: 13px; font-weight: 600; color: var(--tx2); }
.res-total .new { display: inline-block; background: var(--y); color: #3A1E00; border-radius: 99px; padding: 4px 12px; font-weight: 800; font-size: 13px; letter-spacing: .04em; animation: newrec .6s var(--ease) both; }
@keyframes newrec { 0% { transform: scale(0) rotate(-14deg); } 70% { transform: scale(1.2) rotate(3deg); } 100% { transform: rotate(-2deg); } }
.tiles { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tiles li { position: relative; background: rgba(22, 12, 74, .45); border: 2px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 10px 4px 9px; display: flex; flex-direction: column; align-items: center; gap: 2px;
  opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .2s, transform .35s var(--ease), border-color .3s; }
.tiles li.in { opacity: 1; transform: none; }
.tiles li i { font-style: normal; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--tx2); }
.tiles li b { font: 400 26px/1 Bangers, sans-serif; letter-spacing: .02em; color: #fff; }
.tiles li em { font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--tx2); white-space: nowrap; }
.tiles li.ok { border-color: var(--ok); background: rgba(62, 224, 143, .12); }
.tiles li.ok::after { content: '✓'; position: absolute; top: -8px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: var(--edge); font: 800 13px/22px var(--f-ui); border: 2px solid var(--edge); }
.tiles li.no b { color: #FF9A8C; }
.tiles li.bonus { border-color: rgba(255, 201, 60, .7); background: rgba(255, 201, 60, .1); }
.tiles li.bonus b { color: var(--y); }
.res-more { margin: 12px 0 0; text-align: left; }
.res-more summary { list-style: none; cursor: pointer; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--tx2); padding: 4px; }
.res-more summary::-webkit-details-marker { display: none; }
.res-more summary::after { content: ' ▾'; }
.res-more[open] summary::after { content: ' ▴'; }
.parts { list-style: none; margin: 6px 0 0; padding: 10px 14px; display: grid; gap: 4px; background: rgba(22, 12, 74, .35); border-radius: 14px; }
.parts li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; font-weight: 500; color: var(--tx2); }
.parts li b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.parts li.neg b { color: #FF9A8C; }
.res-cash { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--tx2); }
.res-cash b { font: 400 26px/1 Bangers, sans-serif; letter-spacing: .02em; color: var(--y); }
.res-cash b.dim { font: 600 13px var(--f-ui); color: var(--tx2); }
.res-btns { display: flex; gap: 10px; margin-top: 16px; }
.rb { width: 58px; height: 58px; flex: none; border-radius: 16px; display: grid; place-items: center; color: #fff; background: var(--ui3); border: 2px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 0 var(--edge);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .15s; }
.rb svg { width: 24px; height: 24px; }
.rb:hover { transform: translateY(-2px); background: #5A47CC; box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 0 var(--edge); }
.rb:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.cta { flex: 1; height: 58px; border-radius: 16px; font-size: 30px; letter-spacing: .04em; color: #fff; background: linear-gradient(180deg, #4BEA9B, var(--ok2)); border: 2px solid var(--edge);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 5px 0 #0D5C37; text-shadow: 0 2px 0 rgba(13, 92, 55, .6); transition: transform .16s var(--ease), box-shadow .16s var(--ease), filter .15s; }
.cta:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 7px 0 #0D5C37; }
.cta:active { transform: translateY(4px) scale(.98); box-shadow: 0 1px 0 #0D5C37; }
.cta.ready { animation: ctapulse 1.6s ease-out infinite; }
@keyframes ctapulse { 0% { box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 5px 0 #0D5C37, 0 0 0 0 rgba(62, 224, 143, .55); } 70%, 100% { box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 5px 0 #0D5C37, 0 0 0 16px rgba(62, 224, 143, 0); } }
.cta[disabled] { background: var(--ui3); color: var(--tx2); box-shadow: 0 5px 0 var(--edge); text-shadow: none; animation: none; }
.cta .k { font: 600 11px var(--f-ui); opacity: .6; margin-left: 6px; letter-spacing: 0; }
@media (max-width: 720px) { .res-oma { display: none; } }
body.portrait .panel.res { padding: 22px 14px 14px; margin-top: 50px; max-height: none; }
body.portrait .res-stars { margin-top: -66px; }
body.portrait .res-total b { font-size: 60px; }
body.portrait .tiles { grid-template-columns: repeat(2, 1fr); }
body.portrait .tiles li { flex-direction: row; justify-content: center; gap: 8px; padding: 9px 6px; }
body.portrait .tiles li em { display: none; }
body.short .panel.res { width: min(760px, 100%); padding: 12px 16px 12px; display: grid; grid-template-columns: 230px 1fr; column-gap: 18px; align-items: center; text-align: center; }
body.short .res-head { grid-row: 1 / span 3; }
body.short .res-stars { margin: 0 0 2px; height: 60px; }
body.short .res-stars .star { width: 42px; height: 42px; }
body.short .res-stars .sw:nth-child(2) .star { width: 58px; height: 58px; }
body.short #result h3 { font-size: 28px; }
body.short .res-sub { font-size: 12px; }
body.short .res-total { margin: 6px 0 0; }
body.short .res-total b { font-size: 46px; }
body.short .tiles { margin-top: 0; gap: 6px; }
body.short .tiles li { padding: 6px 2px; }
body.short .tiles li b { font-size: 20px; }
body.short .res-more, body.short .res-oma { display: none; }
body.short .res-cash { margin-top: 6px; }
body.short .res-btns { margin-top: 8px; }
body.short .rb, body.short .cta { height: 46px; }
body.short .rb { width: 46px; }
body.short .cta { font-size: 24px; }

/* the alien counter: a bonus chip, lime once you've got them all */
.gchip.al svg path:first-child { fill: none; stroke: #A57BFF; }
.gchip.al svg path + path { fill: #A57BFF; }
.gchip.al.ok { background: #C6F03A; color: var(--edge); }
.gchip.al.ok svg path + path { fill: #7448E0; }
.gchip.al.ok svg path:first-child { stroke: #7448E0; }
.gchip.al.kick { animation: ckick .28s var(--ease); }

/* ---------- the map: chapters ---------- */
.map { width: 100%; max-width: 1080px; display: flex; flex-direction: column; gap: 26px; }
.chap { --c1: #3B2A6E; --c2: #FFD23C; border-radius: 22px; padding: 16px 16px 18px; background: linear-gradient(160deg, var(--c1), rgba(26,16,51,.6)); border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); }
.chap.c0 { --c1: #2F5E8C; --c2: #8DD0F4; }
.chap.c1 { --c1: #8A4A2E; --c2: #FFB23C; }
.chap.c2 { --c1: #6B3A7A; --c2: #FF8FB1; }
.chap.c3 { --c1: #1E2E52; --c2: #C6F03A; }
.chap.c4 { --c1: #7A2418; --c2: #FFB23C; }
.chead { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'num stars' 'name stars' 'sub sub'; align-items: center; column-gap: 12px; margin: 0 4px 14px; color: #FFF6E5; }
.chead .cnum { grid-area: num; font-size: 17px; letter-spacing: .04em; color: var(--c2); }
.chead h3 { grid-area: name; margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1; letter-spacing: .01em; text-shadow: 0 3px 0 var(--ink); }
.chead p { grid-area: sub; margin: 6px 0 0; font: 600 16px/1.3 'Barlow Condensed', sans-serif; color: rgba(255,246,229,.82); }
.chead .cstars { grid-area: stars; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--ink); color: var(--c2); font-weight: 800; font-size: 17px; white-space: nowrap; }
.chead .cstars .star { width: 18px; height: 18px; }
.chap.done .chead .cstars { background: var(--c2); color: var(--ink); }
.chap.lock { filter: saturate(.35); }
.chap.lock .chead p b { color: var(--c2); }
.chap .grid { max-width: none; }
@media (max-width: 560px) {
  .chap { padding: 12px 10px 14px; border-radius: 18px; }
  .chap .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .chap .card .pic { height: 92px; }
  .chap .card .nm { font-size: 16px; }
  .chap .card .cl { font-size: 12px; }
  .chap .card .meta { padding: 8px 10px 10px; }
  .chap .card .nr { font-size: 24px; }
  .chap .card .fee { font-size: 11px; padding: 0 7px; }
  .chap .card .star { width: 18px; height: 18px; }
  .chead h3 { font-size: 26px; }
  .chead p { font-size: 14px; }
}
/* four goal chips (plat, netjes, aliens, bombs) on one row */
.scard { width: 318px; }
.gchips { gap: 4px; flex-wrap: nowrap; }
.gchip { padding: 3px 7px 3px 4px; gap: 3px; font-size: 12px; }
.gchip svg { width: 14px; height: 14px; }
body.short .scard { width: 300px; }
body.short .gchip { font-size: 11px; padding: 2px 6px 2px 3px; }
body.portrait .gchips { flex-wrap: wrap; }

/* ---------- Granny's Dynamite: the crate and the plunger ---------- */
#bTip { display: none; }
.crate {
  display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 16px 0 10px; border-radius: 16px; color: #FFF6E5; cursor: grab;
  background: linear-gradient(#7A4A22, #5C3415); box-shadow: 0 5px 0 #3A1F0B, inset 0 2px 0 rgba(255, 255, 255, .18); touch-action: none;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.crate svg { width: 56px; height: 46px; flex: none; transition: transform .2s var(--ease); }
.crate span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.crate b { font: 400 22px Bangers, sans-serif; letter-spacing: .03em; }
.crate em { font-style: normal; font-weight: 600; font-size: 12px; opacity: .78; }
.crate:hover svg { transform: translateY(-3px) rotate(-3deg); }
.crate.grab { transform: translateY(3px) scale(.97); box-shadow: 0 2px 0 #3A1F0B; cursor: grabbing; }
.crate.grab svg { transform: translateY(-8px) rotate(-8deg); }

.plunger { position: relative; width: 92px; height: 78px; margin-left: 4px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.pl-box {
  position: absolute; left: 6px; right: 6px; bottom: 0; height: 40px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(#C8873F, #9C6128); box-shadow: 0 4px 0 #5E3812, inset 0 2px 0 rgba(255, 255, 255, .25); border: 2.5px solid #0E0B16;
}
.pl-box b { font-size: 21px; color: #FF4B3A; letter-spacing: .04em; text-shadow: 0 1.5px 0 #0E0B16; }
.pl-handle { position: absolute; left: 0; right: 0; top: -6px; height: 52px; will-change: transform; }
.pl-handle .bar { position: absolute; left: 4px; right: 4px; top: 0; height: 15px; border-radius: 8px; background: linear-gradient(#5A4E78, #3A3150); border: 2.5px solid #0E0B16; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .2); }
.pl-handle .rod { position: absolute; left: 50%; top: 12px; width: 10px; margin-left: -5px; height: 46px; background: #9C96B4; border: 2.5px solid #0E0B16; border-top: 0; }
.pl-hint { position: absolute; left: 0; right: 0; top: -26px; text-align: center; font-weight: 700; font-size: 12px; color: #FFF6E5; opacity: 0; transition: opacity .3s; pointer-events: none; }
.plunger.ready .pl-hint { opacity: .9; animation: hint 1.4s ease-in-out infinite; }
.plunger.ready .pl-handle .bar { background: linear-gradient(#FF6B5A, #E8323C); }
.plunger.ready .pl-box { animation: ready 1.5s ease-out infinite; }
.plunger.nope { animation: nope .35s; }
@keyframes hint { 50% { transform: translateY(4px); } }
@keyframes nope { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
body.portrait .crate { order: 3; flex: 1; min-width: 0; height: 60px; }
body.portrait .plunger { order: 4; }
