/* =========================================================================
   Speakeasy Apothecary — Tonight's Menu
   Palette and type lifted from the real site: brass #d7a973 on #f3e8dd,
   Cormorant SC + Jost, plus a noir interior to sit in front of it.
   ========================================================================= */

:root {
  --ink:        #070505;
  --ink-2:      #0e0a08;
  --wood:       #241812;
  --wood-lo:    #150e0a;
  --brass:      #d7a973;
  --brass-hot:  #f2cf95;
  --brass-dim:  #8a6a45;
  --cream:      #f3e8dd;
  --cream-dim:  #cbbbaa;
  --wine:       #5c1f22;
  --amber:      #e8b96b;

  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --caps:  "Cormorant SC", "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22,.8,.24,1);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
}

.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;
}

.is-hidden { display: none !important; }

/* Film grain over everything. Deliberately STATIC: an animated noise layer
   sits above all text, and on the dim small-caps labels it reads as the letters
   pulsing rather than as grain. Do not re-add movement here. */
.grain {
  position: fixed;
  inset: -10%;
  z-index: 900;
  pointer-events: none;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

.stage { min-height: 100svh; }

/* =========================================================================
   THE DOOR
   ========================================================================= */

.stage--door {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  grid-template-rows: 1fr repeat(5, auto);
  justify-items: center;
  padding: clamp(1rem, 4vh, 2.5rem) 1rem;
  overflow: hidden;

  background:
    radial-gradient(120% 90% at 50% 8%,  rgba(214,160,95,.13), transparent 55%),
    radial-gradient(90% 70% at 50% 110%, rgba(120,40,30,.16), transparent 60%),
    linear-gradient(180deg, #0d0908 0%, #080606 60%, #050404 100%);
}

/* dim wall texture */
.stage--door::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.014) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 2px, transparent 2px 120px);
  mask-image: radial-gradient(75% 75% at 50% 45%, #000 30%, transparent 85%);
  pointer-events: none;
}

.wall-ornament { position: absolute; inset: 0; pointer-events: none; }

.sconce {
  position: absolute;
  top: 12%;
  width: clamp(90px, 16vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,185,107,.30), rgba(232,185,107,.06) 45%, transparent 70%);
  filter: blur(6px);
  animation: flicker 9s ease-in-out infinite;
}
.sconce--l { left: 2%; }
.sconce--r { right: 2%; animation-delay: -4.5s; }

/* Gentle breathing, not strobing. The glows drift behind body text, so a wide
   opacity swing reads as the words themselves pulsing. Keep the range narrow. */
@keyframes flicker {
  0%, 100% { opacity: .88; }
  50%      { opacity: 1; }
}

/* --- the doorway --- */
.doorway {
  position: relative;
  grid-row: 1 / 3;
  align-self: end;
  perspective: 1500px;
  perspective-origin: 60% 50%;
  width: min(78vw, 420px);
  aspect-ratio: 42 / 68;
  margin-bottom: clamp(.5rem, 2vh, 1.5rem);
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.8));
}

