:root {
  color-scheme: dark;
  --ink: #080a0f;
  --panel: #10131a;
  --panel-2: #151922;
  --line: rgba(211, 187, 132, 0.19);
  --muted: #8e9098;
  --paper: #ece6d9;
  --gold: #d9b96e;
  --gold-bright: #ffe1a0;
  --cyan: #8ed7d2;
  --danger: #bd665c;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  font-family: Inter, "Segoe UI", "Yu Gothic UI", "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--ink);
  overscroll-behavior: none;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% -20%, rgba(72, 83, 101, 0.28), transparent 45%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.018) 25%, transparent 25%) 0 0 / 22px 22px,
    var(--ink);
  overflow-x: hidden;
}

button, a { -webkit-tap-highlight-color: transparent; }

button {
  color: inherit;
  font: inherit;
}

button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.topbar {
  height: 58px;
  padding: 0 clamp(16px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 10, 15, 0.86);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 20;
}

.brand {
  color: var(--paper);
  text-decoration: none;
  font: 700 11px/1.2 Consolas, "SFMono-Regular", monospace;
  letter-spacing: 0.16em;
}

.brand span { color: var(--gold); font-size: 17px; margin-right: 8px; }
.brand i { color: #4f5159; font-style: normal; margin: 0 6px; }

.top-actions { display: flex; align-items: center; gap: 20px; }
.text-button, .sound-button {
  border: 0;
  background: none;
  cursor: pointer;
  font: 700 10px/1 Consolas, monospace;
  letter-spacing: 0.12em;
}
.text-button { color: var(--muted); }
.text-button:hover { color: var(--paper); }
.sound-button {
  padding: 8px 0 8px 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}
.sound-button span { color: var(--gold); margin-right: 6px; }
.sound-button[aria-pressed="true"] { color: var(--gold-bright); }

.layout {
  width: min(1540px, 100%);
  min-height: calc(100vh - 98px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 38px) clamp(14px, 2.7vw, 42px) 28px;
  display: grid;
  grid-template-columns: minmax(215px, 270px) minmax(400px, 720px) minmax(210px, 250px);
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 3.2vw, 56px);
}

.briefing { align-self: center; }

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font: 700 9px/1.4 Consolas, monospace;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  vertical-align: 1px;
}

.left-briefing > h1 {
  margin: 0;
  font: 300 clamp(38px, 4.2vw, 64px)/0.82 Georgia, "Times New Roman", serif;
  letter-spacing: -0.055em;
}

.left-briefing > h1 em {
  color: var(--gold);
  font-weight: 400;
}

.jp-title {
  margin: 14px 0 30px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.26em;
}

.left-briefing blockquote {
  margin: 0 0 30px;
  padding-left: 16px;
  border-left: 1px solid var(--gold);
  font: 400 15px/1.85 Georgia, "Yu Mincho", serif;
  letter-spacing: 0.04em;
}

.manual-card {
  padding: 19px 18px 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.manual-card h2 {
  margin: 0 0 12px;
  font: 700 10px/1 Consolas, monospace;
  letter-spacing: 0.18em;
}

.manual-card h2 span { color: var(--muted); font: 500 9px/1 sans-serif; letter-spacing: 0.08em; margin-left: 8px; }
.manual-card > div { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.065); }
.manual-card > div > b { color: var(--gold); font: 400 10px/1.4 Consolas, monospace; }
.manual-card p { margin: 0; }
.manual-card strong { display: block; font-size: 12px; font-weight: 650; }
.manual-card small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.brief-note { margin: 18px 3px 0; color: var(--muted); font-size: 10px; line-height: 1.8; }

.console {
  width: 100%;
  max-width: 720px;
  background: #0d1016;
  border: 1px solid rgba(226, 208, 168, 0.18);
  box-shadow: var(--shadow), inset 0 0 0 5px rgba(255, 255, 255, 0.012);
  position: relative;
}

.console::before, .console::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--gold);
  opacity: 0.65;
  pointer-events: none;
  z-index: 10;
}
.console::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.console::after { right: -1px; bottom: -1px; border-right: 1px solid; border-bottom: 1px solid; }

