/* Self-hosted variable fonts (latin subset) so pages render without waiting on a third-party font server. */
@font-face { font-family: 'Fredoka'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/fredoka-latin-var.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/assets/fonts/inter-latin-var.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Metric-matched fallbacks: the swap from system font to web font barely moves the layout. */
@font-face { font-family: 'Fredoka Fallback'; src: local('Arial Rounded MT Bold'), local('Arial'); size-adjust: 104%; ascent-override: 92%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }

:root {
  --bg: #0b1020;
  --bg-2: #121a33;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.1);
  --text: #eef2ff;
  --muted: #9aa4c7;
  --hot: #ff7a45;
  --cool: #4cc9f0;
  --sun: #ffd166;
  --leaf: #7bd88f;
  --grape: #b388ff;
  --pink: #ff6fae;
  --radius: 18px;
  --display: "Fredoka", "Fredoka Fallback", ui-rounded, system-ui, sans-serif;
  --body: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px);
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  /* Standalone (Add to Home Screen) mode draws under the status bar; keep the bar's content clear of it. */
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
  margin-inline: calc(-1 * env(safe-area-inset-left, 0px)) calc(-1 * env(safe-area-inset-right, 0px));
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 24px;
  text-decoration: none; letter-spacing: 0.2px;
}
.logo-mark {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: conic-gradient(from 200deg, var(--hot), var(--sun), var(--leaf), var(--cool), var(--grape), var(--pink), var(--hot));
  color: #0b1020; font-size: 22px; font-weight: 700;
  box-shadow: 0 6px 24px rgba(255, 122, 69, 0.35);
}
.logo small { font-family: var(--body); font-weight: 500; font-size: 13px; color: var(--muted); margin-left: 4px; }
.topbar nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pill-link {
  text-decoration: none; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.pill-link:hover { background: var(--panel-2); }
.pill-link.primary { background: var(--sun); color: #1b1300; border-color: transparent; }
.pill-link.primary:hover { filter: brightness(1.06); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--sun);
  background: rgba(255, 209, 102, 0.1); border: 1px solid rgba(255, 209, 102, 0.25);
  padding: 6px 12px; border-radius: 999px;
}
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 7vw, 84px); line-height: 1.02;
  margin: 18px 0 10px; letter-spacing: -0.5px; max-width: 16ch;
}
.typed { color: var(--sun); height: 2.5em; line-height: 1.25; overflow: hidden; display: block; font-size: clamp(22px, 3.2vw, 34px); font-family: var(--display); font-weight: 500; margin: 0 0 28px; }
.typed .caret { display: inline-block; width: 3px; height: 0.95em; background: var(--sun); margin-left: 3px; vertical-align: -0.1em; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.search {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  max-width: 760px;
}
.search-box {
  flex: 1 1 360px; display: flex; align-items: center; gap: 12px;
  background: #fff; color: #0b1020; border-radius: 999px;
  padding: 6px 8px 6px 22px; min-height: 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.06);
}
.search-box svg { flex: none; opacity: 0.55; }
.search-box input {
  flex: 1; border: 0; outline: 0; background: transparent; color: #0b1020;
  font-size: 19px; min-width: 0; height: 48px;
}
.search-box input::placeholder { color: #69708a; }
.search-box .clear { border: 0; background: #eef0f7; color: #333; border-radius: 999px; width: 36px; height: 36px; cursor: pointer; display: none; }
.search-box.has-text .clear { display: block; }
.btn {
  border: 0; cursor: pointer; border-radius: 999px; min-height: 60px; padding: 0 24px;
  font-family: var(--display); font-weight: 600; font-size: 19px;
  display: inline-flex; align-items: center; gap: 10px;
}
.btn-dice { background: var(--hot); color: #1b0a00; box-shadow: 0 10px 30px rgba(255, 122, 69, 0.35); }
.btn-dice:hover { filter: brightness(1.07); }
.btn-dice .die { display: inline-block; transition: transform 0.5s cubic-bezier(.3,1.6,.5,1); }
.btn-dice:hover .die { transform: rotate(200deg) scale(1.15); }

.hero-stats { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 15px; }
.hero-stats b { color: var(--text); font-family: var(--display); font-weight: 600; font-size: 18px; }
.passport-mini { cursor: pointer; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 4px; }

/* ---------- Orrery: exhibits orbiting a big "?" ---------- */
.orrery { position: absolute; right: -20px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%); }
.orrery .sun {
  position: absolute; left: 50%; top: 50%; width: 112px; height: 112px; margin: -56px 0 0 -56px; border-radius: 50%;
  display: grid; place-items: center; font: 700 64px/1 var(--display); color: #1b1300;
  background: radial-gradient(circle at 35% 30%, #fff3c4, var(--sun) 45%, var(--hot));
  box-shadow: 0 0 60px rgba(255, 209, 102, 0.55), 0 0 140px rgba(255, 122, 69, 0.35);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.06); } }
.orrery .ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.14); animation: spin var(--dur) linear infinite; pointer-events: none; }
.orrery:focus-within .ring, .orrery:focus-within .moon, .orrery.has-armed .ring, .orrery.has-armed .moon { animation-play-state: paused; }
@media (hover: hover) { .orrery:hover .ring, .orrery:hover .moon { animation-play-state: paused; } }
.orrery .arm { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.orrery .moon {
  position: absolute; left: 0; top: 0; width: 56px; height: 56px; translate: -28px calc(-1 * var(--r) - 28px);
  border-radius: 50%; display: grid; place-items: center; font-size: 28px; text-decoration: none;
  background: var(--bg-2); border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  animation: spin var(--dur) linear infinite reverse;
  transition: background 0.2s, border-color 0.2s;
  pointer-events: auto;
}
.orrery .moon:focus-visible, .orrery .moon.armed { background: var(--text); border-color: transparent; z-index: 3; }
.orrery .ring:has(.moon.armed) { z-index: 5; }
@media (hover: hover) { .orrery .moon:hover { background: var(--text); border-color: transparent; z-index: 3; } }
.orrery .moon .lbl {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  width: max-content; max-width: 220px; padding: 8px 12px; border-radius: 12px;
  background: var(--text); color: var(--bg); font: 600 13px/1.3 var(--body); text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.orrery .moon:focus-visible .lbl, .orrery .moon.armed .lbl { opacity: 1; }
@media (hover: hover) { .orrery .moon:hover .lbl { opacity: 1; } }
.orrery .moon .lbl .go { display: none; }
.orrery .moon .lbl.below { bottom: auto; top: calc(100% + 8px); }
@keyframes spin { to { rotate: 360deg; } }
@media (max-width: 1400px) { .orrery { scale: 0.8; right: -80px; } }
@media (max-width: 1180px) { .orrery { display: none; } }
.match-hint { color: var(--sun); font-weight: 600; text-decoration: none; }
.match-hint:hover { text-decoration: underline; }

/* ---------- Featured ---------- */
.section { padding: 28px 0; }
.section h2 { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 4px; }
.section .sub { color: var(--muted); margin: 0 0 20px; }

.featured { min-height: 340px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feat {
  position: relative; display: flex; flex-direction: column; min-height: 340px;
  border-radius: 24px; overflow: hidden; text-decoration: none;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: transform 0.25s cubic-bezier(.2,.9,.3,1.3), box-shadow 0.25s;
}
.feat:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.feat .art { flex: 1; min-height: 190px; position: relative; }
.feat .art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feat .art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.feat .art video.on { opacity: 1; }
.feat .body { padding: 16px 18px 18px; }
.feat .q { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.2; margin: 6px 0 8px; }
.feat .t { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sun); }
.feat .go { font-weight: 600; font-size: 14px; color: var(--muted); }
.feat:hover .go { color: var(--text); }
.badge-new {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--leaf); color: #06220f; font-weight: 700; font-size: 12px;
  padding: 4px 10px; border-radius: 999px; letter-spacing: 0.04em;
}

/* ---------- Wings (filters) ---------- */
.filters { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 10; background: linear-gradient(var(--bg) 70%, rgba(11,16,32,0)); padding: 12px 0 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); font-weight: 600; font-size: 15px;
  transition: background 0.15s, transform 0.15s;
}
.chip:hover { background: var(--panel-2); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: transparent; }
.chip .n { font-weight: 500; opacity: 0.6; font-size: 13px; }
.row2 { display: flex; gap: 8px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 0 14px; min-height: 36px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); }
.count { margin-left: auto; color: var(--muted); font-size: 14px; }