/* light escaping from behind the door */
.door-reveal {
  position: absolute;
  inset: -6% -8%;
  z-index: 0;
  border-radius: 4px;
  background:
    radial-gradient(65% 55% at 52% 46%, rgba(255,214,150,.95), rgba(224,150,70,.55) 38%, transparent 72%),
    linear-gradient(180deg, #2a1a12, #120b08);
  opacity: 0;
  transform: scale(.96);
  transition: opacity 1.1s var(--ease) .35s, transform 1.6s var(--ease) .35s;
  pointer-events: none;
}
.doorway.is-open .door-reveal { opacity: 1; transform: scale(1); }

.door-glow {
  position: absolute;
  inset: 6% 4%;
  z-index: 0;
  background: radial-gradient(circle at 50% 45%, rgba(232,185,107,.22), transparent 62%);
  opacity: .5;
  transition: opacity .8s ease;
  pointer-events: none;
}
.doorway.is-open .door-glow { opacity: 1; }

/* --- the door itself --- */
.door {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 3px 3px 1px 1px;
  cursor: pointer;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition: transform 1.9s cubic-bezier(.7,.02,.24,1), box-shadow .6s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;

  /* wood */
  background:
    linear-gradient(180deg, rgba(255,220,175,.07), transparent 30%),
    repeating-linear-gradient(90deg,
      rgba(0,0,0,.34) 0 2px,
      rgba(255,255,255,.028) 2px 3px,
      transparent 3px 26px),
    linear-gradient(90deg, #2b1c13 0%, #38261a 22%, #2e1f15 50%, #38261a 78%, #26180f 100%);
  box-shadow:
    inset 0 0 0 9px #1b110b,
    inset 0 0 0 11px rgba(215,169,115,.20),
    inset 0 0 70px rgba(0,0,0,.85),
    0 0 0 12px #150d08,
    0 0 0 14px rgba(215,169,115,.10),
    0 24px 60px rgba(0,0,0,.9);
}

.door:focus-visible { box-shadow: inset 0 0 0 9px #1b110b, 0 0 0 3px var(--brass-hot), 0 0 0 12px #150d08, 0 24px 60px rgba(0,0,0,.9); }

.doorway.is-open .door {
  transform: rotateY(-112deg);
}

/* knock shake */
.door.is-knocked { animation: knockShake .34s var(--ease); }
@keyframes knockShake {
  0%   { transform: translateX(0) scale(1); }
  22%  { transform: translateX(3px) scale(1.003); }
  55%  { transform: translateX(-2px) scale(1.001); }
  100% { transform: translateX(0) scale(1); }
}
.door.is-refused { animation: knockShake .5s var(--ease) 2; }

.door-surface {
  position: absolute;
  inset: 14px;
  display: block;
}

/* recessed panels */
.panel {
  position: absolute;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(0,0,0,.28), rgba(255,255,255,.02) 60%, rgba(0,0,0,.34));
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.55),
    inset 0 2px 6px rgba(0,0,0,.6),
    inset 0 -1px 0 rgba(215,169,115,.10),
    0 1px 0 rgba(215,169,115,.14);
}
.panel--1 { left: 8%;  right: 8%;  top: 5%;    height: 22%; }
.panel--2 { left: 8%;  right: 8%;  top: 29.5%; height: 22%; }
.panel--3 { left: 8%;  right: 8%;  top: 56%;   height: 18%; }
.panel--4 { left: 8%;  right: 8%;  top: 76.5%; height: 18%; }

/* peephole */
.peephole {
  position: absolute;
  left: 50%; top: 47%;
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 38% 32%, #c79c6c, #6d4d2f 45%, #2a1c11 78%);
  box-shadow:
    0 0 0 3px #1a110a,
    0 0 0 4px rgba(215,169,115,.45),
    0 2px 8px rgba(0,0,0,.9),
    inset 0 -1px 2px rgba(0,0,0,.7);
}

.peephole-lens {
  width: 60%; height: 60%;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, #100c09, #000 70%);
  box-shadow: inset 0 0 6px #000;
}

.peephole-light {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,222,170,.95), rgba(240,170,90,.35) 55%, transparent 72%);
  opacity: 0;
  transition: opacity .5s ease;
}
.peephole.is-lit .peephole-light { opacity: 1; }

/* knocker */
.knocker-wrap {
  position: absolute;
  left: 50%; top: 57%;
  width: 22%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  opacity: .92;
}
.knocker { width: 100%; height: 100%; overflow: visible; }
.knocker-plate {
  fill: #4a3320;
  stroke: var(--brass-dim);
  stroke-width: 2.5;
}
.knocker-pin { fill: var(--brass); }
.knocker-ring {
  fill: none;
  stroke: url(#none);
  stroke: var(--brass);
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 3px 4px rgba(0,0,0,.8));
  transform-origin: 50px 24px;
  transition: transform .3s var(--ease);
}
.door:hover .knocker-ring { transform: rotate(-7deg); }

