/* =========================================================
   Cozy Coffee Chill Out — online lounge space
   ========================================================= */

:root {
  --night: #140c07;
  --wood: #22150d;
  --wood-2: #2c1b11;
  --cream: #f6e7cc;
  --cream-dim: #d9c4a3;
  --gold: #f2b65a;
  --gold-hot: #ffd27a;
  --amber: #e2913a;
  --ember: #c4622d;

  /* corduroy sofa fabrics */
  --fabric-rust: #7e3a22;
  --fabric-rust-2: #6a2e1a;
  --fabric-olive: #575a2c;
  --fabric-olive-2: #45481f;
  --fabric-mustard: #b07d2a;

  --radius: 28px;
  --shadow-deep: 0 30px 60px -20px rgba(0, 0, 0, .75), 0 10px 25px -10px rgba(0, 0, 0, .6);
  --lamp: 1; /* toggled by the lamp chain */

  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* rowed corduroy wales (vertical ribs) */
  --wales: repeating-linear-gradient(90deg,
      rgba(0, 0, 0, .34) 0px,
      rgba(0, 0, 0, .10) 3px,
      rgba(255, 220, 170, .10) 7px,
      rgba(0, 0, 0, .06) 11px,
      rgba(0, 0, 0, .34) 14px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--cream);
  background-color: var(--night);
  background-image:
    var(--noise),
    repeating-linear-gradient(90deg, rgba(0,0,0,.25) 0 2px, transparent 2px 120px),
    linear-gradient(180deg, var(--wood-2), var(--wood) 40%, var(--night));
  overflow-x: hidden;
  overflow-x: clip;
  transition: filter 1.2s ease;
}
body.lamp-off { --lamp: .25; }
body.lamp-off .room-glow { opacity: .2; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

::selection { background: var(--gold); color: var(--night); }

a { color: var(--gold-hot); }

h1, h2 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); color: var(--gold-hot); text-shadow: 0 2px 18px rgba(242, 182, 90, .25); }
p { margin: 0 0 1em; }

.eyebrow {
  font-family: "Caveat", cursive;
  font-size: 1.6rem;
  color: var(--gold);
  margin: 0 0 .1em;
  letter-spacing: .02em;
}

/* ---------- ambient room ---------- */
.room-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60vmax 50vmax at 12% 8%, rgba(255, 196, 102, .28), transparent 60%),
    radial-gradient(50vmax 40vmax at 90% 100%, rgba(226, 145, 58, .12), transparent 60%),
    radial-gradient(120vmax 90vmax at 50% 50%, transparent 40%, rgba(0,0,0,.55));
  animation: flicker 7s ease-in-out infinite;
  transition: opacity 1.2s ease;
}
#motes { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
main { position: relative; z-index: 2; }

@keyframes flicker {
  0%, 100% { opacity: 1; }
  45% { opacity: .93; }
  50% { opacity: .98; }
  52% { opacity: .9; }
  60% { opacity: 1; }
}

/* ---------- buttons ---------- */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1rem/1 "Nunito", sans-serif;
  padding: 1em 1.6em;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.3,1.6,.5,1), box-shadow .3s ease, background .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.95); }
.btn--gold {
  color: #2a1608;
  background: linear-gradient(180deg, var(--gold-hot), var(--amber));
  box-shadow: 0 0 0 0 rgba(255, 210, 122, .0), 0 10px 25px -8px rgba(242, 160, 60, .7), inset 0 1px 0 rgba(255,255,255,.5);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 0 30px 4px rgba(255, 200, 110, .35), 0 14px 30px -10px rgba(242, 160, 60, .8), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--ghost { color: var(--cream); background: rgba(255, 230, 190, .06); box-shadow: inset 0 0 0 1.5px rgba(242, 182, 90, .5); }
.btn--ghost:hover { background: rgba(255, 230, 190, .12); transform: translateY(-2px); }
.btn--block { width: 100%; font-size: 1.1rem; }
.btn:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold-hot); outline-offset: 3px;
}

/* ripple from clicks */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.7), rgba(255,220,150,0) 70%);
  transform: scale(0); animation: ripple .7s ease-out forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* warm sparks anywhere you click */
