/* =====================================================================
   Tipp-Duell – design system v2 ("Matchday")
   Principles (see GAME_DESIGN.md §13):
   • Hierarchy through size and weight, not through colour or glow
   • One accent colour ("Volt"), used sparingly: main action + your numbers
   • 4/8-point spacing grid, 5 text sizes, 2 font families
   • Grouped lists instead of boxes inside boxes
   • Real club logos and jerseys carry the colour – the UI stays neutral
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* surfaces: neutral near-black, slightly lifted per level */
  --bg: #09090b;
  --bg-elev: #0f0f12;
  --s1: #141418;          /* cards, grouped lists */
  --s2: #1c1c21;          /* controls, pressed rows */
  --s3: #26262c;          /* chips, tracks */
  --hair: rgba(255, 255, 255, 0.07);
  --hair-2: rgba(255, 255, 255, 0.12);

  /* text */
  --t1: #f4f4f6;
  --t2: #a3a3ad;
  --t3: #6c6c76;

  /* brand + semantic */
  --volt: #d4ff3f;        /* YOU, primary action */
  --volt-ink: #0d1100;
  --volt-08: rgba(212, 255, 63, 0.08);
  --volt-16: rgba(212, 255, 63, 0.16);
  --rival: #7aa7ff;       /* opponent */
  --rival-12: rgba(122, 167, 255, 0.12);
  --gold: #f2c55c;        /* specials, rewards */
  --gold-12: rgba(242, 197, 92, 0.12);
  --up: #d4ff3f;          /* LP gained */
  --down: #ff6a6a;        /* LP lost / ban */
  --down-12: rgba(255, 106, 106, 0.12);

  /* type */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", "Inter", ui-sans-serif, system-ui, sans-serif;

  /* shape */
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --pad: 20px;            /* screen side padding */

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tab-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: #000;
  color: var(--t1);
  font: 15px/1.4 var(--sans);
  font-feature-settings: "cv11", "ss01", "tnum";
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }

/* ---------- 2. Phone frame (computer view) ---------- */
#phone {
  position: relative;
  height: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}
@media (min-width: 620px) and (min-height: 700px) {
  body { display: grid; place-items: center; background: #050506; }
  #phone {
    width: 393px;
    height: min(852px, calc(100vh - 48px));
    border-radius: 52px;
    box-shadow: 0 0 0 11px #18181b, 0 0 0 12px #2a2a30, 0 50px 120px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- 3. Screens ---------- */
.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: calc(var(--safe-top) + 12px) var(--pad) calc(var(--tab-h) + var(--safe-bottom) + 32px);
  scrollbar-width: none;
  animation: enter 0.42s var(--ease);
}
.screen::-webkit-scrollbar { display: none; }
.screen.flow { padding-bottom: calc(var(--safe-bottom) + 120px); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 4. Typography (5 sizes) ---------- */
.t-large  { font: 800 32px/1.1 var(--display); letter-spacing: -0.02em; font-stretch: 112%; margin: 0; }
.t-title  { font: 700 22px/1.2 var(--sans); letter-spacing: -0.02em; margin: 0; }
.t-head   { font: 600 17px/1.3 var(--sans); letter-spacing: -0.01em; margin: 0; }
.t-body   { font: 400 15px/1.45 var(--sans); margin: 0; }
.t-sub    { font: 500 13px/1.35 var(--sans); color: var(--t2); margin: 0; }
.t-over   { font: 700 11px/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--t3); }
.num      { font-family: var(--display); font-stretch: 75%; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.c2 { color: var(--t2); } .c3 { color: var(--t3); }
.cv { color: var(--volt); } .cr { color: var(--rival); } .cg { color: var(--gold); } .cd { color: var(--down); }
.center { text-align: center; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- 5. Layout helpers (4/8 grid) ---------- */
.row { display: flex; align-items: center; gap: 12px; }
.row.tight { gap: 8px; }
.row.between { justify-content: space-between; }
.col { display: grid; gap: 4px; min-width: 0; }
.grow { flex: 1; min-width: 0; }
.vgap-8 { height: 8px; } .vgap-16 { height: 16px; } .vgap-24 { height: 24px; } .vgap-32 { height: 32px; }
.section { margin-top: 32px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 4px 12px; }
.section-head .link { font: 600 14px var(--sans); color: var(--volt); }

/* ---------- 6. Surfaces ---------- */
.card {
  position: relative;
  background: var(--s1);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card.tap { width: 100%; text-align: left; transition: transform 0.15s var(--ease), background 0.2s; }
.card.tap:active { transform: scale(0.985); background: var(--s2); }

/* Grouped list (iOS style): rows separated by inset hairlines */
.group { background: var(--s1); border-radius: var(--r-lg); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.cell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  text-align: left;
  transition: background 0.15s;
}
button.cell:active { background: var(--s2); }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--hair); }
.cell.inset + .cell::before, .cell + .cell.inset::before { left: 66px; }
.cell .chev { color: var(--t3); margin-left: auto; flex: none; }
.cell.me { background: linear-gradient(90deg, var(--volt-08), transparent 80%); }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 54px;
  padding: 0 20px;
  border-radius: var(--r-md);
  font: 700 16px var(--sans);
  letter-spacing: -0.01em;
  transition: transform 0.12s var(--ease), opacity 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.35; transform: none; cursor: default; }
.btn-primary { background: var(--volt); color: var(--volt-ink); }
.btn-gold { background: var(--gold); color: #1f1600; }
.btn-secondary { background: var(--s2); color: var(--t1); }
.btn-text { height: 44px; color: var(--t2); font-weight: 600; }
.btn-sm { height: 36px; width: auto; padding: 0 14px; border-radius: 999px; font-size: 14px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--s2); color: var(--t1); flex: none; }
.icon-btn:active { background: var(--s3); }
.icon-btn svg { width: 20px; height: 20px; }

/* Fixed action area at the bottom of flow screens (thumb zone) */
.dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px var(--pad) calc(var(--safe-bottom) + 16px);
  background: linear-gradient(to top, var(--bg) 62%, rgba(9, 9, 11, 0));
  z-index: 15;
}
.dock .btn + .btn { margin-top: 8px; }
.dock .hint-line { margin-bottom: 10px; text-align: center; }

/* ---------- 8. Small parts: chips, pills, progress ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--s2);
  font: 600 13px var(--sans);
  color: var(--t2);
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; }
.chip.volt { background: var(--volt-16); color: var(--volt); }
.chip.gold { background: var(--gold-12); color: var(--gold); }
.chip.rival { background: var(--rival-12); color: var(--rival); }
.chip.down { background: var(--down-12); color: var(--down); }
.chip.solid { background: var(--volt); color: var(--volt-ink); }
.coin { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, #e0a82e); box-shadow: inset 0 0 0 1.5px rgba(120, 80, 0, 0.35); }

.progress { height: 6px; border-radius: 99px; background: var(--s3); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: var(--volt); transition: width 1s var(--ease); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--s3); }
.dots i.on { background: var(--volt); }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--s1); }
.segmented button { height: 34px; border-radius: 9px; font: 600 14px var(--sans); color: var(--t2); transition: background 0.2s, color 0.2s; }
.segmented button.on { background: var(--s3); color: var(--t1); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35); }

/* ---------- 9. Logos, jerseys ---------- */
.logo { flex: none; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45)); }
.logo.mono, .comp-badge img.mono { filter: brightness(0) invert(1); }
.kit { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #2b2b32, #17171b 70%); overflow: hidden; }
.kit svg { width: 78%; height: 78%; margin-top: 8%; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45)); }
.kit.ring-volt { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--volt); }
.kit.ring-rival { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--rival); }
.kit-wrap { position: relative; display: inline-block; flex: none; }
.kit-wrap .club { position: absolute; right: -4px; bottom: -4px; padding: 3px; border-radius: 50%; background: var(--bg); }

/* ---------- 10. Tab bar (docked, familiar) ---------- */
.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding: 6px 12px var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(15, 15, 18, 0.82);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border-top: 1px solid var(--hair);
  z-index: 20;
}
.tabbar button { display: grid; justify-items: center; align-content: center; gap: 4px; color: var(--t3); font: 600 11px var(--sans); }
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button.on { color: var(--t1); }
.tabbar button.on svg { color: var(--volt); }

/* ---------- 11. Top bar of the main tabs ---------- */
.topbar { display: flex; align-items: center; gap: 12px; height: 48px; margin-bottom: 8px; }
.topbar .spacer { flex: 1; }
.balance { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--s1); font: 700 14px var(--sans); }

/* ---------- 12. Home: hero event, league row, event rows ---------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 20px;
  background: var(--s1);
  isolation: isolate;
}
.hero .glow {                     /* the two club colours of the top game, very soft */
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  z-index: -1;
  opacity: 0.55;
  filter: blur(40px);
}
.hero.special { box-shadow: inset 0 0 0 1px rgba(242, 197, 92, 0.35); }
.hero .matchup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 24px 0 20px; }
.hero .side { display: grid; justify-items: center; gap: 10px; text-align: center; }
.hero .side .t-head { font-size: 15px; }
.hero .kick { display: grid; justify-items: center; gap: 2px; }
.hero .kick .num { font-size: 26px; line-height: 1; }
.comp { display: inline-flex; align-items: center; gap: 8px; }
.comp img { width: 22px; height: 22px; object-fit: contain; }
.comp-badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--s2); flex: none; }
.comp-badge img { width: 62%; height: 62%; object-fit: contain; }
.comp-badge svg { width: 22px; height: 22px; color: var(--t2); }
.comp-badge.gold { background: var(--gold-12); }
.comp-badge.gold svg { color: var(--gold); }

/* ---------- 13. Bottom sheet, toast, dialog ---------- */
.scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 40; animation: fade 0.25s ease; }
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 90%;
  overflow-y: auto;
  padding: 8px var(--pad) calc(var(--safe-bottom) + 24px);
  border-radius: 28px 28px 0 0;
  background: var(--bg-elev);
  box-shadow: 0 -1px 0 var(--hair-2), 0 -30px 80px rgba(0, 0, 0, 0.6);
  z-index: 41;
  animation: up 0.42s var(--ease);
  scrollbar-width: none;
}
.sheet::-webkit-scrollbar { display: none; }
.sheet .grab { width: 36px; height: 5px; border-radius: 9px; background: var(--s3); margin: 0 auto 16px; }
.sheet.out { animation: down 0.24s ease forwards; }
.scrim.out { animation: fade-out 0.24s ease forwards; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.toasts { position: absolute; top: calc(var(--safe-top) + 10px); left: 16px; right: 16px; display: grid; gap: 8px; justify-items: center; z-index: 60; pointer-events: none; }
.live-mode .toasts { top: auto; bottom: calc(var(--safe-bottom) + 100px); }
.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: rgba(38, 38, 44, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px var(--hair);
  font: 600 14px var(--sans);
  animation: toast-in 0.4s var(--ease);
}
.toast svg, .toast img { width: 20px; height: 20px; flex: none; }
.toast.out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-6px); } }

/* ---------- 14. Duel flow: header, steps, timer ---------- */
.flow-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 12px; height: 48px; }
.flow-head .ttl { text-align: center; }
.steps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 8px 0 24px; }
.steps i { height: 3px; border-radius: 9px; background: var(--s3); }
.steps i.done { background: var(--t3); }
.steps i.now { background: var(--volt); }
.timer { position: relative; width: 40px; height: 40px; }
.timer svg { width: 40px; height: 40px; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 3; }
.timer .trk { stroke: var(--s3); }
.timer .val { stroke: var(--volt); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.timer.low .val { stroke: var(--down); }
.timer span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 13px var(--sans); font-variant-numeric: tabular-nums; }

