/* ============================================================================
   2026 World Cup · Squad Atlas
   Design language: dark navy exhibit, cyan-teal neon, generous air.
   ========================================================================== */

:root {
  /* surfaces */
  --bg:        #070b14;
  --bg-2:      #0b1120;
  --surface:   #0f1626;
  --surface-2: #131c30;
  --line:      rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);

  /* type */
  --text:   #eaf1fb;
  --muted:  #93a1ba;
  --faint:  #5e6b85;

  /* accent */
  --accent:      #2ee6cf;     /* cyan-teal neon */
  --accent-deep: #16b4a3;
  --accent-glow: rgba(46, 230, 207, 0.22);

  /* tiers */
  --t1: #2ee6cf;
  --t2: #5aa9ff;
  --t3: #7b88a6;

  /* confederations */
  --uefa:     #5aa9ff;
  --conmebol: #ffce5a;
  --caf:      #3ddc97;
  --afc:      #ff7a7a;
  --concacaf: #c08bff;
  --ofc:      #4be3e3;

  /* misc */
  --home:   #ffce5a;          /* homegrown highlight (warm) */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.85);
  /* consistent hover: a soft drop shadow + a faint cyan halo */
  --glow: 0 16px 40px -22px rgba(0, 0, 0, 0.8), 0 6px 26px -12px var(--accent-glow);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Segoe UI Mono", "Roboto Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--accent-glow); color: #fff; }

/* ── Ambient background ──────────────────────────────────────────────── */
.bg-grid, .bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-grid {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 78%);
}
.bg-glow {
  background:
    radial-gradient(60% 45% at 78% -5%, rgba(46, 230, 207, 0.10), transparent 60%),
    radial-gradient(50% 40% at 12% 6%, rgba(90, 169, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #070b14 0%, #070b14 60%, #060912 100%);
}

/* ── Loader ──────────────────────────────────────────────────────────── */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; background: var(--bg);
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.loader-text { color: var(--muted); font-size: 0.9rem; letter-spacing: 0.04em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Layout shell ────────────────────────────────────────────────────── */
.app {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 48px) 80px;
  animation: rise 0.6s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ── Masthead ────────────────────────────────────────────────────────── */
.masthead { padding: clamp(36px, 6vw, 72px) 0 28px; }
.masthead-top {
  display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 44px);
  flex-wrap: wrap;
}
.wordmark { display: flex; flex-direction: column; line-height: 0.9; }
.wordmark-kicker {
  font-size: clamp(0.7rem, 1.4vw, 0.86rem);
  letter-spacing: 0.42em; color: var(--accent);
  font-weight: 600; padding-left: 0.3em;
}
.wordmark-title {
  font-size: clamp(5.5rem, 17vw, 12rem);
  font-weight: 800; margin: -0.06em 0 0; letter-spacing: -0.04em;
  background: linear-gradient(160deg, #ffffff 18%, #97e9df 60%, var(--accent-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wordmark-prime { color: var(--accent); -webkit-text-fill-color: var(--accent); }
.masthead-meta { padding-bottom: clamp(10px, 2vw, 26px); }
.masthead-lede {
  font-size: clamp(1.5rem, 3.4vw, 2.6rem); font-weight: 700;
  margin: 0; letter-spacing: -0.02em;
}
.masthead-sub { margin: 6px 0 0; color: var(--muted); font-size: 0.98rem; letter-spacing: 0.02em; }

.statbar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: 38px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.stat {
  background: var(--surface); padding: 20px 22px;
  display: flex; flex-direction: column; gap: 2px;
}
.stat-num {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 750;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.stat-label { font-size: 0.78rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.16em; }

/* ── Tabs ────────────────────────────────────────────────────────────── */
.tabs {
  position: sticky; top: 0; z-index: 30;
  display: flex; gap: 4px; margin: 30px 0 36px;
  padding: 7px; border-radius: var(--radius);
  background: rgba(11, 17, 32, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.tab {
  position: relative; flex: 1; z-index: 1;
  display: flex; flex-direction: column; gap: 1px;
  padding: 10px 13px; border: 0; cursor: pointer;
  background: transparent; color: var(--muted); text-align: left;
  border-radius: 11px; transition: color 0.3s var(--ease);
  font-family: inherit;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: #04161a; }
.tab-index { font-size: 0.64rem; letter-spacing: 0.16em; opacity: 0.65; font-family: var(--mono); }
.tab-label { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.tab-desc { font-size: 0.74rem; opacity: 0.7; }
.tab.is-active .tab-index { opacity: 0.8; }
.tab-ink {
  position: absolute; top: 7px; left: 7px; z-index: 0;
  height: calc(100% - 14px); border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 8px 24px -8px var(--accent-glow);
  transition: transform 0.42s var(--ease), width 0.42s var(--ease);
}

/* ── Views ───────────────────────────────────────────────────────────── */
.view { display: none; }
.view.is-active { display: block; animation: viewIn 0.45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }

/* Bars set their final width inline in the HTML; the reveal only fades opacity
   (never below 0.25), so a bar is always visible even if the animation never
   runs (e.g. a throttled/background tab). Correctness never depends on motion. */
@keyframes barIn { from { opacity: 0.25; } to { opacity: 1; } }

.view-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 26px;
}
.view-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 750; margin: 0 0 6px; letter-spacing: -0.02em; }
.view-note { margin: 0; color: var(--muted); max-width: 56ch; font-size: 0.95rem; }
.view-note em { color: var(--text); font-style: normal; border-bottom: 1px dotted var(--faint); }

/* ── Filter chips ────────────────────────────────────────────────────── */
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--muted); font-family: inherit; font-size: 0.85rem; font-weight: 600;
  transition: all 0.25s var(--ease);
}
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); transform: translateY(-1px); box-shadow: 0 6px 16px -8px var(--accent-glow); }
.chip.is-active { color: #04161a; background: var(--accent); border-color: var(--accent); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip.is-active .dot { box-shadow: 0 0 0 2px rgba(4,22,26,0.25); }
.dot.t1 { background: var(--t1); } .dot.t2 { background: var(--t2); } .dot.t3 { background: var(--t3); }

/* ── VIEW 1 · Country grid ───────────────────────────────────────────── */
.country-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.country-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.country-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--conf-color, var(--accent)) 40%, var(--line)); box-shadow: var(--glow); }
.country-card.is-open { border-color: var(--conf-color, var(--accent)); }
.cc-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 14px; padding: 16px 18px; cursor: pointer; user-select: none;
}
.cc-code {
  font-family: var(--mono); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.05em; padding: 7px 9px; border-radius: 9px;
  color: var(--conf-color, var(--accent));
  background: color-mix(in srgb, var(--conf-color, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--conf-color, var(--accent)) 30%, transparent);
}
.cc-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.cc-conf { font-size: 0.74rem; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }
.cc-count { text-align: right; }
.cc-count b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.cc-count span { display: block; font-size: 0.68rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.12em; }
.cc-chevron { transition: transform 0.4s var(--ease); color: var(--faint); }
.country-card.is-open .cc-chevron { transform: rotate(180deg); }

