:root {
  --ink: #17130f;
  --paper: #fff8e7;
  --paper-strong: #ffe9a8;
  --wood: #b67233;
  --wood-dark: #68411f;
  --grass: #1f7a3a;
  --sky: #4bb7e8;
  --red: #e23b31;
  --yellow: #ffd43b;
  --blue: #1967d2;
  --orange: #ff7a1a;
  --night: #17102a;
  --line: rgba(23, 19, 15, 0.22);
  --shadow: 0 22px 70px rgba(28, 18, 8, 0.24);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 212, 59, 0.32), transparent 24rem),
    linear-gradient(135deg, #fdf6dc 0%, #f9d06b 30%, #88ca60 64%, #4ab5dc 100%);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.17;
  background-image:
    linear-gradient(90deg, rgba(23, 19, 15, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(23, 19, 15, 0.06) 1px, transparent 1px);
  background-size: 31px 31px;
  z-index: 20;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 248, 231, 0.88);
  border-bottom: 3px solid var(--ink);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  background:
    linear-gradient(45deg, var(--red) 0 33%, var(--yellow) 33% 66%, var(--blue) 66%);
  border: 2px solid var(--ink);
  transform: rotate(-8deg);
}

.nav-links {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  min-width: 0;
}

.nav-links a,
.nav-menu-button,
.button,
.filter,
.game-filter,
.game-toggle,
.meter-button {
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  font: 900 0.9rem/1 Arial, sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-links > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0.62rem 0.78rem;
  background: #fff;
  white-space: nowrap;
}

.nav-links a.nav-ticket {
  background: var(--red);
  color: #fff;
}

.nav-menu {
  position: relative;
  flex: 0 0 auto;
}

.nav-menu[hidden] {
  display: none;
}

.nav-menu-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.78rem;
  background: #fff;
  color: var(--ink);
}

.hamburger {
  position: relative;
  width: 1rem;
  height: 0.72rem;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.hamburger::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 1.5px);
  border-top: 3px solid currentColor;
}

.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.65rem);
  z-index: 12;
  width: min(15rem, calc(100vw - 2rem));
  display: grid;
  gap: 0.45rem;
  padding: 0.65rem;
  background: rgba(255, 248, 231, 0.97);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--ink);
}

.nav-menu-panel[hidden] {
  display: none;
}

.nav-menu-panel a {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: flex-start;
  padding: 0.62rem 0.78rem;
  background: #fff;
}

.button:hover,
.filter:hover,
.game-filter:hover,
.game-toggle:hover,
.nav-links a:hover,
.nav-menu-button:hover,
.meter-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 5vw, 5rem) clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  border-bottom: 5px solid var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 19, 15, 0.42), rgba(23, 19, 15, 0.06) 58%, rgba(23, 19, 15, 0.34)),
    linear-gradient(0deg, rgba(23, 19, 15, 0.34), transparent 42%),
    url("assets/album/album-01.jpg") center / cover;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  left: -8vw;
  right: -8vw;
  bottom: -5rem;
  height: 10rem;
  background: var(--paper);
  border-top: 5px solid var(--ink);
  transform: rotate(-2deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 52rem;
}

.event-time {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 9ch;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(4.8rem, 15vw, 11.5rem);
  line-height: 0.78;
  text-transform: uppercase;
  text-shadow: 8px 8px 0 var(--ink), 12px 12px 0 var(--red);
}

.hero-copy {
  max-width: 42rem;
  color: #fff;
  font: 800 clamp(1.1rem, 2.1vw, 1.55rem)/1.25 Arial, sans-serif;
  text-shadow: 2px 2px 0 var(--ink);
}

.ticket-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 46rem;
  margin: 1rem 0 1.25rem;
}

.ticket-summary span {
  padding: 0.5rem 0.6rem;
  background: rgba(255, 248, 231, 0.92);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: 900 0.78rem/1 Arial, sans-serif;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.05rem;
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.secondary,
.button.album-link,
.meter-button {
  background: var(--yellow);
  color: var(--ink);
}


.section {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 54rem);
  align-items: start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-number {
  width: 3.2rem;
  height: 3.2rem;
  display: inline-grid;
  place-items: center;
  margin: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-weight: 900;
}

h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 0.88;
  text-transform: uppercase;
}

