/* =====================================================================
   SCRAPFALL — UI styles
   Art direction: salvage-yard print. Ink-black steel, safety yellow,
   hot pink, hazard tape. Hard offset shadows instead of soft glows,
   slanted sticker labels, chunky Bungee display type over condensed
   Barlow for everything readable.
   ===================================================================== */
:root {
  --ink: #0b0a10;
  --ink-2: #14121b;
  --steel: #1e1b28;
  --steel-2: #282433;
  --line: #3a3548;
  --paper: #f4efe3;
  --dim: #9d96ae;
  --yellow: #ffd23f;
  --pink: #ff3d8b;
  --cyan: #3ef0ff;
  --lime: #a6ff4d;
  --orange: #ff7a1a;
  --red: #ff4f6a;
  --pos: #8dffb4;
  --neg: #ff6f8a;
  --r0: #cfd3dc;
  --r1: #4fb0ff;
  --r2: #b57cff;
  --r3: #ff9d3d;
  --display: "Bungee", "Impact", system-ui, sans-serif;
  --body: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --hazard: repeating-linear-gradient(-45deg, var(--yellow) 0 12px, var(--ink) 12px 24px);
  --halftone: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.6px);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; height: 100%; overflow: hidden;
  background: var(--ink); color: var(--paper);
  font-family: var(--body); font-size: 17px;
  -webkit-tap-highlight-color: transparent;
  user-select: none; -webkit-user-select: none;
}
canvas#game { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
button { font-family: var(--body); }

/* ---------- pause button ---------- */
.icon-btn {
  position: fixed; top: 16px; right: 16px; z-index: 5;
  width: 44px; height: 44px;
  border: 2px solid var(--ink); background: var(--yellow);
  box-shadow: 4px 4px 0 var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, transform .1s, box-shadow .1s;
}
.icon-btn.show { opacity: 1; pointer-events: auto; }
.icon-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.icon-btn span { width: 5px; height: 16px; background: var(--ink); }

/* ---------- screens ---------- */
#screens { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
.screen {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 28px 18px;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  background: var(--halftone) 0 0 / 7px 7px, rgba(11, 10, 16, 0.86);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.screen.show { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .22s ease; }
.scr-shop, .scr-stats, .scr-pause, .scr-over, .scr-chars { align-items: flex-start; }
.screen > * { margin: auto; }

.anim .panel, .anim .shop { animation: panelIn .38s cubic-bezier(.2, .9, .3, 1.2) both; }
.anim .card, .anim .rec, .anim .wslot { animation: cardIn .45s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i, 0) * 60ms + 100ms); }
@keyframes panelIn { from { opacity: 0; transform: translate(-14px, 10px) rotate(-.6deg); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px) rotate(3deg) scale(.92); } }

