/* Layout: one centered column under a living sky (aurora, mist, moon dust, falling rose petals). The hero is a celestial sigil: a sun cradled by a crescent moon inside turning astrolabe rings. Sections are gilt-framed cards. Light = pearl dawn, dark = midnight. */
:root {
  --bg-1: #ece4ff;
  --bg-2: #f7e8f4;
  --bg-3: #fff5e8;
  --aurora-1: rgba(184, 156, 255, .55);
  --aurora-2: rgba(255, 178, 210, .45);
  --aurora-3: rgba(160, 210, 255, .45);
  --cloud: rgba(255, 255, 255, .8);
  --glass: rgba(255, 255, 255, .6);
  --chip-bg: rgba(255, 255, 255, .55);
  --option-bg: rgba(255, 255, 255, .6);
  --bundle-tint: rgba(236, 200, 120, .28);
  --heading: #2c2358;
  --text: #3a3166;
  --muted: #655c8f;
  --accent: #8a5f1c;
  --accent-2: #c49a4f;
  --brand: #9a6c22;
  --on-accent: #fffaf0;
  --line: rgba(168, 121, 46, .38);
  --line-soft: rgba(168, 121, 46, .18);
  --shadow: rgba(110, 80, 170, .22);
  --moon: #f3d48f;
  --moon-glow: rgba(243, 212, 143, .7);
  --kanji: rgba(154, 108, 34, .08);
  --foil-lo: #7a5419;
  --foil-mid: #b88733;
  --foil-hi: #d9ab55;
  --foil-sheen: #f7e6bb;
  --sun: #d9a441;
  --sun-glow: rgba(232, 180, 80, .55);
  --luna: #a493dc;
  --crystal: rgba(255, 255, 255, .72);
  --petal-a: #f2a7c3;
  --petal-b: #f9cadb;
  --petal-alpha: .8;
  --dust: #9d8fd6;
  --star-a: #c9a24f;
  --star-b: #a98be6;
  --star-c: #e59bbd;
  --f-display: "Cormorant Garamond", "Shippori Mincho", "Iowan Old Style", Georgia, serif;
  --f-label: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --f-body: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-1: #0c0a1f; --bg-2: #16123a; --bg-3: #241c52;
    --aurora-1: rgba(118, 88, 222, .38); --aurora-2: rgba(70, 170, 200, .2); --aurora-3: rgba(210, 112, 190, .22);
    --cloud: rgba(186, 168, 255, .13);
    --glass: rgba(26, 21, 62, .62); --chip-bg: rgba(255, 255, 255, .04); --option-bg: rgba(12, 10, 31, .45); --bundle-tint: rgba(216, 178, 106, .15);
    --heading: #f4ead3; --text: #e9e3f5; --muted: #b6aed4;
    --accent: #f5dfa4; --accent-2: #d8b26a; --brand: #d8b26a; --on-accent: #0c0a1f;
    --line: rgba(216, 178, 106, .4); --line-soft: rgba(216, 178, 106, .17); --shadow: rgba(0, 0, 0, .7);
    --moon: #f4ead3; --moon-glow: rgba(245, 223, 164, .45); --kanji: rgba(216, 178, 106, .06);
    --foil-lo: #a9823f; --foil-mid: #d8b26a; --foil-hi: #f5dfa4; --foil-sheen: #fff7e0;
    --star-a: #ffffff; --star-b: #e4dcff; --star-c: #f5dfa4;
    --sun: #f2cf7e; --sun-glow: rgba(242, 207, 126, .5); --luna: #ece6ff; --crystal: rgba(228, 220, 255, .16);
    --petal-a: #f3b6cf; --petal-b: #dba3c6; --petal-alpha: .6; --dust: #e4dcff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg-1: #0c0a1f; --bg-2: #16123a; --bg-3: #241c52;
  --aurora-1: rgba(118, 88, 222, .38); --aurora-2: rgba(70, 170, 200, .2); --aurora-3: rgba(210, 112, 190, .22);
  --cloud: rgba(186, 168, 255, .13);
  --glass: rgba(26, 21, 62, .62); --chip-bg: rgba(255, 255, 255, .04); --option-bg: rgba(12, 10, 31, .45); --bundle-tint: rgba(216, 178, 106, .15);
  --heading: #f4ead3; --text: #e9e3f5; --muted: #b6aed4;
  --accent: #f5dfa4; --accent-2: #d8b26a; --brand: #d8b26a; --on-accent: #0c0a1f;
  --line: rgba(216, 178, 106, .4); --line-soft: rgba(216, 178, 106, .17); --shadow: rgba(0, 0, 0, .7);
  --moon: #f4ead3; --moon-glow: rgba(245, 223, 164, .45); --kanji: rgba(216, 178, 106, .06);
  --foil-lo: #a9823f; --foil-mid: #d8b26a; --foil-hi: #f5dfa4; --foil-sheen: #fff7e0;
  --star-a: #ffffff; --star-b: #e4dcff; --star-c: #f5dfa4;
    --sun: #f2cf7e; --sun-glow: rgba(242, 207, 126, .5); --luna: #ece6ff; --crystal: rgba(228, 220, 255, .16);
    --petal-a: #f3b6cf; --petal-b: #dba3c6; --petal-alpha: .6; --dust: #e4dcff;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--bg-1);
  background-image: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}

