/* The Salvage Crew: one stylesheet for the title, the contract board, the crew yard and a job. One font family, shipped with the game. */
@font-face { font-family: "Inter"; src: url("./assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #06161d; --panel: rgba(9, 31, 39, .94); --panel-soft: rgba(18, 47, 56, .86); --cream: #f7e9c9; --muted: #9eb4b7;
  --yellow: #ffc34d; --teal: #55d6be; --red: #ff6671; --purple: #aa96ff; --line: #234852; --shadow: 0 18px 48px rgba(0, 8, 12, .5);
  --header: 56px; --deck: 72px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; background: var(--ink); color: var(--cream); overflow: hidden; -webkit-tap-highlight-color: transparent; }
button, input, a { font: inherit; color: inherit; }
button { cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0; font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--yellow); text-transform: uppercase; }
.icon { display: block; width: 22px; height: 22px; }
.icon-painted { width: 30px; height: 30px; object-fit: contain; }
.medal-icon { display: block; object-fit: contain; }
.medal { display: inline-flex; align-items: center; gap: 4px; }
.grade-badge { display: inline-flex; align-items: center; gap: 10px; }
.wallet dd[data-wallet-credits]::before { content: ''; display: inline-block; width: 22px; height: 22px; margin-right: 6px; vertical-align: -4px; background: url(assets/icons/coin.png) center / contain no-repeat; }

