/* Design brief
   Purpose: first screen of a heist puzzle Mini App.
   Tone: the viewport IS a pulp comic poster; UI is stamped onto it.
   Play HUD stays clean. Menu and finish are full-bleed sheets, not a banner over buttons.
*/

:root {
  --ink: #1a1a1a;
  --paper: #fff8ef;
  --paper-2: #ffe8d2;
  --paper-3: #ffd4a8;
  --accent: #ff5a3d;
  --accent-soft: #ff8f75;
  --teal: #1fb6a6;
  --gold: #ffc857;
  --sky-top: #7ec8ff;
  --sky-mid: #b8e4ff;
  --sky-bot: #fff3e4;
  --muted: #5c534a;
  --font-display: "Anybody", Impact, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --hard: 4px 4px 0 #1a1a1a;
  --hard-sm: 3px 3px 0 #1a1a1a;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-mono);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: manipulation;
}

body {
  min-height: 100dvh;
  background: var(--sky-bot);
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, #ffffff 0%, transparent 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 38%, var(--sky-bot) 78%, #fff8ef 100%);
  pointer-events: none;
}

.halftone {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.045;
  background-image: radial-gradient(#1a1a1a 16%, transparent 17%);
  background-size: 11px 11px;
  mix-blend-mode: multiply;
}

.grain {
  position: fixed;
  inset: -30%;
  width: 160%;
  height: 160%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app-shell {
  position: relative;
  z-index: 5;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.view { display: none; flex: 1; flex-direction: column; }
.view.is-active {
  display: flex;
  animation: slam 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

@keyframes slam {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.view-menu.is-active .stagger-1 { animation: pop 0.4s 0.05s both; }
.view-menu.is-active .stagger-2 { animation: pop 0.45s 0.12s both; }
.view-menu.is-active .stagger-3 { animation: pop 0.45s 0.2s both; }
.view-menu.is-active .stagger-4 { animation: pop 0.5s 0.28s both; }

@keyframes pop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: none; }
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(20, 20, 20, 0.65);
}

.center { text-align: center; }

.sticker-tag {
  display: inline-block;
  align-self: flex-start;
  margin: 0;
  padding: 6px 10px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: var(--hard-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  transform: rotate(-2deg);
}

.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.2rem, 16vw, 4.6rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 0.25rem 0 0.4rem;
  color: var(--ink);
  text-shadow: 4px 4px 0 #fff, 7px 7px 0 var(--accent);
  transform: rotate(-1deg);
}

.brand-sm {
  font-size: clamp(2.4rem, 12vw, 3.2rem);
  color: var(--ink);
  text-shadow: 3px 3px 0 #fff;
}

.tagline {
  margin: 0 0 0.6rem;
  max-width: 32ch;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.view-boot,
.view-game,
.view-leaderboard {
  padding: max(14px, env(safe-area-inset-top)) 14px max(20px, env(safe-area-inset-bottom));
}

.sheet {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
  background: #f3ead6;
}
.sheet-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}
.sheet-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(243, 234, 214, 0.35) 22%,
    #f3ead6 78%
  );
}
.sheet-copy {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}
.sheet-mark {
  align-self: flex-start;
  margin: 0;
  padding: 5px 9px;
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: var(--hard-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  transform: rotate(-3deg);
}
.finish-mark { background: var(--teal); color: #fff; }
.sheet-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.4rem, 18vw, 5rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  margin: 1.2rem 0 0.45rem;
  color: var(--ink);
  text-shadow: 4px 4px 0 #fff8ef, 8px 8px 0 var(--accent);
  transform: rotate(-1.5deg);
}
.sheet-title-sm {
  font-size: clamp(2.6rem, 13vw, 3.6rem);
  margin-top: 0.7rem;
}
.sheet-caption {
  align-self: flex-start;
  max-width: 22ch;
  margin: 0;
  padding: 8px 11px;
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: var(--hard-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 700;
  transform: rotate(-2deg);
}
.sheet-player {
  margin: auto 0 12px;
  text-align: left;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 6px 8px;
  width: fit-content;
  font-size: 0.68rem;
  transform: rotate(1deg);
}
.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-play {
  font-size: 1.35rem;
  padding: 17px 18px;
  transform: rotate(-1.2deg);
  border-width: 4px;
}
.btn-play:active:not(:disabled) {
  transform: translate(3px, 4px) rotate(-1.2deg) scale(0.96);
}

.view-menu .btn-link {
  color: rgba(26, 26, 26, 0.55);
}

body.is-poster .sky {
  background: #f3ead6;
}
body.is-poster .halftone { opacity: 0.06; }
body.is-poster .grain { opacity: 0.07; }

.menu-poster,
.hero-sticker,
.hero-blob,
.hero-dial,
.hd { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.panel {
  background: var(--paper);
  border: 3px solid #141414;
  box-shadow: var(--hard);
  padding: 16px;
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.btn-link {
  display: block;
  margin: 14px auto 0;
  padding: 0;
  border: none;
  background: none;
  color: rgba(20, 20, 20, 0.55);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: underline;
  cursor: pointer;
  box-shadow: none;
}
.btn-link:active { color: var(--ink); }

button {
  font-family: var(--font-display);
  border: none;
  cursor: pointer;
}

.btn {
  padding: 16px 18px;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 3px solid #141414;
  box-shadow: var(--hard);
  transition: transform 0.22s cubic-bezier(0.34, 1.7, 0.64, 1), box-shadow 0.18s ease;
}

.btn:active:not(:disabled) {
  transform: translate(3px, 4px) scale(0.94);
  box-shadow: 1px 1px 0 #141414;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
}

.btn-breach {
  width: 100%;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 1.15rem;
  border-radius: 999px;
  border: 3px solid #1a1a1a;
  box-shadow: 5px 5px 0 #1a1a1a;
  padding: 16px;
}

.btn-breach:disabled {
  opacity: 0.4;
  box-shadow: 3px 3px 0 #141414;
}

.btn-breach:not(:disabled):active {
  transform: translate(4px, 5px) scale(0.95);
  box-shadow: 1px 1px 0 #141414;
}

.view-game { gap: 6px; }

.game-top {
  display: grid;
  grid-template-columns: auto auto 1fr auto auto;
  align-items: center;
  gap: 0;
  min-height: 46px;
  overflow: hidden;
  background: rgba(255, 248, 239, 0.96);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--hard-sm);
}

.game-top-btn,
.game-round,
.game-time {
  min-height: 43px;
  display: grid;
  place-items: center;
  padding: 7px 10px;
  color: var(--ink);
  background: transparent;
  border-right: 2px solid var(--ink);
  font-weight: 900;
}

.game-top-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  min-width: 44px;
  transition: transform 0.18s cubic-bezier(0.34, 1.7, 0.64, 1), background 0.12s ease;
}
.game-top-btn:active {
  background: var(--paper-2);
  transform: scale(0.92);
}

.game-restart {
  color: var(--ink);
  background: var(--gold);
  font-size: 0.64rem;
}

.game-round {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-align: center;
}

.game-time {
  min-width: 66px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.game-pause {
  border-right: 0;
  color: #fff;
  background: var(--teal);
  font-size: 1rem;
}

.vault-stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0;
}

.circle-board {
  position: relative;
  width: min(100%, var(--dial-size, 360px));
  aspect-ratio: 1;
  touch-action: none;
}

.circle-board.is-dragging::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
}

.circle-board.is-cracked {
  animation: ring-crack 0.55s cubic-bezier(0.2, 1.45, 0.3, 1);
}
.circle-board.is-cracked::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(255, 200, 87, 0.62) 0%, rgba(255, 90, 61, 0.18) 42%, transparent 70%);
  animation: crack-flash 0.5s ease-out;
}

