:root {
  color-scheme: dark;
  --aubergine: #24102d;
  --aubergine-deep: #120819;
  --aubergine-soft: #4a244e;
  --mint: #9fffd5;
  --mint-dim: #5ebf9c;
  --fridge: #edf5eb;
  --tomato: #f04d42;
  --apricot: #ffbd82;
  --ink: #180c1e;
  --line: rgba(159, 255, 213, 0.56);
  --focus: #fff8a8;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  background: var(--aubergine-deep);
}

body {
  color: var(--fridge);
}

button {
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled) {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  display: block;
  min-height: 44px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--focus);
  font-weight: 900;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.kitchen {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 92% 76% at 50% 42%, rgba(159, 255, 213, 0.18), transparent 54%),
    linear-gradient(180deg, #35153c 0 44%, #1a0b22 75%, #0e0713 100%);
  perspective: 1100px;
  perspective-origin: 50% 48%;
}

.ceiling-plane,
.back-wall,
.floor-plane {
  position: absolute;
  z-index: -3;
  pointer-events: none;
}

.ceiling-plane {
  inset: -18% -8% auto;
  height: 43%;
  transform: rotateX(-52deg);
  transform-origin: center bottom;
  background:
    repeating-linear-gradient(90deg, transparent 0 19%, rgba(237, 245, 235, 0.025) 19.2% 20%),
    linear-gradient(180deg, #120819, #3d1b43);
  border-bottom: 1px solid rgba(159, 255, 213, 0.25);
}

.fluorescent {
  position: absolute;
  width: 24%;
  height: 8px;
  top: 63%;
  background: var(--mint);
  box-shadow: 0 0 14px 5px rgba(159, 255, 213, 0.54), 0 0 80px 18px rgba(159, 255, 213, 0.22);
}

.fluorescent-a { left: 18%; }
.fluorescent-b { right: 18%; }

.back-wall {
  inset: 12% 0 39%;
  background:
    linear-gradient(90deg, rgba(18, 8, 25, 0.92), transparent 16% 84%, rgba(18, 8, 25, 0.92)),
    linear-gradient(180deg, rgba(73, 36, 77, 0.88), rgba(43, 20, 51, 0.94));
  clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%);
}

.floor-plane {
  inset: 52% -20% -31%;
  transform: rotateX(58deg);
  transform-origin: center top;
  background:
    linear-gradient(90deg, transparent 49.7%, rgba(159, 255, 213, 0.08) 49.8% 50.2%, transparent 50.3%),
    repeating-linear-gradient(90deg, transparent 0 12%, rgba(159, 255, 213, 0.08) 12.2% 12.5%),
    repeating-linear-gradient(0deg, #15091c 0 14%, #2b122f 14.4% 15%);
}

.floor-plane span {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 189, 130, 0.08);
  transform-origin: top;
}

.floor-plane span:nth-child(1) { left: 18%; transform: rotate(-12deg); }
.floor-plane span:nth-child(2) { left: 34%; transform: rotate(-5deg); }
.floor-plane span:nth-child(3) { left: 50%; }
.floor-plane span:nth-child(4) { left: 66%; transform: rotate(5deg); }
.floor-plane span:nth-child(5) { left: 82%; transform: rotate(12deg); }

.room-fixture {
  position: absolute;
  z-index: 1;
  margin: 0;
}

.window {
  top: 10%;
  left: 50%;
  width: min(30vw, 430px);
  height: 26%;
  transform: translateX(-50%) translateZ(-80px);
  border: 12px solid #170b1d;
  background: #0a111a;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.42), inset 0 0 35px rgba(159, 255, 213, 0.08);
}

.window::before,
.window::after {
  content: "";
  position: absolute;
  z-index: 2;
  background: #170b1d;
}

.window::before { inset: 0 auto 0 49%; width: 8px; }
.window::after { inset: 47% 0 auto; height: 8px; }

.window-night {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(165deg, transparent 0 63%, rgba(240, 77, 66, 0.09) 63.5% 65%, transparent 66%),
    radial-gradient(circle at 70% 30%, rgba(255, 189, 130, 0.11), transparent 28%),
    #080a13;
}

.distant-light {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--apricot);
  box-shadow: 0 0 10px 3px rgba(255, 189, 130, 0.58);
}

.light-a { left: 17%; top: 34%; }
.light-b { right: 24%; bottom: 23%; }

.condensation {
  position: absolute;
  z-index: 4;
  right: 7%;
  top: 8%;
  margin: 0;
  max-width: 7ch;
  color: rgba(237, 245, 235, 0.62);
  font-family: Georgia, serif;
  font-size: clamp(0.65rem, 1.3vw, 1rem);
  font-style: italic;
  line-height: 0.9;
  transform: rotate(-7deg);
  text-shadow: 0 0 8px rgba(237, 245, 235, 0.32);
}

.window-note {
  position: absolute;
  left: 3%;
  bottom: -27px;
  width: 100%;
  margin: 0;
  color: rgba(159, 255, 213, 0.52);
  font-size: 0.62rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.fridge {
  top: 13%;
  right: -2%;
  width: min(18vw, 250px);
  height: 48%;
  transform: rotateY(-8deg) translateZ(-35px);
  transform-origin: right center;
  border: 4px solid #b7c6b9;
  border-radius: 12px 0 0 4px;
  background: linear-gradient(105deg, #becdc2, var(--fridge) 34%, #d8e3d8 84%);
  box-shadow: -14px 20px 44px rgba(0, 0, 0, 0.28);
  color: var(--ink);
}

.fridge-seam {
  position: absolute;
  top: 29%;
  left: 0;
  right: 0;
  height: 4px;
  background: #8da397;
}

.fridge-handle {
  position: absolute;
  top: 10%;
  left: 12%;
  width: 9px;
  height: 66px;
  border-radius: 8px;
  background: #93a198;
  box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.24);
}

.fridge-note {
  position: absolute;
  top: 12%;
  right: 12%;
  width: 52%;
  margin: 0;
  padding: 7px 4px;
  color: #411a3c;
  background: var(--apricot);
  box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.18);
  font-size: clamp(0.5rem, 0.85vw, 0.72rem);
  line-height: 1.05;
  text-align: center;
  transform: rotate(3deg);
}

.fridge-note strong { font-size: 1.08em; }

.fridge-letter {
  position: absolute;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 3px;
  color: var(--fridge);
  background: var(--tomato);
  font-size: 0.68rem;
  font-weight: 900;
}

