/* SKYPIN — 1990s arcade cabinet styling.
   Neon on black, chunky pixel type, starfield vibe, subtle CRT scanlines.
   No external assets: system monospace + text-shadow glow only. */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: #000;
  height: 100%;
  font-family: "Courier New", monospace;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px 8px 24px;
  background:
    radial-gradient(ellipse 420px 300px at 12% -6%, rgba(255, 43, 214, 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 420px 300px at 88% 108%, rgba(0, 240, 255, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse at 50% -10%, #1a0b2e 0%, #000 55%),
    #000;
}

/* Phone posture: the cabinet takes the full viewport height so the table
   fills the screen vertically with no scrolling. Desktop keeps its
   natural height. */
@media (max-width: 600px) {
  body { height: 100dvh; padding: 6px 6px 10px; }
  #cabinet { height: 100%; display: flex; flex-direction: column; }
}

#cabinet {
  width: min(96vw, 520px);
  text-align: center;
  position: relative;
  z-index: 1;
}

#marquee {
  font-size: clamp(22px, 6.5vw, 32px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 5px;
  background: linear-gradient(180deg, #fff6a0 0%, #ffe600 45%, #ff2bd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 43, 214, 0.55)) drop-shadow(3px 3px 0 rgba(0, 240, 255, 0.35));
  padding: 8px 0 10px;
  border-bottom: 3px solid #ff2bd6;
  margin-bottom: 8px;
}

#brand-line {
  font-size: 11px;
  letter-spacing: 4px;
  color: #57e6ff;
  opacity: 0.85;
  margin-bottom: 8px;
}

#hud {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 4px;
  margin-bottom: 8px;
  padding: 6px 8px;
  border: 2px solid #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.5), inset 0 0 12px rgba(0, 240, 255, 0.15);
  background: #05051a;
}

.hud-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hud-label {
  font-size: 10px;
  letter-spacing: 2px;
  color: #00f0ff;
}

.hud-value {
  font-size: clamp(15px, 4.5vw, 21px);
  font-weight: 900;
  font-style: italic;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #ffffff 0%, #9df3ff 60%, #00f0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.5));
  white-space: nowrap;
}

.hud-value.combo {
  background: linear-gradient(180deg, #fff6a0 0%, #ffe600 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 230, 0, 0.6));
}
.hud-value.combo.hot {
  background: linear-gradient(180deg, #ffd7f2 0%, #ff2bd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(255, 43, 214, 0.65));
  animation: pulse 0.4s infinite alternate;
}

/* Mute button: small speaker in the HUD's top corner. Toggles all game
   audio (music + SFX); state persists. */
.hud-mute {
  flex: 0 0 auto;
  align-self: center;
  background: transparent;
  border: 2px solid #00f0ff;
  border-radius: 6px;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  padding: 4px 7px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}
.hud-mute.muted { border-color: #ff2bd6; box-shadow: 0 0 8px rgba(255, 43, 214, 0.4); opacity: 0.75; }

@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.12); } }

#stage {
  position: relative;
  width: min(94vw, 480px);
  margin: 0 auto;
  border: 3px solid #ff2bd6;
  box-shadow: 0 0 24px rgba(255, 43, 214, 0.55), inset 0 0 24px rgba(0, 240, 255, 0.12);
  /* transparent: on tall screens the canvas centers with letterbox bands
     above/below it — those bands show the animated page background
     (orbs / grid / scan line) instead of flat black. The canvas itself
     paints opaque art over its full area, so the table is unaffected. */
  background: transparent;
  /* angular cabinet bezel: clipped corners on the stage frame */
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  /* CRT scanlines over the whole stage */
  overflow: hidden;
  /* the stage flexes to fill leftover viewport height; the canvas is
     centered inside it and sized by JS (fitSize) to preserve 480:800 */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  #stage { flex: 1; min-height: 0; width: 100%; }
  #marquee { font-size: 20px; padding: 4px 0 6px; margin-bottom: 6px; }
  .overlay h1 { font-size: 40px; }
}

#stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.18) 0px,
    rgba(0, 0, 0, 0.18) 1px,
    transparent 1px,
    transparent 4px
  );
  z-index: 3;
}

#game {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  cursor: pointer;
}

/* Apron strip: three plates under the table, no words anywhere.
   Instructions plate (lines only), emblem plate (star + ringed planet),
   coin-slot plate. The arcade joke ("no coins needed") lives in the
   footer text below, not on the board. */
