:root { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; padding: 1.5rem; background: radial-gradient(ellipse at top, #17364c, #061421 65%); color: #f4f7fb; font-family: system-ui, sans-serif; line-height: 1.6; }
main { max-width: 1100px; margin: auto; }
a { color: #75d8f5; }
h1, h2, h3 { line-height: 1.2; }
h1 { color: #ffd166; font-size: clamp(2rem, 6vw, 3.6rem); margin-bottom: .5rem; }
h2 { color: #75d8f5; margin-top: 2.5rem; }
.sub, .muted { color: #aec1d0; }
.eyebrow { color: #ffd166; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }
.winner { padding: 1.5rem; border: 1px solid #ffd166; border-radius: 18px; margin: 2rem 0; background: #102b3c; text-align: center; }
.winner h2 { color: #ffd166; margin: .5rem 0; }
.scoreline { font-size: clamp(2rem, 8vw, 4rem); font-weight: 900; color: #ffd166; }
.podium, .highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.podium article, .highlight { background: #102b3c; border: 1px solid #28485e; border-radius: 14px; padding: 1.25rem; }
.podium article:first-child { border-color: #ffd166; }
.place { color: #ffd166; font-weight: 800; font-size: 1.25rem; }
.podium h3 { margin: .5rem 0; }
.podium-photo { display: block; margin-bottom: 1rem; }
.podium-photo img { display: block; width: 100%; height: auto; border-radius: 10px; }
.podium-photo:focus-visible { outline: 3px solid #ffd166; outline-offset: 4px; }
.podium-doughnuts { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #28485e; text-align: center; }
.doughnut { display: grid; place-items: center; width: 112px; height: 112px; margin: .5rem auto; border: 22px solid #dc9b66; border-radius: 50%; box-shadow: inset 0 0 0 3px #f1bb91, 0 0 0 5px #713f29; font-size: 1.65rem; font-weight: 900; }
.highlight { text-align: center; }
.metric { display: block; font-size: 2.4rem; color: #ffd166; font-weight: 900; }
.table-wrap { width: 100%; overflow-x: auto; margin-top: 1rem; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .7rem; border-bottom: 1px solid #28485e; }
th { color: #aec1d0; white-space: nowrap; }
tbody tr:hover { background: #12324a; }
#team-standings tbody tr:nth-child(-n+3) { color: #ffd166; }
#match-results td:nth-child(4) { white-space: nowrap; font-weight: 800; color: #ffd166; }
caption { text-align: left; color: #aec1d0; padding: .5rem 0; }
.page-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.5rem 0; }
.page-nav a { border: 1px solid #28485e; padding: .5rem 1rem; border-radius: 30px; text-decoration: none; }
footer { border-top: 1px solid #28485e; margin-top: 3rem; padding: 1.5rem 0; color: #aec1d0; }
.event-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; align-items: start; }
.event-gallery figure { margin: 0; background: #102b3c; border: 1px solid #28485e; border-radius: 14px; overflow: hidden; }
.event-gallery a { display: block; }
.event-gallery a:focus-visible { outline: 3px solid #ffd166; outline-offset: -3px; }
.event-gallery img { display: block; width: 100%; height: 200px; object-fit: contain; background: #061421; }
.event-gallery figcaption { padding: .85rem 1rem; }
#event-photos { scroll-margin-top: 1rem; }
.food-feature { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: center; gap: 2rem; margin: 1.5rem 0; padding: 1.25rem; border: 1px solid #ffd166; border-radius: 14px; background: #102b3c; }
.food-feature img { display: block; width: 100%; height: auto; border-radius: 10px; }
.food-feature h3 { color: #ffd166; font-size: 2rem; margin: .5rem 0 1rem; }
.food-feature a:focus-visible { outline: 3px solid #ffd166; outline-offset: 4px; }
.photo-viewer { border: 1px solid #28485e; border-radius: 12px; padding: 1rem; background: #061421; color: #f4f7fb; max-width: 96vw; max-height: 96vh; }
.photo-viewer::backdrop { background: rgba(0, 0, 0, .9); }
.photo-viewer img { display: block; max-width: 88vw; max-height: 76vh; width: auto; height: auto; margin: auto; }
.photo-viewer-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; margin-top: .75rem; }
.photo-viewer button { padding: .6rem 1rem; border: 1px solid #28485e; border-radius: 8px; background: #102b3c; color: #f4f7fb; cursor: pointer; }
@media (max-width: 900px) {
  .event-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { padding: 1rem; }
  .podium, .highlights, .food-feature { grid-template-columns: 1fr; }
  .event-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .event-gallery img { height: 150px; }
  .event-gallery figcaption { padding: .6rem; font-size: .85rem; }
  th, td { padding: .5rem; font-size: .85rem; }
}