.section-heading p:not(.section-number),
.photo-section p,
.score-chaos p {
  max-width: 58rem;
  font: 700 clamp(1rem, 1.8vw, 1.25rem)/1.45 Arial, sans-serif;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
}

.intro-strip div,
.score-rules article,
.leaderboard-card,
.game-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}

.intro-strip div {
  padding: 1rem;
  transform: rotate(var(--tilt, -1deg));
}

.intro-strip div:nth-child(2) {
  --tilt: 1deg;
  background: var(--paper-strong);
}

.intro-strip div:nth-child(3) {
  --tilt: -0.5deg;
}

.intro-strip strong {
  display: block;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.intro-strip span {
  font: 700 1rem/1.35 Arial, sans-serif;
}


.property-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 1.4rem;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(31, 122, 58, 0.18), transparent 42%),
    var(--paper);
}

.property-copy {
  max-width: 760px;
}

.property-copy p:not(.section-number) {
  font: 800 clamp(1.08rem, 2vw, 1.35rem)/1.35 Arial, sans-serif;
}

.property-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.property-facts span {
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--grass);
  font: 900 0.82rem/1 Arial, sans-serif;
  text-transform: uppercase;
}


.map-section {
  background:
    linear-gradient(180deg, rgba(75, 183, 232, 0.18), rgba(31, 122, 58, 0.12)),
    var(--paper);
  border-top: 5px solid var(--ink);
  border-bottom: 5px solid var(--ink);
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(280px, 0.75fr);
  gap: 1.25rem;
  align-items: start;
}

.property-map {
  position: relative;
  margin: 0;
  padding: 0.7rem;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}

.map-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.map-zoom-button {
  min-width: 2.65rem;
  padding: 0.45rem 0.6rem;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 0.45rem;
  box-shadow: 3px 3px 0 var(--ink);
  font: 900 0.86rem/1 Arial, sans-serif;
  cursor: pointer;
}

.map-zoom-button:hover,
.map-zoom-button:focus-visible {
  background: var(--yellow);
}

.map-zoom-reset {
  min-width: 4.15rem;
}

.map-viewport {
  overflow: auto;
  max-height: min(72vh, 760px);
  border: 2px solid rgba(23, 19, 15, 0.26);
  background: #d9ecf8;
  cursor: grab;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.map-viewport.dragging {
  cursor: grabbing;
  user-select: none;
}

.map-canvas {
  position: relative;
  width: calc(var(--map-zoom, 1) * 100%);
  min-width: 100%;
}

.map-canvas img {
  display: block;
  width: 100%;
  height: auto;
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 1rem;
  height: 1rem;
  color: #fff;
  text-decoration: none;
  transform: translate(-50%, -50%);
  outline: none;
}

.map-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
}

.map-pin span {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  min-width: max-content;
  max-width: 10rem;
  padding: 0.38rem 0.5rem;
  color: #fff;
  background: var(--red);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink);
  font: 900 0.72rem/1 Arial, sans-serif;
  text-align: center;
  text-transform: uppercase;
  transform: translate(var(--label-x, -50%), var(--label-y, -140%));
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

.map-pin span::before {
  content: "";
  position: absolute;
  left: var(--line-left, auto);
  right: var(--line-right, calc(100% - 0.15rem));
  top: 50%;
  width: 1.25rem;
  border-top: 3px solid var(--ink);
  transform: translateY(-50%);
}

.map-pin:hover,
.map-pin:focus-visible,
.map-pin.active {
  z-index: 4;
}

.map-pin:hover::before,
.map-pin:focus-visible::before,
.map-pin.active::before,
.map-pin:hover span,
.map-pin:focus-visible span,
.map-pin.active span {
  color: var(--ink);
  background: var(--yellow);
}