#apron {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.apron-plate {
  flex: 1;
  height: 44px;
  background: #0a0a18;
  border: 2px solid #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.35), inset 0 0 10px rgba(0, 240, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.apron-plate.emblem {
  border-color: #ff2bd6;
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.35), inset 0 0 10px rgba(255, 43, 214, 0.12);
}
.apron-plate.instructions { flex-direction: column; gap: 5px; }
.apron-plate.instructions span {
  display: block;
  width: 60%;
  height: 3px;
  background: #8888bb;
}
.apron-plate.coinslot { gap: 8px; }
.apron-plate.coinslot .slot {
  display: block;
  width: 7px;
  height: 26px;
  background: #000;
  border: 1px solid #8888bb;
  border-radius: 3px;
}
.apron-plate.coinslot .coin {
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid #ffe600;
  border-radius: 50%;
}

/* Flipper pads: big thumb buttons under the table. Touch devices only —
   desktop players use mouse halves / arrow keys / Z-M. */
#flipper-pads {
  display: none;
  gap: 10px;
  margin-top: 10px;
}
@media (pointer: coarse) {
  #flipper-pads { display: flex; }
}
#flipper-pads button {
  flex: 1;
  min-height: 64px;
  font-family: "Courier New", monospace;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #00f0ff;
  background: #05051a;
  border: 3px solid #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.4);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
#pad-right { color: #ff2bd6; border-color: #ff2bd6; box-shadow: 0 0 14px rgba(255, 43, 214, 0.4); }
#btn-nudge { flex: 0 0 96px; color: #ffe600; border-color: #ffe600; box-shadow: 0 0 14px rgba(255, 230, 0, 0.4); }
#btn-nudge.cooling { opacity: 0.35; box-shadow: none; }
#btn-nudge.down { background: #ffe600; color: #05051a; }
#flipper-pads button.down {
  background: #00f0ff;
  color: #05051a;
}
#pad-right.down { background: #ff2bd6; color: #05051a; }

/* Footer hints: keyboard hint on mouse, touch hint on touch. */
body.mouse .touch-hint { display: none; }
body.touch .kb-hint { display: none; }

.overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: center;
  gap: 14px;
  padding: 20px;
  background: rgba(3, 3, 16, 0.82);
  overflow-y: auto;
}

.overlay.hidden { display: none; }

.overlay h1 {
  font-size: clamp(34px, 10vw, 52px);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  letter-spacing: 4px;
  background: linear-gradient(180deg, #ffffff 0%, #00f0ff 55%, #ff2bd6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.45));
}

.overlay .tagline {
  font-size: 12px;
  letter-spacing: 2px;
  color: #ffe600;
  text-shadow: 0 0 8px #ffe600;
}

.overlay .howto {
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: 1px;
  color: #fff;
}

.overlay .blink {
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 3px;
  color: #ff2bd6;
  text-shadow: 0 0 12px #ff2bd6;
  animation: blink 1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0.15; } }

.final-score {
  font-size: clamp(36px, 11vw, 54px);
  font-weight: 900;
  font-style: italic;
  background: linear-gradient(180deg, #fff6a0 0%, #ffe600 50%, #ff9500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 230, 0, 0.55));
}

.scores { width: 100%; max-width: 320px; }
.scores h2 {
  font-size: 13px;
  letter-spacing: 3px;
  color: #00f0ff;
  margin-bottom: 6px;
  text-shadow: 0 0 8px #00f0ff;
}
.scores ol { list-style: none; text-align: left; }
.scores li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 3px 6px;
  border-bottom: 1px dashed rgba(0, 240, 255, 0.35);
  color: #fff;
}
.scores li:first-child { color: #ffe600; }

#footer {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #8888bb;
}

/* ---- Phase 2: challenge banner, champion lines, mode/tournament UI ------ */
#challenge-banner {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffe600;
  text-shadow: 0 0 10px #ffe600;
  border: 2px solid #ffe600;
  box-shadow: 0 0 12px rgba(255, 230, 0, 0.5);
  background: #1a1400;
  padding: 5px 8px;
  margin-bottom: 8px;
}
#challenge-banner.hidden { display: none; }