.coach { display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 20px; border-radius: var(--r-md); background: var(--s1); }
.coach svg { width: 20px; height: 20px; color: var(--volt); flex: none; margin-top: 1px; }
.coach .t-sub { color: var(--t2); }
.coach button { margin-left: auto; font: 600 13px var(--sans); color: var(--volt); flex: none; padding-left: 8px; }

/* ---------- 15. Duel: versus ---------- */
.vs-stage { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: start; margin: 8px 0 24px; }
.vs-side { display: grid; justify-items: center; gap: 12px; text-align: center; min-width: 0; }
.vs-side .t-head { max-width: 100%; }
.vs-mid { align-self: center; margin-top: -40px; font: 800 15px var(--display); font-stretch: 125%; color: var(--t3); text-align: center; }
.vs-left { animation: from-l 0.6s var(--ease); }
.vs-right { animation: from-r 0.6s var(--ease); }
@keyframes from-l { from { opacity: 0; transform: translateX(-24px); } }
@keyframes from-r { from { opacity: 0; transform: translateX(24px); } }
.stakes { display: grid; grid-template-columns: 1fr 1fr; }
.stakes > div { padding: 16px; text-align: center; }
.stakes > div + div { box-shadow: inset 1px 0 0 var(--hair); }
.stakes .num { font-size: 30px; line-height: 1; margin-top: 6px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); }
.banner svg { width: 22px; height: 22px; flex: none; }
.banner.derby { background: var(--down-12); color: #ffb4b4; }
.banner.derby svg { color: var(--down); }
.banner.same { background: var(--gold-12); color: #f7dc9c; }
.banner.same svg { color: var(--gold); }
.banner.plain { background: var(--s1); color: var(--t2); }

/* ---------- 16. Duel: matches, tip sheet, slots ---------- */
.mlist .cell { min-height: 72px; }
.mrow { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 6px; width: 100%; }
.mrow .tm { display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 14px var(--sans); }
.mrow .tm.away { flex-direction: row-reverse; text-align: right; }
.mrow .mid { text-align: center; font: 600 13px var(--sans); color: var(--t3); font-variant-numeric: tabular-nums; }
.cell.match { display: block; }
.cell.match .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cell.match.sel { background: var(--volt-08); box-shadow: inset 3px 0 0 var(--volt); }
.cell.match.ban { background: var(--down-12); box-shadow: inset 3px 0 0 var(--down); }
.cell.match.off { opacity: 0.4; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.trio > div { padding: 8px 6px; border-radius: 10px; background: var(--s2); text-align: center; }
.trio .t-sub { font-size: 11px; }
.trio .num { font-size: 18px; line-height: 1.1; }

.picks { margin-bottom: 20px; }
.picks .cell.lane { min-height: 52px; gap: 8px; padding: 8px 14px; }
.pslot { display: inline-grid; place-items: center; width: 40px; height: 28px; border-radius: 8px; background: var(--s2); font: 700 13px var(--sans); color: var(--t3); font-variant-numeric: tabular-nums; flex: none; }
.pslot.me { background: var(--volt-16); color: var(--volt); }
.pslot.opp { background: var(--rival-12); color: var(--rival); }
.picks .sum { width: 40px; text-align: right; font-size: 20px; flex: none; }
.sheet-x { position: absolute; top: 14px; right: 16px; z-index: 2; }
.tip-head { padding-top: 12px; }
.q { margin-top: 24px; }
.q .t-over { display: block; margin-bottom: 10px; }
.opts { display: grid; gap: 8px; }
.opts.c3 { grid-template-columns: repeat(3, 1fr); }
.opts.c2 { grid-template-columns: repeat(2, 1fr); }
.opt {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 14px 8px 12px;
  border-radius: 14px;
  background: var(--s1);
  overflow: hidden;
  transition: transform 0.12s var(--ease), background 0.15s, box-shadow 0.15s;
}
.opt:active { transform: scale(0.96); }
.opt .lbl { font: 600 13px/1.2 var(--sans); color: var(--t2); min-height: 16px; }
.opt .pts { font: 800 30px/1 var(--display); font-stretch: 75%; }
.opt .pts small { font-size: 13px; font-weight: 700; color: var(--t3); margin-left: 2px; }
.opt .pct { font: 600 11px var(--sans); color: var(--t3); }
.opt .meter { position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--s3); }
.opt .meter i { display: block; height: 100%; border-radius: 2px; background: var(--t3); }
.opt.on { background: var(--volt-16); box-shadow: inset 0 0 0 1.5px var(--volt); }
.opt.on .pts { color: var(--volt); }
.opt.on .meter i { background: var(--volt); }
.opt:disabled { opacity: 0.3; cursor: default; transform: none; }
.opt.theirs:disabled { opacity: 1; background: var(--rival-12); }
.opt .who { position: absolute; top: 6px; right: 8px; font: 700 10px var(--sans); color: var(--rival); }

/* ---------- 17. Reveal ---------- */
.flipgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; perspective: 1000px; }
.flip { position: relative; height: 188px; }
.flip .in { position: absolute; inset: 0; transform-style: preserve-3d; animation: flip 0.8s var(--ease) forwards; }
.flip:nth-child(2) .in { animation-delay: 0.18s; }
.flip .f, .flip .b { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; padding: 16px; border-radius: var(--r-lg); backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center; }
.flip .b { background: var(--s1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M0 16L16 0' stroke='%23ffffff' stroke-opacity='.05'/%3E%3C/svg%3E"); }
.flip .b svg { width: 36px; height: 36px; color: var(--t3); }
.flip .f { transform: rotateY(180deg); background: var(--s1); }
.flip.me .f { box-shadow: inset 0 0 0 1.5px var(--volt); }
.flip.opp .f { box-shadow: inset 0 0 0 1.5px var(--rival); }
.flip .f .num { font-size: 40px; line-height: 1; }
@keyframes flip { to { transform: rotateY(180deg); } }
.clash { padding: 16px; border-radius: var(--r-md); background: var(--gold-12); animation: shake 0.45s; }
.clash.lost { background: var(--down-12); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- 18. Volltreffer ---------- */
.score-pick { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 24px 12px; }
.score-pick .side { display: grid; justify-items: center; gap: 12px; }
.score-pick .colon { font: 800 40px var(--display); font-stretch: 75%; color: var(--t3); margin-top: 40px; }
.stepper { display: grid; justify-items: center; gap: 6px; }
.stepper .v { font: 800 56px/1 var(--display); font-stretch: 75%; }
.stepper .ctl { display: flex; gap: 8px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; background: var(--s2); display: grid; place-items: center; }
.stepper button:active { background: var(--s3); }
.stepper button svg { width: 18px; height: 18px; }
.worth { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-top: 1px solid var(--hair); }
.worth .num { font-size: 28px; color: var(--gold); }

/* ---------- 19. Live (match centre) ---------- */
.board {
  position: sticky;
  top: calc(-1 * (var(--safe-top) + 12px));
  margin: calc(-1 * (var(--safe-top) + 12px)) calc(-1 * var(--pad)) 16px;
  padding: calc(var(--safe-top) + 12px) var(--pad) 16px;
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--hair);
  z-index: 6;
}
.board .score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.board .p { display: flex; align-items: center; gap: 10px; min-width: 0; }
.board .p.r { flex-direction: row-reverse; }
.board .big { font: 800 44px/1 var(--display); font-stretch: 75%; font-variant-numeric: tabular-nums; }
.board .clock { display: grid; justify-items: center; gap: 2px; }
.board .clock .num { font-size: 20px; color: var(--t1); }
.live-dot { display: inline-flex; align-items: center; gap: 5px; font: 700 10px var(--sans); letter-spacing: 0.08em; color: var(--down); }
.live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--down); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.tug { display: flex; height: 4px; margin-top: 14px; border-radius: 9px; overflow: hidden; background: var(--rival); }
.tug i { background: var(--volt); transition: width 0.6s var(--ease); }
.lrow { padding: 14px 16px; }
.lrow .goals { font: 800 22px var(--display); font-stretch: 75%; text-align: center; font-variant-numeric: tabular-nums; }
.lrow.idle { opacity: 0.4; }
.lrow.goal { animation: goal 1.4s ease; }
@keyframes goal { 0% { background: var(--volt-16); } 100% { background: transparent; } }
.mark { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 12px var(--sans); background: var(--s2); color: var(--t3); }
.mark b { font-weight: 700; }
.mark.me.hit { background: var(--volt); color: var(--volt-ink); }
.mark.opp.hit { background: var(--rival); color: #06122b; }
.mark.vt { box-shadow: inset 0 0 0 1px var(--hair-2); background: transparent; }
.mark.vt.hit { background: var(--gold); color: #1f1600; box-shadow: none; }
.mark i { width: 6px; height: 6px; border-radius: 50%; }
.mark.me i { background: var(--volt); } .mark.opp i { background: var(--rival); }
.mark.hit i { background: currentColor; }

/* ---------- 20. Result ---------- */
.outcome { text-align: center; padding: 16px 0 24px; }
.outcome .word { font: 900 48px/1 var(--display); font-stretch: 125%; letter-spacing: -0.01em; animation: pop 0.6s var(--ease); }
.outcome.win .word { color: var(--volt); }
.outcome.loss .word { color: var(--t1); }
.outcome.draw .word { color: var(--gold); }
.outcome .fs { font: 800 32px var(--display); font-stretch: 75%; margin-top: 12px; }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } }
.delta { font: 800 15px var(--sans); }
.delta.up { color: var(--up); } .delta.down { color: var(--down); }
.rw-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--s2); flex: none; }
.rw-ic svg { width: 20px; height: 20px; }
.rw-ic.gold { background: var(--gold-12); color: var(--gold); }
.rw-ic.volt { background: var(--volt-16); color: var(--volt); }
.rw-ic.down { background: var(--down-12); color: var(--down); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.confetti i { position: absolute; top: -14px; width: 7px; height: 12px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(600deg); } }

