@font-face {
  font-family: Wanderer;
  src: url("assets/title.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0b161d;
  --surface: #10232b;
  --surface-high: #192e36;
  --ink: #e8eee8;
  --muted: #99aeb4;
  --line: #29404a;
  --accent: #a8e6cf;
  --past: #e5b879;
  --danger: #ed9585;
  --radius: 12px;
  --display: Wanderer, "Noto Serif SC", "Songti SC", SimSun, serif;
  --body: "Segoe UI", "Microsoft YaHei", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection {
  background: #a8e6cf;
  color: #10232b;
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--line) var(--bg);
}
svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.svg-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
.app {
  width: 100%;
  max-width: 1504px;
  padding: 0 16px;
  margin: 0 auto;
}
.masthead {
  height: 90px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-mark {
  width: 33px;
  height: 40px;
  color: var(--accent);
}
.brand strong {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 3px;
  display: block;
  line-height: 1.3;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.6px;
  color: var(--muted);
  margin-top: 5px;
}
.header-note {
  display: none;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.icon-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 8px;
  color: var(--muted);
  transition:
    background 0.15s,
    color 0.15s;
}
.icon-button:hover:not(:disabled) {
  background: var(--surface-high);
  color: var(--ink);
}
.icon-button svg {
  width: 21px;
  height: 21px;
}
.game-frame {
  border: 1px solid #34505a;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 18px 50px #0003;
}
.stage {
  position: relative;
  aspect-ratio: 2/1;
  isolation: isolate;
  overflow: hidden;
  background: #0c2029;
}
canvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}
.hud {
  position: absolute;
  inset: 22px 26px auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  gap: 12px;
}
.room-name {
  display: flex;
  gap: 12px;
  align-items: center;
}
.room-name > span {
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  border-right: 1px solid #68868b55;
  padding-right: 14px;
  line-height: 1.1;
}
.room-name small {
  color: #afc6c9;
  font-size: 10px;
  letter-spacing: 2px;
  display: block;
}
.room-name strong {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  display: block;
}
.hud-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #d9e9e6;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.core-count {
  display: flex;
  align-items: center;
  gap: 8px;
}
.core-count svg {
  width: 17px;
  color: var(--accent);
}
.core-count b {
  font-weight: 500;
}
.hud-stats time {
  color: #c2d6d7;
  min-width: 42px;
}
.upgrade {
  color: var(--accent);
  font-size: 12px;
}
.intro {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(
    90deg,
    #0a1b25fa 0%,
    #0a1b25dc 30%,
    #0a1b2520 66%,
    transparent 100%
  );
}
.intro-copy {
  padding: 28px 7%;
  width: 70%;
}
.intro h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(25px, 4.9vw, 70px);
  line-height: 1.45;
  letter-spacing: 2px;
  margin: 0 0 20px;
  text-wrap: balance;
}
.intro h1 span {
  color: var(--accent);
}
.intro p {
  font-size: clamp(12px, 1.15vw, 16px);
  line-height: 1.95;
  color: #a8bfc3;
  margin: 0 0 30px;
}
.primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 13px 22px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: var(--accent);
  color: #102d2b;
  font-weight: 600;
  font-size: 14px;
  transition:
    background 0.15s,
    transform 0.15s;
}
.primary-button:hover {
  background: #c8f2e2;
  transform: translateY(-1px);
}
.primary-button:active {
  transform: translateY(0);
}
.primary-button svg {
  width: 20px;
}
.intro-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9fb9bf;
  font-size: 11px;
  margin-top: 24px;
  letter-spacing: 1px;
}
.signal-dot,
.mission-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}
.art-caption {
  position: absolute;
  bottom: 32px;
  right: 5%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #a2c1c4;
  text-align: right;
  font-size: 10px;
  letter-spacing: 1.2px;
}
.art-caption span:first-child {
  color: #ccded9;
  font-size: 9px;
  letter-spacing: 2px;
}
.toast {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 92%;
  width: max-content;
  background: #0a1925ef;
  border: 1px solid #58727a;
  border-radius: 5px;
  color: #e3eae1;
  padding: 9px 16px;
  font-size: 13px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 3;
}
.toast.visible {
  opacity: 1;
}
.stage-panel {
  position: absolute;
  inset: 0;
  background: #091a24ec;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}
.panel-content {
  text-align: center;
  padding: 24px;
  max-width: 650px;
}
.panel-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  color: var(--accent);
}
.panel-content h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 44px);
  margin: 0 0 12px;
}
.panel-content > p {
  color: var(--muted);
  margin: 0 0 28px;
  font-size: 14px;
}
.panel-content .text-button {
  display: flex;
  margin: 14px auto 0;
  min-height: 36px;
}
.result-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 12px;
}
.result-stats b {
  display: block;
  font-size: 24px;
  color: var(--ink);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.win-orbit {
  width: 64px;
  height: 64px;
  border: 1px solid #56766b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  transform: rotate(-15deg);
}
.win-orbit svg {
  width: 34px;
  height: 34px;
  color: var(--accent);
  transform: rotate(15deg);
}
.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  gap: 10px;
  min-height: 72px;
  background: #11232a;
  border-top: 1px solid #34505a;
}
.ability-controls {
  display: flex;
  gap: 8px;
}
.ability-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #192f36;
  border: 1px solid #36554f;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--accent);
  font-size: 12px;
  white-space: nowrap;
}
.ability-button:hover:not(:disabled) {
  background: #25433f;
}
.ability-button svg {
  width: 18px;
}
.ability-button b {
  font-weight: 500;
  margin-left: 5px;
  color: var(--ink);
}
.ability-button kbd {
  color: var(--accent);
  border-color: #58766a;
  background: transparent;
  width: 23px;
  padding: 0;
  text-align: center;
}
.time-ability[data-era="past"] {
  color: var(--past);
  border-color: #725f42;
}
.time-ability[data-era="past"] kbd {
  color: var(--past);
  border-color: #725f42;
}
.toolbar-note {
  font-size: 11px;
  color: var(--muted);
  display: none;
  letter-spacing: 1px;
}
.session-controls {
  display: flex;
  align-items: center;
  gap: 0;
}
.session-controls .icon-button {
  width: 36px;
}
.session-controls .icon-button:last-child {
  display: none;
}
.text-button {
  background: transparent;
  border: 0;
  padding: 4px 0;
  color: var(--muted);
  font-size: 12px;
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.text-button:hover:not(:disabled) {
  color: var(--accent);
  text-decoration: underline;
}
.text-button svg {
  width: 15px;
  height: 15px;
}
.mission-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 2px 25px;
  border-bottom: 1px solid var(--line);
}
.mission-strip > div {
  display: flex;
  gap: 11px;
  align-items: center;
}
.mission-strip p {
  font-size: 12px;
  color: #a9bcc0;
  margin: 0;
}
.mission-strip button {
  flex-shrink: 0;
}
.journey {
  padding: 24px 0 0;
}
.hint-sheet {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-top: 14px;
}
.hint-sheet strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--past);
}
.hint-sheet p {
  font-size: 13px;
  line-height: 1.9;
  margin: 6px 0 0;
  color: var(--ink);
  max-width: 75ch;
}
.hint-sheet .icon-button {
  flex-shrink: 0;
}
.journey-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.journey-heading h2 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 1px;
}
.journey-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.level-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.chapter-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.chapter-navigation label { color: var(--muted); font-size: 13px; }
.chapter-navigation select {
  min-height: 48px;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid #55756e;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
}
.chapter-navigation button { min-height: 44px; }
.chapter-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 0 20px; }
.chapter-heading h3 { font: 400 22px var(--display); margin: 0; color: var(--accent); }
.chapter-heading span { color: var(--muted); font-size: 11px; }
.mechanism-journal { margin-top: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.mechanism-journal summary { cursor: pointer; min-height: 48px; padding: 14px 18px; color: var(--accent); font-size: 14px; }
.mechanism-journal summary span { color: var(--muted); font-size: 12px; margin-left: 10px; }
.mechanism-journal ol { margin: 0; padding: 0 22px 20px 40px; color: var(--ink); font-size: 14px; line-height: 1.9; }
.mechanism-journal li { padding: 3px 0; }
.hint-sheet p { white-space: pre-line; }
.level-button {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  border: 1px solid var(--line);
  background: transparent;
  padding: 16px 18px;
  border-radius: 7px;
  min-height: 90px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.level-button:hover:not(:disabled) {
  background: var(--surface);
  border-color: #668c88;
}
.level-button.active {
  border-color: #78988c;
  background: #172c31;
}
.level-button:disabled {
  opacity: 0.55;
}
.level-number {
  font-size: 27px;
  font-weight: 300;
  color: #8eaaa9;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.level-button.active .level-number {
  color: var(--accent);
}
.level-copy {
  flex: 1;
}
.level-copy strong {
  font-weight: 500;
  font-size: 14px;
  display: block;
  letter-spacing: 1px;
}
.level-copy small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.level-button > svg {
  width: 17px;
  height: 17px;
  color: #a7c0b9;
}
.level-button.active .level-copy strong {
  color: var(--accent);
}
footer {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 30px;
  color: #819ba4;
  font-size: 10px;
}
.keyboard-guide {
  display: none;
  gap: 18px;
}
.keyboard-guide span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
kbd {
  display: inline-block;
  border: 1px solid #3c525b;
  background: #15262e;
  border-radius: 3px;
  padding: 0 5px;
  min-width: 20px;
  line-height: 21px;
  font-size: 10px;
  font-family: var(--body);
  color: #c0d0d2;
}
.touch-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  gap: 10px;
}
.touch-controls > div {
  display: flex;
  gap: 8px;
}
.touch-controls button {
  height: 50px;
  min-width: 55px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  touch-action: none;
  user-select: none;
}
.touch-controls button:active,
.touch-controls button.pressed {
  background: #2c4f49;
  border-color: var(--accent);
}
.touch-controls button svg {
  width: 20px;
}
.touch-controls > span {
  font-size: 11px;
  color: var(--muted);
}
.touch-controls #touch-jump {
  padding: 0 13px;
  font-size: 12px;
}
.left-arrow {
  transform: rotate(180deg);
}
dialog {
  width: min(580px, calc(100% - 32px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #47616a;
  border-radius: 12px;
  background: #12252e;
  color: var(--ink);
  padding: 35px;
  box-shadow: 0 25px 90px #0008;
}
dialog::backdrop {
  background: #06121bd9;
}
dialog h2 {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  margin: 0 0 12px;
}
dialog > p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
}
.dialog-close {
  position: absolute;
  right: 12px;
  top: 12px;
}
.help-keys {
  margin: 22px 0;
}
.help-keys > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.help-keys dt {
  min-width: 140px;
}
.help-keys dd {
  margin: 0;
  color: #b9cdce;
}
.legend {
  padding: 5px 0;
}
.legend p {
  display: flex;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
  margin: 15px 0;
}
.legend strong {
  font-weight: 500;
  display: block;
  color: var(--ink);
}
.legend-line {
  width: 30px;
  height: 14px;
  border-top: 3px solid var(--accent);
  background: #24443d;
  flex-shrink: 0;
}
.legend-line.past {
  border-color: var(--past);
  background: #4b3f2f;
}
.legend-line.danger {
  border-color: var(--danger);
  background: #4d302d;
}
.help-note {
  line-height: 1.9;
}
.motion-setting {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0;
}
.motion-setting input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
}
dialog .primary-button {
  width: 100%;
}
.game-frame:fullscreen {
  border-radius: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}