.champion-line {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffe600;
  text-shadow: 0 0 10px #ffe600;
}
.champion-line.hidden { display: none; }
.challenge-line {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffe600;
  text-shadow: 0 0 10px #ffe600;
}
.challenge-line.hidden { display: none; }

#mode-select { display: flex; gap: 10px; }
.overlay button {
  font-family: "Courier New", monospace;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #00f0ff;
  background: #05051a;
  border: 3px solid #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.overlay button:active { background: #00f0ff; color: #05051a; }
.overlay button.ghost {
  border-color: #8888bb;
  color: #8888bb;
  box-shadow: none;
  font-size: 13px;
  padding: 8px 14px;
}
.overlay button.fmt.selected {
  background: #ffe600;
  color: #05051a;
  border-color: #ffe600;
}
#setup-format { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
#setup-players { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 320px; }
.setup-row { display: flex; gap: 8px; align-items: center; justify-content: center; }
.setup-row .tag-label { font-size: 14px; color: #00f0ff; letter-spacing: 1px; min-width: 34px; text-align: right; }
.setup-row input.tag-input {
  width: 96px;
  font-family: "Courier New", monospace;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 6px;
  text-align: center;
  text-transform: uppercase;
  color: #ffe600;
  background: #05051a;
  border: 2px solid #00f0ff;
  padding: 6px 4px 6px 10px;
  outline: none;
}
.setup-row input.tag-input:focus { border-color: #ffe600; box-shadow: 0 0 10px rgba(255, 230, 0, 0.5); }
.setup-row .tag-remove {
  padding: 6px 10px;
  font-size: 14px;
  border-color: #ff3355;
  color: #ff3355;
  box-shadow: none;
}

#bracket-list { list-style: none; width: 100%; max-width: 340px; }
#bracket-list li {
  display: flex;
  justify-content: space-between;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  padding: 6px 8px;
  border-bottom: 1px dashed rgba(0, 240, 255, 0.35);
  color: #fff;
}
#bracket-list li:first-child { color: #ffe600; text-shadow: 0 0 10px #ffe600; }
#bracket-list li .b-rank { color: #00f0ff; margin-right: 8px; }
#bracket-list li .b-score { color: #fff; }

.mission-stats {
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 2px;
  color: #fff;
  text-align: center;
}
#qr-canvas {
  background: #fff;
  padding: 6px;
  border: 3px solid #00f0ff;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.5);
}

/* Gold Mission Card: SCOREBREAK round or a newly crowned champion. */
#gameover-overlay.gold { background: rgba(26, 20, 0, 0.88); }
#gameover-overlay.gold h1 {
  background: linear-gradient(180deg, #fff6a0 0%, #ffe600 50%, #ff9500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(255, 214, 0, 0.6));
}

/* ---- Visual upgrade (Nov 28, 2026): the page never sits still ----------
   Layered animated background, angular chrome, gradient display type,
   micro-labels, mascot frames. Board palette only (magenta / cyan /
   yellow on black) — no borrowed brand colors. */

/* Layered animated background: drifting color orbs + faint lattice grid +
   a slow scan line sweeping down + vignette. Fixed behind the cabinet. */
#bg-fx {
  position: fixed;
  inset: -8px;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-orb {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
}
.orb-magenta { background: #ff2bd6; top: -120px; left: -100px; animation: drift1 26s ease-in-out infinite alternate; }
.orb-cyan { background: #00f0ff; bottom: -140px; right: -120px; animation: drift2 32s ease-in-out infinite alternate; }
.orb-yellow { background: #ffe600; top: 38%; left: 62%; width: 300px; height: 300px; opacity: 0.13; animation: drift3 22s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0, 0); } to { transform: translate(120px, 90px); } }
@keyframes drift2 { from { transform: translate(0, 0); } to { transform: translate(-110px, -80px); } }
@keyframes drift3 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-90px, 110px) scale(1.15); } }
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 240, 255, 0.06) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(60deg, rgba(0, 240, 255, 0.06) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(120deg, rgba(255, 43, 214, 0.06) 0 1px, transparent 1px 56px);
  opacity: 0.7;
}
.bg-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff2bd6 25%, #00f0ff 75%, transparent);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
  opacity: 0.5;
  animation: scanSweep 9s linear infinite;
}
@keyframes scanSweep { from { transform: translateY(-10px); } to { transform: translateY(105vh); } }
.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* Angular chrome: clipped corners on panels and buttons. */
#hud, .overlay button, #flipper-pads button, .apron-plate, #challenge-banner, #qr-canvas {
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
/* Top accent bar on panels and buttons (gradient strip, board palette). */
#hud, .apron-plate, #challenge-banner, .overlay button, #flipper-pads button { position: relative; }
#hud::before, .apron-plate::before, #challenge-banner::before, .overlay button::before, #flipper-pads button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 3px;
  background: linear-gradient(90deg, #ff2bd6, #00f0ff, #ffe600);
  pointer-events: none;
}