/* ---------- 21. Liga & profile ---------- */
.ladder .cell { min-height: 56px; }
.ladder .lv { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--s2); font: 700 12px var(--sans); color: var(--t3); flex: none; }
.ladder .cell.now .lv { background: var(--volt); color: var(--volt-ink); }
.ladder .cell.past { opacity: 0.45; }
.rank { width: 28px; text-align: center; font: 700 15px var(--sans); color: var(--t3); flex: none; font-variant-numeric: tabular-nums; }
.rank.top { color: var(--gold); }
.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); }
.statgrid > div { padding: 16px 4px; text-align: center; }
.statgrid > div + div { box-shadow: inset 1px 0 0 var(--hair); }
.statgrid .num { font-size: 26px; line-height: 1; }
.statgrid .t-sub { font-size: 11px; margin-top: 6px; }
.cabinet { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; justify-items: center; }
.cabinet .c { position: relative; }
.cabinet .c.off img { filter: grayscale(1) brightness(0.6); opacity: 0.18; }
.cabinet .n { position: absolute; right: -6px; bottom: -4px; padding: 0 4px; border-radius: 6px; background: var(--gold); color: #1f1600; font: 800 9px var(--sans); }
.bars { display: grid; gap: 8px; }
.bars .b { display: grid; grid-template-columns: 112px 1fr 52px; align-items: center; gap: 10px; font: 500 12px var(--sans); color: var(--t2); }
.bars .b.me { color: var(--volt); font-weight: 700; }
.bars .tr { height: 8px; border-radius: 9px; background: var(--s3); overflow: hidden; }
.bars .tr i { display: block; height: 100%; border-radius: 9px; background: var(--t2); }
.bars .b.me .tr i { background: var(--volt); }
.bars .v { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- 22. Onboarding ---------- */
.ob { min-height: 100%; display: grid; grid-template-rows: auto 1fr auto; }
.ob-stage { display: grid; place-items: center; padding: 24px 0; }
.ob-copy .t-large { margin-bottom: 12px; }
.ob-copy .t-body { color: var(--t2); font-size: 16px; }
.pager { display: flex; gap: 6px; margin: 24px 0; }
.pager i { width: 6px; height: 6px; border-radius: 9px; background: var(--s3); transition: width 0.3s var(--ease), background 0.3s; }
.pager i.on { width: 20px; background: var(--t1); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 17px var(--display); font-stretch: 125%; letter-spacing: 0.01em; }
.brand svg { width: 28px; height: 28px; }
.field { width: 100%; height: 52px; padding: 0 16px; border-radius: var(--r-md); border: 0; background: var(--s1); color: var(--t1); font: 500 17px var(--sans); }
.field:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--volt); }
.field::placeholder { color: var(--t3); }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick-grid button { display: grid; justify-items: center; gap: 8px; padding: 14px 4px 10px; border-radius: 16px; background: var(--s1); min-width: 0; transition: background 0.15s, box-shadow 0.15s; }
.pick-grid button span { font: 600 11px var(--sans); color: var(--t2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-grid button.on { background: var(--volt-08); box-shadow: inset 0 0 0 1.5px var(--volt); }
.pick-grid button.on span { color: var(--t1); }
.style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.style-grid button { aspect-ratio: 1; border-radius: 14px; background: var(--s1); display: grid; place-items: center; }
.style-grid button.on { box-shadow: inset 0 0 0 1.5px var(--volt); background: var(--volt-08); }
.style-grid svg { width: 70%; height: 70%; }

/* Radar for matchmaking */
.radar { position: relative; width: 240px; height: 240px; margin: 24px auto 32px; display: grid; place-items: center; }
.radar i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--hair-2); animation: ping 2.6s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: 0.85s; }
.radar i:nth-child(3) { animation-delay: 1.7s; }
@keyframes ping { from { transform: scale(0.35); opacity: 1; } to { transform: scale(1); opacity: 0; } }

/* ---------- 23. Forms: search, inline field, steppers, radio ---------- */
.search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--s1); color: var(--t3); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--t1); font: 500 16px var(--sans); outline: none; }
.search input::placeholder { color: var(--t3); }
.search:focus-within { box-shadow: inset 0 0 0 1.5px var(--volt); }
.field.bare { flex: 1; height: 36px; padding: 0; background: none; border-radius: 0; font-size: 16px; }
.field.bare:focus { box-shadow: none; }
.stepper-inline { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 999px; background: var(--s2); }
.stepper-inline button { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--t1); }
.stepper-inline button:active { background: var(--s3); }
.stepper-inline .num { min-width: 30px; text-align: center; font-size: 20px; }
.radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--s3); flex: none; transition: box-shadow 0.15s; }
.radio.on { box-shadow: inset 0 0 0 6.5px var(--volt); }
.c1 { color: var(--t1); }

/* ---------- 24. Onboarding & profile pieces ---------- */
.ob-vs { display: flex; align-items: center; gap: 16px; }
.ob-card { width: 100%; max-width: 320px; }
.ob-card .opt { pointer-events: none; }
.ladder .cell.gap { min-height: 28px; padding-top: 0; padding-bottom: 0; }
.ladder .cell.gap .lv { background: none; height: 20px; }
.ob-stage { min-height: 300px; }
.kit-preview { display: grid; justify-items: center; gap: 8px; padding: 24px 0 28px; text-align: center; }
.kit-preview .kit-wrap { margin-bottom: 8px; }
.me-head { display: grid; justify-items: center; gap: 14px; padding: 8px 0 0; text-align: center; }
.tip-head { margin: 0 0 8px; }
.tip-head .tm { justify-content: center; }
.tip-head .mid { font: 800 20px var(--display); font-stretch: 75%; color: var(--t2); }
.radar .kit-wrap, .radar .kit { position: relative; z-index: 1; }

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

/* ---------- 25. Round 2 refinements ---------- */
.btn.link-sm { height: 40px; margin-top: 4px; font-size: 14px; color: var(--t2); }
.hero .btn-primary, .hero .btn-gold { margin-top: 4px; }
.flow-head .duo { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.flow-head .duo .kit.ring-volt, .flow-head .duo .kit.ring-rival { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--volt); }
.flow-head .duo .kit.ring-rival { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--rival); }
.trio > div { background: rgba(255, 255, 255, 0.035); }
.cell.match.ban .trio > div { background: rgba(255, 106, 106, 0.08); }

/* ---------- 26. Coins sheet: daily streak ---------- */
button.balance:active { background: var(--s2); }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.streak-day { display: grid; justify-items: center; gap: 4px; padding: 10px 0 8px; border-radius: 12px; background: var(--s1); }
.streak-day .t-sub { font-size: 10px; }
.streak-day .num { font-size: 18px; line-height: 1; }
.streak-day svg { color: var(--volt); }
.streak-day.done { opacity: 0.55; }
.streak-day.today { background: var(--volt-08); box-shadow: inset 0 0 0 1.5px var(--volt); }
.streak-day:last-child .num { color: var(--gold); }

/* ---------- 27. History ---------- */
.res { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 800 12px var(--sans); flex: none; }
.res.volt { background: var(--volt-16); color: var(--volt); }
.res.down { background: var(--down-12); color: var(--down); }
.res.gold { background: var(--gold-12); color: var(--gold); }
.empty-state { padding: 28px 20px; display: grid; justify-items: center; }
.section-head .link { background: none; }

/* ---------- 28. Promotion moment ---------- */
.moment { position: absolute; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: radial-gradient(120% 70% at 50% 30%, rgba(212, 255, 63, 0.14), transparent 60%), rgba(9, 9, 11, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade 0.35s ease; }
.moment-in { width: 100%; display: grid; justify-items: center; }
.moment-in > .t-over { margin-bottom: 20px; font-size: 13px; }
.moment-rung { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 280px; padding: 14px 16px; border-radius: 16px; background: var(--s1); }
.moment-rung .lv { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--s3); font: 800 14px var(--sans); color: var(--t2); }
.moment-rung.prev { opacity: 0.45; transform: scale(0.94); }
.moment-rung.now { box-shadow: inset 0 0 0 1.5px var(--volt); background: var(--volt-08); animation: rise 0.7s 0.2s var(--ease) both; }
.moment-rung.now .lv { background: var(--volt); color: var(--volt-ink); }
.moment-arrow { color: var(--volt); margin: 10px 0; animation: rise 0.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
.cell.me .rank { color: var(--volt); font-size: 13px; }

.btn-text.cd { color: var(--down); }
.screen.ob-screen { padding-bottom: calc(var(--safe-bottom) + 24px); }
.dock { animation: fade 0.35s ease; }

/* =====================================================================
   v3 – tip sheets, league tiers, countdowns, tables (18 Nov 2026)
   ===================================================================== */

/* ---------- 29. Tier glow behind the main tabs ---------- */
.screen.tiered::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 460px; z-index: -1; pointer-events: none;
  background: radial-gradient(90% 65% at 50% -5%, var(--tglow), transparent 70%);
}

