/* Pizza Boyz Arcade: brand styling (Bebas Neue + Lato, black / white / Pizza Boyz red). */
@font-face { font-family: 'Bebas Neue'; src: url('assets/fonts/bebas-neue.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('assets/fonts/lato-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('assets/fonts/lato-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Lato'; src: url('assets/fonts/lato-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }

:root {
  --black: #0d0b0b;
  --ink: #141111;
  --charcoal: #221e1e;
  --red: #e11f27;
  --red-d: #a8131a;
  --white: #ffffff;
  --concrete: #ebebe9;
  --line: #dcdcda;
  --muted: #6f6767;
  --gold: #ffc83d;
  --green: #2c9b55;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --display: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --concrete-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--black);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#app { position: fixed; inset: 0; overflow: hidden; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#ui { position: absolute; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
.noscript { color: #fff; padding: 24px; font-family: sans-serif; }
.ico { display: inline-flex; line-height: 0; }

/* ---------- Screens ---------- */
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: calc(var(--sat) + 14px) 16px calc(var(--sab) + 18px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  animation: screen-in 0.35s cubic-bezier(.2,1.2,.4,1) both;
}
#ui > .screen.passthrough { pointer-events: none; }
#ui > .screen.passthrough > * { pointer-events: auto; }
.screen.dim { background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.screen.solid { background: var(--concrete-tex), var(--concrete); padding-top: 0; }
.screen > .wrap { width: 100%; max-width: 460px; display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.spacer { flex: 1 1 auto; min-height: 8px; }
.screen::-webkit-scrollbar { display: none; }
@keyframes screen-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Brand header (like pizzaboyz.co.za) ---------- */
.logo-band { display: flex; justify-content: center; padding: 4px 0 0; }
.logo-band img { height: 46px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); }

.title { font-family: var(--display); font-weight: 400; color: #fff; text-align: center; line-height: .88; margin: 0; letter-spacing: 1px; text-shadow: 0 4px 18px rgba(0,0,0,.5); }
.title.lg { font-size: clamp(54px, 16vw, 72px); }
.title.md { font-size: 34px; letter-spacing: 1px; }

/* Game title lockup: DON'T CUT / [CORNERS] in a red slanted tag */
.lockup { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 4px; }
.lockup .l1 { font-family: var(--display); color: #fff; font-size: clamp(52px, 16vw, 80px); line-height: .85; letter-spacing: 2px; text-shadow: 0 5px 22px rgba(0,0,0,.6); }
.lockup .l2 { position: relative; display: inline-block; font-family: var(--display); color: #fff; font-size: clamp(58px, 18vw, 88px); line-height: .9; letter-spacing: 2px; padding: 2px 22px 0; }
.lockup .l2::before { content: ''; position: absolute; inset: 0; background: var(--red); transform: skewX(-12deg); box-shadow: 0 10px 28px rgba(0,0,0,.5); z-index: -1; }
.lockup .l2 { z-index: 0; }
.lockup .char { display: inline-block; animation: char-drop .7s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes char-drop { from { opacity: 0; transform: translateY(-60px) rotate(-12deg) scale(1.4); } to { opacity: 1; transform: none; } }
.lockup .l2.stamp::before { animation: stamp .55s .55s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stamp { from { transform: skewX(-12deg) scaleX(0); } to { transform: skewX(-12deg) scaleX(1); } }
.lockup .shine { position: absolute; inset: 0; overflow: hidden; pointer-events: none; transform: skewX(-12deg); }
.lockup .shine::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shine 3.6s 1.6s ease-in-out infinite; }
@keyframes shine { 0% { left: -60%; } 30%, 100% { left: 130%; } }

.hashtag { font-family: var(--body); font-weight: 900; color: #fff; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; opacity: .9; }
.hashtag b { color: var(--red); }
.subtitle { text-align: center; color: #fff; font-weight: 700; margin: -4px 0 0; letter-spacing: .3px; }

/* ---------- Buttons ---------- */
.btn {
  appearance: none;
  border: 0;
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: 1.5px;
  line-height: 1;
  padding: 13px 20px 11px;
  box-shadow: 0 5px 0 var(--red-d), 0 10px 22px rgba(0,0,0,.28);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s, filter .15s;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  touch-action: manipulation;
  position: relative;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--red-d), 0 4px 10px rgba(0,0,0,.25); }
.btn:disabled { filter: grayscale(.8) opacity(.6); pointer-events: none; }
.btn.big { font-size: 40px; min-height: 70px; padding: 16px 28px 12px; transform: skewX(-8deg); box-shadow: 0 7px 0 var(--red-d), 0 16px 34px rgba(225,31,39,.35); overflow: hidden; }
.btn.big > * , .btn.big .t { transform: skewX(8deg); display: inline-flex; align-items: center; gap: 10px; }
.btn.big:active { transform: skewX(-8deg) translateY(5px); box-shadow: 0 2px 0 var(--red-d); }
.btn.big::after { content: ''; position: absolute; top: 0; bottom: 0; width: 35%; left: -50%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: shine 3s 1.2s ease-in-out infinite; pointer-events: none; }
.btn.white { background: #fff; color: var(--black); box-shadow: 0 5px 0 #c9c9c7, 0 10px 22px rgba(0,0,0,.18); }
.btn.white:active { box-shadow: 0 1px 0 #c9c9c7; }
.btn.dark { background: var(--black); color: #fff; box-shadow: 0 5px 0 #000, 0 10px 22px rgba(0,0,0,.3); }
.btn.dark:active { box-shadow: 0 1px 0 #000; }
.btn.gold { background: var(--gold); color: var(--black); box-shadow: 0 5px 0 #c79415, 0 10px 22px rgba(0,0,0,.2); }
.btn.small { font-size: 21px; min-height: 44px; padding: 10px 14px 8px; box-shadow: 0 4px 0 var(--red-d); }
.btn.small.white { box-shadow: 0 4px 0 #c9c9c7; }
.btn.small.dark { box-shadow: 0 4px 0 #000; }
.btn.small:active { transform: translateY(3px); }
.btn.wide { width: 100%; }
.btn-row { display: flex; gap: 10px; width: 100%; }
.btn-row > * { flex: 1 1 0; }

.icon-btn {
  appearance: none;
  width: 56px; height: 56px;
  border-radius: 4px;
  border: 0;
  background: #fff;
  box-shadow: 0 5px 0 #b9b9b7, 0 10px 20px rgba(0,0,0,.35);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0;
  transition: transform .08s, box-shadow .08s;
  color: var(--black);
  touch-action: manipulation;
}
.icon-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #b9b9b7; }
.icon-row { display: flex; justify-content: center; gap: 14px; }
.icon-label { display: flex; flex-direction: column; align-items: center; gap: 7px; color: #fff; font-family: var(--display); font-size: 16px; letter-spacing: 1px; }

/* ---------- Pop-in choreography for the menu ---------- */
.pop { animation: pop-up .6s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes pop-up { from { opacity: 0; transform: translateY(26px) scale(.85); } to { opacity: 1; transform: none; } }
.fade { animation: fade-in .8s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Cards ---------- */
.card { background: #fff; border-radius: 4px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 16px; border-top: 5px solid var(--red); }
.card h2, .card h3 { font-family: var(--display); font-weight: 400; margin: 0 0 6px; letter-spacing: 1px; line-height: 1; }
.card h2 { font-size: 34px; }
.card h3 { font-size: 26px; }
.card p { margin: 6px 0; line-height: 1.4; font-weight: 700; }
.muted { color: var(--muted); font-weight: 700; }

/* Campaign: a red slanted deal banner */
.deal { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 16px 8px; color: #fff; z-index: 0; }
.deal::before { content: ''; position: absolute; inset: 0; background: var(--red); transform: skewX(-8deg); box-shadow: 0 10px 26px rgba(0,0,0,.45); z-index: -1; }
.deal .ico { animation: bob 2s ease-in-out infinite; }
.deal p { margin: 0; font-family: var(--display); font-size: 21px; letter-spacing: 1px; line-height: 1; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-4px) rotate(6deg); } }

.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--black); color: #fff; padding: 4px 10px 3px; font-family: var(--display); font-size: 17px; letter-spacing: 1px; transform: skewX(-8deg); }
.chip > * { transform: skewX(8deg); }
.chip.red { background: var(--red); }
.chip.green { background: var(--green); }
.chip.gold { background: var(--gold); color: var(--black); }

.player-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); color: #fff; padding: 7px 12px; border-radius: 3px; font-family: var(--body); font-weight: 900; font-size: 14px; border: 1px solid rgba(255,255,255,.18); cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.best-line { text-align: center; color: #fff; font-family: var(--display); font-size: 20px; letter-spacing: 1px; }
.best-line b { font-weight: 400; font-size: 30px; color: #fff; background: var(--black); padding: 0 10px; display: inline-block; transform: skewX(-8deg); margin-left: 6px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.footer-links a, .footer-links span { color: #fff; opacity: .85; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.footer-links a, .footer-links button { text-decoration: underline; text-underline-offset: 3px; }
.footer-links button { background: none; border: 0; padding: 0; color: #fff; font: inherit; font-weight: 900; cursor: pointer; display: inline-flex; gap: 5px; align-items: center; }

/* ---------- Top bar for sub screens (black, like the website header) ---------- */
.topbar { display: flex; align-items: center; gap: 12px; width: calc(100% + 32px); margin: 0 -16px 4px; padding: calc(var(--sat) + 10px) 16px 12px; background: var(--black); position: sticky; top: 0; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.topbar .title { flex: 1; text-align: left; font-size: 32px; }
.topbar .mini-logo { height: 22px; opacity: .9; }
.back-btn { width: 44px; height: 44px; background: var(--red); color: #fff; box-shadow: none; }
.back-btn:active { transform: translateY(2px); box-shadow: none; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-weight: 900; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.field input, .field select {
  font: inherit; font-size: 18px; font-weight: 700;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  outline: none;
  width: 100%;
  -webkit-user-select: text; user-select: text;
}
.field input:focus, .field select:focus { border-color: var(--black); }
.field .hint { font-size: 12px; color: var(--muted); font-weight: 700; }
.field.error input, .field.error select { border-color: var(--red); background: #fff4f4; }
.field .err { color: var(--red); font-size: 13px; font-weight: 900; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; margin: 10px 0; cursor: pointer; font-weight: 700; }
.check input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--red); margin: 1px 0 0; }
.check a { color: var(--red); }
.check.error { color: var(--red); }
.form-error { background: #fff0f0; border-left: 4px solid var(--red); color: var(--red-d); padding: 10px 12px; font-weight: 900; font-size: 14px; }

/* ---------- Results ---------- */
.score-label { text-align: center; font-family: var(--body); font-weight: 900; font-size: 12px; letter-spacing: 3px; color: var(--red); }
.score-big { font-family: var(--display); font-size: clamp(84px, 27vw, 124px); color: var(--black); text-align: center; line-height: .9; margin: 2px 0 6px; letter-spacing: 2px; }
.new-best { align-self: center; animation: wobble 1.2s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: skewX(-8deg) rotate(-3deg); } 50% { transform: skewX(-8deg) rotate(3deg) scale(1.06); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.stat { background: var(--concrete); padding: 8px 4px 6px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1; }
.stat span { font-size: 10px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; }
.verify { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-align: center; flex-wrap: wrap; font-size: 15px; }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(0,0,0,.12); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { height: 14px; background: var(--concrete); overflow: hidden; margin: 10px 0 6px; transform: skewX(-8deg); }
.progress > div { height: 100%; background: var(--red); transition: width 1.1s cubic-bezier(.2,1,.3,1); }

/* ---------- Voucher (white ticket with the red CRAFTED-style flag) ---------- */
.ticket {
  position: relative;
  background: #fff;
  padding: 18px 64px 16px 18px;
  text-align: left;
  box-shadow: 0 14px 34px rgba(0,0,0,.3);
  overflow: hidden;
}
.ticket::after { /* red flag on the right, like the logo's CRAFTED tab */
  content: '';
  position: absolute;
  top: 0; right: 14px;
  width: 34px; height: 100%;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 14px));
}
.ticket .flag-text { position: absolute; right: 14px; top: 50%; width: 34px; transform: translateY(-50%); writing-mode: vertical-rl; color: #fff; font-family: var(--display); font-size: 22px; letter-spacing: 3px; z-index: 1; display: flex; align-items: center; justify-content: center; }
.ticket.unlock { animation: ticket-in .7s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes ticket-in { from { transform: scale(.5) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ticket.locked::after { background: #c9c9c7; }
.ticket .tier { font-family: var(--display); font-size: 36px; line-height: .95; margin: 8px 0 4px; letter-spacing: 1px; }
.ticket .code {
  font-family: var(--display);
  font-size: clamp(34px, 11vw, 44px);
  letter-spacing: 3px;
  background: var(--black);
  color: #fff;
  padding: 10px 12px 6px;
  margin: 12px 0 10px;
  text-align: center;
  -webkit-user-select: all; user-select: all;
  word-break: break-all;
}
.ticket .meta { font-size: 13px; font-weight: 700; color: var(--muted); }
.ticket.redeemed, .ticket.expired { opacity: .6; filter: grayscale(1); }

/* ---------- Leaderboard ---------- */
.tabs { display: flex; gap: 6px; }
.tabs button { flex: 1; border: 0; background: #fff; color: var(--black); font-family: var(--display); font-size: 21px; letter-spacing: 1px; padding: 10px 6px 7px; cursor: pointer; box-shadow: 0 3px 0 #c9c9c7; }
.tabs button.on { background: var(--black); color: #fff; box-shadow: 0 3px 0 var(--red); }
.lb { display: flex; flex-direction: column; }
.lb-row { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.lb-row:nth-child(-n+3) .rank { color: var(--red); }
.lb-row.me { background: #fff1f1; box-shadow: inset 4px 0 0 var(--red); }
.lb-row .rank { font-family: var(--display); font-size: 28px; text-align: center; line-height: 1; }
.lb-row .who b { display: block; font-weight: 900; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row .who small { color: var(--muted); font-weight: 700; font-size: 12px; }
.lb-row .pts { font-family: var(--display); font-size: 28px; letter-spacing: 1px; }
.lb-empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: #fff; }
.bar-row { display: grid; gap: 4px; }
.bar-row .lbl { display: flex; justify-content: space-between; font-family: var(--display); font-size: 20px; letter-spacing: 1px; }
.bar-row .track { height: 16px; background: var(--concrete); transform: skewX(-8deg); overflow: hidden; }
.bar-row .fill { height: 100%; width: 0; background: var(--black); transition: width 1.1s cubic-bezier(.2,1,.3,1); }
.bar-row:first-child .fill, .bar-row.mine .fill { background: var(--red); }
.bar-row.mine .lbl span:first-child::after { content: '  ★ YOUR BRANCH'; color: var(--red); font-size: 15px; }
.note { font-size: 13px; color: var(--muted); text-align: center; font-weight: 700; }

/* ---------- Tutorial ---------- */
.tut { text-align: center; }
.tut .art { height: 150px; display: flex; align-items: center; justify-content: center; }
.tut .dots { display: flex; justify-content: center; gap: 8px; margin: 12px 0; }
.tut .dots i { width: 22px; height: 5px; background: var(--line); transform: skewX(-12deg); }
.tut .dots i.on { background: var(--red); }
.tut-pizza { width: 120px; height: 120px; border-radius: 10px; background: radial-gradient(circle at 30% 35%, #c0392b 0 9px, transparent 10px), radial-gradient(circle at 70% 30%, #c0392b 0 9px, transparent 10px), radial-gradient(circle at 55% 70%, #c0392b 0 9px, transparent 10px), radial-gradient(circle at 25% 75%, #2b2b2b 0 5px, transparent 6px), #ffcf4a; box-shadow: inset 0 0 0 10px #e3a040, 0 0 0 8px #0d0b0b, 0 12px 24px rgba(0,0,0,.35); position: relative; }
.tut-pizza .swipe { position: absolute; left: -24px; right: -24px; top: 50%; height: 6px; background: #fff; border-radius: 3px; box-shadow: 0 0 12px #fff; transform-origin: left; animation: swipe 1.6s ease-in-out infinite; }
@keyframes swipe { 0% { transform: scaleX(0); opacity: 1; } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.tut .order { display: inline-flex; align-items: center; gap: 10px; background: #fff; padding: 10px 16px; transform: rotate(-3deg); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.tut .order .num { background: var(--red); color: #fff; font-family: var(--display); font-size: 44px; padding: 2px 14px 0; transform: skewX(-8deg); line-height: 1.05; }
.tut .order .txt { text-align: left; font-family: var(--display); font-size: 28px; line-height: 1; }
.tut .order small { display: block; font-family: var(--body); font-weight: 900; font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.tut .grades { display: flex; flex-direction: column; gap: 8px; align-items: center; }

/* ---------- In-game overlay ---------- */
.hud-btn { position: absolute; top: calc(var(--sat) + 12px); left: 50%; transform: translateX(-50%); width: 42px; height: 42px; opacity: .95; }
.hud-btn:active { transform: translateX(-50%) translateY(3px); }
.practice-badge { position: absolute; bottom: calc(var(--sab) + 12px); left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.75); color: #fff; padding: 6px 14px; font-size: 13px; font-weight: 900; white-space: nowrap; pointer-events: none; display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Toast ---------- */
#toast {
  position: absolute;
  left: 50%;
  bottom: calc(var(--sab) + 24px);
  transform: translate(-50%, 30px);
  opacity: 0;
  visibility: hidden;
  background: var(--black);
  color: #fff;
  padding: 12px 18px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0,0,0,.4), inset 4px 0 0 var(--red);
  transition: transform .35s cubic-bezier(.2,1.4,.4,1), opacity .25s, visibility .25s;
  z-index: 50;
  max-width: calc(100% - 32px);
  text-align: center;
  pointer-events: auto;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
#toast button { margin-left: 10px; background: var(--red); color: #fff; border: 0; font-family: var(--display); font-size: 18px; letter-spacing: 1px; padding: 5px 12px 3px; cursor: pointer; }

/* ---------- Misc ---------- */
.install-hint { font-size: 13px; text-align: center; color: #fff; background: rgba(0,0,0,.5); padding: 8px 12px; font-weight: 700; display: flex; gap: 8px; align-items: center; justify-content: center; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.hidden { display: none !important; }
@media (max-height: 700px) {
  .screen { gap: 10px; }
  .lockup .l1 { font-size: 48px; }
  .lockup .l2 { font-size: 52px; }
  .btn.big { min-height: 60px; font-size: 34px; }
  .icon-btn { width: 50px; height: 50px; }
  .deal p { font-size: 18px; }
  .logo-band img { height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .screen, .ticket.unlock, .new-best, .lockup .char, .pop, .btn.big::after, .lockup .shine::after { animation: none !important; }
}

/* ---------- Dark cards on overlay screens (results, pause, tutorial): black with white + red, like pizzaboyz.co.za ---------- */
.screen.dim .card { background: var(--black); color: #fff; border-top-color: var(--red); box-shadow: 0 16px 40px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06); }
.screen.dim .card h2, .screen.dim .card h3 { color: #fff; }
.screen.dim .muted, .screen.dim .card .muted { color: #b3abab; }
.screen.dim .score-big { color: #fff; text-shadow: 0 6px 24px rgba(225,31,39,.35); }
.screen.dim .stat { background: #1d1919; border-bottom: 3px solid var(--red); }
.screen.dim .stat b { color: #fff; }
.screen.dim .stat span { color: #a9a1a1; }
.screen.dim .verify { color: #fff; }
.screen.dim .ticket { background: var(--black); color: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08); }
.screen.dim .ticket .meta { color: #b3abab; }
.screen.dim .ticket.locked::after { background: #3a3434; }
.screen.dim .ticket .tier { color: #fff; }
.screen.dim .ticket .ico svg { stroke: #fff; }
.screen.dim .progress { background: #2a2525; }
.screen.dim .tut .dots i { background: #3a3434; }
.screen.dim .tut .dots i.on { background: var(--red); }
.screen.dim .btn.white { background: #fff; }
.screen.dim .spinner { border-color: rgba(255,255,255,.15); border-top-color: var(--red); }