/* ---------- living sky ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; display: block; border-radius: 50%; filter: blur(70px); animation: drift 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 70vmax; height: 34vmax; left: -15vmax; top: -8vmax; background: var(--aurora-1); }
.aurora i:nth-child(2) { width: 55vmax; height: 28vmax; right: -18vmax; top: 30vh; background: var(--aurora-2); animation-duration: 32s; animation-delay: -8s; }
.aurora i:nth-child(3) { width: 60vmax; height: 30vmax; left: -10vmax; bottom: -12vmax; background: var(--aurora-3); animation-duration: 38s; animation-delay: -16s; }
@keyframes drift { 0% { transform: translate(0, 0) rotate(-6deg) scale(1); } 100% { transform: translate(8vw, 4vh) rotate(6deg) scale(1.12); } }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.wrap { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding-inline: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; text-align: center; padding-block: 56px 8px; }
.kanji {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  font-family: var(--f-jp); font-size: clamp(10rem, 42vw, 16rem); line-height: 1;
  color: var(--kanji); pointer-events: none; user-select: none;
}
.sigil { position: relative; width: clamp(150px, 40vw, 190px); margin: 0 auto; }
.sigil svg { display: block; width: 100%; height: auto; overflow: visible; }
.sigil .halo-a { stop-color: var(--moon-glow); }
.sigil .halo-b { stop-color: var(--moon-glow); stop-opacity: 0; }
.sigil .ring { fill: none; stroke: var(--accent-2); transform-origin: 110px 110px; }
.sigil .ring-a { stroke-width: 1.6; stroke-dasharray: 1 7; stroke-linecap: round; opacity: 1; animation: spin 140s linear infinite; }
.sigil .ring-b { stroke-width: 1; opacity: .8; animation: spin 100s linear infinite reverse; }
.sigil .ring-b path { fill: var(--accent-2); stroke: none; }
.sigil .sun { fill: var(--sun); filter: drop-shadow(0 0 12px var(--sun-glow)); }
.sigil .luna { fill: var(--luna); filter: drop-shadow(0 0 10px var(--moon-glow)); }
.sigil .rays { transform-origin: 102px 110px; animation: spin 80s linear infinite; }
.sigil .rays line { stroke: var(--sun); stroke-width: 2.2; stroke-linecap: round; }
.sigil .spark { fill: var(--accent-2); animation: twinkle 3.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.sigil .spark.s2 { animation-delay: 1.2s; }
.sigil .spark.s3 { animation-delay: 2.3s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }

.constellation { position: absolute; left: 0; top: 40px; width: 120px; color: var(--accent-2); opacity: .9; text-align: left; pointer-events: none; }
.constellation svg { display: block; width: 100%; height: auto; overflow: visible; }
.constellation line { stroke: currentColor; stroke-width: .7; opacity: .55; }
.constellation circle { fill: currentColor; }
.constellation .faint { opacity: .45; }
.constellation small { display: block; margin-top: 6px; font-family: var(--f-label); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
@media (max-width: 620px) { .constellation { display: none; } }

.brand { position: relative; margin: 14px 0 0; font-family: var(--f-label); font-weight: 500; font-size: .95rem; letter-spacing: .34em; text-transform: uppercase; color: var(--brand); }
.eyebrow { position: relative; margin: 6px 0 0; font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.15rem; color: var(--muted); }
h1 {
  position: relative; margin: 16px 0 14px;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.5rem, 8.6vw, 4rem); line-height: 1.08; letter-spacing: -.005em; text-wrap: balance;
  background: linear-gradient(100deg, var(--foil-lo) 0%, var(--foil-hi) 22%, var(--foil-mid) 42%, var(--foil-sheen) 52%, var(--foil-mid) 64%, var(--foil-hi) 80%, var(--foil-lo) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px var(--moon-glow));
  animation: shimmer 8s ease-in-out infinite;
}
h1 .amp { font-style: italic; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.tagline { position: relative; max-width: 30rem; margin: 0 auto; font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.3rem; line-height: 1.5; color: var(--text); text-wrap: balance; }
.chips { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.chips span { font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--heading); border: 1px solid var(--line-soft); background: var(--chip-bg); padding: 6px 14px; border-radius: 2px; }
.x-btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  padding: 11px 22px; border-radius: 2px; border: 1px solid var(--accent-2);
  background: var(--chip-bg); color: var(--accent);
  font-size: .9rem; font-weight: 500; letter-spacing: .06em; text-decoration: none;
  box-shadow: 0 0 26px -6px var(--moon-glow);
  transition: background .25s ease, color .25s ease;
}
.x-btn:hover { background: var(--accent); color: var(--on-accent); }
.x-btn svg { width: 14px; height: 14px; fill: currentColor; }

.mist {
  position: relative; z-index: 1; height: 190px; margin: -60px 0 -100px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 60%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 60%, transparent 100%);
}
.mist i { position: absolute; display: block; border-radius: 50%; background: var(--cloud); filter: blur(24px); animation: float 30s ease-in-out infinite alternate; }
.mist i:nth-child(1) { width: 46%; height: 70px; left: -6%; top: 64px; }
.mist i:nth-child(2) { width: 38%; height: 60px; left: 30%; top: 80px; animation-duration: 36s; animation-delay: -10s; }
.mist i:nth-child(3) { width: 44%; height: 76px; right: -8%; top: 58px; animation-duration: 42s; animation-delay: -20s; }
.mist i:nth-child(4) { width: 30%; height: 46px; left: 14%; top: 98px; animation-duration: 28s; animation-delay: -5s; }
@keyframes float { 0% { transform: translateX(-4%); } 100% { transform: translateX(6%); } }

.ornament { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 680px; margin: 40px auto 34px; padding-inline: 20px; }
.ornament span { flex: 1; max-width: 160px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-2)); }
.ornament span:last-child { background: linear-gradient(270deg, transparent, var(--accent-2)); }
.ornament svg, .footer-rose svg { width: 34px; height: 34px; filter: drop-shadow(0 0 8px var(--moon-glow)); }
.crystal-rose .petal { fill: var(--crystal); stroke: var(--accent-2); stroke-width: 1; stroke-linejoin: round; }
.crystal-rose .facet { fill: none; stroke: var(--accent-2); stroke-width: .7; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.footer-rose { display: flex; justify-content: center; margin-bottom: 10px; }

/* ---------- menu ---------- */
main.wrap { display: grid; gap: 30px; padding-block: 0 40px; }
.card, .bundle {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px 18px;
  background: var(--glass);
  box-shadow: 0 30px 60px -30px var(--shadow), inset 0 0 50px var(--line-soft);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card::before, .bundle::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-soft); border-radius: 2px; pointer-events: none; }
