/* ============================================================
   FULLERTON GO! — Game Boy × modern brutalism, logo edition
   Palette from the club badge: orange shell, navy outlines,
   cream paper, bolt yellow, pokeball magenta.
   ============================================================ */

:root {
  /* logo palette */
  --orange: #f0791f;
  --orange-dark: #d96812;
  --ink: #1b1f3d;          /* logo navy — replaces black everywhere */
  --paper: #fdf4e6;        /* warm cream */
  --screen: #f6e9cf;       /* console screen */
  --yellow: #ffd42e;       /* pikachu-tail bolt */
  --magenta: #b6509b;      /* pokeball button */

  /* teams */
  --valor: #e4342b;
  --mystic: #2e5fd0;

  --border: 3px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 5px 5px 0 var(--ink);

  --chunky: "Luckiest Guy", "Arial Black", sans-serif;
  --pixel: "Press Start 2P", monospace;
  --mono: "Space Mono", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--mono);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  /* faint dot-matrix grid over the whole page */
  background-image:
    linear-gradient(rgba(27, 31, 61, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 31, 61, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
}

.container { width: min(1140px, 92%); margin-inline: auto; }
.container-narrow { width: min(780px, 92%); }

/* anchor targets land below the sticky header */
section[id] { scroll-margin-top: 80px; }

h1, h2, h3 { font-family: var(--chunky); font-weight: 400; line-height: 1.1; letter-spacing: 0.02em; text-wrap: balance; }

/* avoid single-word orphan lines in running copy */
p, li, blockquote, .section-sub { text-wrap: pretty; }

.section { padding: 5rem 0; }

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--yellow);
}
.section-title span {
  font-family: var(--pixel);
  font-size: 0.85rem;
  background: var(--orange);
  color: #fff;
  border: var(--border);
  padding: 0.6em 0.65em;
  flex-shrink: 0;
  text-shadow: none;
}

.section-sub {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 2.4rem;
  border-left: 6px solid var(--orange);
  padding-left: 0.8rem;
}

.eyebrow {
  font-family: var(--pixel);
  font-size: 0.6rem;
  color: var(--orange-dark);
  margin-bottom: 1.2rem;
}

.lead { font-size: 1.02rem; }

/* ---------- logo badge usages ---------- */
.brand-badge { width: 44px; height: 44px; flex-shrink: 0; }

.console-sticker {
  position: absolute;
  top: -30px;
  right: -26px;
  width: 116px;
  height: 116px;
  transform: rotate(12deg);
  filter: drop-shadow(4px 4px 0 rgba(27, 31, 61, 0.85));
  z-index: 2;
}