@keyframes ring-crack {
  0%, 100% { transform: none; }
  18% { transform: translateX(-7px) rotate(-1.4deg) scale(1.03); }
  36% { transform: translateX(8px) rotate(1.6deg) scale(1.04); }
  54% { transform: translateX(-4px) rotate(-0.8deg); }
  72% { transform: translateX(3px) rotate(0.5deg); }
}

@keyframes crack-flash {
  0% { opacity: 1; transform: scale(0.86); }
  100% { opacity: 0; transform: scale(1.12); }
}

#circleCanvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  border: 4px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--hard);
}

.touch-hint {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  background: #2a2e34;
  color: #e8e2d6;
  border: 2px solid #0d0e10;
  padding: 4px 8px;
  box-shadow: 2px 2px 0 #0d0e10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.touch-hint.is-visible { opacity: 1; }

.seed-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: -2px;
}

.seed {
  width: 72px;
  height: 72px;
  border: 3px solid #141414;
  box-shadow: var(--hard);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #141414;
  background: var(--paper);
  padding: 6px;
  transition: transform 0.2s cubic-bezier(0.34, 1.7, 0.64, 1), box-shadow 0.16s ease;
}
.seed:active:not(:disabled) {
  transform: translate(3px, 3px) scale(0.92);
  box-shadow: 1px 1px 0 #141414;
}
.seed-a { border-radius: 12px; }
.seed-b { border-radius: 12px; background: var(--paper); }
.seed:disabled { opacity: 0.45; }
.seed.is-active {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.seed.is-active:disabled { opacity: 1; }
.seed.is-used {
  position: relative;
  opacity: 1;
  background: var(--teal);
  color: #fff;
}
.seed.is-used .die-face { opacity: 0.14; }
.seed.is-used::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  text-shadow: 2px 2px 0 var(--ink);
}
.seed.is-rolling { animation: diceSlam 0.4s ease; }

