.featured-room,
.playground-map {
  width: min(100%, 1240px);
  min-width: 0;
  margin-inline: auto;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.featured-room {
  --room-ink: #172326;
  --room-cream: #fffaf0;
  --room-orange: #e65b3d;
  --room-green: #335f49;
  overflow: hidden;
  border: 2px solid var(--room-ink);
  color: var(--room-ink);
  background: var(--room-cream);
  box-shadow: 9px 9px 0 #d9caa8;
}

.featured-room:focus {
  outline: 3px solid #28748a;
  outline-offset: 5px;
}

.featured-room-topline {
  display: flex;
  min-width: 0;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 11px clamp(18px, 4vw, 46px);
  border-bottom: 2px solid var(--room-ink);
  background: #e7e3d7;
}

.featured-room-topline p,
.featured-room-kicker,
.featured-room-prompt > span,
.featured-room-result-label,
.featured-room-exit-ticket > span,
.playground-map-heading > div > p:first-child,
.playground-map-doors a > span {
  margin: 0;
  font: 800 0.69rem/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.featured-room-topline p span { padding-inline: 5px; color: var(--room-orange); }
.featured-room-topline nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.featured-room-topline a { font-size: 0.75rem; font-weight: 800; text-underline-offset: 4px; }
.featured-room-topline a:hover { color: #8f341e; }

.featured-room-heading {
  display: flex;
  gap: 22px;
  align-items: start;
  justify-content: space-between;
  padding: clamp(25px, 4vw, 47px) clamp(18px, 4vw, 46px) clamp(26px, 3vw, 36px);
}

.featured-room-kicker { color: #996034; }
.featured-room-heading :is(h1, h2) {
  max-width: 820px;
  margin: 12px 0 15px;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  letter-spacing: -0.075em;
  line-height: 0.94;
  text-wrap: balance;
}

.featured-room-heading p:last-child {
  max-width: 710px;
  margin: 0;
  color: #3f4e4e;
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  line-height: 1.55;
}

.featured-room-stamp {
  flex: 0 0 auto;
  display: grid;
  width: 102px;
  height: 102px;
  place-items: center;
  transform: rotate(10deg);
  border: 3px double #a6422b;
  border-radius: 50%;
  color: #a6422b;
  font: 850 0.65rem/1.35 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-align: center;
}

.featured-room-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  border-top: 2px solid var(--room-ink);
}

.featured-room-scene {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 382px;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-right: 2px solid var(--room-ink);
  background: #d9e0ce;
}

.featured-room-wall {
  position: absolute;
  inset: 0 0 29%;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, transparent 0 74px, rgb(23 35 38 / 5%) 75px 76px), #dbe5d6;
}

.featured-room-clock {
  position: absolute;
  top: 23px;
  left: 25px;
  padding: 9px 10px;
  border: 2px solid var(--room-ink);
  border-radius: 50%;
  background: #fffaf0;
  font: 800 0.72rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.featured-room-window {
  position: absolute;
  top: 18px;
  right: 5%;
  width: 30%;
  height: 71%;
  border: 8px solid #758d76;
  background: linear-gradient(145deg, #a9d6d6, #dff0e4 60%, #ffe6a3);
  box-shadow: 8px 8px 0 rgb(23 35 38 / 12%);
}

.featured-room-window::before,
.featured-room-window::after {
  position: absolute;
  background: #758d76;
  content: "";
}
.featured-room-window::before { top: 50%; right: 0; left: 0; height: 7px; }
.featured-room-window::after { top: 0; bottom: 0; left: 50%; width: 7px; }
.featured-room-window i { position: absolute; top: 18%; left: 14%; width: 30px; height: 30px; border-radius: 50%; background: #f9cf69; }

.featured-room-board {
  position: absolute;
  top: 84px;
  left: 8%;
  display: grid;
  width: 37%;
  min-height: 94px;
  padding: 10px;
  align-content: center;
  border: 5px solid #936a4b;
  color: #fffaf0;
  background: #315244;
  box-shadow: 7px 7px 0 rgb(23 35 38 / 12%);
  text-align: center;
}

.featured-room-board small { font: 700 0.59rem/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.06em; }
.featured-room-board strong { margin-top: 6px; font-size: clamp(0.8rem, 1.7vw, 1.1rem); line-height: 1.1; }

.featured-room-floor {
  position: absolute;
  right: 0;
  bottom: 36px;
  left: 0;
  height: 45%;
  border-top: 4px solid #607967;
  background: repeating-linear-gradient(90deg, transparent 0 66px, rgb(59 84 64 / 12%) 67px 68px), #c4bb9b;
}

.featured-room-chair {
  position: absolute;
  bottom: 20px;
  left: 27%;
  width: 83px;
  height: 106px;
  border: 6px solid #664638;
  border-radius: 22px 22px 4px 4px;
  background: #af6b4f;
  box-shadow: inset 0 -31px 0 #8c503c;
}
.featured-room-chair::after { position: absolute; right: 7px; bottom: -30px; left: 7px; height: 26px; border-right: 5px solid #664638; border-left: 5px solid #664638; content: ""; }

.featured-room-ficus {
  position: absolute;
  z-index: 2;
  bottom: 22px;
  left: 66%;
  width: 60px;
  height: 112px;
  transition: left 450ms ease, transform 450ms ease;
}
.featured-room-ficus::before { position: absolute; bottom: 0; left: 10px; width: 42px; height: 46px; border: 3px solid #6e4d3a; border-radius: 4px 4px 16px 16px; background: #b67856; content: ""; }
.featured-room-ficus::after { position: absolute; bottom: 40px; left: 30px; width: 4px; height: 74px; background: #315d40; content: ""; }
.featured-room-ficus i { position: absolute; z-index: 1; width: 35px; height: 17px; border-radius: 100% 0 100% 0; background: #386f4d; transform-origin: bottom right; }
.featured-room-ficus i:nth-child(1) { top: 7px; left: -2px; transform: rotate(19deg); }
.featured-room-ficus i:nth-child(2) { top: 18px; left: 29px; transform: rotate(145deg); }
.featured-room-ficus i:nth-child(3) { top: 30px; left: 1px; transform: rotate(-17deg); }
.featured-room-ficus i:nth-child(4) { top: 45px; left: 30px; transform: rotate(158deg); }
.featured-room-ficus i:nth-child(5) { top: 58px; left: 6px; transform: rotate(9deg); }

.featured-room-table {
  position: absolute;
  z-index: 3;
  right: 14%;
  bottom: 14px;
  left: 6%;
  height: 25px;
  border: 3px solid #5c4638;
  border-radius: 50%;
  background: #9a7353;
}
.featured-room-table::after { position: absolute; top: 12px; left: 49%; width: 9px; height: 37px; background: #5c4638; content: ""; }
.featured-room-paper {
  position: absolute;
  z-index: 4;
  right: 32%;
  bottom: 30px;
  display: grid;
  width: 66px;
  height: 50px;
  place-items: center;
  transform: rotate(-7deg);
  border: 1px solid #746b55;
  background: #fffdf4;
  font: 800 0.58rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-align: center;
  white-space: pre-line;
}

.featured-room-scene-caption {
  position: relative;
  z-index: 5;
  width: max-content;
  max-width: calc(100% - 20px);
  margin: 0 10px 10px;
  padding: 8px 12px;
  border: 1px solid var(--room-ink);
  background: #fffaf0;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.featured-room[data-choice="a"] .featured-room-ficus { left: 30%; transform: rotate(-6deg); }
.featured-room[data-choice="a"] .featured-room-board { background: #335f49; }
.featured-room[data-choice="b"] .featured-room-ficus { left: 70%; transform: rotate(7deg); }
.featured-room[data-choice="b"] .featured-room-board { background: #2c6677; }
.featured-room[data-choice="b"] .featured-room-window { background: linear-gradient(145deg, #9bcdd1, #dcf1df 52%, #ffcf68); }

.featured-room-desk { min-width: 0; padding: clamp(22px, 3vw, 34px); background: #fffdf7; }
.featured-room-prompt > span { color: #a54830; }
.featured-room-prompt > span i { font-style: normal; }
.featured-room-prompt h2 { margin: 14px 0 9px; font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.055em; line-height: 1; }
.featured-room-prompt p { max-width: 370px; margin: 0 0 20px; color: #4a5552; font-size: 0.88rem; line-height: 1.5; }
.featured-room-choices { display: grid; gap: 10px; }
.featured-room-choices button {
  display: grid;
  min-width: 0;
  min-height: 86px;
  grid-template-columns: 39px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 2px solid var(--room-ink);
  border-radius: 2px;
  color: var(--room-ink);
  background: #fffdf7;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.featured-room-choices button:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 #d8c6a9; }
.featured-room-choices button[aria-pressed="true"] { background: #e1ebd9; box-shadow: inset 5px 0 0 #406c4e; }
.featured-room-choice-letter { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; color: #fffaf0; background: var(--room-ink); font-weight: 850; }
.featured-room-choices strong { display: block; font-size: 0.86rem; line-height: 1.25; }
.featured-room-choices small { display: block; margin-top: 5px; color: #475654; font-size: 0.73rem; line-height: 1.35; }
.featured-room-choices b { font-size: 1.1rem; }
.featured-room-footnote { margin: 20px 0 0; color: #5d625a; font-size: 0.71rem; line-height: 1.45; }

.featured-room-comparison { padding: clamp(22px, 3.5vw, 39px) clamp(18px, 4vw, 46px); border-top: 2px solid var(--room-ink); background: #f3ebd8; }
.featured-room-comparison-heading { display: flex; gap: 18px; align-items: start; justify-content: space-between; }
.featured-room-comparison-heading > div > p:first-child,
.featured-room-consequence > span { margin: 0; color: #8e4d34; font: 800 0.65rem/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.07em; }
.featured-room-comparison-heading h2 { margin: 8px 0; font-size: clamp(1.7rem, 3vw, 2.8rem); letter-spacing: -0.055em; line-height: 1.05; }
.featured-room-comparison-heading > div > p:last-child { margin: 0; color: #475654; font-size: 0.83rem; line-height: 1.5; }
.featured-room-kept-policy { flex: 0 0 auto; margin: 0; padding: 9px 12px; border: 2px solid #315d40; background: #e4eedf; color: #244d37; font: 800 0.7rem/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace; text-transform: uppercase; }
.featured-room[data-kept="none"] .featured-room-kept-policy { border-color: #8c6a4a; background: #fffaf0; color: #67513e; }
.featured-room-comparison-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 21px; }
.featured-room-consequence { min-width: 0; padding: 19px; border: 2px solid #172326; background: #fffdf7; transition: transform 260ms ease, box-shadow 260ms ease; }
.featured-room-consequence[data-policy="b"] { background: #eff7f7; }
.featured-room-consequence h3 { margin: 9px 0; font-size: clamp(1.18rem, 2vw, 1.65rem); letter-spacing: -0.04em; line-height: 1.1; }
.featured-room-consequence p { max-width: 48ch; margin: 0; color: #40504d; font-size: 0.82rem; line-height: 1.5; }
.featured-room[data-choice="a"] .featured-room-consequence[data-policy="a"],
.featured-room[data-choice="b"] .featured-room-consequence[data-policy="b"] { transform: translateY(-4px); box-shadow: 5px 5px 0 #c7a879; }
.featured-room[data-kept="a"] .featured-room-consequence[data-policy="a"],
.featured-room[data-kept="b"] .featured-room-consequence[data-policy="b"] { border-color: #315d40; }
.featured-room-keep-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 20px; }
.featured-room-keep-row p { max-width: 550px; margin: 0; color: #47534f; font-size: 0.81rem; line-height: 1.5; }
.featured-room-keep-row button { flex: 0 0 auto; min-height: 48px; padding: 10px 16px; border: 2px solid #172326; background: #172326; color: #fffaf0; font: 800 0.8rem/1.2 Inter, ui-sans-serif, sans-serif; cursor: pointer; }
.featured-room-keep-row button:hover { background: #315d40; }
.featured-room-keep-row button:disabled { border-color: #7d8680; background: #e1e4df; color: #45524b; cursor: default; }

.featured-room-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.48fr);
  border-top: 2px solid var(--room-ink);
  background: #e6eddf;
}
.featured-room-result[hidden] { display: none; }
.featured-room-result-copy { min-width: 0; padding: clamp(22px, 4vw, 42px); }
.featured-room-result-label { color: #355d45; }
.featured-room-result h2 { max-width: 670px; margin: 12px 0 13px; font-size: clamp(1.7rem, 3.5vw, 3.4rem); letter-spacing: -0.065em; line-height: 1.05; text-wrap: balance; }
.featured-room-result-copy > p:last-child { max-width: 670px; margin: 0; font-size: 0.93rem; line-height: 1.6; }
.featured-room-result[data-choice="b"] { background: #dcebef; }
.featured-room-result[data-choice="b"] .featured-room-result-label { color: #2b6070; }
.featured-room-result:focus { outline: 3px solid #28748a; outline-offset: -6px; }
.featured-room-exit-ticket { padding: 23px 25px; border-left: 2px dashed var(--room-ink); background: #fffaf0; }
.featured-room-exit-ticket > span { display: flex; align-items: center; justify-content: space-between; color: #9d482f; }
.featured-room-exit-ticket > span i { font-size: 1.4rem; font-style: normal; }
.featured-room-exit-ticket p { margin: 13px 0 0; font-size: 0.78rem; line-height: 1.5; }
.featured-room-exit-ticket p:first-of-type { font-weight: 800; }
.featured-room-exit-ticket button { min-height: 42px; margin-top: 17px; padding: 9px 11px; border: 1px solid var(--room-ink); color: #fffaf0; background: var(--room-ink); font: inherit; font-size: 0.73rem; font-weight: 800; cursor: pointer; }
.featured-room-exit-ticket button:hover { background: #375e53; }
.featured-room-exit-links { display: flex; gap: 8px 17px; flex-wrap: wrap; margin-top: 18px; }
.featured-room-exit-links a { font-size: 0.72rem; font-weight: 800; text-underline-offset: 4px; }

.playground-map { margin-top: 30px; margin-bottom: 40px; padding: clamp(19px, 3vw, 30px); border: 1px solid #172326; background: #f6f1e6; }
.playground-map-heading { display: flex; gap: 12px 20px; align-items: start; justify-content: space-between; }
.playground-map-heading > div > p:first-child { color: #8e4d34; }
.playground-map-heading h2 { margin: 7px 0 5px; font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -0.055em; }
.playground-map-heading > div > p:last-child { margin: 0; color: #4e5856; font-size: 0.78rem; line-height: 1.5; }
.playground-map-heading > a { flex: 0 0 auto; font-size: 0.75rem; font-weight: 800; text-underline-offset: 4px; }
.playground-map-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 21px; }
.playground-map-doors a { display: flex; min-width: 0; min-height: 139px; padding: 14px; flex-direction: column; border: 1px solid #172326; background: #fffdf7; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.playground-map-doors a[hidden] { display: none; }
.playground-map-doors #playground-saved-story-door { grid-column: 1 / -1; min-height: 105px; background: #e6eddf; }
.playground-map-doors a:hover { transform: translateY(-4px); box-shadow: 4px 4px 0 #d9caa8; }
.playground-map-doors a > span { color: #98613b; font-size: 0.59rem; }
.playground-map-doors strong { margin-top: 14px; font-size: 0.87rem; line-height: 1.2; }
.playground-map-doors small { margin-top: auto; padding-top: 11px; color: #4e5856; font-size: 0.66rem; line-height: 1.35; }
.playground-map-footer { display: flex; gap: 10px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 18px; }
.playground-map-footer a { font-size: 0.75rem; font-weight: 800; text-underline-offset: 4px; }

.featured-room :is(a, button):focus-visible,
.playground-map a:focus-visible { outline: 3px solid #28748a; outline-offset: 4px; }

@media (max-width: 850px) {
  .featured-room-layout { grid-template-columns: minmax(0, 1fr); }
  .featured-room-scene { min-height: 330px; border-right: 0; border-bottom: 2px solid var(--room-ink); }
  .featured-room-result { grid-template-columns: minmax(0, 1fr); }
  .featured-room-exit-ticket { border-top: 2px dashed var(--room-ink); border-left: 0; }
  .playground-map-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .featured-room { width: min(100%, 1240px); box-shadow: 5px 5px 0 #d9caa8; }
  .featured-room-topline { align-items: start; flex-direction: column; }
  .featured-room-topline nav { gap: 8px 16px; }
  .featured-room-heading { padding-bottom: 22px; }
  .featured-room-heading :is(h1, h2) { font-size: clamp(2.45rem, 11vw, 3.5rem); }
  .featured-room-stamp { display: none; }
  .featured-room-scene { min-height: 290px; }
  .featured-room-board { left: 6%; width: 42%; }
  .featured-room-desk { padding: 22px 17px; }
  .featured-room-comparison-heading,
  .featured-room-keep-row { flex-direction: column; align-items: stretch; }
  .featured-room-kept-policy { width: fit-content; }
  .featured-room-comparison-cards { grid-template-columns: minmax(0, 1fr); }
  .featured-room-keep-row button { width: 100%; }
  .playground-map { margin-top: 21px; padding: 18px; }
  .playground-map-heading { flex-direction: column; }
  .playground-map-doors { grid-template-columns: minmax(0, 1fr); }
  .playground-map-doors a { min-height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .featured-room-ficus,
  .featured-room-choices button,
  .featured-room-consequence,
  .playground-map-doors a { transition: none; }
}