.console-head {
  height: 62px;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr .65fr .8fr 38px;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.console-head > div { display: flex; flex-direction: column; gap: 4px; }
.console-head span, .console-foot, .signal-meter small {
  color: #686b73;
  font: 700 8px/1 Consolas, monospace;
  letter-spacing: 0.15em;
}
.console-head strong { font: 700 13px/1 Consolas, monospace; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.console-head > div:nth-child(n+2) { border-left: 1px solid var(--line); padding-left: 14px; }

.pause-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  color: var(--muted);
  cursor: pointer;
}
.pause-button:disabled { opacity: .3; cursor: default; }

.chamber {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: min(65vh, 720px);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(217,185,110,.08), transparent 52%),
    #090c12;
  background-size: 22px 22px, 22px 22px, auto, auto;
  overflow: hidden;
}

.scanlines {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .13;
  background: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(255,255,255,.07) 5px);
  mix-blend-mode: overlay;
}

.board {
  --size: 7;
  position: absolute;
  inset: clamp(11px, 3%, 24px);
  display: grid;
  grid-template-columns: repeat(var(--size), 1fr);
  grid-template-rows: repeat(var(--size), 1fr);
  gap: clamp(2px, .45vw, 5px);
  padding: clamp(5px, 1.2vw, 12px);
  border: 1px solid rgba(217,185,110,.12);
  background: rgba(0,0,0,.2);
  transition: opacity .3s ease, filter .3s ease;
}

.board.is-obscured { opacity: .16; filter: blur(5px); }
.board.is-complete .tile.is-powered { animation: victoryPulse .7s ease both; animation-delay: calc(var(--index) * 9ms); }

.tile {
  --trace: #343a45;
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.055);
  border-radius: 4px;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.038) 0 17%, transparent 18%),
    linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.004));
  color: var(--trace);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .16s, background .16s, transform .12s;
}
.tile:hover { border-color: rgba(217,185,110,.28); background-color: rgba(255,255,255,.02); }
.tile:active { transform: scale(.94); }
.tile.is-powered { --trace: var(--gold); border-color: rgba(217,185,110,.13); }
.tile.is-leaking { box-shadow: inset 0 0 0 1px rgba(189,102,92,.2); }
.tile.is-hinted { animation: hinted 1s ease; }
.tile.is-source { background-color: rgba(217,185,110,.065); }

.trace {
  position: absolute;
  display: block;
  background: currentColor;
  box-shadow: 0 0 1px currentColor;
  transition: color .2s, box-shadow .2s;
}
.is-powered .trace { box-shadow: 0 0 5px rgba(217,185,110,.7), 0 0 12px rgba(217,185,110,.25); }
.trace.n, .trace.s { width: clamp(2px, .5vw, 4px); height: 51%; left: 50%; transform: translateX(-50%); }
.trace.e, .trace.w { width: 51%; height: clamp(2px, .5vw, 4px); top: 50%; transform: translateY(-50%); }
.trace.n { top: 0; }
.trace.e { right: 0; }
.trace.s { bottom: 0; }
.trace.w { left: 0; }

.node-core {
  position: absolute;
  top: 50%; left: 50%;
  width: 23%; height: 23%;
  min-width: 5px; min-height: 5px;
  transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid currentColor;
  background: #0d1118;
  box-shadow: 0 0 0 2px rgba(8,10,15,.8);
  transition: color .2s, box-shadow .2s, background .2s;
}
.is-powered .node-core { background: var(--gold-bright); box-shadow: 0 0 4px var(--gold), 0 0 13px rgba(217,185,110,.75); }
.is-source .node-core { width: 36%; height: 36%; background: var(--gold-bright); box-shadow: 0 0 8px var(--gold), 0 0 25px var(--gold); animation: sourceBreath 1.8s ease-in-out infinite; }