.join-bg-badge {
  position: absolute;
  top: -140px;
  left: -140px;
  width: 460px;
  opacity: 0.8;
  animation: badge-spin 60s linear infinite;
  pointer-events: none;
}
@keyframes badge-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@media (max-width: 600px) {
  .join-bg-badge { width: 300px; top: -95px; left: -95px; }
}
@media (prefers-reduced-motion: reduce) {
  .join-bg-badge { animation: none; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--chunky);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.85em 1.3em 0.6em; /* Luckiest Guy sits high — pad bottom less */
  border: var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  text-align: center;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn-a { background: var(--orange); color: #fff; }
.btn-b { background: var(--paper); color: var(--ink); }
.btn-support { background: var(--yellow); color: var(--ink); }

/* short button labels swap in on small phones */
.btn .label-short { display: none; }
@media (max-width: 520px) {
  .btn .label-full { display: none; }
  .btn .label-short { display: inline; }
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  position: relative;
}

.brand {
  font-family: var(--chunky);
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand em { font-style: normal; color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
}
.nav-links a:not(.btn) {
  font-family: var(--chunky);
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:not(.btn):hover {
  color: #fff;
  background: var(--orange);
  outline: 5px solid var(--orange);
}
.nav-links .btn { padding: 0.55em 0.9em 0.35em; box-shadow: 3px 3px 0 var(--ink); }

.nav-toggle {
  display: none;
  font-family: var(--chunky);
  font-size: 0.95rem;
  background: var(--ink);
  color: var(--paper);
  border: var(--border);
  padding: 0.55em 0.9em 0.35em;
  cursor: pointer;
}

/* ---------- hero / console ---------- */
.hero { border-bottom: var(--border); overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  margin-bottom: 1.4rem;
  color: #fff;
  -webkit-text-stroke: 2.5px var(--ink);
  text-shadow: 5px 5px 0 var(--orange);
}
.hero h1 .hl {
  color: var(--yellow);
}
.hero .lead { max-width: 32rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1.1rem; flex-wrap: wrap; }

/* the Game Boy — "Play It Loud" orange edition */
.console {
  background: var(--orange);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 2rem;
  max-width: 400px;
  justify-self: center;
  width: 100%;
  position: relative;
}

.console-screen-bezel {
  background: var(--ink);
  border: var(--border);
  padding: 1.6rem 1.4rem 1.4rem;
  position: relative;
}
.bezel-label {
  position: absolute;
  top: 0.4rem;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--pixel);
  font-size: 0.38rem;
  color: var(--paper);
  opacity: 0.7;
  letter-spacing: 0.08em;
}
.power-led {
  position: absolute;
  left: 0.35rem;
  top: 45%;
  font-family: var(--pixel);
  font-size: 0.34rem;
  color: var(--paper);
  opacity: 0.9;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.power-led span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 6px var(--yellow);
  animation: blink-led 3s steps(1) infinite;
}
@keyframes blink-led { 0%, 92% { opacity: 1; } 96% { opacity: 0.35; } }

.console-screen {
  background: var(--screen);
  border: var(--border);
  min-height: 200px;
  padding: 1.1rem;
  position: relative;
  /* scanlines */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(27, 31, 61, 0.07) 3px 4px
  );
}
.screen-text {
  font-family: var(--pixel);
  font-size: 0.68rem;
  line-height: 2;
  color: var(--ink);
  white-space: pre-line;
  min-height: 9em;
}
.screen-cursor {
  position: absolute;
  right: 0.9rem;
  bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink);
  animation: bounce-cursor 0.7s steps(2) infinite;
}
@keyframes bounce-cursor { 50% { transform: translateY(3px); } }

.console-brand {
  font-family: var(--chunky);
  font-size: 0.95rem;
  margin: 1.1rem 0 1.2rem;
  color: #fff;
  -webkit-text-stroke: 1px var(--ink);
  letter-spacing: 0.06em;
}
.console-brand span { font-size: 0.5em; vertical-align: super; }

.console-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dpad { position: relative; width: 84px; height: 84px; }
.dpad-v, .dpad-h {
  position: absolute;
  background: var(--ink);
  border: 2px solid var(--ink);
}
.dpad-v { width: 28px; height: 84px; left: 28px; top: 0; }
.dpad-h { width: 84px; height: 28px; left: 0; top: 28px; }

.ab { display: flex; gap: 1rem; transform: rotate(-12deg); }
.ab-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--magenta);
  border: var(--border);
  color: #fff;
  font-family: var(--pixel);
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
}
.ab-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.console-startselect {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  margin-top: 1.6rem;
}
.console-startselect span {
  font-family: var(--pixel);
  font-size: 0.42rem;
  color: var(--ink);
  padding-top: 0.9rem;
  position: relative;
}
.console-startselect span::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(-25deg);
  width: 34px;
  height: 10px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

/* ---------- ticker ---------- */
.ticker {
  border-top: var(--border);
  background: var(--ink);
  color: var(--yellow);
  overflow: hidden;
  padding: 0.7rem 0;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  font-family: var(--pixel);
  font-size: 0.62rem;
  animation: ticker 28s linear infinite;
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- stats (HP bars) ---------- */
.stats-section { padding: 3rem 0; border-bottom: var(--border); background: var(--paper); }

.stat-rows {
  border: var(--border);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
}
.stat-row {
  display: grid;
  grid-template-columns: 130px 1fr 70px;
  align-items: center;
  gap: 1rem;
}
.stat-name, .stat-val { font-family: var(--pixel); font-size: 0.62rem; }
.stat-val { text-align: right; }
.stat-bar {
  height: 16px;
  border: var(--border);
  background: var(--paper);
  display: block;
  position: relative;
}
.stat-bar span {
  position: absolute;
  inset: 2px auto 2px 2px;
  width: var(--fill, 50%);
  background: repeating-linear-gradient(
    90deg,
    var(--orange) 0 8px,
    var(--orange-dark) 8px 10px
  );
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* JS arms the animation (bars start empty), then .stats-live raises them.
   Without JS neither class is added and bars just show full. */
.stats-armed .stat-bar span { width: 0; }
.stats-armed.stats-live .stat-bar span { width: var(--fill, 50%); }
.stat-row:nth-child(2) .stat-bar span { transition-delay: 0.1s; }
.stat-row:nth-child(3) .stat-bar span { transition-delay: 0.2s; }
.stat-row:nth-child(4) .stat-bar span { transition-delay: 0.3s; }
.stat-row:nth-child(5) .stat-bar span { transition-delay: 0.4s; }
.stat-row:nth-child(6) .stat-bar span { transition-delay: 0.5s; }
.stat-row:nth-child(7) .stat-bar span { transition-delay: 0.6s; }
.stat-val.pulse { animation: blink-q 0.5s steps(1) infinite; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.6rem;
  margin-bottom: 1.6rem;
}
.about-box {
  background: #fff;
  border: var(--border);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--ink), var(--shadow-sm);
  padding: 1.8rem;
}
.about-box p { font-size: 0.95rem; margin-bottom: 1rem; }
.about-box p:last-child { margin-bottom: 0; }
.about-box strong { background: var(--yellow); padding: 0 0.25em; font-weight: 700; }
.checklist h3 { font-size: 1.35rem; color: var(--orange-dark); margin-bottom: 1rem; }
.checklist ul { list-style: none; }
.checklist li {
  font-size: 0.85rem;
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.8rem;
}
.checklist li:last-child { margin-bottom: 0; }
.checklist li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}
.mission-box {
  background: var(--ink);
  padding: 2rem 1.8rem;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  justify-items: center;
  gap: 1.2rem;
}
.mission-box p {
  color: var(--yellow);
  font-family: var(--pixel);
  font-size: 0.62rem;
  line-height: 2.2;
  text-align: center;
  max-width: 62rem;
}
.mission-label {
  font-family: var(--chunky);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
  background: var(--orange);
  color: #fff;
  border: var(--border);
  padding: 0.65rem 1.2rem 0.4rem;
  box-shadow: 4px 4px 0 var(--yellow);
}

