:root {
  --night: #0d1330;
  --night-2: #1b2552;
  --glow: #4aa8ff;
  --glow-soft: rgba(74, 168, 255, .45);
  --cream: #fff9ef;
  --paper: rgba(255, 251, 243, .86);
  --ink: #2a2838;
  --ink-soft: #5d5a70;
  --line: rgba(42, 40, 56, .12);
  --blue: #2f7bff;
  --gold: #f4b740;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 24, 60, .18), 0 2px 6px rgba(20, 24, 60, .08);
  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Jost", "Futura", system-ui, -apple-system, "Segoe UI", sans-serif;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--night);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}
[hidden] { display: none !important; }

#scene {
  position: fixed; inset: 0; width: 100%; height: 100%;
  display: block; touch-action: none; outline: none;
}

/* ───────── chips & buttons ───────── */
.chip {
  display: inline-flex; align-items: center; gap: .4em;
  min-height: 40px; padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: var(--paper);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ink); font: 500 14px/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .2s ease, background .2s ease;
  user-select: none; -webkit-user-select: none;
}
.chip:hover { transform: translateY(-1px); background: #fff; }
.chip:active { transform: translateY(0) scale(.98); }
.chip:focus-visible, .card-close:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.chip.icon { width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 18px; }
.chip.solid { background: var(--blue); color: #fff; border-color: transparent; }
.chip.solid:hover { background: #4a8dff; }
#soundBtn .ico-on { display: none; }
#soundBtn[aria-pressed="true"] .ico-on { display: inline; }
#soundBtn[aria-pressed="true"] .ico-off { display: none; }

/* ───────── 1 · loader ───────── */
#loader {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: radial-gradient(ellipse at 50% 42%, #18234a 0%, #0b1029 55%, #05070f 100%);
  color: #dfe6ff; transition: opacity 1.4s ease, visibility 1.4s;
}
#loader.done { opacity: 0; visibility: hidden; }
.fly-stage { position: relative; width: 260px; height: 200px; animation: drift 6s ease-in-out infinite; }
.fly-halo { position: absolute; inset: -40px; background: radial-gradient(circle at 50% 48%, rgba(74, 168, 255, .32), rgba(74, 168, 255, 0) 60%); animation: halo 2.2s ease-in-out infinite; }
.fly3d { position: absolute; inset: 0; perspective: 640px; transform-style: preserve-3d; transform: rotateX(46deg) rotateZ(-14deg); }
.b-wing { position: absolute; left: 50%; top: 18px; width: 118px; height: 170px; transform-origin: 0 50%; transform-style: preserve-3d; }
.b-wing img { position: absolute; left: -5px; display: block; user-select: none; -webkit-user-drag: none; }
.b-wing .fw { width: 118px; top: -10px; }
.b-wing .hw { width: 100px; top: 58px; }
.b-right { animation: beatR 0.62s cubic-bezier(.45, .05, .4, 1) infinite alternate; }
.b-left { animation: beatL 0.62s cubic-bezier(.45, .05, .4, 1) infinite alternate; }
@keyframes beatR { from { transform: rotateY(-8deg); } to { transform: rotateY(-78deg); } }
@keyframes beatL { from { transform: scaleX(-1) rotateY(-8deg); } to { transform: scaleX(-1) rotateY(-78deg); } }
.b-body { position: absolute; left: calc(50% - 5px); top: 58px; width: 10px; height: 74px; border-radius: 6px 6px 50% 50%;
  background: linear-gradient(90deg, #0d1020, #3a4466 50%, #0d1020); transform: translateZ(2px); }
.b-head { position: absolute; left: -1px; top: -9px; width: 12px; height: 12px; border-radius: 50%; background: #1a1f33; }
.b-head::before, .b-head::after { content: ''; position: absolute; top: -26px; width: 1.5px; height: 30px; background: #1a1f33; border-radius: 2px; }
.b-head::before { left: 2px; transform: rotate(-22deg); transform-origin: bottom; }
.b-head::after { right: 2px; transform: rotate(22deg); transform-origin: bottom; }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8px, -12px); } }
@keyframes halo { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.loader-meta { margin-top: 10px; font: 300 12px/1 var(--sans); letter-spacing: .32em; color: rgba(223, 230, 255, .72); font-variant-numeric: tabular-nums; }
.loader-meta .unit { margin-left: .15em; opacity: .55; }
.loader-bar { width: 96px; height: 1px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: rgba(200, 225, 255, .85); transition: width .3s ease; }

/* ───────── cinematic letterbox ───────── */
#bars { position: fixed; inset: 0; z-index: 19; pointer-events: none; }
#bars i { position: absolute; left: 0; right: 0; height: 0; background: #04050a; transition: height 1.4s cubic-bezier(.65, 0, .35, 1); }
#bars i:first-child { top: 0; } #bars i:last-child { bottom: 0; }
body.cinematic #bars i { height: 11vh; }

/* ───────── title card + goodbye ───────── */
.overlay {
  position: fixed; inset: 0; z-index: 20; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--safe-top) + 12vh) 16px calc(var(--safe-bottom) + 12vh);
  text-align: center; color: #fff;
}
.overlay button { pointer-events: auto; }
.title-card .kicker, .goodbye-kicker {
  margin: 0 0 6px; font: 400 12px var(--sans); letter-spacing: .6em; text-transform: uppercase; padding-left: .6em;
  opacity: 0; animation: rise 1.6s .2s ease forwards; text-shadow: 0 1px 14px rgba(0, 0, 0, .5);
}
.welcome-title {
  margin: 0; font: italic 300 clamp(54px, 10vw, 118px)/1 var(--serif); letter-spacing: .01em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, .45);
  opacity: 0; filter: blur(10px); transform: translateY(10px) scale(1.02); animation: rise 2.4s .5s cubic-bezier(.2, .7, .2, 1) forwards;
}
.welcome-sub {
  margin: 14px 0 0; font: 300 clamp(16px, 2vw, 21px) var(--serif); font-style: italic; letter-spacing: .04em;
  opacity: 0; animation: rise 2s 1.5s ease forwards; text-shadow: 0 1px 14px rgba(0, 0, 0, .55);
}
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.overlay.leaving { transition: opacity 1.2s ease; opacity: 0; }
#goodbye { gap: 10px; }
.goodbye-msg { margin: 0; max-width: 18ch; font: italic 300 clamp(36px, 6.4vw, 72px)/1.1 var(--serif); text-shadow: 0 4px 40px rgba(0, 0, 0, .5); opacity: 0; filter: blur(8px); animation: rise 2.4s .4s ease forwards; }
.goodbye-small { margin: 4px 0 18px; max-width: 34ch; font: 300 17px/1.5 var(--sans); letter-spacing: .02em; opacity: 0; animation: rise 1.6s 2s ease forwards; text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
#goodbye .chip { opacity: 0; animation: rise 1.2s 3s ease forwards; }
#skipIntro { position: fixed; z-index: 26; right: 18px; bottom: calc(var(--safe-bottom) + 13vh); opacity: 0; animation: fadein2 .8s 1.6s ease forwards; }
@keyframes fadein2 { to { opacity: 1; } }
.ghost-chip { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); letter-spacing: .2em; text-transform: uppercase; font: 400 11px var(--sans); }
.ghost-chip:hover { background: rgba(255, 255, 255, .2); }

/* ───────── corner + HUD ───────── */
#corner { position: fixed; z-index: 30; top: calc(var(--safe-top) + 14px); right: 16px; }
#hud {
  position: fixed; z-index: 25; left: 16px; right: 72px; top: calc(var(--safe-top) + 14px);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap;
  pointer-events: none; animation: fadein .8s ease;
}
#hud > * { pointer-events: auto; }
.hud-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.counter b { font-variant-numeric: tabular-nums; }
.counter.pop { animation: pop .6s ease; }
@keyframes pop { 40% { transform: scale(1.12); } }
@keyframes fadein { from { opacity: 0; } }

