/* ==========================================================================
   Bhima Bhoi Odisha Open — styles
   Palette: night indigo, temple-laterite red, marigold gold, palm-leaf cream.
   ========================================================================== */

:root {
  --night: #0b1426;
  --night-2: #121e38;
  --night-3: #1b2a4a;
  --night-line: rgba(247, 241, 227, 0.12);

  --paper: #f7f1e3;
  --paper-2: #efe5cf;
  --sand: #ead9b6;
  --card: #fffdf7;
  --line: #e2d5b8;

  --ink: #18202f;
  --ink-2: #4a5263;
  --ink-3: #6f7686;

  --gold: #f0b43c;
  --gold-2: #f6cf74;
  --gold-deep: #b97c12;
  --red: #b4372a;
  --red-2: #942a1f;
  --leaf: #2f6b4f;

  --cream-text: #f7f1e3;
  --cream-muted: rgba(247, 241, 227, 0.72);

  --f-display: "Fraunces", Georgia, "Times New Roman", serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-odia: "Noto Serif Oriya", serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(24, 32, 47, 0.06), 0 2px 8px rgba(24, 32, 47, 0.05);
  --shadow: 0 2px 6px rgba(24, 32, 47, 0.06), 0 14px 34px rgba(24, 32, 47, 0.09);
  --shadow-lg: 0 30px 70px rgba(4, 9, 20, 0.45);

  --header-h: 64px;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1180px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 500 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--night); padding: 10px 14px; border-radius: 8px; font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 12px; }

.t-gold { color: var(--gold); }

/* Inline line icons */
.hero-meta svg, .btn svg, .callout svg, .deadline-pill svg, .fact-icon svg, .hosp-icon svg, .contact svg {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 700 15px/1 var(--f-body); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-gold { background: var(--gold); color: var(--night); box-shadow: 0 6px 18px rgba(240, 180, 60, 0.28); }
.btn-gold:hover { background: var(--gold-2); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-2); }
.btn-dark { background: var(--night); color: var(--cream-text); }
.btn-dark:hover { background: var(--night-3); }
.btn-ghost { border-color: rgba(247, 241, 227, 0.35); color: var(--cream-text); background: rgba(247, 241, 227, 0.04); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-ghost-dark { border-color: var(--night-line); color: var(--cream-text); background: var(--night-2); }
.btn-outline { border-color: var(--line); background: transparent; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink-3); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 20, 38, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--night-line); background: rgba(11, 20, 38, 0.95); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream-text); }
.brand img { width: 26px; height: auto; }
.brand-text { font: 500 19px/1 var(--f-display); letter-spacing: -0.01em; }
.brand-text b { font-weight: 700; color: var(--gold); font-style: italic; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--cream-muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 999px; transition: color 0.15s, background-color 0.15s; }
.nav a:hover, .nav a.is-active { color: var(--cream-text); background: rgba(247, 241, 227, 0.07); }
.nav .nav-players { color: var(--gold-2); }