/* ---------- 30. League card ("Deine Liga"), themed per tier ---------- */
.lhero {
  position: relative; display: block; width: 100%; text-align: left; overflow: hidden; isolation: isolate;
  border-radius: 24px; padding: 18px 18px 16px; color: #fff;
  background: linear-gradient(140deg, var(--ta) 0%, var(--tb) 78%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 22px 44px -22px var(--tglow);
  transition: transform 0.15s var(--ease);
}
.lhero.tap:active { transform: scale(0.985); }
.lhero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lhero .emblem { flex: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }
.lhero .lt { color: var(--tc); opacity: 0.95; }
.lhero .lname { font: 800 26px/1.05 var(--display); font-stretch: 112%; letter-spacing: -0.01em; margin: 3px 0 2px; }
.lhero.big .lname { font-size: 30px; }
.lhero .lt2 { color: rgba(255, 255, 255, 0.7); }
.lhero .lp { font-size: 36px; line-height: 0.95; }
.lhero.big .lp { font-size: 42px; }
.lbar { height: 8px; margin: 16px 0 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); overflow: hidden; }
.lbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 55%, transparent), var(--tc)); box-shadow: 0 0 12px var(--tc); transition: width 1s var(--ease); }
.lfoot { font: 500 13px var(--sans); color: rgba(255, 255, 255, 0.72); gap: 8px; }
.lfoot b { color: #fff; font-weight: 700; }
.lfoot b.up { color: var(--volt); }
.lprot { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 10px; border-radius: 99px; background: rgba(0, 0, 0, 0.3); font: 600 12px var(--sans); color: var(--tc); }

/* tier patterns: the higher, the fancier */
.tier-amateur .lhero-bg { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 30px, transparent 30px 60px); }
.tier-bronze .lhero-bg { background: repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 7px); }
.tier-silber .lhero-bg { background: linear-gradient(118deg, transparent 28%, rgba(255, 255, 255, 0.16) 44%, transparent 58%), repeating-linear-gradient(118deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 6px); }
.tier-gold .lhero-bg { background: linear-gradient(115deg, transparent 38%, rgba(255, 236, 170, 0.42) 50%, transparent 62%); background-size: 260% 100%; animation: sheen 5s ease-in-out infinite; }
.tier-platin .lhero-bg { background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 62%), conic-gradient(from 200deg at 80% 10%, #ff8fd0, #8fc8ff, #9dffc4, #fff08a, #ff8fd0); background-size: 260% 100%, 100% 100%; mix-blend-mode: overlay; opacity: 0.85; animation: sheen 6s ease-in-out infinite, holo 12s linear infinite; }
.tier-platin { background: linear-gradient(140deg, #6b7088 0%, #2a2d3a 45%, #0d0e14 85%); }
.tier-cl .lhero-bg {
  background-image:
    radial-gradient(1.6px 1.6px at 12% 22%, #fff, transparent), radial-gradient(1.2px 1.2px at 30% 70%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 52% 18%, #fff, transparent), radial-gradient(1.2px 1.2px at 68% 58%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 86% 30%, #fff, transparent), radial-gradient(1.1px 1.1px at 92% 78%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 40% 42%, #fff, transparent), radial-gradient(1.4px 1.4px at 22% 88%, #fff, transparent),
    radial-gradient(2px 2px at 58% 84%, #fff, transparent), radial-gradient(1.2px 1.2px at 76% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 6% 60%, #fff, transparent), radial-gradient(2.2px 2.2px at 46% 8%, #cfe0ff, transparent),
    radial-gradient(1.3px 1.3px at 64% 36%, #fff, transparent), radial-gradient(1.6px 1.6px at 96% 52%, #cfe0ff, transparent),
    radial-gradient(60% 80% at 80% 0%, rgba(120, 160, 255, 0.35), transparent 70%);
  animation: twinkle 3.2s ease-in-out infinite alternate;
}
@keyframes sheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -130% 0; } }
@keyframes holo { to { filter: hue-rotate(360deg); } }
@keyframes twinkle { from { opacity: 0.55; } to { opacity: 1; } }

/* ---------- 31. Countdowns ---------- */
.cd-wrap { display: flex; justify-content: center; margin: 18px 0 4px; }
.cd-wrap.small { margin: 4px 0 16px; }
.cd-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.cd-tile {
  position: relative; display: grid; justify-items: center; gap: 3px; padding: 11px 0 9px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0.18) 50%, rgba(0, 0, 0, 0.3));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 6px 16px -8px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cd-tile b { font: 800 32px/1 var(--display); font-stretch: 75%; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.cd-tile i { font: 700 9.5px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--t3); font-style: normal; }
.cd-tile:last-child b { color: var(--volt); }
.hero.special .cd-tile:last-child b { color: var(--gold); }
.cd-wrap.small .cd-tile { padding: 8px 0 7px; }
.cd-wrap.small .cd-tile b { font-size: 24px; }
.cd-short { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 32. Next event (hero) ---------- */
.hero { padding: 16px 16px 18px; }
.hero .glow { opacity: 0.45; height: 75%; inset: -30% -20% auto; }
.hero-top { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.hero-top .chev, .ev-head .chev { color: var(--t3); flex: none; }
.hero .matchup { margin: 18px 0 18px; }
.hero .side .t-sub { font-weight: 600; }

/* ---------- 33. Tip-sheet slots (max. 3 per event) ---------- */
.slots-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 8px; gap: 8px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slots.single { grid-template-columns: 1fr; }
.slot { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 0; padding: 0 10px; border-radius: 12px; font: 600 13px var(--sans); transition: transform 0.12s var(--ease), background 0.2s; }
button.slot:active { transform: scale(0.96); }
.slot.add { color: var(--volt); background: var(--volt-08); border: 1.5px dashed rgba(212, 255, 63, 0.55); }
.slot.add.poor { color: var(--t3); background: transparent; border-color: var(--hair-2); }
.slot.empty { border: 1.5px dashed var(--hair); color: var(--t3); }
.slot.empty span { font: 700 12px var(--sans); opacity: 0.6; }
.slot.ready { justify-content: flex-start; background: rgba(255, 255, 255, 0.07); color: var(--t1); box-shadow: inset 0 0 0 1px var(--hair-2); }
.slot.ready > svg { margin-left: auto; color: var(--t3); flex: none; }
.slot .kit { width: 22px !important; height: 22px !important; flex: none; }
.slot.done { background: rgba(255, 255, 255, 0.05); }
.slot.done .res { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }
.slot.done .num { font-size: 16px; }
.slots.single .slot.ready { justify-content: center; }
.slots.single .slot.ready > svg { margin-left: 4px; }

/* ---------- 34. The week: one card per event ---------- */
.evlist { display: grid; gap: 12px; }
.ev { padding: 14px; border-radius: 22px; background: var(--s1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.ev.special { box-shadow: inset 0 0 0 1px rgba(242, 197, 92, 0.35); background: linear-gradient(160deg, rgba(242, 197, 92, 0.08), var(--s1) 55%); }
.ev-head { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin-bottom: 12px; }
.ev-head .cd-short { font-size: 19px; line-height: 1.1; color: var(--t1); }

/* ---------- 35. Tip-sheet editor ---------- */
.screen.editor .flow-head { grid-template-columns: 40px 1fr auto; }
.screen.editor .flow-head .ttl { text-align: left; }
.cd-chip { height: 32px; gap: 6px; padding: 0 10px; }
.cd-chip .cd-short { font: 700 13px var(--sans); color: var(--t1); }
.opp-strip { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 14px; margin: 4px 0 12px; border-radius: 16px; background: var(--rival-12); box-shadow: inset 0 0 0 1px rgba(122, 167, 255, 0.25); }
.opp-strip .chev { color: var(--t3); }
.schein {
  position: relative; margin-top: 8px; padding: 4px 16px; border-radius: 20px;
  background: linear-gradient(180deg, #1d1d23, #141418);
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 16px 32px -20px rgba(0, 0, 0, 0.8);
}
.schein::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, transparent, var(--volt), transparent); opacity: 0.7; }
.srow { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; text-align: left; }
.srow + .srow { box-shadow: inset 0 1px 0 var(--hair); }
.srow.empty .t-sub { color: var(--t3); }
.sn { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; background: var(--s3); font: 700 12px var(--sans); color: var(--t3); }
.sn.on { background: var(--volt); color: var(--volt-ink); }
.sn.vt { background: var(--gold-12); color: var(--gold); }
.pair { display: flex; gap: 3px; flex: none; }
.srow .pts { font-size: 22px; flex: none; }
.sdiv { margin: 2px -16px; border-top: 1.5px dashed var(--hair-2); }
.cell.match.dim { opacity: 0.4; }
.vt-wait { padding: 24px 20px; display: grid; justify-items: center; }
.worth .num { color: var(--gold); }
.kick-card { display: grid; justify-items: center; gap: 4px; text-align: center; }
.kick-card .cd-wrap { width: 100%; margin: 10px 0 8px; }

/* ---------- 36. Liga: underline tabs, tables, podium ---------- */
.tabs { display: flex; gap: 22px; box-shadow: inset 0 -1px 0 var(--hair); }
.tabs button { position: relative; height: 42px; font: 600 15px var(--sans); color: var(--t3); transition: color 0.2s; }
.tabs button.on { color: var(--t1); }
.tabs button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.5px; border-radius: 2px; background: var(--volt); }

.tbl { background: var(--s1); border-radius: 20px; overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }
.tr { position: relative; display: grid; grid-template-columns: 52px 1fr 28px 28px 56px; align-items: center; gap: 6px; width: 100%; min-height: 56px; padding: 8px 14px 8px 4px; text-align: left; font: 500 14px var(--sans); }
.tbl.clubs .tr { grid-template-columns: 52px 1fr 64px 56px; }
.tr + .tr { box-shadow: inset 0 1px 0 var(--hair); }
.tr.th { min-height: 36px; background: rgba(255, 255, 255, 0.025); font: 700 10px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--t3); }
button.tr:active { background: var(--s2); }
.c-rk { text-align: center; font: 700 13px var(--sans); color: var(--t2); font-variant-numeric: tabular-nums; }
.c-rk.top { color: var(--gold); }
.c-pl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.c-pl b { display: block; font: 600 14px var(--sans); color: var(--t1); }
.c-pl small { display: block; font: 500 11px var(--sans); color: var(--t3); margin-top: 1px; }
.c-n { text-align: center; color: var(--t2); font-variant-numeric: tabular-nums; }
.c-fans { text-align: right; color: var(--t2); font-variant-numeric: tabular-nums; font-size: 13px; }
.c-lp { text-align: right; font: 800 18px var(--display); font-stretch: 75%; color: var(--t1); font-variant-numeric: tabular-nums; }
.tr.th .c-lp, .tr.th .c-fans { font: inherit; color: inherit; }
.tr.me { background: linear-gradient(90deg, var(--volt-16), var(--volt-08) 55%, transparent); }
.tr.me .c-rk, .tr.me .c-lp, .tr.me .c-pl b { color: var(--volt); }
.tr.hot::before, .legend i { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--volt); }
.tr.gap { min-height: 26px; display: flex; justify-content: center; color: var(--t3); letter-spacing: 0.3em; font-size: 12px; }
.legend { display: flex; align-items: center; gap: 8px; margin: 10px 4px 0; }
.legend i { position: static; width: 3px; height: 14px; border-radius: 2px; flex: none; }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin-bottom: 12px; }
.pod { display: grid; justify-items: center; gap: 6px; text-align: center; min-width: 0; }
.pod b { font: 600 13px var(--sans); max-width: 100%; }
.pod .num { font-size: 16px; color: var(--t2); }
.pod .step { width: 100%; display: grid; place-items: center; border-radius: 14px 14px 6px 6px; font: 800 28px var(--display); font-stretch: 80%; }
.pod.p1 .step { height: 86px; background: linear-gradient(180deg, rgba(242, 197, 92, 0.38), rgba(242, 197, 92, 0.05)); color: var(--gold); box-shadow: inset 0 1px 0 rgba(255, 230, 160, 0.5); }
.pod.p2 .step { height: 62px; background: linear-gradient(180deg, rgba(220, 228, 240, 0.26), rgba(220, 228, 240, 0.04)); color: #dfe7f2; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.pod.p3 .step { height: 48px; background: linear-gradient(180deg, rgba(235, 171, 115, 0.32), rgba(235, 171, 115, 0.05)); color: #ebab73; box-shadow: inset 0 1px 0 rgba(255, 200, 150, 0.4); }

.me-rank { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.me-rank .num.big { font-size: 44px; line-height: 1; margin: 8px 0 4px; }
.ring-stat { position: relative; width: 92px; height: 92px; flex: none; display: grid; place-items: center; align-content: center; gap: 2px; text-align: center; }
.ring-stat::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--volt) calc(var(--p) * 1%), var(--s3) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px)); }
.ring-stat .num { font-size: 24px; line-height: 1; }
.ring-stat .num small { font-size: 14px; }
.ring-stat .t-sub { font-size: 10px; }