.toast {
  position: absolute;
  left: 50%; bottom: 18px;
  z-index: 12;
  min-width: 160px;
  max-width: calc(100% - 36px);
  padding: 10px 16px;
  transform: translate(-50%, 12px);
  border: 1px solid var(--line);
  background: rgba(10,12,17,.94);
  color: var(--paper);
  text-align: center;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition: .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  padding: clamp(18px, 4vw, 44px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, rgba(27,31,40,.96), rgba(8,10,15,.985) 68%);
  overflow-y: auto;
}
.overlay.is-visible { display: flex; animation: overlayIn .28s ease both; }
.overlay-code { margin: 0 0 14px; color: var(--gold); font: 700 9px/1 Consolas, monospace; letter-spacing: .2em; }
.overlay h2 { margin: 0; font: 400 clamp(26px, 4vw, 46px)/1 Georgia, "Yu Mincho", serif; }
.overlay h2 span { color: var(--gold); }
.overlay > p:not(.overlay-code):not(.best-line):not(.key-hint) { color: var(--muted); font-size: 11px; line-height: 1.75; }

.sigil {
  position: relative;
  width: 78px; height: 78px;
  margin-bottom: 18px;
  border: 1px solid rgba(217,185,110,.32);
  border-radius: 50%;
  animation: slowSpin 18s linear infinite;
}
.sigil::before { content: ""; position: absolute; inset: 11px; border: 1px solid rgba(217,185,110,.15); transform: rotate(45deg); }
.sigil b { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gold-bright); font-size: 23px; font-weight: 300; animation: slowSpin 18s linear reverse infinite; }
.sigil i { position: absolute; background: var(--gold); }
.sigil i:nth-child(1), .sigil i:nth-child(3) { width: 1px; height: 14px; left: 50%; }
.sigil i:nth-child(1) { top: -8px; } .sigil i:nth-child(3) { bottom: -8px; }
.sigil i:nth-child(2), .sigil i:nth-child(4) { width: 14px; height: 1px; top: 50%; }
.sigil i:nth-child(2) { right: -8px; } .sigil i:nth-child(4) { left: -8px; }

.lead { margin: 12px 0 18px; }
.difficulty { width: min(430px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 13px; }
.difficulty button {
  padding: 10px 5px 9px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.025);
  color: var(--muted);
  cursor: pointer;
}
.difficulty button:hover, .difficulty button.is-selected { border-color: var(--gold); color: var(--paper); background: rgba(217,185,110,.08); }
.difficulty b { display: block; font: 700 10px/1 Consolas, monospace; letter-spacing: .14em; }
.difficulty small { display: block; margin-top: 5px; font-size: 8px; }

