/* ---------- Tokens ---------- */
/* Light: sunny parchment, Frisian blue ink, golden highlights */
:root {
  --bg: #f6efd9;
  --bg-2: #efe3bd;
  --surface: #fffaf0;
  --surface-2: #f3e9cc;
  --ink: #0d2350;
  --ink-soft: #3b4c74;
  --blue: #0450c4;
  --blue-deep: #0d2350;
  --yellow: #fbbf2a;
  --yellow-soft: #ffd75e;
  --line: rgba(13, 35, 80, 0.14);
  --pitch-line: rgba(13, 35, 80, 0.07);
  --stripe: rgba(20, 73, 168, 0.045);
  --shadow: 0 18px 40px -18px rgba(13, 35, 80, 0.35);
  --glow: radial-gradient(closest-side, rgba(244, 180, 0, 0.45), transparent 70%);
  --btn-bg: var(--blue-deep);
  --btn-ink: #fff7dc;
  --chip-bg: var(--yellow);
  --chip-ink: var(--blue-deep);
  --accent-text: var(--blue);
  color-scheme: light;
}

/* Dark: midnight Frisian blue, glowing gold */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1426;
    --bg-2: #0f1f3d;
    --surface: #12254a;
    --surface-2: #0e1e3c;
    --ink: #f3ead0;
    --ink-soft: #a9b6d4;
    --blue: #5b8cff;
    --blue-deep: #0a1426;
    --yellow: #fbbf2a;
    --yellow-soft: #ffe08a;
    --line: rgba(255, 200, 61, 0.18);
    --pitch-line: rgba(255, 200, 61, 0.06);
    --stripe: rgba(91, 140, 255, 0.07);
    --shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.7);
    --glow: radial-gradient(closest-side, rgba(255, 200, 61, 0.28), transparent 70%);
    --btn-bg: var(--yellow);
    --btn-ink: #0a1426;
    --chip-bg: rgba(255, 200, 61, 0.14);
    --chip-ink: var(--yellow);
    --accent-text: var(--yellow);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1426;
  --bg-2: #0f1f3d;
  --surface: #12254a;
  --surface-2: #0e1e3c;
  --ink: #f3ead0;
  --ink-soft: #a9b6d4;
  --blue: #5b8cff;
  --blue-deep: #0a1426;
  --yellow: #fbbf2a;
  --yellow-soft: #ffe08a;
  --line: rgba(255, 200, 61, 0.18);
  --pitch-line: rgba(255, 200, 61, 0.06);
  --stripe: rgba(91, 140, 255, 0.07);
  --shadow: 0 22px 50px -20px rgba(0, 0, 0, 0.7);
  --glow: radial-gradient(closest-side, rgba(255, 200, 61, 0.28), transparent 70%);
  --btn-bg: var(--yellow);
  --btn-ink: #0a1426;
  --chip-bg: rgba(255, 200, 61, 0.14);
  --chip-ink: var(--yellow);
  --accent-text: var(--yellow);
  color-scheme: dark;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}
/* Pitch grid + Frisian-flag diagonal stripes */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(-35deg, transparent 0 90px, var(--stripe) 90px 180px),
    linear-gradient(var(--pitch-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--pitch-line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
a { color: inherit; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
h1, h2, h3, h4 {
  font-family: "Saira Extra Condensed", "Arial Narrow", Impact, sans-serif;
  line-height: .95;
  letter-spacing: .01em;
  margin: 0;
  text-transform: uppercase;
}
ul { margin: 0; padding-left: 1.1em; }
li + li { margin-top: 4px; }
.muted { color: var(--ink-soft); }
.text-link { color: var(--accent-text); font-weight: 700; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: "Saira Extra Condensed", sans-serif; font-weight: 800; font-size: 26px; letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 8px;
}
.nav a:hover { background: var(--chip-bg); color: var(--chip-ink); }
.theme-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 14px/1 "Source Sans 3", sans-serif;
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease;
}
.theme-toggle:hover { border-color: var(--yellow); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.icon-sun, .icon-moon { display: none; }
:root .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-moon { display: none; }
  :root:not([data-theme="light"]) .icon-sun { display: block; }
}
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 80px); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.eyebrow {
  display: inline-block;
  background: var(--chip-bg);
  color: var(--chip-ink);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(64px, 13vw, 156px);
  font-weight: 900;
  letter-spacing: .02em;
}
.hero h1 .dot { color: var(--yellow); }
.tagline {
  font-family: "Saira Extra Condensed", sans-serif;
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.1;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 14px 0 18px;
}
.tagline b { font-weight: 900; }
.lead { color: var(--ink-soft); max-width: 34em; margin: 0 0 24px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; padding: 0; list-style: none; }
.facts li {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
}
.facts svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s;
}
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--yellow); }