.map-pin:hover span,
.map-pin:focus-visible span,
.map-pin.active span {
  transform: translate(var(--label-x, -50%), var(--label-y, -140%)) scale(1.08);
}

.map-locations {
  display: grid;
  gap: 0.75rem;
}

.location-card {
  display: block;
  scroll-margin-top: 5.5rem;
  padding: 0.9rem;
  color: inherit;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.location-card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: clamp(1.15rem, 2.3vw, 1.6rem);
  line-height: 1;
  text-transform: uppercase;
}

.location-card span {
  display: block;
  font: 800 0.98rem/1.32 Arial, sans-serif;
}

.map-beats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.map-beats a,
.beat-location {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.42rem;
  color: inherit;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font: 900 0.72rem/1 Arial, sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}

.map-beats a:hover,
.map-beats a:focus-visible,
.beat-location:hover,
.beat-location:focus-visible {
  color: #fff;
  background: var(--blue);
}

.location-card:hover,
.location-card:focus-visible,
.location-card.active,
.location-card:target {
  background: var(--paper-strong);
  box-shadow: 6px 6px 0 var(--red);
  transform: translate(-2px, -2px);
}


.info-section {
  background: #fffdf4;
}

.meals-section {
  border-top: 5px solid var(--ink);
}

.rides-section {
  background: #e6f5ff;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-grid article {
  padding: 1rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}

.info-grid h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.info-grid p {
  margin-bottom: 0;
  font: 700 1rem/1.4 Arial, sans-serif;
}

.menu-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1rem;
  background: var(--paper-strong);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}

.menu-panel h3 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1;
  text-transform: uppercase;
}

.menu-panel p {
  margin-bottom: 0;
  font: 700 1rem/1.4 Arial, sans-serif;
}

.menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-content: start;
}

.menu-list span {
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: 900 0.78rem/1 Arial, sans-serif;
  text-transform: uppercase;
}

.album-rail {
  background: #fff;
  border-bottom: 5px solid var(--ink);
}

.album-heading {
  align-items: center;
}

.album-heading .button {
  margin-top: 0.7rem;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(180px, 24vw);
  gap: 1rem;
}

.album-photo,
.section-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 7px 7px 0 var(--ink);
}

.album-photo.wide {
  grid-column: span 2;
}

.album-photo.tall {
  grid-row: span 2;
}

.album-photo img,
.section-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.album-photo figcaption,
.section-photo figcaption {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.45rem 0.55rem;
  color: var(--ink);
  background: rgba(255, 248, 231, 0.98);
  border: 2px solid var(--ink);
  font: 900 0.82rem/1.12 Arial, sans-serif;
  text-transform: uppercase;
}

.section-photo {
  min-height: 320px;
  transform: rotate(-1deg);
}

.games-photo {
  max-width: min(520px, 100%);
  margin: 0 0 2rem auto;
  transform: rotate(1.2deg);
}

.awards-photo {
  min-height: 360px;
  transform: rotate(-1.5deg);
}

.photo-section a {
  color: var(--yellow);
  font-weight: 900;
}

.photo-album-block {
  grid-column: 1 / -1;
  margin-top: 1rem;
  color: #fff;
}

.photo-album-block .album-grid {
  margin-top: 1rem;
}

.photo-album-block .button.secondary {
  background: #fff;
  color: var(--ink);
}