.cell.pyr { min-height: 58px; }
.cell.pyr .emblem { flex: none; }
.cell.pyr.now { background: linear-gradient(90deg, color-mix(in srgb, var(--tc) 22%, transparent), transparent 85%); }
.cell.pyr.past { opacity: 0.5; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tier-pill { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: linear-gradient(135deg, var(--ta), var(--tb)); font: 600 12px var(--sans); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.club-me { gap: 14px; }
.lpline { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; }
.lpline .lp { font-size: 40px; line-height: 0.9; }
.lhero.big .lpline .lp { font-size: 46px; }
.lpu { font: 800 13px var(--sans); color: var(--tc); letter-spacing: 0.06em; }
.lstake { display: inline-flex; align-items: center; gap: 6px; font: 500 12.5px var(--sans); color: rgba(255, 255, 255, 0.72); }
.lstake b { color: #fff; font-weight: 700; }
.lstake b.up { color: var(--volt); }
.lstake i { width: 1px; height: 12px; background: rgba(255, 255, 255, 0.25); margin: 0 2px; }
.lhero .lbar { margin-top: 10px; }
.lhero .chev { flex: none; }
.lhero .lname { overflow-wrap: anywhere; }
.c-pl { gap: 8px; }
.c-pl b { font-size: 13.5px; }

/* =====================================================================
   v4 "Floodlight Foil" (research: Apple Sports, Duolingo, EA FC, Sorare,
   Kickbase, Clash Royale – see GAME_DESIGN.md §13b). Later rules win.
   ===================================================================== */
:root {
  --bg: #060708;
  --bg-elev: #0d0f12;
  --s1: #0f1215;
  --s2: #171a1f;
  --s3: #20242a;
  --t1: rgba(255, 255, 255, 0.92);
  --t2: rgba(255, 255, 255, 0.6);
  --t3: rgba(255, 255, 255, 0.48);   /* was .38 – raised for readable contrast (≈ 4.9:1, WCAG AA) */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --edge: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --lift: 0 20px 40px -20px rgba(0, 0, 0, 0.85);
  --grain: 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='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* the pitch: a faint dot grid under everything (Kickbase) */
#phone { background: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1.3px) 0 0 / 18px 18px, var(--bg); }

/* stadium-board numerals: Archivo at its narrowest width, heavy, tabular */
.num, .cd-tile b, .lhero .lp, .board .big, .stepper .v, .opt .pts, .c-lp, .outcome .fs {
  font-family: var(--display); font-weight: 900; font-stretch: 62.5%; font-variation-settings: "wdth" 62;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
/* display labels: condensed caps with character instead of tiny grey text */
.section-head .t-over, .slots-head .t-over {
  font: 800 13px var(--display); font-stretch: 75%; font-variation-settings: "wdth" 75;
  letter-spacing: 0.08em; color: var(--t1);
}
.t-large { font-weight: 900; }

/* cards: inner border + top highlight + deep lift, no flat boxes */
.card, .group, .tbl, .ev, .hero, .schein, .opp-strip { box-shadow: var(--edge), var(--lift); }
.group, .tbl { background: var(--s1); }

/* grain on the "hero" materials only */
.hero::after, .lhero::after, .lstrip::after, .moment::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: var(--grain); mix-blend-mode: overlay; opacity: 0.09; border-radius: inherit;
}

/* floating glass tab bar with a pill for the active tab */
.tabbar {
  left: 14px; right: 14px; bottom: calc(var(--safe-bottom) + 10px); height: 64px; padding: 6px;
  border-radius: 26px; border-top: 0;
  background: rgba(16, 18, 22, 0.72);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 40px rgba(0, 0, 0, 0.6);
}
.tabbar button { position: relative; border-radius: 20px; transition: color 0.2s; }
.tabbar button.on { color: var(--t1); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.tabbar button.on svg { color: var(--volt); filter: drop-shadow(0 0 8px rgba(212, 255, 63, 0.45)); }
.screen { padding-bottom: calc(var(--safe-bottom) + 112px); }

/* springy presses everywhere */
.btn, .slot, .opt, .card.tap, .lhero.tap, .lstrip, button.cell, .tr { transition: transform 0.25s var(--spring), background 0.2s, box-shadow 0.2s; }
.btn:active, .lstrip:active { transform: scale(0.96); }
.btn-primary { box-shadow: 0 10px 30px -10px rgba(212, 255, 63, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-gold { box-shadow: 0 10px 30px -10px rgba(242, 197, 92, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5); }

/* countdown digits flip in when they change */
.cd-tile b.tickin, .bigcd .d.tickin { animation: flipin 0.32s var(--spring); }
@keyframes flipin { from { transform: translateY(-40%) rotateX(70deg); opacity: 0.2; } }

/* ---------- v4 Home: floodlight hero ---------- */
.hero.flood {
  padding: 16px 16px 18px; border-radius: 28px;
  background:
    radial-gradient(70% 45% at 0% 0%, color-mix(in srgb, var(--ca) 30%, transparent), transparent 70%),
    radial-gradient(70% 45% at 100% 0%, color-mix(in srgb, var(--cb) 30%, transparent), transparent 70%),
    linear-gradient(180deg, #121519, #0b0d10 70%);
}
.hero.flood .glow { display: none; }
/* two stadium light cones from the top corners, brighter the closer kickoff is */
.beam { position: absolute; top: -60px; width: 70%; height: 340px; pointer-events: none; z-index: 0; filter: blur(18px); opacity: calc(0.25 + var(--heat) * 0.55); mix-blend-mode: screen; }
.beam.l { left: -18%; background: conic-gradient(from 150deg at 18% 0%, transparent 0deg, rgba(255, 255, 240, 0.22) 14deg, transparent 34deg); }
.beam.r { right: -18%; background: conic-gradient(from 176deg at 82% 0%, transparent 0deg, rgba(255, 255, 240, 0.22) 20deg, transparent 40deg); }
.hero.flood > *:not(.beam) { position: relative; z-index: 1; }
.bigwrap { display: grid; justify-items: center; margin: 18px 0 6px; }
.kick-label { display: inline-flex; align-items: center; gap: 8px; font: 800 12px var(--display); font-stretch: 75%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t2); }
.kick-label .live-dot { font-size: 0; gap: 0; }
.kick-label .live-dot::before { background: var(--volt); box-shadow: 0 0 10px var(--volt); }
.bigcd { display: flex; align-items: flex-start; justify-content: center; gap: 2px; margin-top: 4px; perspective: 400px; }
.bigcd .unit { display: grid; justify-items: center; }
.bigcd .d { display: block; font: 900 84px/0.86 var(--display); font-stretch: 62.5%; font-variation-settings: "wdth" 62; font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.55)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.bigcd .unit:last-child .d { background: linear-gradient(180deg, #efffb0, var(--volt) 60%); -webkit-background-clip: text; background-clip: text; }
.hero.special .bigcd .unit:last-child .d { background: linear-gradient(180deg, #fff3cf, var(--gold) 60%); -webkit-background-clip: text; background-clip: text; }
.bigcd .unit i { font: 700 9.5px var(--sans); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t3); margin-top: 6px; }
.bigcd .sep { font: 900 60px/1 var(--display); font-stretch: 62.5%; color: rgba(255, 255, 255, 0.22); margin: 6px 2px 0; }
.facing { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 14px 0 18px; }
.facing .club { display: grid; justify-items: center; gap: 8px; font: 600 13px var(--sans); color: var(--t1); }
.facing .club .logo { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6)); }
.facing .club.l .logo { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--ca) 70%, transparent)) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6)); }
.facing .club.r .logo { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--cb) 70%, transparent)) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6)); }
.facing .mid { display: grid; justify-items: center; gap: 2px; }
.facing .mid .num { font-size: 30px; line-height: 1; }

