/* ===== The Kelvinists — escape room site (Summer Sunset Paradise theme) ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* palette: #EF476F #F78C6B #FFD166 #06D6A0 #118AB2 #073B4C */
  --bg:        #FFF8EC;  /* sunlit paper (pale sunglow tint) */
  --bg-2:      #FFFCF5;  /* card */
  --bg-3:      #FBEED0;  /* chip / inset */
  --ink:       #073B4C;  /* midnight green */
  --muted:     #5D7986;  /* muted blue-grey (ink tint) */
  --pink:      #EF476F;  /* paradise pink (primary accent) */
  --rose:      #F78C6B;  /* coral */
  --mustard:   #FFD166;  /* sunglow */
  --teal:      #06D6A0;  /* emerald */
  --blue:      #118AB2;  /* cerulean (links) */
  --red:       #EF476F;  /* scary accent */
  --green:     #06D6A0;
  --gold:      #FFD166;  /* sunglow (matches map "our rooms") */
  --gold-ink:  #B98900;  /* readable gold for text on light */
  --paw:       #EF476F;  /* paradise pink paw fill */
  --paw-empty: #F9E2D6;  /* faint unfilled paw */
  --line:      #F2E4C8;  /* warm border */
  --line-2:    #E7D3A4;  /* stronger warm border */
  --radius:    14px;
  --shadow:    0 8px 26px rgba(7,59,76,.10);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 82% -12%, rgba(239,71,111,.14), transparent 60%),
              radial-gradient(1000px 520px at -12% 8%, rgba(6,214,160,.13), transparent 55%),
              radial-gradient(900px 500px at 50% 120%, rgba(255,209,102,.24), transparent 60%),
              var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 5vw, 48px);
  background: rgba(255,248,236,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .wordmark { height: 34px; width: auto; display: block; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a {
  color: var(--muted); font-weight: 600; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; text-decoration: none;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-3); }
.nav-links a.active { color: var(--ink); background: linear-gradient(90deg, rgba(239,71,111,.18), rgba(17,138,178,.18)); }
.nav-links a.ig { color: var(--pink); display: inline-flex; align-items: center; padding: 6px 10px; }

/* ---- Layout ---- */
.wrap { max-width: 1100px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) clamp(16px, 5vw, 48px); }
.wrap-wide { max-width: none; }

/* ---- Hero ---- */
.hero { text-align: center; padding-top: clamp(36px, 7vw, 80px); }
.hero-avatar {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 20px; border: 3px solid var(--mustard); box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 10px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(90deg, var(--pink), var(--mustard), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--mustard), #F3B33E); color: #073B4C; box-shadow: 0 8px 20px rgba(255,209,102,.5); }
.btn-primary:hover { text-decoration: none; filter: brightness(1.05); }
.btn-ghost { background: var(--bg-2); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { text-decoration: none; background: var(--bg-3); }

/* ---- Stats strip ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin: 48px auto 0; max-width: 760px; }
.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; box-shadow: var(--shadow); }
.stat .num { font-size: 2.2rem; font-weight: 800; background: linear-gradient(90deg, var(--pink), var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .label { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---- Section headings ---- */
.section-head { text-align: center; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 6px; }
.section-head p { color: var(--muted); margin: 0 auto 8px; max-width: 620px; }

/* ---- Feature cards (home) ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 40px; }
.feature { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature .ico { font-size: 1.8rem; margin-bottom: 10px; }
.feature h3 { margin: 0 0 8px; }
.feature p { color: var(--muted); margin: 0 0 16px; }
.feature ul { color: var(--muted); margin: -8px 0 16px; padding-left: 22px; }

/* ---- Reviews toolbar ---- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 26px 0 8px; }
.toolbar input[type="search"] {
  flex: 1; min-width: 220px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink);
  padding: 11px 16px; border-radius: 999px; font: inherit; font-size: .95rem;
}
.toolbar input[type="search"]::placeholder { color: var(--muted); }
.toolbar select {
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink);
  padding: 10px 14px; border-radius: 999px; font: inherit; font-size: .9rem;
  font-weight: 600; cursor: pointer;
}
/* "Sort" label + icon fused to the left of the sort dropdown */
.sort-field {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px;
  padding-left: 14px; color: var(--muted); font-size: .9rem; font-weight: 600;
}
.sort-field .sort-ico { font-size: 1rem; line-height: 1; }
.sort-field select {
  border: none; background: transparent; border-radius: 999px; padding-left: 8px;
}
/* Ascending / descending toggle */
.sort-dir {
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink);
  width: 40px; height: 40px; border-radius: 999px; font-size: 1.1rem;
  font-weight: 700; line-height: 1; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.sort-dir:hover { border-color: var(--pink); color: var(--pink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--muted); padding: 8px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; cursor: pointer; }
.chip.active { color: var(--ink); border-color: var(--pink); background: rgba(239,71,111,.13); }

/* results count + clear-filters, under the toolbar */
.results-bar {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; color: var(--muted); font-size: .9rem; font-weight: 600;
}
.clear-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--pink); font: inherit; font-size: .87rem; font-weight: 700;
}
.clear-btn:hover { text-decoration: underline; }

