/* ============================================================
   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 */
  --ink-rgb: 27, 31, 61;
  --ink-dark: #1b1f3d;     /* always dark */
  --sec-dark-bg: var(--ink);
  --sec-dark-text: var(--paper);
  --paper-light: #fdf4e6; 
  --paper: #fdf4e6;        /* warm cream */
  --screen: #f6e9cf;
  --tint-bg: #fbe3c8;       /* console screen */
  --yellow: #ffd42e;       /* pikachu-tail bolt */
  --magenta: #b6509b;      /* pokeball button */

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

  --border-color: var(--ink);
  --border: 3px solid var(--border-color);
  --shadow: 8px 8px 0 var(--border-color);
  --shadow-sm: 5px 5px 0 var(--border-color);
  
  --grid-color: rgba(var(--ink-rgb), 0.05);
  --card-bg: #fff;
  --nav-active-color: var(--orange-dark);
  --nav-active-border: var(--yellow);
  --text-muted: #5c6478;

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

[data-theme="shiny"] {
  --orange: #ff8a00;
  --orange-dark: #cc6e00;
  --ink: #f2f4fb;
  --ink-rgb: 242, 244, 251;
  --ink-dark: #0f1321;
  --sec-dark-bg: #161b2e;
  --sec-dark-text: var(--paper-light);
  --paper-light: #fdf4e6; 
  --paper: #0f1321;
  --screen: #161b2e;
  --tint-bg: #161b2e;
  --yellow: #ffd240;
  --magenta: #8455ff;
  
  --border-color: #313b4d;
  
  --grid-color: rgba(242, 244, 251, 0.05);
  --card-bg: #1e2430;
  --nav-active-color: var(--orange);
  --nav-active-border: var(--yellow);
  --text-muted: #7bb1b0;
}
[data-theme="shiny"] .section-title {
  -webkit-text-stroke: 1.5px var(--ink-dark)  ;
}
[data-theme="shiny"] .page-hero h1 {
  -webkit-text-stroke: 2px var(--ink-dark)  ;
}
.nav-links a {
    -webkit-text-stroke: 1px var(--ink-dark);
}

* { 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(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 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;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--yellow);
}

.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(var(--ink-rgb), 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(--border-color); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--border-color); }
.btn-a { background: var(--orange); color: #fff; }
.btn-b { background: var(--paper); color: var(--ink); }
.btn-support { background: var(--yellow); color: #fff; }

/* 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;
  gap: 1.1rem;
  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: flex-end;
  gap: 0;
}
.brand em { font-style: normal; color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
}
.nav-links a:not(.btn) {
  font-family: var(--chunky);
  font-size: 1.08rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:not(.btn):hover {
  color: var(--ink-dark);
  background: var(--orange);
  outline: 5px solid var(--orange);
}
.nav-links .btn { padding: 0.55em 0.9em 0.35em; box-shadow: var(--shadow-sm); }

.theme-toggle-btn {
  background: transparent;
  color: var(--orange);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  transition: transform 0.2s;
}
.theme-toggle-btn:hover {
  transform: scale(1.2);
}

.nav-toggle {
  display: none;
  font-family: var(--chunky);
  font-size: 0.95rem;
  background: var(--sec-dark-bg);
  color: var(--sec-dark-text);
  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-dark);
  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-dark);
  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-light);
  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-light);
  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(--gb-screen-bg, #f6e9cf);
  border: var(--border);
  min-height: 200px;
  padding: 1.1rem;
  position: relative;
  /* scanlines */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    var(--gb-screen-scanline, rgba(27, 31, 61, 0.07)) 3px 4px
  );
}
.screen-text {
  font-family: var(--pixel);
  font-size: 0.68rem;
  line-height: 2;
  color: var(--gb-screen-text, #1b1f3d);
  white-space: pre-line;
  min-height: 9em;
}
.screen-cursor {
  position: absolute;
  right: 0.9rem;
  bottom: 0.5rem;
  font-size: 0.8rem;
  color: var(--gb-screen-text, #1b1f3d);
  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-dark);
  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(--sec-dark-bg);
  border: 0px solid var(--border-color);
}
.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(--border-color);
}
.ab-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--border-color); }

.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(--border-color);
  border-radius: 999px;
}

/* ---------- ticker ---------- */
.ticker {
  border-top: var(--border);
  background: var(--sec-dark-bg);
  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: var(--card-bg);
  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: var(--card-bg);
  border: var(--border);
  box-shadow: inset 0 0 0 3px var(--card-bg), inset 0 0 0 6px var(--border-color), 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(--sec-dark-bg);
  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: var(--card-bg);
  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(--border-color);
  border-left: 8px solid var(--yellow);
  background: var(--card-bg);
  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(--border-color);
  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(--ink);
  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(--sec-dark-text);
}
.partner-dm a {
  color: var(--yellow);
  text-decoration: none;
}
.partner-dm a:hover { background: var(--yellow); color: var(--ink); }
/* the CTA copy is cream/yellow for a dark section; flip it dark on light sections */
.section-tint .partner-cta p,
.section:not(.section-dark):not(.sec-dark) .partner-cta p { color: var(--ink); }
.section-tint .partner-dm a,
.section:not(.section-dark):not(.sec-dark) .partner-dm a { color: var(--orange-dark); }