/* ---------- values ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
}
@media (max-width: 980px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .value-grid { grid-template-columns: 1fr; }
}
.value {
  background: #fff;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.value-head {
  font-family: var(--chunky);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  padding: 0.65rem 0.8rem 0.4rem;
  border: var(--border);
  margin-bottom: 1rem;
  color: #fff;
}
.value-1 .value-head { background: var(--orange); }
.value-2 .value-head { background: var(--mystic); }
.value-3 .value-head { background: var(--valor); }
.value-4 .value-head { background: var(--magenta); }
.value p { font-size: 0.85rem; }

/* ---------- partners ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2.4rem;
}
.partner-card {
  background: var(--paper);
  border: var(--border);
  box-shadow: 8px 8px 0 var(--orange);
  padding: 1.8rem;
  color: var(--ink);
}
.partner-card h3 { font-size: 1.35rem; color: var(--orange-dark); margin-bottom: 0.9rem; }
.partner-card p { font-size: 0.9rem; margin-bottom: 1.1rem; }
.partner-card blockquote {
  border: 2px solid var(--ink);
  border-left: 8px solid var(--yellow);
  background: #fff;
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  font-style: italic;
}
/* partner perks — featured local businesses */
.perks { margin-bottom: 3rem; }
.perks-heading {
  font-family: var(--chunky);
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 3px 3px 0 var(--orange);
  margin-bottom: 0.5rem;
}
.perks-sub {
  font-family: var(--pixel);
  font-size: 0.55rem;
  line-height: 2;
  color: var(--yellow);
  margin-bottom: 1.8rem;
}
.perk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.perk-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--paper);
  border: var(--border);
  box-shadow: 5px 5px 0 var(--orange);
  padding: 0.9rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.perk-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--yellow);
}
.perk-logo {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border: var(--border);
  flex-shrink: 0;
}
.perk-body { display: grid; gap: 0.45rem; justify-items: start; min-width: 0; }
.perk-name { font-family: var(--chunky); font-size: 1.02rem; letter-spacing: 0.03em; }
.perk-tag {
  font-family: var(--pixel);
  font-size: 0.48rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 0.4em 0.7em;
}
.perk-ig {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange-dark);
  overflow-wrap: anywhere;
}
.perks-note {
  font-family: var(--pixel);
  font-size: 0.48rem;
  line-height: 2.2;
  color: var(--paper);
  opacity: 0.75;
  margin-top: 1.6rem;
  text-align: center;
}
@media (max-width: 980px) {
  .perk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .perk-grid { grid-template-columns: 1fr; }
}

.partner-cta {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.2rem;
}
.partner-cta p {
  font-family: var(--pixel);
  font-size: 0.6rem;
  line-height: 2;
  color: var(--paper);
}
.partner-dm a {
  color: var(--yellow);
  text-decoration: none;
}
.partner-dm a:hover { background: var(--yellow); color: var(--ink); }