.card::after, .bundle::after {
  content: ""; position: absolute; top: -10px; right: -10px; width: 20px; height: 20px;
  background: var(--accent-2);
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  animation: glint 4.5s ease-in-out infinite;
}
.card:nth-of-type(2n)::after { right: auto; left: -10px; animation-delay: 1.6s; }
@keyframes glint { 0%, 100% { opacity: .35; transform: scale(.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.05) rotate(45deg); } }

.ribbon {
  display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 4px;
  font-family: var(--f-label); font-weight: 500; font-size: clamp(.9rem, 3.4vw, 1.06rem); line-height: 1.35;
  letter-spacing: .2em; text-transform: uppercase; text-align: center; text-wrap: balance; color: var(--accent);
}
.ribbon::before, .ribbon::after { content: ""; flex: 1 1 0; max-width: 56px; min-width: 18px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-2)); }
.ribbon::after { background: linear-gradient(270deg, transparent, var(--accent-2)); }
.ribbon svg { display: none; }
.note { margin: 0 0 8px; text-align: center; font-family: var(--f-display); font-style: italic; font-size: 1.12rem; color: var(--muted); }

.items { list-style: none; margin: 0; padding: 0; }
.item { padding-block: 15px; }
.item + .item { border-top: 1px solid var(--line-soft); }
.item-head { display: flex; align-items: baseline; gap: 12px; }
.name { min-width: 0; font-family: var(--f-display); font-weight: 600; font-size: 1.28rem; line-height: 1.25; color: var(--heading); }
.leader { flex: 1 1 16px; min-width: 16px; border-bottom: 1px dotted var(--line); transform: translateY(-6px); }
.price { flex: none; font-family: var(--f-label); font-weight: 500; font-size: .98rem; letter-spacing: .04em; color: var(--accent); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.price small { font-family: var(--f-body); font-size: .75rem; letter-spacing: .02em; color: var(--muted); }
.price.free { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; border: 1px solid var(--line); padding: 4px 10px; border-radius: 2px; }
.desc { margin: 4px 0 0; color: var(--muted); font-size: .93rem; max-width: 34rem; }
.story {
  display: inline-flex; align-items: baseline; gap: 10px; margin-top: 9px;
  font-size: .76rem; letter-spacing: .08em; color: var(--heading);
  background: var(--bundle-tint); border: 1px solid var(--line-soft); padding: 4px 12px; border-radius: 2px;
}
.story b { font-family: var(--f-label); font-weight: 500; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.fav {
  display: inline-block; vertical-align: 4px; margin-left: 8px;
  font-family: var(--f-body); font-size: .6rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--line); padding: 2px 8px; border-radius: 2px; white-space: nowrap;
}
.fav::before { content: "✦ "; }

.bundle { text-align: center; padding: 30px 24px 24px; border-color: var(--accent-2); background: linear-gradient(160deg, var(--bundle-tint), var(--glass) 60%); }
.bundle .tag { display: inline-block; font-family: var(--f-label); font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.bundle h2 { margin: 6px 0 4px; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 6.4vw, 2.3rem); line-height: 1.15; color: var(--heading); text-wrap: balance; }
.bundle p { margin: 0 auto; max-width: 28rem; color: var(--muted); }
.bundle .options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.bundle .option { background: var(--option-bg); border: 1px solid var(--line-soft); border-radius: 2px; padding: 12px 14px 14px; }
.bundle .label { display: block; font-size: .68rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.bundle .deal { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 10px; row-gap: 4px; margin-top: 4px; }
.bundle .now { font-family: var(--f-label); font-weight: 500; font-size: 1.55rem; color: var(--accent); font-variant-numeric: lining-nums tabular-nums; }
.bundle s { color: var(--muted); font-size: .95rem; }
.bundle .save { font-size: .68rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 3px 10px; border-radius: 2px; }

.steps { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; counter-increment: step; }
.steps > li::before {
  content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--accent-2); color: var(--accent); font-family: var(--f-display); font-style: italic; font-size: 1.25rem;
}
.steps strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.22rem; color: var(--heading); padding-top: 4px; }
.steps span { color: var(--muted); font-size: .93rem; }
.steps .via { display: block; }
.form-list { margin: 8px 0 4px; padding-left: 1.1rem; color: var(--muted); font-size: .93rem; }
.form-list li::marker { color: var(--accent-2); content: "✦  "; }