/* ---------- countdown ---------- */
.countdown-card {
  background: var(--orange);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  margin-bottom: 2.4rem;
}
.countdown-screen {
  background: var(--gb-screen-bg, #f6e9cf);
  border: var(--border);
  padding: 1.4rem;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    var(--gb-screen-scanline, 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(--gb-screen-text, #1b1f3d);
  line-height: 1.8;
}
.countdown { display: flex; gap: 0.8rem; }
.countdown > div {
  background: var(--sec-dark-bg);
  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(--sec-dark-text);
  opacity: 0.8;
}
.countdown-where {
  font-family: var(--pixel);
  font-size: 0.55rem;
  color: var(--gb-screen-text, #1b1f3d);
  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 {
  position: relative;
  background: var(--card-bg);
  border: var(--border);
  box-shadow: inset 0 0 0 3px var(--card-bg), inset 0 0 0 6px var(--border-color), var(--shadow-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

/* Finished events get a footer strip with the real check-in count. */
.event-card-top { display: flex; gap: 1.1rem; align-items: flex-start; }
.event-checkin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;          /* pins the footer to the bottom so rows line up */
  padding-top: 0.9rem;
  border-top: 3px solid var(--border-color);
}
.event-card-top { margin-bottom: 1.2rem; }
.event-checkin-label {
  font-family: var(--pixel);
  font-size: 0.5rem;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.event-checkin-num {
  font-family: var(--chunky);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--border-color);
  box-shadow: 3px 3px 0 var(--border-color);
  padding: 0.22em 0.55em 0.15em;
}

.event-date {
  font-family: var(--pixel);
  background: var(--sec-dark-bg);
  color: var(--sec-dark-text);
  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(--border-color);
  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(--sec-dark-text); }
.event-past h3 { color: var(--ink); }

/* On the dedicated dark "PAST EVENTS" section the whole card is already
   labelled DONE ✓, so keep it solid and legible instead of faded-out.
   The white card also has to override the section's cream text colour. */
.section-dark .event-past,
.sec-dark .event-past { opacity: 1; }
.section-dark .event-card,
.sec-dark .event-card,
.section-dark .event-card .event-meta,
.sec-dark .event-card .event-meta,
.section-dark .event-card p:not(.event-meta),
.sec-dark .event-card p:not(.event-meta) { color: var(--ink); }

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

/* ---------- gallery / photo dex ---------- */
.section-dark,
.sec-dark {
  background: var(--sec-dark-bg);
  color: var(--sec-dark-text);
  border-block: var(--border);
}
.section-dark .section-title ,
.sec-dark .section-title { color: #fff; text-shadow: 4px 4px 0 var(--orange); }

.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(--sec-dark-bg);
}
.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(var(--ink-rgb), 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(--sec-dark-bg);
  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;
  flex-wrap: wrap;
  gap: 1.1rem; 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(--border-color);
  cursor: pointer;
}
.lb-btn:hover { background: var(--yellow); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--border-color); }
.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 { Xjustify-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: var(--card-bg);
  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(--border-color); }
.route-sign {
  font-family: var(--pixel);
  font-size: 0.55rem;
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--border-color);
  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(--sec-dark-bg);
  color: var(--sec-dark-text);
  padding: 0.5em 0.8em;
  display: inline-block;
}

/* ---------- section tint ---------- */
.section-tint,
.sec-light-2 { background: var(--tint-bg); border-block: var(--border); }

/* ---------- FAQ ---------- */
details {
  border: var(--border);
  background: var(--card-bg);
  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(var(--ink-rgb), 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(--border-color), 10px 10px 0 var(--border-color);
  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(--border-color);
  box-shadow: 2px 2px 0 rgba(var(--ink-rgb), 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(var(--ink-rgb), 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(var(--ink-rgb), 0.4));
}
.fgo-gym { background: var(--sec-dark-bg); 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(--border-color);
  background: var(--card-bg);
  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(--border-color);
  box-shadow: 2px 2px 0 var(--border-color);
  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(--border-color);
  cursor: pointer;
}
.draw-tab.is-on { background: var(--sec-dark-bg); color: var(--sec-dark-text); }
.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(--border-color);
  padding: 0.4rem;
  background: var(--card-bg);
}
.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(--border-color);
}
.leaflet-popup-content { margin: 0.8rem 1rem; font-family: var(--mono); min-width: 160px; }
.leaflet-popup-tip { background: var(--sec-dark-bg); 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(--chunky);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: var(--orange);
  color: var(--paper) !important;
  border: 2px solid var(--border-color);
  box-shadow: 2px 2px 0 var(--border-color);
  padding: 0.6em 0.9em 0.4em;
  text-decoration: none;
}
.fgo-pop-dir:hover { background: var(--orange-dark); transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--border-color); color: var(--paper) !important; }

/* 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; }
/* Hide the sticky nav while the map is maximised. It sits in a higher
   stacking context than the map (main's fade animation creates one), so it
   would otherwise paint over the top-left zoom + layer controls. */
body.map-fs-lock .site-header { display: none; }
.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(--border-color);
}
.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(--border-color);
  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(--border-color);
}

/* 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: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  box-shadow: 1px 2px 0 rgba(var(--ink-rgb), 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;
}
.poi-pulse { animation: poi-pulse 0.6s ease; }
@keyframes poi-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; }
  .poi-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(--border-color);
  background: var(--card-bg);
  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-spot { background-image: url("/assets/power-spot.png"); }
.legend-meetup { background-image: url("/assets/meetup-spot.png"); }
.legend-food { background-image: url("/assets/star.svg"); }
.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(--border-color);
  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 var(--ink-dark), 0 0 2px var(--ink-dark), 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: var(--card-bg);
  border: var(--border);
  box-shadow: inset 0 0 0 3px var(--card-bg), inset 0 0 0 6px var(--border-color), 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(--border-color);
  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(--border-color);
  padding: 0.9rem 1.2rem;
}
.shop-option:hover {
  background: var(--yellow);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--border-color);
}
.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-dark);
  color: var(--paper-light);
  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: 1250px) {
  .nav-links { gap: 1rem; }
  .nav-links a:not(.btn) { font-size: 1rem; }
  /*.brand { font-size: 1.15rem; } */
}