/* shown when the filters match nothing */
.empty-state {
  text-align: center; padding: 56px 20px; margin-top: 24px;
  background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--radius);
}
.empty-state .empty-ico { font-size: 2.6rem; margin-bottom: 8px; }
.empty-state h3 { margin: 0 0 6px; }
.empty-state p { color: var(--muted); margin: 0 0 20px; }

/* ---- Review grid ---- */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; align-items: start; }
@media (max-width: 700px) { .review-grid { grid-template-columns: 1fr; } }
@media (min-width: 1500px) { .review-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 2100px) { .review-grid { grid-template-columns: repeat(4, 1fr); } }
.review-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.review-card.fav { border: 2px solid var(--gold); box-shadow: 0 8px 26px rgba(255,209,102,.35); }
.score-chip {
  flex: 0 0 auto; background: rgba(239,71,111,.1); color: var(--pink);
  font-weight: 800; font-size: .85rem; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.review-card .shot { position: relative; display: block; }
.review-card .shot.noimg { aspect-ratio: 4 / 3; background: var(--bg-3); }
.ig-badge {
  position: absolute; top: 10px; right: 10px;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(7,59,76,.55); color: #fff; backdrop-filter: blur(3px);
  box-shadow: 0 2px 8px rgba(7,59,76,.3);
}
.ig-badge.big {
  position: static; margin: 0 auto; width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--pink), var(--mustard));
}
.review-card .shot.noimg { display: flex; align-items: center; justify-content: center; }
.review-card .meta { padding: 16px 18px 12px; }
.review-card .meta .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.review-card h3 { margin: 0; font-size: 1.15rem; }
.review-card .venue { color: var(--muted); font-size: .9rem; }
.review-card .loc { color: var(--muted); font-size: .85rem; display: flex; align-items: center; gap: 7px; margin-top: 3px; }
.review-card .loc .flag { width: 19px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(7,59,76,.18); }

/* paw rating */
.rating { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 11px; margin-top: 13px; }
.paws { position: relative; display: inline-flex; }
.paws-row { display: inline-flex; gap: 2px; line-height: 0; }
.paws-fill { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; white-space: nowrap; }
.paws .paws-row:first-child { color: var(--paw-empty); }
.paw { width: 44px; height: 44px; display: block; flex: 0 0 auto; fill: currentColor; }
/* shrink paws to the card's width: 10 paws + 9 x 2px gaps must fit .meta's content box */
.review-card .meta { container-type: inline-size; }
.review-card .paw { width: min(44px, calc((100cqw - 18px) / 10)); height: auto; aspect-ratio: 1; }
.review-card .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.badge.scary { color: var(--red); border-color: var(--red); }
.badge.fav { color: var(--gold-ink); border-color: var(--gold); }
.badge.terpeca { color: var(--gold-ink); border-color: var(--gold); background: rgba(255,209,102,.18); }
.badge.closed { color: var(--red); border-color: var(--line-2); opacity: .8; }
.review-card .blurb { color: var(--ink); opacity: .92; font-size: .92rem; margin: 12px 0 0; }
.review-card .blurb.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.more-btn { background: none; border: none; color: var(--teal); font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; padding: 0; margin-top: 6px; }
.more-btn:hover { text-decoration: underline; }
.card-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font-size: .85rem; font-weight: 600; }

/* sub-score bars (puzzles / set / story / fun) */
.subratings { display: grid; grid-template-columns: 1fr; gap: 5px 16px; margin-top: 10px; }
.sub { display: flex; align-items: center; gap: 7px; font-size: .7rem; color: var(--muted); }
.sub-label { flex: 0 0 112px; font-weight: 600; letter-spacing: .03em; white-space: nowrap; }
.sub-bar { flex: 1; height: 5px; border-radius: 999px; background: var(--paw-empty); overflow: hidden; }
.sub-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--rose), var(--pink)); }
.sub-num { flex: 0 0 auto; font-weight: 700; min-width: 24px; text-align: right; }
.review-card .shot { display: block; }
.review-card .shot img { width: 100%; height: auto; display: block; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.review-card .shot:hover { filter: brightness(1.04) saturate(1.03); }
.review-card .embed { padding: 4px 12px 14px; }
.review-card .embed .instagram-media { margin: 0 auto !important; min-width: unset !important; }
.review-card .post-link { display: inline-flex; align-items: center; gap: 6px; margin: 6px 18px 16px; font-weight: 600; }

/* ---- Stats page ---- */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.panel.wide { grid-column: 1 / -1; }
.panel h3 { margin: 0 0 16px; font-size: 1.05rem; }
.panel-note { color: var(--muted); font-size: .8rem; margin: 12px 0 0; }
@media (max-width: 760px) { .panels { grid-template-columns: 1fr; } }

/* vertical column chart */
.colchart { display: flex; align-items: flex-end; gap: 6px; min-height: 160px; }
.col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 0; }
.col-num { font-size: .7rem; font-weight: 700; color: var(--muted); margin-bottom: 3px; }
.col-bar { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--pink), var(--rose)); }
.col-label { font-size: .68rem; color: var(--muted); margin-top: 5px; white-space: nowrap; }