/* ---------- Grid ---------- */
.grid:empty { min-height: 1400px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  --c1: #2a3a78; --c2: #0e1430;
  position: relative; display: flex; flex-direction: column;
  text-decoration: none; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: transform 0.2s cubic-bezier(.2,.9,.3,1.3), border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.25); }
.card .face {
  height: 128px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, var(--c1), var(--c2));
}
.card .emoji {
  position: absolute; right: 14px; bottom: -8px; font-size: 86px; line-height: 1;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.35));
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1.5);
}
.card:hover .emoji { transform: translateY(-8px) rotate(-8deg) scale(1.06); }
.card .dots { position: absolute; inset: 0; opacity: 0.25; background-image: radial-gradient(rgba(255,255,255,0.8) 1px, transparent 1.5px); background-size: 18px 18px; mask-image: linear-gradient(120deg, #000, transparent 70%); }
.card .tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 70%; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(0,0,0,0.35); backdrop-filter: blur(6px); }
.tag.here { background: var(--sun); color: #1b1300; }
.tag.video { background: var(--pink); color: #2a0015; }
.tag.community { background: var(--leaf); color: #06220f; }
.tag.ai { background: var(--grape); color: #1a0838; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .q { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.22; margin: 0; }
.card .blurb { color: var(--muted); font-size: 14px; margin: 0; }
.card .meta { margin-top: auto; padding-top: 8px; display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.card .meta .title { color: var(--text); font-weight: 600; }
.card .meta .host { color: var(--cool); font-weight: 600; }
.card .meta .ages { margin-left: auto; white-space: nowrap; }
.stamp {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  width: 54px; height: 54px; border-radius: 50%;
  border: 2.5px solid var(--sun); color: var(--sun);
  display: none; place-items: center; text-align: center;
  font: 700 9px/1.05 var(--body); letter-spacing: 0.08em; text-transform: uppercase;
  transform: rotate(-14deg); background: rgba(11,16,32,0.55);
}
.card.visited .stamp { display: grid; }

.empty { text-align: center; padding: 60px 16px; color: var(--muted); }
.empty .big { font-size: 64px; }
.empty h3 { font-family: var(--display); color: var(--text); font-size: 26px; margin: 10px 0 6px; }

/* ---------- Submit band ---------- */
.band {
  margin: 36px 0 12px; border-radius: 28px; padding: 36px;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(179,136,255,0.35), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, rgba(76,201,240,0.3), transparent 60%),
    var(--bg-2);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center;
}
.band h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 44px); margin: 0 0 8px; line-height: 1.05; }
.band p { color: var(--muted); margin: 0; max-width: 52ch; }
.band .cta { justify-self: end; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.btn-big { background: var(--sun); color: #1b1300; text-decoration: none; }

footer { color: var(--muted); font-size: 14px; padding: 36px 0 48px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }

/* ---------- Passport dialog ---------- */
dialog {
  border: 1px solid var(--line); border-radius: 24px; background: var(--bg-2); color: var(--text);
  width: min(560px, calc(100% - 32px)); padding: 28px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
}
dialog::backdrop { background: rgba(3, 6, 15, 0.7); backdrop-filter: blur(4px); }
dialog h3 { font-family: var(--display); font-size: 28px; margin: 0 0 6px; }
.stamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; margin: 18px 0; }
.stamps span { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: 28px; border: 2px dashed var(--line); filter: grayscale(1); opacity: 0.35; }
.stamp-name { margin: 0; min-height: 3em; color: var(--muted); font-size: 15px; }
.stamp-name b { color: var(--text); }
.stamps span.got { border: 2.5px solid var(--sun); filter: none; opacity: 1; transform: rotate(-8deg); background: rgba(255, 209, 102, 0.08); }

/* ---------- Forms (submit/admin) ---------- */
.form-page { padding: 48px 0 64px; }
.form-grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.form-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 600; }
.field .hint { color: var(--muted); font-size: 14px; margin-top: -4px; }
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.16); border-radius: 14px;
  padding: 14px 16px; min-height: 52px; font-size: 16px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.15); }