/* ───────── discovery card ───────── */
#card {
  position: fixed; z-index: 30; left: 50%; bottom: calc(var(--safe-bottom) + 22px);
  width: min(calc(100% - 32px), 460px); transform: translateX(-50%);
  padding: 20px 46px 20px 22px; border-radius: var(--radius);
  background: var(--paper); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow);
  animation: cardin .5s cubic-bezier(.2, .8, .2, 1);
}
@keyframes cardin { from { opacity: 0; transform: translate(-50%, 16px) scale(.97); } }
.card-kicker { margin: 0 0 8px; color: #9a7a3c; font: 500 11px var(--sans); letter-spacing: .32em; text-transform: uppercase; }
.card-text { margin: 0; font: italic 400 24px/1.35 var(--serif); color: var(--ink); text-wrap: pretty; }
.card-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink-soft);
  font-size: 15px; cursor: pointer;
}
.card-close:hover { background: var(--line); }

/* ───────── toast ───────── */
#toast {
  position: fixed; z-index: 35; left: 50%; top: calc(var(--safe-top) + 72px);
  max-width: calc(100% - 32px); transform: translate(-50%, -8px);
  padding: 10px 18px; border-radius: 999px;
  background: rgba(10, 14, 30, .72); color: #fff; font: 400 13px var(--sans); letter-spacing: .06em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .4s ease, transform .4s ease; text-align: center;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────── page fade (to gallery etc.) ───────── */
#fade { position: fixed; inset: 0; z-index: 60; background: var(--cream); opacity: 0; pointer-events: none; transition: opacity .7s ease; }
#fade.on { opacity: 1; pointer-events: auto; }

.noscript { position: fixed; inset: 0; display: grid; place-content: center; color: #fff; font: 20px var(--serif); }

@media (max-width: 560px) {
  .counter-label { display: none; }
  .hud-actions .chip span { display: none; }
  #hud { right: 68px; }
  .card-text { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .welcome-title .line, .welcome-sub, .goodbye-msg, .goodbye-small, #goodbye .chip { opacity: 1; transform: none; filter: none; }
}

/* ───────── island navigation ───────── */
#nav {
  position: fixed; z-index: 26; left: 50%; bottom: calc(var(--safe-bottom) + 14px); transform: translateX(-50%);
  display: flex; gap: 4px; padding: 6px; border-radius: 22px;
  background: rgba(255, 251, 243, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow); animation: fadein .8s ease;
}
#nav button {
  display: grid; justify-items: center; gap: 1px; min-width: 62px; padding: 6px 8px; border: 0; border-radius: 16px;
  background: transparent; color: var(--ink-soft); font: 500 10.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s;
}
#nav button span { font-size: 19px; line-height: 1.1; }
#nav button.on { background: var(--blue); color: #fff; }
#nav button:hover:not(.on) { background: rgba(42, 40, 56, .07); }
#nav button:focus-visible { outline: 3px solid var(--glow); outline-offset: 1px; }

