/* =============================================================================
   Little Supernova · site stylesheet
   Living Star + Pocket Universe hybrid (approved October 2026, docs/hybrid-mockup.html)

   Sections
     1  Tokens and base
     2  Header: brand, section links, view switch, minimap
     3  Page view, color-world bands, bento tiles, controls
     4  Hero: the living star and the collective supernova meter
     5  Bands: today, make & play, ask, real sky, the wall, observatory
     6  Map view
     7  Floating controls and page-wide overlays
     8  Responsive and reduced motion
   ============================================================================= */

/* 1 · Tokens and base ------------------------------------------------------- */
:root {
  --bg: #07081a;
  --ink: #f6f1ea;
  --muted: #b8bccd;
  --dim: #8a93ab;                 /* 5.3:1 or better on every surface it is used on */
  --line: rgba(255, 255, 255, 0.1);
  --amber: #ffcc87;
  --ice: #9bd7ff;
  --rose: #ff8fc0;
  --violet: #b9a2ff;
  --brass: #d8b46a;
  --ember: #ffb36b;
  --danger: #ff7a5c;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --serif: "Instrument Serif", Georgia, serif;
  --header-h: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--display); overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: 0.4; z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.9) 0 1px, transparent 1.3px), radial-gradient(circle, rgba(255,255,255,0.55) 0 1px, transparent 1.3px);
  background-size: 97px 97px, 151px 151px; background-position: 0 0, 47px 71px; animation: starDrift 60s linear infinite; }
@keyframes starDrift { to { background-position: -97px 97px, -104px 222px; } }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: 0.03em; }

/* 2 · Header ---------------------------------------------------------------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; height: var(--header-h); z-index: 50; display: flex; align-items: center; gap: 18px;
  padding: 0 22px; background: rgba(7, 8, 26, 0.74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; color: var(--amber); white-space: nowrap; text-decoration: none; }
.links { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.links::-webkit-scrollbar { display: none; }
.links a { flex: 0 0 auto; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: #c4c7d6; text-decoration: none; padding: 7px 10px; border-radius: 999px; }
.links a i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); margin-right: 7px; vertical-align: 1px; }
.links a:hover, .links a[aria-current="true"] { background: rgba(255, 255, 255, 0.07); color: #fff; }
.switch { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.03); flex: 0 0 auto; }
.switch button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: #c4c7d6; white-space: nowrap; }
.switch button[aria-pressed="true"] { background: var(--amber); color: #2a1206; }
.minimap { width: 92px; height: 52px; border-radius: 10px; border: 1px solid rgba(155, 215, 255, 0.35); background: rgba(5, 10, 25, 0.8); padding: 0; flex: 0 0 auto; overflow: hidden; }
.minimap:hover { border-color: var(--ice); }
.minimap svg { display: block; width: 100%; height: 100%; }

/* 3 · Page view, bands, bento ----------------------------------------------- */
#pageView { position: relative; z-index: 1; padding-top: var(--header-h); transition: opacity .5s ease, transform .6s ease; }
#pageView.leaving { opacity: 0; transform: scale(0.94); pointer-events: none; }
.wrap { position: relative; width: min(1180px, 100% - 36px); margin: 0 auto; }
.band { position: relative; padding: 70px 0 40px; }
.band::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--world-bg);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }
.band-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.band-num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--world); }
.band-title { margin: 0; font-size: clamp(28px, 4vw, 40px); font-weight: 750; letter-spacing: -0.03em; }
.band-sub { margin: 0; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.band.flash .band-title { animation: titleFlash 1.2s ease; }
@keyframes titleFlash { 30% { text-shadow: 0 0 28px var(--world); color: var(--world); } }

.today { --world: var(--amber);  --world-bg: radial-gradient(60% 70% at 85% 40%, rgba(255, 196, 120, 0.12), transparent 70%); }
.make  { --world: var(--rose);   --world-bg: radial-gradient(55% 60% at 15% 35%, rgba(255, 110, 180, 0.16), transparent 70%), radial-gradient(40% 50% at 90% 80%, rgba(170, 120, 255, 0.10), transparent 70%); }
.ask   { --world: var(--violet); --world-bg: radial-gradient(60% 70% at 80% 50%, rgba(140, 100, 255, 0.18), transparent 70%); }
.sky   { --world: var(--ice);    --world-bg: linear-gradient(180deg, rgba(20, 40, 90, 0.35), rgba(20, 40, 90, 0.35)); }
.wallb { --world: var(--ember);  --world-bg: radial-gradient(70% 60% at 50% 55%, rgba(255, 150, 90, 0.13), transparent 70%); }
.obs   { --world: var(--brass);  --world-bg: radial-gradient(60% 70% at 20% 50%, rgba(216, 180, 106, 0.10), transparent 70%); }

.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.tile { position: relative; border-radius: 22px; padding: 20px 22px; overflow: hidden; border: 1px solid var(--line); min-width: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015)), rgba(10, 10, 30, 0.66); }
.tile .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--world); }
.tile h3 { margin: 8px 0 6px; font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.tile p.sub { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: span 6; }
.r2 { grid-row: span 2; }

.btn { border: 1px solid color-mix(in srgb, var(--world, var(--amber)) 60%, transparent); background: color-mix(in srgb, var(--world, var(--amber)) 10%, transparent);
  border-radius: 999px; padding: 10px 18px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--world, var(--amber)) 20%, transparent); }