.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--night-line); border-radius: 12px; background: transparent; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--cream-text); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer { border-top: 1px solid var(--night-line); background: var(--night); max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.drawer nav { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 20px; }
.drawer a { color: var(--cream-text); text-decoration: none; font-weight: 600; font-size: 17px; padding: 14px 4px; border-bottom: 1px solid var(--night-line); }
.drawer .btn { margin-top: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(240, 180, 60, 0.16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(180, 55, 42, 0.22), transparent 70%),
    var(--night);
  color: var(--cream-text);
  padding: clamp(36px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
}
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: conic-gradient(from 90deg at 1px 1px, transparent 25%, rgba(247, 241, 227, 0.035) 0 50%, transparent 0 75%, rgba(247, 241, 227, 0.035) 0);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 80% at 30% 40%, #000, transparent 75%);
  mask-image: radial-gradient(80% 80% at 30% 40%, #000, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.hero-orgs { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-bottom: 28px; }
.org { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; line-height: 1.25; }
.org small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); opacity: 0.9; }
.org-logo-light { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--paper); padding: 4px; }
.org-logo-light img { width: auto; height: 36px; }
.org-logos { display: flex; }
.org-logos img { width: 38px; height: 38px; border-radius: 50%; background: #fff; padding: 2px; border: 2px solid var(--night); }
.org-logos img + img { margin-left: -10px; }

.hero-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.edition { display: inline-flex; align-items: baseline; padding: 6px 12px 5px; border: 1px solid rgba(240, 180, 60, 0.45); border-radius: 999px; color: var(--gold-2); font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.edition sup { font-size: 0.7em; margin-right: 4px; }
.odia { font: 600 20px/1 var(--f-odia); color: var(--cream-muted); }

.hero-title { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.02em; display: flex; flex-direction: column; }
.hero-title .t-gold { font-style: italic; font-weight: 500; font-size: clamp(46px, 7.4vw, 92px); line-height: 0.98; font-variation-settings: "opsz" 144; }
.hero-title .t-main { font-size: clamp(42px, 6.6vw, 82px); line-height: 1; font-variation-settings: "opsz" 144; }
.hero-title .t-sub { font-family: var(--f-body); font-weight: 700; font-size: clamp(13px, 1.5vw, 16px); letter-spacing: 0.32em; text-transform: uppercase; color: var(--cream-muted); margin-top: 16px; }

.hero-meta { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.hero-meta li { display: flex; align-items: flex-start; gap: 12px; color: var(--cream-muted); font-size: 15px; line-height: 1.4; }
.hero-meta svg { width: 22px; height: 22px; color: var(--gold); margin-top: 1px; }
.hero-meta b { display: block; color: var(--cream-text); font-size: 16px; }

.hero-prize { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: end; margin-top: 30px; padding: 18px 22px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(180, 55, 42, 0.35), rgba(180, 55, 42, 0.08)); border: 1px solid rgba(240, 180, 60, 0.28); max-width: 480px; }
.hero-prize-label { grid-column: 1 / -1; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
.hero-prize-amount { font: 700 clamp(40px, 5vw, 56px)/1 var(--f-display); letter-spacing: -0.02em; color: #fff; font-variant-numeric: lining-nums; }
.hero-prize-note { font-size: 14px; color: var(--cream-muted); padding-bottom: 6px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-art { position: relative; display: grid; justify-items: center; }
.arch { position: relative; margin: 0; width: 100%; max-width: 500px; }
.arch picture, .arch img { width: 100%; }
.arch img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% center; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: var(--shadow-lg); }
.arch::before { content: ""; position: absolute; inset: -12px; border: 1.5px solid rgba(240, 180, 60, 0.5); border-radius: 999px 999px 22px 22px; pointer-events: none; }
.arch figcaption { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); padding: 8px 16px; border-radius: 999px; background: rgba(11, 20, 38, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font: italic 500 15px/1.2 var(--f-display); color: var(--gold-2); white-space: nowrap; }

.countdown { position: relative; margin-top: -36px; width: min(92%, 380px); padding: 16px 18px 14px; border-radius: var(--radius); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); text-align: center; }
.countdown-label { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.countdown-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 6px; }
.countdown-units div { display: grid; }
.countdown-units b { font: 700 30px/1.1 var(--f-display); font-variant-numeric: tabular-nums lining-nums; color: var(--night); }
.countdown-units span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.countdown-foot { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.countdown.is-live .countdown-label { color: var(--leaf); }
.countdown-message { font: 600 20px/1.3 var(--f-display); color: var(--night); margin: 6px 0; }

/* ---------- Facts ---------- */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(5, auto); justify-content: space-between; }
.fact { display: flex; align-items: center; gap: 12px; padding: 22px clamp(12px, 2vw, 28px); border-right: 1px solid var(--line); white-space: nowrap; }
.fact:first-child { padding-left: 0; }
.fact:last-child { border-right: 0; }
.fact-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--paper-2); color: var(--night); font: 600 22px/1 var(--f-display); }
.fact-icon svg { width: 22px; height: 22px; }
.fact b { display: block; font-size: 15px; line-height: 1.25; }
.fact span:not(.fact-icon) { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.fact-alert .fact-icon { background: rgba(180, 55, 42, 0.1); color: var(--red); }
.fact-alert b { color: var(--red); }

/* ---------- Tribute ---------- */
.tribute { padding: clamp(48px, 7vw, 80px) 0; text-align: center; background: var(--paper); }
.tribute-inner { max-width: 820px; }
.tribute blockquote { margin: 14px 0 0; }
.tribute blockquote p { font: italic 500 clamp(24px, 3.4vw, 36px)/1.3 var(--f-display); letter-spacing: -0.01em; color: var(--night); }
.tribute footer { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.tribute cite { display: block; font-style: normal; font-weight: 700; color: var(--red); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-dark { background: var(--night); color: var(--cream-text); }
.section-sand { background: var(--paper-2); }

.kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.section-dark .kicker { color: var(--gold-2); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.section-head h2 { font: 600 clamp(32px, 4.4vw, 50px)/1.08 var(--f-display); letter-spacing: -0.02em; font-variation-settings: "opsz" 144; }
.section-head-split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.section-lede { max-width: 420px; color: var(--ink-2); font-size: 16px; }
.section-dark .section-lede { color: var(--cream-muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.card h3 { font: 600 22px/1.2 var(--f-display); margin-bottom: 16px; }

/* ---------- Schedule ---------- */
.days { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.day-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--card), var(--paper)); }
.day-num { padding: 6px 12px; border-radius: 999px; background: var(--night); color: var(--gold-2); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.day-head h3 { font: 600 21px/1.2 var(--f-display); }

.timeline { list-style: none; margin: 0; padding: 12px 24px 20px; }
.timeline li { position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 20px; padding: 12px 0 12px; }
.timeline li::before { content: ""; position: absolute; left: 104px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li:first-child::before { top: 22px; }
.timeline li:last-child::before { bottom: calc(100% - 22px); }
.timeline li::after { content: ""; position: absolute; left: 99px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink-3); }
.timeline time { font-weight: 700; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 2px; text-align: right; padding-right: 12px; }
.timeline span { font-weight: 700; font-size: 16px; padding-left: 12px; }
.timeline small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-3); }
.timeline .is-round::after { background: var(--night); border-color: var(--night); }
.timeline .is-break span, .timeline .is-break time { color: var(--ink-3); font-weight: 600; }
.timeline .is-key span { color: var(--red); }
.timeline .is-key::after { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 4px rgba(180, 55, 42, 0.15); }
.timeline .is-award::after { background: var(--gold); border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(240, 180, 60, 0.22); }
.timeline .is-award span { color: var(--gold-deep); }

/* ---------- Prizes ---------- */
.sub-head { display: flex; align-items: baseline; gap: 12px; font: 600 24px/1.2 var(--f-display); margin: 8px 0 20px; }
.sub-head span { font: 700 14px/1 var(--f-body); color: var(--gold-2); padding: 6px 10px; border-radius: 999px; background: rgba(240, 180, 60, 0.12); }
.sub-head + .tabs { margin-bottom: 28px; }
.ranks + .sub-head { margin-top: 56px; }

.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: end; }
.podium-card { position: relative; display: grid; justify-items: center; gap: 4px; padding: 24px 16px 22px; border-radius: var(--radius) var(--radius) 6px 6px; text-align: center; background: var(--night-2); border: 1px solid var(--night-line); }
.podium-card .place { font: italic 600 20px/1 var(--f-display); color: var(--cream-muted); }
.podium-card b { font: 700 clamp(28px, 3.6vw, 40px)/1.1 var(--f-display); color: #fff; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.podium-card .trophy { font-size: 13px; font-weight: 700; color: var(--gold-2); }
.podium-card.p1 { padding-top: 44px; padding-bottom: 40px; background: linear-gradient(180deg, rgba(240, 180, 60, 0.28), rgba(240, 180, 60, 0.06)); border-color: rgba(240, 180, 60, 0.5); }
.podium-card.p1 .place { color: var(--gold); font-size: 26px; }
.podium-card.p1 b { font-size: clamp(36px, 4.8vw, 54px); }
.podium-card.p2 { padding-top: 32px; }
.podium-card::before { content: "♛"; position: absolute; top: -18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--night); border: 1px solid var(--night-line); font-size: 16px; color: var(--cream-muted); }
.podium-card.p1::before { background: var(--gold); color: var(--night); border-color: var(--gold); content: "♚"; font-size: 20px; }

.ranks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ranks li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--night-2); border: 1px solid var(--night-line); }
.ranks span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-muted); }
.ranks b { font: 700 19px/1.2 var(--f-display); font-variant-numeric: lining-nums; }
.ranks i { font: 600 12px/1 var(--f-body); color: var(--gold-2); font-style: normal; }
.ranks-local { grid-template-columns: repeat(5, 1fr); margin: 0; }

