/* =====================================================================
   Sarah Seeking Ikigai  ...  personal neocities site  (v2)
   Two worlds in one: cottagecore garden by day, a starfield by night.
   Both/and thinking, made literal. Brand palette throughout:
   turquoise / cherry blossom pink / bluebell purple.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=DM+Mono:wght@400;500&family=Press+Start+2P&family=VT323&display=swap');

/* ---------------------------------------------------------------------
   1. Palette  ...  light (day) is the default in :root
   --------------------------------------------------------------------- */
:root {
  --turquoise:      #3fb8b0;
  --turquoise-deep: #2c8f89;
  --turquoise-pale: #d6f2f0;
  --blossom:        #f6b6d0;
  --blossom-pale:   #fde3ee;
  --blossom-deep:   #d97aa6;
  --bluebell:       #6c63c7;
  --bluebell-deep:  #4d45a3;
  --bluebell-pale:  #e4e1f7;
  --gold:           #e7b84f;
  --creeper:        #6fbf4e;

  /* themeable surfaces */
  --bg:        #fff9f3;
  --paper:     #fffdfa;
  --ink:       #3a3550;
  --ink-soft:  #6a6486;
  --accent:    var(--bluebell);
  --accent-deep: var(--bluebell-deep);
  --dot-a:     var(--bluebell-pale);
  --dot-b:     var(--blossom-pale);
  --frame:     4px solid var(--bluebell);
  --shadow-block: 6px 6px 0 var(--bluebell-pale);
  --glow:      none;
  --banner-bg: linear-gradient(135deg, var(--turquoise-pale), var(--blossom-pale) 60%, var(--bluebell-pale));

  --radius: 10px;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --mono:  'DM Mono', 'Courier New', monospace;
  --pixel: 'Press Start 2P', monospace;
  --crt:   'VT323', monospace;
}

/* ---------------------------------------------------------------------
   1b. Space mode  ...  night
   --------------------------------------------------------------------- */
html[data-theme="space"] {
  --bg:        #14132a;
  --paper:     #1d1b38;
  --ink:       #e7e3ff;
  --ink-soft:  #a59fd6;
  --turquoise-pale: #1b3a45;
  --blossom-pale:   #3a2238;
  --bluebell-pale:  #2a2752;
  --accent:    #8b83ff;
  --accent-deep: #b9b3ff;
  --dot-a:     rgba(139,131,255,.18);
  --dot-b:     rgba(217,122,166,.16);
  --frame:     4px solid #8b83ff;
  --shadow-block: 6px 6px 0 #2a2752;
  --glow:      0 0 12px rgba(139,131,255,.45);
  --banner-bg: radial-gradient(ellipse at 30% 20%, #2a2752 0%, #14132a 70%);
}

/* ---------------------------------------------------------------------
   2. Base
   --------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(var(--dot-a) 1.2px, transparent 1.3px),
    radial-gradient(var(--dot-b) 1.2px, transparent 1.3px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
  transition: background-color .5s, color .5s;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ctext y='22' font-size='22'%3E%E2%9C%A6%3C/text%3E%3C/svg%3E") 4 4, auto;
}

/* the starfield canvas, only visible in space mode */
#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s;
}
html[data-theme="space"] #starfield { opacity: 1; }

img { image-rendering: pixelated; }

a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 2px dotted var(--blossom-deep);
  transition: color .15s, background .15s;
}
a:hover { color: var(--blossom-deep); background: var(--turquoise-pale); }

/* ---------------------------------------------------------------------
   3. Layout shell
   --------------------------------------------------------------------- */
.wrap { max-width: 880px; margin: 0 auto; padding: 1.4rem; }

.panel {
  background: var(--paper);
  border: var(--frame);
  border-radius: var(--radius);
  box-shadow: var(--shadow-block);
  padding: 2rem 2.4rem;
  margin: 1.6rem 0;
  position: relative;
  transition: background .5s, box-shadow .5s, border-color .5s;
}
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  background: var(--blossom);
  border: 2px solid var(--bluebell-deep);
}
.panel::before { top: -7px; left: -7px; }
.panel::after  { bottom: -7px; right: -7px; }

/* ---------------------------------------------------------------------
   4. Banner / header
   --------------------------------------------------------------------- */