.letter-m { top: 34%; right: 17%; transform: rotate(-9deg); }
.letter-a { top: 39%; right: 29%; transform: rotate(11deg); background: #5a2d61; }

.doorway {
  top: 15%;
  left: -1%;
  width: min(17vw, 245px);
  height: 46%;
  transform: rotateY(8deg) translateZ(-45px);
  transform-origin: left center;
  border: 9px solid #3f2345;
  border-bottom: 0;
  background: #0b0710;
  box-shadow: inset -20px 0 36px rgba(159, 255, 213, 0.04), 16px 18px 36px rgba(0, 0, 0, 0.22);
}

.door-dark { position: absolute; inset: 0; background: linear-gradient(120deg, #07050b, #170d1c); }

.key-hook {
  position: absolute;
  right: -32px;
  top: 27%;
  width: 48px;
  height: 90px;
}

.hook {
  position: absolute;
  left: 18px;
  top: 0;
  width: 9px;
  height: 18px;
  border: 3px solid var(--mint);
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.key-ring {
  position: absolute;
  left: 12px;
  top: 20px;
  width: 22px;
  height: 22px;
  border: 4px solid var(--fridge);
  border-radius: 50%;
}

.key-teeth {
  position: absolute;
  left: 21px;
  top: 40px;
  width: 5px;
  height: 38px;
  background: var(--fridge);
  box-shadow: 6px 27px 0 -1px var(--fridge), 6px 20px 0 -1px var(--fridge);
}

.door-label {
  position: absolute;
  right: -41px;
  top: 45%;
  margin: 0;
  color: var(--mint);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  transform: rotate(90deg);
}

.counter {
  top: 39%;
  right: 1%;
  width: min(22vw, 310px);
  height: 13%;
  transform: rotateY(-10deg) translateZ(-20px);
  border-top: 10px solid #6e4666;
  background: #2c152f;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.27);
}

.microwave {
  position: absolute;
  right: 12%;
  bottom: 78%;
  width: 64%;
  height: 82px;
  border: 5px solid #28122e;
  background: linear-gradient(90deg, #0b1514 0 72%, #18241f 72%);
  box-shadow: -7px 9px 17px rgba(0, 0, 0, 0.32);
}

.clock {
  position: absolute;
  right: 4%;
  top: 7px;
  margin: 0;
  color: var(--tomato);
  font-family: "Courier New", monospace;
  font-size: clamp(0.78rem, 1.4vw, 1.05rem);
  text-shadow: 0 0 8px rgba(240, 77, 66, 0.72);
}

.microwave-title {
  position: absolute;
  left: 7%;
  top: 12px;
  margin: 0;
  color: rgba(159, 255, 213, 0.7);
  font-size: clamp(0.46rem, 0.75vw, 0.62rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.1;
}

.ride-slip {
  position: absolute;
  left: -9%;
  bottom: 25%;
  display: grid;
  width: 54px;
  min-height: 62px;
  padding: 5px;
  color: var(--ink);
  background: var(--fridge);
  font-family: "Courier New", monospace;
  font-size: 0.48rem;
  text-align: center;
  transform: rotate(-5deg);
}

.ride-slip strong { font-size: 1rem; }
.ride-slip small { border-top: 1px dashed var(--ink); padding-top: 3px; }

.tuesday-calendar {
  position: absolute;
  right: -2%;
  bottom: 11%;
  width: 48px;
  height: 56px;
  color: var(--ink);
  background: var(--mint);
  text-align: center;
  transform: rotate(4deg);
}

.tuesday-calendar span { display: block; padding: 3px; color: var(--fridge); background: var(--tomato); font-size: 0.52rem; font-weight: 900; }
.tuesday-calendar strong { font-family: Georgia, serif; font-size: 1.65rem; }

.people {
  position: absolute;
  z-index: 6;
  inset: 0;
  pointer-events: none;
}

.kitchen[data-phase="futures"] .people,
.kitchen[data-phase="futures"] .character {
  pointer-events: none;
}

.character {
  --person-color: var(--fridge);
  --person-dark: #b9c8bc;
  position: absolute;
  width: clamp(190px, 19vw, 275px);
  height: clamp(265px, 38vh, 370px);
  overflow: visible;
  color: var(--fridge);
  background: transparent;
  pointer-events: auto;
  transition: filter 220ms ease, transform 340ms cubic-bezier(.2, .8, .2, 1), opacity 220ms ease;
}

.character:disabled {
  opacity: 1;
  cursor: default;
}

.character:not(:disabled):hover .person,
.character[aria-pressed="true"] .person {
  filter: drop-shadow(0 0 18px rgba(159, 255, 213, 0.56));
}

.character[aria-pressed="true"] .name::before {
  content: "AIM → ";
  color: var(--focus);
}

.character-mara {
  --person-color: var(--tomato);
  --person-dark: #a92b36;
  left: 15%;
  top: 23%;
  transform: rotateY(11deg) translateZ(20px);
}

.character-theo {
  --person-color: var(--fridge);
  --person-dark: #9ebbaa;
  left: 50%;
  top: 14%;
  transform: translateX(-50%) translateZ(-8px);
}

.character-nia {
  --person-color: var(--apricot);
  --person-dark: #ba6d61;
  right: 15%;
  top: 23%;
  transform: rotateY(-11deg) translateZ(20px);
}

.chair {
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 3%;
  height: 52%;
  border: 12px solid #160a1c;
  border-bottom: 0;
  border-radius: 38px 38px 0 0;
  opacity: 0.78;
  transform: translateY(9%);
  transition: transform 340ms ease;
}

.person {
  position: absolute;
  inset: 0;
  transform-origin: 50% 82%;
  transition: transform 420ms cubic-bezier(.2, .8, .2, 1);
}

.head {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 5%;
  width: 29%;
  aspect-ratio: 0.88;
  border-radius: 48% 45% 52% 46%;
  background: #7b493f;
  box-shadow: inset 8px -6px 0 rgba(44, 18, 35, 0.18);
  transform: translateX(-50%);
  transition: transform 360ms ease;
}

.character-theo .head { background: #9a6550; }
.character-nia .head { background: #503436; }

.hair {
  position: absolute;
  z-index: 5;
  left: 36%;
  top: 2%;
  width: 30%;
  height: 23%;
  border-radius: 50% 50% 34% 22%;
  background: #170d18;
  transform: rotate(-6deg);
}

.character-theo .hair { height: 14%; border-radius: 50% 50% 20% 25%; transform: rotate(3deg); }
.character-nia .hair { left: 32%; width: 37%; height: 24%; border-radius: 50%; box-shadow: -10px 8px 0 #170d18, 10px 6px 0 #170d18; }

.gaze {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 31%;
  height: 4px;
  border-radius: 3px;
  background: var(--mint);
  box-shadow: 0 0 6px rgba(159, 255, 213, 0.8);
  transform-origin: left center;
  transition: transform 360ms ease;
}

.torso {
  position: absolute;
  z-index: 2;
  left: 29%;
  top: 25%;
  width: 42%;
  height: 54%;
  border-radius: 32% 32% 12% 12%;
  background: linear-gradient(110deg, var(--person-dark), var(--person-color) 45%, var(--person-dark));
  transform-origin: 50% 100%;
  transition: transform 360ms ease;
}

.arm {
  position: absolute;
  z-index: 3;
  top: 34%;
  width: 13%;
  height: 43%;
  border-radius: 18px;
  background: var(--person-color);
  transform-origin: 50% 8%;
  transition: transform 420ms ease;
}

.arm-left { left: 25%; transform: rotate(18deg); }
.arm-right { right: 25%; transform: rotate(-18deg); }

.hand {
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50% 45% 40% 50%;
  background: #7b493f;
  transform: translateX(-50%);
}

.character-theo .hand { background: #9a6550; }
.character-nia .hand { background: #503436; }

.bag {
  position: absolute;
  z-index: 1;
  right: 5%;
  bottom: 8%;
  width: 34%;
  height: 29%;
  border: 5px solid #922a31;
  background: #39182f;
  transform: rotate(-8deg);
}

.bag::before {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  top: -21px;
  height: 24px;
  border: 5px solid #922a31;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
}

.name {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 8%;
  color: var(--person-color);
  font-size: clamp(0.7rem, 1.05vw, 0.94rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.opening-line {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: -5%;
  width: 110%;
  padding: 7px 2px;
  border-bottom: 1px solid rgba(159, 255, 213, 0.48);
  color: var(--fridge);
  background: linear-gradient(90deg, transparent, rgba(18, 8, 25, 0.72) 18% 82%, transparent);
  font-family: Georgia, serif;
  font-size: clamp(0.72rem, 1.1vw, 0.94rem);
  line-height: 1.15;
  text-align: center;
  transform: translateX(-50%);
}

.character[data-posture="guarded"] .person { transform: rotate(-5deg) translateX(-5%); }
.character[data-posture="guarded"] .arm-left { transform: rotate(-35deg) translateX(28px); }
.character[data-posture="guarded"] .arm-right { transform: rotate(35deg) translateX(-28px); }
.character[data-posture="forward"] .person { transform: rotate(6deg) translateY(3%); }
.character[data-posture="forward"] .arm-left { transform: rotate(48deg) translateY(-8px); }
.character[data-posture="forward"] .arm-right { transform: rotate(-48deg) translateY(-8px); }
.character[data-posture="braced"] .person { transform: rotate(-2deg) translateY(-2%); }
.character[data-posture="braced"] .arm-left { transform: rotate(67deg) translateY(-10px); }
.character[data-posture="braced"] .arm-right { transform: rotate(-67deg) translateY(-10px); }
.character[data-posture="leaned-away"] .person { transform: rotate(-13deg) translateX(-8%) translateY(3%); }
.character[data-posture="leaned-away"] .chair { transform: translate(8%, 15%); }
.character[data-posture="half-risen"] .person { transform: translateY(-13%) rotate(4deg); }
.character[data-posture="half-risen"] .chair { transform: translate(-6%, 17%); }
.character[data-posture="half-risen"] .arm-right { transform: rotate(-75deg) translateY(-11px); }
.character[data-posture="folded"] .person { transform: rotate(8deg) translateY(4%); }
.character[data-posture="folded"] .arm-left { transform: rotate(-49deg) translateX(34px); }
.character[data-posture="folded"] .arm-right { transform: rotate(49deg) translateX(-34px); }
.character[data-posture="softened"] .person { transform: rotate(2deg) translateY(1%); }
.character[data-posture="softened"] .arm-left { transform: rotate(38deg) translateY(-6px); }
.character[data-posture="softened"] .arm-right { transform: rotate(-12deg) translateY(5px); }
.character[data-posture="reached"] .person { transform: rotate(9deg) translateY(-3%); }
.character[data-posture="reached"] .arm-right { transform: rotate(-86deg) translateY(-13px); }
.character[data-posture="reached"] .arm-left { transform: rotate(22deg); }

.character[data-gaze="mara"] .gaze { transform: rotate(165deg); }
.character[data-gaze="theo"] .gaze { transform: rotate(-84deg); }
.character[data-gaze="nia"] .gaze { transform: rotate(8deg); }
.character[data-gaze="visitor"] .gaze { transform: rotate(78deg); }
.character[data-gaze="door"] .gaze { transform: rotate(195deg); }
.character[data-gaze="table"] .gaze { transform: rotate(104deg); }

.sightlines {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
}

.sightline {
  position: absolute;
  left: 50%;
  bottom: 30%;
  width: 1px;
  height: 42%;
  opacity: 0.28;
  background: linear-gradient(180deg, transparent, var(--line) 35%, transparent);
  transform-origin: bottom;
  transition: opacity 160ms ease, filter 160ms ease;
}

.sightline-mara { transform: rotate(-38deg); }
.sightline-theo { transform: rotate(0deg); }
.sightline-nia { transform: rotate(38deg); }

.kitchen[data-aim-recipient="mara"] .sightline-mara,
.kitchen[data-aim-recipient="theo"] .sightline-theo,
.kitchen[data-aim-recipient="nia"] .sightline-nia,
.kitchen[data-reply-speaker="mara"] .sightline-mara,
.kitchen[data-reply-speaker="theo"] .sightline-theo,
.kitchen[data-reply-speaker="nia"] .sightline-nia {
  opacity: 1;
  filter: drop-shadow(0 0 7px var(--mint));
}

.table-zone {
  position: absolute;
  z-index: 9;
  inset: 0;
  pointer-events: none;
}

.table {
  position: absolute;
  left: 50%;
  bottom: -15%;
  width: min(76vw, 1100px);
  height: 48%;
  transform: translateX(-50%) rotateX(57deg);
  transform-origin: center center;
  border: 12px solid #160a1b;
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 49%, rgba(255, 189, 130, 0.12), transparent 17%),
    repeating-radial-gradient(ellipse at center, transparent 0 12px, rgba(159, 255, 213, 0.025) 13px 14px),
    linear-gradient(120deg, #5c2b51, #30132f 47%, #4b2044);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.44), inset 0 7px 18px rgba(255, 189, 130, 0.12);
}

.table-rim {
  position: absolute;
  inset: 8% 5%;
  border: 2px solid rgba(159, 255, 213, 0.18);
  border-radius: 50%;
}

.plate {
  position: absolute;
  left: 42%;
  bottom: 8%;
  width: 17%;
  aspect-ratio: 1.45;
  border: 3px solid rgba(237, 245, 235, 0.75);
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px rgba(237, 245, 235, 0.06);
}

.glass {
  position: absolute;
  left: 61%;
  bottom: 16%;
  width: 6%;
  height: 17%;
  border: 3px solid rgba(159, 255, 213, 0.52);
  border-radius: 4px 4px 44% 44%;
}

.napkin {
  position: absolute;
  left: 31%;
  bottom: 13%;
  width: 10%;
  height: 17%;
  background: rgba(240, 77, 66, 0.68);
  transform: rotate(12deg);
}

.empty-chair {
  position: absolute;
  left: 39%;
  bottom: -39%;
  width: 23%;
  height: 42%;
  border: 14px solid #0f0714;
  border-bottom: 0;
  border-radius: 44px 44px 0 0;
}

.word-ring {
  position: absolute;
  z-index: 3;
  bottom: calc(3.5% + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(2, minmax(74px, 1fr));
  gap: 7px;
  width: min(25vw, 360px);
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: auto;
  transition: opacity 180ms ease, transform 220ms ease;
}

.intentions { left: 14%; }
.facts { right: 14%; }

.word-ring legend {
  grid-column: 1 / -1;
  width: 100%;
  padding: 0 0 3px;
  color: rgba(159, 255, 213, 0.68);
  font-size: clamp(0.55rem, 0.7vw, 0.68rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.word-ring button {
  position: relative;
  min-height: 52px;
  padding: 6px 8px;
  border: 1px solid rgba(159, 255, 213, 0.3);
  color: rgba(237, 245, 235, 0.78);
  background:
    linear-gradient(135deg, rgba(159, 255, 213, 0.06), transparent),
    rgba(36, 16, 45, 0.68);
  font-size: clamp(0.63rem, 0.92vw, 0.85rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(var(--tilt, 0deg));
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.word-ring button:nth-of-type(1) { --tilt: -2deg; }
.word-ring button:nth-of-type(2) { --tilt: 1.5deg; }
.word-ring button:nth-of-type(3) { --tilt: 1deg; }
.word-ring button:nth-of-type(4) { --tilt: -1.5deg; }

.word-ring button span { color: var(--apricot); }

.word-ring button:hover,
.word-ring button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--mint);
  border-color: var(--focus);
  transform: rotate(0) translateY(-3px);
}

.facts button[aria-pressed="true"] { background: var(--apricot); }

.table-instruction {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(35% + var(--safe-bottom));
  width: min(70%, 620px);
  margin: 0;
  color: rgba(237, 245, 235, 0.76);
  font-size: clamp(0.64rem, 0.9vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%) rotateX(10deg);
}

.line-token,
.clarification-line {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: calc(23% + var(--safe-bottom));
  width: min(56vw, 760px);
  min-height: 58px;
  padding: 10px 42px;
  border-top: 1px solid var(--mint);
  border-bottom: 1px solid var(--mint);
  color: var(--fridge);
  background: linear-gradient(90deg, transparent, rgba(18, 8, 25, 0.92) 14% 86%, transparent);
  font-family: Georgia, serif;
  font-size: clamp(0.8rem, 1.3vw, 1.08rem);
  line-height: 1.25;
  transform: translateX(-50%);
  pointer-events: auto;
  touch-action: none;
  transition: transform 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.line-token::before {
  content: "lift this line";
  position: absolute;
  left: 50%;
  top: -20px;
  color: var(--mint);
  font-family: Arial, sans-serif;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.line-token:hover,
.line-token.is-dragging {
  border-color: var(--focus);
  filter: drop-shadow(0 0 12px rgba(159, 255, 213, 0.44));
  transform: translateX(-50%) translateY(-4px);
}

.silence {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(4% + var(--safe-bottom));
  width: min(13vw, 175px);
  min-height: 58px;
  padding: 7px;
  border: 1px dashed rgba(237, 245, 235, 0.46);
  color: rgba(237, 245, 235, 0.76);
  background: rgba(18, 8, 25, 0.48);
  font-size: clamp(0.62rem, 0.85vw, 0.78rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
  pointer-events: auto;
}

.silence span {
  display: block;
  margin-top: 3px;
  color: var(--mint);
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.silence:hover { color: var(--ink); background: var(--fridge); }

.kitchen[data-phase="aim"] .word-ring,
.kitchen[data-phase="clarify"] .word-ring,
.kitchen[data-phase="futures"] .word-ring {
  opacity: 0.12;
  transform: translateY(14px);
  pointer-events: none;
}

.tone-zones {
  position: absolute;
  z-index: 14;
  left: 4%;
  right: 4%;
  bottom: calc(2% + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  pointer-events: none;
}

.tone-zones legend {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  color: var(--mint);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.tone-zones button {
  min-height: 64px;
  border: 2px solid rgba(237, 245, 235, 0.32);
  background: rgba(18, 8, 25, 0.89);
  pointer-events: auto;
}

.tone-zones button strong,
.tone-zones button span { display: block; }
.tone-zones button strong { font-size: clamp(0.74rem, 1.05vw, 0.95rem); letter-spacing: 0.2em; }
.tone-zones button span { margin-top: 3px; color: rgba(237, 245, 235, 0.56); font-size: 0.56rem; }
.tone-zones button[data-tone="warm"] { border-color: var(--apricot); }
.tone-zones button[data-tone="plain"] { border-color: var(--fridge); }
.tone-zones button[data-tone="sharp"] { border-color: var(--tomato); }
.tone-zones button[aria-pressed="true"]::before { content: "✓ "; font-weight: 900; }
.tone-zones button[data-tone="warm"][aria-pressed="true"] { color: var(--ink); background: var(--apricot); }
.tone-zones button[data-tone="plain"][aria-pressed="true"] { color: var(--ink); background: var(--fridge); }
.tone-zones button[data-tone="sharp"][aria-pressed="true"] { color: var(--fridge); background: var(--tomato); }

.spoken-line {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 42%;
  width: min(48vw, 660px);
  padding: 8px 18px 10px;
  border-bottom: 1px solid var(--mint);
  color: var(--fridge);
  background: linear-gradient(90deg, transparent, rgba(18, 8, 25, 0.9) 15% 85%, transparent);
  font-family: Georgia, serif;
  font-size: clamp(0.82rem, 1.35vw, 1.15rem);
  line-height: 1.2;
  text-align: center;
  transform: translateX(-50%);
  pointer-events: none;
}

.spoken-speaker {
  display: block;
  margin-bottom: 3px;
  color: var(--mint);
  font-family: Arial, sans-serif;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.spoken-reflection {
  position: absolute;
  left: 12%;
  right: 12%;
  top: calc(100% + 17px);
  height: 22px;
  color: rgba(159, 255, 213, 0.13);
  background: linear-gradient(180deg, rgba(159, 255, 213, 0.12), transparent);
  filter: blur(3px);
  transform: scaleY(-1) skewX(-18deg);
}

.exchange-mark {
  position: absolute;
  z-index: 15;
  top: 3%;
  left: 50%;
  margin: 0;
  color: rgba(237, 245, 235, 0.36);
  font-size: 1rem;
  letter-spacing: 0.5em;
  transform: translateX(-50%);
}

.exchange-mark .filled { color: var(--tomato); }

.future-fan {
  position: absolute;
  z-index: 4;
  inset: 8% 8% 25%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2%;
  perspective: 1000px;
  pointer-events: none;
}

.future-plane {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 14px 14px 76px;
  border: 1px solid rgba(237, 245, 235, 0.38);
  background: linear-gradient(180deg, rgba(31, 15, 39, 0.96), rgba(18, 8, 25, 0.93));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.48);
  pointer-events: auto;
  transform-origin: center bottom;
  animation: future-open 620ms cubic-bezier(.15, .85, .2, 1) both;
  transition: transform 520ms cubic-bezier(.4, 0, .2, 1), opacity 420ms ease, filter 420ms ease;
}

.future-mara { border-top: 8px solid var(--tomato); transform: rotateY(13deg) rotateZ(-2deg); animation-delay: 0ms; }
.future-theo { border-top: 8px solid var(--fridge); transform: translateY(-3%) translateZ(-28px); animation-delay: 90ms; }
.future-nia { border-top: 8px solid var(--apricot); transform: rotateY(-13deg) rotateZ(2deg); animation-delay: 180ms; }

@keyframes future-open {
  from { opacity: 0; transform: translateY(28%) rotateX(-44deg) scaleY(0.35); }
}

.future-plane header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--mint);
  font-size: clamp(0.52rem, 0.72vw, 0.68rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.future-plane header time { color: var(--apricot); font-family: "Courier New", monospace; }

.future-scene {
  position: relative;
  height: 42%;
  min-height: 92px;
  margin: 10px 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(159, 255, 213, 0.25);
  background: rgba(8, 5, 12, 0.52);
}

.taxi-window { position: absolute; inset: 14% 14% 23%; border: 8px solid #251126; background: linear-gradient(180deg, #161324, #463349); }
.taxi-window::after { content: ""; position: absolute; left: 48%; top: 0; bottom: 0; width: 6px; background: #251126; }
.taxi-light { position: absolute; right: 8%; bottom: 15%; width: 18px; height: 11px; border-radius: 50%; background: var(--tomato); box-shadow: 0 0 18px 9px rgba(240, 77, 66, 0.46); }
.porch-line { position: absolute; left: 5%; right: 5%; bottom: 10%; height: 4px; background: var(--apricot); transform: rotate(-3deg); }

.mug { position: absolute; bottom: 16%; width: 44px; height: 49px; border: 6px solid var(--fridge); border-top: 0; border-radius: 0 0 10px 10px; }
.mug::after { content: ""; position: absolute; right: -19px; top: 8px; width: 18px; height: 20px; border: 5px solid var(--fridge); border-left: 0; border-radius: 0 50% 50% 0; }
.mug-a { left: 22%; }
.mug-b { right: 22%; transform: scale(0.82); opacity: 0.65; }
.toast { position: absolute; left: 47%; bottom: 15%; width: 43px; height: 34px; border-radius: 9px 9px 2px 2px; background: var(--apricot); transform: rotate(8deg); }

.future-hook { position: absolute; left: 50%; top: 8%; width: 8px; height: 27px; border: 4px solid var(--mint); border-top: 0; border-radius: 0 0 8px 8px; }
.future-key { position: absolute; left: calc(50% - 7px); top: 36%; width: 23px; height: 23px; border: 5px solid var(--fridge); border-radius: 50%; }
.future-key::after { content: ""; position: absolute; left: 7px; top: 18px; width: 6px; height: 42px; background: var(--fridge); box-shadow: 7px 30px 0 -1px var(--fridge); }
.future-note { position: absolute; right: 9%; bottom: 14%; padding: 8px; color: var(--ink); background: var(--apricot); font-size: 0.54rem; font-weight: 900; transform: rotate(4deg); }

.future-quote {
  margin: 7px 0 5px;
  overflow-wrap: anywhere;
  color: var(--fridge);
  font-family: Georgia, serif;
  font-size: clamp(0.65rem, 0.9vw, 0.82rem);
  font-style: italic;
  line-height: 1.15;
}

.future-caption {
  margin: 0;
  color: rgba(237, 245, 235, 0.74);
  font-size: clamp(0.58rem, 0.76vw, 0.72rem);
  line-height: 1.25;
}

.consequence {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  width: calc(100% - 24px);
  min-height: 52px;
  padding: 7px 10px;
  border: 1px solid var(--mint);
  color: var(--mint);
  background: rgba(18, 8, 25, 0.9);
  text-align: left;
  touch-action: none;
}

.consequence span,
.consequence strong { display: block; }
.consequence span { font-size: 0.52rem; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.consequence strong { margin-top: 2px; color: var(--fridge); font-family: Georgia, serif; font-size: clamp(0.68rem, 0.88vw, 0.8rem); }
.consequence:hover { color: var(--ink); background: var(--mint); }
.consequence:hover strong { color: var(--ink); }
.consequence.is-dragging { z-index: 30; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.55)); }

.future-fan.is-folding .future-plane { opacity: 0.18; filter: blur(2px); animation: none; }
.future-fan.is-folding .future-mara { transform: translate(74%, 35%) rotateY(25deg) scale(0.28); }
.future-fan.is-folding .future-theo { transform: translateY(42%) scale(0.28); }
.future-fan.is-folding .future-nia { transform: translate(-74%, 35%) rotateY(-25deg) scale(0.28); }
.future-fan.is-collapsed .future-plane { opacity: 0; transform: translate(0, 52%) scale(0.04); }

.clarification {
  position: absolute;
  z-index: 16;
  inset: 0;
  pointer-events: none;
}

.clarification p {
  position: absolute;
  left: 50%;
  bottom: 36%;
  width: min(80%, 560px);
  margin: 0;
  color: var(--apricot);
  font-size: clamp(0.58rem, 0.8vw, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.clarification-line {
  pointer-events: auto;
}

.clarification-line::before {
  content: "PLAIN CLARIFICATION · DIRECT TO ANYONE";
  position: absolute;
  left: 50%;
  top: -21px;
  width: 100%;
  color: var(--mint);
  font-family: Arial, sans-serif;
  font-size: 0.54rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  transform: translateX(-50%);
}

.ending {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 7vh 8vw 5vh;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, rgba(36, 16, 45, 0.24), rgba(36, 16, 45, 0.9) 68%);
}

.dawn-wash {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 46% at 50% 25%, rgba(255, 244, 202, 0.76), rgba(255, 189, 130, 0.5) 34%, transparent 70%),
    linear-gradient(180deg, rgba(240, 77, 66, 0.34), rgba(36, 16, 45, 0.82));
  animation: dawn-in 800ms ease both;
}

@keyframes dawn-in { from { opacity: 0; } }

.ending-time {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.ending h2 {
  max-width: 16ch;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 5.4vw, 5rem);
  font-weight: 400;
  line-height: 0.95;
}

.ending-copy {
  max-width: 58ch;
  margin: 18px 0;
  color: #2d1630;
  font-family: Georgia, serif;
  font-size: clamp(0.9rem, 1.4vw, 1.2rem);
  line-height: 1.45;
}

.ending-replies {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(90vw, 840px);
}

.ending-replies p {
  flex: 1 1 0;
  margin: 0;
  padding: 8px 10px;
  border-top: 1px solid rgba(36, 16, 45, 0.48);
  color: #2d1630;
  font-family: Georgia, serif;
  font-size: clamp(0.66rem, 1vw, 0.84rem);
  font-style: italic;
}

.ending-replies p::before {
  display: block;
  margin-bottom: 3px;
  color: var(--aubergine-soft);
  font-family: Arial, sans-serif;
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.ending-replies p[data-ending-reply="mara"]::before { content: "Mara"; }
.ending-replies p[data-ending-reply="theo"]::before { content: "Theo"; }
.ending-replies p[data-ending-reply="nia"]::before { content: "Nia"; }

.ending-action {
  position: relative;
  width: min(70vw, 600px);
  height: 80px;
  margin: 3px 0 17px;
  border-bottom: 4px solid rgba(36, 16, 45, 0.7);
}

.ending-action span {
  position: absolute;
  bottom: 0;
  width: 32px;
  height: 62px;
  border-radius: 50% 50% 8px 8px;
  background: var(--person, var(--fridge));
  box-shadow: 0 0 20px rgba(255, 244, 202, 0.42);
}

.ending-action span::before { content: ""; position: absolute; left: 50%; top: -13px; width: 28px; height: 28px; border-radius: 50%; background: #573638; transform: translateX(-50%); }
.action-mara { --person: var(--tomato); left: 26%; transform: rotate(-5deg); }
.action-theo { --person: var(--fridge); left: 42%; transform: rotate(3deg); }
.action-nia { --person: var(--apricot); right: 34%; transform: rotate(-2deg); }
.action-you { --person: var(--mint); right: 20%; transform: rotate(6deg); }

.ending button {
  min-width: 180px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--mint);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.static-fallback {
  position: fixed;
  z-index: 50;
  inset: auto 5vw 5vh;
  display: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 8px 30px;
  padding: 24px;
  border-top: 2px solid var(--mint);
  color: var(--fridge);
  background: linear-gradient(90deg, rgba(18, 8, 25, 0.97), rgba(36, 16, 45, 0.9));
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
}

.fallback-time { grid-row: 1 / 4; margin: 0; color: var(--mint); font-size: 0.68rem; font-weight: 900; letter-spacing: 0.2em; writing-mode: vertical-rl; }
.static-fallback h2 { margin: 0; color: var(--apricot); font-family: Georgia, serif; font-size: clamp(1.4rem, 3.5vw, 3rem); font-weight: 400; }
.static-fallback p:not(.fallback-time) { max-width: 64ch; margin: 0; font-family: Georgia, serif; line-height: 1.45; }
.fallback-note { color: var(--mint); font-family: Arial, sans-serif !important; font-size: 0.7rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }

@media (max-width: 780px) {
  .kitchen { min-height: 660px; perspective-origin: 50% 42%; }
  .ceiling-plane { height: 36%; }
  .window { top: 8%; width: 45vw; height: 20%; border-width: 7px; }
  .window-note { display: none; }
  .fridge { top: 9%; right: -12%; width: 29vw; height: 42%; opacity: 0.82; }
  .fridge-note { right: 20%; width: 48%; }
  .doorway { top: 10%; left: -9%; width: 27vw; height: 41%; opacity: 0.84; }
  .key-hook { right: -27px; transform: scale(0.78); }
  .counter { top: 31%; right: -7%; width: 32vw; height: 11%; }
  .microwave { right: 20%; width: 82%; height: 62px; }
  .ride-slip { left: -25%; transform: scale(0.78) rotate(-5deg); }
  .tuesday-calendar { right: 4%; transform: scale(0.62) rotate(4deg); transform-origin: right bottom; }

  .character { width: 39vw; height: 35vh; min-height: 238px; max-height: 330px; }
  .character-mara { left: -1%; top: 23%; transform: rotateY(9deg) scale(0.92); transform-origin: left center; }
  .character-theo { left: 50%; top: 15%; transform: translateX(-50%) translateZ(-8px) scale(0.9); }
  .character-nia { right: -1%; top: 23%; transform: rotateY(-9deg) scale(0.92); transform-origin: right center; }
  .opening-line { bottom: -9%; width: 118%; font-size: 0.66rem; }
  .name { bottom: 3%; font-size: 0.62rem; }
  .bag { right: -1%; }

  .table { bottom: -9%; width: 128vw; height: 47%; border-width: 8px; }
  .word-ring { bottom: calc(2% + var(--safe-bottom)); width: 45.5vw; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .intentions { left: 2%; }
  .facts { right: 2%; }
  .word-ring button { min-height: 52px; padding: 5px 3px; font-size: 0.59rem; letter-spacing: 0.07em; }
  .word-ring legend { font-size: 0.48rem; letter-spacing: 0.1em; }
  .silence { bottom: calc(27% + var(--safe-bottom)); width: 37vw; min-height: 49px; }
  .table-instruction { bottom: calc(36% + var(--safe-bottom)); width: 92%; font-size: 0.56rem; }
  .line-token,
  .clarification-line { bottom: calc(27% + var(--safe-bottom)); width: 88vw; min-height: 60px; padding: 9px 22px; font-size: 0.74rem; }
  .line-token::before { top: -17px; font-size: 0.48rem; }
  .spoken-line { bottom: 43%; width: 86vw; font-size: 0.76rem; }
  .exchange-mark { top: 1.6%; }

  .tone-zones { left: 2%; right: 2%; bottom: calc(1% + var(--safe-bottom)); gap: 5px; }
  .tone-zones button { min-height: 58px; }
  .tone-zones button strong { font-size: 0.64rem; }
  .tone-zones legend { font-size: 0.5rem; }
  .kitchen[data-phase="aim"] .line-token { bottom: calc(14% + var(--safe-bottom)); }

  .future-fan {
    inset: 6% 5% 25%;
    display: block;
    perspective: 850px;
  }
  .future-plane {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    height: 61%;
    padding: 10px 10px 62px;
  }
  .future-mara { top: 0; transform: translateX(-7%) rotateY(12deg) rotateZ(-1.5deg) scale(0.88); }
  .future-theo { top: 14%; transform: translateX(0) translateZ(-30px) scale(0.88); }
  .future-nia { top: 28%; transform: translateX(7%) rotateY(-12deg) rotateZ(1.5deg) scale(0.88); }
  .future-plane:focus-within { z-index: 5; transform: translateY(-2%) scale(0.96); }
  .future-scene { float: left; width: 38%; height: 65%; min-height: 88px; margin: 7px 10px 4px 0; }
  .future-quote { margin-top: 8px; font-size: 0.62rem; }
  .future-caption { font-size: 0.57rem; }
  .consequence { min-height: 56px; }
  .future-fan.is-folding .future-mara,
  .future-fan.is-folding .future-theo,
  .future-fan.is-folding .future-nia { transform: translate(0, 48%) scale(0.2); }

  .clarification p { bottom: 38%; font-size: 0.52rem; }
  .clarification-line { bottom: 27%; }
  .clarification-line::before { font-size: 0.46rem; letter-spacing: 0.1em; }

  .ending { padding: 10vh 7vw 4vh; }
  .ending h2 { font-size: clamp(2.1rem, 12vw, 3.6rem); }
  .ending-copy { font-size: 0.9rem; }
  .ending-replies { gap: 4px; }
  .ending-replies p { padding: 6px 4px; font-size: 0.62rem; }
  .ending-action { width: 88vw; }

  .static-fallback { inset: auto 4vw 4vh; grid-template-columns: 1fr; max-height: 61vh; overflow: auto; padding: 18px; }
  .fallback-time { grid-row: auto; writing-mode: horizontal-tb; }
  .static-fallback h2 { font-size: 1.65rem; }
  .static-fallback p:not(.fallback-time) { font-size: 0.86rem; }
}

@media (max-width: 420px) {
  .character { width: 42vw; }
  .character-mara { left: -4%; }
  .character-nia { right: -4%; }
  .opening-line { width: 126%; }
  .fridge { right: -15%; }
  .word-ring { width: 46.5vw; }
  .word-ring button { font-size: 0.55rem; }
  .silence { width: 42vw; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Focused cold-critic patch: legible futures and a performed dawn. */
.future-switcher {
  display: none;
}

.future-scene-copy {
  margin: 0 0 4px;
  color: var(--apricot);
  font-size: clamp(0.57rem, 0.74vw, 0.7rem);
  font-weight: 800;
  line-height: 1.22;
}

.kitchen[data-phase="futures"] .future-fan {
  z-index: 10;
}

.kitchen[data-phase="futures"] .table-zone {
  z-index: 3;
}

.kitchen[data-phase="futures"] .table {
  filter: brightness(0.58) saturate(0.7);
}

.kitchen[data-phase="futures"] .word-ring {
  opacity: 0.035;
  transform: translateY(22px) scale(0.94);
}

.kitchen[data-phase="futures"] .table-instruction,
.kitchen[data-phase="futures"] .spoken-line {
  opacity: 0;
}

.kitchen[data-phase="futures"] .people {
  z-index: 4;
  opacity: 0.36;
  filter: brightness(0.68) saturate(0.72);
}

.kitchen[data-phase="clarify"] .future-plane {
  pointer-events: none;
}

.kitchen[data-phase="futures"] .character-mara {
  left: 9%;
  top: 30%;
  transform: rotateY(15deg) translateZ(-30px) scale(0.84);
}

.kitchen[data-phase="futures"] .character-theo {
  top: 24%;
  transform: translateX(-50%) translateZ(-58px) scale(0.84);
}

.kitchen[data-phase="futures"] .character-nia {
  right: 9%;
  top: 30%;
  transform: rotateY(-15deg) translateZ(-30px) scale(0.84);
}

.character[data-posture="leaned-away"] .person {
  transform: rotate(-20deg) translateX(-15%) translateY(7%);
}

.character[data-posture="leaned-away"] .chair {
  transform: translate(15%, 20%) rotate(5deg);
}

.character[data-posture="half-risen"] .person {
  transform: translateY(-22%) rotate(8deg) translateX(4%);
}

.character[data-posture="half-risen"] .chair {
  transform: translate(-12%, 24%) rotate(-4deg);
}

.character[data-posture="folded"] .person {
  transform: rotate(15deg) translateY(8%) translateX(5%);
}

.character[data-posture="softened"] .person {
  transform: rotate(4deg) translateY(6%) translateX(-3%);
}

.character[data-posture="reached"] .person {
  transform: rotate(14deg) translateY(-7%) translateX(7%);
}

.character[data-gaze="mara"] .head { transform: translateX(-58%) rotate(-13deg); }
.character[data-gaze="theo"] .head { transform: translateX(-50%) translateY(-7%) rotate(7deg); }
.character[data-gaze="nia"] .head { transform: translateX(-42%) rotate(13deg); }
.character[data-gaze="visitor"] .head { transform: translateX(-50%) translateY(8%) rotate(2deg); }
.character[data-gaze="door"] .head { transform: translateX(-61%) rotate(-18deg); }
.character[data-gaze="table"] .head { transform: translateX(-50%) translateY(12%) rotate(-5deg); }

.kitchen[data-phase="ending"] {
  background:
    radial-gradient(ellipse 100% 78% at 50% 28%, rgba(255, 189, 130, 0.52), rgba(159, 255, 213, 0.15) 42%, transparent 68%),
    linear-gradient(180deg, #6f3a58 0 38%, #32172f 70%, #15091c 100%);
}

.kitchen[data-phase="ending"] .window-night {
  background:
    linear-gradient(180deg, #ffd3a4, #a46476 54%, #3f2944 100%);
}

.kitchen[data-phase="ending"] .distant-light {
  background: var(--fridge);
  box-shadow: 0 0 20px 8px rgba(255, 244, 202, 0.8);
}

.kitchen[data-phase="ending"] .future-fan {
  display: none !important;
}

.kitchen[data-phase="ending"] .word-ring,
.kitchen[data-phase="ending"] .table-instruction,
.kitchen[data-phase="ending"] .exchange-mark,
.kitchen[data-phase="ending"] .sightlines {
  opacity: 0;
  pointer-events: none;
}

.kitchen[data-phase="ending"] .people {
  z-index: 11;
}

.kitchen[data-phase="ending"] .opening-line {
  opacity: 0;
}

.kitchen[data-phase="ending"] .name {
  bottom: 4%;
  opacity: 0.72;
}

.ending {
  display: block;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: none;
  pointer-events: none;
}

.dawn-wash {
  background:
    radial-gradient(ellipse 70% 42% at 50% 13%, rgba(255, 244, 202, 0.42), transparent 72%),
    linear-gradient(180deg, rgba(255, 189, 130, 0.2), transparent 42%, rgba(240, 77, 66, 0.08));
}

.ending-time {
  position: absolute;
  top: 3.5%;
  left: 4%;
  margin: 0;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 244, 202, 0.42);
}

.ending h2 {
  position: absolute;
  top: 3.2%;
  left: 50%;
  width: min(62vw, 720px);
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(0.94rem, 1.65vw, 1.35rem);
  line-height: 1.15;
  text-align: center;
  transform: translateX(-50%);
}

.ending button {
  position: absolute;
  right: 4%;
  bottom: calc(4% + var(--safe-bottom));
  min-width: 180px;
  pointer-events: auto;
}

.kitchen[data-phase="ending"][data-ending="curb"] .doorway {
  filter: drop-shadow(18px 0 30px rgba(255, 189, 130, 0.42));
}

.kitchen[data-phase="ending"][data-ending="curb"] .door-dark::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: 18%;
  width: 18px;
  height: 11px;
  border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 0 24px 12px rgba(240, 77, 66, 0.58), 46px 2px 0 -2px var(--apricot), 46px 2px 24px 9px rgba(255, 189, 130, 0.42);
}

.kitchen[data-phase="ending"][data-ending="curb"] .character-mara {
  left: 5%;
  top: 28%;
  transform: scale(0.8) rotate(-10deg);
  transform-origin: left center;
}

.kitchen[data-phase="ending"][data-ending="curb"] .character-theo {
  left: 20%;
  top: 24%;
  transform: scale(0.76) rotate(-8deg);
  transform-origin: left center;
}

.kitchen[data-phase="ending"][data-ending="curb"] .character-nia {
  left: 35%;
  right: auto;
  top: 29%;
  transform: scale(0.8) rotate(-7deg);
  transform-origin: left center;
}

.kitchen[data-phase="ending"][data-ending="curb"] .bag {
  right: -4%;
  bottom: 3%;
  transform: rotate(8deg) scale(1.18);
  filter: drop-shadow(-12px 8px 12px rgba(0, 0, 0, 0.42));
}

.kitchen[data-phase="ending"][data-ending="stove"] .character-mara {
  left: 21%;
  top: 27%;
  transform: scale(0.84) rotate(6deg);
}

.kitchen[data-phase="ending"][data-ending="stove"] .character-theo {
  left: 50%;
  top: 22%;
  transform: translateX(-50%) scale(0.84);
}

.kitchen[data-phase="ending"][data-ending="stove"] .character-nia {
  right: 21%;
  top: 27%;
  transform: scale(0.84) rotate(-6deg);
}

.kitchen[data-phase="ending"][data-ending="stove"] .table {
  bottom: -9%;
  filter: brightness(1.16) saturate(0.9);
}

.kitchen[data-phase="ending"][data-ending="stove"] .glass {
  left: 43%;
  bottom: 43%;
  width: 44px;
  height: 52px;
  border: 6px solid var(--fridge);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: rgba(18, 8, 25, 0.5);
  box-shadow: 86px 8px 0 -6px #4a244e, 86px 8px 0 0 var(--fridge);
}

.kitchen[data-phase="ending"][data-ending="stove"] .glass::before {
  content: "";
  position: absolute;
  right: -20px;
  top: 8px;
  width: 18px;
  height: 22px;
  border: 5px solid var(--fridge);
  border-left: 0;
  border-radius: 0 50% 50% 0;
}

.kitchen[data-phase="ending"][data-ending="stove"] .napkin {
  left: 51%;
  bottom: 39%;
  width: 54px;
  height: 40px;
  border: 5px solid #c77852;
  border-radius: 13px 13px 3px 3px;
  background: var(--apricot);
  transform: rotate(7deg);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

.kitchen[data-phase="ending"][data-ending="hook"] .doorway {
  z-index: 12;
  filter: drop-shadow(14px 0 34px rgba(159, 255, 213, 0.46));
}

.kitchen[data-phase="ending"][data-ending="hook"] .key-hook {
  right: -54px;
  top: 21%;
  transform: scale(1.65);
  filter: drop-shadow(0 0 9px rgba(255, 244, 202, 0.74));
}

.kitchen[data-phase="ending"][data-ending="hook"] .door-label {
  right: -122px;
  top: 49%;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--apricot);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  transform: rotate(-3deg);
}

.kitchen[data-phase="ending"][data-ending="hook"] .character-mara {
  left: 14%;
  top: 28%;
  transform: scale(0.76) rotate(-5deg);
  transform-origin: left center;
}

.kitchen[data-phase="ending"][data-ending="hook"] .character-theo {
  left: 27%;
  top: 23%;
  transform: scale(0.74) rotate(-7deg);
  transform-origin: left center;
}

.kitchen[data-phase="ending"][data-ending="hook"] .character-nia {
  left: 40%;
  right: auto;
  top: 29%;
  transform: scale(0.76) rotate(-9deg);
  transform-origin: left center;
}

@media (max-width: 780px) {
  .kitchen[data-phase="futures"] .people {
    opacity: 0.2;
    filter: brightness(0.54) saturate(0.62);
  }

  .future-fan {
    inset: 4.5% 4% 23%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    perspective: none;
  }

  .future-switcher {
    position: relative;
    z-index: 8;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin: 0;
    pointer-events: auto;
  }

  .future-switcher button {
    min-width: 44px;
    min-height: 44px;
    border-bottom: 2px solid rgba(159, 255, 213, 0.34);
    color: rgba(237, 245, 235, 0.68);
    background: linear-gradient(180deg, transparent, rgba(18, 8, 25, 0.72));
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }

  .future-switcher button[aria-pressed="true"] {
    border-color: var(--apricot);
    color: var(--ink);
    background: var(--apricot);
  }

  .future-position {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--mint);
    font-family: "Courier New", monospace;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
  }

  .future-plane {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    height: 100%;
    padding: 11px 12px 68px;
    transform: none;
  }

  .future-plane[data-active="false"] {
    display: none;
  }

  .future-plane[data-active="true"] {
    display: block;
    animation: future-mobile-open 320ms cubic-bezier(.15, .85, .2, 1) both;
  }

  .future-plane:focus-within {
    z-index: auto;
    transform: none;
  }

  .future-scene {
    float: none;
    width: 100%;
    height: 31%;
    min-height: 104px;
    margin: 8px 0;
  }

  .future-quote {
    margin: 6px 0 5px;
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .future-scene-copy {
    margin-bottom: 4px;
    font-size: 0.63rem;
  }

  .future-caption {
    font-size: 0.62rem;
    line-height: 1.24;
  }

  .consequence {
    min-height: 58px;
  }

  .future-fan.is-folding .future-plane[data-active="true"] {
    opacity: 0.18;
    transform: translateY(42%) scale(0.2);
  }

  .ending-time {
    top: 2.3%;
    left: 4%;
    font-size: 0.62rem;
  }

  .ending h2 {
    top: 5.2%;
    width: 88vw;
    font-size: 1rem;
    line-height: 1.1;
  }

  .ending button {
    right: 50%;
    bottom: calc(2.5% + var(--safe-bottom));
    min-width: 190px;
    transform: translateX(50%);
  }

  .kitchen[data-phase="ending"] .character {
    width: 42vw;
  }

  .kitchen[data-phase="ending"][data-ending="curb"] .character-mara {
    left: -8%;
    top: 29%;
    transform: scale(0.62) rotate(-10deg);
  }

  .kitchen[data-phase="ending"][data-ending="curb"] .character-theo {
    left: 18%;
    top: 24%;
    transform: scale(0.6) rotate(-8deg);
  }

  .kitchen[data-phase="ending"][data-ending="curb"] .character-nia {
    left: 43%;
    top: 30%;
    transform: scale(0.62) rotate(-7deg);
  }

  .kitchen[data-phase="ending"][data-ending="stove"] .character-mara {
    left: 4%;
    top: 25%;
    transform: scale(0.72) rotate(6deg);
  }

  .kitchen[data-phase="ending"][data-ending="stove"] .character-theo {
    left: 31%;
    top: 20%;
    transform: scale(0.72);
  }

  .kitchen[data-phase="ending"][data-ending="stove"] .character-nia {
    left: 58%;
    right: auto;
    top: 25%;
    transform: scale(0.72) rotate(-6deg);
  }

  .kitchen[data-phase="ending"][data-ending="stove"] .table {
    bottom: -5%;
  }

  .kitchen[data-phase="ending"][data-ending="stove"] .glass {
    left: 39%;
    bottom: 45%;
    transform: scale(0.82);
  }

  .kitchen[data-phase="ending"][data-ending="stove"] .napkin {
    left: 50%;
    bottom: 41%;
    transform: rotate(7deg) scale(0.82);
  }

  .kitchen[data-phase="ending"][data-ending="hook"] .key-hook {
    right: -37px;
    transform: scale(1.32);
  }

  .kitchen[data-phase="ending"][data-ending="hook"] .door-label {
    right: -89px;
    font-size: 0.54rem;
  }

  .kitchen[data-phase="ending"][data-ending="hook"] .character-mara {
    left: 12%;
    top: 28%;
    transform: scale(0.62) rotate(-5deg);
  }

  .kitchen[data-phase="ending"][data-ending="hook"] .character-theo {
    left: 31%;
    top: 22%;
    transform: scale(0.6) rotate(-7deg);
  }

  .kitchen[data-phase="ending"][data-ending="hook"] .character-nia {
    left: 50%;
    top: 29%;
    transform: scale(0.62) rotate(-9deg);
  }
}

@keyframes future-mobile-open {
  from {
    opacity: 0;
    transform: translateX(3%);
  }
}