.check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.check-grid label { font-weight: 500; }
.check-grid .chip { position: relative; }
.check-grid input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; padding: 0; margin: 0; }
.check-grid .chip:has(input:checked) { background: var(--text); color: var(--bg); }
.check-grid .chip:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 12px; font-weight: 600; min-height: 1.5em; }
.form-status.err { color: #ff8a8a; }
.done { text-align: center; padding: 20px 0; }
.done .big { font-size: 72px; animation: pop 0.6s cubic-bezier(.2,.9,.3,1.6); }
@keyframes pop { from { transform: scale(0.3) rotate(-30deg); opacity: 0; } }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.side-card h3 { font-family: var(--display); margin: 0 0 10px; font-size: 22px; }
.note { font-size: 14px; }
.side-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.side-card li { margin-bottom: 8px; }

@media (max-width: 1000px) {
  .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 700px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 24px; }
  .featured { grid-template-columns: 1fr; min-height: 1260px; }
  .feat { min-height: 300px; }
  .band { grid-template-columns: 1fr; padding: 26px; }
  .band .cta { justify-self: start; align-items: flex-start; }
  .btn { width: 100%; justify-content: center; }
  .logo small { display: none; }
  .topbar nav .hide-sm { display: none; }
  .grid { grid-template-columns: 1fr; }
  .count { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Touch screens (iPad, phones) ---------- */
html { touch-action: manipulation; }
button, a, input, select, textarea, label, .chip, .card, .feat { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, .btn, .pill-link, .chip, .seg, .moon, .stamps span { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media (pointer: coarse) {
  .logo { min-height: 44px; }
  .pill-link { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; }
  .seg button { min-height: 44px; padding: 0 16px; font-size: 15px; }
  .chip { min-height: 48px; }
  .passport-mini { min-height: 44px; padding: 0 4px; font-size: 15px; }
  .search-box .clear { width: 44px; height: 44px; }
  .match-hint { display: inline-flex; align-items: center; min-height: 44px; }
  .wm-share > button[aria-haspopup] { min-height: 44px; font-size: 15px; }
  .wm-share .wm-share-menu a, .wm-share .wm-share-menu button { min-height: 44px; font-size: 15px; }
  footer .wrap > span:last-child a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  footer { font-size: 15px; }
  .eyebrow, .count, .feat .go, .field .hint, .note { font-size: 15px; }
  .card .blurb { font-size: 15px; }
  .card .meta { font-size: 14px; }
  .tag { font-size: 12px; }
  .stamp { font-size: 11px; }
  .field input, .field textarea, .field select { font-size: 16px; }
  .field select {
    -webkit-appearance: none; appearance: none; padding-right: 48px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%239aa4c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 18px center;
  }
  .field select option { background: var(--bg-2); color: var(--text); }
  /* Bigger orbiting exhibits; a moving 56px dot is hard for small fingers to land on. */
  .orrery .moon { width: 60px; height: 60px; translate: -30px calc(-1 * var(--r) - 30px); }
  .orrery .moon .lbl { font-size: 15px; min-height: 44px; padding: 10px 16px; max-width: 240px; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
  .orrery .moon.armed .lbl { pointer-events: auto; }
  .orrery .moon.armed .lbl .go { display: block; color: #b84a14; font-size: 13px; font-weight: 700; }
}
/* Hover-only flourishes stay out of the way on touch, where a tap would trigger them. */
@media (hover: none) {
  .card:hover, .feat:hover { transform: none; }
  .card:hover .emoji { transform: none; }
}
