/* Layout: every page opens on a band of baize framed by a mahogany rail; below it, bone-paper reading pages set like a match programme. Brass marks the cup and the one action per page. */
:root {
  --paper: #edeff0;
  --surface: #f7f8f8;
  --ink: #171b1e;
  --muted: #545d62;
  --line: #cfd4d6;
  --baize: #4a5256;      /* tournament grey cloth */
  --baize-deep: #262b2e;
  --baize-ink: #f1f3f3;
  --baize-muted: #cdd3d5;
  --baize-hi: #5b6468;
  --rail: #161718;        /* black rails */
  --rail-edge: #3a3d40;
  --brass: #8a6219;
  --brass-on-baize: #e8c06c;
  --ball: #f4f1e6;
  --ball-ink: #33322a;
  --pocket: #08100c;

  --f-display: "Big Shoulders Display", "Noto Sans Georgian", "Arial Narrow", sans-serif;
  --f-body: "Source Serif 4", "Noto Serif Georgian", Georgia, serif;

  --s-1: .875rem; --s0: 1.0625rem; --s1: 1.3rem; --s2: 1.9rem; --s3: clamp(2.4rem, 6vw, 3.6rem); --s4: clamp(3.6rem, 12vw, 6rem);
  --wrap: 86rem;
  --head-h: 4rem;           /* measured by site.js */
  --ease: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121517; --surface: #1a1e21; --ink: #e6e9ea; --muted: #9ca5aa; --line: #2c3236;
    --baize: #3d4448; --baize-deep: #191d1f; --baize-ink: #eef1f1; --baize-muted: #c3cacc; --baize-hi: #4b5458; --rail: #0b0c0d; --rail-edge: #34383b;
    --brass: #d6a954; --brass-on-baize: #e8c06c; --ball: #ece8dc; --ball-ink: #33322a; --pocket: #030806;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121517; --surface: #1a1e21; --ink: #e6e9ea; --muted: #9ca5aa; --line: #2c3236;
  --baize: #3d4448; --baize-deep: #191d1f; --baize-ink: #eef1f1; --baize-muted: #c3cacc; --baize-hi: #4b5458; --rail: #0b0c0d; --rail-edge: #34383b;
  --brass: #d6a954; --brass-on-baize: #e8c06c; --ball: #ece8dc; --ball-ink: #33322a; --pocket: #030806;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: var(--rail) var(--paper); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: var(--s0); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
::selection { background: var(--brass-on-baize); color: var(--baize-deep); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1; text-wrap: balance; margin: 0; }
h1 [lang="en"], h2 [lang="en"], h3 [lang="en"] { text-transform: uppercase; letter-spacing: .01em; }
h1 [lang="ka"], h2 [lang="ka"], h3 [lang="ka"] { font-stretch: 62.5%; font-size: .86em; line-height: 1.12; letter-spacing: 0; }
p { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
/* Bilingual: every string ships in both languages; show the active one */
:root:not([data-lang="en"]) [data-l="en"], :root[data-lang="en"] [data-l="ka"] { display: none !important; }
/* Each pair of translations shares one grid cell: both keep their place and only the active one is visible,
   so every box is sized the same in both languages and nothing moves when the language changes */
.bi { display: inline-grid; text-decoration: inherit; }
:root .bi > [data-l][data-l] { grid-area: 1 / 1; display: block !important; text-decoration: inherit; }
:root:not([data-lang="en"]) .bi > [data-l="en"], :root[data-lang="en"] .bi > [data-l="ka"] { visibility: hidden; }
/* Georgian runs wider than English at the same size; a narrower cut keeps it to the same lines */
[data-l="ka"] { font-stretch: 70%; font-size: .94em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tbd { color: var(--muted); font-style: italic; text-decoration: underline dashed 1px; text-underline-offset: .25em; }
.ball-ico { flex: none; }

/* Header */
.site-head { background: var(--baize-deep); color: var(--baize-ink); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.site-head .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; line-height: 1; white-space: nowrap; }
.brand [lang="en"] { text-transform: uppercase; letter-spacing: .03em; }
.brand [lang="ka"] { font-stretch: 62.5%; font-size: .86em; }
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; font-size: .95rem; color: var(--baize-muted); padding-block: .25rem; border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s, border-color .2s; }
.site-nav .kball { font-size: .74em; box-shadow: none; }
.site-nav a:hover { color: var(--baize-ink); }
.site-nav a[aria-current="page"] { color: var(--baize-ink); border-bottom-color: var(--brass-on-baize); }
.lang { display: flex; border: 1px solid color-mix(in srgb, var(--baize-ink) 30%, transparent); border-radius: 999px; padding: 2px; flex: none; }
.lang button { font: inherit; font-size: .8rem; line-height: 1; padding: .4rem .7rem; border-radius: 999px; border: 0; background: transparent; color: var(--baize-muted); cursor: pointer; transition: background .2s, color .2s; }
.lang button:hover { color: var(--baize-ink); }
.lang button[aria-pressed="true"] { background: var(--brass-on-baize); color: var(--baize-deep); font-weight: 600; cursor: default; }
@media (max-width: 1179px) {
  .site-head .wrap { flex-wrap: wrap; row-gap: .6rem; }
  .lang { margin-left: auto; }
  .site-nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; gap: 1.2rem; padding-bottom: .1rem; }
}
@media (max-width: 520px) { .brand { white-space: normal; font-size: 1.1rem; line-height: 1.05; } }

/* Baize band (top of the Support page) */
.band {
  background: radial-gradient(ellipse 80% 70% at 75% 35%, color-mix(in srgb, var(--baize) 88%, white 12%), transparent 72%), var(--baize);
  color: var(--baize-ink);
  border-bottom: 16px solid var(--rail);
  box-shadow: inset 0 -6px 0 var(--baize-deep);
}
.band .wrap { padding-block: 3.5rem 3.25rem; display: grid; gap: 1rem; }
.band h1 { font-size: var(--s3); }
.band .sub { color: var(--baize-muted); font-size: var(--s1); max-width: 38ch; line-height: 1.45; }

/* The 9-ball marks both cups, since both are played as 9-ball: white with a yellow stripe and a numbered spot */
.kball {
  flex: none; width: 1.55em; height: 1.55em; border-radius: 50%; display: inline-grid; place-items: center;
  background: radial-gradient(circle closest-side, #fbfaf5 0 50%, transparent 52%), linear-gradient(#f7f5ee 0 24%, #f2c418 24% 76%, #f7f5ee 76%);
  color: #161616; font-family: var(--f-body); font-size: .62em; font-weight: 600; line-height: 1; text-transform: none; font-stretch: 100%;
  box-shadow: inset -2px -3px 0 rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .3);
}

/* Pool tables, drawn by site.js in millimetres: lengthways on the home page, upright on each cup's page */
.table-art { display: block; width: 100%; max-width: 100%; height: auto; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .35)); }
/* The cue ball starts where --from puts it and rolls to its spot */
.cue { transform: var(--from); animation: roll 1.8s var(--ease) .35s forwards; }
@keyframes roll { to { transform: translate(0, 0); } }

