:root {
  --ink: #161516;
  --panel: #211f21;
  --raised: #2b282b;
  --line: #414042;
  --soft: #d1c9c6;
  --muted: #b2a6a4;
  --lime: #f9df88;
  --orange: #ff8366;
  --brand-hover: #b62226;
}
.ed-intro .dek { max-width: 61ch; }
.fred-editions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.party-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 9px; margin-bottom: 12px;
  padding: 8px 13px; background: var(--panel);
}
.party-bar > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.party-label { color: var(--brand-text); font-size: .8rem; font-weight: 800; }
.party-bar strong { font-size: .95rem; }
.secondary {
  min-height: 40px; padding: 5px .72rem; border-radius: 6px;
  background: var(--raised); border: 1px solid #5f5152; color: var(--text); font-weight: 750;
  font-size: .87rem; line-height: 1.25;
}
.secondary:hover:not(:disabled) { border-color: var(--brand-text); }
.guide { grid-template-columns: minmax(0,1fr) minmax(292px, 344px); }
.map-window { height: clamp(394px, calc(100dvh - 350px), 660px); background: #121113; }
.map-window::before { display: none; }
.room-select, #clue-room, #variant-select {
  min-height: 40px; padding: 5px 9px; border: 1px solid #605759;
  border-radius: 6px; background: var(--raised); color: var(--text);
  font: 700 .86rem/1.25 var(--body);
}
.room-select { max-width: min(32vw, 240px); }
.room-card h2 { font: 800 clamp(1.27rem, 2.15vw, 1.86rem)/1.12 var(--revista-face); letter-spacing: -.04em; }
.fred-scene { aspect-ratio: 8/5; }
.fred-scene img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.room-spot {
  width: clamp(14px, 7%, 22px); aspect-ratio: 1; position: absolute;
  transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid #ffab77;
  box-shadow: 0 0 0 1px #211518, 0 0 5px #fd674b; pointer-events: none;
}
.room-spot::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 3px; height: 3px; background: #ffd0a5; border-radius: 50%; box-shadow: 0 0 0 1px #211518;
}
#route-controls .solve-label { margin-top: 13px; }
#hint-reveal:disabled { display: none; }
.neighbors { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .65rem; color: var(--soft); font-size: .86rem; }
.neighbors summary { cursor: pointer; }
#room-neighbors { display: grid; gap: 4px; margin-top: .48rem; }
#room-neighbors button { text-align: left; min-height: 30px; }
.variant-dialog { width: min(33rem, calc(100% - 24px)); }
.clue-question { display: grid; gap: 6px; margin-top: .65rem; }
.clue-question label { color: var(--soft); font-size: .87rem; font-weight: 700; }
.clue-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.clue-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; }
.clue-icon { width: 28px; height: 28px; flex: none; border-radius: 3px; background-repeat: no-repeat; }
.clues-active { display: flex; flex-wrap: wrap; gap: 5px; margin-top: .65rem; }
.clues-active:empty { display: none; }
.clues-active button {
  min-height: 31px; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--brand-border);
  color: var(--text); background: var(--brand-shade); font-size: .8rem;
}
.clue-status {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
  border-top: 1px solid var(--line); margin-top: .75rem; padding-top: .55rem;
}
.variant-dialog .remaining { margin: 0; font-size: .9rem; font-weight: 750; }
.variant-manual { margin-top: .4rem; font-size: .87rem; color: var(--soft); }
.variant-manual summary { cursor: pointer; }
#variant-select { width: 100%; margin-top: .4rem; }
.variant-summary { font-size: .84rem; margin-block: .55rem; }
.loader-dialog a { color: #553400; }
.route-list button[aria-current="step"] { border-color: var(--brand-text); }
@media (max-width: 760px) {
  .party-bar { margin-bottom: 10px; min-height: 58px; }
  .party-label { display: block; width: 100%; }
  .party-bar strong { font-size: .85rem; }
  .map-window { height: clamp(294px, 70vw, 426px); }
  .map-footer { align-items: flex-start; flex-wrap: wrap; gap: 7px; }
  .room-select { max-width: 52vw; }
}
@media (max-width: 450px) {
  .party-bar .secondary { max-width: 145px; }
  .dialog-body { padding-inline: 14px; }
}