.cc-home {
  height: 5px; margin: 0 18px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.07); overflow: hidden; position: relative;
}
.cc-home-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--home), #ffb45a);
  animation: barIn 0.7s var(--ease) both;
}
.cc-home-label { font-size: 0.72rem; color: var(--faint); margin: -8px 18px 12px; }
.cc-home-label b { color: var(--home); }

.cc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.country-card.is-open .cc-body { grid-template-rows: 1fr; }
.cc-body-inner { overflow: hidden; }
.cc-leagues { padding: 4px 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.lg-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer;
  background: transparent; transition: background 0.22s var(--ease);
}
.lg-row:hover { background: var(--surface-2); }
.lg-tier {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em;
  width: 26px; height: 22px; display: grid; place-items: center; border-radius: 6px;
}
.lg-tier.t1 { color: var(--t1); background: color-mix(in srgb, var(--t1) 16%, transparent); }
.lg-tier.t2 { color: var(--t2); background: color-mix(in srgb, var(--t2) 16%, transparent); }
.lg-tier.t3 { color: var(--t3); background: color-mix(in srgb, var(--t3) 18%, transparent); }
.lg-name { font-size: 0.9rem; font-weight: 600; }
.lg-where { font-size: 0.74rem; color: var(--faint); }
.lg-count { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.95rem; }
.lg-count span { color: var(--faint); font-weight: 500; font-size: 0.78rem; }