/* Home: the community, then the two featured cups side by side, each with its table */
/* The home page runs wider, so the community's name sits on one line in both languages,
   with the countdown as a full-width clock under it */
body:has(.intro) { --wrap: 96rem; }
.intro .wrap { display: grid; gap: 1.5rem; padding-block: 2.5rem 1rem; }
.intro h1 { font-size: min(3.8rem, 5.4vw); }
.intro h1 [lang="ka"] { font-size: .72em; }
@media (min-width: 761px) { .intro h1 { white-space: nowrap; } }
@media (max-width: 760px) { .intro h1 { font-size: 2.2rem; } }
.features .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3.5rem; padding-block: 2rem 4.5rem; }
.feature { display: grid; grid-template-rows: auto 1fr auto auto; gap: 1.25rem; align-content: start; }
.feature-link { display: grid; gap: 1.1rem; text-decoration: none; }
.feature-name { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.feature-name .kball { font-size: 1.5rem; }
.feature-name h2 { font-size: var(--s2); transition: color .2s; }
.feature-link .table-art { transition: transform .35s var(--ease); }
.feature-link:hover .table-art { transform: translateY(-4px); }
.feature-link:hover h2 { color: var(--brass); }
.feature .lede { color: var(--muted); font-size: var(--s0); max-width: 54ch; }
.year { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.year div { padding: .85rem 1rem .85rem 0; display: grid; gap: .15rem; }
.year div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.year dt { font-size: .85rem; color: var(--muted); }
.year dd { margin: 0; font-weight: 600; }
.feature > .btn, .cup-intro .btn { justify-self: start; background: var(--ink); color: var(--paper); box-shadow: none; }
@media (max-width: 860px) { .features .wrap { grid-template-columns: 1fr; } }

/* Next up: one countdown to whichever cup comes first. Same arrangement in both languages:
   name and date on the left, venue under them, countdown on the right */
.next.nearest { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .6rem 2.5rem; padding: 1.5rem 1.75rem; }
.nearest .countdown { grid-column: 2; grid-row: 1 / span 2; }
.nearest .next-venue { grid-column: 1; }
.next-cup { color: var(--brass-on-baize); text-underline-offset: .2em; }
.next-cup:hover { color: var(--ball); }
/* The countdown reads like a clock: big digits on a dark face, colons between them */
.nearest .countdown { grid-template-columns: repeat(4, auto); gap: 0; padding: 1rem 1.5rem .8rem; background: var(--rail); border-radius: 12px; box-shadow: inset 0 2px 8px rgba(0, 0, 0, .55); }
.nearest .countdown div { position: relative; border-top: 0; padding: 0 1.1rem; gap: .25rem; }
.nearest .countdown div + div::before { content: ":"; position: absolute; left: -.12em; top: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; color: var(--brass-on-baize); }
.nearest .countdown b { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; min-width: 2ch; }
.nearest .countdown small { font-size: .8rem; letter-spacing: .04em; }
@media (max-width: 760px) {
  .next.nearest { grid-template-columns: 1fr; }
  .nearest .countdown { grid-column: 1; grid-row: auto; justify-self: start; padding-inline: .5rem; }
  .nearest .countdown div { padding: 0 .75rem; }
}

/* Cup pages: a sidebar to move between sections, the upright table beside the overview */
.cup-layout { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr); gap: 3.5rem; padding-block: 2rem 4.5rem; align-items: start; }
/* The sidebar column runs the full height of the page so the nav inside it can stay in view while you scroll */
.cup-side { align-self: stretch; }
.side-nav { position: sticky; top: calc(var(--head-h) + 1.5rem); display: grid; gap: 1.25rem; }
.side-cup { display: flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-weight: 800; font-size: var(--s1); line-height: 1.1; }
.side-cup [lang="en"] { text-transform: uppercase; }
.side-cup [lang="ka"] { font-stretch: 62.5%; font-size: .86em; }
.side-cup .kball { font-size: 1.5rem; }
.side-nav ol { list-style: none; margin: 0; padding: 0; display: grid; border-left: 2px solid var(--line); }
.side-nav ol a { display: block; margin-left: -2px; padding: .5rem 0 .5rem 1rem; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; transition: color .2s, border-color .2s; }
.side-nav ol a:hover { color: var(--ink); }
.side-nav ol a[aria-current] { color: var(--ink); font-weight: 600; border-left-color: var(--brass); }
.side-other { display: flex; align-items: center; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); text-decoration: none; }
.side-other .kball { font-size: 1.2rem; }
.side-other:hover { color: var(--brass); }
.cup-sec { scroll-margin-top: calc(var(--head-h) + 1.5rem); }
.cup-sec + .cup-sec { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
.cup-sec > h2, .cup-sec h2.sec-h { font-size: var(--s2); margin-bottom: 1.5rem; }
.cup-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3rem; align-items: start; }
.stage { position: relative; width: clamp(280px, calc((100svh - 7.5rem) * 1570 / 2840), 460px); aspect-ratio: 1570 / 2840; container-type: inline-size; color: var(--baize-ink); }
.stage .table-art { position: absolute; inset: 0; height: 100%; }
/* The cup's name is printed on the cloth between the rack and the head string */
.cloth { position: absolute; left: 50%; top: 51%; transform: translate(-50%, -50%); width: 74cqi; display: grid; gap: 3cqi; text-align: center; justify-items: center; pointer-events: none; }
.cloth-k { font-size: max(.7rem, 3.4cqi); font-style: italic; line-height: 1.3; color: color-mix(in srgb, var(--baize-ink) 70%, transparent); }
.cloth h1 { font-size: 14cqi; font-weight: 900; line-height: .9; color: color-mix(in srgb, var(--baize-ink) 88%, transparent); }
.cloth h1 [lang="ka"] { font-size: 11.5cqi; line-height: 1.08; font-weight: 800; }
.cup-intro { display: grid; gap: 1.5rem; align-content: start; min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--brass); font-weight: 600; }
.eyebrow .kball { font-size: 1.6rem; }
.cup-intro .lede { max-width: 46ch; }
@media (max-width: 999px) {
  .cup-layout { grid-template-columns: 1fr; gap: 1.5rem; padding-top: .75rem; }
  /* On narrow screens the section tabs stick just under the header */
  .cup-side { align-self: start; position: sticky; top: var(--head-h); z-index: 5; margin-inline: -20px; padding-inline: 20px; background: var(--paper); }
  .side-nav { position: static; }
  .cup-sec { scroll-margin-top: calc(var(--head-h) + 4rem); }
  .side-cup, .side-other { display: none; }
  .side-nav ol { display: flex; overflow-x: auto; scrollbar-width: none; border-left: 0; border-bottom: 2px solid var(--line); }
  .side-nav ol a { margin: 0 0 -2px; padding: .6rem 1rem; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .side-nav ol a[aria-current] { border-bottom-color: var(--brass); }
}
@media (max-width: 760px) { .cup-hero { grid-template-columns: 1fr; justify-items: center; } .stage { width: min(76vw, 340px); } }

/* Kordzaia Cup line-up: eight captains, each with four picks */
.squads { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; max-width: 34rem; }
.squad { display: flex; gap: 3px; padding: .4rem .45rem; background: var(--baize); border: 4px solid var(--rail); border-radius: 6px; }
.squad .seat { width: .8rem; height: .8rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }

/* TBN Cup line-up: two teams of six */
.roster { display: grid; grid-template-columns: minmax(0, max-content) auto minmax(0, max-content); justify-content: start; align-items: center; gap: 1rem; margin-top: 1.75rem; }
.team { display: grid; gap: .6rem; padding: 1rem; background: var(--baize); color: var(--baize-ink); border: 8px solid var(--rail); border-radius: 6px; }
.team-name { font-size: .85rem; color: var(--baize-muted); }
.seats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1.9rem); gap: .5rem; }
.seat {
  display: block; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--ball) 45%);
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .1), 0 2px 4px rgba(0, 0, 0, .25);
}
.seat.cap { background: radial-gradient(circle at 35% 30%, #fff8 0 12%, var(--brass-on-baize) 45%); }
.seat.wild { background: radial-gradient(circle at 35% 30%, #fff8 0 10%, transparent 11%), linear-gradient(var(--ball) 0 27%, #d6261e 27% 73%, var(--ball) 73%); }
.vs { font-family: var(--f-display); font-weight: 800; font-size: var(--s1); color: var(--muted); }
.vs [lang="en"] { text-transform: uppercase; }
.roster-key { grid-column: 1 / -1; list-style: none; margin: .25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .9rem; color: var(--muted); }
.roster-key li { display: flex; align-items: center; gap: .5rem; }
.roster-key .seat { width: 1rem; height: 1rem; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
@media (max-width: 480px) {
  .team { padding: .7rem; border-width: 6px; }
  .seats { grid-template-columns: repeat(3, 1.5rem); gap: .4rem; }
  .seats .seat { width: 1.5rem; height: 1.5rem; }
  .roster { gap: .6rem; }
}

.next {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 2.25rem; padding: 1.25rem 1.5rem;
  background: var(--baize-deep); color: var(--baize-ink);
  border: 1px solid color-mix(in srgb, var(--brass-on-baize) 35%, transparent);
  border-radius: 6px;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, .5);
}
.next-head { display: grid; gap: .3rem; }
.next h2, .next h3 { font-size: .95rem; font-family: var(--f-body); font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--brass-on-baize); font-stretch: 100%; line-height: 1.3; }
/* The small "Next tournament" label is body text, not a heading, in both languages */
.next h2 [lang], .next h3 [lang] { text-transform: none; letter-spacing: 0; }
.next h2 [lang="ka"], .next h3 [lang="ka"] { font-stretch: 70%; font-size: .94em; }
.next-date { font-family: var(--f-display); font-weight: 800; font-size: var(--s2); line-height: 1.05; }
.next-date [lang="en"] { text-transform: uppercase; }
.next-date [lang="ka"] { font-stretch: 62.5%; font-size: .86em; }
.countdown { display: grid; grid-template-columns: repeat(4, 3.6rem); gap: .4rem; font-variant-numeric: tabular-nums lining-nums; }
.countdown div { display: grid; text-align: center; padding-top: .4rem; border-top: 1px solid color-mix(in srgb, var(--baize-ink) 22%, transparent); }
.countdown b { font-family: var(--f-display); font-size: var(--s2); font-weight: 800; line-height: 1.05; }
.countdown small { font-size: .8rem; color: var(--baize-muted); }
.next-venue { color: var(--baize-muted); }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-body); font-size: 1rem; font-weight: 600; text-decoration: none; line-height: 1.2;
  padding: .8rem 1.3rem; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  background: var(--brass-on-baize); color: var(--baize-deep);
  box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .55); }