#place {
  position: fixed; z-index: 27; left: 50%; bottom: calc(var(--safe-bottom) + 92px); transform: translateX(-50%);
  width: min(calc(100% - 32px), 440px); padding: 16px 18px; border-radius: var(--radius);
  background: var(--paper); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow); animation: cardin .5s cubic-bezier(.2, .8, .2, 1);
}
.place-sub { margin: 0 0 14px; font: italic 400 21px/1.35 var(--serif); color: var(--ink); }
.place-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#card { bottom: calc(var(--safe-bottom) + 92px); }

#wishes {
  position: fixed; z-index: 40; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(calc(100% - 32px), 480px); max-height: min(80dvh, 640px); overflow: auto;
  padding: 18px 20px; border-radius: 22px; background: var(--cream); box-shadow: var(--shadow); animation: fadein .3s ease;
}
#wishes header { display: flex; align-items: center; justify-content: space-between; }
#wishes h2 { margin: 0 0 6px; font: italic 400 36px var(--serif); }
#wishes .card-close { position: static; }
#wishList { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
#wishList li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
#wishList li.done { background: linear-gradient(90deg, #fff6df, #fff); border-color: #f2d68f; }
#wishList li.done .wish-text { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
#wishList li.empty { color: var(--ink-soft); font-style: italic; justify-content: center; }
#wishList input[type=checkbox] { width: 20px; height: 20px; accent-color: #e9a93c; flex: none; }
.wish-text { flex: 1; font: 400 19px var(--serif); }
.wish-tag { font: 700 10px var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.wish-del { border: 0; background: transparent; color: var(--ink-soft); cursor: pointer; font-size: 13px; width: 28px; height: 28px; border-radius: 50%; }
.wish-del:hover { background: var(--line); }
#wishForm { display: flex; gap: 8px; flex-wrap: wrap; }
#wishForm input { flex: 1 1 200px; min-height: 42px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); font: 400 16px var(--sans); }
#wishForm select { min-height: 42px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); font: 600 14px var(--sans); background: #fff; }

@media (max-width: 560px) {
  #nav button { min-width: 54px; padding: 6px 4px; }
  #place, #card { bottom: calc(var(--safe-bottom) + 86px); }
}

/* gold rule under the place title, like a film credit */
#place .card-kicker::after { content: ''; display: block; width: 28px; height: 1px; margin-top: 8px; background: #c9a25e; }
@media (prefers-reduced-motion: reduce) {
  .welcome-title, .welcome-sub, .title-card .kicker, .goodbye-msg, .goodbye-small, #goodbye .chip { opacity: 1; transform: none; filter: none; }
  .b-left, .b-right, .fly-stage { animation-duration: 2s; }
}

/* on wider screens the place panel sits to the side, so the view (and her painting) stays clear */
@media (min-width: 900px) {
  #place { left: 28px; bottom: calc(var(--safe-bottom) + 96px); transform: none; width: 380px; animation: placein .6s cubic-bezier(.2, .8, .2, 1); }
  @keyframes placein { from { opacity: 0; transform: translateX(-12px); } }
}

/* ───────── loader butterfly: smaller and more delicate ───────── */
.fly-stage { width: 150px; height: 118px; }
.fly3d { transform: rotateX(48deg) rotateZ(-14deg) scale(.56); transform-origin: 50% 50%; inset: -40px -55px; }
.fly-halo { inset: -30px; background: radial-gradient(circle at 50% 50%, rgba(120, 190, 255, .2), rgba(74, 168, 255, 0) 62%); }
.b-right { animation-duration: .9s; animation-timing-function: cubic-bezier(.55, .05, .35, 1); }
.b-left { animation-duration: .9s; animation-timing-function: cubic-bezier(.55, .05, .35, 1); }
.loader-meta { margin-top: 4px; font-size: 10.5px; letter-spacing: .42em; }
.loader-bar { width: 72px; }
.loader-line { margin: 6px 0 0; font: italic 300 15px var(--serif); letter-spacing: .04em; color: rgba(223, 230, 255, .5); }

/* ───────── Raga-style editorial layer ───────── */
#story {
  position: fixed; z-index: 18; left: clamp(20px, 6vw, 110px); top: 50%; transform: translateY(-58%);
  max-width: 460px; color: #f4f1ea; pointer-events: none; animation: storyin 1.6s .2s cubic-bezier(.2, .7, .2, 1) both;
  text-shadow: 0 2px 30px rgba(0, 10, 30, .35);
}
@keyframes storyin { from { opacity: 0; transform: translateY(-54%); filter: blur(6px); } }
#story h2 { margin: 0; font: 400 clamp(40px, 5.2vw, 78px)/1.02 var(--serif); letter-spacing: -.005em; }
#story h2 span { display: inline; }
#story h2 em { display: block; margin-top: .06em; font-style: italic; color: #f2c98a; float: left; padding-right: .22em; }
#story .meander { display: block; clear: both; width: 170px; height: 8px; margin: 22px 0 18px; opacity: .7;
  background: repeating-linear-gradient(90deg, #d9b878 0 2px, transparent 2px 9px), linear-gradient(#d9b878, #d9b878) 0 100% / 100% 1px no-repeat; }
#story p { margin: 0 0 24px; max-width: 36ch; font: 300 15.5px/1.6 var(--sans); color: rgba(240, 238, 232, .78); }
#story dl { display: flex; gap: 34px; margin: 0; }
#story dt { font: 500 9.5px var(--sans); letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
#story dd { margin: 4px 0 0; font: 300 30px/1 var(--serif); }
@media (max-width: 760px) { #story { display: none; } }

/* bottom-left small-caps navigation, like a film's chapter list */
#nav {
  left: 18px; right: auto; transform: none; bottom: calc(var(--safe-bottom) + 16px);
  gap: 2px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
}
#nav button { min-width: 0; padding: 9px 14px; display: block; color: rgba(245, 242, 235, .78); font: 500 11px var(--sans); letter-spacing: .26em; text-shadow: 0 1px 10px rgba(0, 0, 0, .45); border: 1px solid transparent; }
#nav button span { display: none; }
#nav button.on { background: rgba(10, 14, 26, .32); color: #fff; border-color: rgba(255, 255, 255, .55); border-radius: 999px; }
#nav button:hover:not(.on) { background: none; color: #fff; }
@media (max-width: 560px) {
  #nav { left: 8px; right: 8px; justify-content: space-between; }
  #nav button { padding: 8px 7px; letter-spacing: .14em; font-size: 9.5px; }
}
/* top corner chips become quiet small-caps */
#hud .chip, #corner .chip { background: rgba(10, 14, 26, .22); color: #f3f0ea; border-color: rgba(255, 255, 255, .28); font: 500 10.5px var(--sans); letter-spacing: .24em; text-transform: uppercase; box-shadow: none; }
#hud .counter b { font-weight: 500; }

#story h2 span:first-child { display: block; }
#story h2 em { display: inline; float: none; padding-right: 0; margin: 0; }

/* ───────── loader: the Blender-rendered wingbeat, tiny ───────── */
.fly-stage { width: 46px; height: 43px; animation: drift 5s ease-in-out infinite; }
.fly-halo { inset: -34px; background: radial-gradient(circle, rgba(110, 175, 255, .22), rgba(110, 175, 255, 0) 62%); }
.fly-sprite { position: absolute; inset: 0; background: url(../textures/loader_flap.webp) 0 0 / 1200% 100% no-repeat; animation: flapsheet .5s steps(12, jump-none) infinite; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35)); }
@keyframes flapsheet { to { background-position: 100% 0; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(-3deg); } 50% { transform: translate(5px, -7px) rotate(2deg); } }
.loader-meta { margin-top: 14px; }