/* ---------- v4 ticket-stub slots ---------- */
.slot {
  position: relative; height: 48px; border-radius: 10px;
  -webkit-mask: radial-gradient(circle 6px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 6px at 0 50%, transparent 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, transparent 97%, #000) right / 51% 100% no-repeat;
}
.slot .sno { position: absolute; top: 4px; left: 9px; font: 700 8.5px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.08em; opacity: 0.55; }
.slot.add { border: 0; background: linear-gradient(180deg, rgba(212, 255, 63, 0.16), rgba(212, 255, 63, 0.07)); box-shadow: inset 0 0 0 1px rgba(212, 255, 63, 0.4); }
.slot.add.poor { background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--hair-2); }
.slot.empty { border: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1px var(--hair); }
.slot.ready { background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.slot.done.volt { background: linear-gradient(180deg, rgba(212, 255, 63, 0.14), rgba(212, 255, 63, 0.04)); }
.slot.done.down { background: linear-gradient(180deg, rgba(255, 106, 106, 0.12), rgba(255, 106, 106, 0.03)); }

/* ---------- v4 week cards: tinted with the top game's colours ---------- */
.ev {
  position: relative; overflow: hidden; border-radius: 24px;
  background: linear-gradient(115deg, color-mix(in srgb, var(--ca) 16%, var(--s1)) 0%, var(--s1) 45%, var(--s1) 60%, color-mix(in srgb, var(--cb) 12%, var(--s1)) 100%);
}
.ev-head { margin-bottom: 10px; }
.ev-head .cd-short { font: 900 24px/1 var(--display); font-stretch: 62.5%; font-variation-settings: "wdth" 62; letter-spacing: -0.01em; }
.ev-top { display: flex; align-items: center; gap: 6px; margin: 0 2px 12px; font: 500 12px var(--sans); color: var(--t3); }
.ev-top span:first-of-type { color: var(--t2); }

/* ---------- v4 league strip (home) ---------- */
.lstrip {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; overflow: hidden; isolation: isolate;
  padding: 14px 16px 18px; border-radius: 22px; color: #fff;
  background: linear-gradient(120deg, var(--ta) 0%, var(--tb) 85%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 36px -20px var(--tglow);
}
.lstrip .emblem { flex: none; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.lstrip .lt { color: var(--tc); }
.lstrip .sname { font: 800 21px/1.1 var(--display); font-stretch: 110%; letter-spacing: -0.01em; }
.lstrip .lp { font-size: 30px; line-height: 0.9; }
.lstrip .lp small { font: 800 11px var(--sans); color: var(--tc); margin-left: 3px; letter-spacing: 0.06em; }
.lstrip .lt2 { font: 500 11.5px var(--sans); color: rgba(255, 255, 255, 0.65); margin-top: 3px; }
.lstrip .sbar { position: absolute; left: 16px; right: 16px; bottom: 8px; height: 3px; border-radius: 3px; background: rgba(0, 0, 0, 0.35); overflow: hidden; }
.lstrip .sbar i { display: block; height: 100%; border-radius: 3px; background: var(--tc); box-shadow: 0 0 8px var(--tc); }
.tier-gold.lstrip .lhero-bg, .tier-platin.lstrip .lhero-bg { animation-duration: 4s; }

/* ---------- v4 editor: club-tinted rows with one-tap tips ---------- */
.cell.match.qrow { display: block; padding: 14px 14px 12px; background: linear-gradient(100deg, color-mix(in srgb, var(--ca) 10%, transparent), transparent 40%, transparent 60%, color-mix(in srgb, var(--cb) 8%, transparent)); }
.cell.match.qrow.sel { background: linear-gradient(100deg, rgba(212, 255, 63, 0.09), transparent 70%); box-shadow: inset 3px 0 0 var(--volt); }
.qbar { display: grid; grid-template-columns: repeat(3, 1fr) 1.15fr; gap: 6px; margin-top: 12px; }
.qb { display: flex; align-items: baseline; justify-content: center; gap: 6px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); min-width: 0; padding: 0 6px; transition: transform 0.25s var(--spring), background 0.15s, box-shadow 0.15s; }
.qb span { font: 700 12px var(--sans); color: var(--t3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qb b { font: 900 20px/40px var(--display); font-stretch: 62.5%; font-variation-settings: "wdth" 62; color: var(--t1); font-variant-numeric: tabular-nums; }
.qb:active { transform: scale(0.94); }
.qb.on { background: var(--volt); box-shadow: 0 6px 18px -6px rgba(212, 255, 63, 0.6); }
.qb.on span, .qb.on b { color: var(--volt-ink); }
.qb.more span { color: var(--t2); }
.qb:disabled { opacity: 0.35; }
.cell.match.qrow.dim { opacity: 0.55; }

/* the stamp on a submitted ticket */
.stamp {
  position: absolute; right: 18px; top: 50%; z-index: 5; padding: 6px 14px; border-radius: 10px;
  font: 900 26px var(--display); font-stretch: 75%; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--volt); box-shadow: inset 0 0 0 3px var(--volt); background: rgba(6, 7, 8, 0.6);
  transform: translateY(-50%) rotate(-12deg); animation: stamp 0.45s var(--spring) both;
}
@keyframes stamp { from { transform: translateY(-50%) rotate(-24deg) scale(2.2); opacity: 0; } }

/* ---------- v4 live: duel bar in both club colours, glowing seam ---------- */
.tug2 { position: relative; display: flex; height: 10px; margin-top: 16px; border-radius: 99px; overflow: visible; background: rgba(255, 255, 255, 0.06); }
.tug2 i { height: 100%; transition: width 0.6s var(--spring); }
.tug2 .a { width: var(--s); border-radius: 99px 0 0 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--ca) 50%, #000), var(--ca)); }
.tug2 .b { flex: 1; border-radius: 0 99px 99px 0; background: linear-gradient(90deg, var(--cb), color-mix(in srgb, var(--cb) 50%, #000)); }
.tug2 .seam { position: absolute; top: -5px; bottom: -5px; left: var(--s); width: 4px; margin-left: -2px; border-radius: 4px; background: var(--volt); box-shadow: 0 0 12px var(--volt), 0 0 24px rgba(212, 255, 63, 0.6); transition: left 0.6s var(--spring); }
.board .big { font-size: 56px; line-height: 0.9; }

/* ---------- v4 result: staged reveal + stadium-board word ---------- */
.outcome .word { font: 900 92px/0.9 var(--display); font-stretch: 62.5%; font-variation-settings: "wdth" 62; text-transform: uppercase; letter-spacing: -0.01em; }
.outcome.win .word { background: linear-gradient(180deg, #f4ffcf, var(--volt) 55%, #9ec21c); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 30px rgba(212, 255, 63, 0.35)); }
.outcome.loss .word { color: rgba(255, 255, 255, 0.9); }
.outcome .fs { font-size: 40px; }
.staged > * { animation: beat 0.55s var(--spring) both; }
.staged > *:nth-child(1) { animation-delay: 0.05s; }
.staged > *:nth-child(2) { animation-delay: 0.55s; }
.staged > *:nth-child(3) { animation-delay: 0.85s; }
.staged > *:nth-child(4) { animation-delay: 1.05s; }
.staged > *:nth-child(n+5) { animation-delay: 1.25s; }
.staged .outcome .word { animation: slam 0.6s 0.25s var(--spring) both; }
@keyframes beat { from { opacity: 0; transform: translateY(18px); } }
@keyframes slam { from { opacity: 0; transform: scale(1.6); filter: blur(6px); } }
.qb.more { align-items: center; } .qb.more svg { color: var(--t3); }
/* disabled main buttons: calm grey instead of a murky olive */
.btn-primary:disabled, .btn-gold:disabled { opacity: 1; background: var(--s2); color: var(--t3); box-shadow: inset 0 0 0 1px var(--hair); }

/* ---------- v4 profile: the player card (own design, club colours + tier foil) ---------- */
.pcard {
  position: relative; overflow: hidden; isolation: isolate; margin-top: 4px; padding: 18px 20px 18px; border-radius: 28px; color: #fff;
  background:
    radial-gradient(90% 70% at 85% 10%, color-mix(in srgb, var(--ca) 60%, transparent), transparent 70%),
    linear-gradient(155deg, color-mix(in srgb, var(--ca) 45%, #0b0d10) 0%, #0d0f12 62%, color-mix(in srgb, var(--tc) 14%, #0d0f12) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 26px 50px -24px color-mix(in srgb, var(--ca) 70%, transparent);
}
.pcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain); mix-blend-mode: overlay; opacity: 0.12; pointer-events: none; }
.pc-shine { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.18) 48%, transparent 60%); background-size: 260% 100%; animation: sheen 6s ease-in-out infinite; }
.pc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.pc-top .col { gap: 10px; justify-items: center; }
.pc-num { font: 900 54px/0.85 var(--display); font-stretch: 62.5%; font-variation-settings: "wdth" 62; letter-spacing: -0.02em; }
.pc-kit { width: 190px; height: 170px; margin: -8px -14px 0 0; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); transition: transform 0.3s var(--spring); }
.pc-kit:active { transform: scale(0.96) rotate(-2deg); }
.pc-kit svg { width: 100%; height: 100%; }
.pc-name { margin-top: 6px; font: 800 30px/1 var(--display); font-stretch: 112%; letter-spacing: -0.01em; }
.pc-sub { margin-top: 6px; font: 500 13px var(--sans); color: rgba(255, 255, 255, 0.72); }
.pc-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.pc-stats div { display: grid; justify-items: center; gap: 4px; }
.pc-stats div + div { box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.1); }
.pc-stats b { font-size: 30px; line-height: 0.9; }
.pc-stats b small { font-size: 16px; }
.pc-stats span { font: 600 10.5px var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.pc-form { display: flex; align-items: center; gap: 5px; margin-top: 14px; }
.pc-form span { font: 700 10.5px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-right: 4px; }
.pc-form i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 800 11px var(--sans); font-style: normal; }
.pc-form i.w { background: var(--volt); color: var(--volt-ink); }
.pc-form i.l { background: rgba(255, 106, 106, 0.9); color: #2a0606; }
.pc-form i.d { background: var(--gold); color: #2a1d00; }

/* Duolingo-style zone label inside the league table */
.tr.zone { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; font: 800 11px var(--display); font-stretch: 80%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--volt); background: linear-gradient(90deg, rgba(212, 255, 63, 0.14), transparent 80%); }
.pc-stats span { font-size: 9.5px; letter-spacing: 0.04em; }

/* ---------- v4 intro: floodlit arena stage ---------- */
.ob-stage.arena { position: relative; margin: 0 calc(-1 * var(--pad)); overflow: hidden; isolation: isolate;
  background: radial-gradient(45% 40% at 22% 55%, color-mix(in srgb, var(--ca) 28%, transparent), transparent 70%), radial-gradient(45% 40% at 78% 55%, color-mix(in srgb, var(--cb) 28%, transparent), transparent 70%); }
.ob-stage.arena .beam { top: -40px; height: 420px; z-index: -1; }
.ob-stage .pitch { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 50% 55%, transparent 118px, rgba(255, 255, 255, 0.07) 119px, rgba(255, 255, 255, 0.07) 120.5px, transparent 121.5px),
              linear-gradient(90deg, transparent calc(50% - 0.75px), rgba(255, 255, 255, 0.07) calc(50% - 0.75px), rgba(255, 255, 255, 0.07) calc(50% + 0.75px), transparent calc(50% + 0.75px));
  -webkit-mask: radial-gradient(70% 60% at 50% 55%, #000 40%, transparent 85%); mask: radial-gradient(70% 60% at 50% 55%, #000 40%, transparent 85%); }
.ob-art { position: relative; z-index: 1; width: 100%; display: grid; place-items: center; padding: 0 var(--pad); }
.ob-vs { gap: 10px; }
.ob-vsword { font: 900 44px/1 var(--display); font-stretch: 62.5%; font-variation-settings: "wdth" 62; color: var(--volt); text-shadow: 0 0 24px rgba(212, 255, 63, 0.5); }
.ob-copy .t-large { font-size: 36px; }
.ob-stage.arena { -webkit-mask: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent); mask: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent); }
.vs-arena { padding: 36px var(--pad) 28px; margin-bottom: 8px; }
.vs-arena .vs-stage { position: relative; z-index: 1; margin: 0; }
.vs-arena .vs-mid { margin-top: -46px; }
.vs-arena .pitch { background: radial-gradient(circle at 50% 42%, transparent 84px, rgba(255, 255, 255, 0.08) 85px, rgba(255, 255, 255, 0.08) 86.5px, transparent 87.5px), linear-gradient(90deg, transparent calc(50% - 0.75px), rgba(255, 255, 255, 0.08) calc(50% - 0.75px), rgba(255, 255, 255, 0.08) calc(50% + 0.75px), transparent calc(50% + 0.75px)); }

/* =====================================================================
   v5 refine (18 Nov): everything a notch smaller and calmer
   ===================================================================== */
:root { --pad: 18px; --tab-h: 58px; }
.t-large { font-size: 28px; }
.ob-copy .t-large { font-size: 30px; }
.t-title { font-size: 20px; }
.t-head { font-size: 16px; }
.btn { height: 50px; font-size: 15.5px; border-radius: 15px; }
.btn-sm { height: 34px; }
.section { margin-top: 28px; }
.section-head { margin-bottom: 10px; }
.section-head .t-over, .slots-head .t-over { font-size: 12px; }
.topbar { height: 44px; }
.balance { height: 30px; font-size: 13px; }

/* tab bar: slimmer */
.tabbar { height: 58px; border-radius: 22px; padding: 5px; }
.tabbar button { border-radius: 17px; font-size: 10.5px; gap: 3px; }
.tabbar button svg { width: 21px; height: 21px; }
.screen { padding-bottom: calc(var(--safe-bottom) + 100px); }

/* home: league strip */
.lstrip { padding: 12px 14px 16px; border-radius: 20px; gap: 10px; }
.lstrip .sname { font-size: 18px; }
.lstrip .lp { font-size: 26px; }
.lstrip .lt2 { font-size: 11px; }
.lstrip .emblem { width: 34px; height: 38px; }

/* home: hero – countdown still the star, but smaller */
.hero.flood { padding: 14px 14px 16px; border-radius: 24px; }
.bigwrap { margin: 14px 0 2px; }
.bigcd .d { font-size: 62px; }
.bigcd .sep { font-size: 44px; margin: 4px 1px 0; }
.bigcd .unit i { font-size: 8.5px; margin-top: 5px; }
.kick-label { font-size: 11px; }
.facing { margin: 12px 0 14px; }
.facing .club { font-size: 12.5px; gap: 6px; }
.facing .club .logo { width: 48px; height: 48px; }
.facing .mid .num { font-size: 24px; }

/* tip-sheet tickets: classic stub  [ 1 ┆ content ] */
.slots { gap: 6px; }
.slot {
  display: grid; grid-template-columns: 22px 1fr; align-items: center; justify-content: stretch; gap: 0;
  height: 38px; padding: 0; border-radius: 9px; font: 600 12.5px var(--sans); text-align: left;
  -webkit-mask: radial-gradient(circle 4px at 22px 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 4px at 22px 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 4px at 22px 0, transparent 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 4px at 22px 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
}
.slot .sno { position: static; display: grid; place-items: center; height: 100%; font: 800 11px var(--display); font-stretch: 75%; opacity: 0.7; letter-spacing: 0; border-right: 1.5px dashed currentColor; border-right-color: rgba(255, 255, 255, 0.16); }
.slot .sbody { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; padding: 0 8px; }
.slot .sbody svg { flex: none; }
.slot.add { color: var(--volt); background: linear-gradient(180deg, rgba(212, 255, 63, 0.15), rgba(212, 255, 63, 0.07)); box-shadow: inset 0 0 0 1px rgba(212, 255, 63, 0.35); }
.slot.add .sno { border-right-color: rgba(212, 255, 63, 0.35); }
.slot.add.poor { color: var(--t3); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--hair-2); }
.slot.empty { color: var(--t3); background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--hair); }
.slot.empty .sbody { opacity: 0.75; }
.slot.ready { color: var(--t1); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.slot.ready .kit { width: 18px !important; height: 18px !important; }
.slot.done.volt { color: var(--t1); }
.slot.done .res { width: 18px; height: 18px; border-radius: 5px; font-size: 10px; }
.slot.done .num { font-size: 14px; }
.slots.single .slot { grid-template-columns: 22px 1fr; }
.slot .coin { width: 12px; height: 12px; }

/* week cards: calm countdown pill instead of big digits */
.ev { padding: 12px 12px 12px; border-radius: 20px; }
.evlist { gap: 10px; }
.ev-head { gap: 10px; margin-bottom: 8px; }
.ev-head .comp-badge { width: 36px !important; height: 36px !important; }
.ev-top { margin: 0 2px 10px; font-size: 11.5px; }
.cd-pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border-radius: 99px; flex: none; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); color: var(--t2); font: 600 12px var(--sans); font-variant-numeric: tabular-nums; }
.cd-pill svg { color: var(--t3); }
.ev-head .cd-pill .cd-short { font: 600 12px var(--sans); font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--t2); }
/* Volltreffer score picker: compact */
.score-pick { padding: 16px 12px 12px; }
.score-pick .side { gap: 8px; }
.score-pick .side .logo { width: 36px; height: 36px; }
.stepper .v { font-size: 46px; }
.stepper button { width: 36px; height: 36px; }
.score-pick .colon { font-size: 32px; margin-top: 30px; }
.worth { padding: 12px 16px; }
.worth .num { font-size: 24px; }
.qb.more.on span { color: var(--volt-ink); }
/* a tip both players have: split dot, and a lime→blue chip when it hits */
.mark.both i { background: linear-gradient(90deg, var(--volt) 50%, var(--rival) 50%); }
.mark.both.hit { background: linear-gradient(90deg, var(--volt), var(--rival)); color: #0b0f00; }
.mark.both.hit i { background: #0b0f00; }
.mark.vt.me i { background: var(--volt); } .mark.vt.opp i { background: var(--rival); }
.kit-preview { background: radial-gradient(42% 46% at 50% 36%, color-mix(in srgb, var(--ca) 32%, transparent), transparent 75%); margin: 0 calc(-1 * var(--pad)); }
.coin-card { background: radial-gradient(70% 90% at 50% 0%, rgba(242, 197, 92, 0.2), transparent 70%), var(--s1); }
.coin-card .num { color: var(--gold); text-shadow: 0 0 24px rgba(242, 197, 92, 0.35); }
.pod.p1 .kit { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold), 0 0 28px rgba(242, 197, 92, 0.45); }
.pod.p2 .kit { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px #dfe7f2; }
.pod.p3 .kit { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px #ebab73; }
/* player card: a bit more compact */
.pcard { padding: 16px 18px 16px; border-radius: 24px; }
.pc-num { font-size: 44px; }
.pc-kit { width: 150px; height: 134px; margin: -6px -10px 0 0; }
.pc-top .col { gap: 8px; }
.pc-top .col .emblem { width: 28px; height: 32px; }
.pc-top .col .logo { width: 28px; height: 28px; }
.pc-name { font-size: 26px; margin-top: 2px; }
.pc-stats { margin-top: 14px; padding-top: 12px; }
.pc-stats b { font-size: 26px; }
.pc-form { margin-top: 12px; }

/* ---------- v6 refine ---------- */
/* search: radar with a rotating sweep, club logo on top */
.radar .kit-wrap .club { z-index: 2; }
.radar { width: 230px; height: 230px; }
.radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(212, 255, 63, 0.28), rgba(212, 255, 63, 0) 70deg, transparent 360deg); animation: sweep 2.4s linear infinite; -webkit-mask: radial-gradient(farthest-side, #000 98%, transparent); mask: radial-gradient(farthest-side, #000 98%, transparent); }
.radar::after { content: ""; position: absolute; inset: 22%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.radar i { border-color: rgba(212, 255, 63, 0.18); }
@keyframes sweep { to { transform: rotate(360deg); } }
/* tip panel: bright point numbers */
.opt .pts { color: var(--t1); }
.opt .lbl { color: var(--t2); }
.schein.small { pointer-events: none; }
.schein.small .srow { min-height: 42px; }
.stamp.still { animation: none; font-size: 18px; padding: 4px 10px; right: 12px; opacity: 0.9; }
.stamp { right: 58px; } .stamp.still { right: 52px; }
/* special events: gold tickets and gold live dot */
.hero.special .slot.add, .ev.special .slot.add { color: var(--gold); background: linear-gradient(180deg, rgba(242, 197, 92, 0.16), rgba(242, 197, 92, 0.06)); box-shadow: inset 0 0 0 1px rgba(242, 197, 92, 0.4); }
.hero.special .slot.add .sno, .ev.special .slot.add .sno { border-right-color: rgba(242, 197, 92, 0.4); }
.hero.special .kick-label .live-dot::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
/* motion: picked tip pops in, live points bump */
.qb.pop { animation: pop 0.4s var(--spring); }
.srow.pop { animation: rowin 0.45s var(--spring); }
.board .big.bump { display: inline-block; animation: bump 0.5s var(--spring); }
@keyframes pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.08); } }
@keyframes rowin { from { opacity: 0; transform: translateX(-14px); background: rgba(212, 255, 63, 0.18); } }
@keyframes bump { 0% { transform: translateY(8px) scale(0.9); opacity: 0.4; } 60% { transform: translateY(-3px) scale(1.06); } }

/* ---------- v7: mixed-event badge (league logos) ----------
   One round chip per league in the event. Sized and spaced so they
   never cover each other: n1 = one big chip, n2 = diagonal pair,
   n3 = triangle (one on top, two below), n4 = 2×2 grid. */
.league-cluster { position: relative; width: 100%; height: 100%; display: block; }
.league-cluster i {
  position: absolute; width: 46%; height: 46%; border-radius: 50%;
  background: #1b1f23; box-shadow: 0 0 0 1.5px var(--s2), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: grid; place-items: center;
}
.league-cluster img { width: 64%; height: 64%; object-fit: contain; }
.comp-badge .league-cluster img.mono { filter: brightness(0) invert(1); }
/* one league: a single big chip */
.league-cluster.n1 .lc0 { width: 74%; height: 74%; top: 13%; left: 13%; }
/* two leagues: top-left and bottom-right */
.league-cluster.n2 i { width: 50%; height: 50%; }
.league-cluster.n2 .lc0 { top: 5%; left: 5%; }
.league-cluster.n2 .lc1 { bottom: 5%; right: 5%; }
/* three leagues: triangle */
.league-cluster.n3 .lc0 { top: 6%; left: 27%; }
.league-cluster.n3 .lc1 { bottom: 6%; left: 4%; }
.league-cluster.n3 .lc2 { bottom: 6%; right: 4%; }
/* four leagues: 2×2 grid */
.league-cluster.n4 i { width: 45%; height: 45%; }
.league-cluster.n4 .lc0 { top: 4%; left: 4%; }
.league-cluster.n4 .lc1 { top: 4%; right: 4%; }
.league-cluster.n4 .lc2 { bottom: 4%; left: 4%; }
.league-cluster.n4 .lc3 { bottom: 4%; right: 4%; }

/* ---------- v8: league badge on the "Gegner gefunden" screen ----------
   Emblem + league name + LP under each player, in the tier colours. */
.lg-tag {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 5px 10px 5px 6px; border-radius: 12px; text-align: left;
  background: color-mix(in srgb, var(--ta) 32%, rgba(10, 12, 14, 0.7));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tc) 22%, transparent);
}
.lg-tag svg { flex: none; }
.lg-tag .col { min-width: 0; line-height: 1.15; }
.lg-tag .nm { font-size: 12px; font-weight: 700; color: var(--tc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-tag .lp { font: 700 12px var(--display); font-stretch: 112%; color: var(--t2); font-variant-numeric: tabular-nums; }
.vs-side .lg-tag { margin-top: -4px; }
/* note when the opponent comes from another league */
.vs-note {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  margin: 14px auto 0; width: fit-content; padding: 6px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 600; color: var(--t2); background: rgba(255, 255, 255, 0.06);
}
.vs-note svg { width: 14px; height: 14px; }
.vs-note.up { color: var(--volt); background: rgba(212, 255, 63, 0.1); }

/* ---------- v9: Volltreffer must fit your tip – friendly explanation + fixes ----------
   Fits: points + a small line "verstärkt deinen Tipp …".
   Doesn't fit: a calm explanation (no red) and two one-tap fixes. */
.worth > .col { flex: 1; min-width: 0; }
.worth .num { flex: none; white-space: nowrap; margin-left: 12px; }
.worth .boost { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12px; color: var(--t3); min-width: 0; }
.worth .boost svg { width: 13px; height: 13px; color: var(--volt); flex: none; }
.vt-fix { padding: 14px 16px 16px; border-top: 1px solid var(--hair); }
.vt-fix .why { display: flex; gap: 10px; align-items: flex-start; }
.vt-fix .why svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 1px; }
.vt-fix .why .t-sub { margin-top: 2px; font-size: 12.5px; line-height: 1.35; }
.vt-fix .fixes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.vt-fix .fix {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: 9px 12px; border-radius: 12px; text-align: left;
  background: var(--s3); box-shadow: inset 0 0 0 1px var(--hair);
}
.vt-fix .fix .k { white-space: nowrap; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--t3); }
.vt-fix .fix .v { font-size: 14px; font-weight: 700; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vt-fix .fix .v b { color: var(--volt); font-weight: 700; margin-left: 4px; }
.vt-fix .fix.main { background: rgba(212, 255, 63, 0.08); box-shadow: inset 0 0 0 1px rgba(212, 255, 63, 0.35); }
.vt-fix .fix:active { transform: scale(0.97); }

/* =====================================================================
   v10: Freunde tab (friends.js) – list, online status, feed, invite reward
   ===================================================================== */
/* online status dot on avatars: green = online, volt = playing right now */
.fr-av, .online-strip button { position: relative; display: inline-flex; }
.dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2.5px var(--bg); }
.dot.online { background: #3ddc84; }
.dot.playing { background: var(--volt); animation: pulse 1.6s ease-in-out infinite; }
.dot.off { display: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 6px rgba(212, 255, 63, 0.25); } }
.st-online { color: #3ddc84 !important; }
.st-playing { color: var(--volt) !important; }
/* row: avatar · name + status · league + LP */
.fr-row { width: 100%; text-align: left; gap: 12px; }
.fr-lg { display: inline-flex; align-items: center; gap: 7px; flex: none; text-align: right; }
.fr-lg .col { line-height: 1.15; align-items: flex-end; }
.fr-lg b { font: 700 14px var(--display); font-stretch: 112%; color: var(--t1); }
.fr-lg small { font-size: 11px; color: var(--tc); }
/* horizontal strip of who's online */
.online-strip { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 2px; scrollbar-width: none; }
.online-strip::-webkit-scrollbar { display: none; }
.online-strip button { flex-direction: column; align-items: center; gap: 6px; width: 60px; flex: none; }
.online-strip button .dot { right: 4px; bottom: 22px; }
.online-strip span.trunc { max-width: 60px; font-size: 12px; color: var(--t2); }
/* empty state */
.fr-empty { text-align: center; padding: 28px 20px 18px; }
.fr-empty-art { display: flex; justify-content: center; margin-bottom: 16px; }
.fr-empty-art .kit { margin: 0 -8px; box-shadow: 0 0 0 3px var(--s1); }
.fr-empty-art .kit:nth-child(2) { transform: translateY(-8px) scale(1.12); z-index: 1; }
/* invite reward card */
.inv-card { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; cursor: pointer;
  background: linear-gradient(120deg, rgba(255, 214, 102, 0.12), var(--s1) 60%); box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.25); }