/* horizontal bar chart */
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.bar-label { flex: 0 0 132px; font-size: .82rem; color: var(--ink); display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label .flag { width: 17px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(7,59,76,.18); flex: 0 0 auto; }
.bar-track { flex: 1; height: 12px; border-radius: 999px; background: var(--bg-3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mustard), var(--pink)); }
.bar-num { flex: 0 0 auto; font-size: .74rem; font-weight: 700; color: var(--muted); min-width: 24px; }
.panel.wide .bar-label { flex-basis: 190px; }

/* box & whisker (sub-score distributions) */
.boxplot { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.box-row { display: flex; align-items: center; gap: 10px; }
.box-label { flex: 0 0 92px; font-size: .82rem; color: var(--ink); white-space: nowrap; }
.box-plot { position: relative; flex: 1; height: 26px; }
.box-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); transform: translateX(-.5px); }
.box-whisker { position: absolute; top: 50%; height: 2px; background: var(--muted); transform: translateY(-50%); border-radius: 2px; }
.box-cap { position: absolute; top: 50%; width: 2px; height: 13px; background: var(--muted); transform: translate(-1px, -50%); border-radius: 2px; }
.box-iqr { position: absolute; top: 50%; height: 18px; transform: translateY(-50%); background: rgba(239,71,111,.16); border: 1.5px solid var(--pink); border-radius: 5px; }
.box-median { position: absolute; top: 50%; width: 3px; height: 18px; background: var(--pink); transform: translate(-1.5px, -50%); border-radius: 2px; }
.box-mean { position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px var(--bg-2); transform: translate(-4.5px, -50%); }
.box-num { flex: 0 0 auto; font-size: .78rem; font-weight: 800; color: var(--pink); min-width: 34px; text-align: right; }
.box-axis .box-plot { height: 14px; }
.box-tick { position: absolute; top: 0; font-size: .62rem; color: var(--muted); transform: translateX(-50%); }
.box-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: .74rem; color: var(--muted); }
.box-legend span { display: inline-flex; align-items: center; gap: 6px; }
.box-legend .sw-box { width: 16px; height: 11px; background: rgba(239,71,111,.16); border: 1.5px solid var(--pink); border-radius: 3px; }
.box-legend .sw-median { width: 3px; height: 13px; background: var(--pink); border-radius: 2px; }
.box-legend .sw-mean { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); }
.box-legend .sw-whisker { width: 16px; height: 2px; background: var(--muted); }
@media (max-width: 560px) { .box-label { flex-basis: 62px; font-size: .76rem; } }