.banner {
  text-align: center;
  background: var(--banner-bg);
  background-size: 200% 200%;
  animation: drift 18s ease-in-out infinite;
  border: var(--frame);
  border-radius: var(--radius);
  box-shadow: var(--shadow-block);
  padding: 2.2rem 1.4rem 1.8rem;
  margin-top: 1.4rem;
  position: relative;
  overflow: hidden;
}
@keyframes drift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.banner h1 {
  font-family: var(--pixel);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--accent-deep);
  margin: .2rem 0 .6rem;
  text-shadow: 3px 3px 0 var(--blossom);
}
html[data-theme="space"] .banner h1 { text-shadow: 0 0 16px rgba(139,131,255,.8), 3px 3px 0 #3a2238; }
.banner .tag {
  font-family: var(--crt);
  font-size: 1.5rem;
  color: var(--turquoise-deep);
  letter-spacing: .5px;
}
html[data-theme="space"] .banner .tag { color: #7fe6df; }
.banner .blossoms { font-size: 1.4rem; letter-spacing: .4rem; display: block; margin-bottom: .4rem; }

/* ---- pixel-art hero banner ---- */
.banner.hero { padding: 0; overflow: hidden; }
.banner.hero svg { display: block; width: 100%; height: auto; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.page-title { text-align: center; margin: 1rem 0 0; }
.page-title h1 {
  font-family: var(--pixel); font-size: 1.05rem; line-height: 1.5;
  color: var(--blossom-deep); text-shadow: 2px 2px 0 var(--bluebell-pale);
  margin: .2rem 0;
}
html[data-theme="space"] .page-title h1 { text-shadow: 0 0 12px rgba(139,131,255,.7); }
.page-title .tag { font-family: var(--crt); font-size: 1.3rem; color: var(--turquoise-deep); }
html[data-theme="space"] .page-title .tag { color: #7fe6df; }

/* banner scene, themeable */
.bnr-sky { fill: #bfe9f5; }
html[data-theme="space"] .bnr-sky { fill: #14132a; }
.bnr-orb { fill: #ffd166; }
html[data-theme="space"] .bnr-orb { fill: #e7e3ff; }
.bnr-ray { fill: #ffd166; }
html[data-theme="space"] .bnr-ray { opacity: 0; }
.bnr-moon-crater { opacity: 0; }
html[data-theme="space"] .bnr-moon-crater { fill: #c4bdf0; opacity: .75; }
.bnr-star { fill: #fffbe6; opacity: 0; }
html[data-theme="space"] .bnr-star { opacity: .9; }
.bnr-cloud { fill: #fffdfa; }
html[data-theme="space"] .bnr-cloud { opacity: 0; }
.bnr-hill-far { fill: #9fdcd6; }
html[data-theme="space"] .bnr-hill-far { fill: #241f4a; }
.bnr-soil { fill: #7a5a3a; }
html[data-theme="space"] .bnr-soil { fill: #2a2036; }
.bnr-grass { fill: #6fbf4e; }
html[data-theme="space"] .bnr-grass { fill: #3d5a39; }
.bnr-grass-top { fill: rgba(255,255,255,.28); }
.bnr-trunk { fill: #8a6a4a; }
html[data-theme="space"] .bnr-trunk { fill: #5a4636; }
.bnr-blossom { fill: #f6b6d0; }
.bnr-blossom-light { fill: #fff0f6; }
.bnr-creeper { fill: #6fbf4e; }
html[data-theme="space"] .bnr-creeper { fill: #5aa83f; }
.bnr-creeper-face { fill: #1c3a14; }
.bnr-tardis { fill: #234a93; }
.bnr-tardis-roof { fill: #16315f; }
.bnr-tardis-sign { fill: #11264a; }
.bnr-tardis-dark { fill: #16315f; }
.bnr-tardis-win { fill: #bfe0ff; }
.bnr-lamp { fill: #fff7c4; }
.bnr-band { fill: rgba(255,253,250,.80); stroke: rgba(108,99,199,.5); stroke-width: 2; }
html[data-theme="space"] .bnr-band { fill: rgba(29,27,56,.62); stroke: rgba(139,131,255,.6); }
.bnr-title { font-family: var(--pixel); fill: var(--bluebell-deep); letter-spacing: 1px; }
html[data-theme="space"] .bnr-title { fill: #b9b3ff; }
.bnr-sub { font-family: var(--crt); fill: var(--turquoise-deep); }
html[data-theme="space"] .bnr-sub { fill: #7fe6df; }

/* ---------------------------------------------------------------------
   5. Theme toggle
   --------------------------------------------------------------------- */
.theme-toggle {
  position: fixed;
  top: 14px; right: 14px;
  z-index: 50;
  font-family: var(--mono);
  font-size: .9rem;
  cursor: pointer;
  background: var(--paper);
  color: var(--accent-deep);
  border: 3px solid var(--accent);
  border-radius: 30px;
  padding: .4rem .8rem;
  box-shadow: 3px 3px 0 var(--bluebell-pale), var(--glow);
  user-select: none;
  transition: transform .15s;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(-3deg); }

/* ---------------------------------------------------------------------
   6. Navigation
   --------------------------------------------------------------------- */
nav.nav { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin: 1.2rem 0 .4rem; }
nav.nav a {
  font-family: var(--mono);
  font-size: .95rem;
  text-transform: lowercase;
  letter-spacing: .5px;
  padding: .5rem .9rem;
  background: var(--paper);
  border: 3px solid var(--turquoise);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--turquoise-pale);
  color: var(--turquoise-deep);
}
html[data-theme="space"] nav.nav a { color: #7fe6df; box-shadow: 3px 3px 0 #1b3a45, var(--glow); }
nav.nav a:hover { background: var(--turquoise); color: #fff; transform: translate(1px,1px); }
nav.nav a.here {
  background: var(--blossom);
  border-color: var(--blossom-deep);
  color: var(--bluebell-deep);
  box-shadow: 3px 3px 0 var(--blossom-pale);
}

/* ---------------------------------------------------------------------
   7. Typography
   --------------------------------------------------------------------- */
h2 {
  font-family: var(--pixel);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--blossom-deep);
  margin-top: 0;
  text-shadow: 2px 2px 0 var(--bluebell-pale);
}
h3 {
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--accent-deep);
  letter-spacing: .3px;
  border-bottom: 2px dotted var(--turquoise);
  padding-bottom: .25rem;
  margin-top: 1.8rem;
}
p { margin: .9rem 0; }
em { color: var(--accent-deep); font-style: italic; }
strong { color: var(--blossom-deep); }
.jp { font-style: italic; color: var(--turquoise-deep); }
html[data-theme="space"] .jp { color: #7fe6df; }

blockquote {
  margin: 1.2rem 0;
  padding: .8rem 1.2rem;
  border-left: 6px solid var(--turquoise);
  background: var(--turquoise-pale);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--turquoise-deep);
}
html[data-theme="space"] blockquote { color: #cfeeec; }

.lead { font-size: 1.32rem; color: var(--ink); }

.grass {
  height: 16px;
  margin: 1.8rem 0;
  background: repeating-linear-gradient(90deg, var(--creeper) 0 8px, #5aa83f 8px 16px);
  border-radius: 4px;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.25), inset 0 -5px 0 #7a5a3a;
}
hr.soft { border: none; border-top: 3px dotted var(--blossom); margin: 1.6rem 0; }

/* a hand-drawn blossom branch divider */
.branch {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 1.6rem auto;
  opacity: .9;
}

/* ---------------------------------------------------------------------
   8. Cards / grids / hub
   --------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.2rem 0; }
.card {
  background: var(--paper);
  border: 3px solid var(--bluebell);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  box-shadow: 4px 4px 0 var(--bluebell-pale);
  transition: transform .12s;
}
.card:hover { transform: translateY(-3px); }
.card.pink { border-color: var(--blossom-deep); box-shadow: 4px 4px 0 var(--blossom-pale); }
.card.teal { border-color: var(--turquoise); box-shadow: 4px 4px 0 var(--turquoise-pale); }
.card h4 { font-family: var(--mono); margin: .1rem 0 .5rem; color: var(--accent-deep); font-size: 1.05rem; }
.card .ico { font-size: 1.6rem; display: block; margin-bottom: .3rem; }

.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.4rem 0; }
.hub a {
  display: block; text-align: center; padding: 1.3rem 1rem; border-radius: 10px;
  background: var(--bluebell-pale); border: 3px solid var(--bluebell);
  box-shadow: 5px 5px 0 var(--bluebell), var(--glow);
  color: var(--accent-deep); font-family: var(--mono);
  transition: transform .12s, box-shadow .12s;
}
.hub a:hover { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--bluebell); background: var(--turquoise-pale); }
.hub a .big { font-size: 2.2rem; display: block; margin-bottom: .4rem; }
.hub a .lbl { font-family: var(--pixel); font-size: .72rem; line-height: 1.5; display: block; }
.hub a .sub { font-family: var(--serif); font-size: 1rem; color: var(--ink-soft); display: block; margin-top: .4rem; }

/* ---------------------------------------------------------------------
   9. Pixel-art SVG sizing
   --------------------------------------------------------------------- */
.pixel-art { image-rendering: pixelated; vertical-align: middle; }
.art-row { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; align-items: flex-end; margin: 1.2rem 0; }
.art-cap { display: block; text-align: center; font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); margin-top: .3rem; }
.art-figure { text-align: center; }
.tardis-svg, .creeper-svg { cursor: pointer; transition: transform .25s; }
.tardis-svg:hover { transform: translateY(-4px) rotate(-3deg); }
.creeper-svg:hover { transform: scale(1.06); }
.tardis-svg.gone { animation: demat 1.6s ease; }
@keyframes demat { 0%{opacity:1} 50%{opacity:.15; transform:scale(.7) rotate(6deg)} 100%{opacity:1} }

/* ---------------------------------------------------------------------
   10. Minecraft hotbar
   --------------------------------------------------------------------- */
.hotbar { display: flex; gap: 4px; justify-content: center; margin: 1.2rem 0; flex-wrap: wrap; }
.slot {
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  background: #c6c6c6;
  border: 3px solid #fff;
  border-right-color: #555; border-bottom-color: #555;
  box-shadow: inset 0 0 0 2px #8b8b8b;
  cursor: pointer;
  position: relative;
}
.slot:hover { outline: 3px solid var(--gold); z-index: 2; }
.slot .qty { position: absolute; right: 3px; bottom: 1px; font-family: var(--pixel); font-size: .5rem; color: #fff; text-shadow: 1px 1px 0 #000; }
html[data-theme="space"] .slot { background: #2a2a3e; }

/* ---------------------------------------------------------------------
   11. Retro terminal / console
   --------------------------------------------------------------------- */
.terminal {
  background: #0e0d1c;
  border: 3px solid var(--accent);
  border-radius: 10px;
  box-shadow: var(--shadow-block), var(--glow);
  font-family: var(--crt);
  font-size: 1.35rem;
  line-height: 1.4;
  color: #7fe6df;
  padding: 0;
  margin: 1.4rem 0;
  overflow: hidden;
}
.terminal .bar {
  background: linear-gradient(var(--bluebell), var(--bluebell-deep));
  color: #fff;
  font-family: var(--mono);
  font-size: .8rem;
  padding: .35rem .7rem;
  display: flex; align-items: center; gap: .5rem;
}
.terminal .bar .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.terminal .bar .r { background: #ff6b6b; } .terminal .bar .y { background: #ffd166; } .terminal .bar .g { background: #6fbf4e; }
.terminal .screen {
  padding: .9rem 1rem 1rem;
  min-height: 210px;
  max-height: 340px;
  overflow-y: auto;
}
.terminal .screen .out { white-space: pre-wrap; margin: 0; }
.terminal .pink { color: #ff9ecb; } .terminal .gold { color: #ffd166; } .terminal .green { color: #9be86f; }
.terminal .inputline { display: flex; align-items: center; gap: .4rem; }
.terminal .prompt { color: #ff9ecb; }
.terminal input {
  background: transparent; border: none; outline: none;
  color: #7fe6df; font-family: var(--crt); font-size: 1.35rem; flex: 1;
  caret-color: #7fe6df;
}
.cursor-blink { animation: blink 1.1s steps(2,start) infinite; }

/* ---------------------------------------------------------------------
   12. Stat box / counter / badges
   --------------------------------------------------------------------- */
.statbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; font-family: var(--mono); margin-top: 1rem; }
.counter {
  display: inline-block; background: #1d1b2e; color: var(--creeper);
  font-family: var(--crt); font-size: 1.5rem; letter-spacing: 3px;
  padding: .2rem .6rem; border-radius: 4px; border: 2px solid var(--bluebell-deep);
  box-shadow: inset 0 0 8px rgba(111,191,78,.5);
}
.badge {
  display: inline-block; font-family: var(--mono); font-size: .8rem;
  padding: .3rem .55rem; border-radius: 6px; border: 2px solid var(--bluebell);
  background: var(--paper); color: var(--accent-deep);
}

/* classic 88x31 web buttons */
.badges88 { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 1.2rem 0; }
.b88 {
  width: 88px; height: 31px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--pixel); font-size: .42rem; line-height: 1.35;
  border: 2px outset #999; border-radius: 2px;
  color: #fff; text-shadow: 1px 1px 0 #000; padding: 2px;
  cursor: default; user-select: none; letter-spacing: .3px;
}
a.b88 { border-bottom: 2px outset #999; }
.b88.teal { background: linear-gradient(#3fb8b0,#2c8f89); }
.b88.pink { background: linear-gradient(#f6b6d0,#d97aa6); color:#3a3550; text-shadow:1px 1px 0 #fff; }
.b88.blue { background: linear-gradient(#6c63c7,#4d45a3); }
.b88.dark { background: linear-gradient(#23223a,#0e0d1c); }
.b88.green{ background: linear-gradient(#6fbf4e,#4f9636); }
.b88.gold { background: linear-gradient(#e7b84f,#b8902f); color:#2a2410; text-shadow:1px 1px 0 #fff3cf; }

/* now-box */
.nowbox {
  border: 3px dashed var(--turquoise);
  border-radius: 10px;
  background: var(--turquoise-pale);
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
}
.nowbox h4 { font-family: var(--pixel); font-size: .7rem; color: var(--turquoise-deep); margin: 0 0 .6rem; }
html[data-theme="space"] .nowbox h4 { color: #7fe6df; }
.nowbox ul { margin: 0; padding-left: 1.2rem; }
.nowbox li { margin: .25rem 0; }

/* ---------------------------------------------------------------------
   13. Guestbook
   --------------------------------------------------------------------- */
.gb-entry { background: var(--blossom-pale); border: 2px solid var(--blossom); border-radius: 8px; padding: .8rem 1rem; margin: .8rem 0; }
.gb-entry .meta { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); }
form.gb input, form.gb textarea {
  font-family: var(--serif); font-size: 1.05rem; width: 100%; padding: .6rem; margin: .4rem 0;
  border: 2px solid var(--turquoise); border-radius: 6px; background: var(--paper); color: var(--ink);
}
form.gb button, .btn {
  font-family: var(--mono); cursor: pointer; background: var(--turquoise); color: #fff;
  border: 3px solid var(--turquoise-deep); border-radius: 8px; padding: .55rem 1.1rem;
  box-shadow: 3px 3px 0 var(--bluebell-pale);
}
form.gb button:hover, .btn:hover { background: var(--bluebell); border-color: var(--bluebell-deep); }

/* ---------------------------------------------------------------------
   14. Easter-egg message boxes + petals
   --------------------------------------------------------------------- */
.secret { cursor: help; border-bottom: 2px dotted var(--gold); }
#sonic-msg, #egg-msg {
  display: none; margin: 1rem auto; max-width: 560px; text-align: center;
  font-family: var(--crt); font-size: 1.4rem; color: var(--accent-deep);
  background: var(--bluebell-pale); border: 3px dashed var(--bluebell); border-radius: 10px; padding: 1rem;
}
.blink { animation: blink 1.1s steps(2,start) infinite; }
@keyframes blink { to { visibility: hidden; } }

.petal { position: fixed; top: -30px; font-size: 1.1rem; pointer-events: none; z-index: 5; animation: fall linear forwards; }
@keyframes fall { 0%{ transform: translateY(-10px) rotate(0); opacity:.9 } 100%{ transform: translateY(105vh) rotate(360deg); opacity:0 } }

/* ---------------------------------------------------------------------
   15. Footer
   --------------------------------------------------------------------- */
footer { text-align: center; font-family: var(--mono); font-size: .85rem; color: var(--ink-soft); margin: 2rem 0 3rem; line-height: 1.8; }
footer a { border-bottom: none; }
.webring {
  display: inline-flex; gap: .4rem; align-items: center; font-family: var(--crt); font-size: 1.3rem;
  background: var(--paper); border: 2px solid var(--blossom); border-radius: 8px; padding: .3rem .7rem; margin-top: .6rem;
}

/* ---------------------------------------------------------------------
   16. Responsive
   --------------------------------------------------------------------- */
@media (max-width: 620px) {
  body { font-size: 1.08rem; }
  .banner h1 { font-size: 1.05rem; }
  .panel { padding: 1.4rem 1.2rem; }
  h2 { font-size: .85rem; }
  .terminal { font-size: 1.15rem; }
  .terminal input { font-size: 1.15rem; }
  .theme-toggle { font-size: .78rem; padding: .3rem .6rem; }
}

/* =====================================================================
   17. v3 polish  ...  lush but tasteful
   ===================================================================== */

/* --- banner gradient sky + glow --- */
.sky-1 { stop-color: #d8f3fb; }
.sky-2 { stop-color: #a9e0ec; }
html[data-theme="space"] .sky-1 { stop-color: #1f1d40; }
html[data-theme="space"] .sky-2 { stop-color: #0e0d20; }
.bnr-orbglow { opacity: .9; }
.orbglow-1 { stop-color: rgba(255,221,128,.85); }
.orbglow-2 { stop-color: rgba(255,221,128,0); }
html[data-theme="space"] .orbglow-1 { stop-color: rgba(205,201,245,.55); }
html[data-theme="space"] .orbglow-2 { stop-color: rgba(205,201,245,0); }
.bnr-canopy .bl { fill: #fff0f6; }

/* --- gentle banner motion --- */
.bnr-drift  { animation: bnrDrift1 26s ease-in-out infinite; }
.bnr-drift2 { animation: bnrDrift2 34s ease-in-out infinite; }
@keyframes bnrDrift1 { 0%,100% { transform: translateX(0); } 50% { transform: translateX(26px); } }
@keyframes bnrDrift2 { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-22px); } }
.bnr-canopy { transform-box: fill-box; transform-origin: 50% 100%; animation: bnrSway 6.5s ease-in-out infinite; }
@keyframes bnrSway { 0%,100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
.bnr-orbglow { animation: bnrPulse 7s ease-in-out infinite; }
@keyframes bnrPulse { 0%,100% { opacity:.7; } 50% { opacity:1; } }

/* --- soft vignette / nebula (kept behind content) --- */
.wrap { position: relative; z-index: 1; }
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 38%, transparent 58%, rgba(76,69,163,.10) 100%);
}
html[data-theme="space"] body::after {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139,131,255,.14), transparent 55%),
    radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(0,0,0,.30) 100%);
}

/* --- panels rise in softly --- */
.panel { animation: panelRise .6s ease both; }
@keyframes panelRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* --- drop cap on the opening line --- */
.panel p.lead::first-letter {
  float: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 3.5rem;
  line-height: .72;
  margin: .06em .12em 0 0;
  color: var(--blossom-deep);
  text-shadow: 2px 2px 0 var(--bluebell-pale);
}
html[data-theme="space"] .panel p.lead::first-letter { text-shadow: 0 0 12px rgba(139,131,255,.55); }

/* --- richer cards --- */
.card { position: relative; overflow: hidden; background: linear-gradient(162deg, var(--paper), var(--bluebell-pale)); transition: transform .15s, box-shadow .15s; }
.card.teal { background: linear-gradient(162deg, var(--paper), var(--turquoise-pale)); }
.card.pink { background: linear-gradient(162deg, var(--paper), var(--blossom-pale)); }
.card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--blossom); opacity: .8; }
.card.teal::after { background: var(--turquoise); }
.card.pink::after { background: var(--blossom-deep); }
.card:hover { transform: translateY(-4px); box-shadow: 6px 9px 0 var(--bluebell-pale); }

/* --- hub buttons: a little bob --- */
.hub a .big { transition: transform .18s ease; }
.hub a:hover .big { transform: translateY(-5px) scale(1.12) rotate(-4deg); }

/* --- branch divider glow in space --- */
html[data-theme="space"] .branch path { stroke: #6a5a4a; }

/* --- shooting star (drawn by JS canvas; nothing needed here) --- */

/* --- respect reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .banner, .bnr-drift, .bnr-drift2, .bnr-canopy, .bnr-orbglow,
  .panel, .petal { animation: none !important; }
}

/* =====================================================================
   18. Cusdis guestbook  ...  fill the width, grow to fit, no inner scroll
   ===================================================================== */
#cusdis_thread {
  width: 100%;
  margin-top: 1rem;
}
#cusdis_thread iframe {
  width: 100% !important;
  min-height: 360px;       /* a comfortable floor; JS grows it to fit */
  border: 0;
  overflow: hidden;
  color-scheme: normal;    /* keep Cusdis readable in both themes */
}