/* ── VIEW 2 · League chart ───────────────────────────────────────────── */
.league-chart { display: flex; flex-direction: column; gap: 7px; }
.lc-row {
  display: grid; grid-template-columns: 230px 1fr 54px; align-items: center; gap: 16px;
  padding: 9px 14px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}
.lc-row:hover { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); box-shadow: 0 8px 22px -14px rgba(0,0,0,0.7); transform: translateX(3px); }
.lc-label { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lc-tier {
  font-size: 0.6rem; font-weight: 800; padding: 3px 6px; border-radius: 5px; flex: none;
}
.lc-tier.t1 { color: var(--t1); background: color-mix(in srgb, var(--t1) 16%, transparent); }
.lc-tier.t2 { color: var(--t2); background: color-mix(in srgb, var(--t2) 16%, transparent); }
.lc-tier.t3 { color: var(--t3); background: color-mix(in srgb, var(--t3) 18%, transparent); }
.lc-name { font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-where { color: var(--faint); font-size: 0.78rem; flex: none; }
.lc-track { height: 26px; border-radius: 8px; background: rgba(255,255,255,0.04); overflow: hidden; }
.lc-bar {
  display: block; height: 100%; border-radius: 8px;
  animation: barIn 0.7s var(--ease) both;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bar) 55%, transparent), var(--bar));
}
.lc-bar.t1 { --bar: var(--t1); } .lc-bar.t2 { --bar: var(--t2); } .lc-bar.t3 { --bar: var(--t3); }
.lc-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.lc-row.is-dim { opacity: 0.28; filter: grayscale(0.5); }

/* ── VIEW 3 · Power ranking ──────────────────────────────────────────── */
.compare-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 26px; align-items: start; }
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-row {
  display: grid; grid-template-columns: 30px 130px 1fr auto; align-items: center; gap: 14px;
  padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.rank-row:hover { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); box-shadow: 0 8px 22px -14px rgba(0,0,0,0.7); transform: translateX(3px); }
.rank-pos { font-family: var(--mono); color: var(--faint); font-size: 0.82rem; text-align: right; }
.rank-row:nth-child(1) .rank-pos, .rank-row.is-top .rank-pos { color: var(--accent); }
.rank-team { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rank-team .cc-code { padding: 4px 7px; font-size: 0.72rem; }
.rank-team b { font-weight: 650; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-track {
  height: 22px; display: flex; border-radius: 7px; overflow: hidden;
  background: rgba(255,255,255,0.04);
  animation: barIn 0.7s var(--ease) both;
}
.rank-seg { height: 100%; }
.rank-seg.t1 { background: var(--t1); }
.rank-seg.t2 { background: var(--t2); }
.rank-seg.t3 { background: var(--t3); }
.rank-seg.home { background: linear-gradient(90deg, var(--home), #ffb45a); }
.rank-seg.foreign { background: linear-gradient(90deg, #ff7a7a, #c08bff); }
.rank-val { font-variant-numeric: tabular-nums; font-weight: 750; min-width: 30px; text-align: right; }
.rank-val span { color: var(--faint); font-weight: 500; font-size: 0.8rem; }

.conf-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; position: sticky; top: 96px;
}
.conf-title { margin: 0 0 4px; font-size: 1.05rem; }
.conf-note { margin: 0 0 18px; font-size: 0.8rem; color: var(--muted); }
.conf-bars { display: flex; flex-direction: column; gap: 12px; }
.conf-item { cursor: pointer; }
.conf-item.is-dim { opacity: 0.4; }
.conf-row { display: flex; justify-content: space-between; font-size: 0.84rem; margin-bottom: 5px; }
.conf-row b { font-weight: 650; }
.conf-row span { color: var(--faint); font-variant-numeric: tabular-nums; }
.conf-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,0.05); overflow: hidden; }
.conf-fill { display: block; height: 100%; border-radius: 999px; animation: barIn 0.7s var(--ease) both; }

/* ── VIEW 4 · Players ────────────────────────────────────────────────── */
.search-controls {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px;
}
.search-box { position: relative; flex: 1 1 280px; min-width: 220px; }
.search-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round;
}
#searchInput {
  width: 100%; padding: 13px 16px 13px 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-family: inherit; font-size: 0.95rem; transition: border-color 0.25s var(--ease);
}
#searchInput:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.select {
  padding: 13px 14px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--line); color: var(--text); font-family: inherit; font-size: 0.88rem;
  cursor: pointer; transition: border-color 0.25s var(--ease);
}
.select:focus { outline: none; border-color: var(--accent); }
.dice {
  padding: 13px 18px; border-radius: 12px; cursor: pointer; font-family: inherit;
  font-size: 0.88rem; font-weight: 650; color: #04161a;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)); border: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.dice:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px var(--accent-glow); }
.dice:active { transform: translateY(0) scale(0.97); }
.result-count { color: var(--faint); font-size: 0.84rem; margin: 0 0 16px; letter-spacing: 0.02em; }

.player-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
}
.player-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  position: relative; overflow: hidden; cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: cardIn 0.4s var(--ease) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } }
.player-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--conf-color) 45%, var(--line)); box-shadow: var(--glow); }

