.museum-game { background: #182a29; color: var(--panel-ink); padding: clamp(1.2rem, 4vw, 2.2rem); }
.museum-game p, .museum-game summary { font-family: var(--ui); }
.museum-game p { font-size: 1rem; line-height: 1.55; }
.museum-game .eyebrow { color: #f2bf81; font-size: .73rem; margin: 0; }
.museum-game a, .museum-game a:hover { color: #f4caab; }
.museum-game [hidden] { display: none !important; }
.museum-game .game-kicker { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .65rem; }
.museum-game #game-progress { color: var(--panel-muted); font: .76rem/1.3 var(--ui); font-variant-numeric: tabular-nums; }
.museum-game .game-intro { color: var(--panel-muted); margin-bottom: 1.3rem; }
.museum-game .game-missions { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .45rem; margin-bottom: .75rem; }
.museum-game button { color: inherit; cursor: pointer; font-family: var(--ui); }
.museum-game .game-missions button { border: 0; border-bottom: 2px solid #627775; color: #e6eee8; background: transparent; padding: .5rem .25rem; font-size: .84rem; font-weight: 720; }
.museum-game .game-missions button[aria-pressed="true"] { border-color: #efb46b; color: #ffd394; }
.museum-game .game-missions button[data-complete="true"]::before { content: "✓ "; color: #afe3c6; }
.museum-game .game-missions button:disabled { cursor: default; color: #a1b1ad; }
.museum-game .mission-brief { color: #e7eee9; margin: .65rem 0 1rem; min-height: 3.1em; }
.museum-game .rail-scene { background: #203837; border: 1px solid #627775; margin-bottom: 1rem; }
.museum-game .rail-scene canvas { display: block; width: 100%; height: auto; }
.museum-game .scene-places { background: #263e3d; display: grid; grid-template-columns: repeat(3, 1fr); padding: .42rem .8rem; color: #e6eee8; font: 700 .72rem/1.35 var(--ui); }
.museum-game .scene-places span:nth-child(2) { text-align: center; color: #ffd394; }
.museum-game .scene-places span:last-child { text-align: right; }
.museum-game .game-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .86rem; }
.museum-game .game-controls fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.museum-game .game-controls legend { padding: 0; margin-bottom: .4rem; font: 700 .8rem/1.35 var(--ui); }
.museum-game #route-choices { grid-column: 1/-1; }
.museum-game .game-options { display: flex; gap: .42rem; }
.museum-game .game-options button { flex: 1; min-width: 0; min-height: 2.8rem; text-align: left; padding: .42rem .52rem; border: 1px solid #69847d; border-radius: .36rem; background: #2c4340; font-size: .8rem; font-weight: 700; line-height: 1.25; }
.museum-game .game-options button:hover:not(:disabled) { background: #36534d; }
.museum-game .game-options button[aria-pressed="true"] { border-color: #ffc381; background: #493d2f; }
.museum-game .game-options button span { display: block; margin-top: .22rem; color: #d7e0da; font-size: .69rem; font-weight: 400; }
.museum-game .game-options button:disabled { cursor: default; opacity: .75; }
.museum-game .game-metrics { margin: 1rem 0 0; padding: .8rem 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .8rem; border-block: 1px solid #627775; }
.museum-game .game-metrics dt, .museum-game .game-metrics .game-cap { color: #cadad3; font: .75rem/1.35 var(--ui); }
.museum-game .game-metrics dd { margin: .15rem 0 0; font: 1.48rem/1.2 var(--heading); font-variant-numeric: tabular-nums; }
.museum-game .game-dispatch { margin-top: .9rem; }
.museum-game .game-status { min-height: 3em; margin: 0 0 .55rem; color: #e8ede8; font-size: .88rem; }
.museum-game .game-status[data-result="blocked"] { color: #ffd29e; }
.museum-game .game-status[data-result="success"] { color: #baf1c9; }
.museum-game .game-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.museum-game .game-actions button { border: 1px solid #f5be82; padding: .55rem .85rem; background: #f5be82; color: #231e19; font-size: .88rem; font-weight: 750; border-radius: .36rem; min-height: 2.75rem; }
.museum-game .game-actions button:hover:not(:disabled) { background: #ffd7a5; }
.museum-game .game-actions button:disabled { opacity: .8; cursor: default; }
.museum-game .game-actions #next-mission { background: transparent; color: #ffcf99; }
.museum-game .game-actions #next-mission:hover { background: #493d2f; }
.museum-game .game-archive { margin-top: 1rem; padding: .75rem .9rem; border-left: 3px solid #d39c61; background: #33423a; }
.museum-game .game-archive .eyebrow { margin: 0 0 .3rem; }
.museum-game .game-archive strong { color: var(--panel-ink); }
.museum-game .game-archive > p:not(.eyebrow) { margin: .25rem 0; }
.museum-game .game-archive > a { font-size: .86rem; }
.museum-game .game-finish { margin: 1.15rem 0 0; display: grid; gap: .9rem; align-items: center; }
.museum-game .game-finish figcaption { margin: 0; color: var(--panel-muted); }
.museum-game .game-finish strong { display: block; margin-bottom: .3rem; color: #baf1c9; font-size: 1rem; }
.museum-game .game-method { margin-top: 1rem; }
.museum-game .game-method summary { width: fit-content; color: var(--panel-ink); font-size: .91rem; font-weight: 650; cursor: pointer; }
.museum-game .game-method p { color: var(--panel-muted); margin-top: .65rem; }
.museum-game .game-method p:last-child { margin-bottom: 0; }

.museum-game {
  --panel-ink: #f8f5ed;
  --panel-muted: #cedbd2;
  --heading: Georgia, "Times New Roman", serif;
  --ui: system-ui, sans-serif;
  box-sizing: border-box;
  width: min(100%, 48rem);
  margin: 2rem auto;
  scroll-margin-top: 6rem;
}
.museum-game h2 { margin: 0 0 1rem; color: var(--panel-ink); font: 700 clamp(1.75rem, 4vw, 2.6rem)/1.14 var(--heading); }
.museum-route-jump { margin: 0 0 1rem; }
.museum-route-jump a { text-decoration: underline; text-underline-offset: .17em; }
.museum-game .eyebrow { font-weight: 700; }
.museum-game a { text-decoration: underline; text-underline-offset: .17em; }
.museum-game :focus-visible { outline: 2px solid #ffd394; outline-offset: 3px; }
.museum-game .game-finish--photo { grid-template-columns: minmax(7rem, 32%) minmax(0, 1fr); }
.museum-game .game-finish img { display: block; width: 100%; height: auto; }

@media (max-width: 540px) {
  .museum-game .game-controls { grid-template-columns: minmax(0, 1fr); gap: .7rem; }
  .museum-game .game-missions button { font-size: .75rem; }
  .museum-game .game-finish--photo { grid-template-columns: minmax(0, 1fr); }
  .museum-game .game-metrics { gap: .6rem; }
  .museum-game .game-metrics dt, .museum-game .game-metrics .game-cap { font-size: .69rem; }
  .museum-game .game-metrics dd { font-size: 1.26rem; }
}
