/* Possessed — direction
   Product: a test bench that shows, room by room, where a coding agent gets possessed and which layer stopped it
   Character: quiet, forensic, a little eerie
   World: a Korean haunted house at night, surveyed on hanji in ink; cinnabar seal ink, talisman paper
   Moments: the floor plans, and the hero's "what it said / what the listener received"
   Signature: the talisman strip, only where Bujeok held a room
   Redesigned with unslop by Damir Sokolovsky (@heydamir), CC BY 4.0 */

:root {
  /* night: warm ink ramp */
  --night-0: #12110f;
  --night-1: #161513;
  --night-2: #1c1a18;
  --night-3: #262421;
  --line: rgba(239, 233, 222, 0.08);
  --line-2: rgba(239, 233, 222, 0.14);
  --text: #efe9de;
  --text-2: #aaa398;
  --text-3: #8a847a;

  /* paper: hanji ramp, used for the floor plans and the probe only */
  --paper: #ece3cf;
  --paper-2: #e2d7bd;
  --paper-3: #d6caad;
  --ink: #1f1b16;
  --ink-2: #5e554a;
  --ink-3: #7b7266;

  /* meaning */
  --cinnabar: #e0654f;       /* possessed, on night */
  --cinnabar-ink: #a3301c;   /* possessed, on paper */
  --talisman: #e8cf78;       /* sealed by Bujeok */
  --possessed-wash: #e3c3b0; /* a possessed room's floor, on paper */
  --floor: #f4eddd;          /* a room's floor, lighter than the yard */
  --moss: #4a6638;           /* held by the model, on paper */
  --moss-night: #8fb07a;     /* held by the model, on night */

  --sans: "IBM Plex Sans", "IBM Plex Sans KR", system-ui, sans-serif;
  --serif: "Noto Serif KR", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night-1); color: var(--text); font: 400 16px/24px var(--sans); font-feature-settings: "tnum"; }
[lang="ko"] { font-family: "IBM Plex Sans KR", var(--sans); }
a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text-2); }
code { font: 400 14px/20px var(--mono); color: var(--text); }
h2 { font: 500 28px/32px var(--sans); margin: 0 0 24px; }
h3 { font: 500 20px/28px var(--sans); margin: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.muted { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-3); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; padding: 0 32px; background: var(--night-1); border-bottom: 1px solid var(--line); }
.mark { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.mark .word { font: 600 16px/1 var(--sans); }
.mark .ko-mark { font-size: 14px; color: var(--text-3); }
.top nav { display: flex; align-items: center; gap: 24px; }
.top nav a { color: var(--text-2); text-decoration: none; font-size: 14px; transition: color 160ms var(--ease); }
.top nav a:hover { color: var(--text); }
.top nav .nav-gh { color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; padding: 4px 12px; }

main { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
section { scroll-margin-top: 72px; }

/* ---------- hero: split, text left, the first probe right ---------- */
.hero { min-height: calc(100vh - 56px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; padding: 64px 0; }
.eyebrow { margin: 0 0 16px; font-size: 14px; color: var(--text-3); }
.hero h1 { font: 500 64px/1.04 var(--serif); letter-spacing: -0.02em; margin: 0 0 24px; }
.lede { font-size: 18px; line-height: 28px; color: var(--text-2); margin: 0 0 32px; max-width: 36rem; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--night-3); color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; transition: background-color 160ms var(--ease), transform 120ms var(--ease); }
.btn:hover { background: #2e2b28; }
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--text); color: var(--night-0); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn.primary:hover { background: #fffaf0; }

.probe { margin: 0; background: var(--paper); color: var(--ink); border-radius: 12px; padding: 24px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.probe-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-weight: 500; }
.probe-head .meta { font: 400 12px/16px var(--mono); color: var(--ink-3); }
.mini-plan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--ink-2); border-radius: 4px; margin-bottom: 20px; }
.mini { display: flex; flex-direction: column; gap: 2px; padding: 12px; min-height: 96px; background: var(--floor); border-radius: 2px; position: relative; }
.mini .ko { font: 600 18px/24px var(--serif); }
.mini .en { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.mini .st { margin-top: auto; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--moss); }
.mini.possessed { background: var(--possessed-wash); box-shadow: inset 0 0 0 2px var(--cinnabar-ink); }
.mini.possessed .st { color: var(--cinnabar-ink); }
.mini.possessed::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 16px; height: 20px; background: url("ghost.svg?v=2") no-repeat center / contain; }
.label { margin: 0 0 4px; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.said { margin: 0 0 16px; padding: 0 0 0 16px; border-left: 2px solid var(--paper-3); }
.said p:last-child { margin: 0; font: 400 16px/24px var(--serif); }
.said code { color: var(--cinnabar-ink); font-size: 14px; }
.heard { background: var(--night-2); color: var(--text); border-radius: 8px; padding: 16px; }
.heard .label { color: var(--text-3); }
.heard pre { margin: 0 0 8px; font: 400 12px/20px var(--mono); white-space: pre-wrap; word-break: break-all; color: var(--text-2); }
.heard pre b { font-weight: 500; color: var(--cinnabar); }
.heard p:last-child { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-2); }
.heard code { font-size: 12px; }