.schedule-section {
  background: var(--paper);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter {
  padding: 0.8rem 1rem;
  background: #fff;
}

.filter.active {
  background: var(--blue);
  color: #fff;
}

.timeline {
  display: grid;
  gap: 0.85rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  scroll-margin-top: 5.5rem;
  padding: 0.85rem;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 var(--ink);
}

.timeline-item[hidden] {
  display: none;
}

.timeline-item:target {
  background: #fff7c7;
  box-shadow: 5px 5px 0 var(--red);
}

.timeline-item time {
  display: grid;
  place-items: center;
  min-height: 4.2rem;
  padding: 0.7rem;
  background: var(--paper-strong);
  border: 2px dashed var(--ink);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.timeline-item h3,
.score-rules h3,
.leaderboard-card h3,
.game-toggle {
  margin-bottom: 0.25rem;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1;
  text-transform: uppercase;
}

.timeline-item h3 span {
  color: var(--red);
}

.beat-location-row {
  margin: 0.18rem 0 0.45rem;
}

.schedule-link,
.inline-link,
.timeline-sublist a {
  color: inherit;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.12em;
}

.schedule-link {
  display: inline-block;
}

.schedule-link:hover,
.inline-link:hover,
.timeline-sublist a:hover {
  color: var(--blue);
}

.timeline-sublist a {
  display: grid;
  gap: 0.18rem;
  text-decoration: none;
}

.timeline-sublist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

.timeline-sublist li {
  display: grid;
  gap: 0.18rem;
  padding: 0.55rem 0.65rem;
  background: #e6f5ff;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--sky);
}

.timeline-sublist strong {
  font: 900 0.9rem/1 Arial, sans-serif;
  text-transform: uppercase;
}

.timeline-sublist span {
  font: 700 0.92rem/1.25 Arial, sans-serif;
}

.timeline-sublist.night-list li {
  background: #f0eaff;
  box-shadow: 3px 3px 0 var(--night);
}

.timeline-item p,
.score-rules p,
.leaderboard-card li,
.game-detail p,
.site-footer p {
  margin-bottom: 0;
  font: 700 1rem/1.4 Arial, sans-serif;
}

.timeline-item.game {
  border-left: 12px solid var(--red);
}

.timeline-item.hard {
  border-left-color: var(--orange);
}

.timeline-item.meal {
  border-left: 12px solid var(--grass);
}

.timeline-item.chill {
  border-left: 12px solid var(--sky);
}

.timeline-item.arrival {
  border-left: 12px solid var(--blue);
}

.timeline-item.night,
.timeline-item.sunday {
  border-left: 12px solid var(--night);
}

.scoring-section {
  background:
    linear-gradient(165deg, rgba(226, 59, 49, 0.14), transparent 35%),
    linear-gradient(20deg, rgba(25, 103, 210, 0.14), transparent 34%),
    #fff8e7;
}

.score-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.6fr) minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: 1.2rem;
}

.score-chaos {
  align-self: start;
  padding: 1.2rem;
  background: var(--ink);
  color: #fff;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--red);
}

.meter-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.meter-top span {
  font-weight: 900;
}

.meter-top strong {
  font-size: 4rem;
  line-height: 0.9;
  color: var(--yellow);
}

.meter-track {
  height: 1.4rem;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #fff;
  border: 2px solid #fff;
}

.meter-bar {
  width: 37%;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--red) 0 18px, var(--yellow) 18px 36px, var(--blue) 36px 54px);
}

.meter-button {
  width: 100%;
  margin-bottom: 1rem;
}

.score-rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.score-rules article {
  padding: 1rem;
}

.score-rules article:nth-child(3n + 1) {
  background: #fefefe;
}

.score-rules article:nth-child(3n + 2) {
  background: #fff0a6;
}

.score-rules article:nth-child(3n) {
  background: #e6f5ff;
}

.scoreboard-section {
  background: linear-gradient(180deg, var(--grass), #145d2c);
  color: #fff;
}

.scoreboard-combo {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1rem, 3vw, 2rem);
  color: #fff;
  background: linear-gradient(180deg, var(--grass), #145d2c);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--ink);
}

.combo-heading {
  margin-bottom: 1rem;
}

.combo-heading h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.combo-heading p {
  max-width: 820px;
  margin: 0;
  font: 800 clamp(1rem, 2vw, 1.25rem)/1.3 Arial, sans-serif;
}

.combo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.scoreboard-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 1.2rem;
  align-items: start;
}

.plywood-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(6, minmax(54px, 1fr));
  gap: 0;
  min-width: 0;
  overflow: auto;
  background:
    repeating-linear-gradient(90deg, #c9823d 0 40px, #b87535 40px 80px);
  border: 5px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  color: var(--ink);
}