.primary-button {
  width: min(330px, 100%);
  min-height: 45px;
  padding: 11px 18px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: #0b0d12;
  font-weight: 750;
  font-size: 12px;
  letter-spacing: .05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.primary-button:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.primary-button span { font-size: 18px; font-weight: 300; }

.daily-button {
  width: min(330px, 100%);
  min-height: 39px;
  margin-top: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.11);
  background: transparent;
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  font: 700 9px/1 Consolas, monospace;
  letter-spacing: .1em;
  cursor: pointer;
}
.daily-button:hover { color: var(--paper); border-color: var(--gold); }
.daily-button span { text-align: left; }
.daily-button b { color: var(--gold); }
.daily-button em { font-style: normal; font-size: 15px; }
.best-line { margin: 12px 0 0; color: #686b73; font: 700 8px/1 Consolas, monospace; letter-spacing: .15em; }
.best-line strong { color: var(--paper); margin-left: 7px; }

.subtle-button {
  margin-top: 11px;
  padding: 8px 16px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.subtle-button:hover { color: var(--paper); }

.result-stars { margin: 4px 0 15px; color: var(--gold); font-size: 24px; letter-spacing: .18em; }
.result-score { width: min(350px, 100%); margin: 12px 0; padding: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-score span { display: block; color: var(--muted); font: 700 8px/1 Consolas, monospace; letter-spacing: .18em; }
.result-score strong { display: block; margin-top: 6px; color: var(--gold-bright); font: 400 clamp(30px, 5vw, 48px)/1 Georgia, serif; }
.result-score em { color: var(--cyan); font: 700 8px/1 Consolas, monospace; letter-spacing: .14em; }
.result-grid { width: min(350px, 100%); margin-bottom: 15px; display: grid; grid-template-columns: repeat(3, 1fr); }
.result-grid div { border-right: 1px solid var(--line); }
.result-grid div:last-child { border: 0; }
.result-grid span { display: block; color: var(--muted); font: 700 8px/1 Consolas, monospace; }
.result-grid b { display: block; margin-top: 5px; font: 400 15px/1 Consolas, monospace; }

.help-screen { text-align: left; align-items: stretch; padding: clamp(20px, 5vw, 55px); }
.help-screen h2, .help-screen > p { text-align: center; }
.close-button { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.help-steps { width: min(470px, 100%); margin: 20px auto 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.help-steps p { margin: 0; padding: 12px; border: 1px solid rgba(255,255,255,.075); display: flex; gap: 10px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.help-steps p > b { color: var(--gold); font: 700 11px/1 Consolas, monospace; }
.help-steps strong { color: var(--paper); display: block; margin-bottom: 3px; font-size: 10px; }
.key-hint { margin: 0 auto 14px; color: var(--muted); text-align: center; font: 700 8px/1 Consolas, monospace; letter-spacing: .08em; }
.help-screen .primary-button { margin: 0 auto; }

.console-controls {
  min-height: 68px;
  padding: 9px 14px;
  display: grid;
  grid-template-columns: minmax(96px, .7fr) 1.6fr minmax(96px, .7fr);
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.console-controls > button {
  height: 48px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.025);
  display: grid;
  grid-template-columns: 25px 1fr;
  grid-template-rows: 1fr 1fr;
  text-align: left;
  align-items: center;
  cursor: pointer;
}
.console-controls > button:hover:not(:disabled) { border-color: var(--gold); }
.console-controls > button:disabled { opacity: .28; cursor: default; }
.console-controls > button > span { grid-row: 1 / 3; color: var(--gold); font-size: 19px; text-align: center; }
.console-controls > button b { align-self: end; font: 700 9px/1 Consolas, monospace; letter-spacing: .1em; }
.console-controls > button small { align-self: start; margin-top: 3px; color: var(--muted); font-size: 8px; }
.signal-meter { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.signal-meter > span { height: 4px; background: #242932; overflow: hidden; }
.signal-meter > span i { display: block; width: 0; height: 100%; background: var(--gold); box-shadow: 0 0 10px var(--gold); transition: width .24s ease; }
.signal-meter p { margin: 0; text-align: right; }
.signal-meter small, .signal-meter b { display: block; }
.signal-meter b { margin-top: 4px; font: 700 11px/1 Consolas, monospace; }

.console-foot {
  min-height: 27px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.console-foot b { color: #989aa1; }
.console-foot .status-dot { width: 4px; height: 4px; margin-right: 3px; }

.archive-mark { width: 62px; height: 78px; margin-bottom: 28px; padding: 9px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.archive-mark span { color: var(--gold); font: 400 17px/1 Georgia, serif; }
.archive-mark b { text-align: right; color: #595b62; font: 400 27px/1 Georgia, serif; }
.right-briefing h2 { margin: 0 0 18px; font: 400 21px/1.55 Georgia, "Yu Mincho", serif; }
.right-briefing > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.85; }

.record-list { margin: 27px 0; border-top: 1px solid var(--line); }
.record-list div { padding: 11px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.record-list dt { color: var(--muted); font: 700 8px/1 Consolas, monospace; letter-spacing: .14em; }
.record-list dd { margin: 0; color: var(--paper); font: 400 16px/1 Georgia, serif; }
.quote-card { padding: 18px; border: 1px solid var(--line); background: rgba(217,185,110,.035); }
.quote-card span { color: var(--gold); font: 700 8px/1 Consolas, monospace; letter-spacing: .12em; }
.quote-card p { margin: 12px 0 0; font: italic 400 14px/1.8 Georgia, "Yu Mincho", serif; }

.mobile-guide { display: none; }
footer { height: 40px; padding: 0 clamp(16px,3vw,44px); border-top: 1px solid var(--line); color: #555861; display: flex; align-items: center; justify-content: space-between; font: 700 8px/1 Consolas, monospace; letter-spacing: .13em; }

@keyframes sourceBreath { 50% { box-shadow: 0 0 12px var(--gold), 0 0 34px var(--gold); } }
@keyframes slowSpin { to { transform: rotate(360deg); } }
@keyframes hinted { 0%, 100% { box-shadow: none; } 35% { box-shadow: inset 0 0 0 2px var(--cyan), 0 0 18px rgba(142,215,210,.45); } }
@keyframes victoryPulse { 45% { transform: scale(.9); background-color: rgba(217,185,110,.18); } }
@keyframes overlayIn { from { opacity: 0; transform: scale(1.015); } }

@media (max-width: 1160px) {
  .layout { grid-template-columns: minmax(190px, 245px) minmax(390px, 690px); gap: 32px; }
  .right-briefing { display: none; }
}

@media (max-width: 790px) {
  .topbar { height: 48px; }
  .brand i, .brand i + * { display: none; }
  .top-actions { gap: 9px; }
  .text-button { display: none; }
  .layout { min-height: auto; display: block; padding: 10px 8px 18px; }
  .left-briefing { display: none; }
  .console { max-width: 680px; margin: 0 auto; }
  .console-head { height: 52px; padding: 0 10px; grid-template-columns: 1fr .65fr .82fr 33px; gap: 7px; }
  .console-head > div:nth-child(n+2) { padding-left: 8px; }
  .console-head strong { font-size: 11px; }
  .chamber { max-height: none; }
  .board { inset: 9px; padding: 5px; gap: 2px; }
  .console-controls { min-height: 60px; padding: 6px 8px; grid-template-columns: 91px 1fr 91px; gap: 6px; }
  .console-controls > button { height: 45px; grid-template-columns: 23px 1fr; padding: 3px; }
  .console-foot { padding: 0 10px; }
  .start-screen { justify-content: center; }
  .sigil { width: 58px; height: 58px; margin-bottom: 12px; }
  .lead { margin: 8px 0 12px; }
  .difficulty button { padding: 8px 3px; }
  .difficulty small { font-size: 7px; }
  .primary-button { min-height: 41px; }
  .mobile-guide { display: block; margin: 0 8px 18px; padding: 13px 15px; border: 1px solid var(--line); background: rgba(255,255,255,.018); }
  .mobile-guide summary { color: var(--gold); font-size: 11px; cursor: pointer; }
  .mobile-guide p { color: var(--muted); font-size: 10px; line-height: 1.75; }
  footer { height: 34px; }
}

@media (max-width: 460px) {
  .overlay { padding: 14px; }
  .overlay-code { margin-bottom: 9px; }
  .start-screen h2 { font-size: 27px; }
  .sigil { width: 48px; height: 48px; margin-bottom: 9px; }
  .lead { font-size: 9px !important; line-height: 1.5 !important; }
  .difficulty { margin-bottom: 8px; }
  .difficulty b { font-size: 8px; }
  .daily-button { min-height: 34px; margin-top: 5px; }
  .best-line { margin-top: 8px; }
  .help-steps { grid-template-columns: 1fr; max-height: 58%; overflow-y: auto; }
  .help-steps p { padding: 8px; }
  .result-screen > p:not(.overlay-code) { margin: 7px 0; }
  .result-stars { margin: 2px 0 8px; }
  .result-score { margin: 8px 0; padding: 8px; }
  .result-grid { margin-bottom: 9px; }
  .console-controls > button small { font-size: 7px; }
  .signal-meter { gap: 5px; }
  footer span:last-child { display: none; }
}

@media (max-height: 720px) and (min-width: 791px) {
  .layout { padding-top: 12px; padding-bottom: 12px; }
  .console-head { height: 50px; }
  .console-controls { min-height: 58px; }
  .chamber { max-height: calc(100vh - 208px); }
  .sigil { width: 56px; height: 56px; margin-bottom: 10px; }
  .overlay { padding: 18px; }
}

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