.tab-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: none; }
.tab-list::-webkit-scrollbar { display: none; }
.tab-list [role="tab"] { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--night-line); background: transparent; color: var(--cream-muted); font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.15s; }
.tab-list [role="tab"] span { font-size: 12px; opacity: 0.75; }
.tab-list [role="tab"]:hover { color: var(--cream-text); border-color: rgba(247, 241, 227, 0.3); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--night); }
.tab-list [role="tab"][aria-selected="true"] span { opacity: 0.8; }
.tab-panel:focus-visible { outline-offset: 6px; }
.panel-note { color: var(--cream-muted); margin-bottom: 14px; font-size: 15px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cat-grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 640px; }
.cat { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--night-2); border: 1px solid var(--night-line); }
.cat h4 { font: 600 18px/1.2 var(--f-display); margin-bottom: 12px; color: var(--cream-text); }
.cat dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.cat dt { font-size: 13px; font-weight: 700; color: var(--cream-muted); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 2px; }
.cat dd { margin: 0; font-weight: 800; font-size: 16px; text-align: right; font-variant-numeric: lining-nums; }
.cat dd i { font-style: normal; font-weight: 600; font-size: 13px; color: var(--gold-2); }
.cat-note { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--night-line); font-size: 13px; color: var(--cream-muted); }