/* brass plaque */
.plaque {
  position: absolute;
  left: 50%; top: 4.5%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1em;
  padding: .35em .9em;
  border-radius: 2px;
  font-family: var(--caps);
  font-size: clamp(.44rem, 1.5vw, .6rem);
  letter-spacing: .34em;
  text-transform: uppercase;
  line-height: 1.5;
  color: #241811;
  background: linear-gradient(160deg, #e0c199, #b98f5d 55%, #d7b58a);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 2px 6px rgba(0,0,0,.7);
  text-shadow: 0 1px 0 rgba(255,255,255,.28);
}
.plaque span + span { margin-top: -.35em; }

/* --- door controls --- */
.door-hint {
  position: relative;
  z-index: 3;
  grid-row: 3;
  margin: .2rem 0 0;
  font-family: var(--caps);
  font-size: clamp(.8rem, 2.6vw, 1rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--brass);
  text-align: center;
  transition: opacity .4s ease;
  animation: hintPulse 3.4s ease-in-out infinite;
}
@keyframes hintPulse {
  0%,100% { opacity: .55; }
  50%     { opacity: 1; }
}
.door-hint.is-alert { animation: none; opacity: 1; color: var(--cream-dim); }

.linkish {
  position: relative;
  z-index: 3;
  background: none;
  border: 0;
  padding: .4rem .2rem;
  font: inherit;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(203,187,170,.55);
  cursor: pointer;
  transition: color .25s ease;
}
.linkish:hover, .linkish:focus-visible { color: var(--brass); }

.password-form[hidden] { display: none; }

.password-form {
  position: relative;
  z-index: 3;
  display: flex;
  gap: .5rem;
  margin-top: .25rem;
}
.password-form input {
  width: min(56vw, 220px);
  padding: .5rem .8rem;
  font-family: var(--sans);
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--cream);
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(215,169,115,.35);
  border-radius: 2px;
  outline: none;
}
.password-form input:focus { border-color: var(--brass); }
.password-form button {
  padding: .5rem .9rem;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #1a1209;
  background: linear-gradient(180deg, var(--brass-hot), var(--brass));
  border: 0;
  border-radius: 2px;
  cursor: pointer;
}

.skip-door {
  position: relative;
  z-index: 3;
  margin-top: .9rem;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(203,187,170,.3);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.skip-door:hover { color: var(--cream-dim); border-color: rgba(215,169,115,.4); }

.sound-toggle {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 950;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: .9rem;
  color: var(--cream-dim);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(215,169,115,.22);
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.sound-toggle:hover { color: var(--brass); border-color: rgba(215,169,115,.5); }
.sound-toggle .sound-off { display: none; }
.sound-toggle[aria-pressed="false"] .sound-off { display: block; }
.sound-toggle[aria-pressed="false"] .sound-on { display: none; }

/* =========================================================================
   THE ROOM
   ========================================================================= */

.stage--room {
  position: relative;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1rem, 5vw, 3rem) clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(80% 50% at 18% 0%,  rgba(232,185,107,.12), transparent 60%),
    radial-gradient(70% 45% at 85% 12%, rgba(190,110,70,.10), transparent 62%),
    radial-gradient(90% 60% at 50% 108%, rgba(120,40,30,.14), transparent 65%),
    linear-gradient(180deg, #0d0908, #080606 55%, #0a0706);
  overflow: hidden;
  animation: roomIn 1.1s var(--ease) both;
}
@keyframes roomIn {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

.room-glow { position: absolute; inset: 0; pointer-events: none; }
.candle {
  position: absolute;
  width: clamp(160px, 30vw, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,180,105,.14), transparent 68%);
  filter: blur(14px);
  animation: flicker 11s ease-in-out infinite;
}
.c1 { top: -4%;  left: -6%; }
.c2 { top: 26%;  right: -10%; animation-delay: -3.5s; }
.c3 { bottom: -8%; left: 32%;  animation-delay: -7s; }

.room-head {
  position: relative;
  max-width: 46rem;
  margin: 0 auto clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
}

.eyebrow {
  margin: 0 0 .9rem;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .44em;
  text-transform: uppercase;
  color: var(--brass);
}

.room-title {
  margin: 0 0 1.1rem;
  font-family: var(--caps);
  font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  line-height: 1;
  letter-spacing: .04em;
  color: var(--cream);
  text-shadow: 0 0 40px rgba(232,185,107,.22);
}

.room-sub {
  margin: 0 auto 2rem;
  max-width: 34rem;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 2.6vw, 1.2rem);
  font-weight: 300;
  line-height: 1.65;
  color: var(--cream-dim);
}

.btn {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: .95rem 1.9rem;
  border-radius: 2px;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .3s ease, background .3s ease;
}
.btn--primary {
  color: #1a1209;
  background: linear-gradient(180deg, var(--brass-hot), var(--brass));
  border: 0;
  box-shadow: 0 6px 24px rgba(215,169,115,.22), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(215,169,115,.34), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--primary:active { transform: translateY(0); }

/* --- the menu --- */
.menu {
  position: relative;
  max-width: 62rem;
  margin: 0 auto;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid rgba(215,169,115,.16);
}
.section-name {
  margin: 0;
  font-family: var(--caps);
  font-weight: 400;
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}
.section-tag {
  margin: 0 0 0 auto;
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  text-align: right;
  white-space: nowrap;
}
.section-intro {
  margin: -.6rem 0 1.6rem;
  max-width: 40rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(203,187,170,.72);
}

.entries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: .1rem .1rem;
}

.entry {
  position: relative;
  padding: 1.15rem 1.1rem 1.15rem .9rem;
  border-left: 1px solid transparent;
  background: none;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: background .35s ease, border-color .35s ease;
  border-radius: 2px;
}
.entry::after {
  content: "";
  position: absolute;
  left: .9rem; right: 1.1rem; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(215,169,115,.18), rgba(215,169,115,.04));
}
.entry:hover, .entry:focus-visible {
  background: rgba(232,185,107,.045);
  border-left-color: var(--brass);
  outline: none;
}