.inv-card.done { cursor: default; }
.inv-kit { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 4px 10px rgba(255, 214, 102, 0.3)); }
.inv-kit svg { width: 100%; height: 100%; }
.inv-card .t-sub { margin-top: 2px; }
.inv-bar { display: block; height: 5px; margin-top: 9px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.inv-bar i { display: block; height: 100%; border-radius: 3px; background: var(--gold); }
/* feed */
.fd-day { margin-top: 14px; }
.fd-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--hair); }
.fd-av { flex: none; }
.fd-text { font-size: 14.5px; line-height: 1.35; color: var(--t2); margin: 1px 0 2px; }
.fd-text b { color: var(--t1); font-weight: 650; }
.fd-art { flex: none; width: 40px; display: grid; place-items: center; margin-top: 2px; }
.fd-pts { font: 800 15px var(--display); font-stretch: 112%; color: var(--gold); }
.fd-pts svg { width: 22px; height: 22px; color: var(--down); }
.rx { display: flex; gap: 6px; margin-top: 8px; }
.rx button { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 9px; border-radius: 99px; font-size: 14px;
  background: var(--s2); box-shadow: inset 0 0 0 1px var(--hair); transition: transform 0.15s var(--spring); }
.rx button span { font-size: 12px; font-weight: 700; color: var(--t2); }
.rx button.on { background: rgba(212, 255, 63, 0.12); box-shadow: inset 0 0 0 1px rgba(212, 255, 63, 0.45); }
.rx button.on span { color: var(--volt); }
.rx button:active { transform: scale(0.9); }
/* friend profile: last 5 results */
.form-pips { display: inline-flex; gap: 4px; }
.pip { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.pip.w { background: rgba(212, 255, 63, 0.16); color: var(--volt); }
.pip.l { background: rgba(255, 92, 92, 0.14); color: var(--down); }
.pip.d { background: rgba(255, 255, 255, 0.08); color: var(--t2); }
/* add-friend sheet: your code */
.code-box { text-align: center; padding: 18px 16px 16px; border-radius: 18px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--hair); }
.code-box .code { font: 800 34px var(--display); font-stretch: 118%; letter-spacing: 0.06em; color: var(--volt); margin: 6px 0 14px; }
/* small "Als Freund" button in a section header */
.chip-btn { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 650;
  color: var(--t1); background: var(--s2); box-shadow: inset 0 0 0 1px var(--hair); }