/* Micro-labels: tiny wide-tracked uppercase captions. */
.micro {
  font-size: 9px;
  letter-spacing: 3px;
  color: #8888bb;
  text-transform: uppercase;
}

/* Menu overlay is less dimmed now: the attract mode shows through. */
#menu-overlay { background: rgba(3, 3, 16, 0.60); }

/* Mascot frame: hexagonal clip, gradient ring, gentle bob. The mascot
   art has a black background; screen blend lets it melt into the dark
   overlay instead of showing a black square. */
.mascot-frame {
  width: 118px;
  background: linear-gradient(135deg, #00f0ff, #ff2bd6 55%, #ffe600);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  padding: 3px;
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.45));
  animation: bob 4s ease-in-out infinite;
}
.mascot-frame.small { width: 92px; }
.mascot-frame img {
  display: block;
  width: 100%;
  height: auto;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  mix-blend-mode: screen;
  background: #05051a;
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
#gameover-overlay.gold #qr-canvas { border-color: #ffe600; box-shadow: 0 0 20px rgba(255, 230, 0, 0.6); }

/* ---- Depth + trophies + mothership spectacle (Nov 28, 2026) --------------
   Cabinet tilt on nudge, trophy case / icons / toast, leaderboard badges.
   Trophy icons are pure CSS shapes (clip-path / gradients) — no emoji,
   no image assets. Board palette only. */

/* Cabinet tilt: the whole machine rocks 1-2 degrees when the player
   nudges, like a real table. The class is removed/re-added to restart. */
#cabinet.tilt { animation: cabinetTilt 0.45s ease-out; }
@keyframes cabinetTilt {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(1.6deg); }
  60% { transform: rotate(-1deg); }
  100% { transform: rotate(0deg); }
}

/* New-trophy toast: gold strip under the HUD, shows for ~3s when a
   trophy is earned mid-round. */
#trophy-toast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ffe600;
  text-shadow: 0 0 10px #ffe600;
  border: 2px solid #ffe600;
  box-shadow: 0 0 14px rgba(255, 230, 0, 0.55);
  background: #1a1400;
  padding: 6px 10px;
  margin-bottom: 8px;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
#trophy-toast.hidden { display: none; }
#trophy-toast .t-feat { font-size: 11px; color: #fff; text-shadow: none; letter-spacing: 1px; }

/* Trophy case: 5-column grid on the menu, earned in full color, locked
   greyed out with the feat named — the case itself is the checklist. */
