/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #08081A;
  color: #fff;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 2px; }

/* ── STARS BG ───────────────────────────────────────────────── */
#stars { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.star {
  position: absolute;
  border-radius: 50%;
  background: white;
  animation: twinkle var(--dur, 3s) ease var(--delay, 0s) infinite;
}
@keyframes twinkle { 0%,100% { opacity: 0.15; } 50% { opacity: 0.65; } }

/* ── LAYOUT ─────────────────────────────────────────────────── */
#app { max-width: 960px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }

/* ── HEADER ─────────────────────────────────────────────────── */
header { padding: 36px 0 20px; text-align: center; }
.eyebrow { font-size: 11px; letter-spacing: 4px; color: rgba(251,191,36,0.65); margin-bottom: 10px; text-transform: uppercase; }
.logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.logo span { color: #fbbf24; text-shadow: 0 0 30px rgba(251,191,36,0.3); }
.sub { color: rgba(255,255,255,0.28); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 4px; }
.badge-live { color: rgba(74,222,128,0.55); font-size: 11px; }
.badge-sample { color: rgba(251,191,36,0.45); font-size: 11px; }

/* ── NAV ────────────────────────────────────────────────────── */
nav {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 24px;
  gap: 2px;
  scrollbar-width: none;
}
nav::-webkit-scrollbar { display: none; }
.tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255,255,255,0.35);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 12px 16px;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tab:hover { color: rgba(255,255,255,0.7); }
.tab.on { color: #fff; border-bottom-color: #6366f1; }

/* ── TAB CONTENT ────────────────────────────────────────────── */
.tab-content { display: none; animation: fadeUp 0.3s ease both; }
.tab-content.active { display: block; }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
}
.card-hero {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.07));
  border: 1px solid rgba(99,102,241,0.22);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 20px;
  text-align: center;
}
.stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
}
.stat-icon { font-size: 20px; margin-bottom: 6px; }
.stat-val { font-size: clamp(18px,3vw,24px); font-weight: 700; color: #a5b4fc; letter-spacing: -0.5px; }
.stat-lbl { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 3px; }

/* ── SECTION TEXT ───────────────────────────────────────────── */
.section-label { font-size: 12px; color: rgba(255,255,255,0.35); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 2px; }
.section-title { font-size: clamp(18px,3vw,24px); font-weight: 600; margin-bottom: 8px; }
.section-desc { color: rgba(255,255,255,0.3); font-size: 13px; max-width: 420px; margin: 0 auto 28px; line-height: 1.6; }
.label-sm { font-size: 11px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 2px; }
.divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 16px 0 20px; }

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-gen {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: #fff;
  border-radius: 14px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-gen:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(99,102,241,0.5); }
.btn-gen:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-save {
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.3);
  color: #fbbf24;
  border-radius: 10px;
  padding: 9px 22px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-save:hover { background: rgba(251,191,36,0.2); }
.btn-small {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  border-radius: 9px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 12px;
  font-family: inherit;
  transition: background 0.2s;
}
.btn-small:hover { background: rgba(255,255,255,0.12); }
.btn-purple {
  background: rgba(139,92,246,0.18);
  border-color: rgba(139,92,246,0.35);
  color: #c4b5fd;
}

/* ── BALLS ──────────────────────────────────────────────────── */
.balls-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.ball, .star-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
}
.ball { border-radius: 50%; }
.star-num { border-radius: 10px; }

/* sizes */
.sz-sm { width: 36px; height: 36px; font-size: 13px; }
.sz-md { width: 44px; height: 44px; font-size: 15px; }
.sz-lg { width: 56px; height: 56px; font-size: 18px; }