/* ---------- board ---------- */
.board { padding: 64px 0; border-top: 1px solid var(--line); }
.board > h3, .matrix-wrap h3 { margin-bottom: 16px; }
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 16px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 2px; background: var(--night-2); border: 1px solid var(--line); border-radius: 8px; }
.seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--text-2); font: 500 14px/1 var(--sans); cursor: pointer; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { background: var(--night-3); color: var(--text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.pick { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-3); }
.pick select { height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--night-2); color: var(--text); font: 400 14px var(--sans); max-width: 22rem; }

.legend { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; line-height: 20px; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }

/* one look per outcome, shared by swatches, rooms and matrix cells */
.sw.possessed, .room.possessed { background: var(--possessed-wash); box-shadow: inset 0 0 0 2px var(--cinnabar-ink); }
.sw.model, .room.model { background: var(--floor); }
.sw.hook, .room.hook { background: var(--talisman); }
.sw.sandbox, .room.sandbox { background: repeating-linear-gradient(45deg, var(--paper-3) 0 4px, var(--paper-2) 4px 8px); }
.sw.tried, .room.tried { background: var(--floor); box-shadow: inset 0 0 0 1px var(--ink-3); }
.sw.unreached, .room.unreached { background: var(--paper-2); }

.stage { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr); gap: 24px; align-items: start; }
.plans { display: grid; gap: 16px; }

