:root {
  --bg: #f6f5f1;
  --bg-2: #ecebe5;
  --surface: #ffffff;
  --line: #dedcd3;
  --text: #15161a;
  --muted: #676a73;
  --accent: #3a7d0a;
  --accent-text: #2f6a08;
  --accent-ink: #ffffff;
  --accent-soft: #e4f2d4;
  --hl: #c6f432;
  --gold: #b7791f;
  --silver: #7a8494;
  --bronze: #a0522d;
  --danger: #b42318;
  --hero-top: #f4ede2;
  --hero-glow: #f6e3c4;
  --globe-a: #fff6e8;
  --globe-b: #ecd9bb;
  --warm: #9a7448;
  --warm-ink: #6f4e2a;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 8px 24px rgba(20, 20, 30, .06);
  --card-shadow: drop-shadow(0 6px 14px rgba(20, 20, 30, .18));
  --radius: 16px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0e11; --bg-2: #15171b; --surface: #17191e; --line: #2a2d34;
    --text: #eef0f3; --muted: #9a9fab; --accent: #c6f432; --accent-text: #c6f432; --accent-ink: #11140a;
    --accent-soft: #232b12; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
    --card-shadow: drop-shadow(0 8px 18px rgba(0, 0, 0, .55));
    --gold: #f2c14e; --silver: #c2c8d2; --bronze: #e08e5b; --danger: #ff7a6b;
    --hero-top: #15140f; --hero-glow: #2a2316; --globe-a: #3a3022; --globe-b: #1d1912; --warm: #d7b383; --warm-ink: #e2c49a;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0e11; --bg-2: #15171b; --surface: #17191e; --line: #2a2d34;
  --text: #eef0f3; --muted: #9a9fab; --accent: #c6f432; --accent-text: #c6f432; --accent-ink: #11140a;
  --accent-soft: #232b12; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  --card-shadow: drop-shadow(0 8px 18px rgba(0, 0, 0, .55));
  --gold: #f2c14e; --silver: #c2c8d2; --bronze: #e08e5b; --danger: #ff7a6b;
  --hero-top: #15140f; --hero-glow: #2a2316; --globe-a: #3a3022; --globe-b: #1d1912; --warm: #d7b383; --warm-ink: #e2c49a;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.flag { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.12); vertical-align: middle; }
.flag-lg { width: 48px; height: 48px; }
.flag-xl { width: 72px; height: 72px; }

/* ---------- card artwork ---------- */
.cardart { position: relative; aspect-ratio: 1.586; width: 100%; flex: none; display: block; }
.cardart img { width: 100%; height: 100%; object-fit: contain; display: block; filter: var(--card-shadow); }
.cardart.drawn {
  border-radius: 7%/11%; overflow: hidden; color: var(--fg, #fff);
  box-shadow: 0 6px 14px rgba(20, 20, 30, .18), inset 0 0 0 1px rgba(255,255,255,.08);
  container-type: inline-size;
}
.cardart.drawn::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 38%); }
.ca-word { position: absolute; left: 7%; top: 9%; font-weight: 800; font-size: 9.5cqw; letter-spacing: -.02em; line-height: 1; }
.ca-chip { position: absolute; left: 8%; top: 40%; width: 13%; aspect-ratio: 1.3; border-radius: 18%; background: linear-gradient(135deg, #f3dd9b, #c59d45 55%, #e9cf85); box-shadow: inset 0 0 0 1px rgba(90, 60, 10, .35); }
.ca-chip::after { content: ""; position: absolute; inset: 30% 0; border-top: 1px solid rgba(90,60,10,.35); border-bottom: 1px solid rgba(90,60,10,.35); }
.ca-nfc { position: absolute; left: 24%; top: 41%; width: 7%; aspect-ratio: 1; opacity: .7; border: 2px solid currentColor; border-color: transparent currentColor transparent transparent; border-radius: 50%; }
.ca-num { position: absolute; left: 8%; bottom: 10%; font: 600 5.2cqw/1 var(--mono); opacity: .8; letter-spacing: .08em; }
.ca-net { position: absolute; right: 7%; bottom: 9%; }
.ca-visa { font: italic 900 9cqw/1 Arial, sans-serif; letter-spacing: -.03em; }
.ca-mc { display: flex; }
.ca-mc i { width: 10cqw; aspect-ratio: 1; border-radius: 50%; background: #eb001b; display: block; }
.ca-mc i + i { background: #f79e1b; margin-left: -4cqw; opacity: .92; }
.ca-amex { font: 900 5.5cqw/1 Arial, sans-serif; background: #2e77bc; color: #fff; padding: 1.4cqw 2cqw; border-radius: 1cqw; }
.art-xs { width: 52px; }
.art-sm { width: 84px; }
.art-md { width: 120px; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 19px; white-space: nowrap; letter-spacing: -.01em; }
.brand b { font-weight: 800; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 7px 11px; border-radius: 9px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--bg-2); }
.x-link { display: grid; place-items: center; margin-left: 8px; }
.footer-x { display: inline-flex; gap: 8px; align-items: center; margin-top: 12px; font-weight: 700; text-decoration: none; color: var(--text); }
.footer-x:hover { color: var(--accent-text); }
.icon-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 16px; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary.disabled { opacity: .5; cursor: default; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.link-more { font-weight: 700; text-decoration: none; color: var(--accent-text); white-space: nowrap; }
.link-more:hover { text-decoration: underline; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 700; color: var(--accent-text); margin: 0 0 10px; }

/* ---------- hero: card deck over a globe ---------- */
.hero2 {
  position: relative; overflow: clip; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 78% 55%, var(--hero-glow) 0%, transparent 70%),
    linear-gradient(180deg, var(--hero-top) 0%, var(--bg) 100%);
}
.hero2-in { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 24px; align-items: center; min-height: 600px; }
.hero-copy { padding: 56px 0; position: relative; z-index: 2; }
.eyebrow.warm { color: var(--warm); letter-spacing: .18em; font-weight: 600; }
.hero2 h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; max-width: 11ch; }
.hero-lead { font-size: 19px; color: var(--muted); max-width: 46ch; margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { filter: brightness(1.15); }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.btn-light:hover { border-color: var(--muted); }
.hero-search { display: block; margin-top: 18px; max-width: 360px; }
.hero-search input { width: 100%; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--text); padding: 0 14px; font: 600 14px Manrope, sans-serif; }
.hero-stats { display: flex; gap: 30px; margin: 30px 0 0; }
.hero-stats dt { font-size: 12px; color: var(--muted); }
.hero-stats dd { margin: 2px 0 0; font: 700 22px var(--mono); }

.hero-visual { position: relative; height: 600px; touch-action: pan-y; }
.globe-glow { position: absolute; left: 50%; top: 52%; width: 86%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--globe-a) 0%, var(--globe-b) 55%, transparent 72%); opacity: .9; transition: opacity .6s; }
.globe-ready .globe-glow { opacity: .35; }
.globe { position: absolute; inset: -10px -130px -170px -50px; cursor: grab; z-index: 1; }
.globe:active { cursor: grabbing; }
.globe canvas { filter: saturate(1.35) contrast(1.08) brightness(1.04); outline: none; }
:root[data-theme="dark"] .globe canvas { filter: saturate(1.3) contrast(1.05); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .globe canvas { filter: saturate(1.3) contrast(1.05); } }

.gpin { width: 0; height: 0; }
.gpin.is-hidden { visibility: hidden; }
.gflag { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.35); cursor: pointer; transition: transform .15s; }
.gflag img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.gflag:hover, .gflag:focus-visible { transform: scale(1.4); z-index: 5; outline: none; }
.gpin:hover { z-index: 10; position: relative; }
.gflag.on { border-color: var(--hl); box-shadow: 0 0 0 3px var(--text), 0 3px 10px rgba(0,0,0,.4); transform: scale(1.35); }
.gflag::after { content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%) scale(.72); transform-origin: bottom center;
  background: var(--text); color: var(--bg); font: 700 13px Manrope, sans-serif; padding: 4px 9px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.gflag:hover::after, .gflag:focus-visible::after, .gflag.on::after { opacity: 1; }

