/* ════════════════════════════════════════════════════════════
   GoalEdge — Phase 2 Design System
   "Midnight Pitch" : deep navy field, teal→gold aurora accents,
   glass cards, SVG pitch-line decoration.
   ════════════════════════════════════════════════════════════ */

:root {
  --bg:          #070D1A;
  --bg-2:        #0A1424;
  --surface:     rgba(17, 30, 51, 0.72);
  --surface-hi:  rgba(24, 41, 68, 0.85);
  --line:        rgba(94, 130, 175, 0.16);
  --line-hi:     rgba(45, 212, 191, 0.35);
  --teal:        #2DD4BF;
  --teal-deep:   #0FB5A6;
  --gold:        #F0B429;
  --gold-soft:   #F7CE68;
  --ink:         #EAF2FB;
  --ink-soft:    #B9C9DD;
  --muted:       #7E94B0;
  --danger:      #F87171;
  --ok:          #34D399;
  --r-lg: 20px; --r-md: 14px; --r-sm: 9px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.65);
  --grad-rise: linear-gradient(135deg, #0FB5A6 0%, #2DD4BF 45%, #F0B429 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

/* Aurora background mesh */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 540px at 12% -8%,  rgba(45, 212, 191, 0.12), transparent 60%),
    radial-gradient(800px 500px at 95% 12%,  rgba(240, 180, 41, 0.08),  transparent 55%),
    radial-gradient(700px 600px at 50% 110%, rgba(15, 110, 144, 0.14),  transparent 60%);
  pointer-events: none;
  z-index: 0;
}

main, .nav, footer { position: relative; z-index: 1; }

/* ── Transparent GoalEdge watermark (subtle, non-intrusive) ──────
   A single large logo icon, very low opacity, fixed centre-right so it
   reads as a faint brand texture rather than competing with content. */
body::after {
  content: "";
  position: fixed;
  right: -60px;
  bottom: -40px;
  width: 460px;
  height: 460px;
  background: url("../img/logo_icon.svg") no-repeat center / contain;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(0.1);
}
@media (max-width: 720px) {
  body::after { width: 300px; height: 300px; right: -50px; bottom: -30px; opacity: 0.035; }
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold-soft); }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; gap: 28px;
  padding: 16px 36px;
  background: rgba(7, 13, 26, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav .brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -0.5px; }