.entry-top {
  display: flex;
  align-items: baseline;
  gap: .75rem;
}
.entry-name {
  margin: 0;
  font-family: var(--caps);
  font-weight: 400;
  font-size: 1.16rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--cream);
  transition: color .3s ease;
}
.entry:hover .entry-name { color: var(--brass-hot); }

.entry-mood {
  margin-left: auto;
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass-dim);
  white-space: nowrap;
  text-align: right;
}

.entry-line {
  margin: .45rem 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  color: rgba(203,187,170,.8);
}

/* Nested `grid-template-rows: 0fr -> 1fr` does not resolve inside the parent
   .entries grid (the fr track's intrinsic size doesn't propagate), so the
   height is measured in JS and animated with max-height instead. */
.entry-more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s var(--ease), opacity .35s ease;
}
.entry.is-open .entry-more { opacity: 1; }

.entry-blurb {
  margin: .8rem 0 .9rem;
  font-family: var(--serif);
  font-size: .95rem;
  line-height: 1.62;
  color: rgba(203,187,170,.66);
}

.notes { display: grid; gap: .3rem; margin: 0; }
.note-row { display: grid; grid-template-columns: 4.2rem 1fr; gap: .6rem; align-items: baseline; }
.note-label {
  font-size: .55rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass-dim);
}
.note-val {
  font-family: var(--serif);
  font-size: .93rem;
  color: rgba(243,232,221,.8);
}

.room-foot {
  position: relative;
  max-width: 46rem;
  margin: clamp(3rem, 8vw, 5rem) auto 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 1rem;
  color: rgba(203,187,170,.7);
}
.room-foot .linkish { display: inline; font-family: var(--serif); font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--brass); border-bottom: 1px solid rgba(215,169,115,.3); }
.rule {
  width: 5rem; height: 1px; margin: 0 auto 2rem;
  background: linear-gradient(90deg, transparent, rgba(215,169,115,.5), transparent);
}
.fine {
  margin-top: 1.4rem;
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(203,187,170,.34);
}
.fine a { color: rgba(203,187,170,.55); text-decoration: none; }
.fine a:hover { color: var(--brass); }

/* =========================================================================
   THE READING
   ========================================================================= */

.reading {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  padding: clamp(.75rem, 3vw, 2rem);
}
.reading[hidden] { display: none; }