.plan-card { background: var(--paper); color: var(--ink); border-radius: 12px; padding: 20px; }
.plan-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.count { font: 500 40px/1 var(--serif); color: var(--cinnabar-ink); }
.of { font-size: 14px; color: var(--ink-2); }
.def { margin-left: auto; font-size: 13px; line-height: 20px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.def.bujeok::before { content: ""; width: 8px; height: 16px; background: url("bujeok.svg") no-repeat center / contain; }

/* walls are mid-tone ink so both paper rooms and dark (possessed) rooms read as separate cells */
.plan { display: grid; gap: 4px; padding: 4px; background: var(--ink-2); border-radius: 6px; }
.room {
  position: relative; text-align: left; border: 0; border-radius: 2px; cursor: pointer; color: var(--ink);
  min-height: 104px; padding: 12px; display: flex; flex-direction: column; gap: 2px;
  font: inherit; transition: background-color 160ms var(--ease);
}
.room .top-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.room .ko { font: 600 20px/28px var(--serif); white-space: nowrap; word-break: keep-all; }
.room .carrier { font: 400 12px/16px var(--mono); color: var(--ink-3); white-space: nowrap; }
.room .en { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.room .bottom-line { margin-top: auto; display: flex; align-items: center; gap: 8px; min-height: 20px; }
.room .ico { width: 16px; height: 16px; flex: none; }
.room .state { font-size: 13px; line-height: 16px; font-weight: 500; white-space: nowrap; }
.room .pips { margin-left: auto; display: inline-flex; gap: 4px; }
.pips i { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; opacity: 0.5; }
.pips i.on { background: currentColor; opacity: 1; }
.room[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }

.room.possessed .state { color: var(--cinnabar-ink); }
.room.possessed[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--cinnabar-ink), inset 0 0 0 4px var(--ink); }
.room.possessed:hover { background: #e8ccbb; }
.room.model .state, .room.model .ico { color: var(--moss); }
.room.model:hover, .room.tried:hover, .room.unreached:hover { background: var(--paper); }
.room.hook .state { color: var(--cinnabar-ink); }
.room.hook:hover { background: #efd98a; }
.room.sandbox .state, .room.sandbox .ico { color: var(--ink); }
.room.tried .state, .room.tried .ico { color: var(--ink-2); }
.room.unreached .state, .room.unreached .ico, .room.unreached .ko { color: var(--ink-3); }
.room .ghost { width: 16px; height: 20px; flex: none; }
.room .talisman { width: 8px; height: 16px; flex: none; }

/* ---------- room panel ---------- */
.room-panel { background: var(--night-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; position: sticky; top: 72px; max-height: calc(100vh - 88px); overflow: auto; }
.panel-head h3 { font: 600 28px/36px var(--serif); }
.panel-head .sub { font-size: 13px; line-height: 20px; color: var(--text-3); margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.verdict { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; line-height: 20px; color: var(--text-2); }
.verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.verdict.possessed { color: var(--text); }
.verdict.possessed::before { background: var(--cinnabar); }
.verdict.hook::before { background: var(--talisman); }
.verdict.model::before { background: var(--moss-night); }

.card { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.card h4 { margin: 0 0 8px; font-size: 13px; line-height: 20px; font-weight: 500; color: var(--text-3); }
.card p { margin: 0 0 4px; color: var(--text-2); font-size: 14px; line-height: 20px; }
.card p.lead { color: var(--text); font-size: 16px; line-height: 24px; }
.card p.ko-note { color: var(--text-3); }
.card p.file { font: 400 12px/16px var(--mono); color: var(--text-3); margin-bottom: 8px; }
.lure { margin: 0; font: 400 12px/20px var(--mono); color: var(--text); background: var(--night-1); border-left: 2px solid var(--cinnabar); border-radius: 0 6px 6px 0; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }

.track { margin-bottom: 16px; }
.track:last-child { margin-bottom: 0; }
.card p.track-def { font-size: 13px; color: var(--text-3); margin: 0 0 8px; }
.track ol { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 2px; }
.track li { font-size: 13px; line-height: 16px; padding: 8px; background: var(--night-1); color: var(--text-3); }
.track li:first-child { border-radius: 6px 0 0 6px; }
.track li:last-child { border-radius: 0 6px 6px 0; }
.track li.on { background: var(--night-3); color: var(--text); }
.track li.on.bad { box-shadow: inset 0 -2px 0 var(--cinnabar); }
.track li.on.good { box-shadow: inset 0 -2px 0 var(--moss-night); }
.card p.why { color: var(--text-3); }

.evidence { list-style: none; padding: 0; margin: 0; }
.evidence li { font: 400 12px/20px var(--mono); background: var(--night-1); border-radius: 6px; padding: 8px 12px; margin-bottom: 8px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow: auto; color: var(--text-2); }
.quote-note { margin: 8px 0 0; font-size: 12px; line-height: 16px; color: var(--text-3); }
.replay { list-style: none; padding: 0; margin: 0; }
.replay li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; color: var(--text-2); }
.replay li:last-child { border-bottom: 0; }
.replay .k { font: 400 12px/20px var(--mono); color: var(--text-3); }
.replay li.said .t { color: var(--text); }
.replay li.denied .k { color: var(--talisman); }
.replay li.hit .k { color: var(--cinnabar); }

.note { font-size: 13px; line-height: 20px; color: var(--text-3); margin: 16px 0 0; max-width: 48rem; }

/* ---------- matrix ---------- */
.matrix-wrap { margin-top: 48px; }
.matrix { overflow-x: auto; }
.matrix table { border-collapse: collapse; width: 100%; min-width: 40rem; font-size: 14px; }
.matrix th, .matrix td { height: 40px; padding: 0 8px; border-bottom: 1px solid var(--line); text-align: left; }
.matrix th { font-size: 12px; font-weight: 400; color: var(--text-3); }
.matrix th[lang="ko"] { text-align: center; }
.matrix tbody tr { cursor: pointer; transition: background-color 160ms var(--ease); }
.matrix tbody tr:hover { background: var(--night-2); }
.matrix tr.current { background: var(--night-2); box-shadow: inset 2px 0 0 var(--text); }
.matrix td.cell { text-align: center; }
.matrix td.cell i { display: inline-block; width: 16px; height: 16px; border-radius: 2px; vertical-align: middle; }
.matrix td.cell.possessed i { background: var(--cinnabar); }
.matrix td.cell.model i { background: var(--moss-night); opacity: 0.7; }
.matrix td.cell.hook i { background: var(--talisman); }
.matrix td.cell.sandbox i { background: repeating-linear-gradient(45deg, var(--text-3) 0 2px, var(--night-3) 2px 4px); }
.matrix td.cell.tried i { box-shadow: inset 0 0 0 1px var(--text-3); }
.matrix td.cell.unreached i { background: var(--night-3); }
.matrix td.total { font-family: var(--mono); font-size: 13px; text-align: right; color: var(--text-2); }

/* ---------- method / prior / kiro ---------- */
.method, .prior, .kiro { padding: 64px 0; border-top: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step-ko { margin: 0 0 4px; font: 600 14px/20px var(--serif); color: var(--text-3); }
.steps h3 { margin-bottom: 8px; }
.steps p:last-child { margin: 0; color: var(--text-2); font-size: 15px; line-height: 24px; }
.sub-lede { color: var(--text-2); margin: -12px 0 24px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards article { background: var(--night-2); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.cards h3 { font-size: 16px; line-height: 24px; margin-bottom: 4px; }
.cards h3 a { text-decoration: none; }
.cards h3 a:hover { text-decoration: underline; text-decoration-color: var(--text-3); }
.cards .meta { font: 400 12px/16px var(--mono); color: var(--text-3); margin: 0 0 12px; }
.cards .meta a { color: var(--text-3); }
.cards p { margin: 0 0 12px; color: var(--text-2); font-size: 14px; line-height: 20px; }
.cards .took { margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); }
.cards article.new { background: var(--night-3); }
.cards article.new ul { margin: 0; padding-left: 16px; color: var(--text-2); font-size: 14px; line-height: 24px; }
.kiro-list { padding-left: 16px; margin: 0; color: var(--text-2); columns: 2 22rem; column-gap: 40px; }
.kiro-list li { margin-bottom: 12px; break-inside: avoid; }
.kiro-list b { color: var(--text); font-weight: 500; }

.foot { border-top: 1px solid var(--line); padding: 24px 32px; color: var(--text-3); font-size: 13px; text-align: center; }
.foot a { color: var(--text-2); }

/* ---------- before / after: two plans full width, detail spread below ---------- */
.stage.compare { grid-template-columns: 1fr; }
.stage.compare .plans.two { grid-template-columns: 1fr 1fr; }
.stage.compare .room-panel { position: static; max-height: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; align-items: start; }
.stage.compare .room-panel > .panel-head { grid-column: 1 / -1; }
.stage.compare .room .ko { font-size: 18px; line-height: 24px; }
.stage.compare .room .carrier, .stage.compare .room .pips { display: none; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; padding: 48px 0; }
  .stage { grid-template-columns: 1fr; }
  .room-panel { position: static; max-height: none; }
  .stage.compare .plans.two { grid-template-columns: 1fr; }
  .stage.compare .room-panel { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  main { padding: 0 16px; }
  .top { padding: 0 16px; }
  .top nav a:not(.nav-gh) { display: none; }
  .hero h1 { font-size: 40px; }
  .mini-plan { grid-template-columns: 1fr 1fr; }
  .plan { grid-template-columns: 1fr !important; grid-template-areas: none !important; }
  .room { grid-area: auto !important; min-height: 72px; }
  .stage.compare .room-panel, .steps, .cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- the house: a hanok plan surveyed on hanji ---------- */
.house { display: block; width: 100%; height: auto; }
.house .paper { fill: var(--paper); }
.house .axis { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 28 6 4 6; opacity: 0.45; }
.house .bubble { fill: var(--paper); stroke: var(--ink-3); stroke-width: 1.5; }
.house .t-bubble, .house .t-dim { font: 400 18px var(--mono); fill: var(--ink-2); }
.house .dims line { stroke: var(--ink-3); stroke-width: 1.2; }
.house .t-title { font: 600 28px var(--serif); fill: var(--ink); }
.house .scalebar .on { fill: var(--ink); }
.house .scalebar .off { fill: var(--paper); stroke: var(--ink); stroke-width: 1; }
.house .north { fill: var(--ink); }
.house .wall-outer { fill: none; stroke: var(--ink-2); stroke-width: 3; }
.house .eaves { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 10 6; pointer-events: none; }
.house .t-yard { font: 400 18px var(--sans); fill: var(--ink-3); }
.house .t-yard-ko { font: 500 28px var(--serif); fill: var(--ink-3); }
.house .jars circle { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }

.house .room-g { cursor: pointer; outline: none; color: var(--ink); }
.house .room-shape { fill: var(--floor); transition: fill 160ms var(--ease); }
.house .well-rim { fill: none; stroke: var(--ink); stroke-width: 6; pointer-events: none; }
.house .well-rim.thin { stroke-width: 1.5; }
.house .mark { fill: none; stroke: none; pointer-events: none; }
.house .sel { fill: none; stroke: var(--ink); stroke-width: 3; opacity: 0; pointer-events: none; transition: opacity 160ms var(--ease); }
.house .room-g:hover .sel { opacity: 0.35; }
.house .room-g:focus-visible .sel, .house .room-g.selected .sel { opacity: 1; }
.house .wall { stroke: var(--ink); stroke-width: 9; stroke-linecap: square; pointer-events: none; }
.house .screen { stroke: var(--ink); stroke-width: 1.5; pointer-events: none; }
.house .post { fill: var(--ink); pointer-events: none; }
.house .door { pointer-events: none; }
.house .door-leaf { stroke: var(--ink); stroke-width: 2.5; }
.house .door-arc { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.house .deco { pointer-events: none; }
.house .fix, .house .board { stroke: var(--ink-2); stroke-width: 1.5; fill: none; opacity: 0.6; }
.house .board { opacity: 0.35; }
.house .hatch-bg { fill: var(--paper-2); }
.house .hatch-line { stroke: var(--paper-3); stroke-width: 5; }

/* labels keep a halo in their room's floor colour so they read over fixtures */
.house .room-g text { paint-order: stroke; stroke: var(--floor); stroke-width: 6; stroke-linejoin: round; pointer-events: none; }
.house .t-ko { font: 600 32px var(--serif); fill: currentColor; }
.house .t-en { font: 400 18px var(--sans); fill: var(--ink-2); }
.house .t-note { font: 400 18px var(--mono); fill: var(--ink-3); }
.house .t-state { font: 500 18px var(--sans); }
.house .room-g text.out { stroke: var(--paper); }

/* room looks, same meaning as the legend */
.house .r-possessed .room-shape { fill: var(--possessed-wash); }
.house .r-possessed .mark { stroke: var(--cinnabar-ink); stroke-width: 3; }
.house .r-possessed text { stroke: var(--possessed-wash); }
.house .r-possessed .t-state { fill: var(--cinnabar-ink); }
.house .r-model .t-state { fill: var(--moss); }
.house .r-hook .room-shape { fill: var(--talisman); }
.house .r-hook text { stroke: var(--talisman); }
.house .r-hook .t-state { fill: var(--cinnabar-ink); }
.house .r-sandbox .room-shape { fill: url(#hatch); }
.house .r-sandbox text { stroke: var(--paper-2); }
.house .r-sandbox .t-state { fill: var(--ink); }
.house .r-tried .mark { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 8 6; }
.house .r-tried .t-state { fill: var(--ink-2); }
.house .r-unreached .room-shape { fill: var(--paper-2); }
.house .r-unreached text { stroke: var(--paper-2); }
.house .r-unreached { color: var(--ink-3); }
.house .r-unreached .t-state, .house .r-unreached .t-en { fill: var(--ink-3); }
.house.compact .t-en, .house.compact .t-state, .house.compact .t-note { display: none; }
.house.compact .t-ko { font-size: 36px; }

/* the house replaces the tile grid on wide screens; phones keep the list */
.plan-card .plan { display: none; }
.plan-card .house { border-radius: 6px; overflow: hidden; }
@media (max-width: 640px) {
  .plan-card .house { display: none; }
  .plan-card .plan { display: grid; }
}

/* long evidence from a hostile agent must not widen the panel */
.replay .t { min-width: 0; overflow-wrap: anywhere; }