.promises { list-style: none; margin: 8px 0 8px; padding: 0; display: grid; gap: 14px; }
.promises li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.promises svg { width: 16px; height: 16px; margin-top: 5px; fill: var(--accent-2); }
.promises b { font-weight: 500; color: var(--heading); }
.promises p { margin: 0; color: var(--muted); font-size: .94rem; }
.jp { font-family: var(--f-jp); color: var(--accent); }

.note a, .steps a, footer a { color: var(--accent); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.x-btn:focus-visible, .note a:focus-visible, .steps a:focus-visible, footer a:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

footer { position: relative; z-index: 1; text-align: center; padding: 10px 20px 60px; color: var(--muted); }
footer .script { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; color: var(--heading); margin: 0 0 8px; }
footer .shop { font-family: var(--f-label); font-size: .82rem; letter-spacing: .32em; text-transform: uppercase; color: var(--brand); margin: 0 0 2px; }
footer p { margin: 0; font-size: .85rem; }

/* ---------- controls ---------- */
.controls { position: fixed; z-index: 5; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; display: flex; gap: 8px; }
.lang-switch, .theme-btn {
  border-radius: 3px; background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lang-switch { display: flex; gap: 2px; padding: 3px; }
.lang-switch button {
  font: 500 .72rem/1 var(--f-label); letter-spacing: .14em; color: var(--muted);
  background: none; border: 0; padding: 7px 11px; border-radius: 2px; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.theme-btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; color: var(--accent); cursor: pointer; }
.theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lang-switch button:focus-visible, .theme-btn:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

@media (max-width: 440px) {
  .card { padding: 30px 18px 14px; }
  .name { font-size: 1.18rem; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora i, .mist i, .sigil .ring-a, .sigil .ring-b, .sigil .rays, .sigil .spark, h1, .card::after, .bundle::after { animation: none; }
}

/* ---------- love menu ---------- */
.hook { margin: 6px 0 0; font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: 1.1rem; line-height: 1.4; color: var(--heading); max-width: 34rem; }
.includes { list-style: none; margin: 10px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 22px; }
.includes li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--text); font-size: .95rem; }
.includes svg { width: 14px; height: 14px; margin-top: 6px; fill: var(--accent-2); }
.bundle .opt-name { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--heading); }
.bundle .opt-items { display: block; margin: 2px 0 6px; font-size: .85rem; color: var(--muted); }