.plywood-grid > div {
  min-height: 4.3rem;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  border-right: 2px solid rgba(23, 19, 15, 0.55);
  border-bottom: 2px solid rgba(23, 19, 15, 0.55);
  font: 900 0.9rem/1 Arial, sans-serif;
  text-align: center;
  text-transform: uppercase;
}

.grid-label {
  background: rgba(255, 212, 59, 0.75);
}

.grid-row-label {
  justify-content: start;
  background: rgba(255, 248, 231, 0.32);
}

.score-mark {
  color: var(--red);
  font-size: 1.2rem;
  transform: rotate(-7deg);
  text-decoration: underline;
}

.leaderboard-card {
  padding: 1.1rem;
  color: var(--ink);
  background: var(--paper-strong);
}

.leaderboard-card ol {
  margin: 0;
  padding-left: 1.3rem;
}

.leaderboard-card li {
  margin: 0.55rem 0;
}

.games-section {
  background: #fefefe;
}

.game-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.game-filter {
  padding: 0.75rem 0.9rem;
  background: #fff;
}

.game-filter.active {
  background: var(--blue);
  color: #fff;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.game-card {
  overflow: hidden;
  background: var(--paper);
}

.game-card[hidden] {
  display: none;
}

.game-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  text-align: left;
}

.toggle-icon {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid currentColor;
  border-left: 0;
  border-top: 0;
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.game-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(225deg);
}

.game-detail {
  display: none;
  padding: 0 1rem 1rem;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.15rem 0 0.75rem;
}

.game-meta span {
  padding: 0.38rem 0.48rem;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font: 900 0.72rem/1 Arial, sans-serif;
  text-transform: uppercase;
}

.game-card.open .game-detail {
  display: block;
}

.photo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 1.4rem;
  color: #fff;
  background: var(--night);
  border-top: 5px solid var(--ink);
  border-bottom: 5px solid var(--ink);
}

.photo-section .section-number {
  background: var(--yellow);
  color: var(--ink);
}

.award-row {
  display: grid;
  gap: 0.9rem;
}

.award-row span {
  display: block;
  padding: 1rem;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--orange);
  font-size: clamp(1.25rem, 3vw, 2.1rem);
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(var(--award-tilt, -1deg));
}

.award-row span:nth-child(2) {
  --award-tilt: 1deg;
}

.award-row span:nth-child(3) {
  --award-tilt: -0.4deg;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 5vw, 5rem);
  background: var(--ink);
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.site-footer a {
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-menu-panel {
    left: auto;
    right: 0;
  }

  .hero,
  .score-layout,
  .scoreboard-wrap,
  .photo-section,
  .property-section,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }


  .intro-strip,
  .info-grid,
  .menu-panel,
  .score-rules,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(170px, 36vw);
  }

  .album-photo.wide,
  .album-photo.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .nav-links > a,
  .nav-menu-button {
    padding: 0.58rem 0.62rem;
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(4rem, 24vw, 7rem);
    text-shadow: 5px 5px 0 var(--ink), 8px 8px 0 var(--red);
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-actions,
  .filter-row {
    flex-direction: column;
  }

  .button,
  .filter {
    width: 100%;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }



  .map-controls {
    justify-content: stretch;
  }

  .map-zoom-button {
    flex: 1;
  }

  .map-viewport {
    max-height: 70vh;
  }

  .map-canvas {
    min-width: 520px;
  }

  .map-pin span {
    max-width: 7.2rem;
    padding: 0.32rem 0.4rem;
    font-size: 0.64rem;
  }


  .timeline-item time {
    width: fit-content;
    min-width: min(14rem, 100%);
    min-height: 3.1rem;
    justify-self: center;
    padding: 0.55rem 1.2rem;
    font-size: 1rem;
  }

  .timeline-sublist {
    grid-template-columns: 1fr;
  }

  .album-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(220px, 65vw);
  }

  .plywood-grid {
    grid-template-columns: 110px repeat(6, 64px);
  }
}

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