/* states */
.ball-default { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.12); }
.ball-highlight { background: linear-gradient(145deg,#818cf8,#6366f1); color: #fff; border: 2px solid rgba(99,102,241,0.5); box-shadow: 0 0 14px rgba(99,102,241,0.35); }
.ball-matched { background: linear-gradient(145deg,#4ade80,#22c55e); color: #fff; border: 2px solid #4ade80; box-shadow: 0 0 16px rgba(74,222,128,0.4); transform: scale(1.12); }
.ball-dim { opacity: 0.25; }
.star-default { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.1); }
.star-highlight { background: linear-gradient(145deg,#fcd34d,#fbbf24); color: #1a1a1a; border: 2px solid rgba(251,191,36,0.5); box-shadow: 0 0 14px rgba(251,191,36,0.3); }
.star-matched { background: linear-gradient(145deg,#fbbf24,#f59e0b); color: #1a1a1a; border: 2px solid #fbbf24; box-shadow: 0 0 16px rgba(251,191,36,0.5); transform: scale(1.12); }
.separator { width: 1px; height: 36px; background: rgba(255,255,255,0.12); margin: 0 4px; flex-shrink: 0; }

/* reveal animation */
@keyframes ballReveal { from { transform: scale(0) rotate(-10deg); opacity:0; } 70% { transform: scale(1.1); } to { transform: scale(1); opacity:1; } }
.reveal { animation: ballReveal 0.5s cubic-bezier(.34,1.56,.64,1) both; }

/* ── FREQUENCY BARS ─────────────────────────────────────────── */
.freq-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.freq-num { font-size: 12px; font-weight: 700; color: #fff; width: 22px; text-align: right; }
.freq-track { flex: 1; background: rgba(255,255,255,0.05); border-radius: 4px; height: 7px; overflow: hidden; }
.freq-fill { height: 100%; border-radius: 4px; transition: width 1.2s ease; }
.freq-count { font-size: 11px; color: rgba(255,255,255,0.25); width: 26px; }

/* ── TRACKER CARDS ──────────────────────────────────────────── */
.track-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
  transition: border-color 0.2s;
}
.track-card:hover { border-color: rgba(255,255,255,0.14); }
.track-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.track-type-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  margin-right: 8px;
}
.badge-user { background: rgba(99,102,241,0.18); color: #a5b4fc; }
.badge-system { background: rgba(139,92,246,0.18); color: #c4b5fd; }
.track-score { font-size: 14px; font-weight: 700; }
.score-high { color: #4ade80; }
.score-mid { color: #fbbf24; }
.score-low { color: rgba(255,255,255,0.35); }
.track-prize { font-size: 11px; color: #fbbf24; font-weight: 600; margin-top: 2px; }
.track-checked { font-size: 11px; color: rgba(255,255,255,0.18); margin-top: 8px; }

/* ── RESULT ROWS ────────────────────────────────────────────── */
.result-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 13px;
  padding: 13px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.result-date { font-size: 12px; color: rgba(255,255,255,0.3); min-width: 90px; }

/* ── METHOD LIST ────────────────────────────────────────────── */
.method-row { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.method-row:last-child { border-bottom: none; }
.method-icon { font-size: 20px; line-height: 1; margin-top: 2px; flex-shrink: 0; }
.method-title { font-weight: 600; font-size: 13px; margin-bottom: 4px; color: rgba(255,255,255,0.85); }
.method-desc { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.6; }

/* ── REASONING BOX ──────────────────────────────────────────── */
.reasoning-box {
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
  padding: 14px 18px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 8px;
}
.confidence-badge {
  display: inline-block;
  background: rgba(139,92,246,0.18);
  border: 1px solid rgba(139,92,246,0.3);
  color: #c4b5fd;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 12px;
}

/* ── SPINNER ────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { display: inline-block; animation: spin 2s linear infinite; }

/* ── GRIDS ──────────────────────────────────────────────────── */
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:500px) {
  .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: repeat(3,1fr); }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  text-align: center;
  padding: 36px 0 28px;
  color: rgba(255,255,255,0.14);
  font-size: 11px;
  line-height: 1.9;
}

/* ── LOADING OVERLAY ────────────────────────────────────────── */
#loading-screen {
  position: fixed;
  inset: 0;
  background: #08081A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loader-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}
.loader-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(99,102,241,0.15);
}
.loader-ring-spin {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #6366f1;
  animation: spin 1s linear infinite;
}
.loader-ring-inner {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.loader-title { font-family: 'DM Serif Display', serif; font-size: 24px; margin-bottom: 8px; }
@keyframes pulse-fade { 0%,100%{opacity:.3} 50%{opacity:1} }
.loader-msg { color: rgba(255,255,255,0.3); font-size: 13px; animation: pulse-fade 1.5s ease infinite; }

/* ── TICKET CARD ────────────────────────────────────────────── */
.ticket-card {
  background: linear-gradient(135deg, rgba(10,10,30,.95), rgba(15,15,40,.98));
  border: 1px solid rgba(99,102,241,.35);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 0 40px rgba(99,102,241,.1), inset 0 1px 0 rgba(255,255,255,.05);
}
.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
  gap: 8px;
}
.ticket-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: #fff;
  letter-spacing: -0.3px;
}
.ticket-label {
  font-size: 10px;
  color: rgba(255,255,255,.25);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.ticket-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.ticket-line:last-child { border-bottom: none; }
.ticket-line-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(165,180,252,.5);
  width: 22px;
  flex-shrink: 0;
  text-align: right;
}

/* ── LINE BUTTON GROUP ──────────────────────────────────────── */
.line-btn-group {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.line-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(99,102,241,.25);
  background: rgba(99,102,241,.08);
  color: rgba(255,255,255,.5);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.line-btn:hover {
  border-color: rgba(99,102,241,.5);
  color: rgba(255,255,255,.85);
  background: rgba(99,102,241,.15);
}
.line-btn.active {
  background: linear-gradient(135deg,#818cf8,#6366f1);
  border-color: #6366f1;
  color: #fff;
  box-shadow: 0 0 16px rgba(99,102,241,.4);
  transform: scale(1.08);
}

/* ── SHARE BUTTON ───────────────────────────────────────────── */
.btn-share {
  background: linear-gradient(135deg, rgba(251,191,36,.18), rgba(245,158,11,.12));
  border: 1px solid rgba(251,191,36,.35);
  color: #fbbf24;
  border-radius: 10px;
  padding: 9px 22px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-share:hover { background: linear-gradient(135deg,rgba(251,191,36,.28),rgba(245,158,11,.2)); transform: translateY(-1px); }

/* ── ANALYTICS GRID ─────────────────────────────────────────── */
.analytics-grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
@media(max-width:600px) { .analytics-grid4 { grid-template-columns: repeat(2,1fr); } }
.analytics-kpi {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
}
.kpi-icon  { font-size: 22px; margin-bottom: 6px; }
.kpi-val   { font-size: clamp(16px,3vw,22px); font-weight: 700; color: #a5b4fc; letter-spacing: -.5px; margin-bottom: 4px; }
.kpi-lbl   { font-size: 10px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: 1px; }

/* ── LINE SELECTOR ───────────────────────────────────────── */
.line-selector {
  margin-bottom: 28px;
}
.line-selector-label {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 14px;
}
.line-selector-hint {
  font-size: 12px;
  color: rgba(165,180,252,.5);
  margin-top: 10px;
}
.line-btn-group {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.line-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(99,102,241,.22);
  background: rgba(99,102,241,.07);
  color: rgba(255,255,255,.45);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.line-btn:hover {
  border-color: rgba(99,102,241,.45);
  color: rgba(255,255,255,.8);
  background: rgba(99,102,241,.14);
}
.line-btn.active {
  background: linear-gradient(135deg, #818cf8, #6366f1);
  border-color: #6366f1;
  color: #fff;
  box-shadow: 0 0 18px rgba(99,102,241,.45);
  transform: scale(1.1);
}

/* ── TICKET CARD ─────────────────────────────────────────── */
.ticket-card {
  background: linear-gradient(135deg, rgba(8,8,28,.97), rgba(13,13,38,.98));
  border: 1px solid rgba(99,102,241,.3);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 0 48px rgba(99,102,241,.08), inset 0 1px 0 rgba(255,255,255,.04);
}
.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-wrap: wrap;
  gap: 8px;
}
.ticket-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  color: #fff;
}
.ticket-label {
  font-size: 10px;
  color: rgba(255,255,255,.22);
  text-transform: uppercase;
  letter-spacing: 2px;
}
.ticket-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.ticket-line:last-child { border-bottom: none; }
.ticket-line-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(165,180,252,.4);
  width: 20px;
  flex-shrink: 0;
  text-align: right;
}
.ticket-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* ── SHARE BUTTON ────────────────────────────────────────── */
.btn-share {
  background: linear-gradient(135deg, rgba(251,191,36,.16), rgba(245,158,11,.10));
  border: 1px solid rgba(251,191,36,.3);
  color: #fbbf24;
  border-radius: 10px;
  padding: 9px 22px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  transition: all .18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-share:hover {
  background: linear-gradient(135deg, rgba(251,191,36,.26), rgba(245,158,11,.18));
  transform: translateY(-1px);
}

/* ── ANALYTICS GRID ──────────────────────────────────────── */
.analytics-grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media(max-width: 600px) {
  .analytics-grid4 { grid-template-columns: repeat(2, 1fr); }
}
.analytics-kpi {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
}
.kpi-icon { font-size: 22px; margin-bottom: 6px; }
.kpi-val  { font-size: clamp(16px,3vw,22px); font-weight: 700; color: #a5b4fc; letter-spacing: -.5px; margin-bottom: 4px; }
.kpi-lbl  { font-size: 10px; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: 1px; }

/* ── GAME SWITCHER ───────────────────────────────────────── */
#game-switcher-wrap {
  padding: 0 16px;
  margin-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
#game-switcher-wrap::-webkit-scrollbar { display: none; }
#game-switcher {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 5px;
  min-width: max-content;
}
.game-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.4);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.game-btn:hover {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.75);
}
.game-btn-active {
  background: linear-gradient(135deg, rgba(99,102,241,.28), rgba(139,92,246,.18));
  border-color: rgba(99,102,241,.35);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(99,102,241,.2);
}
.game-flag { font-size: 16px; }
.game-name { display: inline; }
.game-short { display: none; }
/* game-name always visible since switcher scrolls on mobile */
.game-short { display: none; }

/* ── ANOMALY PANEL ───────────────────────────────────────── */
.anomaly-panel {
  background: linear-gradient(135deg, rgba(234,179,8,.06), rgba(245,158,11,.03));
  border-color: rgba(234,179,8,.2) !important;
}
.anomaly-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 12px;
  color: rgba(255,255,255,.65);
  line-height: 1.5;
}
.anomaly-item:last-child { border-bottom: none; }
.anomaly-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fbbf24;
  flex-shrink: 0;
  margin-top: 5px;
}

/* ── ANOMALY CALLOUT (sys-anomaly) ───────────────────────── */
.anomaly-callout {
  background: rgba(234,179,8,.08);
  border: 1px solid rgba(234,179,8,.2);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  text-align: left;
  line-height: 1.5;
}
.anomaly-label {
  color: #fbbf24;
  font-weight: 600;
}

/* ── TRACK GAME BADGE ────────────────────────────────────── */
.track-game-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 2px 7px;
  margin-right: 6px;
}

/* ── CSS VARIABLE SUPPORT FOR ACCENT ─────────────────────── */
:root {
  --accent: #6366f1;
  --bonus-color: #f59e0b;
}

/* ── HALL OF FAME ────────────────────────────────────────── */
.hof-card {
  background: linear-gradient(135deg, rgba(251,191,36,.05), rgba(245,158,11,.02));
  border-color: rgba(251,191,36,.18) !important;
}
.hof-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.hof-entry:last-child { border-bottom: none; }
.hof-rank {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  flex-shrink: 0;
  margin-top: 2px;
}
.hof-entry:nth-child(1) .hof-rank { background: rgba(251,191,36,.2); border-color: rgba(251,191,36,.4); color: #fbbf24; }
.hof-entry:nth-child(2) .hof-rank { background: rgba(148,163,184,.15); border-color: rgba(148,163,184,.3); color: #94a3b8; }
.hof-entry:nth-child(3) .hof-rank { background: rgba(180,120,60,.15); border-color: rgba(180,120,60,.3); color: #cd7f32; }
.hof-body { flex: 1; min-width: 0; }
.hof-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.hof-score {
  font-size: 15px;
  font-weight: 700;
}
.hof-label {
  font-size: 11px;
  color: rgba(255,255,255,.4);
}
.hof-game-badge {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: auto;
}
.hof-type {
  font-size: 13px;
}
.hof-balls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  margin-bottom: 5px;
}
.hof-meta {
  font-size: 10px;
  color: rgba(255,255,255,.2);
}

/* ── FOOTER LINKS ───────────────────────────────────────────── */
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,.28);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .5px;
  transition: color .2s;
}
.footer-links a:hover { color: rgba(255,255,255,.65); }
.footer-responsible {
  color: rgba(255,255,255,.16);
  font-size: 11px;
  margin-bottom: 4px;
}