/* collapse to hamburger before the 7-page nav can overflow */
@media (max-width: 1080px) {
  .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; }
}

/* ============================================================
   MULTI-PAGE SITE
   Added when the single scrolling page was split into
   HOME / ABOUT / EVENTS / COMMUNITY / SUPPORT / PARTNERS / FAQ.
   ============================================================ */

/* ---------- smooth page-to-page feel ---------- */
@view-transition { navigation: auto; }   /* native cross-fade where supported */

/* Fade only — do NOT animate transform here. A transform on <main>
   (even an identity one) makes it the containing block for
   position:fixed children, which traps the fullscreen map inside it. */
main { animation: page-in 0.3s ease both; }
@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { main { animation: none; } }

/* story block when it stands alone (no second column beside it) */
.about-solo { max-width: 820px; }

/* ---------- "you are here" marker in the nav ---------- */
.nav-links a.is-current:not(.btn) {
  color: var(--nav-active-color);
  box-shadow: inset 0 -6px 0 var(--nav-active-border);
}
.nav-links a.is-current:not(.btn):hover { color: var(--ink-dark); }

/* ---------- inner-page hero band ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: var(--border);
  padding: 3.4rem 0 3rem;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-badge {
  position: absolute;
  right: -70px;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.page-eyebrow {
  font-family: var(--pixel);
  font-size: 0.58rem;
  line-height: 1.9;
  color: var(--orange-dark);
  margin-bottom: 0.9rem;
}
.page-hero h1 {
  font-family: var(--chunky);
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  color: var(--ink);
  text-shadow: 5px 5px 0 var(--yellow);
  margin-bottom: 0.9rem;
}
.page-hero h1 .hl { color: var(--orange); }
.page-hero .lead { max-width: 62ch; }

/* ---------- HOME: teaser cards linking to the full pages ---------- */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);   /* one row of five on desktop */
  gap: 1.3rem;
}
.teaser-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.2rem;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.teaser-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow); }
.teaser-no {
  align-self: flex-start;
  font-family: var(--pixel);
  font-size: 0.5rem;
  background: var(--sec-dark-bg);
  color: var(--sec-dark-text);
  padding: 0.55em 0.7em;
  margin-bottom: 1rem;
}
.teaser-card h3 { font-family: var(--chunky); font-size: 1.3rem; line-height: 1.1; margin-bottom: 0.6rem; }
.teaser-card p { font-size: 0.84rem; line-height: 1.6; margin-bottom: 1.4rem; }
.teaser-card .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  padding: 0.85em 0.6em 0.6em;
}

/* 5 → 3 → 2 → 1 across */
@media (max-width: 1080px) { .teaser-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .teaser-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .teaser-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT PAGE
   Section chrome (width, padding, dividers) is now shared with
   every other page — only the story layout below is page-specific.
   ============================================================ */

/* 2. HOW IT STARTED — photo beside the text, no bordered box. */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2.6rem;
  align-items: center;
}
.story-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  background: var(--screen);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.story-photo-empty {
  font-family: var(--pixel);
  font-size: 0.55rem;
  line-height: 2;
  text-align: center;
  color: var(--ink);
  opacity: 0.45;
  padding: 1rem;
}
.story-text p { font-size: 1.02rem; line-height: 1.85; margin-bottom: 1rem; }
.story-text p:last-child { margin-bottom: 0; }
.story-text strong { background: var(--yellow); padding: 0 0.25em; font-weight: 700; color: var(--ink-dark); }

@media (max-width: 780px) {
  .story-grid { grid-template-columns: 1fr; gap: 1.6rem; }  /* photo on top */
}

/* ---------- ABOUT: ambassador cards (flat trading-card layout) ----------
   Trading-card STRUCTURE (name/HP, art window, flavor line, moves, badge)
   but rendered in the site's flat brutalist style: hard corners, solid
   colours, offset shadow. No gradients, no shine, no animation. */