/* ---------- panels ---------- */
.panel {
  position: relative;
  width: min(900px, 100%);
  background: var(--halftone) 0 0 / 7px 7px, var(--ink-2);
  border: 2px solid var(--ink);
  outline: 1px solid var(--line); outline-offset: -6px;
  box-shadow: 10px 10px 0 var(--pink);
  padding: 38px clamp(18px, 4vw, 40px) 30px;
}
.panel::before { /* hazard tape header */
  content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 12px;
  background: var(--hazard); border-bottom: 2px solid var(--ink);
}
.panel.wide { width: min(1080px, 100%); }
.panel.narrow { width: min(470px, 100%); }
.panel.center { text-align: center; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h2 { font-family: var(--display); font-size: clamp(28px, 5vw, 42px); line-height: 1.05; margin: 4px 0 8px; text-shadow: 3px 3px 0 var(--pink); letter-spacing: .01em; }
h3 { font-family: var(--display); font-size: 14px; color: var(--yellow); margin: 26px 0 10px; letter-spacing: .06em; }
p { line-height: 1.4; }
.eyebrow { /* slanted sticker label */
  display: inline-block; font-family: var(--display); font-size: 12px; letter-spacing: .08em;
  color: var(--ink); background: var(--yellow); padding: 4px 12px 3px;
  transform: skewX(-12deg); box-shadow: 3px 3px 0 var(--ink); margin-bottom: 6px;
}
.eyebrow.glow-cyan { background: var(--cyan); }
.eyebrow.glow-gold { background: var(--yellow); }
.eyebrow.hot { background: var(--pink); color: var(--paper); }
.sub { color: var(--dim); margin: 2px 0 20px; font-size: 18px; font-weight: 600; }
.dim { color: var(--dim); font-weight: 500; }
.small { font-size: 15px; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
kbd { font-family: var(--body); font-weight: 700; font-size: .9em; padding: 0 6px; border: 2px solid var(--line); border-bottom-width: 3px; background: var(--steel); color: var(--paper); }

.burst { font-size: clamp(46px, 9vw, 78px); color: var(--cyan); text-shadow: 4px 4px 0 var(--pink), 8px 8px 0 var(--ink); }
.burst.gold { color: var(--yellow); text-shadow: 4px 4px 0 var(--orange), 8px 8px 0 var(--ink); }
.anim .burst { animation: slam .5s cubic-bezier(.2, .9, .3, 1.5) both; }
@keyframes slam { from { transform: scale(2.2) rotate(-6deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--body); font-size: 18px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--paper); background: var(--steel-2);
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  padding: 9px 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .08s, box-shadow .08s, background .12s;
}
.btn:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: #332e40; }
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible, .card:focus-visible, .chip:focus-visible, .mi:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: 2px 2px 0 var(--ink); }
.btn.primary { background: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--pink); }
.btn.primary:hover:not(:disabled) { background: #ffe066; box-shadow: 6px 6px 0 var(--pink); }
.btn.danger { background: transparent; color: var(--neg); border-color: var(--neg); box-shadow: 4px 4px 0 #4a1424; }
.btn.accent { background: var(--pink); color: var(--paper); }
.btn.big { font-size: 22px; padding: 12px 26px; }
.btn.tiny { font-size: 14px; padding: 3px 9px; box-shadow: 2px 2px 0 var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 28px; }

.scrap-ico { display: inline-block; width: 11px; height: 11px; background: var(--lime); transform: rotate(45deg) scaleY(.8); box-shadow: 2px 2px 0 var(--ink); margin: 0 4px; flex: none; }

/* =====================================================================
   MAIN MENU — a left-hand command column over the live attract demo.
   ===================================================================== */
.scr-menu {
  padding: 0; align-items: stretch; justify-content: flex-start;
  background:
    linear-gradient(90deg, rgba(11, 10, 16, .96) 0%, rgba(11, 10, 16, .88) 34%, rgba(11, 10, 16, .25) 62%, rgba(11, 10, 16, 0) 80%),
    var(--halftone) 0 0 / 7px 7px;
}
.menu { position: relative; width: 100%; min-height: 100%; margin: 0; display: flex; }
.menu-col {
  position: relative; z-index: 1;
  width: min(560px, 100%); padding: clamp(28px, 6vh, 64px) clamp(22px, 5vw, 64px) 90px;
  display: flex; flex-direction: column;
}
.menu-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: clamp(18px, 4vh, 40px); }
.menu-meta span { font-family: var(--display); font-size: 11px; letter-spacing: .1em; color: var(--dim); border: 2px solid var(--line); padding: 3px 8px; }
.menu-meta span:first-child { color: var(--ink); background: var(--yellow); border-color: var(--yellow); }

.logo { font-family: var(--display); line-height: .86; margin: 0 0 18px; user-select: none; }
.logo-a {
  display: block; font-size: clamp(64px, 11vw, 124px); color: var(--paper);
  text-shadow: -3px -2px 0 var(--cyan), 5px 5px 0 var(--pink), 10px 10px 0 var(--ink);
}
.logo-b {
  display: inline-block; position: relative; margin-top: 10px; margin-left: clamp(26px, 5vw, 64px);
  font-size: clamp(56px, 9.5vw, 108px); color: var(--ink);
  background: var(--yellow); padding: 6px 18px 0 14px;
  transform: rotate(-3deg); box-shadow: 8px 8px 0 var(--pink);
}
.logo-b::after { /* strip of hazard tape trailing off the slab */
  content: ""; position: absolute; right: -58px; top: 18%; width: 48px; height: 64%;
  background: var(--hazard); border: 2px solid var(--ink);
}
.tagline { font-size: clamp(18px, 2.2vw, 22px); font-weight: 600; color: #d8d1e6; margin: 22px 0 clamp(20px, 4vh, 38px); max-width: 30ch; }
.tagline em { font-style: italic; color: var(--lime); }

.menu-list { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.mi {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 44px auto; grid-template-rows: auto auto; align-items: baseline; column-gap: 10px;
  background: none; border: 0; padding: 6px 30px 8px 10px; cursor: pointer; color: var(--paper); text-align: left;
  transition: transform .12s cubic-bezier(.2, .9, .3, 1.4), color .1s;
}
.mi::before { /* slanted highlight bar that wipes in on hover */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--yellow); transform: skewX(-14deg) scaleX(0); transform-origin: left;
  box-shadow: 5px 5px 0 var(--pink); transition: transform .16s cubic-bezier(.2, .9, .3, 1.1);
}
.mi:hover, .mi:focus-visible { transform: translateX(10px); color: var(--ink); outline: none; }
.mi:hover::before, .mi:focus-visible::before { transform: skewX(-14deg) scaleX(1); }
.mi-n { grid-row: 1 / 3; font-family: var(--display); font-size: 14px; color: var(--pink); align-self: center; }
.mi:hover .mi-n, .mi:focus-visible .mi-n { color: var(--ink); }
.mi-t { font-family: var(--display); font-size: clamp(30px, 4.2vw, 40px); line-height: 1; }
.mi-s { font-size: 15px; font-weight: 600; color: var(--dim); letter-spacing: .03em; }
.mi:hover .mi-s, .mi:focus-visible .mi-s { color: #3b3222; }
.mi.mi-main .mi-t { font-size: clamp(40px, 6vw, 58px); color: var(--yellow); text-shadow: 3px 3px 0 var(--pink); }
.mi.mi-main:hover .mi-t, .mi.mi-main:focus-visible .mi-t { color: var(--ink); text-shadow: none; }
.anim .mi { animation: miIn .45s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i) * 70ms + 220ms); }
@keyframes miIn { from { opacity: 0; transform: translateX(-40px); } }
.anim .logo-a { animation: logoA .55s cubic-bezier(.2, .9, .3, 1.3) both; }
.anim .logo-b { animation: logoB .6s cubic-bezier(.2, .9, .3, 1.6) .15s both; }
@keyframes logoA { from { opacity: 0; transform: translateY(-30px); } }
@keyframes logoB { from { opacity: 0; transform: rotate(-14deg) scale(1.6); } to { transform: rotate(-3deg); } }

.controls { margin-top: auto; padding-top: 28px; font-size: 15px; font-weight: 600; color: var(--dim); }

/* record stickers slapped onto the right side of the screen */
.stickers { position: absolute; right: clamp(24px, 5vw, 70px); bottom: 96px; display: flex; gap: 22px; align-items: flex-end; z-index: 1; }
.sticker {
  position: relative; min-width: 128px; padding: 14px 16px 10px;
  background: var(--c); color: var(--ink); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(var(--r));
}
.sticker::before { /* strip of tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 56px; height: 20px; margin-left: -28px;
  background: rgba(244, 239, 227, .55); transform: rotate(calc(var(--r) * -2));
}
.sticker b { display: block; font-family: var(--display); font-size: 34px; line-height: 1; }
.sticker span { font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.anim .sticker { animation: stick .45s cubic-bezier(.2, .9, .3, 1.5) both; animation-delay: calc(var(--i) * 110ms + 500ms); }
@keyframes stick { from { opacity: 0; transform: rotate(calc(var(--r) * 4)) scale(1.4); } }

/* scrolling tip ticker */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 44px; overflow: hidden;
  background: var(--ink); border-top: 3px solid var(--yellow);
  display: flex; align-items: center;
}
.ticker::before { content: "INTEL"; position: relative; z-index: 1; height: 100%; display: flex; align-items: center; padding: 0 16px 0 14px; font-family: var(--display); font-size: 14px; color: var(--ink); background: var(--yellow); flex: none; box-shadow: 6px 0 0 var(--pink); }
.ticker-track { display: flex; white-space: nowrap; animation: tick 60s linear infinite; padding-left: 18px; }
.ticker-track span { font-weight: 700; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: #cfc8dd; padding-right: 40px; }
.ticker-track span::before { content: "◆"; color: var(--pink); margin-right: 14px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; }
.choice-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.choice-grid.three { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.chars-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); margin-top: 18px; }
.card {
  --rc: var(--r0);
  position: relative; text-align: left;
  font-family: var(--body); font-size: 16px; color: var(--paper);
  background: var(--steel);
  border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 12px 14px 12px;
  display: flex; flex-direction: column; gap: 5px;
  transition: transform .1s, box-shadow .1s;
}
button.card { cursor: pointer; }
.choice-grid .card:nth-child(odd), .chars-grid .card:nth-child(odd) { transform: rotate(-.8deg); }
.choice-grid .card:nth-child(even), .chars-grid .card:nth-child(even) { transform: rotate(.7deg); }
button.card:hover:not(:disabled), .offers .card:not(.sold):hover { transform: translate(-3px, -4px) rotate(0); box-shadow: 9px 9px 0 var(--rc); }
button.card:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.card.r0, .card.t0 { --rc: var(--r0); }
.card.r1, .card.t1 { --rc: var(--r1); }
.card.r2, .card.t2 { --rc: var(--r2); }
.card.r3, .card.t3 { --rc: var(--r3); }
.card-top { /* rarity band */
  display: flex; justify-content: space-between; align-items: center;
  margin: -12px -14px 6px; padding: 5px 12px 4px;
  background: var(--rc); color: var(--ink);
  font-family: var(--display); font-size: 11px; letter-spacing: .06em;
  border-bottom: 2px solid var(--ink);
}
.rar, .badge, .badge.weapon { color: var(--ink); }
.card.r3 .card-top, .card.t3 .card-top { background: repeating-linear-gradient(-45deg, var(--r3) 0 10px, #ffb866 10px 20px); }
.card-name { font-family: var(--display); font-size: 17px; line-height: 1.1; color: var(--paper); }
.card-stats { list-style: none; margin: 2px 0 0; padding: 0; font-size: 16px; font-weight: 600; display: grid; gap: 1px; }
.card-stats b { color: var(--yellow); }
.card-stats .dps { color: var(--dim); font-size: 14px; margin-top: 3px; }
.card-text { font-size: 15px; color: var(--dim); margin: 0; font-weight: 500; }
.card-text.special { color: var(--yellow); font-weight: 600; }
.card-cur { font-size: 15px; color: var(--dim); font-weight: 600; }
.card-cur b { color: var(--paper); }
.big-stat { font-family: var(--display); font-size: 21px; margin: 4px 0 2px; }
.owned { font-size: 14px; font-weight: 700; color: var(--dim); }
.owned.merge { color: var(--yellow); }
.key { position: absolute; top: -12px; right: -10px; width: 26px; height: 26px; background: var(--ink); color: var(--yellow); border: 2px solid var(--yellow); font-family: var(--display); font-size: 12px; display: grid; place-items: center; transform: rotate(8deg); z-index: 1; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tag { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 0 7px; color: var(--ink); background: var(--c); transform: skewX(-10deg); }
.card-foot { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; }
.card-foot .buy { flex: 1; }
.card-foot .lock { font-size: 14px; padding: 8px 10px; }
.card-foot .lock.on { background: var(--pink); color: var(--paper); }
.card.locked-offer { box-shadow: 5px 5px 0 var(--pink); }
.card.locked-offer::after { content: "LOCKED"; position: absolute; top: -12px; right: 10px; z-index: 1; font-family: var(--display); font-size: 11px; color: var(--paper); background: var(--pink); padding: 2px 8px; transform: rotate(6deg); border: 2px solid var(--ink); }
.card.sold { min-height: 200px; justify-content: center; align-items: center; background: repeating-linear-gradient(-45deg, var(--ink-2) 0 14px, var(--steel) 14px 28px); box-shadow: none; }
.sold-mark { font-family: var(--display); font-size: 26px; color: var(--red); border: 4px solid var(--red); padding: 4px 14px; transform: rotate(-10deg); background: var(--ink); }
.card.bought { animation: bought .3s ease-out; }
@keyframes bought { 0% { transform: scale(1.08) rotate(-2deg); } 100% { transform: none; } }

.card.char { --rc: var(--c); }
.card.char .card-name { color: var(--c) !important; font-size: 22px; text-shadow: 2px 2px 0 var(--ink); }
.char-dot { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--c); background: #0d3440; box-shadow: 3px 3px 0 var(--ink); position: relative; }
.char-dot::after { content: ""; position: absolute; right: 4px; top: 7px; width: 9px; height: 14px; border-radius: 50%; background: var(--paper); }
.char-weapon { font-size: 15px; color: var(--dim); font-weight: 600; }
.char-weapon b { color: var(--paper); }
.card.locked { cursor: not-allowed; }
.card.locked > :not(.lock-note) { filter: grayscale(1) brightness(.6); }
.lock-note { font-family: var(--display); font-size: 11px; color: var(--ink); background: var(--yellow); padding: 3px 7px; margin-top: 6px; align-self: flex-start; transform: skewX(-10deg); filter: none; }

/* ---------- shop ---------- */
.shop {
  position: relative; width: min(1200px, 100%);
  background: var(--halftone) 0 0 / 7px 7px, var(--ink-2);
  border: 2px solid var(--ink); box-shadow: 10px 10px 0 var(--pink);
  padding: 30px clamp(14px, 3vw, 30px) 26px;
}
.shop::before { content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 12px; background: var(--hazard); border-bottom: 2px solid var(--ink); }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.shop-head h2 { margin: 2px 0 0; }
.scrap-big {
  font-family: var(--display); font-size: 30px; color: var(--ink); background: var(--lime);
  display: flex; align-items: center; gap: 4px; padding: 4px 16px 2px 12px;
  border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transform: rotate(2deg);
}
.scrap-big .scrap-ico { width: 15px; height: 15px; background: var(--ink); box-shadow: none; }
.shop-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
.offers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shop-actions { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.hint { font-size: 15px; font-weight: 600; color: var(--dim); }
.wslots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wslot { --rc: var(--r0); background: var(--steel); border: 2px solid var(--ink); border-left: 6px solid var(--rc); box-shadow: 4px 4px 0 var(--ink); padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; min-height: 86px; text-align: left; }
.wslot.t1 { --rc: var(--r1); } .wslot.t2 { --rc: var(--r2); } .wslot.t3 { --rc: var(--r3); }
.wslot.empty { background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 255, 255, .025) 10px 20px); border: 2px dashed var(--line); box-shadow: none; color: #5d5670; justify-content: center; align-items: center; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
.wname { font-family: var(--display); font-size: 14px; }
.tier { color: var(--ink); background: var(--rc); font-size: 11px; padding: 0 5px; margin-left: 4px; }
.wmeta { font-size: 14px; font-weight: 600; color: var(--dim); }
.wbtns { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; justify-content: flex-start; }
.chip { --rc: var(--r0); font-family: var(--body); font-size: 15px; font-weight: 700; color: var(--paper); background: var(--steel); border: 2px solid var(--ink); border-left: 5px solid var(--rc); box-shadow: 3px 3px 0 var(--ink); padding: 3px 10px; }
button.chip { cursor: pointer; transition: transform .08s; }
button.chip:hover { transform: translate(-1px, -2px); box-shadow: 4px 5px 0 var(--rc); }
.chip.r1, .chip.t1 { --rc: var(--r1); } .chip.r2, .chip.t2 { --rc: var(--r2); } .chip.r3, .chip.t3 { --rc: var(--r3); }
.chip b { color: var(--rc); }
.chip.confirm { background: var(--red); color: var(--ink); }
.shop-side { text-align: left; display: flex; flex-direction: column; }
.shop-side h3:first-child { margin-top: 0; }
.shop-side .next { margin-top: 22px; width: 100%; position: sticky; bottom: 0; }
.stats { display: grid; gap: 2px; font-size: 16px; font-weight: 600; background: var(--ink); border: 2px solid var(--ink); padding: 4px; }
.stat-row { display: flex; justify-content: space-between; padding: 2px 8px; }
.stat-row:nth-child(odd) { background: var(--steel); }
.stat-row span:first-child { color: var(--dim); }
.stat-row.zero span:last-child { color: #5d5670; }
.sets { display: grid; gap: 8px; }
.set { background: var(--steel); border: 2px solid var(--ink); border-left: 6px solid var(--c); padding: 5px 10px; font-size: 15px; font-weight: 600; opacity: .6; }
.set.on { opacity: 1; box-shadow: 4px 4px 0 var(--c); }
.set b { color: var(--c); font-family: var(--display); font-size: 13px; font-weight: 400; }

/* ---------- pause / records / results ---------- */
.pause-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; text-align: left; }
.title {
  display: table; font-family: var(--display); font-size: clamp(42px, 9vw, 80px); line-height: 1;
  margin: 14px auto 22px; padding: 8px 22px 2px; border: 6px solid currentColor; transform: rotate(-3deg);
}
.title.win { color: var(--yellow); box-shadow: 8px 8px 0 var(--pink); background: var(--ink); }
.title.lose { color: var(--red); box-shadow: 8px 8px 0 #4a1424; background: var(--ink); }
.anim .title { animation: stamp .45s cubic-bezier(.3, 1.4, .4, 1) .1s both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(2.4); } 70% { opacity: 1; } to { transform: rotate(-3deg); } }
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.best-badge {
  font-family: var(--display); font-size: 14px; color: var(--ink); background: var(--yellow);
  padding: 6px 14px 4px; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--pink);
  transform: rotate(-2deg);
  animation: badgePop .5s cubic-bezier(.2, .9, .3, 1.7) both, wiggle 2s ease-in-out infinite 1.2s;
  animation-delay: calc(var(--i) * 140ms + 450ms), calc(var(--i) * 140ms + 1.2s);
}
.best-badge:nth-child(even) { background: var(--cyan); transform: rotate(2deg); }
@keyframes badgePop { from { transform: scale(0) rotate(-20deg); opacity: 0; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 50% { rotate: 3deg; } }
.unlock { border: 2px solid var(--ink); color: var(--ink); background: var(--c); box-shadow: 5px 5px 0 var(--ink); padding: 10px 14px; margin: 12px auto; font-size: 18px; font-weight: 700; max-width: 560px; }
.unlock b { font-family: var(--display); font-weight: 400; }
.recs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0 6px; }
.rec { background: var(--steel); border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); padding: 12px 12px 10px; text-align: left; }
.rec:nth-child(3n+1) { border-top: 5px solid var(--yellow); }
.rec:nth-child(3n+2) { border-top: 5px solid var(--pink); }
.rec:nth-child(3n) { border-top: 5px solid var(--cyan); }
.rec-val { font-family: var(--display); font-size: 28px; line-height: 1.1; }
.rec-label { font-size: 13px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
table.runs { width: 100%; border-collapse: collapse; font-size: 16px; font-weight: 600; background: var(--ink); }
.runs th { text-align: left; font-family: var(--display); font-weight: 400; font-size: 11px; letter-spacing: .06em; color: var(--ink); background: var(--yellow); padding: 7px 10px 5px; }
.runs td { text-align: left; padding: 6px 10px; white-space: nowrap; }
.runs tr:nth-child(even) td { background: var(--steel); }

/* ---------- settings ---------- */
.settings { display: grid; gap: 18px; text-align: left; margin-top: 20px; }
.settings label { display: grid; gap: 6px; font-size: 18px; font-weight: 700; }
.settings label.range { grid-template-columns: 1fr auto; }
.settings label.range input { grid-column: 1 / -1; }
.settings output { font-family: var(--display); font-size: 14px; color: var(--yellow); }
.settings label.check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--yellow); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--yellow); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .shop-body, .pause-body { grid-template-columns: 1fr; }
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-side .next { position: sticky; bottom: 8px; }
  .scr-menu { background: rgba(11, 10, 16, .78); }
  .stickers { position: static; margin: 30px 0 0; padding: 0 22px 90px; flex-wrap: wrap; }
  .menu { flex-direction: column; }
  .menu-col { padding-bottom: 0; }
}
@media (max-width: 560px) {
  .screen { padding: 14px 10px; }
  .panel { padding: 30px 14px 22px; box-shadow: 6px 6px 0 var(--pink); }
  .offers, .wslots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .offers .card { padding: 10px 10px 9px; }
  .offers .card-top { margin: -10px -10px 5px; }
  .offers .card-text:not(.special) { display: none; }
  .offers .card-stats { font-size: 14px; }
  .offers .card-foot { flex-direction: column; }
  .choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .choice-grid.three { grid-template-columns: minmax(0, 1fr); }
  .shop-head { flex-wrap: wrap; }
  .card-name { font-size: 15px; }
  .runs td:first-child, .runs th:first-child { display: none; }
  .logo-b::after { display: none; }
  .sticker { min-width: 0; flex: 1; padding: 12px 10px 8px; }
  .sticker b { font-size: 24px; }
  .stickers { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .anim *, .best-badge, .ticker-track { animation: none !important; }
}