.btn:active { transform: translateY(1px); }
.btn[aria-pressed="true"] { background: color-mix(in srgb, var(--world, var(--amber)) 30%, transparent); border-color: var(--world, var(--amber)); }
.field { width: 100%; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 999px; padding: 11px 16px; font-size: 15px; }
textarea.field { border-radius: 16px; resize: vertical; min-height: 48px; font-family: var(--display); }
.field:focus { outline: none; border-color: color-mix(in srgb, var(--world, var(--amber)) 70%, transparent); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.status { margin-top: 10px; min-height: 1.2em; font-family: var(--mono); font-size: 12px; color: var(--world, var(--amber)); }
.human:empty { display: none; }
.human { margin-top: 10px; }

/* 4 · Hero ------------------------------------------------------------------- */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); display: grid; align-content: center; padding: 30px 0 30px;
  background: radial-gradient(circle at 72% 40%, rgba(255, 150, 110, 0.14), transparent 38%), radial-gradient(circle at 10% 10%, rgba(120, 140, 255, 0.10), transparent 32%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr); gap: 30px; align-items: center; }
.greet { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ice); }
.title { margin: 14px 0 0; font-weight: 800; font-size: clamp(64px, 9.4vw, 124px); line-height: 0.9; letter-spacing: -0.045em; }
.title span { background: linear-gradient(90deg, #ffd88f, #ff9d6c 45%, #ff7fb0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.poem { margin: 20px 0 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.4; color: var(--muted); }
.poem b { color: #fff; font-weight: 600; }
.press-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.press { border: 0; padding: 14px 26px; border-radius: 999px; background: linear-gradient(180deg, #ffd99a, #ffb56e); color: #2a1206; font-weight: 700; font-size: 18px;
  box-shadow: 0 8px 26px rgba(255, 170, 90, 0.35), inset 0 -3px 0 rgba(150, 60, 20, 0.25); transform: rotate(-2deg); transition: transform .12s ease; }
.press:hover { transform: rotate(-2deg) translateY(-2px); }
.press:active { transform: rotate(-2deg) translateY(1px) scale(0.98); }
.press.gone { background: linear-gradient(180deg, #d9c8ff, #b79cff); color: #1d1238; }
.ghost { border: 1px solid rgba(255,255,255,0.2); background: none; border-radius: 999px; padding: 14px 22px; font-size: 17px; color: #d9dcea; }
.reply { margin-top: 14px; min-height: 1.4em; font-family: var(--mono); font-size: 13px; color: var(--amber); }

/* The "Pressed anyway" code: a small postage stamp in the club's violet ink. */
.stamp-slot:empty { display: none; }
.stamp-card { display: inline-block; margin-top: 14px; padding: 12px 16px 11px; background: #f6efe2; color: #46339A; border-radius: 4px; transform: rotate(-2.5deg);
  outline: 2px dashed rgba(70, 51, 154, 0.55); outline-offset: -7px; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4); animation: stampIn .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes stampIn { from { transform: rotate(-12deg) scale(1.6); opacity: 0; } to { transform: rotate(-2.5deg) scale(1); opacity: 1; } }
.stamp-kicker { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; }
.stamp-row { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; }
.stamp-text { font-family: var(--mono); font-weight: 500; font-size: clamp(16px, 2.2vw, 20px); letter-spacing: 0.06em; user-select: all; -webkit-user-select: all; }
.stamp-copy { border: 1px solid rgba(70, 51, 154, 0.5); border-radius: 999px; background: none; padding: 3px 10px; font-family: var(--mono); font-size: 11px; color: #46339A; }
.stamp-copy:hover { background: rgba(70, 51, 154, 0.1); }
.stamp-link { font-size: 13px; color: #46339A; font-weight: 600; }
#star.flare .body { filter: brightness(1.5) saturate(1.2); }
.nova-news { margin: 10px 0 0; max-width: 540px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--rose); }
.sky-event { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.05em; color: var(--amber);
  border: 1px solid rgba(255,204,135,0.4); border-radius: 999px; padding: 8px 15px; background: rgba(255,204,135,0.06); }

.stage { position: relative; display: grid; place-items: center; }
#star { width: min(440px, 100%); height: auto; overflow: visible; cursor: pointer; }
#star .rays { transform-box: view-box; transform-origin: 200px 200px; animation: spin 48s linear infinite; }
#star .body { transform-box: view-box; transform-origin: 200px 200px; animation: breathe 3.4s ease-in-out infinite; }
#star .lids { transform-box: fill-box; transform-origin: center; animation: blink 5.2s infinite; }
#star.dozing .lids { animation: none; transform: scaleY(0.12); }
#star.alarmed .body { animation: jitter .18s linear infinite; }
#star.critical .body { animation: jitter .09s linear infinite; }
#star .zz { font-family: var(--mono); font-size: 22px; fill: #cfe0ff; opacity: 0; }
#star.dozing .zz { animation: zz 2.4s ease-in-out infinite; }
#star.dozing .zz:nth-of-type(2) { animation-delay: .8s; }
#star .alive, #star .remnant { transition: opacity .8s ease; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(var(--swell, 1)); } 50% { transform: scale(calc(var(--swell, 1) * 1.035)); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.08); } }
@keyframes jitter { 0%, 100% { transform: translate(0, 0) scale(var(--swell, 1)); } 25% { transform: translate(2px, -1px) scale(var(--swell, 1)); } 50% { transform: translate(-2px, 1px) scale(var(--swell, 1)); } 75% { transform: translate(1px, 2px) scale(var(--swell, 1)); } }
@keyframes zz { 0% { opacity: 0; transform: translate(0, 0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -34px); } }
.bubble { position: absolute; right: 0; top: 2%; max-width: 230px; padding: 14px 16px; border-radius: 18px 18px 18px 4px; background: #fff7ea; color: #2a1630;
  font-size: 16px; font-weight: 600; line-height: 1.25; box-shadow: 0 10px 30px rgba(0,0,0,0.35); transform: rotate(3deg); }
.bubble.pop { animation: pop .3s ease; }
@keyframes pop { 0% { transform: rotate(3deg) scale(0.9); } 60% { transform: rotate(3deg) scale(1.05); } 100% { transform: rotate(3deg) scale(1); } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; font-family: var(--mono); font-size: 12px; }
.chips span { border: 1px solid rgba(255,255,255,0.14); border-radius: 999px; padding: 6px 11px; color: #d6d9e6; background: rgba(255,255,255,0.04); }
.chips .mood { color: #ffb4c8; border-color: rgba(255,140,180,0.4); }

.meter { margin-top: 30px; padding: 14px 18px 16px; border-radius: 18px; background: rgba(255, 204, 135, 0.06); border: 1px solid rgba(255, 204, 135, 0.28); }
.meter-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; color: #c9ccda; }
.meter-top b { color: var(--amber); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.bar { position: relative; height: 12px; margin-top: 12px; border-radius: 999px; background: rgba(255,255,255,0.07); }
.bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #ffcc87, #ff8a6a 70%, #ff6fae); box-shadow: 0 0 16px rgba(255,140,110,0.6); transition: width .5s ease; }
.bar i::after { content: ""; position: absolute; right: -4px; top: -4px; width: 20px; height: 20px; border-radius: 50%; background: #fff3dc; box-shadow: 0 0 14px #ffd59a; }
.ticker { margin-top: 10px; min-height: 1.3em; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.hero-foot { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.hero-foot .souls { color: var(--amber); }
.blink { animation: blinkDot 1.3s steps(2, end) infinite; }
@keyframes blinkDot { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0.28; } }

#flashOverlay { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 45%), #fff, #ffe6c4 30%, rgba(255, 200, 160, 0) 70%); }
#flashOverlay.boom { animation: flash 1.6s ease-out; }
#flashOverlay.boom-soft { animation: flashSoft 2.4s ease-out; }
@keyframes flash { 0% { opacity: 0; } 8% { opacity: 1; } 100% { opacity: 0; } }
@keyframes flashSoft { 0% { opacity: 0; } 30% { opacity: 0.4; } 100% { opacity: 0; } }
.shock { position: fixed; z-index: 79; pointer-events: none; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  border: 3px solid rgba(255, 220, 180, 0.9); box-shadow: 0 0 40px rgba(255, 180, 120, 0.8); animation: shock 1.4s ease-out forwards; }
@keyframes shock { from { transform: scale(0.2); opacity: 1; } to { transform: scale(60); opacity: 0; } }
body.shake #pageView { animation: shake .7s ease; }
@keyframes shake { 15% { transform: translate(-8px, 5px); } 30% { transform: translate(7px, -6px); } 45% { transform: translate(-5px, -4px); } 60% { transform: translate(5px, 4px); } 75% { transform: translate(-3px, 2px); } }

/* 5 · Bands ------------------------------------------------------------------ */
/* today */
.daily-name { font-size: clamp(34px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; color: var(--amber); line-height: 1; margin-top: 10px; }
.daily-meta { font-family: var(--mono); font-size: 12px; color: #c8d3ff; margin: 10px 0 12px; }
.big-line { font-size: 19px; line-height: 1.5; color: var(--ink); }
.mood-line { margin-top: 12px; color: var(--muted); font-size: 15px; }
.mood-line b { color: var(--amber); font-weight: 600; }
.moon-mini { display: block; width: 96px; height: 96px; margin-top: 10px; }
.almanac-date { font-family: var(--mono); font-size: 12px; color: var(--amber); margin-top: 8px; }

/* make & play: nursery */
.out { margin-top: 16px; }
.my-sky { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.my-sky-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 8px; }
.my-sky-row .born-sphere { animation: none; }
.born-row { display: flex; gap: 16px; align-items: center; min-height: 90px; }
.born-sphere { flex: 0 0 auto; border-radius: 50%; background: radial-gradient(circle at 38% 34%, #fff 0 9%, var(--bb) 48%, color-mix(in srgb, var(--bb) 55%, #120a24) 100%);
  box-shadow: 0 0 22px var(--bb), 0 0 60px color-mix(in srgb, var(--bb) 45%, transparent); animation: bornIn .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes bornIn { from { transform: scale(0.1); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.star-name { font-size: 22px; font-weight: 700; color: var(--amber); letter-spacing: -0.01em; }
.star-meta { font-family: var(--mono); font-size: 11.5px; color: #c8d3ff; margin-top: 4px; line-height: 1.45; }
.star-story { font-size: 15px; color: #e6dde8; margin-top: 6px; line-height: 1.4; }
.star-fate { font-family: var(--mono); font-size: 11px; color: var(--amber); margin-top: 6px; }
.adopt-name { font-size: 22px; font-weight: 700; color: var(--amber); margin-top: 14px; }
.adopt-meta { font-family: var(--mono); color: var(--ice); font-size: 12px; margin: 6px 0 8px; }
.adopt-meta .age { color: var(--amber); }
.adopt-status { line-height: 1.5; }
.hr { display: block; width: 100%; height: auto; }

/* make & play: composer, gallery, sandbox */
canvas.toy { width: 100%; height: 260px; display: block; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,0.35); cursor: crosshair; touch-action: none; }
canvas.toy.tall { height: 340px; }
.toy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.toy-hint { font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
.gallery-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.gallery-form .field { flex: 1; min-width: 180px; max-width: 320px; }
.seg { display: inline-flex; gap: 6px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, calc(50% - 6px)), 1fr)); gap: 12px; margin-top: 14px; max-height: 520px; overflow-y: auto; padding-right: 2px; }
.gallery-item { position: relative; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.03); transition: border-color .15s ease, transform .15s ease; }
.gallery-item:hover { border-color: color-mix(in srgb, var(--world) 60%, transparent); transform: translateY(-2px); }
.gallery-item .g-play { display: block; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: none; text-align: center; }
.gallery-item canvas { width: 100%; display: block; border-radius: 8px; background: rgba(0,0,0,0.4); }
.gallery-item .g-name { display: block; font-family: var(--mono); font-size: 11px; color: var(--ice); margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-item .g-star { position: absolute; top: 12px; right: 12px; padding: 4px 9px; font-family: var(--mono); font-size: 11px; border-radius: 999px;
  border: 1px solid rgba(255,204,135,0.5); background: rgba(4,8,18,0.82); }
.gallery-item .g-star.on { color: #1a0f05; background: var(--amber); border-color: var(--amber); }
.gallery-empty { color: var(--dim); font-style: italic; margin-top: 14px; }
.cotd { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 14px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--world) 45%, transparent); border-radius: 14px; }
.cotd canvas { width: 120px; height: 72px; border-radius: 8px; background: rgba(0,0,0,0.4); flex: 0 0 auto; }
.cotd b { display: block; font-size: 16px; }
.cotd > div { flex: 1 1 160px; min-width: 0; }
.cotd .k { display: block; }
.missions { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; color: var(--muted); }
.missions li::before { content: "◇ "; color: var(--world); }
.missions li.done { color: var(--ink); }
.missions li.done::before { content: "◆ "; }

/* ask */
.portal { position: absolute; right: -30px; top: 30px; width: 190px; height: 190px; opacity: 0.85; pointer-events: none; }
.portal ellipse { transform-box: view-box; transform-origin: 95px 95px; animation: spin 18s linear infinite; }
.portal ellipse:nth-child(2) { animation-duration: 11s; animation-direction: reverse; }
.void-form { max-width: 72%; }
.void-form .field { flex: 1; min-width: 180px; }
.void-out { margin-top: 14px; min-height: 2.6em; font-size: 18px; font-style: italic; line-height: 1.4; color: #e6defc; max-width: 72%; }
.horo { margin-top: 12px; line-height: 1.7; font-size: 15px; }
.horo b { color: var(--world); font-weight: 600; }
.quiz-q { font-size: 17px; line-height: 1.45; margin: 4px 0 12px; }
.quiz-opts { display: grid; gap: 8px; }
.quiz-opts button { text-align: left; border: 1px solid color-mix(in srgb, var(--world) 45%, transparent); background: rgba(255,255,255,0.03); border-radius: 14px; padding: 10px 14px; font-size: 15px; }
.quiz-opts button:hover { background: color-mix(in srgb, var(--world) 14%, transparent); }
.r-name { font-size: 24px; font-weight: 750; color: var(--world); }
.r-desc { color: var(--muted); line-height: 1.55; margin-top: 8px; }

/* real sky: figures with captions borrowed from the Star Atlas direction */
.sky .tile { background: linear-gradient(180deg, rgba(155,215,255,0.05), rgba(155,215,255,0.01)), rgba(8, 14, 36, 0.78); }
.sky .tile::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(155,215,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(155,215,255,0.06) 1px, transparent 1px); background-size: 28px 28px; }
.fig { position: relative; margin: 0; }
.fig figcaption { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.25; color: rgba(239, 230, 210, 0.92); }
.fig figcaption b { font-family: var(--mono); font-style: normal; font-weight: 400; font-size: 11px; letter-spacing: 0.16em; color: var(--ice); margin-right: 8px; }
.moon-svg { display: block; width: 150px; height: 150px; margin: 6px auto 0; }
.iss-map { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; border-radius: 12px; border: 1px solid rgba(155, 215, 255, 0.25); background: #0b1530; }
.sky-data { font-family: var(--mono); font-size: 12.5px; color: var(--amber); line-height: 1.6; margin-top: 8px; }

/* the wall: a nebula of messages */
.nebula-wrap { position: relative; }
#nebula { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 55%, rgba(60, 25, 40, 0.6), rgba(8, 6, 20, 0.9) 70%); touch-action: manipulation; }
#nebula .msg { cursor: pointer; }
.nebula-note { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; padding: 20px; text-align: center; pointer-events: none;
  font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2.2vw, 22px); color: rgba(239, 230, 210, 0.8); }
.nebula-note[hidden] { display: none; }
#nebula .msg:hover, #nebula .msg.on { filter: drop-shadow(0 0 6px #fff); }
.tip { position: absolute; z-index: 5; max-width: 280px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 238, 215, 0.97); color: #2d1806; font-size: 14px; font-weight: 600;
  line-height: 1.3; box-shadow: 0 10px 24px rgba(0,0,0,0.4); pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); overflow-wrap: anywhere; }
.tip.below { transform: translate(-50%, 14px); }
.tip small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10.5px; color: #7a5326; margin-top: 4px; }
.wall-list { margin-top: 14px; display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.wall-entry { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,0.03); }
.wall-entry.wish { border-color: rgba(255,143,192,0.3); background: rgba(255,143,192,0.05); }
.w-msg { line-height: 1.45; overflow-wrap: anywhere; }
.w-meta { font-family: var(--mono); font-size: 11px; color: var(--ice); margin-top: 6px; }
.w-name { color: var(--amber); }
.wall-empty { color: var(--dim); font-style: italic; }
.wall-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.wish-fly { position: fixed; z-index: 60; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none;
  background: #fff3f8; box-shadow: 0 0 18px 6px rgba(255, 143, 192, 0.9); }

/* observatory */
.obs-sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--world); margin: 22px 0 10px; }
.obs-sub:first-of-type { margin-top: 0; }
.obs-grid { display: grid; gap: 14px; }
.obs-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.obs-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: rgba(255,255,255,0.03); min-width: 0; }
.stat .n { display: block; font-family: var(--mono); font-weight: 500; font-size: 24px; color: var(--world); overflow-wrap: anywhere; line-height: 1.15; }
.stat .n.long { font-size: 15px; letter-spacing: -0.02em; }
.stat .l { display: block; margin-top: 8px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }

/* Stormy Fans check-in strip. The club's ink for this station is #46339A;
   on this dark page it is the fill, with a lighter violet for text. */
.stamp-strip { display: flex; align-items: center; gap: 18px; margin-top: 14px; padding: 14px 16px; border: 1px dashed rgba(185, 162, 255, 0.4); border-radius: 16px; background: rgba(70, 51, 154, 0.12); }
.stamp-my-card { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid currentColor; border-radius: 999px;
  color: #d4c6ff; background: rgba(70, 51, 154, 0.45); font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-decoration: none; transition: background .15s ease; }
.stamp-my-card:hover { background: #46339A; color: #fff; }
.stamp-my-card svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.stamp-note { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--muted); }
.stamp-note a { color: #d4c6ff; }
.stat:hover { background: rgba(255,255,255,0.05); }
.site-foot { position: relative; z-index: 1; padding: 30px 0 90px; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* 6 · Map view -------------------------------------------------------------- */
#mapView { position: fixed; inset: var(--header-h) 0 0 0; z-index: 40; background: #02030a; opacity: 0; transition: opacity .5s ease; }
#mapView.shown { opacity: 1; }
#universe { width: 100%; height: 100%; display: block; }
#universe .body-btn { cursor: pointer; outline: none; }
#universe .body-btn .halo { opacity: 0; transition: opacity .25s ease; }
#universe .body-btn:hover .halo, #universe .body-btn:focus-visible .halo { opacity: 1; }
#universe .lbl { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 0.16em; fill: #eef2fb; }
#universe .sub { font-family: var(--mono); font-size: 12.5px; fill: var(--ice); }
#universe.portrait .lbl { font-size: 30px; }
#universe.portrait .sub { font-size: 24px; }
#universe .sub.here { fill: var(--amber); }
#universe .tw { animation: twinkle 3.6s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(2.4); opacity: 0; } }
.hud { position: absolute; font-family: var(--mono); font-size: 12px; color: #b9c3d9; letter-spacing: 0.04em; }
.hud.tl { left: 22px; top: 18px; padding: 10px 14px; border-left: 2px solid var(--ice); background: linear-gradient(90deg, rgba(155,215,255,0.08), transparent); }
.hud.tl b { display: block; font-family: var(--display); font-size: 19px; color: #fff; letter-spacing: 0.01em; }
.hud.bl { left: 22px; bottom: 18px; color: #8f9ab3; }
.hud kbd { font-family: var(--mono); border: 1px solid rgba(255,255,255,0.25); border-radius: 5px; padding: 1px 6px; color: #e7ecf7; }
.hud.br { right: 22px; bottom: 18px; display: flex; gap: 8px; }
.hud-btn { border: 1px solid rgba(155,215,255,0.4); background: rgba(5,10,25,0.75); border-radius: 999px; padding: 8px 14px; font-family: var(--mono); font-size: 12px; color: #dfe8f7; }
.hud-btn:hover { border-color: var(--ice); }
.maplist { position: absolute; right: 22px; bottom: 64px; width: min(340px, calc(100% - 44px)); max-height: 62%; overflow: auto; background: rgba(8, 12, 30, 0.96);
  border: 1px solid rgba(155,215,255,0.3); border-radius: 16px; padding: 10px; }
.maplist button { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
.maplist button:hover, .maplist button:focus-visible { background: rgba(155,215,255,0.1); }
.maplist small { font-family: var(--mono); color: var(--ice); font-size: 11.5px; text-align: right; }

/* 7 · Floating controls and overlays ---------------------------------------- */
canvas#shooters { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }  /* explicit size: see docs/DECISIONS.md D11 */
#timeTint { position: fixed; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: 0.5; }
#dimOverlay { position: fixed; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .9s ease; background: radial-gradient(circle at 50% 40%, transparent 12%, rgba(0,0,0,0.93) 88%); }
#dimOverlay.on { opacity: 1; }
body.event-horizon, body.event-horizon * { cursor: none !important; }
.float { position: fixed; bottom: 18px; z-index: 45; border: 1px solid rgba(255,204,135,0.42); background: rgba(10,10,28,0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; padding: 11px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink); }
.float:hover { border-color: var(--amber); }
.audio-toggle { right: 18px; }
.audio-toggle .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; margin-right: 8px; vertical-align: middle; }
.audio-toggle .bars i { width: 2px; background: var(--amber); height: 4px; border-radius: 1px; }
.audio-toggle.playing .bars i { animation: eq 900ms ease-in-out infinite; }
.audio-toggle .bars i:nth-child(2) { animation-delay: .15s; } .audio-toggle .bars i:nth-child(3) { animation-delay: .3s; } .audio-toggle .bars i:nth-child(4) { animation-delay: .45s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 12px; } }
.fx-cluster { position: fixed; left: 18px; bottom: 18px; z-index: 45; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.fx-cluster .float { position: static; }
.fx-panel { display: flex; flex-direction: column; gap: 8px; max-height: 0; overflow: hidden; opacity: 0; transform: translateY(8px); pointer-events: none; transition: max-height .3s ease, opacity .25s ease, transform .25s ease; }
.fx-cluster.open .fx-panel { max-height: 280px; opacity: 1; transform: none; pointer-events: auto; }
.fx-panel button { white-space: nowrap; }
body.map-open .float, body.map-open .fx-cluster { display: none; }
#secret { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; text-align: center; padding: 24px; cursor: pointer;
  background: radial-gradient(circle at center, rgba(10,6,24,0.86), rgba(3,4,10,0.96)); backdrop-filter: blur(4px); }
#secret .s-inner { max-width: 480px; }
#secret h3 { font-size: clamp(28px, 5vw, 42px); color: var(--amber); margin: 0 0 16px; }
#secret p { line-height: 1.6; font-size: 17px; }
#secret small { display: block; margin-top: 14px; color: var(--dim); font-family: var(--mono); letter-spacing: 0.1em; }

/* 8 · Responsive and reduced motion ----------------------------------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .bubble { right: 4%; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s2, .s3, .s4, .s6 { grid-column: span 2; }
  .r2 { grid-row: auto; }
  .obs-grid.cols-4, .obs-grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .void-form, .void-out { max-width: 100%; }
  .portal { opacity: 0.35; }
}
@media (max-width: 760px) {
  .links { display: none; }
  .hdr { justify-content: space-between; gap: 10px; padding: 0 14px; }
  .switch button { padding: 7px 10px; }
  .minimap { width: 70px; height: 40px; }
  .wall-forms { grid-template-columns: 1fr; }
  .hud.tl span, .hud.bl { display: none; }
  .portal { display: none; }
  .stamp-strip { flex-direction: column; align-items: flex-start; }
  .float { padding: 10px 13px; }
  .site-foot { padding-bottom: 110px; }
}
/* Phones: everything in the header has to fit in one row at 360 px. */
@media (max-width: 420px) {
  .hdr { gap: 8px; padding: 0 12px; }
  .brand { font-size: 11px; letter-spacing: 0.02em; }
  .switch button { padding: 6px 8px; font-size: 11px; }
  .minimap { width: 56px; height: 34px; }
}
@media (max-width: 370px) { .brand-word { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