.reading-scrim {
  position: absolute;
  inset: 0;
  background: rgba(5,3,3,.82);
  backdrop-filter: blur(7px);
  animation: fadeIn .4s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reading-card {
  position: relative;
  width: min(100%, 40rem);
  max-height: min(92svh, 52rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(1.6rem, 5vw, 2.9rem);
  border-radius: 3px;
  background:
    radial-gradient(80% 40% at 50% 0%, rgba(232,185,107,.10), transparent 62%),
    linear-gradient(180deg, #171010, #0d0908 60%);
  border: 1px solid rgba(215,169,115,.22);
  box-shadow: 0 40px 100px rgba(0,0,0,.85), inset 0 1px 0 rgba(215,169,115,.12);
  animation: cardIn .55s var(--ease) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(215,169,115,.3) transparent;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.reading-close {
  position: absolute;
  top: .6rem; right: .9rem;
  width: 2rem; height: 2rem;
  font-size: 1.5rem;
  line-height: 1;
  color: rgba(203,187,170,.45);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color .2s;
}
.reading-close:hover { color: var(--brass); }

/* quiz */
.quiz-progress {
  display: flex;
  gap: .4rem;
  margin-bottom: 2rem;
}
.quiz-pip {
  flex: 1;
  height: 2px;
  background: rgba(215,169,115,.18);
  transition: background .4s ease;
}
.quiz-pip.is-done { background: var(--brass); }

.quiz-step { animation: stepIn .45s var(--ease) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: none; }
}

.quiz-q {
  margin: 0 0 1.8rem;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.35rem, 4.6vw, 1.75rem);
  line-height: 1.35;
  color: var(--cream);
}

.quiz-opts { display: grid; gap: .55rem; }

.opt {
  display: block;
  width: 100%;
  padding: .9rem 1.1rem;
  font-family: var(--serif);
  font-size: 1.02rem;
  text-align: left;
  color: rgba(243,232,221,.86);
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(215,169,115,.16);
  border-radius: 2px;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, transform .22s var(--ease), color .22s;
}
.opt:hover, .opt:focus-visible {
  background: rgba(232,185,107,.09);
  border-color: rgba(215,169,115,.5);
  color: #fff;
  transform: translateX(3px);
  outline: none;
}
.opt.is-chosen {
  background: rgba(232,185,107,.16);
  border-color: var(--brass);
  color: #fff;
}

.quiz-back {
  margin-top: 1.4rem;
  background: none; border: 0; padding: .3rem 0;
  font-family: var(--sans); font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(203,187,170,.4);
  cursor: pointer;
}
.quiz-back:hover { color: var(--brass); }

/* result */
.result { animation: stepIn .6s var(--ease) both; text-align: center; }

.result-eyebrow {
  margin: 0 0 1.4rem;
  font-size: .64rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--brass);
}

.result-family {
  margin: 0 0 .5rem;
  font-family: var(--sans);
  font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(203,187,170,.55);
}

.result-name {
  margin: 0 0 1rem;
  font-family: var(--caps);
  font-weight: 400;
  font-size: clamp(2rem, 7.5vw, 3rem);
  line-height: 1.02;
  letter-spacing: .05em;
  color: var(--cream);
  text-shadow: 0 0 46px rgba(232,185,107,.3);
}

.result-line {
  margin: 0 0 1.6rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--brass);
}

.result-blurb {
  margin: 0 auto 1.8rem;
  max-width: 30rem;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(203,187,170,.8);
}

.result-notes {
  display: grid;
  gap: .45rem;
  max-width: 24rem;
  margin: 0 auto 2rem;
  padding: 1.2rem 1.4rem;
  border-top: 1px solid rgba(215,169,115,.16);
  border-bottom: 1px solid rgba(215,169,115,.16);
  text-align: left;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-top: .5rem;
}
.btn--ghost {
  color: var(--cream-dim);
  background: none;
  border: 1px solid rgba(215,169,115,.3);
}
.btn--ghost:hover { color: var(--brass); border-color: rgba(215,169,115,.6); }

.also {
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(215,169,115,.12);
}
.also-label {
  margin: 0 0 .7rem;
  font-size: .58rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(203,187,170,.4);
}
.also-names {
  margin: 0;
  font-family: var(--caps);
  font-size: .95rem;
  letter-spacing: .1em;
  color: rgba(243,232,221,.72);
}
.also-names span { color: var(--brass-dim); margin: 0 .5rem; }

.copied {
  margin: .8rem 0 0;
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0;
  transition: opacity .3s ease;
}
.copied.is-on { opacity: 1; }

/* =========================================================================
   RESPONSIVE / MOTION
   ========================================================================= */

@media (max-width: 640px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: .15rem; }
  .section-tag { margin-left: 0; text-align: left; white-space: normal; }
  .entries { grid-template-columns: 1fr; }
  .entry::after { right: .4rem; }
  .doorway { width: min(84vw, 380px); }
  .room-head { margin-bottom: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .06s !important;
  }
  .doorway.is-open .door { transform: rotateY(-112deg); }
}