.callout { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; }
.callout svg { width: 22px; height: 22px; margin-top: 1px; }
.callout-dark { margin-top: 28px; background: rgba(240, 180, 60, 0.1); border: 1px solid rgba(240, 180, 60, 0.3); color: var(--gold-2); }

/* ---------- Entry ---------- */
.deadline-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(180, 55, 42, 0.1); color: var(--red); font-size: 15px; font-weight: 600; }
.deadline-pill svg { width: 20px; height: 20px; }

.entry-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 20px; align-items: stretch; }
.fees { display: grid; gap: 12px; }
.fee { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
.fee span { font-weight: 700; line-height: 1.3; }
.fee small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-3); }
.fee b { font: 700 34px/1 var(--f-display); color: var(--night); font-variant-numeric: lining-nums; }

.pay-card { background: linear-gradient(160deg, #fff8e6, var(--card)); }
.pay-number { font: 700 clamp(30px, 3.4vw, 38px)/1.1 var(--f-display); letter-spacing: 0.02em; color: var(--night); font-variant-numeric: tabular-nums lining-nums; }
.pay-name { margin: 6px 0 18px; color: var(--ink-2); }
.pay-name b { color: var(--ink); }
.fine { margin-top: 12px; font-size: 13px; color: var(--ink-3); line-height: 1.5; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 20px; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; min-height: 30px; padding: 4px 0 0 42px; color: var(--ink-2); line-height: 1.45; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--night); color: var(--gold-2); font-weight: 800; font-size: 14px; }
.steps b { color: var(--ink); }
.steps-actions { display: grid; gap: 10px; }

.need { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.need summary { cursor: pointer; list-style: none; padding: 18px 24px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.need summary::-webkit-details-marker { display: none; }
.need summary::after { content: "+"; font: 400 26px/1 var(--f-body); color: var(--ink-3); transition: transform 0.2s; }
.need[open] summary::after { transform: rotate(45deg); }
.need-list { margin: 0; padding: 0 24px 22px; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 24px; }
.need-list li { position: relative; padding-left: 24px; color: var(--ink-2); font-size: 15px; }
.need-list li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--leaf); border-bottom: 2px solid var(--leaf); transform: rotate(-45deg); }

/* ---------- Venue ---------- */
.venue-hero { position: relative; margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.venue-hero img { width: 100%; aspect-ratio: 1024 / 438; object-fit: cover; }
.venue-hero figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 60px 24px 20px; background: linear-gradient(transparent, rgba(11, 20, 38, 0.88)); color: var(--cream-text); }
.venue-hero b { display: block; font: 600 clamp(20px, 2.6vw, 28px)/1.2 var(--f-display); }
.venue-hero span { color: var(--cream-muted); font-size: 14px; }

.hosp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hosp-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--night); color: var(--gold-2); margin-bottom: 16px; }
.hosp-icon svg { width: 24px; height: 24px; }
.hosp h3 { margin-bottom: 10px; }
.hosp p { color: var(--ink-2); }
.hosp p + p { margin-top: 8px; }