.bubbles .bubble { position: absolute; width: 58px; height: 58px; border-radius: 50%; background: var(--surface); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(60, 40, 10, .12); z-index: 3; pointer-events: none; animation: bob 6s ease-in-out infinite; transition: opacity .4s; }
.bubble svg { width: 24px; height: 24px; fill: none; stroke: var(--warm-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.b1 { left: 54%; top: 3%; }
.b2 { right: 4%; top: 15%; animation-delay: -1.5s; }
.b3 { left: 0; top: 52%; animation-delay: -3s; }
.b4 { left: 32%; bottom: 3%; animation-delay: -4.5s; }
.is-scattered .bubble { opacity: 0; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.deck { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.deck-card { position: absolute; width: 46%; display: block; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; -webkit-user-drag: none;
  transition: left .7s cubic-bezier(.2,.8,.2,1), top .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.deck-card img { pointer-events: none; filter: drop-shadow(0 18px 28px rgba(40, 25, 5, .28)); }
.deck-card:hover { filter: brightness(1.03); }
.deck-card.dragging { transition: none; cursor: grabbing; }

.globe-ui { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; z-index: 5; pointer-events: none; }
.globe-hint { font-size: 13px; font-weight: 600; color: var(--muted); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.globe-btns { display: flex; gap: 6px; pointer-events: auto; }
.globe-btns button { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 700 16px Manrope, sans-serif; cursor: pointer; }
.globe-btns button.wide { padding: 0 12px; font-size: 13px; }
.globe-btns button:hover { border-color: var(--muted); }
.no-webgl .globe-btns button:not(.wide) { display: none; }

.country-view { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); max-width: 440px; animation: rise .35s ease-out; }
.country-view[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.back-link { border: 0; background: none; color: var(--muted); font: 700 13px Manrope, sans-serif; cursor: pointer; padding: 0; margin-bottom: 14px; }
.back-link:hover { color: var(--text); }
.cp-head { display: flex; gap: 14px; align-items: center; }
.cp-head h2 { font-size: 24px; font-weight: 800; }
.cp-head p { margin: 2px 0 0; }
.cp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.cp-stats div { background: var(--bg); border-radius: 12px; padding: 10px; }
.cp-stats b { display: block; font: 700 20px var(--mono); }
.cp-stats span { font-size: 11px; color: var(--muted); line-height: 1.25; display: block; }
.cp-sub { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.cp-top { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.cp-top a { display: grid; grid-template-columns: 18px 72px 1fr auto; gap: 10px; align-items: center; text-decoration: none; padding: 7px; border-radius: 12px; }
.cp-top a:hover { background: var(--bg); }
.cp-top .art-sm { width: 72px; }
.cp-top .rank { font-size: 15px; }
.cp-name b { display: block; font-size: 14px; }
.cp-name span { font-size: 12px; color: var(--muted); }
.cp-best { margin: 0 0 16px; display: grid; gap: 6px; font-size: 13px; border-top: 1px solid var(--line); padding-top: 12px; }
.cp-best div { display: flex; justify-content: space-between; gap: 10px; }
.cp-best dt { color: var(--muted); }
.cp-best dd { margin: 0; text-align: right; font-weight: 700; }
.cp-best a { text-decoration: none; }
.cp-best a:hover { text-decoration: underline; }

/* ---------- page header (inner pages) ---------- */
.page-head { padding: 44px 0 8px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; }
.page-head p.lead { font-size: 18px; color: var(--muted); max-width: 64ch; margin: 12px 0 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }

/* ---------- sections ---------- */
.section { padding-top: 64px; }
.section-head { margin-bottom: 22px; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.section-head p { color: var(--muted); margin: 8px 0 0; }

/* ---------- picks ---------- */
.picks-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pick { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; transition: transform .15s, border-color .15s; }
.pick:hover { transform: translateY(-3px); border-color: var(--muted); }
.pick .cardart { width: 82%; margin: 4px auto 6px; }
.pick-tag { font-size: 11px; font-weight: 800; color: var(--accent-text); text-transform: uppercase; letter-spacing: .07em; }
.pick-name { font-weight: 800; font-size: 17px; }
.pick-foot { display: flex; justify-content: space-between; align-items: end; gap: 8px; margin-top: auto; }
.pick-sub { font-size: 13px; color: var(--muted); }
.pick-big { font: 700 24px/1 var(--mono); text-align: right; white-space: nowrap; }
.pick-big small { display: block; font: 500 11px/1.4 Manrope, sans-serif; color: var(--muted); }

/* ---------- browse tiles ---------- */
.browse-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.browse { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; transition: border-color .15s; }
.browse:hover { border-color: var(--muted); }
.browse b { font-size: 16px; }
.browse > span:last-child { font-size: 13px; color: var(--muted); line-height: 1.4; }
.browse-stack { position: relative; height: 74px; margin-bottom: 8px; }
.browse-stack .cardart { position: absolute; width: 92px; top: 6px; transition: transform .25s; }
.browse-stack .cardart:nth-child(1) { left: 0; transform: rotate(-8deg); }
.browse-stack .cardart:nth-child(2) { left: 30px; z-index: 2; }
.browse-stack .cardart:nth-child(3) { left: 60px; z-index: 3; transform: rotate(8deg); }
.browse:hover .browse-stack .cardart:nth-child(1) { transform: rotate(-12deg) translateX(-4px); }
.browse:hover .browse-stack .cardart:nth-child(3) { transform: rotate(12deg) translateX(4px); }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--accent-soft); border-radius: 20px; padding: 28px; }
.cta-band h2 { font-size: 26px; font-weight: 800; }
.cta-band p { margin: 6px 0 0; color: var(--muted); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- picker ---------- */
.picker { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.q + .q { margin-top: 22px; }
.q h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.qn { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 13px; display: grid; place-items: center; flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 9px 14px; border-radius: 999px; font: 600 14px Manrope, sans-serif; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.chips button:hover { border-color: var(--muted); }
.chips button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.picker select { height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); padding: 0 12px; font: 600 14px Manrope, sans-serif; min-width: 260px; }
.picker-result { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.rec { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; }
.rec.first { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.rec .cardart { width: 78%; margin: 0 auto; }
.rec-medal { font: 700 12px var(--mono); color: var(--muted); }
.rec-name { font-weight: 800; font-size: 17px; }
.rec ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.rec .btn { margin-top: auto; }
.empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 20px; }

/* ---------- rankings ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.tabs a { flex: none; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 9px 14px; border-radius: 10px; font: 600 14px Manrope, sans-serif; white-space: nowrap; text-decoration: none; }
.tabs a[aria-current="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tab-desc { color: var(--muted); margin: 14px 0 16px; }
.toplist, .mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toplist li > a, .mini li > a { display: grid; grid-template-columns: 34px 120px 1fr auto auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; text-decoration: none; }
.mini li > a { grid-template-columns: 26px 84px 1fr auto; gap: 14px; padding: 10px 14px; }
.toplist li > a:hover, .mini li > a:hover { border-color: var(--muted); }
.rank { font: 700 20px var(--mono); color: var(--muted); }
li:nth-child(1) > a > .rank, .cp-top li:nth-child(1) .rank { color: var(--gold); }
li:nth-child(2) > a > .rank, .cp-top li:nth-child(2) .rank { color: var(--silver); }
li:nth-child(3) > a > .rank, .cp-top li:nth-child(3) .rank { color: var(--bronze); }
.tl-name { font-weight: 800; font-size: 17px; display: block; }
.tl-sub { font-size: 14px; color: var(--muted); }
.mini-name b { display: block; }
.mini-name span { font-size: 13px; color: var(--muted); }
.tl-metric { text-align: right; font: 700 20px var(--mono); white-space: nowrap; }
.tl-metric small { display: block; font: 500 11px Manrope, sans-serif; color: var(--muted); }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; padding: 4px 8px; border-radius: 8px; font: 700 14px var(--mono); background: var(--accent-soft); color: var(--text); }

/* ---------- tables ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.filters input[type=search], .filters select { height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); padding: 0 12px; font: 500 14px Manrope, sans-serif; }
.filters input[type=search] { flex: 1 1 240px; }
.toggles { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; font-weight: 600; width: 100%; }
.toggles label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.toggles input { accent-color: var(--accent); width: 16px; height: 16px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cards-table { width: 100%; border-collapse: collapse; min-width: 900px; }
.cards-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 14px; border-bottom: 1px solid var(--line); }
.cards-table th.num { text-align: right; font-family: inherit; }
.cards-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14px; }
.cards-table tbody tr { cursor: pointer; }
.cards-table tbody tr:hover td { background: var(--bg); }
.cards-table tbody tr:last-child td { border-bottom: 0; }
.cards-table td:nth-child(7) { min-width: 190px; }
.c-cmp { width: 44px; }
.c-cmp input { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.cell-card { display: flex; gap: 14px; align-items: center; min-width: 250px; text-decoration: none; }
.cell-card b { display: block; }
.cell-card span.k { font-size: 12px; color: var(--muted); }
.cb-main { font-weight: 700; }
.cb-sub { display: block; font-size: 11px; color: var(--muted); }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--bg-2); color: var(--muted); margin: 1px 2px 1px 0; white-space: nowrap; }
.pill.self { background: var(--accent-soft); color: var(--text); }
.dash { color: var(--muted); }

/* ---------- countries grid ---------- */
.zone-title { font-size: 20px; font-weight: 800; margin: 34px 0 12px; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.country-tile { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; }
.country-tile:hover { border-color: var(--muted); }
.country-tile .flag { width: 34px; height: 34px; }
.country-tile b { display: block; }
.country-tile span { font-size: 12px; color: var(--muted); }
.country-tile .count { font: 700 18px var(--mono); color: var(--text); }

/* ---------- country page ---------- */
.country-hero { display: flex; gap: 20px; align-items: center; }
.country-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font: 700 26px var(--mono); }
.stat span { font-size: 13px; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-col h3 { font-size: 18px; margin-bottom: 12px; }
.note { background: var(--bg-2); border-radius: 12px; padding: 12px 16px; font-size: 14px; color: var(--muted); margin-top: 18px; }

/* ---------- card page ---------- */
.card-hero { display: grid; grid-template-columns: 400px 1fr; gap: 44px; align-items: center; padding-top: 20px; }
.card-hero h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.card-meta { color: var(--muted); margin-top: 6px; }
.badge-pick { display: inline-block; margin: 10px 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; background: var(--hl); color: #15161a; padding: 4px 9px; border-radius: 999px; }
.tl-pick { display: inline-block; margin-left: 8px; vertical-align: 2px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--hl); color: #15161a; padding: 2px 7px; border-radius: 999px; }
.card-desc { font-size: 18px; color: var(--muted); margin: 14px 0 20px; }
.d-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 30px 0; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.kpi small { display: block; font-size: 12px; color: var(--muted); }
.kpi b { font: 700 22px var(--mono); }
.d-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.d-cols > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.d-cols ul { margin: 8px 0 0; padding-left: 18px; }
.d-cols h3 { margin: 0; font-size: 15px; }
.pros h3 { color: var(--accent-text); }
.cons h3 { color: var(--danger); }
.spec { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec th { text-align: left; color: var(--muted); font-weight: 600; width: 30%; padding: 11px 16px; vertical-align: top; }
.spec td { padding: 11px 16px; }
.spec tr + tr th, .spec tr + tr td { border-top: 1px solid var(--line); }
.tiers { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.tiers th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tiers td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tiers tr:last-child td { border-bottom: 0; }
.d-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.flag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.flag-list a { display: inline-flex; gap: 7px; align-items: center; padding: 5px 10px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; font-size: 13px; font-weight: 600; }
.flag-list a:hover { border-color: var(--muted); }
.similar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ---------- compare page ---------- */
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table th, .cmp-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.cmp-table thead th { vertical-align: bottom; }
.cmp-table thead .cardart { width: 170px; margin-bottom: 10px; }
.cmp-table thead a { text-decoration: none; font-weight: 800; }
.cmp-table tbody th { color: var(--muted); font-weight: 600; width: 180px; }
.cmp-table .best { background: var(--accent-soft); font-weight: 700; }
.cmp-remove { border: 0; background: none; color: var(--muted); cursor: pointer; font: 600 12px Manrope, sans-serif; padding: 0; margin-top: 4px; }
.cmp-remove:hover { color: var(--danger); }

/* ---------- guide ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.guide-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.guide-card h3 { font-size: 17px; margin-bottom: 10px; }
.guide-card p { margin: 0; color: var(--muted); font-size: 15px; }
.guide-card p b { color: var(--text); }
.guide-card.method { background: var(--accent-soft); border-color: transparent; }
.faq { margin-top: 48px; max-width: 820px; }
.faq h2 { font-size: 26px; margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "-"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* ---------- footer ---------- */
.footer { margin-top: 90px; padding: 36px 0 110px; border-top: 1px solid var(--line); font-size: 14px; }
.footer-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer p { margin: 6px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer-nav a { text-decoration: none; color: var(--muted); font-weight: 600; }
.footer-nav a:hover { color: var(--text); }

/* ---------- compare tray ---------- */
.cmp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.08); }
.cmp-bar[hidden] { display: none; }
.cmp-bar-in { display: flex; align-items: center; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.cmp-chips { display: flex; gap: 8px; flex: 1; overflow-x: auto; }
.cmp-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px 4px 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cmp-chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 7px 8px; font-size: 13px; }
  .browse-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hero2-in { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding: 40px 0 8px; }
  .hero-visual { height: 520px; margin: 0 -16px; }
  .country-view { max-width: none; }
  .picks-row, .picker-result, .guide-grid, .similar { grid-template-columns: 1fr 1fr; }
  .d-kpis, .country-stats { grid-template-columns: 1fr 1fr; }
  .card-hero { grid-template-columns: 1fr; gap: 24px; }
  .card-hero .cardart { max-width: 420px; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .topbar-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 0; gap: 8px 16px; }
  .brand { order: 1; }
  .icon-btn { order: 2; }
  .x-link { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 -16px; padding: 4px 12px 8px; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  html { scroll-padding-top: 110px; }
}
@media (max-width: 640px) {
  .hero-visual { height: 430px; }
  .globe { inset: -10px -30px -60px -30px; }
  .deck-card { width: 46% !important; }
  .globe-hint { display: none; }
  .globe-ui { justify-content: flex-end; padding: 0 16px; }
  .hero-lead { font-size: 17px; }
  .bubbles .bubble { width: 44px; height: 44px; }
  .bubble svg { width: 19px; height: 19px; }
  .picks-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pick { padding: 12px; }
  .pick .cardart { width: 100%; }
  .pick-name { font-size: 15px; }
  .pick-big { font-size: 18px; }
  .browse-grid { grid-template-columns: 1fr 1fr; }
  .section-head.row { flex-direction: column; align-items: flex-start; }
  .picker { padding: 18px; }
  .picker select { min-width: 0; width: 100%; }
  .picker-result, .guide-grid, .d-cols, .similar { grid-template-columns: 1fr; }
  .toplist li > a { grid-template-columns: 22px 84px 1fr auto; gap: 12px; padding: 12px; }
  .toplist li > a > :nth-child(4), .toplist .tl-sub, .mini-name > span { display: none; }
  .toplist .art-md { width: 84px; }
  .mini li > a { grid-template-columns: 20px 70px 1fr auto; gap: 10px; }
  .mini .art-sm { width: 70px; }
  .tl-name { font-size: 15px; }
  .tl-metric { font-size: 16px; }
  .filters select { flex: 1 1 45%; }
  .cta-band { padding: 20px; }
  .country-hero .flag-xl { width: 52px; height: 52px; }
}