@keyframes diceSlam {
  0%, 100% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.08) rotate(-8deg); }
  60% { transform: scale(0.96) rotate(6deg); }
}

.die-face {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  background: transparent;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  padding: 4px;
}

.die-face.is-empty {
  display: grid;
  place-items: center;
}

.die-face.is-empty::after {
  content: "?";
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.6rem;
  color: rgba(20, 20, 20, 0.35);
  grid-column: 1 / -1;
  grid-row: 1 / -1;
}

.pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #141414;
}

.game-hint {
  margin: 0;
  min-height: 2.6em;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.35;
  color: #141414;
  background: rgba(243, 238, 228, 0.92);
  border: 2px solid #141414;
  padding: 8px 10px;
  box-shadow: var(--hard-sm);
}
.game-hint.is-hidden,
.game-hint[hidden] {
  display: none !important;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: none;
}

.btn-breach {
  background: var(--accent);
  color: #fff;
  min-height: 54px;
}

.btn-breach:disabled {
  opacity: 1;
  color: var(--ink);
  background: var(--paper-3);
  box-shadow: 3px 3px 0 var(--ink);
}

.trophy-strip {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: center;
  min-height: 44px;
  margin-top: 2px;
}

.trophy-pill {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: var(--paper);
  border: 3px solid #141414;
  box-shadow: var(--hard-sm);
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: pop 0.35s both;
}
.trophy-pill canvas { width: 34px; height: 34px; }
.trophy-pill.is-empty {
  color: rgba(26, 26, 26, 0.42);
  background: rgba(255, 248, 239, 0.5);
  border-style: dashed;
  box-shadow: none;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
}

.safe-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 248, 239, 0.72);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 40;
}
.safe-overlay.is-visible { opacity: 1; pointer-events: auto; }

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 9px;
  height: 14px;
  border: 2px solid var(--ink);
  background: var(--confetti-color);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: confetti-burst 900ms cubic-bezier(0.16, 0.72, 0.25, 1) forwards;
}

@keyframes confetti-burst {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg) scale(0.5);
  }
  75% { opacity: 1; }
  100% {
    opacity: 0;
    transform:
      translate(calc(-50% + var(--confetti-x)), calc(-50% + var(--confetti-y)))
      rotate(var(--confetti-r))
      scale(1);
  }
}

.pause-overlay,
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(20, 16, 14, 0.82);
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.confirm-overlay { z-index: 50; }