/* ---------- countdown ---------- */
.countdown-card {
  background: var(--orange);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  margin-bottom: 2.4rem;
}
.countdown-screen {
  background: var(--screen);
  border: var(--border);
  padding: 1.4rem;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(27, 31, 61, 0.07) 3px 4px
  );
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.countdown-label {
  font-family: var(--pixel);
  font-size: 0.7rem;
  color: var(--ink);
  line-height: 1.8;
}
.countdown { display: flex; gap: 0.8rem; }
.countdown > div {
  background: var(--ink);
  padding: 0.6rem 0.7rem;
  text-align: center;
  min-width: 66px;
}
.countdown strong {
  display: block;
  font-family: var(--pixel);
  font-size: 1.15rem;
  color: var(--yellow);
}
.countdown span {
  font-family: var(--pixel);
  font-size: 0.42rem;
  color: var(--paper);
  opacity: 0.8;
}
.countdown-where {
  font-family: var(--pixel);
  font-size: 0.55rem;
  color: var(--ink);
  line-height: 1.9;
  max-width: 26ch;
}

/* ---------- events ---------- */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}

/* classic Pokémon dialog box: double border, hard corners */
.event-card {
  background: #fff;
  border: var(--border);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--ink), var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.event-date {
  font-family: var(--pixel);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 0.6rem 0.7rem;
  min-width: 64px;
  flex-shrink: 0;
}
.event-date .month { display: block; font-size: 0.5rem; color: var(--yellow); }
.event-date .day { display: block; font-size: 1.15rem; margin-top: 0.3rem; }

.event-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; color: var(--orange-dark); }
.event-meta {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
}
.event-card p:not(.event-meta) { font-size: 0.85rem; }

.event-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--pixel);
  font-size: 0.55rem;
  color: var(--orange-dark);
  text-decoration: none;
}
.event-link:hover { background: var(--yellow); color: var(--ink); }

.event-past { opacity: 0.6; }
.event-past .event-date { background: #6b6f85; }
.event-past .event-date .month { color: var(--paper); }
.event-past h3 { color: var(--ink); }

.event-error {
  font-family: var(--pixel);
  font-size: 0.6rem;
  line-height: 2;
  background: #fff;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem;
  grid-column: 1 / -1;
}

/* ---------- gallery / photo dex ---------- */
.section-dark {
  background: var(--ink);
  color: var(--paper);
  border-block: var(--border);
}
.section-dark .section-title { color: #fff; text-shadow: 4px 4px 0 var(--orange); }
.section-dark .section-title span { background: var(--yellow); color: var(--ink); }
.section-dark .section-sub { border-left-color: var(--yellow); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense; /* backfill holes left by wide cards */
  gap: 1.8rem;
}
.photo-wide { grid-column: span 2; }
.photo-hidden { display: none; }
.gallery-more { display: flex; justify-content: center; margin-top: 2.2rem; }
.gallery-more .btn { cursor: pointer; font-family: var(--chunky); }
@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

.photo-card {
  background: var(--paper);
  border: var(--border);
  box-shadow: 8px 8px 0 var(--orange);
  padding: 0.9rem;
}
.photo-card img,
.photo-card video {
  display: block;
  width: 100%;
  border: var(--border);
  background: var(--ink);
}
.photo-card:not(.photo-video) img { cursor: zoom-in; }

/* ---------- photo lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(27, 31, 61, 0.88);
}
.lightbox[hidden] { display: none; }
.lightbox-box {
  background: var(--paper);
  border: var(--border);
  box-shadow: 10px 10px 0 var(--orange);
  padding: 0.9rem;
  max-width: min(940px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.lightbox-box img {
  border: var(--border);
  background: var(--ink);
  width: 100%;
  max-height: min(72vh, 900px);
  object-fit: contain;
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.lightbox-caption {
  font-family: var(--pixel);
  font-size: 0.55rem;
  line-height: 2;
  color: var(--ink);
  margin: 0;
}
.lightbox-nav { display: flex; gap: 0.6rem; flex-shrink: 0; }
.lb-btn {
  width: 42px;
  height: 42px;
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--paper);
  color: var(--ink);
  border: var(--border);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.lb-btn:hover { background: var(--yellow); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.lb-close { background: var(--orange); color: #fff; }
@media (max-width: 520px) {
  .lightbox { padding: 0.7rem; }
  .lightbox-bar { flex-direction: column-reverse; align-items: stretch; text-align: center; }
  .lightbox-nav { justify-content: center; }
}
.photo-card img { height: 300px; object-fit: cover; }
.photo-wide img { height: 400px; }
.photo-video video { max-height: 560px; object-fit: contain; }

.photo-card figcaption {
  font-family: var(--pixel);
  font-size: 0.55rem;
  line-height: 2;
  color: var(--ink);
  padding: 0.9rem 0.2rem 0.2rem;
}
.dex-no {
  background: var(--orange);
  color: #fff;
  padding: 0.3em 0.6em;
  margin-right: 0.6em;
}

/* ---------- routes ---------- */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}
.route {
  background: #fff;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.route:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.route-sign {
  font-family: var(--pixel);
  font-size: 0.55rem;
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 0.5em 0.8em;
  margin-bottom: 1rem;
}
.route h3 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.route p { font-size: 0.85rem; margin-bottom: 1rem; }
.tag {
  font-family: var(--pixel);
  font-size: 0.5rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5em 0.8em;
  display: inline-block;
}

/* ---------- section tint ---------- */
.section-tint { background: #fbe3c8; border-block: var(--border); }

/* ---------- FAQ ---------- */
details {
  border: var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.1rem;
}
summary {
  font-family: var(--pixel);
  font-size: 0.62rem;
  line-height: 1.8;
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-size: 1.2rem; font-weight: 700; }
details[open] summary { border-bottom: var(--border); background: var(--yellow); }
details[open] summary::after { content: "–"; }
details p { padding: 1rem 1.2rem; font-size: 0.9rem; }

/* ---------- join ---------- */
.join-section {
  background: var(--orange);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(27, 31, 61, 0.06) 3px 4px
  );
  border-top: var(--border);
  position: relative;
  overflow: hidden;
}
.join-inner { display: grid; justify-items: center; position: relative; }
.join-dialog {
  background: var(--paper);
  border: var(--border);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 6px var(--ink), 10px 10px 0 var(--ink);
  padding: 1.9rem 2rem;
  max-width: 620px;
  text-align: left;
}
.join-line {
  font-family: var(--pixel);
  font-size: 0.68rem;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.join-q {
  font-family: var(--pixel);
  font-size: 0.8rem;
  color: var(--orange-dark);
  margin: 1rem 0;
  animation: blink-q 1.2s steps(1) infinite;
}
@keyframes blink-q { 50% { opacity: 0.35; } }
.join-note {
  font-family: var(--pixel);
  font-size: 0.48rem;
  line-height: 2.2;
  color: var(--ink);
  opacity: 0.65;
  margin-top: 1.2rem;
}

/* ---------- interactive downtown map ---------- */
.map-frame {
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--paper);
  padding: 0.6rem;
}
#poke-map {
  height: 520px;
  width: 100%;
  background: var(--screen);
  z-index: 0;
}
.map-fallback {
  font-family: var(--pixel);
  font-size: 0.6rem;
  padding: 2rem;
  text-align: center;
}
/* light tint keeps the map natural but nudged toward our palette;
   the contrast bump makes street labels read darker */