/* ---------- Rules ---------- */
.rules-wrap { max-width: 920px; }
.rules { list-style: none; counter-reset: rule; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.rules li { counter-increment: rule; position: relative; padding: 18px 0 18px 60px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 16px; }
.rules li::before { position: absolute; left: 0; top: 17px; content: counter(rule, decimal-leading-zero); font: italic 600 20px/1.3 var(--f-display); color: var(--red); }
.rules b { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-group h3 { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 12px; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; margin-bottom: 10px; border-radius: var(--radius-sm); background: var(--night-2); border: 1px solid var(--night-line); text-decoration: none; transition: border-color 0.15s, background-color 0.15s; }
.contact:hover { border-color: rgba(240, 180, 60, 0.5); background: var(--night-3); }
.contact span { color: var(--cream-muted); font-variant-numeric: tabular-nums; font-size: 15px; }
.contact b { display: block; color: var(--cream-text); font-size: 17px; }
.contact i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--gold); color: var(--night); }
.contact svg { width: 20px; height: 20px; }

.organisers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--night-line); }
.organiser { display: flex; align-items: center; gap: 14px; font-weight: 700; line-height: 1.3; }
.organiser small { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-muted); font-weight: 700; }
.org-badge { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; }
.org-badge img { width: 60px; height: 60px; object-fit: contain; }
.org-badge-light { border-radius: 16px; background: var(--paper); }
.org-badge-light img { width: auto; height: 52px; }

/* ---------- Footer ---------- */
.site-footer { background: #070d1a; color: var(--cream-muted); padding: 32px 0; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-title { font: 600 17px/1.3 var(--f-display); color: var(--cream-text); margin-bottom: 4px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--gold-2); }

/* ---------- Mobile action bar & toast ---------- */
.action-bar { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 16px); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--night); color: var(--cream-text); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--gold-2); }