.logo-stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; }
.logo-stage::before {
  content: "";
  position: absolute; inset: -6%;
  background: var(--glow);
  border-radius: 50%;
  animation: pulse 5s ease-in-out infinite;
}
.logo-stage img {
  position: relative; z-index: 1;
  width: 86%; height: auto;
  filter: drop-shadow(0 24px 30px rgba(0,0,0,.35));
  animation: drop-in .9s cubic-bezier(.2,1.4,.4,1) both, float 6s ease-in-out .9s infinite;
}
@keyframes drop-in { from { opacity: 0; transform: translateY(-40px) rotate(-12deg) scale(.85); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes pulse { 50% { transform: scale(1.06); opacity: .75; } }

/* ---------- Ticker ---------- */
.ticker {
  background: var(--yellow);
  color: #0d2350;
  border-block: 3px solid var(--blue-deep);
  overflow: hidden;
  transform: rotate(-1.5deg);
  margin: 0 -20px;
}
:root[data-theme="dark"] .ticker { border-color: var(--yellow-soft); }
.ticker-track {
  display: flex; gap: 40px;
  width: max-content;
  padding: 12px 0;
  font-family: "Saira Extra Condensed", sans-serif;
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
  animation: marquee 80s linear infinite;
}
.ticker-track span::after { content: "✦"; margin-left: 40px; color: #0450c4; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0 0; }
.section:last-of-type { padding-bottom: clamp(64px, 9vw, 112px); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.kicker {
  display: block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
.section-head p { color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card.striped::before {
  content: "";
  position: absolute; left: 0; top: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--blue) 0 12px, var(--yellow) 12px 24px);
}
.card h3 { font-size: 30px; font-weight: 800; margin: 0 0 10px; }
.card h4 { font-size: 22px; font-weight: 800; margin: 22px 0 8px; }
.card p { margin: 0; color: var(--ink-soft); }
.card p + p { margin-top: 10px; }
.card ul { color: var(--ink-soft); }
.card .actions { margin-top: 22px; }
.card .icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--chip-bg);
  color: var(--chip-ink);
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }

/* ---------- Tournament feature ---------- */
.event {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--blue-deep);
  color: #f6efd9;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 20px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .event { background: var(--surface); border: 1px solid var(--line); }
}
:root[data-theme="dark"] .event { background: var(--surface); border: 1px solid var(--line); }
.event::after {
  content: "";
  position: absolute; right: -70px; top: -70px;
  width: 300px; height: 300px;
  background: url("logo.webp") center / contain no-repeat;
  opacity: .1;
  transform: rotate(14deg);
  pointer-events: none;
}
.event .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 13px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 4px;
  background: #fbbf2a; color: #0a1426;
  text-decoration: none;
}
.badge.outline { background: transparent; color: #ffd75e; border: 1px solid rgba(255, 215, 94, .5); }
a.badge.outline:hover { background: rgba(255, 215, 94, .12); }
.event h3 { font-size: clamp(40px, 6vw, 72px); font-weight: 900; color: #fff7dc; }
.event h3 span { display: block; color: #fbbf2a; font-size: .62em; margin-top: 6px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; color: #c9d3ea; }
.event-meta strong { color: #fff7dc; }
.event .side { position: relative; z-index: 1; text-align: right; }
.countdown {
  font-family: "Saira Extra Condensed", sans-serif;
  font-weight: 900;
  font-size: 72px;
  line-height: .9;
  color: #fbbf2a;
}
.countdown small { display: block; font-size: 20px; font-weight: 600; letter-spacing: .08em; color: #c9d3ea; text-transform: uppercase; }
.event .btn { background: #fbbf2a; color: #0a1426; margin-top: 18px; }
.event .btn:hover { transform: translateY(-2px); }

.schedule { list-style: none; padding: 0; margin: 0; }
.schedule li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  padding: 8px 0;
  margin: 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.schedule li:last-child { border-bottom: 0; }
.schedule time { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.schedule li.round time { color: var(--accent-text); }
.schedule li.round span { color: var(--ink); font-weight: 600; }

.points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.points li { grid-column: span 2; }
.points li:nth-child(n+4) { grid-column: span 3; }
.points li { margin: 0; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; text-align: center; color: var(--ink-soft); font-size: 14px; line-height: 1.3; }
.points b { display: block; font-family: "Saira Extra Condensed", sans-serif; font-size: 34px; line-height: 1; color: var(--ink); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding: 0; list-style: none; }
.tags li { margin: 0; font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); }

table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--ink); white-space: nowrap; }
td { color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }

/* ---------- Rules accordion ---------- */
details.rules {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
details.rules > summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 26px;
  font-family: "Saira Extra Condensed", sans-serif;
  font-weight: 800;
  font-size: 26px;
  text-transform: uppercase;
}
details.rules > summary::-webkit-details-marker { display: none; }
details.rules > summary::after {
  content: "+";
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--chip-bg); color: var(--chip-ink);
  font-size: 24px;
  transition: transform .2s ease;
}
details.rules[open] > summary::after { transform: rotate(45deg); }
details.rules .rules-body {
  padding: 0 26px 26px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 40px;
}
details.rules .rules-body > div { color: var(--ink-soft); }
details.rules .rules-body p { margin: 0 0 8px; }
details.rules .full { grid-column: 1 / -1; }
details.rules h4 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 18px 0 8px; }

/* ---------- Contact ---------- */
.join {
  position: relative;
  background: var(--blue-deep);
  color: #f6efd9;
  border-radius: 24px;
  padding: clamp(36px, 6vw, 64px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .join { background: var(--surface); border: 1px solid var(--line); }
}
:root[data-theme="dark"] .join { background: var(--surface); border: 1px solid var(--line); }
.join::after {
  content: "";
  position: absolute; right: -60px; bottom: -80px;
  width: 280px; height: 280px;
  background: url("logo.webp") center / contain no-repeat;
  opacity: .12;
  transform: rotate(-18deg);
  pointer-events: none;
}
.join h2 { font-size: clamp(38px, 5.5vw, 60px); font-weight: 800; color: #ffd75e; }
.join p { margin: 12px 0 0; color: #c9d3ea; max-width: 34em; }
.join strong { color: #fff7dc; }
.join .btn { position: relative; z-index: 1; background: #fbbf2a; color: #0a1426; }

/* ---------- Footer ---------- */
footer { padding: 0 0 48px; color: var(--ink-soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }
.flag { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.flag i { width: 6px; height: 14px; transform: skewX(-20deg); background: var(--blue); }
.flag i:nth-child(even) { background: var(--yellow); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .logo-stage { order: -1; width: min(300px, 70vw); margin-inline: auto; }
  .lead { margin-inline: auto; }
  .facts, .actions { justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; align-items: start; }
  .event .side { text-align: left; }
  .join { grid-template-columns: 1fr; }
  details.rules .rules-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  .theme-toggle .label { display: none; }
  .card { padding: 24px 20px; }
  details.rules > summary { padding: 18px 20px; font-size: 22px; }
  details.rules .rules-body { padding: 0 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Subpages ---------- */
.nav a[aria-current="page"] { background: var(--chip-bg); color: var(--chip-ink); }
.page-hero { padding: clamp(40px, 7vw, 80px) 0 clamp(8px, 2vw, 16px); }
.page-hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.page-hero h1 { font-size: clamp(56px, 10vw, 120px); font-weight: 900; }
.page-hero h1 span { color: var(--yellow); }
.page-hero .lead { margin-top: 18px; }
.page-hero .mini-logo { width: clamp(120px, 18vw, 200px); height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.3)); animation: float 6s ease-in-out infinite; }
.crumb { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink-soft); text-decoration: none; margin-bottom: 18px; }
.crumb:hover { color: var(--accent-text); }
.notice {
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 2px dashed var(--yellow);
  background: color-mix(in srgb, var(--yellow) 12%, transparent);
  color: var(--ink);
  max-width: 44em;
}
.notice svg { width: 24px; height: 24px; flex: none; color: var(--accent-text); margin-top: 2px; }
.notice p { margin: 0; }
.proposals { list-style: none; padding: 0; margin: 0; counter-reset: prop; display: grid; gap: 12px; }
.proposals li {
  counter-increment: prop;
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  margin: 0;
  padding: 18px 20px;
  background: var(--surface-2);
  border-radius: 12px;
  color: var(--ink-soft);
}
.proposals li::before {
  content: counter(prop, decimal-leading-zero);
  font-family: "Saira Extra Condensed", sans-serif;
  font-weight: 900; font-size: 34px; line-height: 1;
  color: var(--accent-text);
  min-width: 1.6em;
}
.proposals strong { display: block; color: var(--ink); font-size: 19px; margin-bottom: 2px; }
.proposals li > div { color: var(--ink-soft); }
.steps { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex; gap: 10px;
  margin: 0; padding: 6px 0;
  background: none; border-radius: 0;
}
.steps li::before {
  content: counter(step) ".";
  font-family: inherit; font-size: inherit; font-weight: 700; line-height: inherit;
  color: var(--accent-text);
  min-width: 0;
}
/* ---------- Year calendar ---------- */
.cal-legend { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-soft); font-size: 15px; }
.cal-legend li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.sw { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.sw-week { width: 34px; border-radius: 6px; background: var(--week-bg); box-shadow: inset 0 0 0 1px var(--week-line); }
.sw-deadline { width: 34px; border-radius: 6px; background: var(--deadline-bg); box-shadow: inset 0 0 0 1px var(--deadline-line); }
.sw-tue { background: var(--blue); color: var(--surface); }
.sw-fri { background: var(--yellow); color: #0a1426; }
:root { --week-bg: rgba(251, 191, 42, .28); --week-line: rgba(251, 191, 42, .7); --deadline-bg: rgba(214, 48, 49, .14); --deadline-line: rgba(214, 48, 49, .6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --week-bg: rgba(251, 191, 42, .14); --week-line: rgba(251, 191, 42, .45); --deadline-bg: rgba(255, 92, 92, .26); --deadline-line: rgba(255, 110, 110, .75); }
}
:root[data-theme="dark"] { --week-bg: rgba(251, 191, 42, .14); --week-line: rgba(251, 191, 42, .45); --deadline-bg: rgba(255, 92, 92, .26); --deadline-line: rgba(255, 110, 110, .75); }

.calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
.cal-month {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 14px 12px;
  box-shadow: var(--shadow);
}
.cal-month:not(.has-game) { opacity: .7; box-shadow: none; }
.cal-month header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.cal-month h3 { font-size: 28px; font-weight: 800; }
.cal-badge { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: var(--chip-bg); color: var(--chip-ink); white-space: nowrap; }
.cal-badge.none { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.cal-dates { margin: 4px 4px 10px; font-size: 14px; font-weight: 600; color: var(--accent-text); }
.cal-grid { width: 100%; border-collapse: separate; border-spacing: 0 3px; table-layout: fixed; font-size: 14px; }
.cal-grid th { padding: 2px 0 4px; border: 0; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.cal-grid td { padding: 0; border: 0; text-align: center; color: var(--ink); height: 30px; }
.cal-grid td span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-variant-numeric: tabular-nums; }
.cal-grid td.out { color: var(--ink-soft); opacity: .45; }
.cal-grid tr.game-week td { background: var(--week-bg); box-shadow: inset 0 1px 0 var(--week-line), inset 0 -1px 0 var(--week-line); cursor: default; }
.cal-grid tr.game-week td:first-child { border-radius: 8px 0 0 8px; box-shadow: inset 1px 1px 0 var(--week-line), inset 0 -1px 0 var(--week-line); }
.cal-grid tr.game-week td:last-child { border-radius: 0 8px 8px 0; box-shadow: inset -1px 1px 0 var(--week-line), inset 0 -1px 0 var(--week-line); }
.cal-grid tr.game-week td.out { opacity: .6; }
.cal-grid tr.deadline-week td { background: var(--deadline-bg); box-shadow: inset 0 1px 0 var(--deadline-line), inset 0 -1px 0 var(--deadline-line); cursor: default; }
.cal-grid tr.deadline-week td:first-child { border-radius: 8px 0 0 8px; box-shadow: inset 1px 1px 0 var(--deadline-line), inset 0 -1px 0 var(--deadline-line); }
.cal-grid tr.deadline-week td:last-child { border-radius: 0 8px 8px 0; box-shadow: inset -1px 1px 0 var(--deadline-line), inset 0 -1px 0 var(--deadline-line); }
.cal-grid tr.deadline-week td.out { opacity: .6; }
.cal-grid td.tue span { background: var(--blue); color: var(--surface); font-weight: 700; }
.cal-grid td.fri span { background: var(--yellow); color: #0a1426; font-weight: 700; }
.cal-grid td.today span { outline: 2px solid var(--accent-text); outline-offset: 1px; }

@media (max-width: 860px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
  .page-hero .mini-logo { display: none; }
}

/* Proposal groups: numbering continues across groups */
.proposal-groups { counter-reset: prop; }
.proposal-groups .proposals { counter-reset: none; }
.proposal-group { font-size: 28px; font-weight: 800; color: var(--accent-text); margin: 34px 0 12px; }
.proposal-group:first-child { margin-top: 0; }