.trophy-case { width: 100%; max-width: 340px; }
.trophy-case h2 {
  font-size: 13px;
  letter-spacing: 3px;
  color: #ffe600;
  margin-bottom: 6px;
  text-shadow: 0 0 8px #ffe600;
}
#trophy-case {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.trophy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px 5px;
  background: #0a0a18;
  border: 1px solid rgba(255, 230, 0, 0.4);
}
.trophy.locked { opacity: 0.42; border-color: rgba(136, 136, 187, 0.35); }
.trophy.earned { box-shadow: 0 0 10px rgba(255, 230, 0, 0.28); }
.trophy .t-name { font-size: 7px; letter-spacing: 0.5px; color: #fff; text-align: center; line-height: 1.3; }
.trophy .t-feat { font-size: 6.5px; letter-spacing: 0.3px; color: #8888bb; text-align: center; line-height: 1.25; }

/* Trophy icons: CSS shapes, 26px in the case, 14px as row badges. */
.t-icon { display: inline-block; width: 26px; height: 26px; position: relative; flex: 0 0 auto; }
.t-icon.crown { background: linear-gradient(180deg, #fff6a0, #ffe600 55%, #ff9500); clip-path: polygon(0 100%, 0 35%, 22% 55%, 50% 0, 78% 55%, 100% 35%, 100% 100%); }
.t-icon.saucer { background: linear-gradient(180deg, #ffe600, #ff9500); border-radius: 50%; height: 14px; margin-top: 6px; box-shadow: 0 0 10px rgba(255, 230, 0, 0.6); }
.t-icon.saucer::after { content: ""; position: absolute; left: 50%; top: -9px; width: 12px; height: 9px; margin-left: -6px; border-radius: 50% 50% 0 0; background: #ff9500; }
.t-icon.ring { border: 4px solid #b44dff; border-radius: 50%; box-shadow: 0 0 10px rgba(180, 77, 255, 0.7), inset 0 0 8px rgba(180, 77, 255, 0.6); }
.t-icon.drop { background: linear-gradient(180deg, #a8ff3e, #39ff6a); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); width: 22px; height: 22px; margin-top: 2px; }
.t-icon.triple { background: radial-gradient(circle 4px at 6px 20px, #00f0ff 98%, transparent), radial-gradient(circle 4px at 13px 7px, #00f0ff 98%, transparent), radial-gradient(circle 4px at 20px 20px, #00f0ff 98%, transparent); }
.t-icon.burst { background: linear-gradient(180deg, #fff6a0, #ffe600 60%, #ff9500); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.t-icon.cup { background: linear-gradient(180deg, #fff6a0, #ffe600 55%, #ff9500); clip-path: polygon(18% 0, 82% 0, 82% 34%, 62% 52%, 62% 78%, 38% 78%, 38% 52%, 18% 34%); }
.t-icon.medal-gold, .t-icon.medal-silver, .t-icon.medal-bronze { border-radius: 50%; color: #05051a; font-size: 14px; font-weight: 900; line-height: 26px; text-align: center; }
.t-icon.medal-gold { background: radial-gradient(circle at 35% 30%, #fff6a0, #ffe600 55%, #ff9500); box-shadow: 0 0 10px rgba(255, 230, 0, 0.6); }
.t-icon.medal-silver { background: radial-gradient(circle at 35% 30%, #ffffff, #c0c0c0 55%, #8888bb); }
.t-icon.medal-bronze { background: radial-gradient(circle at 35% 30%, #ffd2a0, #cd7f32 55%, #7a4a00); }
/* Locked icons go flat grey. */
.trophy.locked .t-icon { filter: grayscale(1) brightness(0.6); box-shadow: none; }
.trophy.locked .t-icon.ring { border-color: #8888bb; }
.trophy.locked .t-icon.medal-gold, .trophy.locked .t-icon.medal-silver, .trophy.locked .t-icon.medal-bronze { color: #8888bb; }
/* Row badges: 14px icons on leaderboard rows. */
.row-badges { display: inline-flex; gap: 3px; margin-left: 6px; vertical-align: -2px; }
.row-badges .t-icon { width: 14px; height: 14px; }
.row-badges .t-icon.saucer { height: 8px; margin-top: 3px; }
.row-badges .t-icon.saucer::after { width: 6px; height: 5px; margin-left: -3px; top: -5px; }
.row-badges .t-icon.drop { width: 12px; height: 12px; margin-top: 1px; }
.row-badges .t-icon.ring { border-width: 2px; }
.row-badges .t-icon.medal-gold, .row-badges .t-icon.medal-silver, .row-badges .t-icon.medal-bronze { font-size: 9px; line-height: 14px; }
/* Champion line carries the gold trophy. */
.champion-line .t-icon { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; }
.champion-line .t-icon.saucer { height: 8px; margin-top: 0; }

/* New trophies on the Mission Card: the trophies this round earned. */
.new-trophies { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; max-width: 340px; }
.new-trophies.hidden { display: none; }
.new-trophies .nt-label { font-size: 11px; letter-spacing: 2px; color: #ffe600; text-shadow: 0 0 8px #ffe600; }
.new-trophies .t-icon { width: 22px; height: 22px; }
.new-trophies .t-icon.saucer { height: 12px; margin-top: 5px; }
.new-trophies .t-icon.saucer::after { width: 10px; height: 7px; margin-left: -5px; top: -7px; }
.new-trophies .t-icon.drop { width: 19px; height: 19px; margin-top: 1px; }
.new-trophies .t-icon.ring { border-width: 3px; }
.new-trophies .t-icon.medal-gold, .new-trophies .t-icon.medal-silver, .new-trophies .t-icon.medal-bronze { font-size: 12px; line-height: 22px; }