.tc-grid {
  max-width: 800px;
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.8rem;
}
.tc-card {
  flex: 1 1 320px;
  max-width: 350px;
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow-sm);
}
.tc-elmer  { --tc-accent: var(--orange); --tc-accent-dark: var(--orange-dark); }
.tc-elaine { --tc-accent: var(--mystic); --tc-accent-dark: #1c3f96; }

.tc-inner {
  position: relative;
  height: 100%;
  padding: 1.1rem 1.1rem 1.2rem;
}

/* name left, HP right, on one line */
.tc-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding-bottom: 0.7rem;
  margin-bottom: 0.9rem;
  border-bottom: 3px solid var(--tc-accent);
}
.tc-name {
  font-family: var(--chunky);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink);
}
.tc-hp {
  margin-left: auto;
  font-family: var(--pixel);
  font-size: 0.5rem;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.tc-hp b { color: var(--tc-accent-dark); }

.tc-photo {
  /* full card width, 4:3 keeps it headshot-shaped.
     (No max-height — capping the height also caps the width and
     leaves a gap on the right.) */
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0 0 0.8rem;
  background: var(--screen);
  border: 3px solid var(--border-color);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.tc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-photo-empty {
  font-family: var(--pixel);
  font-size: 0.52rem;
  line-height: 2;
  text-align: center;
  color: var(--ink);
  opacity: 0.45;
  padding: 1rem;
}

.tc-flavor {
  font-family: var(--mono);
  font-style: italic;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tc-moves {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border-top: 3px solid var(--border-color);
  padding-top: 0.9rem;
}
.tc-move-name {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--chunky);
  font-size: 0.92rem;
  color: var(--ink);
}
.tc-move-no {
  flex-shrink: 0;
  font-family: var(--pixel);
  font-size: 0.4rem;
  color: #fff;
  background: var(--tc-accent);
  border: 2px solid var(--border-color);
  padding: 0.4em 0.5em;
}
.tc-move-desc { font-size: 0.8rem; line-height: 1.55; color: var(--ink); margin-top: 0.35rem; }

.tc-footer {
  position: relative;
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.tc-handle { font-family: var(--pixel); font-size: 0.5rem; color: var(--tc-accent-dark); }

.tc-badge {
  margin-left: auto;
  font-family: var(--pixel);
  font-size: 0.42rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: var(--ink-dark);
  background: var(--yellow);
  border: 2px solid var(--border-color);
  padding: 0.6em 0.7em 0.5em;
}

.tc-rarity {
  order: -1;               /* rarity mark sits at the start of the footer row */
  font-size: 0.9rem;
  line-height: 1;
  color: var(--tc-accent);
}

@media (max-width: 700px) {
  .tc-card { flex-basis: 100%; max-width: 420px; margin-inline: auto; }
}

/* ---------- EVENTS: "how it works" steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}
.step-card {
  position: relative;
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.8rem 1.4rem 1.5rem;
  text-align: center;
}
.step-no {
  position: absolute;
  top: -15px;
  left: -15px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-family: var(--pixel);
  font-size: 0.62rem;
  background: var(--orange);
  color: #fff;
  border: var(--border);
}
.step-ico { display: block; font-size: 2.4rem; line-height: 1; margin-bottom: 0.8rem; }
.step-card h3 { font-family: var(--chunky); font-size: 1.2rem; margin-bottom: 0.5rem; }
.step-card p { font-size: 0.85rem; line-height: 1.65; }

/* ---------- SUPPORT: donate / wishlist / volunteer / share ---------- */
.shop-menu { flex-wrap: wrap; gap: 0.9rem 1.4rem; }  /* room for a 2nd option */

.wish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.wish-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.05rem 1.1rem;
}
.wish-box {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: 3px solid var(--border-color);
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  line-height: 1;
}
.wish-body { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.wish-text { font-family: var(--mono); font-weight: 700; font-size: 0.9rem; line-height: 1.45; }
.wish-note { display: block; font-family: var(--pixel); font-size: 0.42rem; line-height: 1.7; color: var(--text-muted); margin-top: 0.4rem; letter-spacing: 0.03em; }
/* optional "gift this" link — appears when an Amazon/affiliate URL is added */
.wish-gift {
  align-self: flex-start;
  font-family: var(--pixel);
  font-size: 0.48rem;
  text-decoration: none;
  color: var(--sec-dark-text);
  background: var(--sec-dark-bg);
  border: 2px solid var(--border-color);
  box-shadow: 3px 3px 0 rgba(var(--ink-rgb), 0.3);
  padding: 0.7em 0.85em;
}
.wish-gift:hover { background: var(--orange); }
.center-cta { text-align: center; margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.wish-affiliate-note { text-align: center; font-family: var(--pixel); font-size: 0.45rem; line-height: 1.9; color: var(--text-muted); margin-top: 1rem; }

/* ---------- contact form (posts to a Google Sheet via Apps Script) ---------- */
.fgo-form {
  max-width: 640px;
  margin-inline: auto;
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 2rem 1.8rem;
}
.form-row { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.2rem; }
.form-row label { font-family: var(--pixel); font-size: 0.55rem; letter-spacing: 0.04em; color: var(--ink); line-height: 1.6; }
.form-row .req { color: var(--orange); }
.form-row .opt { color: var(--text-muted); }
.fgo-form input, .fgo-form select, .fgo-form textarea {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: var(--border);
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.fgo-form textarea { min-height: 130px; resize: vertical; }
.fgo-form input:focus, .fgo-form select:focus, .fgo-form textarea:focus {
  outline: 4px solid var(--orange);
  outline-offset: 0;
}
.fgo-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.4rem;
  /* Use a background chevron that changes based on theme, we use var(--ink) equivalent SVG if possible, 
     but since we can't easily use CSS variables inside url() for data URI, we just add a theme override below */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M2 5l6 6 6-6' fill='none' stroke='%231b1f3d' stroke-width='2.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
}
[data-theme="shiny"] .fgo-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'><path d='M2 5l6 6 6-6' fill='none' stroke='%23f2f4fb' stroke-width='2.5'/></svg>");
}
/* spam honeypot — hidden from humans, tempting to bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 0.4rem; }
.form-actions .btn[disabled] { opacity: 0.55; pointer-events: none; }
.form-status {
  display: none;
  font-family: var(--pixel);
  font-size: 0.6rem;
  line-height: 1.9;
  margin-top: 1.2rem;
  padding: 0.9rem 1rem;
  border: 3px solid var(--border-color);
  background: #ffe3df;
}
.form-status.show { display: block; }
/* success dialog (Poké-Mart style) shown after a submit */
.form-sent { display: none; text-align: center; }
.form-sent.show { display: block; }
.form-sent .shop-sign { position: static; display: inline-block; margin: 0 0 1.2rem; }
.form-sent p { font-family: var(--pixel); font-size: 0.7rem; line-height: 2; color: var(--ink); }

/* donate section: primary + secondary buttons under the Poké Mart dialog */
.shop-menu { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; justify-content: flex-end; align-items: center; }
.shop-option-sm {
  font-family: var(--pixel);
  font-size: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  background: var(--card-bg);
  border: 3px solid var(--border-color);
  box-shadow: 3px 3px 0 var(--border-color);
  padding: 0.85rem 1rem;
}
.shop-option-sm:hover { background: var(--yellow); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--border-color); }

.lend-box {
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 2.2rem 1.9rem;
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}
.lend-box p { font-size: 0.95rem; line-height: 1.75; margin-bottom: 1.5rem; }

.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}
.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
  text-decoration: none;
  font-family: var(--chunky);
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.2rem;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}
.share-btn:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--border-color); background: var(--yellow); }
.share-ico { font-size: 2rem; line-height: 1; }
.share-sub { font-family: var(--pixel); font-size: 0.45rem; line-height: 1.8; opacity: 0.7; }