/* ───────── welcome: the name writes itself in, a butterfly passes along it ───────── */
.welcome-title { position: relative; opacity: 1; transform: none; animation: none; text-shadow: none; filter: drop-shadow(0 4px 30px rgba(0, 0, 0, .45)); }
.welcome-title .ch { display: inline-block; opacity: 0; filter: blur(12px); transform: translateY(.18em) rotate(4deg);
  animation: chin 1.5s calc(.9s + var(--i) * .085s) cubic-bezier(.2, .7, .2, 1) forwards;
  background: linear-gradient(100deg, #fff 0 40%, #ffe6b8 50%, #fff 60% 100%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes chin { 60% { filter: blur(0); } to { opacity: 1; filter: none; transform: none; background-position: 100% 0; } }
.welcome-line { display: block; width: 0; height: 1px; margin: 18px auto 0; background: linear-gradient(90deg, transparent, rgba(255, 226, 170, .9), transparent); animation: line 1.8s 1.9s ease forwards; }
@keyframes line { to { width: min(320px, 60vw); } }
.welcome-fly { position: absolute; left: 50%; top: 50%; width: 34px; height: 32px; margin: -60px 0 0 -17px; opacity: 0; pointer-events: none;
  background: url(../textures/loader_flap.webp) 0 0 / 1200% 100% no-repeat; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4));
  animation: flapsheet .42s steps(12, jump-none) infinite, flyby 4.6s .7s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes flyby {
  0% { opacity: 0; transform: translate(-46vw, 8vh) rotate(-8deg) scale(.8); }
  12% { opacity: 1; }
  55% { transform: translate(-2vw, -2vh) rotate(4deg) scale(1); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(40vw, -14vh) rotate(10deg) scale(.7); }
}
@media (prefers-reduced-motion: reduce) { .welcome-title .ch { animation: none; opacity: 1; filter: none; transform: none; color: #fff; } .welcome-fly { display: none; } .welcome-line { width: 200px; animation: none; } }

/* ───────── the bench view ───────── */
#scenery { justify-content: flex-end; padding-bottom: calc(var(--safe-bottom) + 15vh); gap: 10px; z-index: 22; }
.scenery-kicker { margin: 0; font: 500 11px var(--sans); letter-spacing: .5em; text-transform: uppercase; padding-left: .5em; opacity: 0; animation: rise 1.6s .3s ease forwards; text-shadow: 0 1px 14px rgba(0, 0, 0, .55); }
.scenery-text { margin: 0 0 14px; max-width: 30ch; font: italic 300 clamp(24px, 3.4vw, 38px)/1.25 var(--serif); opacity: 0; filter: blur(6px); animation: rise 2.4s .8s ease forwards; text-shadow: 0 2px 26px rgba(0, 0, 0, .55); }
#scenery .chip { opacity: 0; animation: rise 1.2s 2.6s ease forwards; }

/* place names (Raga OS style): spaced serif capitals in each place's colour, crisp HTML over the 3D view */
#placeLabels { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.plabel { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; opacity: 0; transition: opacity .6s ease; white-space: nowrap; will-change: transform; }
.plabel.on { opacity: 1; }
.plabel b { font: 600 11px/1 var(--serif); letter-spacing: .32em; padding-left: .32em; text-transform: uppercase; color: var(--c); text-shadow: 0 0 12px color-mix(in srgb, var(--c) 55%, transparent), 0 1px 3px rgba(0, 0, 0, .7); }
.plabel i { font: italic 400 13px/1.1 var(--serif); color: rgba(255, 244, 230, .82); text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }
body.cinematic #placeLabels { display: none; }

/* ───────── the Moonlit Journal ───────── */
#journal {
  position: fixed; z-index: 40; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(calc(100% - 32px), 560px); max-height: min(86dvh, 760px); overflow: auto;
  padding: 18px 22px 20px; border-radius: 22px; box-shadow: var(--shadow); animation: fadein .3s ease;
  background: radial-gradient(120% 70% at 85% -10%, rgba(255, 226, 150, .22), transparent 60%), linear-gradient(180deg, #fffaf0, #fbf3e3);
}
#journal header { display: flex; align-items: center; justify-content: space-between; }
#journal h2 { margin: 0; font: italic 400 36px var(--serif); }
#journal h2::before { content: '☾ '; color: #c9a25e; font-style: normal; }
#journal .card-close { position: static; }
.jr-date { margin: 2px 0 12px; font: 600 12px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.jr-otd { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #ecd9a8; font: 400 18px/1.4 var(--serif); }
.jr-otd b { display: block; font: 700 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: #a8813c; margin-bottom: 4px; }
.jr-q { margin: 0 0 6px; font: italic 400 20px var(--serif); }
.jr-moods { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.jr-moods button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px 4px 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.jr-moods button i { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.jr-moods button[aria-checked="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, #fff); transform: translateY(-1px); }
.jr-moods button:focus-visible { outline: 3px solid var(--glow); outline-offset: 1px; }
#jrText { width: 100%; min-height: 140px; resize: vertical; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  font: 400 19px/1.5 var(--serif); color: var(--ink); background-image: repeating-linear-gradient(transparent 0 27.5px, rgba(42, 40, 56, .06) 27.5px 28.5px); background-position: 0 11px; }
#jrText:focus { outline: 2px solid #e5c47a; outline-offset: 1px; }
.jr-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.jr-note { flex: 1; font: italic 400 15px/1.3 var(--serif); color: var(--ink-soft); }
.jr-past { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 10px; }
.jr-past summary { cursor: pointer; font: italic 400 22px var(--serif); list-style: none; }
.jr-past summary::-webkit-details-marker { display: none; }
.jr-past summary::after { content: ' ▾'; font-size: 14px; color: var(--ink-soft); }
.jr-past[open] summary::after { content: ' ▴'; }
#jrCount { font: 600 12px var(--sans); color: var(--ink-soft); }
#jrSearch { width: 100%; margin: 10px 0; min-height: 38px; padding: 6px 12px; border-radius: 12px; border: 1px solid var(--line); font: 400 15px var(--sans); }
#jrList { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
#jrList li { padding: 10px 12px 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c, #ddd); }
#jrList li.empty { border-left-width: 1px; color: var(--ink-soft); font-style: italic; text-align: center; }
.jr-head { display: flex; align-items: center; gap: 8px; font: 700 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.jr-head span { flex: 1; }
.jr-body { margin: 4px 0 0; font: 400 18px/1.45 var(--serif); white-space: pre-wrap; overflow-wrap: anywhere; }
.jr-body.clip { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }

/* seven places in the nav: tighter on phones, and never wider than the screen */
#nav { max-width: calc(100vw - 16px); overflow-x: auto; scrollbar-width: none; }
@media (max-width: 560px) {
  #nav { gap: 2px; padding: 5px; }
  #nav button { min-width: 44px; padding: 6px 2px; font-size: 9px; letter-spacing: .04em; }
  #nav button span { font-size: 17px; }
}

/* ───────── the Music Box (Crystal Spire) ───────── */
#music {
  position: fixed; z-index: 40; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(calc(100% - 32px), 500px); max-height: min(88dvh, 780px); overflow: auto;
  padding: 18px 22px 20px; border-radius: 22px; box-shadow: var(--shadow); animation: fadein .3s ease;
  background: radial-gradient(120% 60% at 15% -10%, rgba(120, 190, 255, .25), transparent 60%), linear-gradient(180deg, #f6faff, #fffaf2);
}
#music header { display: flex; align-items: center; justify-content: space-between; }
#music h2 { margin: 0 0 10px; font: italic 400 36px var(--serif); }
#music .card-close { position: static; }
.mb-now { display: flex; align-items: center; gap: 14px; }
.mb-crystal { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(160deg, #dff0ff, #a9d3ff); box-shadow: 0 0 calc(10px + var(--lv, 0) * 30px) rgba(80, 170, 255, calc(.25 + var(--lv, 0) * .6)); transition: box-shadow .12s; }
.mb-crystal i { width: 16px; height: 30px; background: linear-gradient(180deg, #fff, #6fb8ff); clip-path: polygon(50% 0, 100% 30%, 80% 100%, 20% 100%, 0 30%); transform: scale(calc(1 + var(--lv, 0) * .25)); transition: transform .12s; }
.mb-meta { display: grid; min-width: 0; }
.mb-meta b { font: italic 500 24px/1.15 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-meta span { font: 500 13px var(--sans); color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-bar { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font: 500 12px var(--sans); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.mb-bar input { flex: 1; accent-color: var(--blue); }
.mb-ctrl { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 6px 0; }
.mb-ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 17px; cursor: pointer; }
.mb-ctrl .mb-play { width: 58px; height: 58px; font-size: 22px; background: var(--blue); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(47, 123, 255, .35); }
.mb-ctrl .mb-small { width: 38px; height: 38px; font-size: 14px; opacity: .55; }
.mb-ctrl .mb-small[aria-pressed="true"], .mb-ctrl .mb-small.on { opacity: 1; border-color: var(--blue); }
.mb-ctrl button:focus-visible, .mb-tabs button:focus-visible { outline: 3px solid var(--glow); outline-offset: 2px; }
.mb-vol { display: flex; align-items: center; gap: 8px; margin: 2px auto 12px; max-width: 220px; }
.mb-vol input { flex: 1; accent-color: var(--blue); }
.mb-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.mb-tabs button { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 600 12px var(--sans); cursor: pointer; }
.mb-tabs button[aria-selected="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }
#mbList { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
#mbList li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
#mbList li.on { border-color: var(--blue); background: linear-gradient(90deg, #eaf3ff, #fff); }
#mbList li.empty { justify-content: center; font-style: italic; color: var(--ink-soft); cursor: default; }
.mb-i { width: 22px; text-align: center; color: var(--blue); flex: none; }
.mb-t { flex: 1; min-width: 0; display: grid; }
.mb-t b { font: 500 17px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-t span { font: 500 11px var(--sans); color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-fav { border: 0; background: transparent; font-size: 16px; cursor: pointer; color: #c9c4d4; width: 30px; height: 30px; border-radius: 50%; }
.mb-fav.on { color: #ff5f9e; }
.mb-add { cursor: pointer; display: inline-flex; }
.mb-note { margin: 8px 0 0; font: italic 400 15px/1.3 var(--serif); color: var(--ink-soft); }
#music.drop { outline: 3px dashed var(--blue); outline-offset: -8px; }
.mb-links { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.mb-links summary { cursor: pointer; font: italic 400 22px var(--serif); }
#mbLinkList { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
#mbLinkList li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
#mbLinkList a { flex: 1; color: var(--ink); font: 500 16px var(--serif); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mbLinkList a:hover { text-decoration: underline; }
#mbLinkForm { display: flex; gap: 6px; flex-wrap: wrap; }
#mbLinkForm input { flex: 1 1 140px; min-height: 40px; padding: 6px 10px; border-radius: 12px; border: 1px solid var(--line); font: 400 15px var(--sans); }
#nowPlaying { display: inline-flex; align-items: center; gap: 6px; max-width: 46vw; }
#nowPlaying[hidden] { display: none; }
#nowPlaying #npTitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px var(--sans); }
#nowPlaying .np-note { display: inline-block; animation: npbob 1.2s ease-in-out infinite; }
@keyframes npbob { 50% { transform: translateY(-3px) rotate(-8deg); } }

.mb-stream { margin: 4px 0 12px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.mb-stream[hidden] { display: none; }
.mb-stream-head { display: flex; align-items: center; gap: 8px; padding: 0 4px 6px; }
.mb-stream-head b { flex: 1; font: italic 500 18px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mbEmbed iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
.mb-src { font: 700 9px var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border-radius: 6px; color: #fff; flex: none; }
.mb-src.spotify { background: #1db954; }
.mb-src.youtube { background: #ff3b30; }
#mbLinkList li.play { cursor: pointer; }
#mbLinkList li.on { border-color: var(--blue); background: linear-gradient(90deg, #eaf3ff, #fff); }
#mbLinkList .mb-ln { flex: 1; min-width: 0; font: 500 16px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───────── the way in: enter with sound, or quietly ───────── */
.enter-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; animation: enterin 1s cubic-bezier(.2, .8, .2, 1) both; }
.enter-row[hidden] { display: none; }
@keyframes enterin { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.enter-btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 34px; border-radius: 999px; cursor: pointer;
  font: italic 400 22px/1 var(--serif); letter-spacing: .02em; color: #fff4e0; background: radial-gradient(120% 160% at 50% 0%, rgba(255, 226, 160, .22), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 226, 170, .55); box-shadow: 0 0 0 0 rgba(255, 214, 140, .4), 0 10px 30px -12px rgba(255, 200, 120, .6);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, background .3s; animation: enterglow 3s ease-in-out infinite; }
.enter-btn span { font-style: normal; font-size: 18px; color: #ffd98a; }
.enter-btn:hover { transform: translateY(-2px); background: radial-gradient(120% 160% at 50% 0%, rgba(255, 226, 160, .34), rgba(255, 255, 255, .1)); }
.enter-btn:active { transform: scale(.97); }
@keyframes enterglow { 50% { box-shadow: 0 0 26px -2px rgba(255, 214, 140, .45), 0 10px 30px -12px rgba(255, 200, 120, .6); } }
.enter-quiet { border: 0; background: none; cursor: pointer; padding: 8px 14px; border-radius: 999px; font: 500 11px var(--sans); letter-spacing: .28em; text-transform: uppercase; color: rgba(223, 230, 255, .6); transition: color .25s; }
.enter-quiet:hover { color: rgba(255, 244, 224, .95); }
.enter-btn:focus-visible, .enter-quiet:focus-visible { outline: 2px solid #ffe0a0; outline-offset: 3px; }
#loader.ready .loader-meta, #loader.ready .loader-bar { opacity: 0; transition: opacity .6s; }
@media (prefers-reduced-motion: reduce) { .enter-row, .enter-btn { animation: none; } }

/* phones: text boxes at 16px+ so iOS doesn't zoom the page when she taps one; comfortable touch targets */
#jrSearch, #mbLinkForm input { font-size: 16px; }
@media (pointer: coarse) {
  .wish-del, .mb-fav { width: 36px; height: 36px; }
  .mb-ctrl .mb-small { width: 42px; height: 42px; }
  #nav button { min-height: 48px; }
  button, a, input, label { touch-action: manipulation; }
}

/* ═════════ dark glass (Raga OS's look): every card, panel and button on the island is night-blue glass with gold
   accents, so the island stays the star. (The drawings page keeps its own light style.) ═════════ */
body:not(.gallery-page) {
  --ink: #f2ede4; --ink-soft: rgba(223, 230, 255, .66); --line: rgba(255, 255, 255, .1);
  --glass: linear-gradient(180deg, rgba(22, 30, 62, .8), rgba(9, 13, 30, .86));
  --glass-line: rgba(255, 226, 170, .2); --tile: rgba(255, 255, 255, .055); --tile-line: rgba(255, 255, 255, .1);
}
body:not(.gallery-page) :is(#place, #card, #wishes, #journal, #music) {
  background: var(--glass); color: var(--ink); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .75), 0 0 0 1px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .07);
}
body:not(.gallery-page) :is(#journal, #music) { background: radial-gradient(120% 50% at 80% -10%, rgba(255, 214, 140, .1), transparent 60%), var(--glass); }
body:not(.gallery-page) .card-kicker { color: #e9c983; }
body:not(.gallery-page) .card-text, body:not(.gallery-page) .place-sub { color: var(--ink); }
body:not(.gallery-page) .card-close { color: var(--ink-soft); }
body:not(.gallery-page) .card-close:hover, body:not(.gallery-page) .wish-del:hover { background: rgba(255, 255, 255, .08); }
body:not(.gallery-page) #place .card-kicker::after { background: linear-gradient(90deg, #e9c983, transparent); width: 40px; }
/* buttons */
body:not(.gallery-page) .chip:not(.solid):not(.ghost-chip) { background: rgba(14, 20, 44, .62); color: var(--ink); border-color: rgba(255, 226, 170, .22); box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .7); }
body:not(.gallery-page) .chip:not(.solid):not(.ghost-chip):hover { background: rgba(30, 40, 80, .75); border-color: rgba(255, 226, 170, .45); }
body:not(.gallery-page) .chip.solid { background: linear-gradient(180deg, #f0cf8a, #d9a54c); color: #1d1608; border: 0; box-shadow: 0 8px 22px -10px rgba(233, 180, 90, .7); }
body:not(.gallery-page) .chip.solid:hover { background: linear-gradient(180deg, #f7dba0, #e2b05a); }
/* the tab bar */
body:not(.gallery-page) #nav { background: rgba(10, 15, 34, .7); border-color: rgba(255, 226, 170, .18); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8); }
body:not(.gallery-page) #nav button { color: rgba(223, 230, 255, .62); }
body:not(.gallery-page) #nav button:hover:not(.on) { background: rgba(255, 255, 255, .06); }
body:not(.gallery-page) #nav button.on { background: linear-gradient(180deg, rgba(240, 207, 138, .22), rgba(217, 165, 76, .12)); color: #f6dfa8; box-shadow: inset 0 0 0 1px rgba(240, 207, 138, .4); }
/* rows, tiles, inputs inside the panels */
body:not(.gallery-page) :is(#wishList li, #jrList li, #mbList li, #mbLinkList li, .jr-otd, .mb-stream, .jr-moods button, .mb-tabs button, .mb-ctrl button:not(.mb-play)) {
  background: var(--tile); border-color: var(--tile-line); color: var(--ink);
}
body:not(.gallery-page) #wishList li.done { background: linear-gradient(90deg, rgba(240, 207, 138, .16), var(--tile)); border-color: rgba(240, 207, 138, .35); }
body:not(.gallery-page) #mbList li.on, body:not(.gallery-page) #mbLinkList li.on { background: linear-gradient(90deg, rgba(110, 170, 255, .18), var(--tile)); border-color: rgba(140, 190, 255, .5); }
body:not(.gallery-page) .mb-tabs button[aria-selected="true"] { background: rgba(240, 207, 138, .2); border-color: rgba(240, 207, 138, .5); color: #f6dfa8; }
body:not(.gallery-page) .jr-moods button[aria-checked="true"] { background: color-mix(in srgb, var(--c) 22%, transparent); }
body:not(.gallery-page) .mb-ctrl .mb-play { background: linear-gradient(180deg, #f0cf8a, #d9a54c); color: #1d1608; box-shadow: 0 8px 22px -8px rgba(233, 180, 90, .7); }
body:not(.gallery-page) .jr-otd b, body:not(.gallery-page) .jr-date { color: #e9c983; }
body:not(.gallery-page) :is(#jrText, #jrSearch, #wishForm input, #wishForm select, #mbLinkForm input) {
  background-color: rgba(255, 255, 255, .06); color: var(--ink); border-color: rgba(255, 255, 255, .14);
}
body:not(.gallery-page) #jrText { background-image: repeating-linear-gradient(transparent 0 27.5px, rgba(255, 255, 255, .06) 27.5px 28.5px); }
body:not(.gallery-page) :is(#jrText, #jrSearch, #wishForm input, #mbLinkForm input)::placeholder { color: rgba(223, 230, 255, .42); }
body:not(.gallery-page) #wishForm select option { color: #1d1608; }
body:not(.gallery-page) .mb-crystal { background: linear-gradient(160deg, rgba(160, 205, 255, .35), rgba(70, 120, 210, .25)); }
body:not(.gallery-page) .mb-fav { color: rgba(223, 230, 255, .4); }
body:not(.gallery-page) .mb-fav.on { color: #ff7fb2; }
body:not(.gallery-page) #mbLinkList a { color: var(--ink); }
body:not(.gallery-page) .jr-head, body:not(.gallery-page) .mb-meta span, body:not(.gallery-page) .mb-bar { color: var(--ink-soft); }

/* ───────── fireworks on the terrace: today's words written among them ───────── */
#fwQuote {
  position: fixed; z-index: 28; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding: 18vh 20px calc(var(--safe-bottom) + 64px);
  display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff8ee;
  background: radial-gradient(ellipse 75% 100% at 50% 100%, rgba(8, 10, 32, .5), rgba(8, 10, 32, 0) 72%);
  transition: opacity 1.4s ease;
}
#fwQuote[hidden] { display: none; }
#fwQuote.out { opacity: 0; }
.fw-kicker {
  margin: 0 0 16px; display: flex; align-items: center; gap: 14px;
  font: 500 11px var(--sans); letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: #f4cf86;
  opacity: 0; animation: fwRise 1.4s .6s ease forwards;
}
.fw-kicker::before, .fw-kicker::after { content: ''; width: 46px; height: 1px; background: linear-gradient(90deg, rgba(244, 207, 134, 0), #f4cf86); }
.fw-kicker::after { transform: scaleX(-1); }
.fw-text {
  margin: 0; max-width: min(28ch, 92vw); font: italic 300 clamp(27px, 4.4vw, 54px)/1.24 var(--serif); letter-spacing: .01em;
  text-shadow: 0 0 22px rgba(255, 196, 140, .42), 0 2px 26px rgba(0, 0, 0, .55); transition: text-shadow .3s ease;
}
.fw-text.flash { text-shadow: 0 0 34px rgba(255, 222, 176, .95), 0 0 8px rgba(255, 244, 228, .7), 0 2px 26px rgba(0, 0, 0, .55); }
.fw-text .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(14px); animation: fwWord 1.4s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(1.3s + var(--i) * .16s); }
.fw-who { margin: 16px 0 0; font: 400 12px var(--sans); letter-spacing: .26em; text-transform: uppercase; color: rgba(255, 238, 214, .75); opacity: 0; animation: fwRise 1.4s ease forwards; animation-delay: var(--whoDelay, 4s); }
.fw-who:empty { display: none; }
@keyframes fwWord { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fwRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
#fwStop { position: fixed; z-index: 29; right: 16px; top: calc(var(--safe-top) + 14px); }
#fwStop[hidden] { display: none; }
#nav, #hud, #corner, #counter, #placeLabels { transition: opacity .8s ease; }
body.fw-on #nav, body.fw-on #hud, body.fw-on #corner, body.fw-on #counter, body.fw-on #placeLabels, body.fw-on #toast { opacity: 0 !important; pointer-events: none !important; }
@media (prefers-reduced-motion: reduce) {
  .fw-text .w { filter: none; transform: none; animation-duration: .8s; animation-delay: calc(.6s + var(--i) * .04s); }
}