/* ---------- home: topic doors ---------- */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card.door {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 34px 24px 26px; color: inherit; text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease;
}
.card.door:hover { transform: translateY(-4px); box-shadow: 0 34px 70px -28px var(--shadow), 0 0 40px -10px var(--moon-glow), inset 0 0 50px var(--line-soft); }
.card.door:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.door-icon svg { width: 46px; height: 46px; filter: drop-shadow(0 0 10px var(--moon-glow)); }
.door-icon .moonstar { fill: var(--luna); }
.door-icon .moonstar .s { fill: var(--sun); }
.door .kicker { font-family: var(--f-label); font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent); }
.door h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.8rem, 6vw, 2.2rem); line-height: 1.1; color: var(--heading); }
.door p { margin: 0; color: var(--muted); max-width: 22rem; }
.door .from { font-family: var(--f-label); font-size: .9rem; letter-spacing: .05em; color: var(--accent); }
.door .go { margin-top: 4px; font-size: .85rem; font-weight: 500; letter-spacing: .08em; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { .card.door { transition: none; } .card.door:hover { transform: none; } }

/* ---------- home: three doors, stories page ---------- */
main.wrap.wide { max-width: 1000px; }
.doors { grid-template-columns: 1fr; }
@media (min-width: 900px) { .doors { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) and (max-width: 899px) { .doors { max-width: 520px; margin-inline: auto; } }
.door-icon .quill .f { fill: var(--luna); }
.door-icon .quill .n { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-linecap: round; }
.door-icon .quill .s { fill: var(--sun); }

/* ---------- wide screens: menus flow in two columns ---------- */
@media (min-width: 1100px) {
  main.wrap:not(.wide) { display: block; max-width: 1180px; column-count: 2; column-gap: 32px; padding-top: 12px; }
  main.wrap:not(.wide) > * { break-inside: avoid; margin-bottom: 32px; }
  main.wrap:not(.wide) > .bundle,
  main.wrap:not(.wide) > .card:first-child:has(> .includes) { column-span: all; }
  .hero { max-width: 820px; }
  .ornament { max-width: 1180px; }
  .ornament span { max-width: 320px; }
}

/* ---------- stories: fandoms I know ---------- */
.fandoms { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0 6px; padding: 0; }
.fandoms li { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--chip-bg); font-family: var(--f-display); font-weight: 600; font-size: 1.04rem; line-height: 1.3; color: var(--heading); }
.fandoms small { font-family: var(--f-body); font-weight: 400; font-size: .74rem; letter-spacing: .02em; color: var(--muted); }
.fandom-foot { margin-top: 10px; font-size: 1.02rem; }
@media (min-width: 1100px) { main.wrap:not(.wide) > .span { column-span: all; } }

/* ---------- in-page navigation: topic tabs under the hero, back / forward before the footer ---------- */
.topic-tabs {
  position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  width: fit-content; max-width: calc(100% - 32px); margin: 30px auto 0; padding: 5px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 14px 34px -22px var(--shadow);
}
.topic-tabs a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 2px;
  font: 500 .8rem/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: background .2s ease, color .2s ease;
}
.topic-tabs a svg { width: 17px; height: 17px; }
.topic-tabs a:hover { color: var(--accent); background: var(--line-soft); }
.topic-tabs a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.topic-tabs a[aria-current="page"] .crystal-rose .petal { fill: var(--on-accent); }
.topic-tabs a:focus-visible, .page-nav a:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
@media (max-width: 440px) { .topic-tabs a { padding: 9px 10px; font-size: .72rem; letter-spacing: .1em; } }

.page-nav { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 4px auto 40px; }
.page-nav a {
  display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 3px; background: var(--glass); text-decoration: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.page-nav a:hover { transform: translateY(-2px); border-color: var(--accent-2); box-shadow: 0 0 26px -10px var(--moon-glow); }
.page-nav a.next { grid-column: 2; align-items: flex-end; text-align: right; }
.page-nav .dir { font: 500 .7rem/1 var(--f-label); letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.page-nav .title { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--heading); }
@media (max-width: 440px) { .page-nav a { padding: 14px 14px; } .page-nav .title { font-size: 1.12rem; } }
@media (prefers-reduced-motion: reduce) { .page-nav a { transition: none; } .page-nav a:hover { transform: none; } }

/* keep long content (e.g. fandom tags) from widening cards on phones */
main.wrap > * { min-width: 0; }
.fandoms li { max-width: 100%; flex-wrap: wrap; }