.chip-btn svg { width: 14px; height: 14px; }
.chip-btn.done { color: var(--volt); }
/* jersey editor: locked cosmetic + gold edge for cosmetics */
.style-grid button { position: relative; }
.style-grid button.cosmetic { box-shadow: inset 0 0 0 1px rgba(255, 214, 102, 0.4); }
.style-grid button.locked svg { opacity: 0.35; filter: grayscale(0.6); }
.style-grid button .lock { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.6); color: var(--gold); }
.style-grid button .lock svg { width: 13px; height: 13px; opacity: 1; filter: none; }
/* four tabs in Liga: a bit less gap */
.tabs { gap: 18px; }
/* tab bar with 4 tabs */
.tabbar button span { white-space: nowrap; }
.tabbar { grid-template-columns: repeat(4, 1fr); }
/* friends table "Diese Woche": place · player · LP gained */
.tbl.wk .tr { grid-template-columns: 52px 1fr 64px; }
.tbl.wk .c-lp { text-align: right; font: 800 15px var(--display); font-stretch: 112%; }

/* =====================================================================
   v11: Abzeichen (badges.js) – medals, showcase, grid, detail, unlock moment
   ===================================================================== */
.medal { display: block; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45)); }
.medal.locked { filter: none; }
/* Platin: a slow holo shimmer */
.medal.platin { animation: holo 6s linear infinite; }
@keyframes holo { 0%, 100% { filter: drop-shadow(0 6px 14px rgba(120, 150, 255, 0.35)) hue-rotate(0deg); } 50% { filter: drop-shadow(0 6px 18px rgba(200, 120, 255, 0.4)) hue-rotate(35deg); } }
.medal-card { padding: 16px 14px 18px; }
/* showcase: your 3 best */
.medal-show { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--hair); }
.medal-show button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.medal-show b { font-size: 12.5px; font-weight: 700; color: var(--t1); text-align: center; line-height: 1.2; margin-top: 4px; }
.medal-show small { font-size: 11px; color: var(--t3); }
/* grid of all badges, per group */
.medal-group { display: block; margin: 14px 2px 8px; }
.medal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
.medal-grid button { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.medal-grid span { max-width: 100%; font-size: 11px; color: var(--t2); text-align: center; }
.medal-grid button:active, .medal-show button:active { transform: scale(0.94); }
/* detail sheet */
.badge-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 8px 20px; }
.badge-hero .t-title { margin-top: 12px; }
.badge-prog { width: 100%; margin-top: 14px; display: grid; gap: 6px; }
.badge-prog .inv-bar { margin-top: 0; height: 7px; }
.badge-prog .inv-bar i { background: var(--volt); }
.medal-mini { flex: none; display: inline-flex; }
.rare-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 99px; font-size: 10.5px; font-weight: 800; letter-spacing: .03em;
  color: #d9b8ff; background: rgba(170, 110, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(170, 110, 255, 0.4); vertical-align: 1px; }
/* result screen row with a medal */
.rw-ic.medal { background: none; }
.rw-ic.medal .medal { width: 30px; height: 30px; }
/* unlock moment */
.badge-moment .badge-pop { margin-top: 18px; animation: medalIn 0.9s var(--spring) both; }
@keyframes medalIn { 0% { transform: scale(0.2) rotateY(180deg); opacity: 0; } 60% { transform: scale(1.08) rotateY(0); opacity: 1; } 100% { transform: scale(1); } }
.badge-moment .moment-in { align-items: center; }
.lvl-pill { margin-top: 8px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.lvl-pill.t1 { color: #f0b27a; background: rgba(240, 178, 122, 0.14); }
.lvl-pill.t2 { color: #e8eef6; background: rgba(232, 238, 246, 0.12); }
.lvl-pill.t3 { color: #ffd666; background: rgba(255, 214, 102, 0.14); }
.lvl-pill.t4 { color: #c9d6ff; background: linear-gradient(90deg, rgba(150, 180, 255, 0.2), rgba(220, 150, 255, 0.2)); }

/* =====================================================================
   v12: Vitrine – 3 showcase badges, visible to everyone
   ===================================================================== */
/* medal pins under an avatar */
.pins { display: inline-flex; gap: 3px; justify-content: center; }
.pins > span { display: inline-flex; }
.pins .medal { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5)); }
.vs-side .pins { margin-top: -18px; position: relative; z-index: 2; }   /* tucked under the jersey, "on" the avatar */
.pcard .pins { margin-top: 10px; justify-content: flex-start; }
/* the "Vitrine" header in the profile badge card */
.vitrine-head { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.vitrine-head .link { font-size: 13px; font-weight: 650; color: var(--volt); }
/* empty showcase slot */
.slot-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 104px;
  border-radius: 16px; border: 1.5px dashed rgba(255, 255, 255, 0.14); color: var(--t3); }
.slot-empty span { font: 800 22px var(--display); }
.slot-empty small { font-size: 11px; }
.medal-show.picked { padding-bottom: 0; border-bottom: 0; }
/* picker: chosen medals get a lime ring */
.medal-grid button.chosen .medal { filter: drop-shadow(0 0 0 2px var(--volt)) drop-shadow(0 0 10px rgba(212, 255, 63, 0.5)); }
.medal-grid button.chosen span { color: var(--volt); font-weight: 700; }
/* long result words ("NIEDERLAGE") must fit the phone width */
.outcome .word.long { font-size: 70px; }
/* small phones (≤ 380px, e.g. iPhone SE, many Androids): 4 tabs must fit on one line */
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { white-space: nowrap; flex: none; }
@media (max-width: 380px) {
  .tabs { gap: 14px; }
  .tabs button { font-size: 14px; }
}

/* =====================================================================
   v13: Derby-Wappen – a crest in a flame ring
   ===================================================================== */
.dcrest { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 120, 40, 0.18) 55%, transparent 56%),
              conic-gradient(from 200deg, #ff3d2e, #ff9a1f, #ffd34d, #ff9a1f, #ff3d2e);
  box-shadow: 0 0 14px rgba(255, 110, 40, 0.45); }
.dcrest::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--s1); }
.dcrest > *:not(.dflame) { position: relative; }
.dcrest .dflame { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #ffb02e, #ff3d2e); color: #fff; box-shadow: 0 0 0 2px var(--s1); }
.dcrest .dflame svg { width: 11px; height: 11px; }
.dcrest.off { background: rgba(255, 255, 255, 0.06); box-shadow: none; }
.dcrest.off img, .dcrest.off svg.logo { filter: grayscale(1) brightness(0.6); opacity: 0.3; }
.dcrest.off .dflame { background: #3a3f46; color: #7c838c; }
.derby-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 8px; margin-top: 12px; }
.derby-row .dc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.derby-row b { font-size: 12.5px; color: var(--t1); margin-top: 2px; }
.derby-row small { font-size: 10.5px; color: var(--t3); line-height: 1.2; }
.derby-row .n { position: absolute; top: 0; right: 14px; padding: 0 5px; border-radius: 6px; background: #ff7a1f; color: #1f0a00; font: 800 10px var(--sans); }
.rw-ic.derby { background: none; }

/* =====================================================================
   v14: share cards (share.js)
   ===================================================================== */
.share-preview { display: block; width: 62%; margin: 0 auto; border-radius: 18px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.share-wait { display: flex; align-items: center; justify-content: center; gap: 10px; height: 280px; color: var(--t2); }
.share-wait svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.share-chip { margin-top: 12px; }
.badge-moment .share-it { margin-top: 6px; }
a.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* =====================================================================
   v15: accessibility
   ===================================================================== */
/* keyboard users see where they are (mouse/touch taps don't show the ring) */
:focus-visible { outline: 2.5px solid var(--volt); outline-offset: 3px; border-radius: 10px; }
button:focus:not(:focus-visible) { outline: none; }
/* "Reduce motion" in the phone's settings: no flying, flipping, shimmering or confetti */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .confetti { display: none !important; }
  .medal.platin { animation: none; }
}

/* =====================================================================
   v16: admin – "Spiele der Woche"
   ===================================================================== */
.adm-game { width: 100%; text-align: left; gap: 10px; opacity: 0.55; }
.adm-game.on { opacity: 1; }
.adm-game:disabled { cursor: default; }
.adm-check { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25); color: #10140a; }
.adm-game.on .adm-check { background: var(--volt); box-shadow: none; }
.adm-appeal { flex: none; min-width: 38px; text-align: right; font: 700 13px var(--display); color: var(--t2); }
.adm-event .section-head .chip { font-size: 11px; }

/* =====================================================================
   v17: milestone 3 – live duel score on the server
   ===================================================================== */
.duel-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 14px 16px; }
.duel-score .num { font: 900 34px/1 var(--display); font-stretch: 75%; }
.duel-score .col.center { align-items: center; text-align: center; }
.duel-score.final { box-shadow: inset 0 0 0 1px rgba(212, 255, 63, 0.25); }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #ff4d4d; vertical-align: 1px; animation: pulse 1.4s ease-in-out infinite; }

/* =====================================================================
   v18: login page (login.js) – Apple, Google, email code
   ===================================================================== */
.auth-stage { min-height: 210px; padding: 18px 0 8px; }
.auth-title { margin-top: 4px; }
.auth-sub { margin: 8px 12px 22px; }
.auth-stack { display: grid; gap: 10px; }
/* provider buttons in their brand's style */
.auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 14px; font-size: 16px; font-weight: 650; position: relative; }
.auth-btn.apple { background: #fff; color: #000; }
.auth-btn.google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #dadce0; }
.auth-btn:disabled { opacity: 1; color: #8a8a90; background: #e9e9ec; box-shadow: none; }
.auth-btn:disabled svg { opacity: 0.45; filter: grayscale(1); }
/* "bald verfügbar": a small badge on the top edge, never on top of the label */
.auth-btn small { position: absolute; top: -8px; right: 12px; padding: 2px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 700;
  color: var(--t1); background: var(--s3); box-shadow: 0 0 0 2px var(--bg); }
.auth-btn:disabled small { opacity: 1; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 6px 0; color: var(--t3); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--hair); }
.auth-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--hair); color: var(--t3); }
.auth-field:focus-within { box-shadow: inset 0 0 0 1.5px var(--volt); }
.auth-field input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--t1); font-size: 16px; }
.auth-legal { margin-top: 16px; font-size: 12px; }
/* 8-digit code */
.otp { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-bottom: 16px; }
.otp input { height: 54px; min-width: 0; border-radius: 12px; border: 0; text-align: center; background: var(--s2); color: var(--t1);
  font: 800 24px var(--display); box-shadow: inset 0 0 0 1px var(--hair); outline: none; }
.otp input:focus { box-shadow: inset 0 0 0 2px var(--volt); }