/* ---------- COMMUNITY: big social buttons ---------- */
.social-big-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.2rem;
}
.social-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1.7rem 1rem;
  text-decoration: none;
  font-family: var(--chunky);
  font-size: 1.15rem;
  color: var(--ink);
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease, color 0.08s ease;
}
.social-big svg { width: 38px; height: 38px; fill: currentColor; }
.social-big .social-handle { font-family: var(--pixel); font-size: 0.45rem; opacity: 0.75; }
.social-big:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--border-color); color: #fff; }
.social-big.is-ig:hover { background: #d62976; }
.social-big.is-tt:hover { background: #010101; }
.social-big.is-fb:hover { background: #1877f2; }
.social-big.is-dc:hover { background: #5865f2; }

/* dark-section variants of the new cards */
.section-dark .teaser-card,
.sec-dark .teaser-card,
.section-dark .step-card,
.sec-dark .step-card,
.section-dark .wish-card,
.sec-dark .wish-card,
.section-dark .share-btn,
.sec-dark .share-btn,
.section-dark .social-big,
.sec-dark .social-big { background: var(--card-bg); }
.section-dark .perks-heading,
.sec-dark .perks-heading { color: #fff; }

@media (max-width: 620px) {
  .page-hero { padding: 2.4rem 0 2.2rem; }
  .page-hero-badge { width: 190px; right: -60px; opacity: 0.08; }
  .teaser-card .btn, .center-cta .btn { width: 100%; text-align: center; }
}

/* ============================================================
   SECTION COLOUR SYSTEM
   ------------------------------------------------------------
   Put ONE of these on any <section class="section …"> to set
   that whole band's colours. Swap the class to recolour it —
   no other edits needed.

     sec-light-1   cream page background (the default look)
     sec-light-2   warm tint band
     sec-dark      navy band with light text

   House rule: on every page EXCEPT the home page, the first
   content section under the hero is `sec-dark`, then the rest
   alternate light-1 / light-2 down the page.

   Example:
     <section id="story" class="section sec-dark"> … </section>
   ============================================================ */
.sec-light-1 { background: var(--paper); color: var(--ink); }

/* Cards & panels keep their own light background inside a dark band,
   so their text has to be pinned back to ink instead of inheriting cream. */
.sec-dark details,
.sec-dark .fgo-form,
.sec-dark .perk-card,
.sec-dark .photo-card,
.sec-dark .route,
.sec-dark .partner-card,
.sec-dark .value,
.sec-dark .tc-card,
.sec-dark .shop-dialog,
.sec-dark .lend-box,
.sec-dark .about-box,
.sec-dark .wish-card,
.sec-dark .step-card,
.sec-dark .teaser-card,
.sec-dark .share-btn,
.sec-dark .social-big,
.sec-dark .event-card { color: var(--ink); }

/* the map's own chrome is already dark-on-light — keep it readable */
.sec-dark .map-frame,
.sec-dark .legend-item { color: var(--ink); }
.sec-dark .legend-hint { color: var(--sec-dark-text); opacity: 0.75; }

/* small type that sits directly on the navy (not inside a card) */
.sec-dark .perks-note { color: var(--sec-dark-text); }
.sec-dark .section-sub { color: var(--sec-dark-text); }

/* Text that sits directly on the navy (no card behind it) stays cream.
   The yellow <strong> highlight needs dark text to stay legible. */
.sec-dark .story-text,
.sec-dark .story-text p { color: var(--sec-dark-text); }
.sec-dark .story-text strong { color: var(--ink-dark); }
.sec-dark .story-photo { border-color: var(--sec-dark-text); }
/* the photo box itself is light, so its placeholder label stays ink */
.sec-dark .story-photo-empty { color: var(--ink); }

/* ============================================================
   TRACK RECORD — impact numbers, event log, growth, areas
   Rendered by script.js from impact.json + events.json.
   Flat house style: hard corners, solid fills, no gradients.
   ============================================================ */

/* ---- headline impact numbers ---- */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.impact-stat {
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.1rem 1.2rem;
  text-align: center;
}
.impact-num {
  display: block;
  font-family: var(--chunky);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1;
  color: var(--orange);
}
.impact-label {
  display: block;
  font-family: var(--pixel);
  font-size: 0.45rem;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-top: 0.7rem;
}
.impact-note {
  font-family: var(--pixel);
  font-size: 0.45rem;
  line-height: 2;
  color: var(--text-muted);
  text-align: center;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

/* ---- caption above the recent-meetup cards ---- */
.log-caption {
  font-family: var(--pixel);
  font-size: 0.45rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ---- horizontal bar charts (growth + areas) ---- */
.chart-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.2rem;
  margin-top: 3rem;
}
.chart-box {
  background: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 1.4rem;
}
.chart-title {
  font-family: var(--chunky);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.chart-sub {
  font-family: var(--pixel);
  font-size: 0.42rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}
.bar-row { margin-bottom: 1rem; }
.bar-row:last-child { margin-bottom: 0; }
.bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.bar-key { font-family: var(--pixel); font-size: 0.48rem; color: var(--ink); }
.bar-val { font-family: var(--mono); font-weight: 700; font-size: 0.82rem; color: var(--ink); }
.bar-track {
  height: 20px;
  background: var(--paper);
  border: 2px solid var(--border-color);
  overflow: hidden;
}
.bar-fill {
  display: block;          /* it's a <span> — inline would ignore width/height */
  height: 100%;
  width: 0;
  background: var(--orange);
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bar-fill.is-alt { background: var(--mystic); }
.bar-meta { font-family: var(--pixel); font-size: 0.4rem; color: var(--text-muted); margin-top: 0.3rem; }
@media (prefers-reduced-motion: reduce) { .bar-fill { transition: none; } }

.travel-note {
  font-family: var(--pixel);
  font-size: 0.45rem;
  line-height: 2.1;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--border-color);
  padding: 0.9rem 1rem;
  margin-top: 1.2rem;
}

/* stays 2x2 on phones — four stacked blocks is too much scrolling */
@media (max-width: 860px) {
  .impact-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .impact-note { margin-top: -1.4rem; }
  .impact-stat { padding: 1.1rem 0.6rem 0.9rem; }
  .impact-label { font-size: 0.4rem; }
}

/* full-width variant of the chart box (Partners page) */
.chart-solo { margin-bottom: 2.4rem; }

/* Track-record cards are a showcase, not an archive — don't fade them.
   The DONE ✓ in the meta line already marks them as finished. */
#past-event-grid .event-past { opacity: 1; }

/* ============================================================
   LOADING PLACEHOLDERS
   Only ever seen on a first-ever visit — after that the browser
   has a stored copy of the feed and paints instantly.
   Flat blocks, a gentle opacity pulse. No gradients, no shimmer.
   ============================================================ */
.event-card.is-loading,
.impact-stat.is-loading { pointer-events: none; }

.skel {
  display: block;
  background: rgba(var(--ink-rgb), 0.13);
  animation: skel-pulse 1.1s ease-in-out infinite;
}
@keyframes skel-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}
@media (prefers-reduced-motion: reduce) {
  .skel { animation: none; }
}

.skel-date { width: 64px; height: 62px; flex-shrink: 0; }
.skel-body { flex: 1; min-width: 0; }
.skel-line { height: 13px; margin-bottom: 0.6rem; }
.skel-title { height: 20px; width: 78%; }
.skel-meta { width: 62%; }
.skel-short { width: 44%; margin-bottom: 0; }
.skel-num { height: 34px; width: 72%; margin: 0 auto 0.9rem; }

/* on the navy bands the placeholders need to be lighter, not darker */
.sec-dark .skel { background: rgba(253, 244, 230, 0.22); }

/* Minimise button — lives at the top of the left-hand toggle column, but
   only while the map is maximised (there's the ⤢ button otherwise). */
.fgo-min-btn { display: none !important; }
.map-frame.map-fullscreen .fgo-min-btn {
  display: flex !important;
  background: var(--sec-dark-bg);
  border-bottom: 2px solid var(--orange);
}
.map-frame.map-fullscreen .fgo-min-btn:hover { background: var(--orange); }
.tg-min {
  font-family: var(--chunky);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--sec-dark-text);
}

/* ============================================================
   RAID BOSS STRIP (upcoming event cards)
   Data from ScrapedDuck/LeekDuck. Sits above the card's link.
   ============================================================ */
.raid-strip {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 3px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}
.raid-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.raid-boss { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.raid-img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
  background: var(--screen);
  border: 2px solid var(--border-color);
}
.raid-meta { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.raid-name {
  font-family: var(--chunky);
  font-size: 0.95rem;
  line-height: 1;
  color: var(--ink);
}
.raid-shiny { font-size: 0.8rem; }
.raid-cps { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.raid-cp {
  font-family: var(--pixel);
  font-size: 0.4rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--border-color);
  padding: 0.35em 0.5em;
  white-space: nowrap;
}
.raid-cp b { font-size: 0.52rem; }
.raid-cp-boost { background: #cfe0ff; }        /* weather-boosted */
.raid-cp-tbd {
  background: transparent;
  border-style: dashed;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .raid-strip { gap: 0.5rem; }
  .raid-img { width: 36px; height: 36px; }
  .raid-name { font-size: 0.85rem; }
}

/* weaknesses + optional hand-written counters */
.raid-weak {
  font-family: var(--pixel);
  font-size: 0.38rem;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}
.raid-cp-alt { background: #e6dcff; }
.raid-counters {
  width: 100%;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--border-color);
  padding: 0.55rem 0.7rem;
  margin: 0.2rem 0 0;
}
.raid-counters b { font-family: var(--pixel); font-size: 0.4rem; letter-spacing: 0.04em; }


.area-info-icon {
  background-color: transparent;
  border: 1.5px solid currentColor;
  color: inherit;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-family: var(--mono, monospace);
  font-size: 11px;
  font-weight: 700;
  opacity: 0.6;
  cursor: pointer;
}
.parking-info-icon { color: #2e5fd0; }
.place-info-icon { color: #7c3aed; }

/* ============================================================
   SHINY (DARK) MODE OVERRIDES
   Add any class styling you want to change ONLY in dark mode here.
   Just prefix your selector with [data-theme="shiny"] 
   Example: 
   [data-theme="shiny"] .my-custom-class {
     background-color: black;
   }
   ============================================================ */

[data-theme="shiny"] .route-sign,
[data-theme="shiny"] .event-checkin-num,
[data-theme="shiny"] .travel-note,
[data-theme="shiny"] .raid-cp,
[data-theme="shiny"] .perk-tag,
[data-theme="shiny"] .shop-sign,
[data-theme="shiny"] .btn-support,
[data-theme="shiny"] .fgo-meetup,
[data-theme="shiny"] .partner-dm a:hover,
[data-theme="shiny"] .event-link:hover,
[data-theme="shiny"] .join-note a:hover,
[data-theme="shiny"] details p a:hover,
[data-theme="shiny"] .shop-option:hover,
[data-theme="shiny"] .social-btn:hover,
[data-theme="shiny"] .share-btn:hover {
  color: var(--ink-dark);
}
[data-theme="shiny"] .lb-btn:hover,
[data-theme="shiny"] .shop-option-sm:hover,
[data-theme="shiny"] details[open] summary {
  color: var(--ink-dark);
}
[data-theme="shiny"] .about-box strong {
  color: var(--ink-dark);
}
.social-big.is-cf:hover { background: var(--orange); }

/* Floating Shiny Toggle */
.theme-toggle-floating {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--card-bg, #ffffff);
  border: 2px solid #e2e8f0;
  color: #64748b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.theme-toggle-floating:hover {
  transform: scale(1.1) rotate(10deg);
  color: var(--orange-dark);
  border-color: var(--orange-dark);
}

.theme-toggle-floating:active {
  transform: scale(0.95);
}

.theme-toggle-floating svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Shiny mode active state for the toggle */
[data-theme="shiny"] .theme-toggle-floating {
  background-color: #242424; /* Darker background */
  border-color: #ffd700;
  color: #ffd700;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.2), 0 0 8px rgba(255, 215, 0, 0.4);
}

[data-theme="shiny"] .theme-toggle-floating:hover {
  background-color: #1a1a1a;
  transform: scale(1.1) rotate(15deg);
}

@media (max-width: 768px) {
  .theme-toggle-floating {
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
  }
}
/* Shiny Reveal Animation */
.shiny-reveal-container {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1000px;
}

.shiny-flash {
  position: absolute;
  width: 200vw;
  height: 200vw;
  max-width: 2000px;
  max-height: 2000px;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,218,97,.4) 35%, transparent 70%);
  opacity: 0;
  animation: flash-fade 1s cubic-bezier(.2,.8,.2,1) forwards;
}

.shiny-character {
  position: relative;
  z-index: 2;
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  opacity: 0;
  animation: char-pop 1.5s cubic-bezier(.2,.8,.2,1) forwards;
}

.shiny-particle {
  position: absolute;
  z-index: 3;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shiny-particle svg {
  width: 100%;
  height: 100%;
}

.main-glint {
  width: 120px;
  height: 120px;
  top: calc(50% - 100px);
  left: calc(50% - 80px);
  color: #fff;
  filter: drop-shadow(0 0 10px rgba(255,215,0,0.8));
  animation: main-glint-anim 0.8s cubic-bezier(.2,.8,.2,1) 0.1s forwards;
}

.small-particle {
  width: 24px;
  height: 24px;
  color: var(--c);
  top: 50%;
  left: 50%;
  margin-top: -12px;
  margin-left: -12px;
  filter: drop-shadow(0 0 4px var(--c));
  animation: small-particle-anim var(--dur) ease-out var(--delay) forwards;
}

.small-particle.circle {
  border-radius: 50%;
  background-color: var(--c);
  width: 12px;
  height: 12px;
  margin-top: -6px;
  margin-left: -6px;
}

.small-particle.circle svg {
  display: none;
}

@keyframes flash-fade {
  0% { opacity: 0; transform: scale(0.5); }
  20% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}

@keyframes char-pop {
  0% { opacity: 0; transform: scale(0.8) translateY(20px); }
  15% { opacity: 1; transform: scale(1.05) translateY(0); }
  30% { transform: scale(1); }
  80% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.95); }
}

@keyframes main-glint-anim {
  0% { opacity: 0; transform: scale(0) rotate(-45deg); }
  30% { opacity: 1; transform: scale(1.5) rotate(0deg); }
  100% { opacity: 0; transform: scale(0) rotate(45deg); }
}

@keyframes small-particle-anim {
  0% { 
    opacity: 0; 
    transform: translate(0, 0) scale(0) rotate(0deg); 
  }
  20% { 
    opacity: 1; 
    transform: translate(calc(var(--tx) * 0.2), calc(var(--ty) * 0.2)) scale(1.2) rotate(45deg); 
  }
  100% { 
    opacity: 0; 
    transform: translate(var(--tx), var(--ty)) scale(0) rotate(180deg); 
  }
}

/* ----------------------------------------------------
   NEWS & BLOG STYLES
------------------------------------------------------- */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.news-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow);
}

.news-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-date {
  font-family: var(--pixel);
  font-size: 0.65rem;
  color: var(--orange-dark);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.news-title {
  font-family: var(--chunky);
  font-size: 1.45rem;
  margin-bottom: 12px;
  color: var(--ink);
  line-height: 1.15;
}

.news-card:hover .news-title {
  color: var(--orange-dark);
}

.news-summary {
  font-family: var(--mono);
  font-size: 0.92rem;
  margin-bottom: 20px;
  color: var(--ink);
  line-height: 1.55;
  flex-grow: 1;
}

.news-read-more {
  font-family: var(--chunky);
  font-size: 1.05rem;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.news-card:hover .news-read-more {
  color: var(--orange-dark);
  text-decoration: underline;
}

.news-article-full {
  max-width: 820px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 40px;
  margin-top: 24px;
  color: var(--ink);
}

.article-banner {
  width: 100%;
  border: var(--border);
  margin-bottom: 32px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.article-header {
  margin-bottom: 32px;
  border-bottom: var(--border);
  padding-bottom: 24px;
}

.article-header h1 {
  font-family: var(--chunky);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 12px;
}

.article-meta {
  font-family: var(--pixel);
  color: var(--orange-dark);
  font-size: 0.68rem;
  line-height: 1.6;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-family: var(--chunky);
  font-size: 1.1rem;
  text-decoration: none;
  background: var(--orange);
  color: var(--ink-dark);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0.4em 0.8em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.back-link:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
  color: var(--ink-dark);
}

/* Markdown Prose Formatting */
.markdown-content {
  font-family: var(--mono);
  line-height: 1.7;
  font-size: 1rem;
  color: var(--ink);
}

.markdown-content p {
  margin-bottom: 20px;
}

.markdown-content strong {
  font-weight: 800;
  color: var(--ink);
}

.markdown-content h2, 
.markdown-content h3, 
.markdown-content h4 {
  font-family: var(--chunky);
  color: var(--orange-dark);
  margin-top: 32px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.markdown-content h2 { font-size: 1.8rem; }
.markdown-content h3 { font-size: 1.4rem; }
.markdown-content h4 { font-size: 1.2rem; }

.markdown-content ul, 
.markdown-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

.markdown-content ul {
  list-style-type: disc;
}

.markdown-content ol {
  list-style-type: decimal;
}

.markdown-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.markdown-content a {
  color: var(--orange-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.markdown-content a:hover {
  color: var(--orange);
}

.markdown-content img {
  max-width: 100%;
  margin: 24px 0;
  border: var(--border);
}

.markdown-content blockquote {
  border-left: 4px solid var(--orange);
  padding-left: 16px;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-muted);
}

.markdown-content code {
  background-color: var(--screen);
  padding: 2px 6px;
  font-family: var(--mono);
  font-size: 0.9em;
  border: 1px solid var(--border-color);
}

.markdown-content pre {
  background-color: var(--screen);
  padding: 16px;
  overflow-x: auto;
  border: var(--border);
  margin-bottom: 24px;
}

.markdown-content pre code {
  background-color: transparent;
  padding: 0;
  border: none;
  color: inherit;
}

@media (max-width: 768px) {
  .news-article-full {
    padding: 20px;
  }
}
[data-theme="shiny"] .ring-ico img { filter: invert(1); }

.text-center { text-align: center; justify-content: center; }


/* Promo Modal */
.promo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.promo-modal.hidden {
  display: none;
  opacity: 0;
}
.promo-modal-content {
  background: var(--bg);
  padding: 16px;
  border-radius: 12px;
  max-width: 90%;
  width: 420px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  border: 4px solid var(--fg);
}
.promo-close {
  position: absolute;
  top: -16px;
  right: -16px;
  background: var(--red);
  color: #fff;
  border: 3px solid var(--fg);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 28px;
  font-weight: bold;
  line-height: 30px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--fg);
  z-index: 10;
  font-family: 'Space Mono', monospace;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-close:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--fg);
}
.promo-modal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 2px solid var(--fg);
}
.promo-actions {
  display: flex;
  justify-content: center;
}