/* ---------- Players page ---------- */
.page-hero { background: radial-gradient(60% 90% at 90% 0%, rgba(240, 180, 60, 0.14), transparent 70%), var(--night); color: var(--cream-text); padding: clamp(36px, 6vw, 64px) 0 clamp(80px, 10vw, 112px); }
.page-hero h1 { font: 600 clamp(34px, 5vw, 56px)/1.05 var(--f-display); letter-spacing: -0.02em; margin-top: 4px; }
.page-hero .kicker { color: var(--gold-2); }
.page-hero-sub { color: var(--cream-muted); margin-top: 10px; max-width: 560px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--cream-muted); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 20px; }
.back-link:hover { color: var(--gold-2); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -56px; position: relative; }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat b { display: block; font: 700 34px/1.1 var(--f-display); color: var(--night); font-variant-numeric: tabular-nums lining-nums; }
.stat span { font-size: 13px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.08em; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 28px 0 14px; }
.search { position: relative; flex: 1 1 280px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; }
.field { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: 600 15px var(--f-body); }
.field:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 3px rgba(240, 180, 60, 0.35); }
.search .field { padding-left: 42px; }
select.field { flex: 0 1 auto; width: auto; padding-right: 36px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; cursor: pointer; }
.refresh-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.refresh-btn.is-loading svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.list-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink-3); font-weight: 600; margin-bottom: 12px; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(47, 107, 79, 0.5); animation: pulse 2s infinite; }
.live-dot.is-offline::before { background: var(--ink-3); animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 107, 79, 0.45); } 70% { box-shadow: 0 0 0 8px rgba(47, 107, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 107, 79, 0); } }