/* leaderboard */
.lead-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.lead-row:last-child { border-bottom: none; }
.lead-rank { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--bg-3); color: var(--ink); font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.lead-row:first-child .lead-rank { background: linear-gradient(135deg, var(--mustard), #F3B33E); color: #073B4C; }
.lead-who { flex: 1; min-width: 0; }
.lead-room { font-weight: 700; font-size: .95rem; }
.lead-fav { color: var(--gold-ink); }
.lead-venue { color: var(--muted); font-size: .8rem; display: flex; align-items: center; gap: 6px; }
.lead-venue .flag { width: 16px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(7,59,76,.18); }
.lead-score { flex: 0 0 auto; font-weight: 800; color: var(--pink); font-size: 1.05rem; }
.lead-score span { color: var(--muted); font-weight: 600; font-size: .72rem; }

/* Kelvinists vs. the crowd */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; }
.vs-col h4 { margin: 0 0 8px; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.vs-table { width: 100%; border-collapse: collapse; }
.vs-table th:first-child, .vs-table td:first-child { width: 100%; }
.vs-table th { text-align: right; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 0 6px 5px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.vs-table th:first-child { text-align: left; }
.vs-table td { padding: 7px 6px; border-bottom: 1px dashed var(--line); vertical-align: middle; }
.vs-table tr:last-child td { border-bottom: none; }
.vs-table td:first-child { padding-left: 0; }
.vs-table .lead-room { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.vs-table .lead-venue { color: var(--muted); font-size: .72rem; display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.vs-table .lead-venue .flag { width: 15px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(7,59,76,.18); }
.vs-num { text-align: right; white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; }
.vs-num.vs-k { color: var(--pink); }
.vs-num.vs-c { color: var(--muted); }
.vs-diff { display: inline-block; font-size: .74rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.vs-diff.up { color: var(--pink); background: rgba(239,71,111,.12); }
.vs-diff.down { color: var(--blue); background: rgba(17,138,178,.12); }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; } }

/* ---- Trips timeline ---- */
.timeline { position: relative; max-width: 940px; margin: 28px auto 0; padding-left: 30px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--rose), var(--pink), var(--blue));
}
.trip { position: relative; margin-bottom: 42px; }
.trip::before {
  content: ""; position: absolute; left: -30px; top: 4px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--pink); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--pink);
}
.trip.home::before { background: var(--mustard); box-shadow: 0 0 0 2px var(--mustard); }
.trip-head h3 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trip-head h3 .flag { width: 20px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(7,59,76,.18); }
.trip-meta { color: var(--muted); font-size: .84rem; margin-top: 2px; }
.trip-map {
  position: relative; z-index: 0;  /* keep Leaflet panes under the sticky nav */
  height: 240px; margin-top: 14px;
  border: 1px solid var(--line-2); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.trip-banner { margin-top: 14px; }
.trip-banner img {
  display: block; width: 100%; max-width: 520px; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.trip-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.mini {
  display: block; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; color: var(--ink); box-shadow: var(--shadow);
}
a.mini:hover { text-decoration: none; transform: translateY(-2px); transition: transform .12s ease; }
.mini-thumb { aspect-ratio: 1; overflow: hidden; background: var(--bg-3); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-thumb.ph { display: flex; align-items: center; justify-content: center; }
.mini-thumb.ph img { width: 46%; height: auto; opacity: .3; }
.mini-body { padding: 8px 10px 10px; }
.mini-name { font-weight: 700; font-size: .8rem; line-height: 1.25; }
.mini-sub { color: var(--muted); font-size: .7rem; margin-top: 2px; }
.mini-score { font-size: .74rem; font-weight: 800; color: var(--pink); margin-top: 5px; }
.mini-fav { color: var(--gold-ink); }

/* empty / note */
.note { background: var(--bg-2); border: 1px dashed var(--pink); border-radius: var(--radius); padding: 20px 22px; color: var(--muted); margin-top: 24px; }
.note code { background: var(--bg-3); color: var(--red); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* ---- About (home) ---- */
.about { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center; margin-top: 56px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.about img { border-radius: 50%; width: 240px; height: 240px; object-fit: cover; margin: 0 auto; border: 3px solid var(--pink); }
.about h2 { margin: 0 0 10px; }
.about p { color: var(--muted); margin: 0 0 12px; }
.about .mascot { color: var(--gold-ink); font-weight: 600; }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; text-align: center; } }

/* ---- Map page (full-screen) ---- */
body.map-page { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.map-page .nav { flex: 0 0 auto; }
.map-fill { position: relative; flex: 1 1 auto; min-height: 0; }
.map-fill iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-tip {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  background: rgba(255,248,236,.92); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 15px; font-size: .82rem; line-height: 1.3; max-width: min(70vw, 460px);
  box-shadow: var(--shadow); backdrop-filter: blur(6px);
}
.map-loading {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center;
  background: var(--bg); color: var(--muted); font-weight: 600;
}
.map-loading .spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 4px solid var(--line-2); border-top-color: var(--pink);
  animation: map-spin 1s linear infinite;
}
@keyframes map-spin { to { transform: rotate(360deg); } }
.map-tip b { color: var(--gold-ink); }
.map-tip .x { margin-left: 8px; cursor: pointer; color: var(--muted); font-weight: 700; }
.map-tip .x:hover { color: var(--ink); }
@media (max-width: 560px) { .map-tip { display: none; } }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--line-2); color: var(--muted); text-align: center; padding: 28px 16px; font-size: .9rem; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }

@media (max-width: 560px) {
  /* the wordmark already links home, so drop the redundant Home link */
  .nav { padding: 10px 12px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 7px 9px; font-size: .88rem; }
  .nav-links a.home { display: none; }
  .brand .wordmark { height: 26px; }
}
@media (max-width: 360px) {
  .nav-links a { padding: 6px 7px; font-size: .82rem; }
  .brand .wordmark { height: 22px; }
}
