.gameplay-label { display: inline-flex; align-items: center; gap: 7px; margin-left: 10px; color: #e6c17d; font-size: 10px; }
.gameplay-label time { color: #d9e2ef; font-variant-numeric: tabular-nums; }
.mission-route { display: flex; width: min(365px, 100%); gap: 5px; padding: 0; margin: 12px 0 10px; list-style: none; }
.mission-route li { flex: 1; padding-top: 6px; border-top: 2px solid #73829966; color: #c7d0de; font-size: 10px; white-space: nowrap; }
.mission-route li.current { border-color: #e4b45e; color: #ffe0a6; }
.mission-route li.done { border-color: #55c6b1; color: #9be2d4; }
.mission-route li span { display: inline-block; margin-right: 3px; }
.game-stage .unknown-key { top: var(--mission-hud-bottom, 190px); }
.gameplay-panel { position: absolute; z-index: 65; inset: 18px 18px auto auto; width: 390px; max-height: calc(100% - 36px); overflow-y: auto; padding: 23px; border: 1px solid #dccdb1; border-radius: 19px; color: #17283e; background: #faf7ef; box-shadow: 0 14px 44px #0008; }
.gameplay-panel[hidden] { display: none; }
.gameplay-panel h2 { margin: 6px 0 7px; color: #12253f; font-family: var(--report-serif); font-size: 27px; }
.gameplay-panel h3 { margin: 20px 0 8px; font-size: 15px; }
.gameplay-panel p { margin: 8px 0; line-height: 1.65; font-size: 12px; }
.gameplay-panel .eyebrow { color: #997239; }
.gameplay-panel .gameplay-close { float: right; width: 36px; height: 36px; border: 1px solid #d9d0bf; border-radius: 50%; background: transparent; color: #26394e; font-size: 22px; }
.game-mode-options { display: grid; gap: 9px; margin: 16px 0; }
.game-mode-options button { display: grid; gap: 4px; padding: 13px; border: 1px solid #d9d0bf; border-radius: 11px; background: #fffdf7; color: #25364c; text-align: left; cursor: pointer; }
.game-mode-options button[aria-pressed=true] { border-color: #ba914f; background: #f6ecd8; }
.game-mode-options strong { font-size: 14px; }
.game-mode-options span { font-size: 11px; line-height: 1.5; }
.gameplay-goals { display: grid; gap: 7px; margin: 0; padding-left: 20px; font-size: 12px; line-height: 1.6; }
.gameplay-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.gameplay-actions button { padding: 10px 12px; border: 1px solid #ba914f; border-radius: 8px; color: #25364c; background: #fffaf0; font-size: 12px; cursor: pointer; }
.gameplay-actions button:disabled { opacity: .5; cursor: default; }
.personal-records { display: grid; gap: 9px; margin: 12px 0; }
.personal-records div { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #ded6c8; border-radius: 9px; }
.personal-records strong { font-size: 12px; }
.personal-records span { font-size: 11px; color: #65707d; }
.gameplay-links { display: flex; flex-wrap: wrap; gap: 12px; }
.gameplay-links a { color: #214d77; font-size: 12px; }
.gameplay-links a:first-child { font-weight: 700; }
.achievement-toast { position: absolute; z-index: 49; left: 24px; bottom: 118px; max-width: min(360px, calc(100% - 48px)); padding: 10px 15px; border: 1px solid #d8b46c; border-radius: 10px; background: #faf4e6f5; color: #25364c; font-size: 12px; box-shadow: 0 5px 20px #0004; pointer-events: none; }
.achievement-toast[hidden], .game-stage.brain-open .achievement-toast, .game-stage.legs-open .achievement-toast { display: none; }
.game-stage .result-card { width: 470px; max-height: calc(100% - 38px); overflow-y: auto; }
.run-score-header { display: flex; align-items: center; gap: 11px; margin: 15px 0 10px; padding-top: 13px; border-top: 1px solid #ddd1b9; }
.run-score-header strong { font-size: 45px; line-height: 1; font-family: var(--report-serif); color: #15324e; }
.run-score-header div { display: grid; gap: 4px; }
.run-score-header span { font-size: 12px; }
.run-score-header small { font-size: 11px; color: #66717f; }
.run-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 12px 0; }
.run-facts div { padding: 8px 6px; border-radius: 7px; background: #eee9dd; }
.run-facts dt { font-size: 9px; color: #65707d; }
.run-facts dd { margin: 4px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; color: #26394e; }
.run-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.run-badge { padding: 5px 8px; border: 1px solid #d8d4c9; border-radius: 7px; color: #80858a; background: #f1eee7; font-size: 11px; }
.run-badge.earned { color: #257d6d; border-color: #93c5b6; background: #edf7f1; }
.game-score-rules { color: #687482; font-size: 10px; line-height: 1.6; }
.game-stage .result-card .game-score-rules { font-size: 10px; margin: 8px 0; }
.game-stage .result-card #game-record-status { font-size: 11px; margin: 8px 0 12px; }
.game-stage .result-card button { margin: 5px 5px 3px 0; }
.game-stage .result-card .gameplay-links { margin-top: 12px; }
.game-stage .result-card .gameplay-links a { display: inline; }
html[data-mission-phase=complete] .result-card #result-title { color: #257d6d; }
html[data-mission-phase=failed] .result-card #result-title { color: #b44d45; }
@media(max-width: 600px) {
  .game-header .game-brand small { display: none; }
  .game-header .game-brand span { font-size: 12px; }
  .game-header > div { gap: 4px; }
  .game-header > div button, .game-header > div a { font-size: 10px; padding: 6px; }
  .gameplay-label { margin-left: 4px; gap: 4px; font-size: 8px; }
  .mission-route { width: min(290px, 100%); gap: 4px; margin: 8px 0; }
  .mission-route li { font-size: 8px; padding-top: 4px; }
  .game-stage .hud-left { max-width: calc(100% - 84px); }
  .game-stage .hud-left h1 { font-size: 20px; }
  .game-stage.brain-open .mission-route { margin: 4px 0 5px; }
  .game-stage.brain-open .gameplay-label { display: none; }
  .gameplay-panel { inset: 12px; width: auto; max-height: calc(100% - 24px); padding: 19px; }
  .gameplay-panel h2 { font-size: 25px; }
  .achievement-toast { left: 14px; bottom: 106px; max-width: calc(100% - 28px); font-size: 11px; }
  .game-stage .result-card { width: calc(100% - 28px); max-height: calc(100% - 28px); padding: 19px; }
  .run-facts { gap: 5px; }
  .run-facts dd { font-size: 12px; }
  .run-facts dt { font-size: 8px; }
  .game-stage .result-card button { padding: 9px; font-size: 11px; min-height: 37px; }
}
