
  /* ============================================================
     Serials Chess Club & Academy
     Navy + gold theme with a chessboard background
     ============================================================ */
  :root {
    --bg: #0a1424;
    --bg-alt: #111d32;
    --ink: #f4efe4;
    --ink-soft: #a8b3c7;
    --line: rgba(255, 255, 255, 0.11);
    --accent: #e2b33f;
    --accent-ink: #1b1405;
    --gold-grad: linear-gradient(180deg, #f1cb62 0%, #d9a630 100%);
    --panel: rgba(255, 255, 255, 0.04);
    --panel-strong: rgba(255, 255, 255, 0.07);
    --menu-bg: #0f1b2f;
    --radius: 14px;
    --square-a: #17253d;
    --square-b: #f4efe4;
    color-scheme: dark;
    font-family: 'Work Sans', sans-serif;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; background: var(--bg); }
  body {
    margin: 0;
    /* Soft colour glows behind everything. Each page can move them around
       by setting its own --wash (see the body[data-page] rules below). */
    --wash:
      radial-gradient(ellipse 62% 70% at 0% 22%, rgba(30, 88, 158, 0.42), transparent 64%),
      radial-gradient(ellipse 58% 62% at 100% 88%, rgba(146, 116, 34, 0.26), transparent 62%),
      radial-gradient(ellipse 40% 44% at 98% 0%, rgba(88, 54, 126, 0.22), transparent 64%);
    background: transparent;
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }
  /* Layer 1: navy gradient + colour glows (stays put while the page scrolls) */
  body::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background: var(--wash), linear-gradient(165deg, #0d2038 0%, #0a1424 46%, #0b1220 100%);
  }
  /* Layer 2: faint chessboard squares + chess piece watermarks */
  body::after {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 45 45'%3E%3Cg fill='%23e2b33f' fill-opacity='.09'%3E%3Cpath d='M22 10c10.5 1 16.5 8 16 29H15c0-9 10-6.5 8-21'/%3E%3Cpath d='M24 18c.38 2.91-5.55 7.37-8 9-3 2-2.82 4.34-5 4-1.04-.94 1.41-3.04 0-3-1 0 .19 1.23-1 2-1 0-4 1-4-4 0-2 6-12 6-12s1.89-1.9 2-3.5c-.73-.99-.5-2-.5-3 1-1 3 2.5 3 2.5h2s.78-1.99 2.5-3c1 0 1 3 1 3'/%3E%3C/g%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23e2b33f' fill-opacity='.08'%3E%3Cpath d='M12 40l15 27 6-35 11 33 6-39 6 39 11-33 6 35 15-27-9 44H21z'/%3E%3Ccircle cx='12' cy='36' r='5'/%3E%3Ccircle cx='33' cy='28' r='5'/%3E%3Ccircle cx='50' cy='22' r='5'/%3E%3Ccircle cx='67' cy='28' r='5'/%3E%3Ccircle cx='88' cy='36' r='5'/%3E%3Crect x='17' y='87' width='66' height='8' rx='3'/%3E%3C/g%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23e2b33f' fill-opacity='.07'%3E%3Ccircle cx='50' cy='24' r='14'/%3E%3Cpath d='M32 42h36v7h-7c2 13 8 21 15 29H24c7-8 13-16 15-29h-7z'/%3E%3Crect x='17' y='81' width='66' height='10' rx='4'/%3E%3C/g%3E%3C/svg%3E"),
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='%23e2b33f' fill-opacity='.07'%3E%3Cpath d='M24 14h11v9h9v-9h12v9h9v-9h11v20l-8 7v30l8 8H24l8-8V41l-8-7z'/%3E%3Crect x='17' y='82' width='66' height='10' rx='4'/%3E%3C/g%3E%3C/svg%3E"),
      repeating-conic-gradient(rgba(255, 255, 255, 0.032) 0% 25%, transparent 0% 50%);
    background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
    background-position: 5% 150px, 95% 250px, 3% 72%, 93% 92%, 50% 0;
    background-size: 96px, 124px, 78px, 88px, 164px 164px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.45) 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 50%, rgba(0, 0, 0, 0.45) 100%);
  }
  .grain {
    position: fixed; inset: 0; z-index: 40; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 160px 160px;
    opacity: 0.05;
    mix-blend-mode: overlay;
  }
  /* Each page gets the same colours with the glows in slightly different places. */
  body[data-page="coaches"], body[data-page="achievements"] {
    --wash:
      radial-gradient(ellipse 58% 66% at 100% 16%, rgba(30, 88, 158, 0.40), transparent 64%),
      radial-gradient(ellipse 56% 60% at 0% 92%, rgba(146, 116, 34, 0.26), transparent 62%),
      radial-gradient(ellipse 38% 42% at 2% 0%, rgba(88, 54, 126, 0.22), transparent 64%);
  }
  body[data-page="upcoming"], body[data-page="past"] {
    --wash:
      radial-gradient(ellipse 70% 58% at 50% -8%, rgba(30, 88, 158, 0.44), transparent 66%),
      radial-gradient(ellipse 52% 58% at 100% 96%, rgba(146, 116, 34, 0.26), transparent 62%),
      radial-gradient(ellipse 40% 48% at 0% 70%, rgba(88, 54, 126, 0.20), transparent 64%);
  }
  body[data-page="academy"], body[data-page="prizelist"] {
    --wash:
      radial-gradient(ellipse 60% 66% at 6% 6%, rgba(30, 88, 158, 0.42), transparent 64%),
      radial-gradient(ellipse 60% 66% at 96% 96%, rgba(146, 116, 34, 0.30), transparent 62%);
  }
  img { max-width: 100%; }
  a { color: inherit; }
  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
  h1, h2, h3, .display { font-family: 'Fraunces', serif; font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
  p { color: var(--ink-soft); max-width: 62ch; }
  .kicker { font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.03em; color: var(--accent); margin: 0 0 10px 0; }
  .hero-copy .kicker { font-size: 1.05rem; }

  /* ---- Header ---- */
  header {
    position: sticky; top: 0; z-index: 20;
    background: color-mix(in srgb, #08101d 84%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; max-width: 1120px; margin: 0 auto; gap: 20px; }
  .brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .brand-badge {
    background: #ffffff; border-radius: 10px; padding: 5px 9px;
    display: inline-flex; align-items: center; flex: none;
    box-shadow: 0 0 0 1px var(--line);
  }
  .brand-mark { height: 48px; width: auto; display: block; }
  .brand-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
  .brand-title { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.32rem; color: var(--accent); white-space: nowrap; letter-spacing: 0.005em; }
  .brand-sub { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; margin-top: 3px; }

  /* ---- Main menu ---- */
  .tabs { display: flex; align-items: center; gap: 4px; flex: none; }
  .tab-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: none; cursor: pointer;
    padding: 9px 16px; border-radius: 999px; white-space: nowrap;
    font-family: inherit; font-size: 0.92rem; font-weight: 500;
    color: var(--ink); transition: background .15s, color .15s;
  }
  .tab-btn:hover { color: var(--accent); }
  .tab-btn[aria-current="page"], .tab-parent.has-current {
    background: var(--gold-grad); color: var(--accent-ink); font-weight: 600;
    box-shadow: 0 8px 20px -10px rgba(226, 179, 63, 0.75);
  }
  .tab-btn[aria-current="page"]:hover, .tab-parent.has-current:hover { color: var(--accent-ink); }

  /* Dropdowns: About Us and Tournaments */
  .tab-group { position: relative; }
  .tab-caret {
    flex: none; width: 7px; height: 7px;
    border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
  }
  .tab-group.open .tab-caret { transform: translateY(2px) rotate(225deg); }
  .tab-menu {
    display: none; position: absolute; top: calc(100% + 10px); left: 0; z-index: 30;
    min-width: 232px; flex-direction: column; gap: 2px; padding: 8px;
    background: var(--menu-bg); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 26px 50px -18px rgba(0, 0, 0, 0.7);
    animation: menu-in .16s ease;
  }
  /* Invisible bridge so the menu doesn't close while the mouse crosses the gap */
  .tab-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .tab-group.open > .tab-menu { display: flex; }
  .tab-sub { width: 100%; justify-content: flex-start; border-radius: 9px; padding: 11px 14px; }
  .tab-sub:hover { background: var(--panel-strong); }
  .tab-sub[aria-current="page"], .tab-sub[aria-current="page"]:hover {
    background: rgba(226, 179, 63, 0.14); color: var(--accent); box-shadow: none;
  }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
  @media (hover: hover) and (min-width: 861px) {
    .tab-group:hover > .tab-menu { display: flex; }
    .tab-group:hover .tab-caret { transform: translateY(2px) rotate(225deg); }
    /* Hide the menu straight after a choice is made, until the mouse moves away */
    .tab-group.just-picked > .tab-menu { display: none; }
    .tab-group.just-picked .tab-caret { transform: translateY(-2px) rotate(45deg); }
  }

  .nav-cta {
    flex: none; background: var(--gold-grad); color: var(--accent-ink); border: none;
    padding: 10px 18px; border-radius: 999px; font-family: inherit; font-weight: 600;
    font-size: 0.85rem; cursor: pointer; white-space: nowrap;
  }
  .nav-cta:hover { opacity: 0.9; }
  .nav-burger { display: none; flex: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 38px; cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
  .nav-burger span { width: 18px; height: 2px; background: var(--ink); display: block; }

  .page { display: none; padding: 0 0 84px; animation: fade .25s ease; }
  .page#page-home { padding-top: 0; }
  .page:not(#page-home) { padding-top: 76px; min-height: 72vh; }
  .page.active { display: block; }
  .page .wrap + .wrap { margin-top: 72px; }
  #page-home > .wrap:first-of-type { margin-top: 64px; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }

  .btn-primary, .btn-secondary {
    display: inline-block; padding: 13px 26px; border-radius: 999px;
    text-decoration: none; font-weight: 600; font-size: 0.92rem;
    border: 1px solid transparent; cursor: pointer; font-family: inherit;
    transition: filter .15s, background .15s;
  }
  .btn-primary { background: var(--gold-grad); color: var(--accent-ink); box-shadow: 0 10px 24px -12px rgba(226, 179, 63, 0.8); }
  .btn-primary:hover { filter: brightness(1.07); }
  .btn-secondary { border-color: rgba(226, 179, 63, 0.55); color: var(--ink); background: none; }
  .btn-secondary:hover { background: rgba(226, 179, 63, 0.12); }
  .btn-small { padding: 8px 14px; font-size: 0.82rem; }

  /* ---- Home hero ---- */
  .hero-band { position: relative; }
  .hero-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; padding: 76px 32px 60px; }
  .hero-copy h1 { font-size: clamp(2.2rem, 4.2vw, 3.35rem); font-weight: 700; animation: rise 0.7s cubic-bezier(0.22,0.61,0.36,1) both; }
  .hero-copy .lede { margin-top: 20px; font-size: 1.05rem; max-width: 46ch; animation: rise 0.7s 0.1s cubic-bezier(0.22,0.61,0.36,1) both; }
  .hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; animation: rise 0.7s 0.2s cubic-bezier(0.22,0.61,0.36,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

  .hero-board { display: flex; justify-content: center; animation: rise 0.8s 0.15s cubic-bezier(0.22,0.61,0.36,1) both; }
  .board-frame {
    position: relative; width: min(340px, 100%); aspect-ratio: 1;
    border: 10px solid #060d18; border-radius: 10px; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(226, 179, 63, 0.5), 0 30px 60px -20px rgba(0, 0, 0, 0.7);
    transform: rotate(2deg);
  }
  .board-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); }
  .sq-a { background: var(--square-a); }
  .sq-b { background: #c9a03a; }
  .board-knight {
    position: absolute; width: 46%; height: 46%; top: 27%; left: 27%;
    color: var(--ink); filter: drop-shadow(0 8px 12px rgba(0,0,0,0.55));
  }

  /* ---- Quick fact bar ---- */
  .fact-bar {
    display: grid; grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); overflow: hidden;
  }
  .fact { padding: 26px 20px; text-align: center; border-left: 1px solid var(--line); }
  .fact:first-child { border-left: none; }
  .fact-num { display: block; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.8rem; color: var(--accent); }
  .fact-label { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; letter-spacing: 0.01em; }

  /* ---- Club / Academy split cards ---- */
  .split-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .split-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; background: var(--panel); }
  .split-icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 14px; }
  .split-card h3 { font-size: 1.25rem; margin: 6px 0 12px; }
  .text-cta {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 16px;
    background: none; border: none; padding: 0; cursor: pointer;
    font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--accent);
  }
  .text-cta:hover { text-decoration: underline; }

  /* ---- Upcoming spotlight ---- */
  .spotlight {
    display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start;
    border: 1px solid rgba(226, 179, 63, 0.38); border-radius: var(--radius); padding: 32px;
    background: linear-gradient(135deg, rgba(226, 179, 63, 0.09), rgba(255, 255, 255, 0.03) 55%);
  }
  .spotlight-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.5rem; margin-bottom: 10px; }
  .spotlight-excerpt { margin-top: 12px; max-width: 60ch; }
  .spotlight-date {
    display: flex; flex-direction: column; gap: 2px; text-align: right;
    border-left: 1px solid var(--line); padding-left: 28px; white-space: nowrap;
  }
  .spotlight-date-kicker { font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-top: 10px; }
  .spotlight-date-kicker:first-child { margin-top: 0; }
  .spotlight-date-value { font-weight: 600; }

  /* ---- Card meta ---- */
  .card-meta { font-size: 0.78rem; color: var(--ink-soft); }

  /* ---- Gallery ---- */
  .gallery { column-count: 3; column-gap: 8px; }
  .gallery-img { width: 100%; display: block; margin-bottom: 8px; border-radius: 6px; cursor: zoom-in; break-inside: avoid; transition: opacity 0.15s; }
  .gallery-img:hover { opacity: 0.9; }
  .gallery-0, .gallery-3 { aspect-ratio: 3/4; object-fit: cover; }
  .gallery-1, .gallery-4 { aspect-ratio: 4/3; object-fit: cover; }
  .gallery-2 { aspect-ratio: 1/1; object-fit: cover; }

  /* ---- Academy CTA banner (the one solid gold block on the home page) ---- */
  .academy-cta {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
    background: linear-gradient(135deg, #f1cb62 0%, #d6a12c 100%); color: var(--accent-ink);
    padding: 44px 40px; border-radius: 18px;
  }
  .academy-cta-title { color: var(--accent-ink); font-size: clamp(1.5rem, 3vw, 2rem); max-width: 14ch; }
  .academy-cta-text { color: rgba(27, 20, 5, 0.82); margin-top: 12px; max-width: 46ch; }
  .academy-cta-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
  .academy-cta-list li { color: var(--accent-ink); font-size: 0.85rem; font-weight: 600; }
  .academy-cta-list li::before { content: "\2713  "; opacity: 0.7; }
  .btn-cta-light {
    background: var(--bg); color: var(--ink); border: none; padding: 15px 28px;
    font-family: inherit; font-weight: 600; font-size: 0.95rem; border-radius: 999px; cursor: pointer; flex: none;
  }
  .btn-cta-light:hover { opacity: 0.9; }

  /* ---- Location band ---- */
  .location-band { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 40px; text-align: center; }
  .location-band p { margin-left: auto; margin-right: auto; }
  .location-address { font-size: 1.05rem; color: var(--ink); margin: 10px auto 0; }
  .location-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
  .location-band .kicker, .location-band h2 { text-align: center; }
  .location-band a.btn-secondary { text-decoration: none; }
  .inline-link { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
  .inline-link:hover { text-decoration: underline; }

  /* ---- Scroll reveal ---- */
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.in-view { opacity: 1; transform: translateY(0); }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-copy h1, .hero-copy .lede, .hero-actions, .hero-board { animation: none; }
    .tab-menu { animation: none; }
  }

  /* ---- Coaches ---- */
  .coaches { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .coach-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 30px; }
  .coach-photo-wrap {
    width: 100%; max-width: 220px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
    margin-bottom: 18px; background: var(--bg-alt); border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; flex: none;
  }
  .coach-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; display: block; }
  .coach-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.3rem; }
  .coach-role { font-size: 0.86rem; color: var(--accent); font-weight: 600; margin: 4px 0 16px; }
  .rating-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
  .rating-chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.8rem; color: var(--ink-soft); }
  .rating-chip b { color: var(--ink); }

  /* ---- Section headings: centred, with a gold rule ---- */
  .section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
  .section-head p { margin-left: auto; margin-right: auto; }
  .section-head .kicker { font-size: 0.78rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
  .section-head h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; }
  .section-head h2::after {
    content: ""; display: block; width: 96px; height: 3px; margin: 20px auto 0;
    border-radius: 2px; background: var(--gold-grad);
  }
  .section-head h2 + p { margin-top: 20px; font-size: 1.05rem; }

  /* ---- Cards / grids ---- */
  .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .card {
    border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column;
    overflow: hidden; background: var(--panel);
  }
  .card-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-alt); display: block; }
  .card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
  .card-title { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem; }
  .card-text { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
  .empty-state {
    border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: var(--radius); padding: 40px; text-align: center;
    color: var(--ink-soft); font-size: 0.94rem; background: var(--panel);
  }

  /* ---- Tournament rows ---- */
  .t-row { border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
  .t-row:last-child { border-bottom: 1px solid var(--line); }
  .t-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.1rem; }
  .t-details { font-size: 0.9rem; color: var(--ink-soft); margin-top: 4px; max-width: 56ch; white-space: pre-line; }
  .t-date-chip { font-size: 0.78rem; border: 1px solid rgba(226, 179, 63, 0.45); color: var(--accent); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
  .prize-chip {
    display: inline-block; margin-top: 6px; font-size: 0.88rem; font-weight: 700;
    color: #ffd980; background: rgba(226, 179, 63, 0.13); border: 1px solid rgba(226, 179, 63, 0.4);
    padding: 6px 14px; border-radius: 999px;
  }
  .location-chip {
    display: inline-block; margin-top: 6px; margin-right: 8px; font-size: 0.85rem; font-weight: 600;
    color: var(--ink-soft); background: var(--panel-strong); border: 1px solid var(--line);
    padding: 6px 14px; border-radius: 999px;
  }
  .t-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
  .brochure-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.94rem; font-weight: 600; color: var(--accent-ink); text-decoration: none;
    background: var(--gold-grad); padding: 11px 22px; border-radius: 999px;
    transition: opacity 0.15s;
  }
  .brochure-link:hover { opacity: 0.88; }
  .register-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.94rem; font-weight: 600; color: #ffffff; text-decoration: none;
    background: #1f7a45; padding: 11px 22px; border-radius: 999px;
    transition: opacity 0.15s;
  }
  .register-link:hover { opacity: 0.88; }

  /* ---- Past tournament gallery block ---- */
  .past-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 28px; overflow: hidden; }
  .past-item-body { padding: 24px; }
  .past-item h3 { font-family: 'Fraunces', serif; font-size: 1.25rem; margin-bottom: 6px; }
  .past-item .t-details { white-space: pre-line; margin-bottom: 16px; }
  .photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 6px; }
  .photo-strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; border-radius: 6px; cursor: zoom-in; transition: opacity .15s; }
  .photo-strip img:hover { opacity: 0.88; }

  /* ---- Prize list block ---- */
  .prize-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-bottom: 28px; }
  .prize-item-head { padding: 24px 24px 0; }
  .prize-item h3 { font-family: 'Fraunces', serif; font-size: 1.25rem; margin-bottom: 4px; }
  .prize-item .t-details { margin-bottom: 0; }
  .prize-table-wrap { padding: 18px 24px 24px; overflow-x: auto; }
  .prize-table { width: 100%; border-collapse: collapse; min-width: 380px; }
  .prize-table th, .prize-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
  .prize-table th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); font-weight: 600; }
  .prize-table tr:last-child td { border-bottom: none; }
  .prize-table td:first-child { color: var(--accent); font-weight: 600; white-space: nowrap; }

  .lightbox {
    position: fixed; inset: 0; background: rgba(10,10,10,0.92);
    display: none; align-items: center; justify-content: center;
    z-index: 100; padding: 24px; cursor: zoom-out;
  }
  .lightbox.open { display: flex; }
  .lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,0.5); cursor: zoom-in; transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), max-width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1); }
  .lightbox.zoom-mode { align-items: flex-start; justify-content: center; overflow: auto; padding: 40px 20px; }
  .lightbox.zoom-mode img { max-width: none; max-height: none; cursor: zoom-out; }
  .lightbox-close {
    position: absolute; top: 18px; right: 22px; color: #fff; font-size: 2rem; line-height: 1;
    background: none; border: none; cursor: pointer; opacity: 0.8;
  }
  .lightbox-close:hover { opacity: 1; }
  .lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.12); color: #fff; border: none;
    width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
  }
  .lightbox-nav:hover { background: rgba(255,255,255,0.24); }
  .lightbox-prev { left: 18px; }
  .lightbox-next { right: 18px; }
  .lightbox-indicator {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 0.85rem; background: rgba(0,0,0,0.4); padding: 5px 12px; border-radius: 999px;
  }

  /* ---- Contact ---- */
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .info-line { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
  .info-line:last-child { border-bottom: 1px solid var(--line); }
  .info-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); width: 104px; flex: none; padding-top: 5px; }
  .info-value { font-weight: 500; font-size: 1.05rem; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
  #contact-form {
    background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 36px 40px;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  }
  .form-field { margin-top: 18px; }
  .form-field label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
  .form-field input[type=text], .form-field select, .form-field textarea {
    width: 100%; padding: 14px 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
    border-radius: 10px; color: var(--ink); font-family: inherit; font-size: 0.95rem;
    transition: border-color .15s, background .15s;
  }
  .form-field input[type=text]::placeholder, .form-field textarea::placeholder { color: rgba(168, 179, 199, 0.75); }
  .form-field input[type=text]:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--accent); background: rgba(255, 255, 255, 0.08);
  }
  .form-field select option { background: var(--menu-bg); color: var(--ink); }
  .form-field textarea { resize: vertical; min-height: 110px; }
  .form-actions { margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .form-status { font-size: 0.85rem; color: var(--ink-soft); }

  footer { border-top: 1px solid var(--line); background: rgba(4, 9, 17, 0.55); padding: 44px 0 0; font-size: 0.85rem; color: var(--ink-soft); }
  .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
  .footer-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-tagline { font-size: 0.85rem; max-width: 32ch; margin: 0; }
  .footer-heading { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }
  .footer-col { display: flex; flex-direction: column; gap: 8px; }
  .footer-text { margin: 0; font-size: 0.85rem; }
  .footer-link { background: none; border: none; padding: 0; text-align: left; font-family: inherit; font-size: 0.85rem; color: var(--ink-soft); cursor: pointer; text-decoration: none; }
  .footer-link:hover { color: var(--accent); }
  .footer-bottom { border-top: 1px solid var(--line); padding: 16px 0; font-size: 0.8rem; }

  @media (max-width: 860px) {
    .nav { padding: 10px 16px; gap: 12px; }
    .brand-mark { height: 40px; }
    .brand-title { font-size: 1.12rem; }
    .brand-sub { font-size: 0.6rem; letter-spacing: 0.14em; }
    .nav-cta { display: none; }
    .nav-burger { display: flex; width: 46px; height: 44px; }
    /* The menu drops down from the header as a full-width panel. */
    .tabs {
      display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 25;
      flex-direction: column; align-items: stretch; gap: 2px;
      background: #0c1728; border-bottom: 1px solid var(--line);
      box-shadow: 0 18px 30px -14px rgba(0,0,0,0.6); padding: 10px 12px 14px;
      max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto;
    }
    .tabs.open { display: flex; }
    .tab-btn { width: 100%; justify-content: space-between; text-align: left; padding: 14px 16px; border-radius: 10px; min-height: 46px; }
    /* On phones the two groups open in place, like an accordion. */
    .tab-menu {
      position: static; min-width: 0; padding: 2px 0 6px 12px; margin: 2px 0 2px 16px;
      background: none; border: none; border-left: 1px solid var(--line); border-radius: 0;
      box-shadow: none; animation: none;
    }
    .tab-menu::before { display: none; }
    .tab-sub { justify-content: flex-start; }
    .page:not(#page-home) { padding-top: 48px; }
    .hero-wrap { grid-template-columns: 1fr; padding: 28px 20px 36px; gap: 22px; text-align: left; }
    /* Headline, tagline and buttons first so phone visitors read the pitch
       right away instead of scrolling past a decorative image to reach it;
       the board becomes a smaller accent underneath. */
    .hero-board { order: 1; margin-top: 4px; }
    .board-frame { width: min(150px, 38vw); border-width: 6px; }
    .fact-bar { grid-template-columns: 1fr 1fr; }
    .fact { border-left: none; border-top: 1px solid var(--line); }
    .fact:nth-child(1), .fact:nth-child(2) { border-top: none; }
    .fact:nth-child(even) { border-left: 1px solid var(--line); }
    .split-cards, .coaches, .card-grid, .contact-grid { grid-template-columns: 1fr; }
    .contact-grid { gap: 36px; }
    #contact-form { padding: 26px 20px; }
    .info-line { gap: 14px; }
    .info-label { width: 84px; }
    .spotlight { grid-template-columns: 1fr; padding: 24px 20px; }
    .spotlight-date { flex-direction: row; flex-wrap: wrap; gap: 6px 20px; text-align: left; border-left: none; border-top: 1px solid var(--line); padding-left: 0; padding-top: 16px; white-space: normal; }
    .spotlight-date-kicker { margin-top: 0; }
    .gallery { column-count: 2; }
    .academy-cta { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
    .btn-cta-light { width: 100%; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .wrap { padding-left: 20px; padding-right: 20px; }
    .form-row { grid-template-columns: 1fr; }
    /* Smaller squares and watermarks so the pattern stays subtle on phones */
    body::after {
      background-position: -18px 120px, calc(100% + 26px) 46%, -14px 78%, calc(100% + 20px) 96%, 50% 0;
      background-size: 84px, 104px, 66px, 74px, 112px 112px;
    }
  }
  /* Small laptops / tablets held sideways: tighten the menu so it stays on one line */
  @media (min-width: 861px) and (max-width: 960px) {
    .nav { padding-left: 20px; padding-right: 20px; gap: 14px; }
    .tabs { gap: 2px; }
    .tab-btn { padding: 9px 11px; font-size: 0.88rem; gap: 6px; }
    .brand-title { font-size: 1.18rem; }
  }
  @media (max-width: 520px) {
    .info-line { flex-direction: column; gap: 6px; padding: 18px 0; }
    .info-label { width: auto; padding-top: 0; }
    .gallery { column-count: 1; }
    .fact-bar { grid-template-columns: 1fr 1fr; }
    .location-band { padding: 28px 20px; }
    .location-actions { flex-direction: column; }
    .location-actions .btn-secondary { width: 100%; text-align: center; }
  }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .page { animation: none; } }

/* ---- Card icons ---- */
.card-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 12px;
  text-align: center;
}

/* ---- Schedule grid ---- */
.schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 0;
}

.schedule-card {
  border: 1px solid var(--line);
  padding: 28px;
  background: var(--panel);
  border-radius: var(--radius);
}

.schedule-card .schedule-type {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--accent);
}

.schedule-card .schedule-info {
  font-size: 0.95rem;
  line-height: 1.6;
}

.schedule-card .schedule-info p {
  margin: 0 0 8px 0;
  color: var(--ink);
}

.schedule-card .schedule-info p strong {
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 768px) {
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .coaches {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .schedule-card {
    padding: 20px;
  }

  .schedule-card .schedule-type {
    font-size: 1.05rem;
  }

  .schedule-card .schedule-info {
    font-size: 0.88rem;
  }
}