.spark {
  position: fixed; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; z-index: 60;
  background: radial-gradient(circle, #fff6d8, var(--gold) 50%, transparent 70%);
  box-shadow: 0 0 12px 3px rgba(255, 196, 102, .6);
  animation: spark .9s ease-out forwards;
}
@keyframes spark {
  from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.2); opacity: 0; }
}

/* ---------- lofi player ---------- */
.player {
  position: fixed; z-index: 50;
  right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .9rem .5rem .5rem;
  border-radius: 999px;
  background:
    var(--noise),
    var(--wales),
    linear-gradient(180deg, #8c4527, var(--fabric-rust-2));
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255,220,170,.25), 0 0 0 1px rgba(0,0,0,.4);
  max-width: calc(100vw - 32px);
}
.player__btn {
  display: flex; align-items: center; gap: .7rem;
  background: none; border: 0; padding: 0; color: var(--cream); cursor: pointer; text-align: left;
  font: inherit;
}
.vinyl {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background:
    radial-gradient(circle, var(--gold) 0 22%, transparent 23%),
    repeating-radial-gradient(circle, #1a1a1a 0 2px, #2b2b2b 2px 3px);
  box-shadow: 0 4px 10px rgba(0,0,0,.6), inset 0 0 0 2px #0d0d0d;
  position: relative;
  animation: spin 3.2s linear infinite paused;
}
.vinyl::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 45%); }
.vinyl__label { position: absolute; inset: 44%; border-radius: 50%; background: #2a1608; z-index: 1; }
.player.is-playing .vinyl { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }

.player__text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.player__title { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.player__sub { font-size: .78rem; color: var(--cream-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }

.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { width: 3px; height: 4px; background: var(--gold-hot); border-radius: 2px; }
.player.is-playing .eq i { animation: eq 1s ease-in-out infinite; }
.player.is-playing .eq i:nth-child(2) { animation-delay: -.3s; }
.player.is-playing .eq i:nth-child(3) { animation-delay: -.6s; }
.player.is-playing .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 18px; } }

.player__vol input { width: 80px; accent-color: var(--gold); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 90px 16px 260px;
  text-align: center;
  overflow: hidden;
}
.hero__copy { position: relative; z-index: 3; max-width: 760px; }
.hero__welcome {
  font-family: "Caveat", cursive; font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--gold); margin: 0;
  animation: float 6s ease-in-out infinite;
}
.hero__title {
  font-size: clamp(2.8rem, 10vw, 6.4rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin: .05em 0 .1em;
  color: var(--cream);
  text-shadow: 0 0 40px rgba(255, 190, 100, calc(.45 * var(--lamp))), 0 4px 0 rgba(0,0,0,.35);
}
.hero__title span { display: inline-block; animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both; }
.hero__title span:nth-child(2) { animation-delay: .15s; }
.hero__title-accent {
  display: block !important;
  font-style: italic;
  background: linear-gradient(180deg, var(--gold-hot), var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation-delay: .3s !important;
}
.hero__sub { font-family: "Caveat", cursive; font-size: clamp(1.6rem, 4.5vw, 2.3rem); color: var(--cream-dim); margin: 0 0 1rem; }
.hero__lead { max-width: 560px; margin: 0 auto 1.8rem; color: var(--cream-dim); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* lamp */
.lamp {
  position: absolute; left: clamp(4px, 6vw, 90px); bottom: 120px;
  width: 150px; height: 470px; z-index: 2; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lamp__glow {
  position: absolute; left: 50%; top: 40px; width: 700px; height: 700px; transform: translate(-50%, -40%);
  background: radial-gradient(circle, rgba(255, 214, 140, calc(.55 * var(--lamp))), rgba(255, 170, 70, calc(.18 * var(--lamp))) 35%, transparent 65%);
  pointer-events: none; mix-blend-mode: screen;
  animation: flicker 5s ease-in-out infinite;
  transition: background 1s ease;
}
.lamp__shade {
  position: absolute; left: 0; top: 0; width: 150px; height: 110px;
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
  background:
    var(--noise),
    repeating-linear-gradient(90deg, rgba(120,60,10,.18) 0 2px, transparent 2px 6px),
    linear-gradient(180deg, #ffe2a3, #f2b65a 60%, #d98f37);
  filter: brightness(calc(.5 + .5 * var(--lamp)));
  transition: filter 1s;
}
.lamp__bulb {
  position: absolute; left: 50%; top: 92px; width: 46px; height: 26px; transform: translateX(-50%);
  border-radius: 50%; background: #fff3c9;
  box-shadow: 0 0 40px 18px rgba(255, 210, 120, calc(.8 * var(--lamp)));
  opacity: var(--lamp); transition: opacity 1s, box-shadow 1s;
}
.lamp__chain { position: absolute; left: 66%; top: 108px; width: 2px; height: 60px; background: repeating-linear-gradient(180deg, #c9a46a 0 3px, transparent 3px 5px); transform-origin: top; }
.lamp__chain span { position: absolute; bottom: -8px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: #d9b16f; box-shadow: 0 0 6px rgba(255,210,120,.6); }
.lamp.is-pulled .lamp__chain { animation: tug .6s ease; }
@keyframes tug { 30% { transform: scaleY(1.25); } 60% { transform: scaleY(.95) rotate(4deg); } 100% { transform: none; } }
.lamp__pole { position: absolute; left: 50%; top: 110px; width: 8px; height: 330px; transform: translateX(-50%); background: linear-gradient(90deg, #3a2414, #8a6136, #3a2414); }
.lamp__base { position: absolute; left: 50%; bottom: 0; width: 100px; height: 22px; transform: translateX(-50%); border-radius: 50% 50% 8px 8px; background: linear-gradient(180deg, #8a6136, #3a2414); }

/* mug */
.mug {
  position: absolute; right: clamp(16px, 9vw, 160px); bottom: 225px; z-index: 4;
  width: 96px; height: 120px; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: rotate .3s cubic-bezier(.3,1.6,.5,1), translate .3s cubic-bezier(.3,1.6,.5,1);
}
.mug:hover { rotate: -4deg; translate: 0 -3px; }
.mug.is-sipping { animation: sip 1s ease; }
@keyframes sip { 30%, 70% { rotate: -22deg; translate: -10px -16px; } }
.mug__body {
  position: absolute; left: 6px; bottom: 14px; width: 72px; height: 78px; border-radius: 6px 6px 22px 22px;
  background: var(--noise), linear-gradient(90deg, #c96a37, #e9915a 40%, #b4562a);
  box-shadow: inset 0 6px 0 rgba(60, 25, 10, .9), inset -8px 0 14px rgba(0,0,0,.25), 0 8px 18px rgba(0,0,0,.5);
  display: grid; place-items: center;
}
.mug__body::before { content: ""; position: absolute; top: 0; left: 4px; right: 4px; height: 10px; border-radius: 50%; background: radial-gradient(ellipse, #6b3a1c, #3b1c0b); }
.mug__heart { color: #ffe3b8; font-size: 1.4rem; opacity: .9; }
.mug__handle { position: absolute; left: 70px; bottom: 36px; width: 26px; height: 34px; border: 7px solid #c0612f; border-left: 0; border-radius: 0 20px 20px 0; }
.mug__saucer { position: absolute; left: -6px; bottom: 6px; width: 100px; height: 12px; border-radius: 50%; background: linear-gradient(180deg, #f2dfc0, #b79b73); box-shadow: 0 6px 12px rgba(0,0,0,.5); }
.mug__hint { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin: 6px 0 0; white-space: nowrap; font-family: "Caveat", cursive; font-size: 1.2rem; color: var(--gold); opacity: .85; }

.steam { position: absolute; left: 14px; bottom: 92px; width: 60px; height: 70px; }
.steam span {
  position: absolute; bottom: 0; width: 10px; height: 46px; border-radius: 50%;
  background: linear-gradient(180deg, transparent, rgba(255, 240, 220, .45));
  filter: blur(5px);
  animation: steam 3.4s ease-in-out infinite;
}
.steam span:nth-child(1) { left: 6px; }
.steam span:nth-child(2) { left: 24px; animation-delay: 1.1s; }
.steam span:nth-child(3) { left: 42px; animation-delay: 2.2s; }
.mug.is-sipping .steam span { animation-duration: 1.2s; }
@keyframes steam {
  0% { transform: translateY(10px) scaleX(1); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: translateY(-50px) translateX(8px) scaleX(2.2); opacity: 0; }
}

/* sofa (channel-tufted, rowed fabric) */
.sofa { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); width: min(1100px, 130vw); height: 270px; z-index: 3; }
.sofa__back {
  position: absolute; left: 7%; right: 7%; top: 0; height: 180px; border-radius: 60px 60px 12px 12px;
  background:
    var(--noise),
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.45) 0px, rgba(0,0,0,.05) 14px, rgba(255,200,140,.14) 32px, rgba(0,0,0,.05) 50px, rgba(0,0,0,.45) 64px),
    radial-gradient(120% 140% at 15% -10%, rgba(255, 196, 102, calc(.35 * var(--lamp))), transparent 55%),
    linear-gradient(180deg, #8f4527, var(--fabric-rust-2));
  box-shadow: inset 0 10px 18px rgba(255,200,140,.12), inset 0 -20px 30px rgba(0,0,0,.45), 0 -10px 40px rgba(0,0,0,.4);
}
.sofa__seat {
  position: absolute; left: 4%; right: 4%; top: 150px; height: 90px; border-radius: 30px;
  background:
    var(--noise),
    repeating-linear-gradient(0deg, rgba(0,0,0,.4) 0, rgba(255,200,140,.1) 10px, rgba(0,0,0,.4) 20px),
    radial-gradient(100% 160% at 15% 0%, rgba(255, 196, 102, calc(.3 * var(--lamp))), transparent 55%),
    linear-gradient(180deg, #9b4c2b, #5a2615);
  box-shadow: inset 0 8px 14px rgba(255,200,140,.15), 0 20px 40px rgba(0,0,0,.6);
}
.sofa__arm {
  position: absolute; top: 90px; width: 12%; height: 160px; border-radius: 50px 50px 20px 20px;
  background:
    var(--noise),
    var(--wales),
    linear-gradient(180deg, #a3532f, #5a2615);
  box-shadow: inset 0 10px 16px rgba(255,200,140,.18), 0 16px 30px rgba(0,0,0,.6);
  z-index: 1;
}
.sofa__arm--l { left: 0; }
.sofa__arm--r { right: 0; }
.sofa__pillow {
  position: absolute; top: 80px; width: 130px; height: 110px; border-radius: 30px; z-index: 1;
  background: var(--noise), var(--wales), linear-gradient(160deg, #d39a3c, var(--fabric-mustard) 50%, #7a5216);
  box-shadow: inset 0 6px 10px rgba(255,240,200,.25), 0 14px 20px rgba(0,0,0,.5);
}
.sofa__pillow--a { left: 16%; transform: rotate(-10deg); }
.sofa__pillow--b { right: 16%; transform: rotate(9deg); background: var(--noise), var(--wales), linear-gradient(160deg, #7c8040, var(--fabric-olive) 50%, var(--fabric-olive-2)); }

/* ---------- chapters ---------- */
.chapter { padding: clamp(48px, 9vh, 110px) 16px; display: flex; justify-content: center; }
.chapter--center { text-align: center; }

/* the corduroy cushion card */
.cushion {
  position: relative;
  width: 100%; max-width: 820px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius);
  background:
    var(--noise),
    var(--wales),
    radial-gradient(120% 90% at 0% 0%, rgba(255, 200, 110, calc(.30 * var(--lamp))), transparent 55%),
    linear-gradient(170deg, #8e4428, var(--fabric-rust) 40%, var(--fabric-rust-2));
  box-shadow:
    var(--shadow-deep),
    inset 0 2px 0 rgba(255, 220, 170, .18),
    inset 0 -14px 28px rgba(0, 0, 0, .35),
    inset 0 0 0 1px rgba(0,0,0,.25);
}
/* piping / stitched seam */
.cushion::before {
  content: ""; position: absolute; inset: 12px; border-radius: calc(var(--radius) - 10px);
  border: 2px dashed rgba(255, 220, 170, .22); pointer-events: none;
}
.cushion--alt {
  background:
    var(--noise),
    var(--wales),
    radial-gradient(120% 90% at 100% 0%, rgba(255, 200, 110, calc(.30 * var(--lamp))), transparent 55%),
    linear-gradient(170deg, #6b6e35, var(--fabric-olive) 40%, var(--fabric-olive-2));
}
.cushion > p, .cushion li { color: #f1dfc2; }

/* scripture */
.verse {
  position: relative;
  margin: 1.6em 0;
  padding: 1.3em 1.4em 1.2em 1.6em;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  font-style: italic;
  line-height: 1.6;
  color: #fff3dc;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 10, 4, .55), rgba(20, 10, 4, .35));
  border-left: 4px solid var(--gold);
  box-shadow: inset 0 0 30px rgba(255, 190, 100, .08), 0 8px 20px rgba(0,0,0,.25);
}
.verse cite {
  display: block; margin-top: .6em;
  font-family: "Caveat", cursive; font-style: normal; font-size: 1.35rem; color: var(--gold-hot);
}
.verse cite::after { content: " (BSB)"; font-family: "Nunito", sans-serif; font-size: .72rem; opacity: .6; letter-spacing: .05em; }

.verse-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 1.6em 0; }
.verse--card {
  margin: 0; border-left: 0; border-top: 4px solid var(--gold); font-size: 1.08rem;
  transition: transform .4s cubic-bezier(.3,1.4,.5,1), box-shadow .4s;
  cursor: default;
}
.verse--card:hover, .verse--card:focus {
  transform: translateY(-6px) rotate(-.6deg);
  box-shadow: 0 0 40px rgba(255, 190, 100, .25), 0 18px 30px rgba(0,0,0,.4);
}

.verse--hidden { opacity: 0; transform: translateY(20px) scale(.97); max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; overflow: hidden; transition: all .9s cubic-bezier(.2,.8,.2,1); }
.verse--hidden.is-shown { opacity: 1; transform: none; max-height: 400px; margin: 1.6em 0; padding: 1.3em 1.4em 1.2em 1.6em; box-shadow: 0 0 50px rgba(255, 200, 110, .35); }

.prayer {
  font-family: "Caveat", cursive; font-size: clamp(1.45rem, 3.5vw, 1.8rem); line-height: 1.4;
  color: var(--gold-hot) !important; padding: .4em 0 .2em 1em; border-left: 2px dashed rgba(255, 210, 122, .5);
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- breathing ---------- */
.breathe { max-width: 600px; }
.breathe__orb {
  position: relative; width: 220px; height: 220px; margin: 1.5rem auto; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #ffe7b0, var(--gold) 45%, var(--ember) 100%);
  box-shadow: 0 0 60px 10px rgba(255, 190, 100, .35), inset 0 -12px 30px rgba(120, 50, 10, .4);
  transform: scale(.75);
  transition: transform 4s ease-in-out, box-shadow 4s ease-in-out;
}
.breathe__orb.is-in { transform: scale(1.05); box-shadow: 0 0 110px 30px rgba(255, 190, 100, .5), inset 0 -12px 30px rgba(120, 50, 10, .4); }
.breathe__ring { position: absolute; inset: -18px; border-radius: 50%; border: 2px dashed rgba(255, 210, 122, .35); animation: spin 40s linear infinite; }
.breathe__word { font-family: "Caveat", cursive; font-size: 1.9rem; color: #3a1c08; font-weight: 700; }
.breathe__verse { font-family: "Fraunces", serif; font-style: italic; color: var(--cream-dim); min-height: 3.4em; transition: opacity .6s; }

/* ---------- gifts ---------- */
.gifts { list-style: none; padding: 0; margin: 1.4em 0 .4em; display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }
.gift {
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; font-size: 1.7rem;
  background: radial-gradient(circle at 35% 30%, rgba(255,240,210,.25), rgba(0,0,0,.25));
  box-shadow: inset 0 0 0 2px rgba(255, 210, 122, .35), 0 6px 14px rgba(0,0,0,.35);
  transition: transform .35s cubic-bezier(.3,1.8,.5,1), box-shadow .3s;
}
.gift:hover { transform: translateY(-5px) scale(1.08); }
.gift.is-on { box-shadow: inset 0 0 0 2px var(--gold-hot), 0 0 26px 4px rgba(255, 200, 110, .55); transform: scale(1.12); }
.gift-note { text-align: center; font-family: "Caveat", cursive; font-size: 1.5rem; color: var(--gold-hot) !important; min-height: 1.6em; transition: opacity .4s; }

/* ---------- pour another cup ---------- */
.pour { max-width: 640px; width: 100%; }
.pour__card {
  margin: 1.4rem 0 1.6rem; padding: 2rem 1.6rem; border-radius: var(--radius);
  background: var(--noise), var(--wales), linear-gradient(170deg, #c08a34, var(--fabric-mustard) 50%, #7a5216);
  box-shadow: var(--shadow-deep), inset 0 2px 0 rgba(255,240,200,.3);
  color: #2a1608; min-height: 190px; display: flex; flex-direction: column; justify-content: center;
  transition: transform .5s cubic-bezier(.3,1.4,.5,1), opacity .4s;
}
.pour__card.is-swapping { transform: rotateX(80deg); opacity: 0; }
.pour__text { font-family: "Fraunces", serif; font-style: italic; font-size: clamp(1.15rem, 2.8vw, 1.4rem); line-height: 1.55; margin: 0 0 .6em; }
.pour__ref { font-family: "Caveat", cursive; font-size: 1.5rem; margin: 0; font-weight: 700; }
.pour__ref::after { content: " (BSB)"; font-family: "Nunito", sans-serif; font-size: .75rem; opacity: .65; }

/* ---------- treasure chest ---------- */
.chest { position: relative; width: 150px; height: 130px; margin: 2rem auto 1rem; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chest__box {
  position: absolute; bottom: 0; left: 0; right: 0; height: 80px; border-radius: 6px 6px 12px 12px;
  background: repeating-linear-gradient(90deg, #5a3218 0 22px, #4a2812 22px 24px), #5a3218;
  box-shadow: inset 0 0 0 5px #c9963c, 0 12px 20px rgba(0,0,0,.5);
}
.chest__lock { position: absolute; top: -6px; left: 50%; width: 22px; height: 26px; transform: translateX(-50%); border-radius: 4px; background: linear-gradient(180deg, var(--gold-hot), #a8741f); z-index: 2; }
.chest__lid {
  position: absolute; bottom: 74px; left: 0; right: 0; height: 52px; border-radius: 70px 70px 4px 4px; z-index: 1;
  background: repeating-linear-gradient(90deg, #6a3b1d 0 22px, #4a2812 22px 24px), #6a3b1d;
  box-shadow: inset 0 0 0 5px #c9963c;
  transform-origin: bottom center; transition: transform .9s cubic-bezier(.3,1.5,.5,1);
}
.chest__shine { position: absolute; left: 50%; bottom: 60px; width: 10px; height: 10px; transform: translateX(-50%); border-radius: 50%; opacity: 0; transition: all 1s ease; }
.chest.is-open .chest__lid { transform: translateY(-12px) rotateX(70deg) rotate(-8deg); }
.chest.is-open .chest__shine { opacity: 1; width: 260px; height: 260px; bottom: -40px; background: radial-gradient(circle, rgba(255, 230, 150, .7), rgba(255, 190, 80, .2) 40%, transparent 70%); pointer-events: none; }
.chest__hint { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin: 4px 0 0; white-space: nowrap; font-family: "Caveat", cursive; font-size: 1.25rem; color: var(--gold); transition: opacity .4s; }
.chest.is-open .chest__hint { opacity: 0; }
.chest:not(.is-open) { animation: wiggle 4s ease-in-out infinite; }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-4deg); } 94% { transform: rotate(4deg); } 97% { transform: rotate(-2deg); } }

/* ---------- CTA ---------- */
.cta { max-width: 720px; }
.cta p { font-size: 1.15rem; }
.cta strong { color: var(--gold-hot); }
.cta em { color: var(--gold-hot); font-family: "Fraunces", serif; }
.cta__candle { width: 26px; height: 60px; margin: 0 auto 1.2rem; border-radius: 6px; background: linear-gradient(90deg, #e9d6b4, #fff1d6, #d8c19a); position: relative; }
.flame {
  position: absolute; left: 50%; top: -34px; width: 18px; height: 32px; transform: translateX(-50%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 80%, #fff, #ffe08a 35%, #f29a32 70%, transparent 72%);
  box-shadow: 0 0 40px 14px rgba(255, 190, 90, .45);
  animation: flame 1.6s ease-in-out infinite alternate;
}
@keyframes flame { 0% { transform: translateX(-50%) rotate(-3deg) scaleY(1); } 50% { transform: translateX(-52%) rotate(2deg) scaleY(1.08); } 100% { transform: translateX(-48%) rotate(-1deg) scaleY(.94); } }

/* ---------- form ---------- */
.form h2 { margin-bottom: .2em; }
.form__intro { color: var(--cream-dim) !important; }
.form__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 1.2rem 0; }
.field { display: flex; flex-direction: column; gap: .4rem; margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.field > span, .field legend { font-weight: 700; color: var(--cream); font-size: .98rem; padding: 0; }
.field small { font-weight: 400; color: var(--cream-dim); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: var(--cream);
  padding: .85em 1em; border-radius: 14px; border: 0;
  background: rgba(15, 7, 3, .45);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(255, 210, 140, .18);
  transition: box-shadow .3s, background .3s;
}
.field textarea { resize: vertical; }
.field select option { background: #2a1608; }
.field input::placeholder, .field textarea::placeholder { color: rgba(240, 220, 190, .45); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: rgba(15, 7, 3, .6); box-shadow: inset 0 2px 6px rgba(0,0,0,.45), inset 0 0 0 2px var(--gold), 0 0 22px rgba(255, 190, 100, .25); }

.chips { display: flex; flex-direction: row; flex-wrap: wrap; gap: .5rem; }
.chips legend { margin-bottom: .6rem; width: 100%; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: .5em 1em; border-radius: 999px; font-size: .92rem;
  background: rgba(15, 7, 3, .35); box-shadow: inset 0 0 0 1.5px rgba(255, 210, 140, .3);
  transition: all .25s cubic-bezier(.3,1.6,.5,1);
}
.chips label:hover span { transform: translateY(-2px); }
.chips input:checked + span { background: linear-gradient(180deg, var(--gold-hot), var(--amber)); color: #2a1608; font-weight: 700; box-shadow: 0 0 16px rgba(255, 190, 100, .45); }
.chips input:focus-visible + span { outline: 3px solid var(--gold-hot); outline-offset: 2px; }

.check { display: flex; gap: .7rem; align-items: flex-start; margin: .4rem 0 1.4rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: .25em; accent-color: var(--gold); flex: none; }

.hp { position: absolute !important; left: -9999px !important; }
.form__status { margin: 1rem 0 0; text-align: center; font-weight: 700; min-height: 1.5em; }
.form__status.is-ok { color: var(--gold-hot); }
.form__status.is-err { color: #ffb3a1; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; top: 18px; z-index: 70; transform: translate(-50%, calc(-100% - 40px)); visibility: hidden;
  max-width: min(92vw, 520px); padding: .9em 1.3em; border-radius: 18px; text-align: center;
  font-family: "Fraunces", serif; font-style: italic; font-size: 1rem; line-height: 1.5;
  background: rgba(30, 15, 6, .92); color: var(--cream);
  box-shadow: 0 0 0 1px rgba(255, 210, 122, .35), 0 12px 30px rgba(0,0,0,.6), 0 0 40px rgba(255, 190, 100, .2);
  transition: transform .6s cubic-bezier(.3,1.4,.5,1), visibility 0s .6s;
}
.toast.is-shown { transform: translate(-50%, 0); visibility: visible; transition: transform .6s cubic-bezier(.3,1.4,.5,1); }
.toast b { display: block; font-family: "Caveat", cursive; font-style: normal; font-size: 1.25rem; color: var(--gold-hot); }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .hero { padding-bottom: 230px; }
  .lamp { transform: scale(.55); transform-origin: bottom left; left: 4px; bottom: 140px; opacity: .9; }
  .mug { transform: scale(.75); transform-origin: bottom right; right: 16px; bottom: 175px; }
  .sofa { height: 220px; }
  .sofa__back { height: 150px; }
  .sofa__seat { top: 120px; }
  .sofa__arm { top: 70px; }
  .sofa__pillow { width: 90px; height: 80px; top: 70px; }
  .player__vol { display: none; }
  .player__sub { max-width: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