/* Buttons */
.primary-button, .secondary-button, .text-button, .menu-button, .buy-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 2px solid transparent;
  font-weight: 700; letter-spacing: .02em; text-decoration: none; background: none;
}
.primary-button, .menu-button.primary { background: var(--yellow); color: #1a1405; border-color: #ffdf8e; }
.secondary-button, .menu-button { background: rgba(18, 47, 56, .9); border-color: var(--line); }
.secondary-button[aria-pressed="true"] { background: var(--teal); color: #052019; border-color: #8cf0dd; }
.text-button { color: var(--muted); text-decoration: underline; }
.primary-button:focus-visible, .secondary-button:focus-visible, .menu-button:focus-visible, .text-button:focus-visible, button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.buy-button { min-height: 36px; padding: 0 14px; background: var(--yellow); color: #1a1405; }
.buy-button:disabled { background: #33454b; color: var(--muted); cursor: not-allowed; }

/* Exit link: one pill, at the top left of the title, the board and the yard; the job has its own header */
.exit-link { position: fixed; z-index: 30; top: 8px; right: 10px; padding: 6px 12px; border-radius: 999px; background: rgba(6, 22, 29, .78); border: 1px solid var(--line); color: var(--muted); font-size: 12px; text-decoration: none; }
body[data-view="play"] .exit-link { display: none; }

/* Views */
.view { position: fixed; inset: 0; overflow: auto; }
.game-shell:not([hidden]) { display: grid; overflow: hidden; }

/* Title */
.view-title { background: #03090d; }
/* The key art is framed about 10% tighter, anchored at the wordmark side: the ragged hull edge at the left stays out of the frame's corners and the waves under the menu are cropped. */
.title-art { position: absolute; inset: 0; overflow: hidden; background: #03090d; }
.title-art::before { content: ""; position: absolute; inset: 0; background: url("./assets/title-art.webp") center / cover no-repeat; transform: scale(1.1); transform-origin: 0% 42%; }
.title-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 9, 13, .08) 0%, rgba(3, 9, 13, .05) 40%, rgba(3, 9, 13, .7) 100%); }
.title-panel { position: absolute; right: clamp(16px, 5vw, 72px); bottom: clamp(16px, 7vh, 64px); width: min(340px, calc(100vw - 32px)); display: grid; gap: 14px; }
.menu { display: grid; gap: 10px; }
.menu-button { width: 100%; font-size: 17px; justify-content: flex-start; padding-left: 20px; background: rgba(6, 22, 29, .84); backdrop-filter: blur(3px); }
.menu-button.primary { background: var(--yellow); }
.notice { margin: 0; font-size: 12px; color: var(--muted); text-align: right; text-shadow: 0 1px 6px rgba(0, 8, 12, .9); }

/* Board and yard */
.view-board, .view-yard { padding: 14px clamp(12px, 3vw, 36px) 32px; background: radial-gradient(1200px 600px at 20% -10%, #123846, var(--ink)); }
.view-board { background: linear-gradient(180deg, rgba(4, 17, 23, .38), rgba(4, 17, 23, .72) 60%, rgba(4, 17, 23, .82)), url(assets/screens/board.webp) center top / cover no-repeat, var(--ink); }
.view-yard { background: linear-gradient(180deg, rgba(4, 17, 23, .3), rgba(4, 17, 23, .7) 60%, rgba(4, 17, 23, .82)), url(assets/screens/yard.webp) center / cover no-repeat, var(--ink); }
.view-header { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin: 28px 0 14px; }
.view-header h2 { margin: 2px 0 0; font-size: clamp(24px, 4vw, 38px); letter-spacing: .01em; }
.view-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.wallet { display: flex; gap: 12px; margin: 0; }
.wallet div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; min-width: 104px; }
.wallet dt { font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.wallet dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; color: var(--yellow); }
.daily-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; margin-bottom: 14px; border-radius: 14px; border: 1px solid #6a5a2b; background: linear-gradient(90deg, rgba(255, 195, 77, .14), rgba(9, 31, 39, .9)); }
.daily-card strong { display: block; font-size: 18px; }
.daily-card small { color: var(--muted); }
.regions { display: grid; gap: 22px; }
.region header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.region h3 { margin: 0 0 6px; font-size: 20px; }
.region header p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.contract-card { display: flex; gap: 12px; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); min-height: 92px; }
.contract-card[data-state="ready"] { border-color: #3f7f86; }
.contract-card[data-state="complete"] { border-color: #6b8f5c; }
.contract-card[aria-disabled="true"] { opacity: .62; cursor: not-allowed; }
.contract-number { font-size: 26px; font-weight: 800; color: var(--yellow); min-width: 38px; }
.contract-body { display: grid; gap: 3px; min-width: 0; }
.contract-body strong { font-size: 17px; }
.contract-body small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.contract-status { color: var(--cream) !important; font-weight: 600; }
.medal { padding: 1px 8px; border-radius: 999px; font-weight: 800; color: #1a1405; background: #c98a4b; }
.medal.silver { background: #cfd8dc; } .medal.gold { background: var(--yellow); }
.board-foot, .yard-note { color: var(--muted); font-size: 13px; margin: 18px 0 0; min-height: 1.4em; }
.yard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.yard-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.yard-panel h3 { margin: 0 0 10px; }
.yard-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(35, 72, 82, .6); }
.yard-row:first-of-type { border-top: 0; }
.yard-row[data-owned="true"] .yard-state { color: var(--teal); }
.yard-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(85, 214, 190, .12); color: var(--teal); }
.yard-name { display: grid; flex: 1; min-width: 0; }
.yard-name small { color: var(--muted); font-size: 12px; }
.yard-state { font-size: 13px; color: var(--yellow); white-space: nowrap; }

/* A job: header, playfield, line panels, tools */
.game-shell { grid-template-rows: var(--header) minmax(0, 1fr) var(--deck); background: var(--ink); }
.game-header { display: grid; grid-template-columns: minmax(150px, 230px) 1fr auto; gap: 12px; align-items: center; padding: 6px 12px; background: var(--panel); border-bottom: 1px solid var(--line); min-height: 0; }
.brand { display: grid; line-height: 1.15; min-width: 0; }
.brand strong { font-size: 14px; letter-spacing: .1em; }
.brand small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.objective-chip { display: grid; padding: 4px 12px; border-radius: 12px; background: var(--panel-soft); border: 1px solid var(--line); min-width: 0; line-height: 1.2; }
.objective-chip strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.objective-chip small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-actions { display: flex; gap: 8px; padding-right: 0; }
body:not([data-view="play"]) .header-actions { display: none; }
.icon-button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-soft); display: grid; place-items: center; }

.playfield { position: relative; min-height: 0; overflow: hidden; background: #071a22; touch-action: none; }
/* The bars beside the world carry a soft, dark copy of the job's own backdrop instead of a flat colour (scene.ts sets --env-fill). */
.playfield::before { content: ""; position: absolute; inset: -28px; background: var(--env-fill, none) center / cover no-repeat; filter: blur(14px) brightness(.62) saturate(1.1); pointer-events: none; }
.game-stage { position: absolute; inset: 0; }
.game-stage canvas { display: block; }
.toast { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); max-width: min(560px, 92%); padding: 9px 16px; border-radius: 12px; background: rgba(6, 22, 29, .94); border: 1px solid var(--line); font-weight: 600; z-index: 5; text-align: center; font-size: 14px; }
.toast[data-tone="success"] { border-color: var(--teal); } .toast[data-tone="danger"] { border-color: var(--red); }
.dark-veil { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--hx, 50%) var(--hy, 50%), rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) calc(var(--hr, 90px) * .55), rgba(0, 0, 0, .86) var(--hr, 90px)); }
.work-ring { position: absolute; width: 74px; height: 74px; margin: -37px 0 0 -37px; border-radius: 50%; pointer-events: none; background: conic-gradient(var(--teal) var(--p, 0deg), rgba(6, 22, 29, .55) 0); -webkit-mask: radial-gradient(circle, transparent 28px, #000 29px); mask: radial-gradient(circle, transparent 28px, #000 29px); }

.hud-dock { position: absolute; z-index: 4; top: calc(var(--header) + 8px); left: 8px; right: 8px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.hud-panel { pointer-events: auto; width: 188px; padding: 10px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 8px; }
.hud-title { display: grid; line-height: 1.2; }
.hud-title span { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.hud-title strong { font-size: 14px; }
.crew-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 4px; }
.crew-switch button { display: grid; gap: 1px; justify-items: center; padding: 4px 2px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-soft); font-size: 12px; }
.crew-switch button small { font-size: 12px; color: var(--muted); }
.crew-switch button[aria-pressed="true"] { border-color: var(--yellow); background: rgba(255, 195, 77, .16); }
.crew-dot { width: 12px; height: 12px; border-radius: 50%; background: #888; }
.crew-dot.rigger { background: #ffb638; } .crew-dot.engineer { background: #55d6be; } .crew-dot.medic { background: #ff6b7a; }
.crew-dot.diver { background: #4ea8de; } .crew-dot.operator { background: #b692f6; } .crew-dot.climber { background: #f28f3b; }
.compact-stats { margin: 0; display: grid; gap: 3px; }
.compact-stats div { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.compact-stats dt { color: var(--muted); } .compact-stats dd { margin: 0; font-weight: 700; }
.tension-meter { height: 10px; border-radius: 6px; background: #0b2128; border: 1px solid var(--line); overflow: hidden; }
.tension-meter span { display: block; height: 100%; width: var(--value, 20%); background: var(--teal); transition: width .08s linear; }
.tension-meter[data-state="strained"] span { background: var(--yellow); } .tension-meter[data-state="critical"] span { background: var(--red); }
.forecast-card { display: grid; gap: 2px; padding: 6px 8px; border-radius: 10px; background: var(--panel-soft); font-size: 12px; }
.forecast-card small { color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.forecast-card strong[data-level="safe"], .forecast-card strong[data-level="complete"] { color: var(--teal); } .forecast-card strong[data-level="critical"] { color: var(--red); }
.forecast-card > span { color: var(--muted); }

.command-deck { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel); border-top: 1px solid var(--line); min-height: 0; }
.tools { display: flex; gap: 6px; flex: 1; min-width: 0; flex-wrap: wrap; }
.tools button { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px 0 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-soft); font-size: 12px; font-weight: 700; }
.tools button kbd { position: absolute; top: 2px; left: 4px; font-size: 9px; color: var(--muted); font-family: inherit; }
.tools button[aria-pressed="true"] { border-color: var(--yellow); background: rgba(255, 195, 77, .16); color: var(--yellow); }
.tool-icon { display: grid; place-items: center; }
.deck-actions { display: flex; gap: 8px; }
.action-button, .haul-button { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 12px; font-weight: 800; border: 2px solid; }
.action-button { background: var(--yellow); color: #1a1405; border-color: #ffdf8e; }
.haul-button { background: rgba(255, 102, 113, .14); color: var(--red); border-color: var(--red); }
.action-button kbd, .haul-button kbd { font-size: 10px; opacity: .75; font-family: inherit; }

.touch-controls { display: none; }
@media (pointer: coarse) {
  .touch-controls { display: flex; position: absolute; z-index: 6; left: 8px; right: 8px; bottom: calc(var(--deck) + 8px); justify-content: space-between; pointer-events: none; }
  .touch-cluster { display: flex; gap: 8px; pointer-events: auto; }
  .touch-cluster button { width: 56px; height: 56px; border-radius: 16px; border: 2px solid var(--line); background: rgba(6, 22, 29, .82); display: grid; place-items: center; touch-action: none; }
  .touch-cluster button:active { border-color: var(--yellow); }
  .action-button kbd, .haul-button kbd { display: none; }
}

/* Cards and modals */
.modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 10px; background: rgba(3, 9, 13, .78); overflow: auto; }
.modal-card { width: min(720px, 100%); max-height: calc(100dvh - 20px); overflow: auto; padding: 20px 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 12px; }
.compact-card { width: min(460px, 100%); }
.modal-card h2 { margin: 0; font-size: clamp(22px, 4vw, 32px); }
.result-card { gap: 8px; }
.result-card p { margin: 0; }
.result-card .marks-line, .result-card .marks-tip, .result-card .pay-line { line-height: 1.4; }
.result-card .marks-line { display: grid; gap: 2px; }
.result-card .gold-needs { color: var(--muted); font-size: 13px; }
.result-card .optional-line { display: flex; gap: 8px; align-items: baseline; }
.result-card .optional-label { flex: none; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; color: var(--purple); }
.lead { margin: 0; font-size: 16px; line-height: 1.45; }
.briefing-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.contract-code { padding: 3px 10px; border-radius: 8px; border: 1px solid var(--yellow); color: var(--yellow); font-weight: 800; font-size: 12px; letter-spacing: .1em; }
.briefing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.briefing-grid article { background: var(--panel-soft); border-radius: 12px; padding: 10px; display: grid; gap: 4px; align-content: start; font-size: 14px; }
.briefing-grid span { font-size: 10px; letter-spacing: .14em; color: var(--yellow); font-weight: 700; }
.radio-line { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border-left: 4px solid var(--teal); background: rgba(85, 214, 190, .08); }
.radio-line span { font-size: 10px; letter-spacing: .14em; color: var(--teal); font-weight: 800; }
.radio-line p { margin: 0; font-style: italic; }
.rule-line, .keys-line { margin: 0; color: var(--muted); font-size: 13px; }
@media (pointer: coarse) { .keys-line { display: none; } }
.briefing-actions, .vertical-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vertical-actions { flex-direction: column; align-items: stretch; }
.best-line { margin: 0; color: var(--muted); font-size: 13px; }
.controls-summary { color: var(--muted); font-size: 13px; }
.settings-grid { display: grid; gap: 8px; }
.settings-grid label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: var(--panel-soft); }
.settings-grid label span { display: grid; }
.settings-grid small { color: var(--muted); font-size: 12px; }
.settings-grid input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--yellow); flex: none; margin-top: 2px; }
.settings-grid .range { justify-content: space-between; align-items: center; }
.settings-grid input[type="range"] { width: 55%; accent-color: var(--yellow); }
.grade-badge { justify-self: start; padding: 6px 18px; border-radius: 12px; font-weight: 900; letter-spacing: .12em; font-size: 22px; background: #c98a4b; color: #1a1405; }
.grade-badge[data-grade="silver"] { background: #cfd8dc; } .grade-badge[data-grade="gold"] { background: var(--yellow); }
.pay-line { margin: 0; font-weight: 700; color: var(--yellow); }
.danger-card { border-color: var(--red); }
.demo-end-card { width: min(560px, 100%); }
.demo-facts { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

.coach { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 5; display: grid; gap: 2px; max-width: min(520px, 94%); padding: 8px 16px; border-radius: 12px; background: rgba(6, 22, 29, .94); border: 1px solid var(--yellow); text-align: center; pointer-events: none; }
.coach strong { color: var(--yellow); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.coach span { font-size: 14px; }

.dispatcher { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--panel-soft); border: 2px solid var(--line); }
.radio-line .dispatcher { width: 44px; height: 44px; }
.radio-line { grid-template-columns: auto auto 1fr; }
.yard-face { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--panel-soft); }

/* Settings the player turned on */
.high-contrast .contract-card, .high-contrast .hud-panel, .high-contrast .tools button { border-color: #fff; }
.reduced-motion * { animation: none !important; transition: none !important; }

/* Medium and small screens: landscape phones and short windows */
@media (max-width: 980px), (max-height: 560px) {
  :root { --header: 36px; --deck: 48px; }
  .game-header { grid-template-columns: minmax(110px, 170px) 1fr auto; grid-template-rows: var(--header); gap: 8px; padding: 0 8px; align-items: start; }
  .game-header .brand, .game-header .objective-chip { align-self: center; }
  /* Touch targets are 44 px: Pause and Settings hang 8 px below the slimmer header, over the top corner of the stage. */
  .header-actions { gap: 4px; position: relative; z-index: 6; } .icon-button { width: 44px; height: 44px; }
  .brand strong { font-size: 11px; } .brand small { display: none; }
  .objective-chip { padding: 2px 10px; } .objective-chip strong { font-size: 13px; } .objective-chip small, .objective-chip .eyebrow { display: none; }
  .hud-dock { top: calc(var(--header) + 10px); left: 4px; right: 4px; }
  .hud-panel { width: 150px; padding: 6px; gap: 5px; border-radius: 10px; }
  .hud-title strong { font-size: 12px; } .compact-stats div { font-size: 12px; }
  .forecast-card > span, .forecast-card small { display: none; } .forecast-card { padding: 4px 6px; }
  .crew-switch button small { display: none; } .crew-switch { grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 3px; } .crew-switch button { min-height: 44px; min-width: 44px; }
  .command-deck { padding: 2px 8px; gap: 6px; }
  .tools button { min-height: 44px; min-width: 44px; padding: 0 6px; font-size: 12px; } .tools button strong { display: none; }
  .action-button, .haul-button { min-height: 44px; padding: 0 12px; font-size: 12px; }
  /* The first-job coach sits at the top of the stage, in the sky above the wreck, so it never covers the pump ring in the lower third. */
  .coach { top: 3px; bottom: auto; gap: 0; padding: 3px 10px; max-width: min(520px, calc(100% - 330px)); background: rgba(6, 22, 29, .86); } .coach strong { font-size: 11px; } .coach span { font-size: 12px; line-height: 1.25; }
  .toast { top: 4px; font-size: 12px; padding: 6px 10px; }
  .modal-card { padding: 14px 16px; gap: 8px; } .lead { font-size: 14px; } .briefing-grid { gap: 6px; } .briefing-grid article { padding: 7px; font-size: 12px; }
  .radio-line { padding: 6px 10px; font-size: 13px; }
}

@media ((max-width: 980px) or (max-height: 560px)) and (orientation: landscape) { .playfield:has(.coach:not([hidden])) .toast { top: 52px; } }

/* Portrait phones: the world fits the width and every panel sits below it, nothing overlaps the world or the touch pad */
@media (orientation: portrait) and (max-width: 700px) {
  :root { --header: auto; --deck: auto; }
  .game-header { grid-template-columns: 1fr auto; grid-template-areas: "brand actions" "chip chip"; row-gap: 4px; padding: 5px 8px; }
  .game-header .brand { grid-area: brand; } .game-header .objective-chip { grid-area: chip; } .game-header .header-actions { grid-area: actions; }
  .brand small { display: block; }
  .objective-chip { padding: 4px 10px; } .objective-chip strong { white-space: normal; font-size: 14px; } .objective-chip small { display: block; white-space: normal; font-size: 12px; }
  /* the world is only as wide as the phone, so the coach sits in the free band above the touch pad instead of over the wreck */
  .coach { position: fixed; top: auto; bottom: 92px; width: min(92vw, 360px); max-width: none; padding: 6px 12px; } .coach span { font-size: 12px; } .coach strong { font-size: 11px; }
  .game-shell:not([hidden]) { grid-template-rows: var(--header) auto auto auto minmax(0, 1fr); overflow: auto; }
  .playfield { aspect-ratio: 16 / 9; width: 100%; }
  .hud-dock { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; pointer-events: auto; }
  .hud-panel { width: auto; }
  .crew-switch button small { display: none; }
  .forecast-card > span { display: none; }
  .command-deck { flex-wrap: wrap; }
  .tools button strong { display: block; font-size: 12px; } .tools { flex-basis: 100%; }
  .deck-actions { flex: 1; } .deck-actions button { flex: 1; justify-content: center; }
  .touch-controls { position: static; padding: 8px; align-self: end; }
  .hud-dock .compact-stats.single { display: none; }
  .briefing-grid { grid-template-columns: 1fr; }
  .title-panel { right: 16px; left: 16px; width: auto; }
  .cards { grid-template-columns: 1fr; }
}

a.primary-button { text-decoration: none; }

.rush-card { margin-top: 8px; border-left-color: var(--yellow); }
.rush-card b { display: block; font-size: 20px; color: var(--yellow); font-variant-numeric: tabular-nums; }
.rush-card[data-late="true"] b { color: var(--red); }