.nav .brand img { height: 38px; }
.nav .brand .edge { background: var(--grad-rise); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav .links { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav .links a {
  padding: 8px 16px; border-radius: 999px;
  color: var(--ink-soft); font-weight: 600; font-size: 0.92rem;
  transition: all 0.18s ease;
}
.nav .links a:hover { color: var(--ink); background: rgba(45, 212, 191, 0.08); }
.nav .links a.active { color: #06231F; background: var(--grad-rise); }
.nav .links a.admin-link { border: 1px solid var(--line-hi); color: var(--teal); }
.nav .links a.admin-link:hover { background: rgba(45, 212, 191, 0.12); }

/* ── Layout ─────────────────────────────────────────────────── */
main { max-width: 1240px; margin: 0 auto; padding: 40px 28px 90px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card.glow::after {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit; padding: 1px;
  background: var(--grad-rise);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.5; pointer-events: none;
}
.card h2, .card h3 { letter-spacing: -0.4px; }
.card .kicker {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}

/* ── Stat tiles ─────────────────────────────────────────────── */
.stat { padding: 20px 22px; }
.stat .num {
  font-size: 2.3rem; font-weight: 800; letter-spacing: -1px; line-height: 1.1;
  background: var(--grad-rise); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .num.plain { background: none; color: var(--ink); -webkit-text-fill-color: currentColor; }
.stat .lbl { font-size: 0.82rem; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border-radius: 999px; border: none; cursor: pointer;
  font-weight: 700; font-size: 0.95rem; font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--grad-rise); color: #06231F; box-shadow: 0 8px 28px -8px rgba(45, 212, 191, 0.55); }
.btn-primary:hover { box-shadow: 0 12px 34px -8px rgba(45, 212, 191, 0.75); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--line-hi); color: var(--ink); }
.btn-danger { background: rgba(248, 113, 113, 0.14); color: var(--danger); border: 1px solid rgba(248,113,113,0.35); }
.btn-ok { background: rgba(52, 211, 153, 0.14); color: var(--ok); border: 1px solid rgba(52,211,153,0.35); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

/* ── Forms ──────────────────────────────────────────────────── */
label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--ink-soft); margin: 14px 0 6px; }
input, select {
  width: 100%; padding: 12px 16px;
  background: rgba(10, 20, 36, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--ink); font-size: 0.95rem; font-family: inherit;
  transition: border-color 0.15s;
}
input:focus, select:focus { outline: none; border-color: var(--teal); }

/* ── Tables ─────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th {
  text-align: left; padding: 11px 14px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
td { padding: 12px 14px; border-bottom: 1px solid rgba(94, 130, 175, 0.07); color: var(--ink-soft); }
tr:hover td { background: rgba(45, 212, 191, 0.035); }
td.strong { color: var(--ink); font-weight: 700; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.5px;
}
.badge-splus { background: rgba(21, 128, 61, 0.22); color: #4ADE80; }
.badge-s     { background: rgba(22, 163, 74, 0.18); color: #34D399; }
.badge-a     { background: rgba(8, 145, 178, 0.18); color: #38BDF8; }
.badge-b     { background: rgba(217, 119, 6, 0.18); color: #FBBF24; }
.badge-c     { background: rgba(148, 163, 184, 0.15); color: #94A3B8; }
.badge-won   { background: rgba(52, 211, 153, 0.16); color: var(--ok); }
.badge-lost  { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.badge-pending { background: rgba(240, 180, 41, 0.13); color: var(--gold-soft); }
.badge-void  { background: rgba(148, 163, 184, 0.13); color: #94A3B8; }

/* ── Win-rate bars ──────────────────────────────────────────── */
.bar { height: 8px; border-radius: 999px; background: rgba(94, 130, 175, 0.15); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--grad-rise); }

/* ── Flash messages ─────────────────────────────────────────── */
.flash { padding: 12px 20px; border-radius: var(--r-sm); margin-bottom: 18px; font-weight: 600; font-size: 0.9rem; }
.flash.ok { background: rgba(52, 211, 153, 0.12); color: var(--ok); border: 1px solid rgba(52,211,153,0.3); }
.flash.error { background: rgba(248, 113, 113, 0.12); color: var(--danger); border: 1px solid rgba(248,113,113,0.3); }

/* ── Hero (landing) ─────────────────────────────────────────── */
.hero { text-align: center; padding: 70px 20px 50px; position: relative; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 800; letter-spacing: -2px; line-height: 1.08;
}
.hero h1 .grad { background: var(--grad-rise); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { max-width: 640px; margin: 22px auto 34px; color: var(--ink-soft); font-size: 1.12rem; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* SVG pitch decoration */
.pitch-deco { position: absolute; left: 50%; transform: translateX(-50%); bottom: -40px; width: min(900px, 96vw); opacity: 0.5; pointer-events: none; }

/* ── Section headers ────────────────────────────────────────── */
.section-head { display: flex; align-items: baseline; gap: 16px; margin: 46px 0 20px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.5rem; letter-spacing: -0.5px; }
.section-head .rule { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-hi), transparent); }

/* ── Market group chips ─────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 16px; border-radius: 999px; font-size: 0.82rem; font-weight: 700;
  background: rgba(45, 212, 191, 0.07); color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.22);
}
.chip.gold { background: rgba(240, 180, 41, 0.08); color: var(--gold-soft); border-color: rgba(240, 180, 41, 0.25); }

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-wrap { max-width: 440px; margin: 7vh auto 0; }
.auth-wrap .card { padding: 38px; }
.auth-wrap .logo-center { text-align: center; margin-bottom: 24px; }
.auth-wrap .logo-center img { height: 72px; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--line);
  padding: 30px 36px; text-align: center;
  color: var(--muted); font-size: 0.85rem;
}
footer .grad { background: var(--grad-rise); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }

/* ── Live score cards ───────────────────────────────────────── */
.match-card { display: flex; align-items: center; gap: 16px; padding: 18px 22px; }
.match-card .teams { flex: 1; }
.match-card .team-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.match-card .score { font-weight: 800; color: var(--ink); }
.match-card .meta { font-size: 0.76rem; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; animation: pulse 1.5s infinite; margin-right: 6px; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav { padding: 12px 18px; gap: 12px; }
  .nav .links a { padding: 7px 12px; font-size: 0.84rem; }
  main { padding: 26px 16px 70px; }
  .card { padding: 20px; }
}

/* ── Global 3D page transitions + depth (site-wide) ─────────── */
@keyframes pageRise {
  from { opacity: 0; transform: perspective(1200px) rotateX(5deg) translateY(22px); }
  to   { opacity: 1; transform: none; }
}
main { animation: pageRise 0.5s cubic-bezier(.22,.9,.3,1) both; transform-origin: top center; }
main.page-leave { animation: pageFall 0.28s ease both; }
@keyframes pageFall { to { opacity: 0; transform: perspective(1200px) rotateX(-4deg) translateY(-16px); } }

.card { transition: transform 0.25s cubic-bezier(.22,.9,.3,1), box-shadow 0.25s, border-color 0.2s; transform-style: preserve-3d; }
a.card:hover, .card.glow:hover { transform: translateY(-3px) perspective(900px) rotateX(1.5deg); }

/* Fantasy sub-navigation tabs */
.fantasy-subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 22px; }
.fantasy-subnav a {
  padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); font-weight: 700; font-size: 0.88rem;
  transition: transform .2s cubic-bezier(.22,.9,.3,1), border-color .2s, background .2s, color .2s;
}
.fantasy-subnav a:hover { transform: translateY(-2px); border-color: var(--line-hi); color: var(--ink); }
.fantasy-subnav a.on { background: linear-gradient(135deg,#0FB5A6,#2DD4BF 45%,#F0B429); color: #06231F; border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  main { animation-duration: .01ms !important; }
  .card { transition-duration: .01ms !important; }
}

/* ════════════════════════════════════════════════════════════
   GAMING SECTION
   ════════════════════════════════════════════════════════════ */

.play-note, .disclaimer-box {
  border: 1px solid var(--line-hi);
  background: linear-gradient(90deg, rgba(45,212,191,.07), rgba(240,180,41,.05));
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.disclaimer-box { margin-top: 18px; }
.ack-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.ack-row input[type=checkbox] {
  width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto;
  accent-color: var(--teal); cursor: pointer;
}
.ack-row span { font-size: .82rem; }

/* Game cards on hub */
.game-card { display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease; position: relative; overflow: hidden; }
a.game-card:hover { transform: translateY(-4px); border-color: var(--line-hi); }
.game-card.soon { opacity: .82; }
.game-art {
  height: 120px; border-radius: var(--r-md); margin-bottom: 14px;
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 50% 0%, rgba(45,212,191,.16), rgba(7,13,26,.4));
  border: 1px solid var(--line);
}
.play-pill {
  margin-top: 14px; align-self: flex-start;
  background: var(--grad-rise); color: #04121f; font-weight: 700;
  padding: 7px 16px; border-radius: 999px; font-size: .86rem;
}
.play-pill.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* Blackjack art */
.bj-art .suit { position: absolute; font-size: 2.4rem; }
.bj-art .s-spade { left: 26px; top: 22px; color: var(--ink); opacity:.85; }
.bj-art .s-heart { right: 30px; bottom: 16px; color: var(--gold); opacity:.9; }
.bj-art .card-pip {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-weight: 800; font-size: 2.6rem; color: var(--teal);
  text-shadow: 0 2px 18px rgba(45,212,191,.5);
}

/* Racing art */
.race-art .race-track {
  position: absolute; left: 0; right: 0; top: 50%; height: 30px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.18) 0 18px, transparent 18px 38px);
}
.race-car { position: absolute; width: 30px; height: 16px; border-radius: 4px; }
.race-art .c1 { background: var(--teal); top: 38px; left: 30px; box-shadow: 0 0 14px var(--teal); }
.race-art .c2 { background: var(--gold); top: 66px; left: 70px; box-shadow: 0 0 14px var(--gold); }