.game-frame:fullscreen .stage {
  width: 100%;
  max-height: calc(100dvh - 74px);
  aspect-ratio: 2/1;
}
.game-frame:fullscreen canvas {
  object-fit: contain;
}
.game-frame:fullscreen .game-toolbar {
  flex-shrink: 0;
}
@media (min-width: 700px) {
  .app {
    padding: 0 32px;
  }
  .header-note {
    display: block;
  }
  .level-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .level-button {
    padding: 18px;
    gap: 14px;
  }
  .touch-controls {
    display: none;
  }
  .session-controls .icon-button {
    width: 42px;
  }
  .session-controls .icon-button:last-child {
    display: inline-flex;
  }
  .game-toolbar {
    padding: 12px 22px;
  }
  .ability-controls {
    gap: 12px;
  }
  .ability-button {
    padding: 8px 15px;
    font-size: 13px;
  }
  .ability-button span {
    margin-left: 2px;
  }
  .mission-strip p {
    font-size: 13px;
  }
  .keyboard-guide {
    display: flex;
  }
  .intro-copy {
    padding: 40px 7%;
  }
  .toolbar-note {
    display: block;
  }
  .journey {
    padding-top: 24px;
  }
}
@media (min-width: 1100px) {
  .app {
    padding: 0 56px;
  }
  .masthead {
    height: 104px;
  }
  .intro h1 {
    font-size: 64px;
  }
  .intro p {
    font-size: 15px;
  }
  .intro-copy {
    width: 65%;
  }
  .level-button {
    padding: 20px 24px;
    gap: 22px;
  }
  .level-number {
    font-size: 32px;
  }
  .level-list {
    gap: 18px;
  }
  .journey-heading {
    margin-bottom: 18px;
  }
}
@media (pointer: coarse) {
  .touch-controls {
    display: flex;
  }
  .keyboard-guide {
    display: none;
  }
}
.touch-controls {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.game-frame:fullscreen .stage {
  min-height: 0;
}
@media (pointer: coarse) {
  .game-frame:fullscreen .stage {
    max-height: calc(100dvh - 146px);
  }
}
@media (max-width: 699px) {
  .stage {
    aspect-ratio: 1.6/1;
  }
  canvas {
    object-fit: contain;
  }
  .intro-copy {
    width: 100%;
    padding: 18px 6%;
  }
  .intro h1 {
    font-size: clamp(26px, 5.7vw, 40px);
    margin-bottom: 10px;
    line-height: 1.35;
  }
  .intro p {
    font-size: 11px;
    line-height: 1.7;
    margin-bottom: 15px;
  }
  .intro .primary-button {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 12px;
    gap: 24px;
  }
  .intro-foot {
    display: none;
  }
  .art-caption {
    display: none;
  }
  .hud {
    inset: 10px 12px auto;
  }
  .room-name > span {
    font-size: 18px;
    padding-right: 8px;
  }
  .room-name {
    gap: 8px;
  }
  .room-name small {
    display: none;
  }
  .room-name strong {
    font-size: 11px;
  }
  .hud-stats {
    gap: 10px;
    font-size: 10px;
  }
  .hud-stats svg {
    width: 12px;
  }
  .upgrade {
    font-size: 9px;
  }
  .ability-button {
    gap: 5px;
    padding: 7px;
    font-size: 10px;
  }
  .ability-button svg {
    display: none;
  }
  .ability-button kbd {
    width: 20px;
    font-size: 10px;
  }
  .game-toolbar {
    padding: 8px;
  }
  .session-controls .icon-button {
    width: 32px;
    min-height: 44px;
  }
  .session-controls .icon-button svg {
    width: 18px;
  }
  .toast {
    bottom: 8px;
    font-size: 10px;
    padding: 6px 10px;
  }
  .panel-content {
    padding: 16px;
  }
  .panel-content h2 {
    font-size: 24px;
    margin-bottom: 6px;
  }
  .panel-content > p {
    font-size: 11px;
    margin-bottom: 12px;
  }
  .panel-icon {
    display: none;
  }
  .panel-content .primary-button {
    min-height: 40px;
    font-size: 11px;
    padding: 8px 14px;
  }
  .panel-content .text-button {
    margin-top: 6px;
    font-size: 10px;
  }
  .win-orbit {
    display: none;
  }
  .result-stats {
    gap: 25px;
    margin-bottom: 12px;
    font-size: 9px;
  }
  .result-stats b {
    font-size: 18px;
  }
  .mission-strip {
    align-items: flex-start;
    padding: 18px 2px;
    gap: 8px;
  }
  .mission-strip p {
    font-size: 11px;
  }
  .mission-strip .text-button {
    font-size: 10px;
  }
  .help-keys dt {
    min-width: 116px;
  }
  dialog {
    padding: 28px 22px;
  }
  .save-status {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* A game shell: one screen at a time, with the room kept intact. */
body { overflow: hidden; }
.app {
  height: 100dvh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: 1680px;
  padding: 0 16px;
}
.masthead { height: 68px; flex: 0 0 68px; gap: 16px; }
.brand strong { font-size: 18px; }
.brand small { font-size: 8px; }
.brand-mark { width: 28px; }
.header-note { font-size: 12px; }
.header-actions { gap: 0; }
#home-button { padding: 0 12px; min-height: 44px; }
#settings-button, #sound-button { display: none; }
main { flex: 1; display: flex; min-height: 0; }
.game-frame {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
}
.stage { flex: 1; min-height: 0; aspect-ratio: auto; }
canvas { position: absolute; inset: 0; object-fit: contain; }
body[data-screen="home"] canvas { object-fit: cover; object-position: 65% center; }
.intro { background: linear-gradient(90deg, #0a1b25f5, #0a1b25ad 40%, #0a1b2500 78%); }
.intro-copy { width: 100%; padding: 28px 8%; }
.intro h1 { font-size: clamp(32px, 6vw, 64px); line-height: 1.4; margin-bottom: 18px; }
.intro p { font-size: 13px; max-width: 34em; line-height: 1.9; margin-bottom: 24px; }
.main-menu { width: 220px; display: flex; flex-direction: column; gap: 6px; }
.main-menu .primary-button { width: 100%; min-height: 52px; font-size: 16px; padding: 12px 20px; }
.menu-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  text-align: left;
  color: #c1d7d6;
  font-size: 16px;
  transition: background .18s, color .18s;
}
.menu-button svg { width: 18px; opacity: .65; }
.menu-button:hover { background: #18383b; color: var(--accent); }
.intro-foot { display: flex; font-size: 11px; letter-spacing: .3px; margin-top: 22px; max-width: 32em; }
.art-caption { bottom: 34px; right: 5%; }
footer { padding: 12px 2px; min-height: 44px; flex: 0 0 44px; font-size: 11px; gap: 8px; }
body[data-screen="play"] .masthead { height: 58px; flex-basis: 58px; }
body[data-screen="play"] .header-note { display: none; }
body[data-screen="play"] #settings-button, body[data-screen="play"] #sound-button { display: inline-flex; }
.game-toolbar { min-height: 64px; padding: 8px 12px; flex: 0 0 auto; }
.game-toolbar .toolbar-note { display: none; }
.story-talk { position: absolute; z-index: 3; bottom: 16px; left: 16px; display: flex; align-items: center; gap: 10px; min-height: 44px; max-width: calc(100% - 32px); padding: 8px 14px; border: 1px solid #56766b; border-radius: 5px; color: var(--accent); background: #10232bf5; font-size: 14px; text-align: left; }
.story-talk svg { width: 18px; flex-shrink: 0; }
.story-talk:disabled { opacity: 1; color: #e5b879; border-color: #7a674b; }
.story-talk:disabled kbd { display: none; }
.story-talk:hover:enabled { background: #20413e; }
dialog.story-dialog { width: min(820px, calc(100% - 24px)); padding: 0; --story-color: var(--accent); }
.story-conversation { display: grid; grid-template-columns: 180px minmax(0, 1fr); }
.story-portrait { display: grid; place-items: center; color: var(--story-color); background: #0b1d26; border-right: 1px solid var(--line); padding: 24px; }
.story-portrait svg { width: 100%; max-width: 132px; height: 154px; }
.story-content { padding: 36px; min-width: 0; }
.story-content h2 { color: var(--story-color); font-size: 32px; margin-bottom: 4px; padding-right: 32px; }
.story-role { color: #afc4c6; font-size: 13px; margin: 0 0 24px; }
.story-scene { color: var(--ink); font-size: 15px; margin: 0 0 12px; }
.story-line { color: var(--ink); font-size: 18px; line-height: 1.9; min-height: 104px; margin: 0 0 28px; max-width: 36em; }
.story-choices { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.story-choice { padding: 12px 16px; min-height: 48px; text-align: left; background: #192e36; color: var(--ink); border: 1px solid #47616a; border-radius: 5px; font-size: 15px; }
.story-choice:hover { border-color: var(--story-color); color: var(--story-color); }
.story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.story-dialog .primary-button { margin: 0; min-height: 48px; font-size: 15px; }
.story-actions .text-button { min-height: 44px; font-size: 14px; }
.story-footnote { color: #afc4c6; font-size: 12px; margin: 16px 0 0; }
.story-journal { border-block: 1px solid var(--line); padding: 16px 0; margin: 20px 0; }
.story-journal summary { cursor: pointer; color: var(--accent); font-size: 15px; min-height: 32px; }
.story-journal summary span { color: #afc4c6; margin-left: 8px; font-size: 13px; }
.story-journal p { font-size: 14px; line-height: 1.8; color: #c1d7d6; }
.story-journal ol { padding-left: 20px; }
.story-journal li { margin: 24px 0; }
.story-journal strong { color: var(--ink); font-size: 15px; font-weight: 500; }
@media (max-width: 699px) {
  .story-conversation { grid-template-columns: minmax(0, 1fr); }
  .story-portrait { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; }
  .story-portrait svg { width: 72px; height: 84px; }
  .story-content { padding: 24px; }
  .story-content h2 { font-size: 28px; }
  .story-line { font-size: 16px; min-height: 0; }
  .story-role { margin-bottom: 20px; }
  .story-talk { left: 8px; bottom: 8px; font-size: 12px; padding: 6px 10px; }
}
@media (min-width: 700px) and (max-height: 480px) {
  .story-conversation { grid-template-columns: 120px minmax(0, 1fr); }
  .story-content { padding: 24px; }
  .story-line { font-size: 16px; min-height: 0; margin-bottom: 16px; }
  .story-role { margin-bottom: 12px; }
}
.ending-invitation { display: flex; align-items: center; gap: 16px; margin: 0 auto 24px; padding: 16px 20px; max-width: 100%; min-height: 64px; border: 1px solid #56766b; border-radius: 5px; background: #152f31; color: var(--accent); text-align: left; font-size: 15px; }
.ending-invitation > svg { width: 22px; flex-shrink: 0; }
.ending-invitation small { display: block; color: #c1d7d6; font-size: 12px; margin-top: 6px; }
.ending-invitation:hover { background: #20413e; border-color: var(--accent); }
dialog.ending-dialog { width: min(1140px, calc(100% - 32px)); max-width: none; padding: 0; max-height: calc(100dvh - 32px); border: 1px solid #56766b; background: #10232b; }
.ending-dialog::backdrop { background: #061218f5; }
.ending-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.ending-landscape { position: relative; margin: 0; min-height: 520px; background: #17383d; }
.ending-landscape img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.ending-landscape figcaption { position: absolute; left: 20px; bottom: 20px; padding: 8px 12px; background: #0b2027ed; color: #edf5ee; font-size: 13px; }
.ending-letter { position: relative; padding: 64px 32px 28px; }
.ending-letter h2 { font: 400 clamp(28px, 3vw, 40px)/1.5 var(--display); margin: 0 0 28px; color: var(--ink); }
.ending-letter p { color: #c1d7d6; font-size: 15px; line-height: 1.9; margin: 0 0 20px; }
.ending-letter .ending-thanks { color: var(--accent); }
.ending-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; }
.ending-letter .back-button { width: 100%; justify-content: space-between; color: var(--accent); margin-top: 28px; }
.ending-letter .ending-credit { font-size: 11px; line-height: 1.8; color: #b0c5c7; margin: 20px 0 0; }
.ending-credit a { color: inherit; text-underline-offset: 3px; }
.ending-photo-error { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; color: #c1d7d6; }
.ending-photo-error p { margin: 0; }
@media (min-width: 700px) and (max-height: 480px) {
  .ending-landscape { min-height: 0; }
  .ending-landscape img { position: sticky; top: 0; height: calc(100dvh - 34px); object-fit: contain; }
  .ending-landscape figcaption { top: calc(100dvh - 85px); bottom: auto; }
  .ending-photo-error { min-height: calc(100dvh - 34px); }
}
@media (max-width: 699px) {
  .ending-layout { grid-template-columns: minmax(0, 1fr); }
  .ending-landscape { min-height: 0; aspect-ratio: 4 / 3; }
  .ending-letter { padding: 28px 24px 24px; }
  .ending-letter h2 { font-size: 28px; margin-bottom: 20px; }
  .ending-letter h2 br { display: none; }
  .ending-landscape figcaption { left: 12px; bottom: 12px; }
  .ending-close { top: 16px; right: 12px; }
  .ending-letter h2 { padding-right: 28px; }
  .ending-invitation { gap: 10px; padding: 12px; font-size: 14px; }
}
.learning-bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; border-top: 1px solid var(--line); background: #10232b; }
.learning-bar > div { min-width: 0; }
.learning-bar strong { color: var(--accent); font-size: 14px; font-weight: 500; }
.learning-bar p { color: #c1d7d6; font-size: 13px; line-height: 1.6; margin: 2px 0 0; }
.learning-bar .icon-button { flex: 0 0 44px; }
.session-controls { gap: 4px; }
#guide-button { min-height: 44px; padding: 8px; font-size: 12px; color: #c1d7d6; }
.session-controls .icon-button { width: 44px; }
.session-controls .icon-button:last-child { display: inline-flex; }
.ability-controls { gap: 6px; }
.ability-button { padding: 8px; font-size: 11px; }
.ability-button b { margin-left: 2px; }
.touch-controls { padding: 10px 12px; }
.touch-controls > span { font-size: 11px; }
.pause-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-top: 16px; }
.panel-content { max-height: 100%; overflow: auto; width: 100%; }
.panel-content .text-button { min-height: 44px; font-size: 14px; }
.pause-links .text-button { margin: 0; }
.panel-content h2 { font-size: clamp(26px, 4vw, 44px); }
.panel-content > p { font-size: 14px; }
.panel-content .primary-button { min-height: 48px; font-size: 15px; }
.screen-panel {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  padding: 24px 20px;
}
.screen-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
.screen-heading h2 { font: 400 32px/1.3 var(--display); margin: 0 0 8px; }
.screen-heading h2:focus { outline: none; }
.screen-heading p { font-size: 14px; color: var(--muted); margin: 0; }
.back-button { border: 1px solid var(--line); border-radius: 5px; background: transparent; min-height: 44px; padding: 8px 14px; display: flex; gap: 8px; align-items: center; font-size: 14px; }
.back-button svg { width: 18px; }
.back-button:hover { border-color: var(--accent); color: var(--accent); }
.journey-heading h3 { font: 500 14px var(--body); margin: 0; }
.journey-heading > span { font-size: 12px; }
.chapter-heading { flex-wrap: wrap; padding-bottom: 16px; }
.chapter-heading span { font-size: 12px; }
.chapter-note { color: var(--muted); font-size: 13px; margin: 24px 0 0; }
.level-button { min-height: 88px; padding: 16px; }
.level-copy small { font-size: 12px; }
.level-button:disabled { opacity: .65; }
.level-button:disabled .level-copy small { color: #c1d1d2; }
.guide-dialog { width: min(760px, calc(100% - 24px)); }
.guide-dialog .mission-strip { flex-direction: column; align-items: stretch; padding: 0 0 18px; }
.guide-dialog .mission-strip p { font-size: 15px; line-height: 1.8; }
.guide-dialog .text-button { font-size: 14px; min-height: 44px; color: var(--accent); align-self: flex-start; }
.guide-dialog .hint-sheet { padding: 16px; }
.guide-dialog .hint-sheet p { font-size: 15px; }
.guide-dialog .mechanism-journal { margin-bottom: 22px; }
.guide-dialog > .primary-button { margin-top: 22px; }
dialog { padding: 32px 24px 24px; max-height: calc(100dvh - 24px); }
dialog > p { font-size: 15px; }
dialog .help-keys > div, dialog .legend p, dialog .help-note { font-size: 14px; }
dialog .help-keys dt { min-width: 115px; }
dialog .help-keys > div { gap: 8px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.setting-row strong { display: block; font-weight: 500; font-size: 16px; }
.setting-row small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; max-width: 30ch; }
.setting-row input { accent-color: var(--accent); width: 24px; height: 24px; flex-shrink: 0; cursor: pointer; }
.settings-note { margin: 20px 0; font-size: 13px; line-height: 1.8; }
.game-frame:fullscreen { width: 100%; height: 100dvh; }
.game-frame:fullscreen .stage { max-height: none; width: 100%; flex: 1; aspect-ratio: auto; }
@media (min-width: 700px) {
  .app { padding: 0 32px; }
  .masthead { height: 80px; flex-basis: 80px; }
  .intro-copy { width: 75%; }
  .intro p { font-size: 15px; margin-bottom: 30px; }
  .main-menu { width: 250px; }
  .intro-foot { margin-top: 24px; font-size: 12px; }
  .game-toolbar { padding: 10px 20px; }
  .ability-controls { gap: 10px; }
  .ability-button { font-size: 13px; padding: 8px 14px; }
  .screen-panel { padding: 36px 42px; }
  .screen-heading h2 { font-size: 40px; }
  .level-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  dialog { padding: 36px; }
}
@media (min-width: 1100px) {
  .app { padding: 0 48px; }
  .intro-copy { width: 68%; }
  .intro h1 { font-size: 64px; }
  .screen-panel { padding: 40px 6%; }
}
@media (max-width: 699px) {
  .header-note { display: none; }
  body[data-screen="home"] .intro { background: linear-gradient(90deg, #0a1b25ed, #0a1b2570); }
  .intro-copy { padding: 28px 8%; }
  .intro h1 { font-size: clamp(30px, 8vw, 42px); }
  .intro p { font-size: 14px; }
  .intro-foot { font-size: 11px; }
  .main-menu { width: min(220px, 100%); }
  .ability-button kbd { display: none; }
  .ability-button svg { display: none; }
  .ability-button { font-size: 11px; padding: 8px 6px; }
  .ability-controls { gap: 4px; }
  .game-toolbar { padding: 6px; gap: 4px; min-height: 58px; }
  #guide-button { font-size: 11px; padding: 6px; }
  .session-controls { gap: 0; }
  .session-controls .icon-button { width: 36px; }
  #restart-button { display: none; }
  #home-button { font-size: 12px; padding: 0 6px; }
  body[data-screen="play"] .brand small { display: none; }
  body[data-screen="play"] .brand strong { font-size: 15px; letter-spacing: 1px; }
  body[data-screen="play"] .brand-mark { width: 22px; }
  body[data-screen="play"] .brand { gap: 8px; }
  body[data-screen="play"] footer { display: none; }
  .panel-content { padding: 22px 16px; }
  .panel-content > p { font-size: 13px; }
  .panel-icon { display: none; }
  .mission-strip .text-button { font-size: 14px; }
  .chapter-navigation { gap: 8px; }
  .chapter-navigation label { width: 100%; }
  #current-chapter { font-size: 12px; }
  .help-keys > div { flex-wrap: wrap; }
}
@media (max-height: 540px) and (orientation: landscape) {
  .app { padding: 0 16px; }
  .masthead, body[data-screen="play"] .masthead { height: 48px; flex-basis: 48px; }
  footer { display: none; }
  .intro-copy { padding: 14px 7%; width: 78%; }
  .intro h1 { font-size: 32px; margin-bottom: 8px; line-height: 1.25; }
  .intro p { display: none; }
  .main-menu { width: 220px; gap: 0; }
  .main-menu .primary-button, .menu-button { min-height: 44px; padding: 8px 16px; font-size: 14px; }
  .intro-foot { margin-top: 10px; font-size: 11px; }
  .art-caption { display: none; }
  .game-toolbar { min-height: 50px; padding: 3px 12px; }
  .learning-bar { padding: 4px 12px; }
  .learning-bar > div { display: flex; gap: 12px; align-items: center; }
  .learning-bar strong { flex: 0 0 auto; font-size: 12px; }
  .learning-bar p { margin: 0; font-size: 12px; }
  .touch-controls { padding: 4px 12px; }
  .touch-controls button { height: 44px; }
  .panel-content { padding: 12px; }
  .panel-content h2 { font-size: 26px; margin-bottom: 4px; }
  .panel-content > p { margin-bottom: 10px; font-size: 13px; }
  .panel-icon { display: none; }
  .pause-links { margin-top: 4px; }
  .panel-content .text-button { margin-top: 2px; }
  .screen-panel { padding: 20px 28px; }
  .screen-heading { margin-bottom: 18px; }
}
@media (max-height: 360px) and (orientation: landscape) {
  .intro-copy { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 12px; align-items: center; padding: 14px 5%; }
  .intro h1 { margin: 0; font-size: 30px; }
  .main-menu { width: 100%; }
  .intro-foot { grid-column: 1 / -1; margin: 0; }
}

/* Keep small-screen clues readable without changing the room's geometry. */
.room-clue-section { margin: 20px 0; border-top: 1px solid var(--line); padding-top: 18px; }
.room-clue-section summary { cursor: pointer; font-size: 16px; color: var(--ink); min-height: 44px; }
.room-clue-section summary span { display: block; margin: 6px 0 0 18px; color: #c1d7d6; font-size: 14px; }
.room-clue-section ul { padding-left: 24px; margin: 16px 0 0; }
.room-clue-section li { font-size: 16px; line-height: 1.8; margin-bottom: 12px; color: #d6e6de; }
.touch-controls > span { color: #c1d7d6; line-height: 1.6; text-align: center; }

/* Touch play is one continuous scene, with every control inside it. */
body[data-immersive="true"] .app { padding: 0; max-width: none; height: 100dvh; }
body[data-immersive="true"] .masthead,
body[data-immersive="true"] footer,
body[data-immersive="true"] .game-toolbar { display: none; }
body[data-immersive="true"] .game-frame { position: fixed; inset: 0; width: 100%; height: 100%; display: block; border: 0; border-radius: 0; box-shadow: none; }
body[data-immersive="true"] .stage { width: 100%; height: 100%; aspect-ratio: auto; }
body[data-immersive="true"] canvas { inset: 0; width: 100%; height: 100%; object-fit: fill; }
body[data-immersive="true"] .hud { inset: max(16px, env(safe-area-inset-top)) max(76px, calc(env(safe-area-inset-right) + 68px)) auto max(18px, env(safe-area-inset-left)); align-items: center; z-index: 2; }
body[data-immersive="true"] .room-name { gap: 8px; }
body[data-immersive="true"] .room-name > span { font-size: 22px; padding-right: 8px; }
body[data-immersive="true"] .room-name strong { font-size: 14px; }
body[data-immersive="true"] .room-name small { display: none; }
body[data-immersive="true"] .hud-stats { font-size: 12px; gap: 8px; }
.screen-menu { position: absolute; z-index: 3; top: max(12px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); }
.screen-menu .icon-button { width: 44px; height: 44px; background: #0b1d2ab3; border: 1px solid #829e9c80; border-radius: 50%; color: var(--ink); }
.screen-controls { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.screen-controls button { pointer-events: auto; touch-action: none; }
body[data-immersive="true"] .ability-controls { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(94px, calc(env(safe-area-inset-bottom) + 88px)); display: flex; gap: 8px; }
body[data-immersive="true"] .ability-button { min-width: 64px; min-height: 44px; padding: 8px 10px; justify-content: center; gap: 0; font-size: 13px; background: #10232bad; border-color: #a8e6cf70; border-radius: 24px; }
body[data-immersive="true"] .ability-button kbd,
body[data-immersive="true"] .ability-button svg { display: none; }
body[data-immersive="true"] .touch-controls { position: absolute; inset: 0; padding: 0; border: 0; background: none; display: block; pointer-events: none; }
body[data-immersive="true"] .touch-controls > div { position: absolute; left: max(16px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); display: flex; gap: 12px; }
body[data-immersive="true"] .touch-controls > span { display: none; }
body[data-immersive="true"] .touch-controls button { width: 58px; min-width: 58px; height: 58px; border: 1px solid #a3bdbb80; border-radius: 50%; background: #10232b9c; color: #edf5ee; }
body[data-immersive="true"] .touch-controls #touch-jump { position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 68px; height: 68px; min-width: 68px; padding: 8px; display: flex; flex-direction: column; gap: 0; white-space: nowrap; font-size: 12px; border-color: #a8e6cfbd; background: #21453ead; }
body[data-immersive="true"] .touch-controls button:active,
body[data-immersive="true"] .touch-controls button.pressed { background: #3b695be6; border-color: var(--accent); }
body[data-immersive="true"] .learning-bar { position: absolute; left: max(18px, env(safe-area-inset-left)); right: max(18px, env(safe-area-inset-right)); top: max(78px, calc(env(safe-area-inset-top) + 66px)); padding: 0; min-height: 44px; border: 0; background: none; gap: 12px; }
body[data-immersive="true"] .learning-bar > div { display: block; }
body[data-immersive="true"] .learning-bar strong { font-size: 14px; font-weight: 500; }
body[data-immersive="true"] .learning-bar p { font-size: 13px; line-height: 1.65; color: #cfdfd9; margin-top: 5px; max-width: 32em; }
body[data-immersive="true"] .learning-bar .icon-button { width: 44px; height: 44px; flex: 0 0 44px; }
body[data-immersive="true"] .story-talk { top: auto; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); min-height: 44px; max-width: calc(100% - 290px); padding: 8px 12px; font-size: 13px; white-space: nowrap; background: #10232bbf; }
body[data-immersive="true"] .story-talk kbd,
body[data-immersive="true"] .story-talk svg { display: none; }
body[data-immersive="true"] .toast { bottom: max(152px, calc(env(safe-area-inset-bottom) + 146px)); padding: 8px 12px; font-size: 13px; }
body[data-immersive="true"] .pause-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 360px; margin: 22px auto 0; }
body[data-immersive="true"] #pause-tools button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; height: auto; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #152b34; font-size: 14px; }
body[data-immersive="true"] .pause-tools .icon-button::after { content: attr(aria-label); }
@media (orientation: landscape) {
  body[data-immersive="true"] .learning-bar { left: 24%; right: 24%; top: max(12px, env(safe-area-inset-top)); }
  body[data-immersive="true"] .learning-bar strong { display: none; }
  body[data-immersive="true"] .learning-bar p { margin: 0; font-size: 12px; line-height: 1.5; }
  body[data-immersive="true"] #pause-panel .panel-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 20px; padding: 16px 24px; max-width: 680px; }
  body[data-immersive="true"] #pause-panel h2 { grid-column: 1 / -1; font-size: 26px; margin: 0; }
  body[data-immersive="true"] #pause-note { grid-column: 1 / -1; margin: 0 0 4px; }
  body[data-immersive="true"] #resume-button,
  body[data-immersive="true"] #pause-restart,
  body[data-immersive="true"] .pause-links { grid-column: 1; margin: 0; justify-content: center; }
  body[data-immersive="true"] #resume-button { width: 100%; }
  body[data-immersive="true"] .pause-tools { grid-column: 2; grid-row: 3 / span 3; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin: 0; align-content: start; }
  body[data-immersive="true"] #pause-panel .panel-icon { display: none; }
}
@media (max-width: 399px) and (orientation: portrait) {
  body[data-immersive="true"] .story-talk { bottom: max(160px, env(safe-area-inset-bottom)); max-width: calc(100% - 40px); }
  body[data-immersive="true"] .room-name strong { font-size: 12px; }
  body[data-immersive="true"] .room-name > span { font-size: 20px; }
}