/* photo banner */
.pc-photo {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(155deg, color-mix(in srgb, var(--conf-color) 38%, var(--surface-2)), var(--surface-2));
}
.pc-initials {
  font-size: 2.7rem; font-weight: 800; letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--conf-color) 60%, #ffffff); opacity: 0.5;
}
.pc-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; transition: opacity 0.55s var(--ease);
}
.pc-photo img.loaded { opacity: 1; }
.pc-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, var(--surface) 2%, rgba(15,22,38,0.15) 42%, transparent 70%);
}
.player-card:hover .pc-photo img.loaded { transform: scale(1.04); transition: transform 4s var(--ease), opacity 0.55s var(--ease); }
.pc-badges { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; }
.pc-pos {
  font-family: var(--mono); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 4px 7px; border-radius: 6px; color: #eaf1fb; background: rgba(7,11,20,0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.pc-home {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; padding: 4px 8px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.pc-home.yes { color: var(--home); background: color-mix(in srgb, var(--home) 22%, rgba(7,11,20,0.5)); }
.pc-home.no { color: #cdd7e8; background: rgba(7,11,20,0.5); }
.pc-namebar { position: absolute; left: 14px; right: 14px; bottom: 10px; z-index: 2; }
.pc-name { font-size: 1.08rem; font-weight: 750; letter-spacing: -0.01em; margin: 0; line-height: 1.15; }
.pc-country { font-size: 0.78rem; color: var(--conf-color, var(--accent)); font-weight: 650; margin-top: 2px; }
.pc-meta { padding: 12px 15px 15px; display: flex; flex-direction: column; gap: 4px; }
.pc-club { font-size: 0.9rem; font-weight: 600; }
.pc-league { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.pc-league .lg-tier { width: 22px; height: 18px; font-size: 0.56rem; flex: none; }
.pc-born { font-size: 0.74rem; color: var(--faint); margin-top: 2px; }

.load-more {
  display: block; margin: 28px auto 0; padding: 12px 28px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-family: inherit; font-weight: 600; cursor: pointer; transition: all 0.25s var(--ease);
}
.load-more:hover { border-color: var(--accent); color: var(--accent); }
.empty-state { text-align: center; color: var(--faint); padding: 60px 20px; font-size: 0.95rem; }

/* ── Roster drawer ───────────────────────────────────────────────────── */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(4, 7, 14, 0.6);
  backdrop-filter: blur(3px); animation: fade 0.3s var(--ease) both;
}
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(440px, 92vw);
  background: var(--bg-2); border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -30px rgba(0,0,0,0.9);
  transform: translateX(100%); transition: transform 0.42s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer-close {
  position: absolute; top: 16px; right: 18px; z-index: 2; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.drawer-close:hover { color: var(--text); border-color: var(--accent); transform: rotate(90deg); }
.drawer-body { overflow-y: auto; padding: 30px 26px 40px; }
.drawer-eyebrow { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.drawer-title { font-size: 1.6rem; font-weight: 750; margin: 0 0 4px; letter-spacing: -0.02em; }
.drawer-sub { color: var(--muted); font-size: 0.9rem; margin: 0 0 22px; }
.drawer-player {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.drawer-player:last-child { border-bottom: 0; }
.dp-pos { font-family: var(--mono); font-size: 0.66rem; color: var(--faint); width: 26px; }
.dp-name { font-weight: 600; font-size: 0.94rem; }
.dp-sub { font-size: 0.76rem; color: var(--faint); }
.dp-flag { font-size: 0.72rem; font-weight: 700; }
.dp-flag.yes { color: var(--home); }
.dp-flag.no { color: var(--muted); }

/* ── VIEW 5 · Spotlight carousel ─────────────────────────────────────── */
.spot-stage { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 26px); margin: 6px 0 20px; }
.spot-nav {
  flex: none; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-size: 1.7rem; line-height: 1; display: grid; place-items: center;
  transition: all 0.22s var(--ease);
}
.spot-nav:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.08); }
.spot-nav:active { transform: scale(0.95); }
.spot-card-wrap { width: min(440px, 94vw); perspective: 1200px; }
.spot-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow); animation: cardSwap 0.45s var(--ease) both;
  cursor: pointer; transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.spot-card:hover { box-shadow: var(--glow); border-color: color-mix(in srgb, var(--conf-color, var(--accent)) 40%, var(--line)); }
@keyframes cardSwap { from { opacity: 0; transform: translateY(14px) scale(0.985); } }
.sc-photo {
  position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center;
  background: linear-gradient(160deg, color-mix(in srgb, var(--conf-color) 42%, var(--surface-2)), var(--surface-2));
}
.sc-initials { font-size: 5rem; font-weight: 800; color: color-mix(in srgb, var(--conf-color) 60%, #fff); opacity: 0.5; }
.sc-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; opacity: 0; transition: opacity 0.5s var(--ease); }
.sc-photo img.loaded { opacity: 1; }
.sc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--surface) 1%, transparent 38%); }
.sc-badges { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; z-index: 2; }
.sc-namebar { position: absolute; left: 18px; right: 18px; bottom: 14px; z-index: 2; }
.sc-name { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
.sc-country { font-size: 0.95rem; font-weight: 650; color: var(--conf-color, var(--accent)); margin-top: 4px; }
.sc-stats { padding: 16px 20px 20px; display: grid; gap: 0; }
.sc-stat { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.sc-stat:last-child { border-bottom: 0; }
.sc-stat dt { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.sc-stat dd { margin: 0; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.spot-foot { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.spot-btn {
  padding: 10px 18px; border-radius: 999px; cursor: pointer; font-family: inherit;
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); transition: all 0.22s var(--ease);
}
.spot-btn:hover { border-color: var(--accent); color: var(--accent); }
.spot-btn.is-playing { color: #04161a; background: var(--accent); border-color: var(--accent); }
.spot-counter { font-family: var(--mono); color: var(--faint); font-size: 0.85rem; min-width: 90px; text-align: center; }

/* ── VIEW 6 · Findings ───────────────────────────────────────────────── */
.findings { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.finding {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px); position: relative; overflow: hidden;
  animation: cardIn 0.5s var(--ease) both;
}
.finding.wide { grid-column: 1 / -1; }
.finding-kicker { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; font-weight: 600; }
.finding-figure {
  font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 800; line-height: 0.95; letter-spacing: -0.03em; margin: 0;
  background: linear-gradient(150deg, #fff 20%, #97e9df 70%, var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.finding-figure small { font-size: 0.32em; font-weight: 650; color: var(--muted); -webkit-text-fill-color: var(--muted); letter-spacing: 0; }
.finding-head { font-size: 1.15rem; font-weight: 700; margin: 14px 0 8px; letter-spacing: -0.01em; }
.finding-text { color: var(--muted); font-size: 0.92rem; margin: 0; }
.finding-text b { color: var(--text); font-weight: 650; }
.finding .link { color: var(--accent); cursor: pointer; border-bottom: 1px dotted color-mix(in srgb, var(--accent) 50%, transparent); }
.finding .link:hover { border-bottom-style: solid; }

/* stacked tier bar inside a finding */
.f-stack { display: flex; height: 30px; border-radius: 9px; overflow: hidden; margin: 18px 0 10px; background: rgba(255,255,255,0.04); }
.f-stack span { display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; color: #04161a; min-width: 0; }
.f-stack .t1 { background: var(--t1); } .f-stack .t2 { background: var(--t2); } .f-stack .t3 { background: var(--t3); color: #eaf1fb; }
.f-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.78rem; color: var(--muted); }
.f-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* interactive diaspora chips */
.f-teams { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.f-team { padding: 7px 13px; border-radius: 999px; cursor: pointer; font-size: 0.82rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); transition: all 0.2s var(--ease); }
.f-team:hover { color: var(--text); transform: translateY(-1px); }
.f-team.is-active { color: #04161a; background: var(--home); border-color: var(--home); }
.f-readout { margin-top: 8px; }
.f-readout .big { font-size: 1.6rem; font-weight: 800; }
.f-bar2 { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; margin-top: 10px; }
.f-bar2 i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--home), #ffb45a); transition: width 0.6s var(--ease); }

/* mini ranked rows inside a finding */
.f-rows { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.f-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; cursor: pointer; }
.f-row:hover .f-row-name { color: var(--accent); }
.f-row-name { font-size: 0.88rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.f-row-track { grid-column: 1 / -1; height: 7px; border-radius: 999px; background: rgba(255,255,255,0.05); overflow: hidden; }
.f-row-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.f-row-val { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.9rem; }

/* ── Tournament switcher ─────────────────────────────────────────────── */
.tournament-switch {
  display: inline-flex; gap: 4px; margin-top: 16px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.ts-btn {
  padding: 7px 14px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 0.8rem; font-weight: 600; color: var(--muted);
  background: transparent; transition: all 0.25s var(--ease); white-space: nowrap;
}
.ts-btn:hover { color: var(--text); }
.ts-btn.is-active { color: #04161a; background: var(--accent); }

/* ── VIEW 7 · 2022 vs 2026 ───────────────────────────────────────────── */
.versus { display: grid; gap: 16px; }
.vs-lead {
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px);
}
.vs-lead h3 { margin: 0 0 8px; font-size: 1.2rem; }
.vs-lead p { margin: 0; color: var(--muted); max-width: 70ch; }
.vs-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.vs-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; animation: cardIn 0.5s var(--ease) both; }
.vs-label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin: 0 0 14px; }
.vs-pair { display: flex; align-items: flex-end; gap: 14px; }
.vs-year { flex: 1; min-width: 0; }
.vs-year .yr { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.vs-year .num { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.vs-year .unit { font-size: 0.7rem; color: var(--muted); }
.vs-year.y22 .num { color: var(--muted); }
.vs-year.y26 .num { color: var(--accent); }
.vs-delta { font-size: 0.8rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; margin-bottom: 4px; }
.vs-delta.up { color: var(--caf); background: color-mix(in srgb, var(--caf) 16%, transparent); }
.vs-delta.down { color: var(--afc); background: color-mix(in srgb, var(--afc) 16%, transparent); }
.vs-delta.flat { color: var(--muted); background: rgba(255,255,255,0.05); }
.vs-foot { margin: 12px 0 0; font-size: 0.82rem; color: var(--muted); }
.vs-wide { grid-column: 1 / -1; }
.vs-barset { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.vs-barrow { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: center; }
.vs-barrow .nm { font-size: 0.85rem; font-weight: 600; }
.vs-twin { display: grid; gap: 5px; }
.vs-twin .t { display: grid; grid-template-columns: 36px 1fr 38px; gap: 8px; align-items: center; font-size: 0.74rem; color: var(--faint); }
.vs-twin .track { height: 9px; border-radius: 999px; background: rgba(255,255,255,0.05); overflow: hidden; }
.vs-twin .fill { display: block; height: 100%; border-radius: 999px; }
.vs-twin .fill.y22 { background: var(--muted); }
.vs-twin .fill.y26 { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.vs-twin .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
/* multi-year stat card (Eras view) */
.vs-stat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.vs-stat-top .vs-label { margin: 0; }
.vs-series { display: flex; flex-direction: column; gap: 9px; }
.vs-srow { display: grid; grid-template-columns: 42px 1fr 64px; gap: 10px; align-items: center; }
.vs-yr { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); }
.vs-track { height: 12px; border-radius: 999px; background: rgba(255,255,255,0.05); overflow: hidden; }
.vs-fill { display: block; height: 100%; border-radius: 999px; background: var(--t3); }
.vs-fill.cur { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.vs-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.95rem; }

/* ── VIEW 8 · About / How it's made ──────────────────────────────────── */
.about { display: grid; gap: 18px; max-width: 880px; }
.about-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.about-section h3 { margin: 0 0 6px; font-size: 1.15rem; }
.about-section > p { color: var(--muted); margin: 0 0 18px; }
.steps { display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); transition: border-color 0.25s var(--ease); }
.step:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.step-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 15px 17px; cursor: pointer; }
.step-no { counter-increment: step; font-family: var(--mono); font-size: 0.78rem; color: var(--accent); font-weight: 700; }
.step-no::before { content: counter(step, decimal-leading-zero); }
.step-title { font-weight: 650; font-size: 0.96rem; }
.step-title small { display: block; color: var(--faint); font-weight: 400; font-size: 0.78rem; margin-top: 2px; }
.step-tog { color: var(--faint); transition: transform 0.35s var(--ease); }
.step.is-open .step-tog { transform: rotate(45deg); }
.step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ease); }
.step.is-open .step-body { grid-template-rows: 1fr; }
.step-body-inner { overflow: hidden; }
.step-code { margin: 0; padding: 16px 17px; background: #060a13; border-top: 1px solid var(--line); overflow-x: auto; }
.step-code code { font-family: var(--mono); font-size: 0.78rem; line-height: 1.55; color: #b9c6dd; white-space: pre; }
.step-code .k { color: var(--accent); } .step-code .s { color: #ffce5a; } .step-code .c { color: var(--faint); }
.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.source { display: block; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); transition: all 0.22s var(--ease); }
.source:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; box-shadow: var(--glow); }
.source b { display: block; color: var(--text); font-size: 0.9rem; }
.source span { font-size: 0.78rem; color: var(--faint); }
.about-credit { text-align: center; padding: 14px 0 4px; }
.about-credit .made { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.about-credit .made a { color: var(--accent); }
.about-credit p { color: var(--faint); font-size: 0.85rem; margin: 8px 0 0; }
.about-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.about-pill { padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.about-pill b { color: var(--accent); }

/* ── VIEW · Play (games) ─────────────────────────────────────────────── */
.play { max-width: 760px; margin: 0 auto; }
.game-menu { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.game-pick {
  text-align: left; cursor: pointer; font-family: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: all 0.25s var(--ease); position: relative; overflow: hidden;
}
.game-pick:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--glow); }
.game-pick .emoji { font-size: 2rem; }
.game-pick h3 { margin: 12px 0 6px; font-size: 1.2rem; }
.game-pick p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.game-pick .best { margin-top: 14px; font-size: 0.78rem; color: var(--faint); }
.game-pick .best b { color: var(--accent); }

.game-wrap { animation: viewIn 0.4s var(--ease) both; }
.game-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; }
.game-back { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-family: inherit; font-size: 0.82rem; transition: all 0.2s var(--ease); }
.game-back:hover { color: var(--text); border-color: var(--accent); }
.game-score { display: flex; gap: 18px; font-size: 0.85rem; }
.game-score b { color: var(--accent); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.game-score .lbl { color: var(--faint); }

/* player-guess */
.guess-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guess-photo { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; background: var(--surface-2); overflow: hidden; }
.guess-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: blur(22px) saturate(1.1); transform: scale(1.1); transition: filter 0.6s var(--ease); }
.guess-photo.reveal img { filter: blur(0); }
.guess-photo .qmark { font-size: 4rem; font-weight: 800; color: var(--faint); z-index: 1; }
.guess-photo.reveal .qmark { display: none; }
.guess-clues { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
.clue { font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.clue b { color: var(--text); }
.clue.locked { color: var(--faint); font-style: italic; opacity: 0.6; }
.guess-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 16px 16px; }
.opt { padding: 14px 16px; border-radius: var(--radius-sm); cursor: pointer; font-family: inherit; font-size: 0.95rem; font-weight: 600; text-align: left; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); transition: all 0.18s var(--ease); }
.opt:hover:not(:disabled) { border-color: var(--accent); transform: translateY(-2px); }
.opt:disabled { cursor: default; }
.opt.correct { background: color-mix(in srgb, var(--caf) 22%, var(--surface-2)); border-color: var(--caf); color: #eafff5; }
.opt.wrong { background: color-mix(in srgb, var(--afc) 20%, var(--surface-2)); border-color: var(--afc); }
.guess-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px 18px; }
.guess-hint, .guess-next { padding: 11px 20px; border-radius: 10px; cursor: pointer; font-family: inherit; font-weight: 650; font-size: 0.88rem; border: 0; transition: all 0.2s var(--ease); }
.guess-hint { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.guess-hint:hover:not(:disabled) { color: var(--text); border-color: var(--accent); }
.guess-hint:disabled { opacity: 0.4; cursor: default; }
.guess-next { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #04161a; }
.guess-next:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px var(--accent-glow); }
.guess-verdict { font-weight: 700; font-size: 0.9rem; }
.guess-verdict.ok { color: var(--caf); } .guess-verdict.no { color: var(--afc); }

/* higher-lower */
.hl-stage { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: stretch; gap: 0; }
.hl-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; position: relative; overflow: hidden; }
.hl-side .lg-tier { display: inline-grid; margin-bottom: 12px; }
.hl-name { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.01em; }
.hl-where { color: var(--faint); font-size: 0.8rem; margin-top: 4px; }
.hl-count { font-size: 2.4rem; font-weight: 800; margin: 16px 0 4px; color: var(--accent); font-variant-numeric: tabular-nums; }
.hl-count.hidden { color: var(--faint); }
.hl-sub { font-size: 0.78rem; color: var(--muted); }
.hl-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.hl-btn { padding: 12px; border-radius: 10px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 0.9rem; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); transition: all 0.18s var(--ease); }
.hl-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.hl-btn:disabled { opacity: 0.5; cursor: default; }
.hl-vs { display: grid; place-items: center; font-family: var(--mono); color: var(--faint); font-weight: 700; font-size: 0.85rem; }
.hl-msg { text-align: center; margin-top: 16px; font-weight: 650; min-height: 24px; }
.hl-msg.ok { color: var(--caf); } .hl-msg.no { color: var(--afc); }

/* ── VIEW · Share (infographics) ─────────────────────────────────────── */
.share { display: grid; gap: 18px; }
.share-controls { display: flex; flex-direction: column; gap: 12px; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.share-row .lbl { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.share-dl { margin-left: auto; padding: 11px 22px; border-radius: 10px; cursor: pointer; font-family: inherit; font-weight: 700; font-size: 0.9rem; border: 0; color: #04161a; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); transition: all 0.2s var(--ease); }
.share-dl:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px var(--accent-glow); }
.share-dl:disabled { opacity: 0.6; cursor: wait; transform: none; }
.share-stage { display: grid; place-items: center; padding: 22px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.share-stage svg { width: 100%; height: auto; max-width: 440px; border-radius: 14px; box-shadow: var(--shadow); }
.share-stage.r45 svg { max-width: 380px; }
.share-stage.r916 svg { max-width: 300px; }
.share-hint { text-align: center; color: var(--faint); font-size: 0.82rem; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { margin-top: 70px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer p { color: var(--muted); font-size: 0.84rem; margin: 0; }
.footer-dim { color: var(--faint); }
.footer-credit {
  margin-top: 12px !important; font-size: 0.9rem !important;
  color: var(--faint); letter-spacing: 0.02em;
}
.footer-credit a { color: var(--accent); font-weight: 650; }
.footer-share { margin-top: 8px !important; }
.linklike {
  background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit;
  font-size: 0.86rem; font-weight: 600; color: var(--accent);
  border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.linklike:hover { border-bottom-color: var(--accent); }

/* ── Scrollbar ───────────────────────────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.13); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1340px) { .tab-desc { display: none; } }
@media (max-width: 860px) {
  .compare-wrap { grid-template-columns: 1fr; }
  .conf-panel { position: static; }
  .findings { grid-template-columns: 1fr; }
  .vs-grid { grid-template-columns: 1fr; }
  .game-menu { grid-template-columns: 1fr; }
  .tabs { gap: 2px; padding: 5px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .tab { padding: 9px 11px; flex: 0 0 auto; }
}
@media (max-width: 560px) {
  .hl-stage { grid-template-columns: 1fr; }
  .hl-vs { padding: 8px 0; }
  .guess-options { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .statbar { grid-template-columns: repeat(2, 1fr); }
  .masthead-top { align-items: flex-start; }
  .tab-index { display: none; }
  .tab { align-items: center; }
  .lc-row { grid-template-columns: 120px 1fr 40px; gap: 10px; }
  .lc-where { display: none; }
  .rank-row { grid-template-columns: 24px 96px 1fr auto; gap: 9px; }
  .view-head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