/* Pool art */
.pool-art { background: radial-gradient(120% 120% at 50% 0%, rgba(16,110,144,.3), rgba(7,13,26,.5)); }
.pball { position: absolute; width: 28px; height: 28px; border-radius: 50%; display:grid; place-items:center; font-weight:800; font-size:.8rem; }
.pool-art .b8 { background:#10151f; color:#fff; border:2px solid #444; left: 40px; top: 44px; }
.pool-art .b3 { background: var(--gold); left: 84px; top: 30px; }
.pool-art .cue { background:#f4f4f4; right: 36px; bottom: 24px; }

/* ── In-game shell ─────────────────────────────────────────── */
.game-shell { max-width: 1000px; margin: 0 auto; }
.game-top { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:16px; }
.game-top h2 { font-size: 1.4rem; }
.game-canvas-wrap {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg-2); padding: 10px; box-shadow: var(--shadow);
  position: relative;
}
canvas.game { width: 100%; height: auto; display:block; border-radius: var(--r-md); background:#06101f; }
.game-controls { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin: 14px 0; }
.seg { display:inline-flex; border:1px solid var(--line); border-radius:999px; overflow:hidden; }
.seg button { background:transparent; color:var(--ink-soft); border:0; padding:8px 16px; cursor:pointer; font-weight:600; }
.seg button.active { background: var(--grad-rise); color:#04121f; }
.mini-note { font-size:.78rem; color:var(--muted); margin-top:10px; }
.score-strip { display:flex; gap:18px; flex-wrap:wrap; margin:6px 0 14px; }
.score-chip { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-sm); padding:8px 14px; font-size:.85rem; }
.score-chip b { color: var(--teal); }

/* Blackjack table */
.bj-table { display:flex; flex-direction:column; gap:18px; }
.bj-hand { background:var(--surface); border:1px solid var(--line); border-radius:var(--r-md); padding:14px; }
.bj-hand h4 { font-size:.95rem; margin-bottom:8px; display:flex; justify-content:space-between; }
.bj-cards { display:flex; gap:8px; flex-wrap:wrap; min-height:84px; }
.pcard {
  width:58px; height:82px; border-radius:8px; background:#f6f7fb; color:#10151f;
  display:flex; flex-direction:column; justify-content:space-between; padding:6px 8px;
  font-weight:800; box-shadow:0 4px 12px rgba(0,0,0,.4); font-size:1rem;
}
.pcard.red { color:#d22; }
.pcard.back { background: repeating-linear-gradient(45deg,#13355c 0 8px,#0d2747 8px 16px); color:transparent; }
.pcard .b { align-self:flex-end; transform:rotate(180deg); }
.bj-hand.turn { border-color: var(--gold); box-shadow:0 0 0 1px var(--gold); }
.bj-hand.bust { opacity:.55; }
.bj-status { font-weight:700; }
.bj-status.win { color: var(--ok); }
.bj-status.lose { color: var(--danger); }
.bj-status.push { color: var(--gold-soft); }

/* Buttons row */
.btn-sm { padding:7px 14px; font-size:.85rem; }

/* ── Unified Gaming Hub tabs ─────────────────────────────────── */
.game-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px;
}
.game-tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; cursor: pointer; font-weight: 700; font-size: .92rem;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.game-tabs button:hover { transform: translateY(-2px); border-color: var(--line-hi); }
.game-tabs button.active { background: var(--grad-rise); color: #04121f; border-color: transparent; }
.game-tabs .gt-ico { font-size: 1.05rem; line-height: 1; }
.game-panel { display: none; animation: gp-fade .28s ease both; }
.game-panel.active { display: block; }
@keyframes gp-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Global animations & transitions (site-wide) ─────────────── */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.9,.3,1);
}
/* Stagger helper for grids */
.grid > * { animation: cardIn .5s cubic-bezier(.22,.9,.3,1) both; }
.grid > *:nth-child(2) { animation-delay: .05s; }
.grid > *:nth-child(3) { animation-delay: .10s; }
.grid > *:nth-child(4) { animation-delay: .15s; }
.grid > *:nth-child(5) { animation-delay: .20s; }
.grid > *:nth-child(6) { animation-delay: .25s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Toast (used by GEUI.toast across the site) */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--surface-hi); border: 1px solid var(--line-hi); color: var(--ink);
  padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: .9rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; z-index: 300;
  transition: opacity .25s ease, transform .25s cubic-bezier(.22,.9,.3,1);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Buttons: subtle press feedback everywhere */
.btn, button.btn { transition: transform .12s ease, filter .15s ease, background .15s ease, border-color .15s ease; }
.btn:active, button.btn:active { transform: translateY(1px) scale(.985); }

/* Links in nav get a smooth underline grow */
.nav .links a { position: relative; transition: color .18s ease; }
.nav .links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--grad-rise); transition: width .22s cubic-bezier(.22,.9,.3,1);
}
.nav .links a:hover::after, .nav .links a.active::after { width: 100%; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  main { animation: none !important; }
}

/* ─────────────────────────────────────────────────────────────
   Accessibility (WCAG): skip link, visible focus, reduced motion,
   and a small contrast lift for muted text on dark.
   ───────────────────────────────────────────────────────────── */
:root { --muted: #97ABC6; }   /* lifted from #7E94B0 for AA contrast */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--teal, #2DD4BF);
  color: #04121f;
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid #fff;
}

/* Clear, consistent keyboard focus on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--teal, #2DD4BF);
  outline-offset: 2px;
  border-radius: 6px;
}
main:focus { outline: none; }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* hide the animated shader canvas for these users */
  canvas#ge-shader-bg,
  #ge-shader-bg, #ge-shader-veil { display: none !important; }
}