@media (prefers-reduced-motion: reduce) { .cue { animation: none; transform: none; } .btn, .site-nav a, .lang button, .side-nav ol a, .feature-link .table-art { transition: none; } }

/* Sections */
.section { padding-block: 4.5rem; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: var(--s2); margin-bottom: 1.5rem; }
.prose { display: grid; gap: 1.1rem; max-width: 64ch; }
.lede { font-size: var(--s1); line-height: 1.5; }

/* Temur */
.man { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: 4rem; align-items: start; }
.portrait {
  aspect-ratio: 4 / 5; width: 100%; max-width: 100%;
  background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--baize) 85%, white 15%), var(--baize));
  color: var(--baize-ink); border: 12px solid var(--rail); border-radius: 4px;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .45);
  display: grid; place-items: center; position: relative;
}
.portrait strong { font-family: "Big Shoulders Display", sans-serif; font-size: 5.5rem; font-weight: 900; line-height: 1; color: var(--ball); }
.portrait span { position: absolute; bottom: .9rem; left: 0; right: 0; text-align: center; font-size: .85rem; font-style: italic; color: var(--baize-muted); }
.man-text { display: grid; gap: 1.75rem; min-width: 0; }
.prose p:first-child .bi > [data-l]::first-letter { font-family: var(--f-display); font-weight: 900; float: left; font-size: 3.5em; line-height: .85; padding: .06em .1em 0 0; color: var(--brass); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 2px solid var(--ink); }
.facts div { padding: 1rem 1.25rem 1rem 0; display: grid; gap: .2rem; }
.facts div + div { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.facts dt { font-size: .875rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) {
  .man { grid-template-columns: 1fr; gap: 2.25rem; }
  .portrait { max-width: 15rem; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Format */
.format { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.spec { margin: 0; display: grid; }
.spec div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding-block: .9rem; border-bottom: 1px solid var(--line); }
.spec div:first-child { border-top: 2px solid var(--ink); }
.spec dt { color: var(--muted); font-size: .95rem; }
.spec dd { margin: 0; font-weight: 600; }
.editions { display: grid; gap: .75rem; margin-top: 1rem; }
.editions p { color: var(--muted); font-size: .95rem; }
.edition-strip { display: flex; gap: .4rem; flex-wrap: wrap; }
.edition-strip span {
  width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center;
  font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--ball) 45%); color: var(--ball-ink);
  box-shadow: inset -3px -4px 0 rgba(0, 0, 0, .08), 0 2px 4px rgba(0, 0, 0, .15);
}
.edition-strip span.now { background: radial-gradient(circle at 35% 30%, #fff8 0 12%, var(--brass-on-baize) 45%); color: var(--baize-deep); }
@media (max-width: 760px) { .format { grid-template-columns: 1fr; gap: 2.5rem; } .spec div { grid-template-columns: 1fr; gap: .15rem; } }

/* Winners */
.scroll-x { overflow-x: auto; }
.winners { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; min-width: 36rem; }
.winners th { text-align: left; font-weight: 400; font-size: .9rem; color: var(--muted); padding: 0 1rem .75rem 0; border-bottom: 2px solid var(--ink); }
.winners td { padding: 1.15rem 1rem 1.15rem 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.winners td.ed { font-family: var(--f-display); font-weight: 800; font-size: var(--s2); width: 6rem; color: var(--brass); }
.winners td.champ { font-weight: 600; font-size: var(--s1); }
.empty {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem; align-items: center;
  padding: 2rem; border: 1px dashed var(--line); border-radius: 6px; background: var(--surface); max-width: 46rem;
}
.empty h2, .empty h3 { font-family: var(--f-display); font-weight: 800; font-size: var(--s1); line-height: 1.1; margin: 0 0 .4rem; }
.empty h3 [lang="en"] { text-transform: uppercase; }
.empty h3 [lang="ka"] { font-stretch: 62.5%; font-size: .86em; }
.man-h { font-size: var(--s1); }
.empty p { color: var(--muted); max-width: 52ch; }
@media (max-width: 560px) { .empty { grid-template-columns: 1fr; } }

/* Rankings: the two cups side by side, the top eight in each marked with a gold ball */
.rankings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; row-gap: 1.25rem; }
/* Each half is a subgrid of the same rows, so headings, notes and tables line up across the two */
.rank-col { display: grid; grid-row: span 5; grid-template-rows: subgrid; gap: 1.25rem; align-items: start; scroll-margin-top: calc(var(--head-h) + 1.5rem); }
.rank-head { display: flex; align-items: center; gap: .9rem; }
.rank-head .kball { font-size: 2.3rem; }
.section .rank-head h2 { font-size: var(--s2); margin: 0; }
.rank-head p { color: var(--muted); margin-top: .25rem; }
.rank-note { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; color: var(--muted); }
.rank-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; line-height: 1; padding: .35rem .6rem; border-radius: 999px; color: var(--ink); background: color-mix(in srgb, var(--brass-on-baize) 30%, var(--surface)); }
.rank-badge::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8 0 15%, var(--brass-on-baize) 50%); }
.rank { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.rank th { text-align: left; font-weight: 400; font-size: .9rem; color: var(--muted); padding: 0 .75rem .6rem 0; border-bottom: 2px solid var(--ink); }
.rank td { padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rank .pts { text-align: right; padding-right: 0; width: 5rem; }
.rank .pos { width: 3rem; }
.rank .pos span { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .85rem; font-weight: 600;
  background: radial-gradient(circle at 35% 30%, #fff 0 12%, var(--ball) 45%); color: var(--ball-ink); box-shadow: inset -2px -3px 0 rgba(0, 0, 0, .08), 0 1px 3px rgba(0, 0, 0, .2); }
.rank tr.in .pos span { background: radial-gradient(circle at 35% 30%, #fff8 0 12%, var(--brass-on-baize) 45%); color: var(--baize-deep); }
.rank .pl { font-weight: 600; }
.rank .pl .rank-badge { margin-left: .6rem; vertical-align: middle; }
/* The cut: below the eighth place nobody qualifies */
.rank tbody tr:nth-child(8) td { border-bottom: 2px dashed var(--brass); }
.rank-upd { font-size: .85rem; color: var(--muted); }
.rank-cup { display: inline-flex; align-items: center; gap: .4rem; color: var(--brass); font-weight: 600; justify-self: start; }
@media (max-width: 860px) { .rankings { grid-template-columns: 1fr; } .rank-col + .rank-col { margin-top: 2.5rem; } }

/* Support */
.support { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 4rem; align-items: start; }
.funds-h { margin-top: 2.5rem; margin-bottom: 0 !important; }
.funds { list-style: none; margin: 2rem 0 0; padding: 0; }
.funds li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; padding-block: 1.1rem; border-top: 1px solid var(--line); }
.funds li:last-child { border-bottom: 1px solid var(--line); }
.funds strong { display: block; font-family: var(--f-display); font-size: var(--s1); font-weight: 800; line-height: 1.15; }
.funds strong [lang="en"] { text-transform: uppercase; }
.funds strong [lang="ka"] { font-stretch: 62.5%; font-size: .86em; }
.funds span { color: var(--muted); }
.contact {
  background: var(--baize); color: var(--baize-ink);
  border: 12px solid var(--rail); border-radius: 6px;
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, .5);
  padding: 1.75rem; display: grid; gap: 1.1rem;
}
.contact h2 { font-size: var(--s2); margin: 0; }
.contact > p { color: var(--baize-muted); }
.contact-row { display: grid; gap: .2rem; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--baize-ink) 20%, transparent); }
.contact-row .k { font-size: .85rem; color: var(--baize-muted); }
.contact-row .val { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; overflow-wrap: anywhere; }
.contact .tbd { color: var(--baize-ink); }
.copy {
  font: inherit; font-size: .8rem; background: transparent; color: var(--baize-ink);
  border: 1px solid color-mix(in srgb, var(--baize-ink) 35%, transparent); border-radius: 999px; padding: .3rem .8rem; cursor: pointer;
}
.copy:hover { border-color: var(--brass-on-baize); color: var(--brass-on-baize); }
@media (max-width: 860px) { .support { grid-template-columns: 1fr; gap: 2.75rem; } }

/* Footer: partners and sponsors */
.site-foot { background: var(--baize-deep); color: var(--baize-ink); border-top: 8px solid var(--rail); }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 21rem) minmax(0, 1fr); gap: 1.5rem 3rem; padding-block: 2.5rem 1.5rem; align-items: center; }
.foot-head h2 { font-size: var(--s1); }
.foot-head p { margin-top: .4rem; font-size: .9rem; color: var(--baize-muted); }
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.partner {
  display: grid; gap: .35rem; align-content: center; min-height: 5.5rem; padding: 1rem 1.25rem; text-decoration: none;
  border-radius: 12px; background: color-mix(in srgb, var(--baize-ink) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--baize-ink) 16%, transparent); transition: border-color .2s, background .2s;
}
.partner:hover { border-color: var(--brass-on-baize); }
.partner.open { background: transparent; border-style: dashed; }
.p-role { font-size: .8rem; color: var(--baize-muted); }
.p-role [lang="en"] { text-transform: uppercase; letter-spacing: .08em; }
.p-name { font-family: var(--f-display); font-weight: 800; font-size: var(--s1); line-height: 1.1; }
.p-name [lang="ka"] { font-stretch: 62.5%; font-size: .86em; }
.partner.open .p-name { color: var(--baize-muted); }
.partner.open:hover .p-name { color: var(--brass-on-baize); }
.foot-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--baize-ink) 14%, transparent); font-size: .85rem; color: var(--baize-muted); }
.foot-base a { color: var(--brass-on-baize); }
.foot-base a:hover { color: var(--ball); }
@media (max-width: 860px) { .site-foot .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .partners { grid-template-columns: 1fr; } .partner { min-height: 0; } }
