/* Layout for the board and phone pages. Colours, font, panels and buttons come from
   /skin/skin.css (generated by theme/export_web.py). */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { scrollbar-gutter: stable; }  /* the board sizes its map from the client width; keep it steady */
body { background: var(--page); color: var(--text); font: var(--font-body) var(--font); -webkit-text-size-adjust: 100%;
       text-size-adjust: 100%; }
button, input, select { font: inherit; }
/* iOS zooms in on a quick second tap (tapping Upgrade a few times): taps are just taps here. Pinching
   still zooms, and the board's map handles its own gestures (touch-action: none). */
html, button, .px-btn { touch-action: manipulation; }
[hidden] { display: none !important; }

.dim { color: var(--text-dim); }
.accent { color: var(--text-accent); }
.warn { color: var(--text-warning); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.px-panel { min-width: 0; }
.px-panel p { margin: 0 0 4px; }
.px-btn { line-height: 1.1; }
a.px-btn { display: inline-block; text-decoration: none; align-self: flex-start; }

.chip { display: inline-block; padding: 0 6px; border: 2px solid #000; color: #000; line-height: 1.1; }
.big { font-size: var(--font-header); }

/* Sector map: tiles, robots, ships and animations are absolutely positioned (renderMap in
   common.js). Map labels use a plain bold sans-serif, which reads far better at tile size. */
.map { position: relative; flex: none; overflow: hidden; background: #000; font-family: Arial, Helvetica, sans-serif; font-weight: bold; }
.tile { position: absolute; width: var(--cell); height: var(--cell); display: flex; align-items: center;
        justify-content: center; font-size: calc(var(--cell) * 0.3); line-height: 1; user-select: none; overflow: hidden; }
/* Fog: dotted (3 x 3 dots a tile), over a grey that is a heatmap of the platinum it hid at the start (game.py
   fog_heat). The dots are lighter than whatever grey is under them, so even the lightest fog never
   looks discovered, and big enough to show on the tablet. */
.tile.fog { background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1.5px, transparent 2.1px);
            background-size: calc(var(--cell) / 3) calc(var(--cell) / 3); }
.tile.target { cursor: pointer; box-shadow: inset 0 0 0 3px var(--hl); }
.tile.target::after { content: ""; position: absolute; inset: 0; background: var(--hl); opacity: 0.4; }
.tile.selected { box-shadow: inset 0 0 0 4px #fff; }
.tile.grabbed { box-shadow: inset 0 0 0 4px #22B14C, 0 0 10px 2px #22B14C; }  /* (what a Tractor Beam grabbed) */
.robot { position: absolute; z-index: 3; width: calc(var(--cell) * 0.3); height: calc(var(--cell) * 0.3);
         margin: calc(var(--cell) * 0.7 - 3px) 0 0 calc(var(--cell) * 0.7 - 3px);
         border: 2px solid #000; box-sizing: border-box; pointer-events: none; }
.ship-token { position: absolute; z-index: 4; width: calc(var(--cell) * 0.78); height: calc(var(--cell) * 0.78);
              margin: calc(var(--cell) * 0.11) 0 0 calc(var(--cell) * 0.11); display: flex; align-items: center;
              justify-content: center; color: #000; font-size: calc(var(--cell) * 0.36); border: 2px solid #000;
              box-sizing: border-box; pointer-events: none; }
.ship-token.shared { width: calc(var(--cell) * 0.5); height: calc(var(--cell) * 0.5); margin: 0; font-size: calc(var(--cell) * 0.24); }
.ship-token.corner-1 { margin-left: calc(var(--cell) * 0.5); }
.ship-token.corner-2 { margin-top: calc(var(--cell) * 0.5); }
.ship-token.corner-3 { margin: calc(var(--cell) * 0.5) 0 0 calc(var(--cell) * 0.5); }
.ship-token.beside { width: calc(var(--cell) * 0.4); height: calc(var(--cell) * 0.4); margin: 0; font-size: calc(var(--cell) * 0.19);
                     border-width: 2px; }
.ship-token.beside.corner-1 { margin-left: calc(var(--cell) * 0.6); }
.ship-token.beside.corner-2 { margin-top: calc(var(--cell) * 0.6); }
.ship-token.beside.corner-3 { margin: calc(var(--cell) * 0.6) 0 0 calc(var(--cell) * 0.6); }
.tile.has-module { align-items: flex-start; font-size: calc(var(--cell) * 0.2); text-shadow: 0 0 2px #000, 0 0 2px #000; }
.ship-token.teamed { border-width: calc(var(--cell) * 0.08 + 1px); }
.ship-token.active { animation: active-ship 1.4s ease-in-out infinite; }
@keyframes active-ship { 0%, 100% { box-shadow: 0 0 0 2px #fff; } 50% { box-shadow: 0 0 0 3px #fff, 0 0 12px 4px rgba(255, 255, 255, 0.55); } }
.zones { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.zone { fill-opacity: 0.08; stroke-width: 2; stroke-opacity: 0.85; }
.zone.carried { stroke-dasharray: 6 4; fill-opacity: 0.04; stroke-opacity: 0.6; }
.zone.comms { stroke: #22B14C; fill: #22B14C; }
.zone.turret { stroke: #ED1C24; fill: #ED1C24; }
.zone.jammer { stroke: #C38FFF; fill: #A349A4; }
.dropped { position: absolute; z-index: 2; width: calc(var(--cell) * 0.72); height: calc(var(--cell) * 0.72);
           margin: calc(var(--cell) * 0.14) 0 0 calc(var(--cell) * 0.14); border: 3px solid; box-sizing: border-box;
           background: #fff; image-rendering: pixelated; pointer-events: none; }
.flying-module { position: absolute; z-index: 7; image-rendering: pixelated; border: 2px solid #000; background: #fff;
                 box-sizing: border-box; pointer-events: none; }
.coin { position: absolute; z-index: 7; border-radius: 50%; background: #FFC90E; border: 2px solid #000; color: #000;
        display: flex; align-items: center; justify-content: center; font-family: Arial, sans-serif; font-weight: bold;
        box-sizing: border-box; pointer-events: none; }
.laser-beam.turret { background: #FFF200; box-shadow: 0 0 5px 2px #FF7F27; }
.drone { position: absolute; z-index: 5; border: 2px solid #000; box-sizing: border-box; pointer-events: none; }
.laser-beam { position: absolute; z-index: 6; transform-origin: 0 50%; background: #ED1C24;
              box-shadow: 0 0 6px 2px #FF7F27; pointer-events: none; }
.impact { position: absolute; z-index: 6; pointer-events: none;
          background: radial-gradient(circle, #FFFFFF 0%, #FFF200 20%, #FF7F27 40%, rgba(237, 28, 36, 0.7) 58%, transparent 70%); }

.timer { font-size: var(--font-display); line-height: 1; text-align: center; min-width: 3ch; }
.timer.paused, .timer.frozen { color: var(--text-dim); }
.timer.low { color: #FF5A5F; animation: timer-low 1s ease-in-out infinite; }
@keyframes timer-low { 50% { opacity: 0.55; } }
.log { overflow-y: auto; white-space: pre-wrap; }
/* Log lines coloured like the buttons that caused them (see the legend) */
.log .log-info { color: #C3C3C3; }
.log .log-turn { color: var(--text-dim); }
.log .log-game { color: var(--text); }
.log .log-primary { color: #3FD16A; }
.log .log-instant { color: #3DBFF5; }
.log .log-money { color: #FFF200; }
.log .log-danger { color: #FF5A5F; }
.readout { margin: 0; font: inherit; white-space: pre; }
.ship { position: relative; background-size: 100% 100%; flex: none; image-rendering: pixelated; }
.ship img { position: absolute; image-rendering: pixelated; }

.legend-row { gap: 6px 22px; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.swatch { pointer-events: none; margin: 0; }
.swatch.attack, .swatch.attack-instant { padding-left: 4px; padding-right: 4px; }  /* (its red frame is 4px wider) */

/* A dialog: centred while it fits; taller than the screen (a phone's browser shows less than 100vh while its
   toolbars are out), the overlay scrolls, so its buttons can always be reached. (margin: auto centres it
   without cutting its top off, as align-items: center would.) Heights in dvh where the browser has them:
   the part of the screen really shown. */
.overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, 0.75); display: flex;
           align-items: flex-start; justify-content: center; padding: 12px; z-index: 10;
           overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.overlay > .px-panel { width: min(640px, 100%); margin: auto 0; flex: none; }
.modal-body { max-height: 70vh; max-height: 70dvh; overflow-y: auto; white-space: pre-wrap; margin-bottom: 8px;
              overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-buttons { justify-content: flex-end; }
.toast { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 20; width: min(520px, 94vw); }
/* The tutorial's coach (tutorial games): a card at the bottom, above the aiming bar, and a pulsing
   frame round whatever it talks about. The page leaves room for the card (--coach-h: its height). */
.tutorial-card { position: fixed; bottom: 8px; left: 50%; transform: translateX(-50%); z-index: 15;
                 width: min(540px, 96vw); }
.tutorial-card p { margin: 6px 0; }
.tutorial-card .px-panel { margin: 0; }
.coach-plan { margin: 4px 0 6px; }
.tutorial-pill { position: fixed; right: 8px; bottom: 8px; z-index: 15; margin: 0; }
body.coached .play-page { padding-bottom: calc(var(--coach-h, 230px) + 30px); }
body.coached .aim-bar { bottom: calc(var(--coach-h, 220px) + 8px); }
body.coached .overlay { padding-bottom: calc(var(--coach-h, 220px) + 16px); }
body.coached .overlay .modal-body { max-height: calc(100vh - var(--coach-h, 220px) - 140px);
                                    max-height: calc(100dvh - var(--coach-h, 220px) - 140px); }
.tut-point { outline: 5px solid #FFD25A; outline-offset: 3px; box-shadow: 0 0 18px 6px rgba(255, 210, 90, 0.7);
             animation: tut-pulse 1.1s ease-in-out infinite; }
.tile.tut-point { z-index: 4; outline-offset: -2px; }
@keyframes tut-pulse { 50% { outline-color: rgba(255, 210, 90, 0.35); box-shadow: 0 0 6px 2px rgba(255, 210, 90, 0.3); } }
/* Its introduction: a few pages when the game starts. */
.overlay.intro-overlay { z-index: 16; }
.intro-overlay .modal-body { white-space: normal; }
.intro-head { justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.intro p { margin: 8px 0; }
.intro-list { margin: 0; padding-left: 20px; }
.intro-list li { margin: 8px 0; }
.intro .sample { display: inline-block; pointer-events: none; margin: 0 2px; padding: 0 6px; }
.intro-rock { align-items: center; flex-wrap: nowrap; gap: 8px; margin: 4px 0; }
.intro-swatch { display: inline-block; width: 20px; height: 20px; border: 2px solid #000; flex: none; }
.intro-module img { width: 48px; height: 48px; }
.intro-module { grid-template-columns: 48px 1fr; }
.shop-category { margin: 12px 0 4px; color: var(--text-accent); letter-spacing: 1px; text-transform: uppercase; }
.connection { position: fixed; top: 0; left: 0; right: 0; background: #ED1C24; color: #fff; text-align: center; z-index: 30; }

table.crew { border-collapse: collapse; width: 100%; }
table.crew th { color: var(--text-dim); font-weight: normal; text-align: left; padding: 0 6px; }
table.crew td { padding: 2px 6px; }
table.crew tr.active td { background: var(--screen-alt); }
.num { text-align: right; }

select.field { background: var(--screen-alt); color: var(--text); border: 2px solid #3A3A3A; padding: 2px 4px; }
/* (appearance: none: iOS draws its own rounded, shadowed field otherwise; the text stays at least 16px, or iOS
   zooms the page in on it) */
input.field { background: var(--screen-alt); color: var(--text); border: 2px solid #5A5A5A; padding: 2px 6px;
              -webkit-appearance: none; appearance: none; border-radius: 0; font-size: max(16px, 1em); min-height: 32px;
              min-width: 0; }
input.field:focus { outline: none; border-color: var(--text-accent); }
/* The two-letter alias: wide enough for both letters and the caret in any font. */
input.field.alias-field, .setup-field input.field.alias-field { width: 4.2em; text-align: center; text-transform: uppercase; letter-spacing: 2px; }
input.number { width: 7ch; text-align: right; }

/* Cards in the phone's module and shop lists */
.card { display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; padding: 6px; background: var(--screen-alt); margin-bottom: 6px; }
.card img { width: 64px; height: 64px; image-rendering: pixelated; grid-row: span 2; }
.card .small { font-size: var(--font-small); }
.card.planned { outline: 2px dashed #FFF200; outline-offset: -2px; }  /* bought by the upgrade plan */

/* ---------------------------------------------------------------- board (tablet) */
.board-page { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 10px; }
.board-play { display: grid; gap: 8px; padding: 8px; }
.board-play.landscape { grid-template-columns: auto minmax(0, 1fr); height: 100vh; height: 100dvh; }
.map-box { display: flex; align-items: center; justify-content: center; }
.board-info { display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; }
.landscape .board-info .log-panel { flex: 1 1 120px; display: flex; flex-direction: column; min-height: 120px; }
.landscape .board-info .log { flex: 1; min-height: 0; }
.portrait .board-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.portrait .map-box { justify-self: center; }
.portrait .board-info .log { max-height: 30vh; }
.span-all { grid-column: 1 / -1; }
.crew-row { padding: 2px 4px; }
.crew-row.active { background: var(--screen-alt); }
.crew-main { display: flex; align-items: center; gap: 8px; }
.crew-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crew-money { font-size: var(--font-header); }
.small { font-size: var(--font-small); }
.timer-box { display: flex; align-items: center; gap: 12px; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 10px; align-items: start; }
.setup-field { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 0; }
.lobby { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.join-column { max-width: max(320px, 46vw); }  /* long notes wrap instead of widening the column */
.qr img { display: block; width: min(46vh, 70vw); height: auto; image-rendering: pixelated; }
.qr-small img { width: min(30vh, 40vw); }  /* two QR codes in the lobby: the Wi-Fi's and the game's */
.join-url { font-size: var(--font-header); word-break: break-all; }

/* ---------------------------------------------------------------- player (phone) */
.play-page { display: flex; flex-direction: column; gap: 8px; padding: 8px; max-width: 560px; margin: 0 auto; }
.play-header { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; }
.play-header .timer { font-size: var(--font-header); }
/* The phone's header (name, money, timer) stays at the top while scrolling, and pulses red in
   the last seconds of your turn. */
.play-top { position: sticky; top: 0; z-index: 8; }
.play-top.hurry { animation: hurry 1s ease-in-out infinite; }
@keyframes hurry { 0%, 100% { box-shadow: 0 0 0 0 rgba(237, 28, 36, 0); }
                   50% { box-shadow: 0 0 14px 5px rgba(237, 28, 36, 0.85); } }
.cash { font-size: var(--font-header); }  /* not "money": that's the yellow button class */
/* While choosing a tile, Confirm / Cancel stay pinned to the bottom of the screen (like the header
   at the top); the page gets room at the bottom so nothing hides behind them. */
.aim-bar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(560px, 100%);
           padding: 0 8px 8px; box-sizing: border-box; z-index: 9; }
.play-page.aiming { padding-bottom: 150px; }
.ship-panel-body { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.join-form .setup-field input { width: 12ch; text-align: left; }
.your-turn { color: var(--text-accent); font-size: var(--font-header); }
.pan { margin-top: 8px; }
.pan .px-btn { min-width: 3ch; }
.lens-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.lens-grid .px-btn { margin: 0; }
/* The board's map statistics (board.js statsPanel), coloured like the broadcast's meters. */
.stats-panel .stat-meter + .stat-meter { margin-top: 4px; }
.stat-meter-head { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.stat-meter-value { color: var(--text-accent); }
.stat-meter-bar { position: relative; height: 10px; margin: 2px 2px 0; background: #1A1A1A;
                  border: 2px solid #000; box-shadow: 0 0 0 2px #2A2A2A; }
.stat-meter-fill { position: absolute; left: 0; top: 0; bottom: 0; transition: width 0.6s ease-out; }
.stat-meter.explored .stat-meter-fill { background: #00A2E8; }
.stat-meter.worked .stat-meter-fill { background: #22B14C; }
.stat-meter.mined .stat-meter-fill { background: #FFC90E; }
.stats-panel .stat-line { margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .stat-meter-fill { transition: none; } }

/* ---------------------------------------------------------------- teams and stats */
.team-block { margin-bottom: 6px; }
.team-head { display: flex; align-items: center; gap: 8px; padding: 0 6px; border: 2px solid #000; }
.team-score { font-size: var(--font-header); white-space: nowrap; }
.overlay.wide > .px-panel { width: min(960px, 100%); }
table.stats { white-space: nowrap; }
table.stats tr:nth-child(even) td { background: var(--screen-alt); }
.team-pick { display: grid; gap: 6px; }
.team-pick .px-btn { margin: 0; text-align: left; }

/* ---------------------------------------------------------------- help (rules) */
.header-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.header-row .px-btn { margin: 0; }
.overlay.rules .modal-body { white-space: normal; max-height: 76vh; max-height: 76dvh; }
.rules-section { border-bottom: 2px solid #2A2A2A; padding: 4px 0; }
.rules-section summary { cursor: pointer; color: var(--text-accent); font-size: var(--font-header); }
.rules-section[open] summary { margin-bottom: 4px; }
.rules-list { margin: 0 0 6px; padding-left: 20px; }
.rules-list li { margin-bottom: 4px; }
.table-wrap { overflow-x: auto; margin-bottom: 6px; }
.rules-table { font-size: var(--font-small); }
.rules-table td { vertical-align: top; }
.rules-table tr:nth-child(even) td { background: var(--screen-alt); }
.card .span-card { grid-column: 1 / -1; }
.zone-legend { margin-top: 4px; }
.zone-legend .comms { color: #22B14C; }
.zone-legend .turret { color: #ED1C24; }
.zone-legend .jammer { color: #C38FFF; }
.tile-info { margin-top: 8px; padding: 4px 8px; background: var(--screen-alt); }
.tile-info-head { justify-content: space-between; }
.tile-info-head .px-btn { margin: 0; }

/* ---------------------------------------------------------------- upgrade planning */
.plan-box { border: 2px solid #FFF200; padding: 6px 8px; margin-bottom: 8px; }
.plan-head { justify-content: space-between; }
.plan-step { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 2px 0; }
.plan-step .px-btn { margin: 0; padding: 0 8px; }
.plan-total { justify-content: space-between; margin-top: 4px; }

/* ---------------------------------------------------------------- computer players */
.bot-tag { font-size: var(--font-small); color: var(--text-dim); border: 1px solid #3A3A3A; padding: 0 4px; white-space: nowrap; }
.crew-line .px-btn { margin: 0 0 0 6px; padding: 0 8px; }

/* ---------------------------------------------------------------- board tile panel */
.board-info .tile-panel { flex: none; }
.tile-panel .row { margin-top: 4px; }
.tile-panel .px-btn { margin: 0; padding: 0 8px; }

/* ---------------------------------------------------------------- multistate switches (common.js multiSwitch) */
.mswitch { display: flex; align-items: stretch; max-width: 100%; user-select: none; }
.mswitch-opt { font: var(--font-button) var(--font); color: var(--text-dim); padding: 0; margin: 0; cursor: pointer;
               display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
               min-width: 0; text-align: center; }
.mswitch-opt:not(.px-btn) { background: none; border: 0; }
.mswitch-opt:disabled { cursor: default; opacity: 0.35; }
.mswitch-opt:focus-visible { outline: 2px solid var(--text-warning); outline-offset: 2px; }
.mswitch-label { white-space: nowrap; }
.mswitch-note { font-size: var(--font-small); white-space: nowrap; }
.mswitch .on { color: var(--text); }
/* keys: joined keys, the picked one pressed in and green */
.mswitch.keys .mswitch-opt { flex: 1 1 0; min-width: min-content; min-height: 46px; padding: 2px 6px; color: #000; }
.mswitch.keys .mswitch-label { white-space: normal; }  /* ("Free for all" on a narrow tablet: two lines) */
.mswitch.keys .mswitch-opt:disabled { opacity: 1; }  /* (the skin's disabled key) */
.mswitch.keys .mswitch-note { opacity: 0.7; }
/* slider: a knob on a notched track */
.mswitch.slider { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
                  padding-top: 38px; touch-action: pan-y; cursor: pointer; }  /* (a swipe up or down scrolls the page) */
.mswitch-track { position: absolute; top: 14px; height: 12px; left: calc(50% / var(--n)); right: calc(50% / var(--n));
                 background: #000; border: 2px solid #3A3A3A; }
.mswitch-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--text-accent);
                width: calc(var(--at) / (var(--n) - 1) * 100%); transition: width 0.16s ease-out; }
.mswitch-knob { position: absolute; top: -14px; width: 26px; height: 36px; margin: 0; padding: 0; pointer-events: none;
                left: calc(var(--at) / (var(--n) - 1) * 100%); transform: translateX(-50%); transition: left 0.16s ease-out; }
.mswitch.slider .mswitch-opt { position: relative; padding: 4px 2px; }
.mswitch.slider .mswitch-opt::before { content: ""; position: absolute; top: -12px; left: calc(50% - 1px); width: 2px;
                                       height: 6px; background: #4A4A4A; }
.mswitch.slider .on .mswitch-label { color: var(--text-accent); }
.mswitch.slider .mswitch-opt:disabled::before { background: #2A2A2A; }
/* the track under notches other settings rule out: hatched */
.mswitch-blocks { position: absolute; inset: 0; overflow: hidden; }
.mswitch-blocked { position: absolute; top: 0; bottom: 0; width: calc(100% / (var(--n) - 1));
                   left: calc((var(--i) - 0.5) / (var(--n) - 1) * 100%);
                   background: repeating-linear-gradient(135deg, #6A6A6A 0 3px, #000 3px 7px); }
@media (prefers-reduced-motion: reduce) { .mswitch-fill, .mswitch-knob { transition: none; } }

/* ---------------------------------------------------------------- the board's setup screen */
.setup-switch { margin: 4px 0 16px; }
.setup-switch:last-child { margin-bottom: 4px; }
.setup-switch-label { color: var(--text-accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.setup-footnote { margin-top: 4px; }
.setup-why { color: var(--text-dim); }  /* why choices are greyed out, with the slider's hatching */
.setup-why::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px;
                     border: 1px solid #5A5A5A; background: repeating-linear-gradient(135deg, #5A5A5A 0 3px, transparent 3px 7px); }
.setup-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
/* The Intergalactic Cruiser in the banner (board.js cruiserArt): its 64 px sprite at 3x on a starfield */
.cruiser-art { position: relative; width: 330px; height: 176px; overflow: hidden; background: #000;
               border: 2px solid #2C2C2C; }
.cruiser-stars { position: absolute; left: 0; top: 0; width: 2px; height: 2px; }
.cruiser-stars.near { animation: cruiser-twinkle 2.6s steps(2, end) infinite; }
.cruiser-planet { position: absolute; left: -38px; top: -44px; width: 112px; height: 112px; border-radius: 50%;
                  background: radial-gradient(circle at 88% 90%, #99D9EA 0 14%, #7092BE 15% 34%, #3F48CC 35% 60%,
                                              #262B7A 61% 86%, #14163F 87%); }
.cruiser-rock { position: absolute; }
.cruiser-rock.big { left: 26px; top: 112px; animation: cruiser-drift 9s ease-in-out infinite; }
.cruiser-rock.small { left: 92px; top: 44px; animation: cruiser-drift 7s ease-in-out infinite reverse; }
.cruiser { position: absolute; left: 118px; top: 4px; width: 192px; height: 192px; image-rendering: pixelated;
           animation: cruiser-bob 3.2s ease-in-out infinite; }
.cruiser .ship-frame { image-rendering: pixelated; }
/* the exhaust: five streaks (one an engine) fading out behind the ship */
.cruiser-plume { position: absolute; left: 92px; top: 118px; width: 110px; height: 30px; transform-origin: 100% 50%;
                 transform: rotate(-45deg); animation: cruiser-bob 3.2s ease-in-out infinite;
                 background: repeating-linear-gradient(to bottom, rgba(91, 240, 138, 0.6) 0 3px, transparent 3px 6px);
                 -webkit-mask-image: linear-gradient(to right, transparent, #000);
                 mask-image: linear-gradient(to right, transparent, #000); }
@keyframes cruiser-bob { 0%, 100% { translate: 0 0; } 50% { translate: 4px -4px; } }
@keyframes cruiser-twinkle { 0% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes cruiser-drift { 0%, 100% { translate: 0 0; } 50% { translate: 3px 2px; } }
@media (prefers-reduced-motion: reduce) { .cruiser, .cruiser-plume, .cruiser-rock, .cruiser-stars.near { animation: none; } }
@media (max-width: 760px) {
  .setup-banner { grid-template-columns: minmax(0, 1fr); }
  .cruiser-art { order: -1; width: 100%; height: 150px; }
}

/* ---------------------------------------------------------------- playtest 2026-10-06 */
.tile.void { background: #050505; background-image: none; }
.zone.owned { stroke: var(--zone, #ED1C24); fill: var(--zone, #ED1C24); }
.ship img.tappable { cursor: pointer; }
.ship img.picked { outline: 3px solid #fff; outline-offset: 1px; }
.loadout { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.loadout + .loadout { border-top: 1px solid #333; padding-top: 6px; }
/* The board's map: pinch / wheel to zoom, drag to pan (board.js), with +, - and Fit buttons. */
.map-box.zoomable { position: relative; overflow: hidden; display: block; touch-action: none; }
.map-box.zoomable > .map { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.map-box.dragging { cursor: grabbing; }
.zoom-controls { position: fixed; left: 8px; bottom: 8px; z-index: 12; display: flex; gap: 4px; }
.zoom-controls .px-btn { margin: 0; min-width: 2.4em; padding: 2px 8px; opacity: 0.9; }
.tile.giant { z-index: 0; }
.giant-label { position: absolute; z-index: 2; pointer-events: none; display: flex; align-items: center;
               justify-content: center; font-size: calc(var(--cell) * 0.42); }
.board-play.landscape { grid-template-columns: auto minmax(0, 1fr); }

/* ---------------------------------------------------------------- playtest 2026-10-12 */
/* While someone aims, a frame in their colour runs around the board's whole screen (board.js
   syncAimFrame): hands off the board, a tap would pick their target. It lets taps through. */
.aim-frame { position: fixed; inset: 0; z-index: 25; pointer-events: none; border: 8px solid var(--frame);
             animation: aim-frame 1.6s ease-in-out infinite; }
@keyframes aim-frame { 0%, 100% { box-shadow: inset 0 0 6px 2px var(--frame); }
                       50% { box-shadow: inset 0 0 26px 8px var(--frame); } }
.aim-frame-tag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px);
                 background: var(--frame); color: #000; padding: 0 12px 2px; white-space: nowrap; overflow: hidden;
                 text-overflow: ellipsis; font-size: var(--font-header); }
/* A player tapped in the crew list or Leaderboard: their ship is outlined and pinged by a ring. */
.pickable { cursor: pointer; }
.crew-row.spotlit, table.crew tr.spotlit td { outline: 2px solid #fff; outline-offset: -2px; }
.ship-token.spotlight { z-index: 5; outline: 3px solid #fff; outline-offset: 2px; }
.ship-token.spotlight::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--cell) * 2.6);
                               height: calc(var(--cell) * 2.6); margin: calc(var(--cell) * -1.3) 0 0 calc(var(--cell) * -1.3);
                               border: 3px solid #fff; border-radius: 50%; box-sizing: border-box;
                               box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5); animation: spotlight 1.4s ease-out infinite; }
@keyframes spotlight { 0% { transform: scale(0.25); opacity: 1; } 65% { opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }
/* Warp Drive jumps (common.js animateWarp) and robots despawning on a dead asteroid (animateDespawn). */
.warp-ghost { z-index: 5; }
.warp-burst { position: absolute; z-index: 6; pointer-events: none; border-radius: 50%; opacity: 0;
              background: radial-gradient(circle, #FFFFFF 0 12%, var(--warp) 30%, rgba(61, 191, 245, 0.45) 48%, transparent 68%); }
.warp-spark { position: absolute; z-index: 6; pointer-events: none; border-radius: 50%; background: #FFFFFF; opacity: 0;
              box-shadow: 0 0 6px 2px var(--warp); }
.robot.despawning { z-index: 3; }

/* ---------------------------------------------------------------- playtest 2026-10-15 */
/* The phone's ship picture: modules and free slots are buttons (play.js showModuleDialog, Construct). */
.ship .empty-slot { position: absolute; padding: 0; margin: 0; background: transparent; cursor: pointer;
                    border: 2px dashed rgba(255, 255, 255, 0.45); box-sizing: border-box; }
.ship .empty-slot:hover, .ship .empty-slot:focus-visible { background: rgba(255, 255, 255, 0.15); }
.module-dialog { display: grid; grid-template-columns: 64px 1fr; gap: 4px 10px; white-space: normal; }
.module-dialog img { width: 64px; height: 64px; image-rendering: pixelated; }
.legend-options { margin-top: 8px; }
.legend-options .px-btn { margin: 0; }
/* The phone's border glows in the player's colour when their turn starts (play.js flashTurnFrame). */
.turn-frame { z-index: 26; }

/* ---------------------------------------------------------------- ship sprites (common.js shipSprite) */
/* A ship alone on its tile: its sprite filling the tile, under robot markers, with its alias tag in
   the top-left corner. The two frames of the sheet take turns, flickering the engines. */
.ship-token.sprite { width: var(--cell); height: var(--cell); margin: 0; z-index: 3; background: none;
                     border: 0; animation: none; overflow: visible; }
.robot { z-index: 4; }
.ship-sprite { position: absolute; inset: 0; }
.ship-frame { position: absolute; inset: 0; background-size: 400% 500%; background-repeat: no-repeat;
              image-rendering: pixelated; }
.ship-frame:first-child { animation: ship-engine-a 0.5s steps(1, end) infinite; }
.ship-frame:last-child { animation: ship-engine-b 0.5s steps(1, end) infinite; }
@keyframes ship-engine-a { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes ship-engine-b { 0% { opacity: 0; } 50% { opacity: 1; } }
.ship-tag { position: absolute; left: 0; top: 0; z-index: 1; padding: 0 2px; color: #000; border: 1px solid #000;
            font-size: calc(var(--cell) * 0.22); line-height: 1.05; }
.ship-tag.teamed { border-width: calc(var(--cell) * 0.05 + 1px); }
.ship-token.sprite.active .ship-sprite { animation: active-sprite 1.4s ease-in-out infinite; }
@keyframes active-sprite { 0%, 100% { filter: drop-shadow(0 0 1px #fff); }
                           50% { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px rgba(255, 255, 255, 0.6)); } }
.ship-token.sprite.active .ship-tag { outline: 2px solid #fff; }

/* ---------------------------------------------------------------- playtest 2026-10-15, evening */
/* The board's fog dots, finer than the phone's: the tablet shows them bigger. */
.map-box.zoomable .tile.fog { background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.5px); }
/* Fusion Hop (common.js animateHop): blue engine flames behind the ship, and puffs on its path. */
.hop-flame { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
             background: radial-gradient(circle, #FFFFFF 0 14%, #9BE8FF 32%, #3DBFF5 52%, rgba(61, 191, 245, 0) 72%); }
.hop-puff { position: absolute; z-index: 2; border-radius: 50%; pointer-events: none; opacity: 0;
            background: radial-gradient(circle, rgba(155, 232, 255, 0.9) 0 20%, rgba(61, 191, 245, 0.5) 45%, rgba(61, 191, 245, 0) 70%); }

/* ---------------------------------------------------------------- PvP: lasers, charges, explosions, radiation */
.zone.laser { stroke: #FF4FB0; fill: #FF4FB0; }
.zone.charge { stroke: #FF7F27; fill: #FF7F27; }
.zone.kind-charge { stroke-dasharray: 3 3; fill-opacity: 0.05; }
.zone-legend .laser { color: #FF4FB0; }
.zone-legend .charge { color: #FF7F27; }
.zone-legend .radiation { color: #E5FF00; }
/* Explosive charges (common.js renderMap): dynamite on a dark plate, framed in the owner's colour. */
.dropped.charge { background: #1A1A1A; }
/* Radiation clouds (common.js radiationLayer): hazard stripes and a radiation sign on every tile. */
.radiation-layer { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.radiation-layer .radiation-tile { fill: rgba(229, 255, 0, 0.1); }
.radiation-layer .radiation-stripe { fill: rgba(229, 255, 0, 0.1); }
.radiation-layer .trefoil { fill: rgba(255, 230, 0, 0.42); }
.radiation-layer .cloud-edge { fill: none; stroke: #E5FF00; stroke-width: 2.5; stroke-dasharray: 8 4;
                         filter: drop-shadow(0 0 3px rgba(229, 255, 0, 0.8)); animation: cloud-edge 1.6s linear infinite; }
@keyframes cloud-edge { to { stroke-dashoffset: -24; } }
.cloud-label { position: absolute; z-index: 3; pointer-events: none; text-align: center; color: #E5FF00;
               font-size: calc(var(--cell) * 0.24); line-height: 1; text-shadow: 0 0 2px #000, 0 0 3px #000, 0 0 4px #000; }
/* Explosions (common.js animateExplosion) and radiation damage (animateRadiation). */
.blast-area { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; overflow: visible; opacity: 0; }
/* The Tractor Beam (common.js animateTractor), green as its art: a beam, rippling arcs, the emitter's glow, a ghost of
   what's moved; a dropped one's quadrant on the map, waves flowing toward it (or away). */
.tractor-beam { position: absolute; z-index: 6; transform-origin: 0 50%; pointer-events: none; border-radius: 999px;
  background: linear-gradient(to bottom, transparent, rgba(34, 177, 76, 0.4) 22%, rgba(150, 255, 175, 0.85) 50%,
              rgba(34, 177, 76, 0.4) 78%, transparent); filter: drop-shadow(0 0 6px #22B14C); }
.tractor-wave { position: absolute; z-index: 7; pointer-events: none; border-radius: 50%; border: 0 solid transparent;
  border-right: 3px solid #8DFFA8; filter: drop-shadow(0 0 3px #22B14C); }
.tractor-glow { position: absolute; z-index: 7; pointer-events: none; border-radius: 50%;
  background: radial-gradient(circle, rgba(190, 255, 205, 0.95), rgba(34, 177, 76, 0.55) 42%, transparent 70%); }
.tractor-ghost { position: absolute; z-index: 7; pointer-events: none;
  filter: drop-shadow(0 0 5px #22B14C) drop-shadow(0 0 2px #8DFFA8); }
.tractor-ghost.module { image-rendering: pixelated; }
.tractor-ghost.rock { border-radius: 42% 48% 40% 50%; background: radial-gradient(circle at 35% 35%, #A49A8E, #625850 60%, #3A332D); }
.tractor-ghost.rock.ice { background: radial-gradient(circle at 35% 35%, #C9E4FF, #4D7BFF 60%, #1447FF); }
.tractor-ghost.rock.sperrylite { background: radial-gradient(circle at 35% 35%, #D8D8C0, #8D8E5A 60%, #595A32); }
/* (its quadrant's tiles: arcs bulging away from the beam, as on its art, one every --wave, flowing toward it, or
   away from it when it repels) */
.tractor-reach { position: absolute; z-index: 1; pointer-events: none; opacity: 0.35;
  background-size: var(--wave) var(--wave); animation: 0.8s linear infinite;
  background-color: rgba(34, 177, 76, 0.14); }
.tractor-reach.repel { animation-direction: reverse; background-color: rgba(34, 177, 76, 0.09); }
/* (its quadrant's two 45-degree edges, always shown: dashed, solid green when it attracts, paler when it repels) */
.tractor-lines { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.tractor-lines line { stroke: #22B14C; stroke-width: 2; stroke-dasharray: 6 4; stroke-opacity: 0.8; }
.tractor-lines.repel line { stroke: #8DFFA8; }
.tractor-reach.to-right { animation-name: tractor-flow-left;
  background-image: radial-gradient(circle at -25% 50%, transparent 52%, #8DFFA8 56%, #8DFFA8 66%, transparent 70%); }
.tractor-reach.to-left { animation-name: tractor-flow-right;
  background-image: radial-gradient(circle at 125% 50%, transparent 52%, #8DFFA8 56%, #8DFFA8 66%, transparent 70%); }
.tractor-reach.to-down { animation-name: tractor-flow-up;
  background-image: radial-gradient(circle at 50% -25%, transparent 52%, #8DFFA8 56%, #8DFFA8 66%, transparent 70%); }
.tractor-reach.to-up { animation-name: tractor-flow-down;
  background-image: radial-gradient(circle at 50% 125%, transparent 52%, #8DFFA8 56%, #8DFFA8 66%, transparent 70%); }
.mode-toggle { justify-content: center; margin-bottom: 8px; }
@keyframes tractor-flow-left { from { background-position: 0 0; } to { background-position: calc(-1 * var(--wave)) 0; } }
@keyframes tractor-flow-right { from { background-position: 0 0; } to { background-position: var(--wave) 0; } }
@keyframes tractor-flow-up { from { background-position: 0 0; } to { background-position: 0 calc(-1 * var(--wave)); } }
@keyframes tractor-flow-down { from { background-position: 0 0; } to { background-position: 0 var(--wave); } }
/* The Plasma Cutter (animatePlasma, animateCrack): a white-hot cyan torch (Mk II: magenta and gold, like its art),
   slashes and sparks; a cut through an asteroid and the gold of the ore in its core. */
.plasma-flare { position: absolute; z-index: 7; pointer-events: none; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, #FFFFFF 0, #D6FBFF 16%, #3BE3FF 36%, rgba(0, 162, 232, 0.35) 56%, transparent 72%); }
.plasma-flare.mk2 {
  background: radial-gradient(circle, #FFFFFF 0, #FFE9F8 14%, #FF5FD2 34%, rgba(255, 201, 14, 0.4) 56%, transparent 72%); }
.plasma-slash { position: absolute; z-index: 8; pointer-events: none; border-radius: 999px;
  background: linear-gradient(90deg, transparent, #E8FDFF 18%, #FFFFFF 50%, #E8FDFF 82%, transparent);
  box-shadow: 0 0 6px #3BE3FF, 0 0 12px #00A2E8; }
.plasma-slash.mk2 { box-shadow: 0 0 6px #FF5FD2, 0 0 12px #FFC90E; }
.plasma-spark { position: absolute; z-index: 8; pointer-events: none; border-radius: 50%; background: #D6FBFF;
  box-shadow: 0 0 4px #3BE3FF; }
.plasma-spark.mk2 { background: #FFE97A; box-shadow: 0 0 4px #FF5FD2; }
.crack-cut { position: absolute; left: 0; top: 0; z-index: 7; pointer-events: none; overflow: visible; }
.crack-cut polyline { fill: none; stroke: #F2FEFF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 3px #3BE3FF) drop-shadow(0 0 6px #00A2E8); }
.crack-core { position: absolute; z-index: 6; pointer-events: none; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, #FFF7CC 0, #FFC90E 30%, rgba(255, 127, 39, 0.5) 55%, transparent 72%); }
.crack-chunk { position: absolute; z-index: 7; pointer-events: none; border-radius: 35% 45% 40% 50%;
  background: radial-gradient(circle at 35% 35%, #A79C90, #6A5F55 60%, #403830); box-shadow: 0 0 6px #FFC90E; }
.crack-chunk.ice { background: radial-gradient(circle at 35% 35%, #C9E4FF, #4D7BFF 60%, #1447FF); }
.crack-chunk.sperrylite { background: radial-gradient(circle at 35% 35%, #D8D8C0, #8D8E5A 60%, #595A32); }
.crack-glitter { position: absolute; z-index: 8; pointer-events: none; border-radius: 50%; background: #FFE97A;
  box-shadow: 0 0 5px #FFC90E; }
/* The compass for picking a way (play.js chooseDirection). */
.direction-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 320px; margin: 10px auto; }
.direction-pad .direction-hub { border-radius: 50%; background: radial-gradient(circle, rgba(141, 255, 168, 0.35), transparent 70%); }
.blast-area polygon { fill: rgba(255, 127, 39, 0.35); stroke: #FF7F27; stroke-width: 2; }
.blast-area polygon.nuclear { fill: rgba(229, 255, 0, 0.3); stroke: #E5FF00; }
.fireball { position: absolute; z-index: 7; pointer-events: none; border-radius: 50%; opacity: 0;
            background: radial-gradient(circle, #FFFFFF 0%, #FFF200 18%, #FF7F27 38%, rgba(237, 28, 36, 0.75) 56%,
                                        rgba(80, 20, 10, 0.4) 66%, transparent 72%); }
.fireball.nuclear { background: radial-gradient(circle, #FFFFFF 0%, #FFFFD0 14%, #E5FF00 30%, #FFB000 46%,
                                                rgba(120, 200, 40, 0.55) 60%, transparent 72%); }
.shockwave { position: absolute; z-index: 7; pointer-events: none; border-radius: 50%; opacity: 0; box-sizing: border-box;
             border: 3px solid rgba(255, 220, 160, 0.9); box-shadow: 0 0 10px 2px rgba(255, 127, 39, 0.6); }
.shockwave.nuclear { border-color: rgba(240, 255, 160, 0.95); box-shadow: 0 0 14px 4px rgba(229, 255, 0, 0.6); }
.blast-spark { position: absolute; z-index: 7; pointer-events: none; border-radius: 50%; background: #FFF200;
               box-shadow: 0 0 6px 2px #FF7F27; opacity: 0; }
.blast-spark.nuclear { background: #FFFFFF; box-shadow: 0 0 8px 3px #E5FF00; }
.nuke-flash { position: absolute; inset: 0; z-index: 8; pointer-events: none; background: #FFFFF0; opacity: 0; }
.nuke-cloud { position: absolute; z-index: 7; pointer-events: none; border-radius: 50%; opacity: 0;
              background: radial-gradient(circle, rgba(255, 240, 180, 0.9) 0%, rgba(229, 255, 0, 0.55) 30%,
                                          rgba(120, 160, 60, 0.35) 55%, transparent 70%); }
.radiation-pulse { position: absolute; z-index: 6; pointer-events: none; border-radius: 50%; opacity: 0;
                   background: radial-gradient(circle, rgba(229, 255, 0, 0.85) 0%, rgba(120, 220, 40, 0.5) 40%, transparent 70%); }
/* An armed Reactor (dropped: it detonates when its owner's next turn starts), its blast radius and the players'
   turns left on it (common.js). */
.reactor-countdown { position: absolute; z-index: 8; pointer-events: none; display: flex; align-items: center;
                     justify-content: center; font-weight: bold; line-height: 1;
                     color: #E5FF00; text-shadow: 0 0 2px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.reactor-countdown.last { color: #FF3C00; animation: armed-countdown 0.5s steps(2) infinite; }
@keyframes armed-countdown { 50% { opacity: 0.35; } }
.zone.reactor { stroke: #E5FF00; fill: #E5FF00; }
.zone.kind-reactor { stroke-width: 3; stroke-dasharray: 10 5; fill-opacity: 0.12; animation: cloud-edge 0.8s linear infinite; }
.dropped.armed { animation: armed-reactor 0.6s ease-in-out infinite; }
@keyframes armed-reactor { 50% { box-shadow: 0 0 0 3px #E5FF00, 0 0 14px 6px rgba(255, 60, 0, 0.8); } }
/* What a dropped Laser Cannon sees (common.js sightPolygon), when its tile or owner is tapped; a turret's sight
   within its range (its fill and two clipped outlines). */
.zone.sight { stroke: var(--zone, #FF4FB0); fill: var(--zone, #FF4FB0); fill-opacity: 0.13; stroke-width: 1.5;
              stroke-dasharray: 5 3; stroke-linejoin: round; }
.zone.sight-fill { stroke: none; }
.zone.sight-edge { fill: none; }
/* The damage report (play.js syncDamageDialog): the ship before and after, side by side. */
.blast-victim { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; border-top: 1px solid #444; }
.damage-report { display: flex; flex-direction: column; gap: 6px; white-space: normal; }
.damage-from { color: #FF8A8F; }
.damage-ships { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.damage-ship { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.damage-ship .ship { max-width: 180px; }
.damage-arrow { font-size: var(--font-display, 32px); color: #FF5A5F; line-height: 1; }
/* The phone's action grid (play.js renderActions): the same buttons every turn, in sections; greyed out
   when they can't be done (still tappable: they offer the module they need, or say why). */
.action-grid { display: flex; flex-direction: column; gap: 10px; }
.action-section { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.action-section .px-btn { margin: 0; width: 100%; min-width: 0; padding-left: 2px; padding-right: 2px; white-space: normal;
                          line-height: 1.05; min-height: 46px; font-size: 0.85em; overflow-wrap: anywhere; }
.px-btn.greyed { filter: grayscale(1) brightness(0.55); }
.px-btn.greyed.missing { filter: grayscale(1) brightness(0.45); border-style: dashed; }
.action-extras { margin-top: 10px; }
/* Hull integrity (common.js hullBar): a square per point, filled for what's left. */
.hull-bar { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.hull-squares { display: inline-flex; flex-wrap: wrap; gap: 2px; }
.hull-square { display: inline-block; width: 9px; height: 9px; border: 1px solid #6FF0D6; box-sizing: border-box; }
.hull-square.full { background: #6FF0D6; }
.hull-bar.low .hull-square { border-color: #FFC90E; }
.hull-bar.low .hull-square.full { background: #FFC90E; }
.hull-bar.broken .hull-square { border-color: #FF5A5F; }
.hull-label { color: var(--text-dim, #9a9a9a); }
.hull-row { margin-top: 4px; font-size: 0.85em; }
.damage-ship .hull-bar { margin-top: 2px; }
.hull-bar .hull-label { margin-right: 4px; }
.hull-bar .hull-count { margin-left: 4px; }
/* A picked move's or hop's path (common.js flightPath): in the flyer's colour, red and dashed when it has
   to pass enemy charges. Above the tiles and dropped modules, under the ships. */
.flight-path { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: visible; --flyer: #FFFFFF; }
.flight-path .flight-line { fill: none; stroke: var(--flyer); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
                            filter: drop-shadow(0 0 2px #000); }
.flight-path .flight-step { fill: var(--flyer); stroke: #000; stroke-width: 1; }
.flight-path .flight-end { fill: none; stroke: var(--flyer); stroke-width: 3; }
.flight-path.through-charges .flight-line { stroke: #FF5A5F; stroke-dasharray: 6 4; }
.flight-path.through-charges .flight-step { fill: #FF5A5F; }
.flight-path.through-charges .flight-end { stroke: #FF5A5F; }

/* ---------------------------------------------------------------- solo games (solo.js): the phone is the only screen */
/* The whole map in a square box at the phone's close-up, panned and zoomed by hand or by the camera. */
.cam-box { margin: 0 auto; background: #000; overflow: clip; }  /* (clip: scrollIntoView can't scroll it) */
.cam-controls { margin-top: 6px; justify-content: center; }
.cam-controls .px-btn { margin: 0; min-width: 2.6em; padding: 2px 10px; }
.cam-note { text-align: center; margin-top: 2px; min-height: 1.2em; }
.solo-recent { margin-top: 4px; }
.solo-pause { margin-top: 6px; }
.solo-pause .px-btn { margin: 0; }
.solo-log .log { max-height: 40vh; }