#poke-map .leaflet-tile-pane {
  filter: saturate(1.08) contrast(1.08) brightness(0.98);
}

/* markers */
.fgo-pin { background: none; border: 0; }
.fgo-marker {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  box-shadow: 2px 2px 0 rgba(27, 31, 61, 0.55);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: #fff;
}
/* sprite markers use a sheet cell as the icon (no badge chrome) */
.fgo-sprite {
  border: 0;
  box-shadow: none;
  background-color: transparent;
  background-repeat: no-repeat;
  filter: drop-shadow(1px 2px 1px rgba(27, 31, 61, 0.45));
}
/* image markers (e.g. the logo) fill the icon box, no badge chrome */
.fgo-img {
  border: 0;
  box-shadow: none;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(1px 2px 1px rgba(27, 31, 61, 0.4));
}
.fgo-gym { background: var(--ink); color: var(--yellow); }
.fgo-stop { background: var(--orange); color: #fff; }
/* food/café marker — cream circle badge with an emoji */
.fgo-food {
  background: var(--paper);
  color: var(--ink);
  border-radius: 50%;
  font-size: 20px;
}

/* parking-area on-map label + draw helper */
.fgo-area-label {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  color: #1b3a8f;
  font-family: var(--pixel);
  font-size: 0.5rem;
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 1px 2px #fff;
}
.fgo-area-label::before { display: none; }

.draw-panel {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1100;
  width: min(320px, 90vw);
  background: var(--paper);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 0.9rem;
}
.draw-panel-head { font-family: var(--pixel); font-size: 0.7rem; margin-bottom: 0.5rem; }
.draw-hint { font-size: 0.78rem; line-height: 1.5; margin-bottom: 0.6rem; }
.draw-out {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.72rem;
  border: 2px solid var(--ink);
  background: #fff;
  padding: 0.5rem;
  resize: vertical;
}
.draw-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.draw-actions button {
  flex: 1;
  font-family: var(--pixel);
  font-size: 0.5rem;
  padding: 0.6em 0.4em;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
}
.draw-actions button:hover { background: var(--orange-dark); }
/* draw-helper tabs + food form */
.draw-tabs { display: flex; gap: 0.4rem; margin-bottom: 0.6rem; }
.draw-tab {
  flex: 1;
  font-family: var(--pixel);
  font-size: 0.5rem;
  padding: 0.7em 0.3em;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  cursor: pointer;
}
.draw-tab.is-on { background: var(--ink); color: var(--paper); }
.draw-field { display: flex; flex-direction: column; gap: 0.25rem; font-family: var(--pixel); font-size: 0.45rem; margin-bottom: 0.55rem; }
.draw-field input, .draw-field select {
  font-family: var(--mono);
  font-size: 0.82rem;
  border: 2px solid var(--ink);
  padding: 0.4rem;
  background: #fff;
}
.draw-check { display: flex; align-items: center; gap: 0.45rem; font-family: var(--pixel); font-size: 0.45rem; line-height: 1.5; margin-bottom: 0.55rem; }
.fgo-meetup { background: var(--yellow); color: var(--ink); }

/* popups restyled to match the dialog boxes */
.leaflet-popup-content-wrapper {
  background: var(--paper);
  border: var(--border);
  border-radius: 0;
  box-shadow: 5px 5px 0 var(--ink);
}
.leaflet-popup-content { margin: 0.8rem 1rem; font-family: var(--mono); min-width: 160px; }
.leaflet-popup-tip { background: var(--ink); border: 0; box-shadow: none; }
.leaflet-popup-close-button { color: var(--ink) !important; font-size: 1.2rem !important; }
.fgo-pop-title {
  font-family: var(--pixel);
  font-size: 0.6rem;
  line-height: 1.7;
  color: var(--orange-dark);
  margin-bottom: 0.35rem;
}
.fgo-pop-note { font-size: 0.82rem; color: var(--ink); }
.fgo-pop-dir {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--pixel);
  font-size: 0.5rem;
  line-height: 1.6;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  padding: 0.7em 0.9em;
  text-decoration: none;
}
.fgo-pop-dir:hover { background: var(--orange-dark); transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }

/* fullscreen map overlay (CSS-based so it works on mobile) */
.map-frame.map-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.map-frame.map-fullscreen #poke-map { height: 100%; }
body.map-fs-lock { overflow: hidden; }
.fgo-fs-ctrl a {
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
}

/* leaflet controls, lightly branded */
.leaflet-bar a {
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.leaflet-bar a:hover { background: var(--yellow); }
.leaflet-control-attribution { font-family: var(--mono); font-size: 10px; }

/* in-map POI toggle control (icons only; visible in fullscreen too) */
.fgo-toggle-btn {
  width: 34px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.tg-ico {
  width: 24px;
  height: 24px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.tg-line { width: 22px; border-top: 4px dashed var(--orange); }
.tg-swatch {
  width: 22px;
  height: 22px;
  border: 1px solid var(--ink);
  background: conic-gradient(#e4342b 0 25%, #b6509b 0 50%, #2e9e5b 0 75%, #0e7c86 0 100%);
}
.fgo-toggle-btn.layer-off { opacity: 0.4; }
.fgo-toggle-btn.layer-off .tg-ico,
.fgo-toggle-btn.layer-off .tg-swatch,
.fgo-toggle-btn.layer-off .tg-line { filter: grayscale(1); }

/* category chip inside building-area popups */
.fgo-pop-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 0.5rem; }
.cat-chip {
  display: inline-block;
  color: #fff;
  font-family: var(--pixel);
  font-size: 0.42rem;
  padding: 0.35em 0.6em;
  border: 2px solid var(--ink);
}

/* building hover: spinning ring of icons around the cursor */
.hover-ring {
  position: fixed;
  z-index: 10000;
  width: 0;
  height: 0;
  pointer-events: none;
}
.hover-ring[hidden] { display: none; }
.hover-ring-inner {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  animation: ring-spin var(--ring-speed, 6s) linear infinite;
}
.ring-ico {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--ring-size, 32px);
  height: var(--ring-size, 32px);
  margin: calc(var(--ring-size, 32px) / -2);
  transform: rotate(var(--a)) translateY(calc(-1 * var(--ring-radius, 46px))) rotate(calc(-1 * var(--a)));
  display: grid;
  place-items: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 1px 2px 0 rgba(27, 31, 61, 0.5);
}
.ring-ico img { width: 60%; height: 60%; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hover-ring-inner { animation: none; } }

/* cursor "radar" rings + gym pulse */
.sonar-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 500;
  display: none;
}
.sonar-ring {
  position: absolute;
  border: 2px solid var(--sonar-color, #ffd42e);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px var(--sonar-color, #ffd42e), inset 0 0 6px var(--sonar-color, #ffd42e);
  will-change: width, height, opacity;
}
.gym-pulse { animation: gym-pulse 0.6s ease; }
@keyframes gym-pulse {
  0% { transform: scale(1); filter: none; }
  40% { transform: scale(1.25); filter: drop-shadow(0 0 6px var(--yellow, #ffd42e)); }
  100% { transform: scale(1); filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sonar-layer { display: none !important; }
  .gym-pulse { animation: none; }
}

/* scavenger zone — a 100m ring (no fill) that pings like radar */
.scav { position: relative; width: 0; height: 0; }
.scav-static, .scav-ping {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--scav-size, 100px);
  height: var(--scav-size, 100px);
  margin: calc(var(--scav-size, 100px) / -2);
  border: 2px solid var(--scav-color, #e4342b);
  border-radius: 50%;
  box-sizing: border-box;
}
.scav-static { opacity: var(--scav-op, 0.5); }
.scav-ping { opacity: 0; animation: scav-ping var(--scav-speed, 3s) ease-out infinite; }
@keyframes scav-ping {
  0% { transform: scale(0.15); opacity: var(--scav-op, 0.5); }
  70% { opacity: calc(var(--scav-op, 0.5) * 0.35); }
  100% { transform: scale(1); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .scav-ping { animation: none; } }

/* ring swatches for the legend + in-map toggle */
.legend-scav {
  display: inline-block;
  width: 44px;
  height: 44px;
  border: 3px solid var(--scav-color, #e4342b);
  border-radius: 50%;
}
.tg-ring {
  width: 22px;
  height: 22px;
  border: 2px solid var(--scav-color, #e4342b);
  border-radius: 50%;
}
.fgo-toggle-btn.layer-off .tg-ring { filter: grayscale(1); }

/* icon checkboxes in the draw tool — tap an icon to include it */
.draw-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.draw-ico {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: #fff;
  cursor: pointer;
}
.draw-ico input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.draw-ico img { width: 22px; height: 22px; opacity: 0.4; }
.draw-ico:has(input:checked) { background: var(--yellow); }
.draw-ico:has(input:checked) img { opacity: 1; }

/* legend */
/* legend = tap-to-toggle layer controls */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 1rem;
  margin-top: 1.4rem;
  font-family: var(--pixel);
  font-size: 0.55rem;
}
.legend-hint {
  width: 100%;
  text-align: center;
  font-family: var(--pixel);
  font-size: 0.5rem;
  color: var(--muted, #6b6f85);
  margin-top: 1.2rem;
}
.legend-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  transition: opacity 0.12s ease;
}
.legend-item:hover { background: var(--paper); }
.legend-item.layer-off { opacity: 0.3; }
.legend-item.layer-off .legend-ico,
.legend-item.layer-off .legend-line { filter: grayscale(1); }
.legend-label { line-height: 1.4; }
.legend-ico {
  display: inline-block;
  width: 48px;
  height: 48px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.legend-gym { background-image: url("assets/super-mega-raid-gym.png"); }
.legend-stop { background-image: url("assets/power-spot.png"); }
.legend-meetup { background-image: url("assets/meetup-spot.png"); }
.legend-food { background-image: url("assets/food.png"); }
.legend-park { background-image: url("assets/parking.png"); }
/* multi-category building-areas swatch (eat/drink/hangout/shop) */
.legend-places {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 3px solid var(--ink);
  background: conic-gradient(#e4342b 0 25%, #b6509b 0 50%, #2e9e5b 0 75%, #0e7c86 0 100%);
}
.legend-line {
  width: 48px;
  height: 48px;
  display: inline-block;
  position: relative;
}
.legend-line::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  border-top: 5px dashed var(--orange);
}

/* food & cafés directory popup */
.food-note {
  font-family: var(--pixel);
  font-size: 0.42rem;
  line-height: 1.6;
  color: var(--orange-dark);
  margin-bottom: 0.6rem;
}
.food-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow-y: auto; }
.food-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.2rem;
  border-top: 2px solid var(--line, #e6e2d9);
}
.food-row:first-child { border-top: 0; }
.food-row.is-featured { background: rgba(255, 212, 46, 0.22); }
.food-type { width: 22px; height: 22px; flex-shrink: 0; }
.food-info { display: flex; flex-direction: column; }
.food-name { font-weight: 700; font-size: 0.9rem; }
.food-star { color: var(--orange-dark); }
.food-special { font-size: 0.75rem; color: var(--muted, #6b6f85); }

/* featured food pin gets a ★ badge; popup title shows the type icon */
.food-pin-wrap { position: relative; width: 100%; height: 100%; }
.food-pin-star {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 17px;
  line-height: 1;
  color: #ffd42e;
  text-shadow: 0 0 2px #1b1f3d, 0 0 2px #1b1f3d, 0 1px 2px rgba(0, 0, 0, 0.5);
}
/* featured food popup — lowkey yellow star peeking from the top-right corner */
.leaflet-popup.popup-featured .leaflet-popup-content-wrapper {
  position: relative;
  overflow: hidden;
}
.leaflet-popup.popup-featured .leaflet-popup-content-wrapper::after {
  content: "";
  position: absolute;
  top: -13%;
  right: -13%;
  width: 74px;
  height: 74px;
  background: url("assets/star.svg") top right / contain no-repeat;
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}
.leaflet-popup.popup-featured .leaflet-popup-content { position: relative; z-index: 1; }

/* two "play spot" cards sit above the map */
.map-spots { margin-bottom: 2rem; }

/* draw-mode crosshair for precise clicking */
.leaflet-container.draw-active { cursor: crosshair; }

@media (max-width: 600px) {
  #poke-map { height: 400px; }
  /* cleaner legend on phones: icons only, tidy row */
  .map-legend { gap: 0.5rem; }
  .legend-item { padding: 0.3rem; }
  .legend-label { display: none; }
  .legend-ico, .legend-line { width: 44px; height: 44px; }
}

/* ---------- item shop / poké mart ---------- */
.shop-section { border-top: var(--border); }
.shop-inner { display: grid; justify-items: center; }
.shop-dialog {
  position: relative;
  background: #fff;
  border: var(--border);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px var(--ink), var(--shadow);
  padding: 2.4rem 2rem 2rem;
  max-width: 640px;
  width: 100%;
}
.shop-sign {
  position: absolute;
  top: -1.1rem;
  left: 1.6rem;
  font-family: var(--chunky);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  background: var(--yellow);
  color: var(--ink);
  border: var(--border);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 0.45rem 0.9rem 0.2rem;
}
.shop-title {
  font-family: var(--pixel);
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 1rem;
}
.shop-text {
  font-family: var(--pixel);
  font-size: 0.62rem;
  line-height: 2.2;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.shop-menu { display: flex; justify-content: flex-end; }
.shop-option {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: var(--border);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.9rem 1.2rem;
}
.shop-option:hover {
  background: var(--yellow);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.blink { animation: blink-q 1.2s steps(1) infinite; display: inline-block; }

/* inline text links to the mart */
.join-note a, details p a {
  color: var(--orange-dark);
  font-weight: 700;
}
.join-note a:hover, details p a:hover { background: var(--yellow); color: var(--ink); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 2.4rem 0;
  text-align: center;
}
.site-footer p:first-child { font-family: var(--pixel); font-size: 0.6rem; line-height: 2; }

.socials {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1.5rem;
}
.social-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: var(--border);
  box-shadow: 4px 4px 0 var(--orange);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}
.social-btn svg { width: 22px; height: 22px; fill: var(--ink); }
.social-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--orange);
  background: var(--yellow);
}
.fine-print {
  margin-top: 1rem;
  font-size: 0.72rem;
  opacity: 0.6;
  max-width: 52rem;
  margin-inline: auto;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  /* hero centers once the console drops below the copy */
  .hero-grid { grid-template-columns: 1fr; padding-top: 3rem; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .console { max-width: 360px; }
  .console-sticker { width: 96px; height: 96px; top: -24px; right: -16px; }
  .about-grid { grid-template-columns: 1fr; }

  /* countdown centers when it stacks */
  .countdown-screen { justify-content: center; text-align: center; }
  .countdown-label { max-width: none; width: 100%; }
  .countdown { justify-content: center; }
  .countdown-where { margin: 0 auto; max-width: none; }
}

@media (max-width: 1080px) {
  .nav-links { gap: 1rem; }
  .brand { font-size: 1.15rem; }
}

/* collapse to hamburger before the 7-item nav can overflow */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -4.5%;
    right: -4.5%;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    background: var(--paper);
    border-bottom: var(--border);
    padding: 1.4rem;
    gap: 1.2rem;
  }
  .nav-links.open { display: flex; }
}

@media (max-width: 820px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .photo-wide { grid-column: span 1; }
  .photo-card img, .photo-wide img { height: 320px; }

  .stat-row { grid-template-columns: 92px 1fr 58px; }
  .countdown { flex-wrap: wrap; }
}

/* small phones: keep buttons and countdown digits on one row */
@media (max-width: 520px) {
  .hero-actions { gap: 0.7rem; flex-wrap: nowrap; }
  .btn { font-size: 0.9rem; padding: 0.85em 1em 0.6em; }
  .countdown { gap: 0.55rem; flex-wrap: nowrap; }
  .countdown > div { min-width: 54px; padding: 0.5rem 0.4rem; }
  .countdown strong { font-size: 0.95rem; }
}