.table-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-bottom: 64px; }
.players-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.players-table th { text-align: left; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); padding: 14px 16px; background: var(--paper); border-bottom: 1px solid var(--line); white-space: nowrap; }
.players-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.players-table tbody tr:last-child td { border-bottom: 0; }
.players-table tbody tr:hover { background: #fffaf0; }
.players-table .num { width: 56px; color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; }
.players-table .rating { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.players-table th.rating { text-align: right; }
.player-name { font-weight: 700; color: var(--ink); }
.player-sub { display: block; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--paper-2); color: var(--ink-2); }
.tag-local { background: rgba(47, 107, 79, 0.12); color: var(--leaf); }
.unrated { color: var(--ink-3); font-weight: 600; }
.empty-state { padding: 56px 24px; text-align: center; color: var(--ink-2); }
.empty-state b { display: block; font: 600 22px/1.3 var(--f-display); color: var(--ink); margin-bottom: 6px; }
.skeleton td span { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--paper-2), var(--paper), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 404 ---------- */
.not-found { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; background: var(--night); color: var(--cream-text); padding: 48px var(--gutter); }
.not-found h1 { font: 600 clamp(36px, 6vw, 64px)/1.05 var(--f-display); margin: 12px 0; }
.not-found p { color: var(--cream-muted); margin-bottom: 24px; }
.not-found .big { font: italic 600 96px/1 var(--f-display); color: var(--gold); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: flex; }
  .facts-grid { grid-template-columns: repeat(3, 1fr); justify-content: stretch; }
  .fact { white-space: normal; }
  .fact { border-bottom: 1px solid var(--line); }
  .fact:nth-child(3) { border-right: 0; }
  .fact:nth-child(4) { padding-left: 0; }
  .fact:nth-child(n + 4) { border-bottom: 0; }
  .ranks { grid-template-columns: repeat(4, 1fr); }
  .entry-grid { grid-template-columns: 1fr 1fr; }
  .steps-card { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .arch { max-width: 420px; }
  .days, .hosp-grid, .contact-grid { grid-template-columns: 1fr; }
  .organisers { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ranks-local { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }
  body { font-size: 15px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .hero { padding-top: 24px; }
  .hero-art { order: 0; margin-top: 8px; }
  .arch { max-width: 340px; }
  .arch img { aspect-ratio: 4 / 5; object-position: center 60%; }
  .arch::before { inset: -8px; }
  .hero-orgs { gap: 12px 20px; margin-bottom: 22px; }
  .org { font-size: 13px; }
  .hero-prize { padding: 16px 18px; }
  .hero-actions .btn { width: 100%; }
  .countdown-units b { font-size: 26px; }

  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 16px 10px 16px 0 !important; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .fact:nth-child(odd) { padding-right: 12px !important; }
  .fact:last-child { grid-column: 1 / -1; border-bottom: 0 !important; }
  .fact-icon { width: 36px; height: 36px; font-size: 18px; }
  .fact b { font-size: 14px; }

  .timeline { padding: 8px 16px 16px; }
  .timeline li { grid-template-columns: 74px 1fr; gap: 14px; }
  .timeline li::before { left: 82px; }
  .timeline li::after { left: 77px; }
  .timeline time { font-size: 13px; padding-right: 8px; }
  .timeline span { font-size: 15px; padding-left: 8px; }
  .day-head { padding: 16px; }

  .podium { gap: 8px; }
  .podium-card { padding: 22px 6px 16px; }
  .podium-card.p1 { padding-top: 34px; padding-bottom: 28px; }
  .podium-card .place { font-size: 16px; }
  .podium-card.p1 .place { font-size: 20px; }
  .podium-card b { font-size: 22px; }
  .podium-card.p1 b { font-size: 28px; }
  .podium-card .trophy { font-size: 11px; }
  .ranks { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .ranks li { padding: 10px 12px; }
  .ranks b { font-size: 17px; }
  .ranks-local { grid-template-columns: 1fr 1fr; }

  .entry-grid { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .need summary { padding: 16px 20px; }
  .need-list { padding: 0 20px 20px; }

  .venue-hero img { aspect-ratio: 4 / 3; }
  .venue-hero figcaption { flex-direction: column; align-items: flex-start; padding: 48px 16px 16px; }

  .rules li { padding-left: 46px; font-size: 15px; }

  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(11, 20, 38, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--night-line); transform: translateY(110%); transition: transform 0.25s ease; }
  .action-bar.is-visible { transform: none; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }

  .stats { gap: 8px; }
  .stat { padding: 14px 16px; }
  .stat b { font-size: 28px; }
  .toolbar select.field { flex: 1 1 140px; }
  .players-table thead { display: none; }
  .players-table, .players-table tbody, .players-table tr, .players-table td { display: block; width: 100%; }
  .players-table tr { display: grid; grid-template-columns: 40px 1fr auto; gap: 2px 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .players-table tbody tr:last-child { border-bottom: 0; }
  .players-table td { padding: 0; border: 0; }
  .players-table .num { grid-row: span 2; width: auto; padding-top: 2px; }
  .players-table .col-name { grid-column: 2; }
  .players-table .rating { grid-column: 3; grid-row: 1; }
  .players-table .col-place, .players-table .col-cat { grid-column: 2 / -1; font-size: 13px; color: var(--ink-3); }
  .players-table .col-cat { display: none; }
  .players-table .col-fide { display: none; }
  .player-sub { display: inline; }
}

@media (max-width: 380px) {
  .hero-title .t-gold { font-size: 42px; }
  .hero-title .t-main { font-size: 38px; }
  .ranks { grid-template-columns: repeat(2, 1fr); }
  .countdown-units b { font-size: 22px; }
}

@media print {
  .site-header, .action-bar, .toast, .hero-actions, .countdown { display: none !important; }
  body { padding: 0; background: #fff; }
}

/* ---------- Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.link-gold { color: var(--gold-2); font-weight: 700; }
.col-place .tag { display: none; }
@media (max-width: 640px) { .col-place .tag { display: inline-block; margin-left: 4px; } }
.step-note { color: var(--ink-3); font-size: 13px; }
.players-table.no-rating .rating { display: none; }
@media (max-width: 640px) { .players-table.no-rating tr { grid-template-columns: 40px 1fr; } }

/* FIDE ratings (players page) */
.fide-title { display: inline-block; margin-right: 4px; padding: 1px 6px; border-radius: 5px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-decoration: none; vertical-align: 1px; }
.fide-link { color: var(--ink-2); text-decoration: none; border-bottom: 1px dotted var(--ink-3); font-variant-numeric: tabular-nums; }
.fide-link:hover { color: var(--night); border-bottom-color: var(--night); }
.fide-warn { display: inline-block; padding: 1px 7px; border-radius: 999px; background: rgba(180, 55, 42, 0.12); color: var(--red); font-size: 11px; font-weight: 800; cursor: help; }
.asof { font-weight: 500; }
#showing:not(:empty)::after { content: " ·"; }