.pause-overlay.is-visible,
.confirm-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.pause-card {
  width: min(100%, 320px);
  text-align: center;
  background: var(--paper);
  border: 4px solid #141414;
  box-shadow: var(--hard);
  padding: 24px 20px;
}

.pause-copy {
  margin: 8px 0 18px;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
}

.confirm-card {
  transform: rotate(-1deg);
}

.confirm-message {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.confirm-actions .btn {
  padding-inline: 10px;
}

.safe-overlay-card {
  text-align: center;
  padding: 28px 32px;
  background: var(--paper);
  border: 4px solid #141414;
  box-shadow: 10px 10px 0 #141414;
  animation: slam 0.4s both;
}
.overlay-copy {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
}

.finish-time {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 3.2rem;
  margin: 0.2rem 0 0;
  color: var(--accent);
  text-shadow: 3px 3px 0 #141414;
  font-variant-numeric: tabular-nums;
}

.view-finish {
  position: relative;
}
.view-finish .finish-time-burst {
  width: 100%;
  background: var(--paper);
  border: 4px solid var(--ink);
  box-shadow: var(--hard);
  padding: 8px 12px 10px;
  margin: auto 0 0.55rem;
  transform: rotate(-1deg);
  text-align: center;
}
.view-finish .best-time,
.view-finish .gesture-metric {
  margin: 0 0 8px;
}
.view-finish .trophy-strip {
  margin: 0 0 10px;
}

body.is-gameplay .grain,
body.is-gameplay .halftone {
  opacity: 0;
}

.best-time {
  width: fit-content;
  margin: -0.35rem auto 0.9rem;
  padding: 7px 10px;
  color: #fff;
  background: var(--teal);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.gesture-metric {
  width: fit-content;
  margin: -0.35rem auto 0.9rem;
  padding: 5px 8px;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 3px solid #141414;
  box-shadow: var(--hard-sm);
}

.leaderboard-rank {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--accent);
}
.leaderboard-name { font-weight: 700; font-size: 0.85rem; }
.leaderboard-time {
  font-family: var(--font-mono);
  font-weight: 700;
}

.boot-spinner {
  margin: auto;
  width: 48px;
  height: 48px;
  border: 4px solid #141414;
  background: var(--accent-soft);
  box-shadow: var(--hard);
  animation: spin 0.7s steps(8) infinite;
}

.muted { color: rgba(20, 20, 20, 0.6); font-size: 0.85rem; }

/* Short phones (iPhone SE, small Android) */
@media (max-height: 700px) {
  .view-boot,
  .view-game,
  .view-leaderboard { padding-top: max(8px, env(safe-area-inset-top)); }
  .sheet-title { font-size: clamp(2.6rem, 14vw, 3.5rem); margin-top: 0.45rem; }
  .sheet-caption { font-size: 0.72rem; }
  .btn-play { font-size: 1.15rem; padding: 13px 16px; }
  .seed { width: 60px; height: 60px; }
  .btn-breach { padding: 11px; font-size: 1rem; }
  .trophy-strip { min-height: 38px; margin-top: 0; }
  .trophy-pill { width: 38px; height: 38px; }
  .trophy-pill canvas { width: 30px; height: 30px; }
  .finish-time { font-size: 2.4rem; }
}

@media (max-width: 360px) {
  .game-top-btn,
  .game-round,
  .game-time {
    padding-inline: 5px;
  }
  .game-top-btn { min-width: 38px; font-size: 0.62rem; }
  .game-restart { font-size: 0.56rem; }
  .game-time { min-width: 58px; }
}

/* Very short / landscape-ish */
@media (max-height: 580px) {
  .game-top { min-height: 40px; }
  .game-top-btn, .game-round, .game-time { min-height: 37px; padding: 5px 7px; }
  .trophy-strip { min-height: 28px; }
  .trophy-pill { width: 36px; height: 36px; }
}

/* Wide phones / small tablets */
@media (min-width: 420px) {
  .app-shell { max-width: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
