space-alert/preview/style.css

2718 lines
62 KiB
CSS

:root {
font-family: Inter, ui-sans-serif, system-ui, sans-serif;
color: #eaf3f7;
background: #0b141c;
font-synthesis: none;
--muted: #bfd0dc;
--line: #2b3c48;
--gold: #e8c984;
--panel: #12232f;
--cyan: #78cecf;
--red: #e2968d;
--blue: #8ab4ec;
--white: #d6d4b9;
color-scheme: dark;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
background: radial-gradient(ellipse at 10% 0, #20344450, transparent 60%);
min-height: 100vh;
}
body:has(.console-dialog[open]) {
overflow: hidden;
}
button,
select,
input {
font: inherit;
}
button,
select {
color: inherit;
background: #1a303e;
border: 1px solid #415864;
border-radius: 7px;
min-height: 40px;
padding: 8px 12px;
touch-action: manipulation;
}
button {
cursor: pointer;
}
.pictogram {
display: inline-block;
width: 24px;
height: 24px;
flex-shrink: 0;
fill: none;
stroke: currentColor;
stroke-width: 2.1;
stroke-linecap: round;
stroke-linejoin: round;
vertical-align: middle;
}
.icon-button,
.icon-label,
.controls button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
vertical-align: middle;
}
.icon-button,
#sound {
min-width: 44px;
min-height: 44px;
padding: 8px;
}
.symbol-stat {
display: inline-flex;
align-items: center;
gap: 5px;
white-space: nowrap;
}
button:hover {
border-color: var(--gold);
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
outline: 2px solid var(--gold);
outline-offset: 3px;
}
button:disabled {
opacity: 0.6;
cursor: default;
}
button.quiet {
background: transparent;
border-color: var(--line);
font-size: 12px;
}
a {
color: inherit;
}
header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
max-width: none;
margin: auto;
padding: 22px 28px;
border-bottom: 1px solid var(--line);
}
.brand {
display: flex;
gap: 12px;
text-decoration: none;
color: var(--gold);
font-size: 22px;
letter-spacing: 3px;
font-weight: 800;
}
.brand small {
display: block;
font-size: 8px;
letter-spacing: 2px;
color: var(--muted);
margin-top: 4px;
}
.header-tools {
display: flex;
gap: 7px;
}
main {
max-width: none;
margin: auto;
padding: 22px 28px;
}
.mission-line {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
}
h1 {
font-size: 22px;
font-weight: 600;
margin: 4px 0 12px;
}
#connection {
font-size: 9px;
letter-spacing: 2px;
color: var(--cyan);
}
.timer {
text-align: right;
}
.timer strong {
font-size: 32px;
letter-spacing: 2px;
font-variant-numeric: tabular-nums;
color: var(--gold);
}
.timer small {
display: block;
color: var(--muted);
font-size: 11px;
}
.crew {
display: flex;
flex-wrap: wrap;
gap: 5px;
margin: 8px 0 16px;
}
.crew-member {
box-shadow: inset 3px 0 var(--player-color, transparent);
font-size: 12px;
border: 1px solid var(--line);
padding: 5px 9px;
border-radius: 30px;
}
.crew-member.own {
border-color: var(--gold);
}
.crew-member.ready::before {
content: "● ";
color: var(--cyan);
}
.flight-layout {
display: grid;
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
gap: 30px;
}
.tactical {
width: 100%;
max-width: 760px;
min-width: 0;
}
.section-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin: 0 0 10px;
}
h2 {
font-size: 11px;
letter-spacing: 1.5px;
text-transform: uppercase;
margin: 0;
color: var(--muted);
}
#comms,
#phase {
font-size: 10px;
letter-spacing: 1px;
color: var(--cyan);
}
#comms.offline {
color: var(--red);
}
.resources {
display: flex;
justify-content: space-between;
gap: 4px;
flex-wrap: wrap;
font-size: 11px;
padding: 10px 0 18px;
color: var(--muted);
}
.resources b {
color: var(--gold);
font-size: 14px;
}
.resources .pictogram {
width: 21px;
height: 21px;
}
.computer-phase {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 18px;
border: 1px solid var(--line);
border-radius: 3px;
color: var(--muted);
font-size: 10px;
}
.computer-phase.maintained {
background: #24494b;
border-color: var(--cyan);
color: #d5ffff;
}
.threat {
border: 1px solid var(--line);
border-left: 3px solid var(--zone);
border-radius: 5px;
margin: 7px 0;
padding: 9px 11px;
background: #101f2b;
}
.threat-card {
display: flex;
gap: 7px;
align-items: center;
cursor: pointer;
font-size: 12px;
}
.threat-card strong {
flex: 1;
}
.threat .stats {
color: var(--muted);
font-size: 11px;
display: inline-flex;
gap: 10px;
}
.threat .stats .pictogram {
width: 17px;
height: 17px;
}
.threat-facts {
display: flex;
gap: 20px;
color: var(--gold);
}
.threat p {
font-size: 12px;
line-height: 1.6;
}
.track {
display: flex;
gap: 2px;
align-items: center;
margin: 8px 0;
}
.track span {
height: 12px;
flex: 1;
background: #344453;
font-size: 8px;
text-align: center;
}
.track .current {
background: var(--gold);
color: #0d1c28;
}
.track .mark {
border-bottom: 2px solid var(--red);
}
.latest {
font-size: 12px;
color: var(--gold);
border-top: 1px solid var(--line);
padding: 12px 0;
line-height: 1.5;
}
.program {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 5px;
}
.slot {
position: relative;
display: flex;
align-items: center;
justify-content: center;
min-width: 0;
min-height: 64px;
padding: 20px 3px;
background: #101f2b;
border-color: #344553;
}
.slot .turn {
position: absolute;
top: 7px;
left: 3px;
right: 3px;
font-size: 9px;
color: var(--muted);
display: block;
}
.slot .turn .pictogram {
width: 10px;
height: 10px;
}
.slot .action {
font-size: 18px;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 2px;
min-height: 22px;
}
.slot .action .pictogram {
width: 22px;
height: 22px;
}
.slot.future {
opacity: 0.4;
}
.slot.locked {
background: #25323a;
opacity: 0.75;
}
.slot.selected {
outline: 2px solid var(--gold);
}
#program .slot.insertion {
outline: 2px solid var(--gold);
outline-offset: 3px;
}
#program .slot.insertion .turn { color: var(--gold); font-weight: 700; }
.program-edit-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.program-edit-tools button { padding: 7px 10px; min-height: 38px; }
.program-edit-tools kbd { color: var(--muted); font: inherit; font-size: 11px; }
.program-edit-tools small { color: var(--gold); }
/* Reveal equipment in the lesson that first uses it. The room layout stays familiar. */
.native-tutorial:is([data-chapter="first-shot"], [data-chapter="energy"]) .system-card,
.native-tutorial:is([data-chapter="first-shot"], [data-chapter="energy"]) .ship-passage,
.native-tutorial:is([data-chapter="first-shot"], [data-chapter="energy"]) .energy-conduits,
.native-tutorial:is([data-chapter="first-shot"], [data-chapter="energy"]) .lift-bay { visibility: hidden; }
.native-tutorial:is([data-chapter="first-shot"], [data-chapter="energy"]) [data-station="white-upper"] :is(.weapon-system, .energy-system),
.native-tutorial[data-chapter="energy"] [data-station="white-lower"] .energy-system,
.native-tutorial[data-chapter="energy"] .lift-bay:has([data-inspect="lift-white"]) { visibility: visible; }
.native-tutorial:is([data-chapter="first-shot"], [data-chapter="energy"]) .crew-pawn:not([data-crew="0"]):not([data-crew="2"]),
.native-tutorial[data-chapter="first-shot"] .crew-pawn[data-crew="2"],
.native-tutorial:is([data-chapter="first-shot"], [data-chapter="energy"]) .ship-key > span:last-child { display: none; }
.native-tutorial[data-chapter="energy"] :is(#controls, #resources, #threats, #latest, #comms),
.native-tutorial[data-chapter="energy"] .section-heading:has(#threat-title) { display: none; }
.native-tutorial[data-chapter="energy"] #hand { grid-template-columns: repeat(2, 88px); }
.controls {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin: 10px 0;
}
.controls button {
font-size: 12px;
}
.controls .primary {
background: var(--gold);
border-color: var(--gold);
color: #15242c;
font-weight: 700;
}
#player-help {
font-size: 12px;
color: var(--muted);
min-height: 18px;
line-height: 1.5;
}
.hand {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 6px;
}
.card {
border: 1px solid #62787d;
background: #192d36;
border-radius: 8px;
overflow: clip;
position: relative;
}
.card.special,
.card.heroic {
border-color: var(--gold);
}
.card button {
border: 0;
border-radius: 0;
width: 100%;
min-height: 42px;
padding: 4px;
font-size: 20px;
background: transparent;
display: flex;
align-items: center;
justify-content: center;
gap: 3px;
}
.card button > .pictogram {
min-width: 0;
flex-shrink: 1;
}
.card button + button {
border-top: 1px solid var(--line);
}
.card button.selected {
background: var(--gold);
color: #132430;
}
@media (hover: hover) {
.card button:not(:disabled):not(.selected):hover {
background: #34535f;
box-shadow: inset 0 0 0 2px #a2e3ef;
}
}
.card button:not(:disabled):focus-visible {
outline: 0;
box-shadow: inset 0 0 0 2px #a2e3ef;
}
.card button.selected:focus-visible { box-shadow: inset 0 0 0 2px #132430; }
.card button:not(:disabled):active { filter: brightness(1.2); }
.card .tiny {
font-size: 10px;
line-height: 1.2;
display: block;
}
.card .copies {
position: absolute;
top: 3px;
right: 3px;
font-size: 8px;
color: var(--muted);
pointer-events: none;
}
.special-action,
.hero-action,
.teleport-action {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 3px;
min-width: 0;
}
.special-action small {
color: var(--gold);
font-size: 10px;
}
.hero-action > .pictogram:first-child {
width: 12px;
height: 12px;
color: var(--gold);
}
.teleport-action > .pictogram {
position: absolute;
top: 0;
left: 0;
width: 13px;
height: 13px;
}
.teleport-action {
position: relative;
display: block;
width: 39px;
height: 29px;
}
.teleport-action .ship-locator {
width: 34px;
height: 24px;
margin: 5px 0 0 5px;
}
.ship-locator {
display: block;
width: 60px;
height: auto;
flex-shrink: 0;
}
.ship-locator .locator-hull {
fill: #10232f;
stroke: #8ea5b3;
stroke-width: 1.2;
}
.ship-locator rect {
fill: #142e3d;
stroke: #728e9d;
stroke-width: 1;
}
.ship-locator rect.located {
fill: var(--zone, #eaf3f7);
stroke: #f5fbff;
stroke-width: 1.5;
}
.ship-locator .incoming-arrow {
fill: none;
stroke: var(--zone, #eaf3f7);
stroke-width: 2.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.card button.selected .special-action small,
.card button.selected .hero-action > .pictogram,
.card button.selected .teleport-action {
color: inherit;
}
.empty {
font-size: 13px;
color: var(--muted);
padding: 16px 0;
line-height: 1.5;
}
#transfer {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin: 12px 0;
}
#transfer button {
font-size: 11px;
}
#replay input {
width: 100%;
}
#replay p {
font-size: 12px;
line-height: 1.6;
}
ol {
padding-left: 24px;
}
li {
font-size: 12px;
line-height: 1.6;
padding: 4px 0;
color: var(--muted);
}
#announcements {
margin: 0;
padding-left: 24px;
}
form {
display: flex;
gap: 12px;
align-items: end;
flex-wrap: wrap;
}
label,
.field {
font-size: 12px;
color: var(--muted);
display: flex;
flex-direction: column;
gap: 6px;
}
form button[type="submit"],
#create-explorer-button {
background: var(--gold);
color: #10202a;
}
#help {
font-size: 13px;
line-height: 1.7;
color: var(--muted);
}
#error {
color: #ffc6b7;
font-size: 13px;
padding: 8px 0;
}
#error:empty {
padding: 0;
}
[hidden] {
display: none !important;
}
@media (max-width: 760px) {
header {
padding: 12px;
}
.brand {
font-size: 15px;
letter-spacing: 1px;
gap: 6px;
}
.brand small {
font-size: 6px;
letter-spacing: 1px;
}
.header-tools select {
padding: 5px;
font-size: 11px;
}
main {
padding: 12px;
}
.flight-layout {
grid-template-columns: minmax(0, 1fr);
gap: 20px;
}
h1 {
font-size: 18px;
}
.timer strong {
font-size: 26px;
}
.program {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
.slot {
min-height: 58px;
}
.slot .action {
font-size: 16px;
}
.hand {
grid-template-columns: repeat(6, minmax(0, 1fr));
}
.card button {
min-height: 44px;
}
.crew-member {
font-size: 10px;
}
.crew {
gap: 4px;
margin-bottom: 10px;
}
.resources {
font-size: 10px;
}
.header-tools {
gap: 4px;
}
#sound {
padding: 5px 9px;
}
.section-heading select {
max-width: 180px;
font-size: 12px;
}
}
@media (prefers-reduced-motion: reduce) {
* {
scroll-behavior: auto !important;
}
}
.token-controls {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: end;
margin: 10px 0;
}
#teleport small,
#card-help {
font-size: 12px;
color: var(--muted);
line-height: 1.5;
}
#card-help:empty {
display: none;
}
.trait {
color: var(--gold);
}
#combine[aria-pressed="true"] {
border-color: var(--gold);
color: var(--gold);
}
@media (max-width: 380px) {
.hand {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
.header-tools {
gap: 2px;
}
header {
gap: 4px;
}
.brand small {
display: none;
}
}
#hand-filter {
display: flex;
flex-wrap: wrap;
gap: 3px;
margin: 0.4rem 0;
}
#hand-filter [aria-pressed="true"] {
border-color: var(--gold);
}
#campaign button,
#explorers button {
margin: 0.2rem 0.1rem;
}
#explorers select {
max-width: 100%;
}
#explorers label {
display: flex;
align-items: center;
gap: 0.5rem;
margin: 0.6rem 0;
}
#create-explorer {
display: flex;
flex-wrap: wrap;
gap: 0.7rem;
align-items: end;
margin: 0.8rem 0;
}
#create-explorer label {
display: flex;
flex-direction: column;
gap: 0.4rem;
}
input:not([type="checkbox"]):not([type="range"]) {
padding: 0.6rem;
background: #13212b;
color: inherit;
border: 1px solid #43525c;
border-radius: 0.4rem;
max-width: 100%;
}
.called-threat {
border-left: 2px solid var(--gold);
margin: 0.7rem 0;
padding-left: 0.7rem;
}
.called-threat h4 {
margin: 0.5rem 0;
}
#lesson-guide {
border: 1px solid #465c65;
border-radius: 0.7rem;
padding: 1rem;
margin-bottom: 1rem;
background: #102530;
}
#lesson-guide li {
margin: 0.15rem 0;
line-height: 1.5;
}
#lesson-list button {
margin: 0.3rem 0.1rem;
}
.preparing .flight-layout {
display: none;
}
#preparation {
margin: 24px 0;
}
#ready-help {
margin-bottom: 12px;
color: var(--muted);
}
/* The console remains the play surface; secondary screens live in a game menu. */
#connection:empty {
display: none;
}
.console-nav {
display: flex;
flex-wrap: wrap;
gap: 4px;
max-width: none;
margin: auto;
padding: 8px 28px;
border-bottom: 1px solid var(--line);
}
.console-nav button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
background: transparent;
border-color: transparent;
font-size: 12px;
color: var(--muted);
}
.console-nav button:hover,
.console-nav button[aria-expanded="true"] {
background: var(--panel);
border-color: var(--line);
color: var(--gold);
}
.console-nav svg {
width: 19px;
height: 19px;
fill: none;
stroke: currentColor;
stroke-width: 1.6;
stroke-linecap: round;
stroke-linejoin: round;
}
.console-dialog {
color: #d4e1e6;
background: linear-gradient(135deg, #172b39, #0d1b26 65%);
border: 1px solid #536977;
border-radius: 12px;
padding: 0;
width: 880px;
max-width: calc(100% - 32px);
max-height: calc(100% - 48px);
max-height: calc(100dvh - 48px);
box-shadow: 0 20px 90px #0009;
}
.console-dialog[open] {
display: flex;
flex-direction: column;
}
.console-dialog::backdrop {
background: #03090edd;
}
.dialog-header {
display: flex;
flex-shrink: 0;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 14px 20px;
border-bottom: 1px solid var(--line);
}
.dialog-header h2 {
color: var(--gold);
font-size: 16px;
letter-spacing: 1px;
}
.dialog-header button {
min-width: 44px;
height: 44px;
background: transparent;
font-size: 24px;
border-color: var(--line);
}
.dialog-body {
min-height: 0;
overflow: auto;
padding: 22px;
touch-action: auto;
}
.dialog-body p,
.dialog-body li {
font-size: 13px;
line-height: 1.6;
}
.choice-dialog {
width: 640px;
}
.choice-list {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 8px;
}
.choice-list button {
text-align: left;
min-height: 52px;
}
.choice-control {
display: flex;
gap: 4px;
min-width: 0;
}
.choice-control.segmented {
flex-wrap: wrap;
}
.choice-control button {
font-size: 12px;
min-height: 44px;
background: #0c1b26;
color: #b7cbd7;
border-color: #344c5d;
}
.choice-control button[aria-pressed="true"],
.choice-list button[aria-pressed="true"] {
background: #293b3d;
border-color: var(--gold);
color: #ffe4a7;
}
.choice-trigger {
display: flex;
justify-content: space-between;
align-items: center;
gap: 14px;
width: 100%;
text-align: left;
}
.choice-trigger > span:first-child {
min-width: 0;
overflow-wrap: anywhere;
}
.choice-symbol {
color: var(--gold);
}
.crew-tabs {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
gap: 5px;
margin-bottom: 12px;
}
.crew-tabs button {
min-width: 0;
padding: 8px 6px;
border-radius: 6px 6px 2px 2px;
border-bottom-width: 3px;
overflow-wrap: anywhere;
display: flex;
justify-content: center;
align-items: center;
gap: 6px;
}
.crew-tabs button > span:not(.crew-specialization) {
min-width: 0;
}
.crew-specialization .pictogram {
width: 14px;
height: 14px;
color: var(--gold);
}
.pictogram-legend {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
gap: 12px;
margin-bottom: 22px;
}
.pictogram-legend > span {
display: flex;
align-items: center;
gap: 8px;
}
#new-session {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
align-items: start;
gap: 20px;
}
#new-session .token-controls,
#new-button {
grid-column: 1 / -1;
}
#new-session .token-controls:empty {
display: none;
}
#new-session .field {
min-width: 0;
}
#new-session .choice-control button {
flex: 1;
}
#new-button {
justify-self: end;
min-width: 180px;
}
#ready-all,
#next-event {
margin-top: 20px;
}
#lesson-list {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
counter-reset: lessons;
}
#lesson-list button {
counter-increment: lessons;
display: flex;
align-items: center;
gap: 14px;
min-height: 82px;
margin: 0;
text-align: left;
background: #142a38;
}
#lesson-list button::before {
content: counter(lessons, decimal-leading-zero);
color: var(--gold);
font-size: 22px;
font-variant-numeric: tabular-nums;
}
.explorer-card {
padding: 18px;
background: #122633;
border: 1px solid var(--line);
border-radius: 8px;
margin: 16px 0;
}
.explorer-card h3 {
color: var(--gold);
margin: 0 0 12px;
font-size: 16px;
}
#lesson-guide {
padding: 10px 14px;
}
#lesson-guide ol {
margin: 0 0 10px;
}
.threat {
padding: 0;
}
.threat-card {
width: 100%;
min-height: 48px;
background: transparent;
border: 0;
padding: 10px;
text-align: left;
}
.inspect-symbol {
color: var(--gold);
}
#inspection .track {
margin-top: 24px;
}
#inspection p {
margin: 14px 0;
}
@media (max-width: 760px) {
.threat-portrait {
height: 180px;
}
#threats {
grid-template-columns: minmax(0, 1fr);
}
.system-detail-art {
width: 140px;
height: 115px;
}
}
@media (max-width: 760px) {
header {
padding: 10px 12px;
}
.console-nav {
padding: 4px 8px;
gap: 0;
flex-wrap: nowrap;
}
.console-nav button {
flex: 1;
min-width: 0;
flex-direction: column;
gap: 3px;
padding: 6px 3px;
font-size: 10px;
}
.console-dialog {
max-width: calc(100% - 16px);
max-height: calc(100% - 16px);
max-height: calc(100dvh - 16px);
border-radius: 10px;
}
.dialog-header {
padding: 8px 12px;
}
.dialog-body {
padding: 14px;
}
#new-session {
grid-template-columns: minmax(0, 1fr);
gap: 18px;
}
#lesson-list {
grid-template-columns: minmax(0, 1fr);
gap: 8px;
}
#lesson-list button {
min-height: 64px;
}
.choice-list {
grid-template-columns: minmax(0, 1fr);
}
.crew-tabs {
grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
}
.crew-tabs button {
font-size: 11px;
}
.header-tools .choice-trigger {
max-width: 110px;
font-size: 10px;
padding: 5px 7px;
}
.brand small {
display: none;
}
}
/* Equipment drawings use broad silhouettes and a shared, high-contrast palette. */
.equipment-art {
display: block;
width: 100%;
height: 100%;
object-fit: contain;
border-radius: 6px;
pointer-events: none;
}
.card-art {
display: inline-block;
width: 30px;
height: 30px;
flex-shrink: 0;
}
.slot .card-art {
width: 27px;
height: 27px;
}
.equipment-symbol {
display: flex;
align-items: center;
justify-content: center;
color: #b8f4ff;
background: radial-gradient(ellipse, #21536b, #0b1722 70%);
}
.equipment-symbol .pictogram {
width: 42px;
height: 42px;
}
.action-key {
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 23px;
height: 23px;
border-radius: 5px;
background: #ffda83;
border: 1px solid #ffeba5;
color: #172332;
font-size: 14px;
font-weight: 800;
}
/* Fixed six-room cutaway. Only the document scrolls, including over controls. */
.cutaway {
position: relative;
container-type: inline-size;
}
.ship-hull {
position: relative;
padding: 0 14px 12px;
}
.ship-vessel { position: relative; transform-origin: 50% 30%; }
.ship-hull::before {
content: "";
position: absolute;
inset: 39px 0 0;
border: 2px solid #8296a0;
border-top: 0;
border-radius: 0 0 18px 18px;
background: #172c39;
}
.ship-bow {
position: relative;
margin: 0 -14px;
height: 40px;
}
.ship-bow svg {
width: 100%;
height: 100%;
stroke: #8296a0;
stroke-width: 2;
fill: none;
}
.ship-bow .hull-shell {
fill: #172c39;
}
.ship-bow .bridge-window {
fill: #79ccd4;
stroke: #122b3b;
}
.ship-deck {
position: relative;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
}
.station {
position: relative;
min-width: 0;
display: flex;
flex-direction: column;
padding: 7px 5px 5px;
border: 2px solid #5b7581;
border-top: 3px solid var(--zone);
border-radius: 9px 9px 5px 5px;
background:
linear-gradient(
90deg,
transparent 49%,
#2c465240 49%,
#2c465240 51%,
transparent 51%
),
#112330;
}
.station.selected-station {
background-color: #203744;
}
.station-title {
display: flex;
flex-wrap: wrap;
gap: 3px;
align-items: center;
min-height: 19px;
color: #eaf3f7;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
}
.station-title .pictogram {
width: 13px;
height: 13px;
}
.station-title .damage {
margin-left: auto;
color: #ffab8d;
font-size: 9px;
}
.station-title .damage .symbol-stat {
gap: 2px;
}
.illustrated-systems {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px 2px;
margin: 4px 0;
}
.system-card {
min-width: 0;
}
.weapon-system {
grid-column: 1;
grid-row: 1;
}
.special-system {
grid-column: 2;
grid-row: 1;
}
.energy-system {
grid-column: 1 / -1;
grid-row: 2;
}
.deck-lower .weapon-system,
.deck-lower .special-system {
grid-row: 2;
}
.deck-lower .energy-system {
grid-row: 1;
}
.system-card button {
position: relative;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
width: 100%;
min-height: 78px;
gap: 0;
padding: 4px 0 2px;
color: #f1f8fc;
border: 1px solid transparent;
background: transparent;
border-radius: 8px;
}
.system-card button:hover,
.system-card button:focus-visible {
background: #355361;
border-color: #bfdee2;
}
.system-card .action-key {
position: absolute;
top: 1px;
left: 0;
width: 18px;
height: 18px;
font-size: 11px;
z-index: 1;
}
.system-card .equipment-art {
width: 56px;
height: 56px;
max-width: 100%;
}
.system-caption {
display: flex;
justify-content: center;
align-items: center;
gap: 3px;
font-size: 10px;
}
.system-caption strong {
font-size: 10px;
font-weight: 500;
}
.weapon-system .system-caption strong,
.special-system .system-caption {
display: none;
}
.power-value {
color: #ffe0a3;
font-size: 15px;
font-weight: 700;
}
.power-value .symbol-stat {
gap: 3px;
}
.power-value .pictogram {
width: 14px;
height: 14px;
}
.energy-system button {
min-height: 55px;
display: grid;
grid-template-columns: 48px minmax(0, 1fr);
gap: 3px;
padding: 2px 5px;
border-block: 1px solid #466979;
background: #1a3645;
}
.energy-system .equipment-art {
width: 44px;
height: 44px;
}
.energy-system .system-caption {
display: flex;
flex-direction: column;
gap: 3px;
}
.energy-system .system-caption strong {
display: none;
}
.energy-system .action-key {
top: 2px;
left: 1px;
}
.energy-value {
color: #b8f6f6;
font-size: 18px;
font-weight: 750;
font-variant-numeric: tabular-nums;
}
.charge-pips {
display: flex;
width: 100%;
max-width: 90px;
gap: 3px;
}
.charge-pips i {
height: 5px;
flex: 1;
min-width: 0;
background: #112330;
border: 1px solid #7696a4;
border-radius: 2px;
}
.charge-pips i.filled {
background: #96ebed;
border-color: #d6ffff;
}
.energy-system.depleted button {
border-color: #c99871;
}
.energy-system.depleted .energy-value {
color: #ffc39c;
}
.occupants {
display: flex;
flex-wrap: wrap;
gap: 4px;
align-items: end;
justify-content: center;
min-height: 30px;
margin-top: auto;
padding-top: 2px;
}
.crew-pawn {
position: relative;
display: inline-flex;
width: 23px;
height: 29px;
color: var(--player-color, #bfd0db);
}
.crew-pawn > svg {
width: 100%;
height: 100%;
fill: currentColor;
stroke: var(--player-stroke, #0a2231);
stroke-width: 1.5;
}
.crew-pawn .visor {
fill: #2a5969;
}
.crew-pawn b {
text-shadow:
0 0 2px #fff,
0 0 2px #fff;
position: absolute;
bottom: 3px;
width: 100%;
color: #0d2330;
text-align: center;
font-size: 11px;
}
.crew-pawn.selected {
color: var(--player-color, #ffe0a0);
filter: drop-shadow(0 0 2px #e8c98460);
}
.crew-pawn.out {
opacity: 0.55;
}
.crew-pawn.out b {
text-decoration: line-through;
}
.crew-pawn i {
position: absolute;
right: -5px;
top: 0;
color: #98eef1;
background: #112330;
border-radius: 3px;
}
.crew-pawn i .pictogram {
width: 12px;
height: 12px;
}
.ship-passage {
position: absolute;
top: 48%;
z-index: 2;
transform: translate(-50%, -50%);
}
.passage-1 {
left: calc(33.333% - 2px);
}
.passage-2 {
left: calc(66.667% + 2px);
}
.ship-passage button {
display: flex;
align-items: center;
justify-content: center;
width: 26px;
min-height: 44px;
padding: 0;
border: 2px solid #8499a3;
border-block-color: #203947;
background: #294652;
border-radius: 3px;
}
.ship-passage .pictogram {
width: 20px;
height: 20px;
}
.between-decks {
position: relative;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
height: 44px;
}
.energy-conduits {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
fill: none;
stroke: #e7bf75;
stroke-width: 2;
pointer-events: none;
}
.energy-conduits .conduit-back {
stroke: #071927;
stroke-width: 8;
}
.lift-bay {
display: flex;
align-items: center;
justify-content: end;
padding-right: 10%;
}
.lift-control {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
min-height: 40px;
padding: 0;
background: #213e4e;
border: 2px solid #8499a3;
border-radius: 5px;
z-index: 1;
}
.lift-control .pictogram {
width: 22px;
height: 22px;
}
.lift-control.damaged-lift {
color: #ffb895;
border-color: #e5a984;
}
.passage-explanation {
display: flex;
justify-content: center;
margin: 16px;
color: #9ce7ec;
}
.passage-explanation .pictogram {
width: 65px;
height: 65px;
}
.ship-stern {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
padding: 0 14px 18px;
}
.ship-stern > span {
display: flex;
gap: 5px;
justify-content: center;
width: min(55%, 100px);
margin: auto;
padding: 0 8px;
height: 20px;
border: 2px solid #81939a;
border-top: 0;
border-radius: 0 0 12px 12px;
background: #29424e;
}
.ship-stern i {
width: 12px;
height: 14px;
transform: translateY(12px);
transform-origin: 50% 0;
background: #95dfe7;
border-radius: 0 0 6px 6px;
box-shadow: 0 3px 7px #82eff04a;
}
.ship-key {
display: flex;
gap: 12px;
justify-content: center;
flex-wrap: wrap;
font-size: 10px;
color: #c9dbe5;
padding: 10px 0;
}
.ship-key > span {
display: inline-flex;
gap: 4px;
align-items: center;
}
.ship-key b {
color: #ffdfa1;
font-size: 12px;
}
@container (max-width: 400px) {
.station {
padding: 5px 2px 3px;
}
.ship-deck {
gap: 10px;
}
.system-card button {
min-height: 67px;
}
.system-card .equipment-art {
width: 44px;
height: 44px;
}
.energy-system button {
grid-template-columns: 36px minmax(0, 1fr);
gap: 1px;
min-height: 47px;
padding: 2px 3px;
}
.energy-system .equipment-art {
width: 35px;
height: 40px;
}
.energy-value {
font-size: 15px;
}
.system-card .action-key {
width: 15px;
height: 15px;
font-size: 10px;
}
.station-title {
font-size: 9px;
gap: 1px;
}
.station-title .damage .pictogram {
display: none;
}
.crew-pawn {
width: 19px;
height: 25px;
}
.crew-pawn b {
font-size: 10px;
}
.occupants {
gap: 1px;
min-height: 27px;
}
.ship-passage button {
width: 22px;
}
.ship-passage .pictogram {
width: 16px;
}
.lift-bay {
padding-right: 4%;
}
.lift-control {
width: 31px;
}
.ship-stern > span {
width: 75%;
padding: 5px 5px 6px;
}
.ship-stern i {
height: 10px;
}
}
/* Compact fallback for browsers without container queries. */
@supports not (container-type: inline-size) {
@media (max-width: 760px) {
.station {
padding: 5px 2px 3px;
}
.ship-deck {
gap: 10px;
}
.system-card button {
min-height: 67px;
}
.system-card .equipment-art {
width: 44px;
height: 44px;
}
.energy-system button {
grid-template-columns: 36px minmax(0, 1fr);
gap: 1px;
min-height: 47px;
padding: 2px 3px;
}
.energy-system .equipment-art {
width: 35px;
height: 40px;
}
.energy-value {
font-size: 15px;
}
.system-card .action-key {
width: 15px;
height: 15px;
font-size: 10px;
}
.station-title {
font-size: 9px;
gap: 1px;
}
.station-title .damage .pictogram {
display: none;
}
.crew-pawn {
width: 19px;
height: 25px;
}
.crew-pawn b {
font-size: 10px;
}
.occupants {
gap: 1px;
min-height: 27px;
}
.ship-passage button {
width: 22px;
}
.ship-passage .pictogram {
width: 16px;
}
.lift-bay {
padding-right: 4%;
}
.lift-control {
width: 31px;
}
.ship-stern > span {
width: 75%;
padding: 5px 5px 6px;
}
.ship-stern i {
height: 10px;
}
}
}
@media (max-width: 760px) {
.cutaway {
margin-inline: 0;
}
.ship-hull {
padding-inline: 9px;
}
.ship-hull::before {
top: 29px;
}
.ship-bow {
height: 30px;
margin-inline: -9px;
}
}
/* Shared equipment inspector and threat cards. */
.system-detail-art {
width: 180px;
height: 150px;
margin: 0 auto;
}
.system-detail-art .equipment-symbol {
width: 100%;
height: 100%;
}
.room-location {
text-align: center;
color: var(--gold);
}
.energy-flow {
display: grid;
grid-template-columns: 1fr 30px 1fr;
gap: 18px;
align-items: center;
margin: 8px auto 20px;
max-width: 460px;
}
.energy-flow > span {
display: grid;
justify-items: center;
gap: 5px;
text-align: center;
}
.energy-flow .equipment-art,
.energy-flow .equipment-symbol {
width: 80px;
height: 70px;
}
.energy-flow b {
font-size: 24px;
color: #e7fcff;
}
.energy-flow small {
color: var(--muted);
}
.energy-flow + p {
color: #eef6f9;
}
#inspection .planning-note {
color: var(--muted);
padding: 12px;
background: #0b1d29;
border-left: 2px solid #6794ae;
}
.weapon-facts {
display: flex;
justify-content: center;
gap: 25px;
font-size: 22px;
color: var(--gold);
}
#threats {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
gap: 12px;
}
.illustrated-threat {
min-width: 0;
margin: 0;
overflow: clip;
background: #0b1722;
border-color: #4c697c;
}
.illustrated-threat .threat-card {
display: block;
padding: 0;
color: #eff7fa;
}
.threat-heading {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
padding: 11px 12px;
font-size: 16px;
}
.threat-portrait {
display: block;
position: relative;
height: 204px;
background: #10212d;
overflow: hidden;
}
.threat-portrait > .equipment-art {
width: 128px;
height: 118px;
margin: 66px auto 0;
border-radius: 0;
}
.threat-timing {
color: #d6e5ef;
font-size: 12px;
font-weight: 600;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.threat-target {
position: absolute;
top: 8px;
left: 50%;
transform: translateX(-50%);
display: flex;
justify-content: center;
align-items: end;
width: 56px;
min-height: 48px;
flex-shrink: 0;
}
.threat-target .ship-locator {
width: 56px;
}
.threat-hud {
position: absolute;
bottom: 8px;
left: 10px;
right: 10px;
display: flex;
align-items: end;
justify-content: space-between;
gap: 8px;
}
.hull-gauge,
.shield-badge {
padding: 6px 9px;
background: #081723eb;
border: 1px solid #607580;
border-radius: 7px;
color: #f2ffd9;
}
.hull-gauge {
min-width: 84px;
}
.hull-gauge .symbol-stat,
.shield-badge .symbol-stat {
gap: 7px;
}
.hull-gauge b,
.shield-badge b {
font-size: 24px;
line-height: 1;
}
.hull-gauge small {
font-size: 13px;
color: #c4d3dd;
}
.hull-bar {
display: block;
margin-top: 5px;
height: 5px;
background: #344034;
border-radius: 4px;
overflow: hidden;
}
.hull-bar i {
display: block;
height: 100%;
background: #b4eb6d;
}
.shield-badge {
color: #9eeaff;
border-color: #4988a0;
}
.threat-hud .pictogram {
width: 25px;
height: 25px;
}
.threat-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 7px 12px;
color: var(--muted);
font-size: 12px;
}
.threat-footer .pictogram {
width: 23px;
height: 23px;
}
.threat-footer .symbol-stat {
color: #e5f2fc;
font-size: 15px;
}
.resolved-threat > .equipment-art {
filter: saturate(0.3);
opacity: 0.22;
}
.threat-outcome {
--outcome-color: #c2d2dd;
position: absolute;
top: 58%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
gap: 7px;
width: max-content;
max-width: calc(100% - 170px);
color: var(--outcome-color);
text-align: center;
font-size: 14px;
line-height: 1.2;
font-weight: 700;
text-shadow: 0 2px 5px #06111c, 0 0 12px #06111c;
}
.outcome-symbol {
display: grid;
place-items: center;
width: 48px;
height: 48px;
border: 1px solid currentColor;
border-radius: 50%;
background: #0a1b27f2;
box-shadow: 0 0 0 5px #0b1b2780;
}
.outcome-symbol .pictogram {
width: 28px;
height: 28px;
stroke-width: 2;
}
.resolved-threat[data-outcome="destroyed"] .threat-outcome { --outcome-color: #80e7bd; }
.resolved-threat[data-outcome="impact"] .threat-outcome { --outcome-color: #ffac83; }
.resolved-threat[data-outcome="escaped"] .threat-outcome { --outcome-color: #efd295; }
.approach-track {
display: flex;
gap: 7px;
align-items: center;
padding: 10px;
border-top: 1px solid #344d60;
}
.approach-track > .pictogram {
width: 22px;
height: 22px;
color: var(--gold);
}
.track-caption {
font-size: 10px;
color: var(--muted);
}
.approach-track .track {
margin: 0;
flex: 1;
min-width: 0;
gap: 2px;
}
.approach-track .track span {
height: 20px;
line-height: 19px;
font-size: 11px;
color: #d4e5f0;
border-radius: 2px;
}
.approach-track .track .mark {
border-bottom: 2px solid #ffaf83;
}
.approach-track .track .current {
background: #ffe19a;
color: #13202c;
outline: 1px solid #fff5d8;
}
.approach-track .track .entry {
outline: 1px dashed #ffe19a;
}
#inspection .threat-portrait {
height: 220px;
max-width: 440px;
margin: 0 auto;
border-radius: 9px;
}
#inspection .threat-portrait > .equipment-art {
width: 164px;
height: 150px;
margin-top: 28px;
}
#inspection .threat-facts {
margin-top: 15px;
}
.console-nav svg {
width: 23px;
height: 23px;
stroke-width: 1.9;
}
.console-nav button {
color: #dcebf4;
}
.slot.future {
opacity: 0.7;
}
@media (max-width: 760px) {
.threat-portrait {
height: 180px;
}
#threats {
grid-template-columns: minmax(0, 1fr);
}
.system-detail-art {
width: 140px;
height: 115px;
}
}
/* The first lesson reveals only the idea currently being taught. */
.learning-basics .flight-layout,
.learning-basics .mission-line,
.learning-basics #lesson-guide,
.learning-basics #crew,
.learning-basics .header-tools {
display: none !important;
}
#basics-guide {
max-width: 760px;
margin: 16px auto 60px;
}
.basics-top,
.basics-stages {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.basics-top > span {
font-size: 0.75rem;
letter-spacing: 0.12em;
color: #b4c8d9;
}
.basics-stages {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin: 24px 0;
color: #a0aabb;
}
.basics-stages button {
display: flex;
align-items: center;
justify-content: flex-start;
gap: 10px;
min-height: 52px;
margin: 0;
padding: 10px 12px;
border: 0;
border-bottom: 3px solid transparent;
border-radius: 0;
font-size: inherit;
line-height: 1.3;
text-align: left;
}
.basics-stages .step-number {
display: grid;
place-items: center;
width: 26px;
height: 26px;
flex: 0 0 26px;
border: 1px solid currentColor;
border-radius: 50%;
font-size: .8rem;
}
.basics-stages .active {
color: #b8ffe3;
border-bottom-color: #74e8bd;
background: #142b32;
}
#basics-guide h1 {
font-size: clamp(1.5rem, 4vw, 2.25rem);
line-height: 1.2;
}
.basics-explanation {
max-width: 62ch;
line-height: 1.65;
min-height: 4.5em;
}
.basics-program button {
display: flex;
flex-direction: column;
gap: 6px;
padding: 14px 8px;
}
.basics-program button:disabled {
opacity: 1;
color: #b9c9d7;
background: #17232e;
cursor: default;
}
.basics-program button:not(:disabled),
.basics-program button.current {
outline: 2px solid #74e8bd;
outline-offset: 2px;
}
.basics-program strong,
.basics-card strong {
font-size: 2.2rem;
line-height: 1;
}
.basics-card-area {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
}
.basics-card {
display: flex;
flex-direction: column;
align-items: center;
gap: 12px;
min-width: 165px;
padding: 20px;
}
.basics-card.selected {
outline: 3px solid #74e8bd;
outline-offset: 3px;
}
.practice-clock {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 16px;
padding: 18px;
margin: 20px 0;
border: 1px solid #496071;
border-radius: 12px;
}
.practice-clock strong,
.practice-clock small {
display: block;
}
.practice-clock strong {
font-size: 1.35rem;
font-variant-numeric: tabular-nums;
}
#basics-run {
width: 100%;
}
@media (max-width: 520px) {
.basics-top {
align-items: flex-start;
}
.basics-stages {
font-size: 0.85rem;
}
.basics-program {
gap: 7px;
}
}
.shared-equipment-icon {
fill: none;
stroke: #b7e3e9;
stroke-width: 1.7;
stroke-linecap: round;
stroke-linejoin: round;
}
.system-card .action-key {
width: 22px;
height: 22px;
display: grid;
place-items: center;
}
.action-key .pictogram {
width: 17px;
height: 17px;
}
.ship-key .pictogram {
width: 18px;
height: 18px;
color: var(--gold);
}
#hand-filter .pictogram {
width: 23px;
height: 23px;
}
#resources .symbol-stat small {
font-size: 0.72rem;
}
/* Crew selectors and board markers share the same drawing and number treatment. */
.crew-tabs .equipment-art {
width: 27px;
height: 27px;
flex: 0 0 27px;
color: #bfd0db;
}
.crew-tabs [aria-pressed="true"] .equipment-art {
color: #ffe0a0;
}
.crew-pawn {
width: auto;
height: 30px;
gap: 2px;
align-items: center;
}
.crew-pawn > svg.equipment-art {
width: 27px;
height: 27px;
fill: none;
stroke: #162e3d;
stroke-width: 2;
}
.crew-pawn > svg.pictogram {
width: 23px;
height: 27px;
fill: none;
stroke: currentColor;
}
.crew-pawn b {
position: static;
width: auto;
min-width: 8px;
color: currentColor;
text-shadow: none;
font-size: 11px;
}
.lesson-actions {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
padding-top: 4px;
}
.lesson-actions > button {
min-height: 44px;
margin: 0;
padding: 10px 14px;
line-height: 22px;
}
.lesson-actions > .icon-button {
width: 44px;
padding: 10px;
flex: 0 0 44px;
}
.lesson-actions .pictogram {
width: 22px;
height: 22px;
}
.basics-card-choices {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 16px;
}
.basics-card-choices .basics-card {
min-width: 135px;
}
.basics-program strong .pictogram,
.basics-card strong .pictogram {
width: 32px;
height: 32px;
}
.basics-card-choices .basics-card {
min-width: 88px;
min-height: 80px;
}
/* Teach on the real ship; reveal its systems in later lessons. */
.training-ship {
max-width: 530px;
margin: 20px auto 28px;
}
.training-ship .systems,
.training-ship .between-decks,
.training-ship .ship-passage,
.training-ship .ship-key,
.training-ship .damage {
display: none;
}
.training-ship .deck-upper .station {
min-height: 88px;
}
.training-ship .occupants {
align-items: center;
min-height: 50px;
padding: 8px 0;
}
.training-ship .deck-lower {
margin-top: 10px;
opacity: 0.25;
}
.training-ship .deck-lower .station {
min-height: 88px;
}
.training-ship .deck-lower .occupants {
display: flex;
}
.training-ship .crew-pawn > svg.equipment-art {
width: 36px;
height: 36px;
}
.training-ship .crew-pawn {
height: 38px;
}
.basics-program-heading {
display: flex;
gap: 8px;
align-items: center;
margin-bottom: 10px;
color: #b9c9d7;
font-size: 0.85rem;
}
.basics-program.program {
display: flex;
gap: 16px;
justify-content: flex-start;
margin: 0 0 20px;
padding: 14px;
border-left: 3px solid #e6b66b;
background: #101e28;
border-radius: 0 8px 8px 0;
}
.basics-program button.slot {
width: 76px;
min-height: 90px;
flex: 0 0 76px;
border-radius: 6px;
gap: 16px;
}
.basics-program .turn {
font-size: 0.72rem;
}
.basics-card-area {
align-items: flex-start;
}
/* BGS checkpoint controller, with a localized guide matching the ship console. */
.native-guide { margin: 0 0 24px; }
.native-guide-top, .native-guide-tools, .native-guide-controls {
display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.native-guide-top { justify-content: space-between; color: #b4c8d9; }
.native-guide-tools a { color: #a9d7e7; font-size: .8rem; }
.native-guide h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 20px 0 8px; }
.native-guide-text { line-height: 1.6; white-space: pre-line; max-width: 65ch; }
.tutorial-action { display: inline-block; vertical-align: -0.25em; line-height: 1; }
.tutorial-action .pictogram { width: 1.25em; height: 1.25em; }
.native-guide-controls { margin-top: 16px; }
.native-guide .basics-stages { grid-template-columns: repeat(3, 1fr); margin: 16px 0; }
.native-tutorial .basics-top,
.native-tutorial #basics-guide > .basics-stages,
.native-tutorial #basics-guide > h1,
.native-tutorial .basics-explanation,
.native-tutorial #basics-start,
.native-tutorial .basics-complete,
.native-tutorial #console-nav,
.native-tutorial .header-tools,
.native-tutorial .mission-line,
.native-tutorial #crew,
.native-tutorial #lesson-guide > ol,
.native-tutorial #lesson-guide [data-lesson] { display: none; }
.native-tutorial #basics-guide { margin-top: 0; }
.native-tutorial .training-ship { margin-top: 0; }
.practice-readiness { display: flex; align-items: center; gap: 12px; margin: 12px 0; color: #b8ffe3; }
.practice-readiness progress { width: 80px; height: 6px; accent-color: #74e8bd; }
@media (max-width: 520px) {
.native-guide .basics-stages { gap: 3px; }
.native-guide .basics-stages button { flex-direction: column; gap: 6px; padding: 10px 4px; text-align: center; }
}
.native-tutorial #basics-run { width: 64px; height: 48px; }
.practice-readiness > span { display: inline-flex; align-items: center; gap: 6px; }
.native-tutorial.learning-basics .flight-layout { display: grid !important; margin: 0; align-items: start; }
.native-tutorial.learning-basics #planning { min-width: 0; }
.native-tutorial.learning-basics #program { display: flex; gap: 10px; border: 0; padding: 0; background: transparent; }
.native-tutorial.learning-basics #program .slot { flex: 0 0 88px; min-height: 104px; }
.native-tutorial.learning-basics #program .slot.current { border-color: #74e8bd; box-shadow: 0 0 0 2px #74e8bd55; }
.native-tutorial.learning-basics #hand { grid-template-columns: repeat(3, 88px); gap: 10px; margin-top: 12px; }
.native-tutorial.learning-basics #hand .card { min-height: 68px; }
.native-tutorial.learning-basics #program-crew,
.native-tutorial.learning-basics .crew-tabs,
.native-tutorial.learning-basics #player-help,
.native-tutorial.learning-basics #card-help,
.native-tutorial.learning-basics #controls,
.native-tutorial.learning-basics #hand-filter,
.native-tutorial.learning-basics #resources,
.native-tutorial.learning-basics #threats,
.native-tutorial.learning-basics #comms,
.native-tutorial.learning-basics #latest,
.native-tutorial.learning-basics #replay,
.native-tutorial.learning-basics .tactical .section-heading:has(#threat-title),
.native-tutorial[data-tutorial-step="0"] #planning { display: none !important; }
.native-tutorial.learning-basics .tactical { max-width: 600px; }
.native-tutorial.learning-basics #ship { width: 100%; max-width: 600px; margin: 0; }
.ready-dots { display: flex; gap: 6px; }
.ready-dots i { display: block; width: 14px; height: 18px; border: 1px solid #688999; border-radius: 3px; }
.ready-dots i.filled { background: #74e8bd; border-color: #74e8bd; }
.practice-readiness #basics-run { margin-left: auto; }
@media (max-width: 720px) {
.native-tutorial.learning-basics .flight-layout { grid-template-columns: 1fr; }
}
.native-tutorial.learning-basics #ship .station-title { visibility: hidden; }
.native-tutorial.learning-basics[data-tutorial-stage="resolution"] #controls { display: flex !important; gap: 10px; }
.native-tutorial.learning-basics[data-tutorial-stage="resolution"] #replay { display: block !important; }
.native-tutorial.learning-basics[data-tutorial-stage="resolution"] #replay label { display: block; }
.native-tutorial.learning-basics[data-tutorial-step="3"] #controls { display: none !important; }
.native-tutorial.learning-basics[data-tutorial-step="3"] #replay:not(:empty) { display: block !important; }
.training-ship .deck-upper .station,
.training-ship .deck-lower .station { min-height: 104px; }
.native-tutorial.learning-basics .training-ship .deck-lower { opacity: 1; }
.training-ship .station.tutorial-destination {
border: 2px dashed #e8c984;
background: #e8c98418;
}
.destination-marker { position: absolute; right: 10px; bottom: 10px; color: #e8c984; }
.training-ship .station.destination-reached { border-style: solid; border-color: #74e8bd; background: #74e8bd18; }
.destination-reached .destination-marker { color: #74e8bd; }
.native-tutorial.learning-basics #hand .card > button {
display: flex;
align-items: center;
justify-content: center;
min-height: 68px;
width: 100%;
}
.planning-shortcuts { display: flex; gap: 6px; margin-top: 12px; color: var(--muted); }
.planning-shortcuts kbd { min-width: 25px; text-align: center; padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 12px; }
.native-tutorial.learning-basics #planning > #basics-guide {
width: 100%;
max-width: 280px;
margin: 12px 0 0;
}
.native-tutorial.learning-basics #program { width: fit-content; max-width: 100%; }
.native-tutorial .practice-readiness #basics-run { margin-left: 0; }
.native-tutorial .practice-clock { margin: 12px 0; padding: 12px; gap: 12px; }
.native-tutorial .practice-clock strong { font-size: 1rem; }
/* Keep the exercise controls within reach of the ship, even on wide screens. */
.native-tutorial.learning-basics .flight-layout {
grid-template-columns: minmax(0, 600px) minmax(260px, 320px);
justify-content: start;
gap: 28px;
}
.native-guide .basics-stages { max-width: 948px; }
.native-guide-top { max-width: 948px; }
.slot.filled {
background: #23463f;
border: 2px solid #74e8bd;
color: #d8fff0;
}
.slot.filled::after {
content: "";
position: absolute;
bottom: 8px;
width: 18px;
height: 4px;
border-radius: 2px;
background: #74e8bd;
}
.slot.empty { border-style: dashed; }
.slot.empty .action { opacity: .45; }
@media (max-width: 800px) {
.native-tutorial.learning-basics .flight-layout { grid-template-columns: 1fr; gap: 20px; }
}
.native-tutorial[data-tutorial-stage="resolution"] #controls,
.native-tutorial.learning-basics[data-tutorial-stage="resolution"] #controls { display: none !important; }
.native-tutorial .native-guide-top { justify-content: flex-end; }
.native-tutorial[data-tutorial-step="0"] #lesson-guide,
.native-tutorial[data-tutorial-step="0"] #basics-guide,
.native-tutorial[data-chapter="first-shot"] #lesson-guide,
.native-tutorial[data-chapter="first-shot"] #program-crew,
.native-tutorial[data-chapter="first-shot"] .crew-tabs,
.native-tutorial[data-chapter="first-shot"] #controls,
.native-tutorial[data-chapter="first-shot"] #hand-filter,
.native-tutorial[data-chapter="first-shot"] #player-help,
.native-tutorial[data-chapter="first-shot"] #resources { display: none !important; }
.native-tutorial[data-chapter="first-shot"] .flight-layout { grid-template-columns: minmax(0, 600px) minmax(280px, 340px); gap: 28px; justify-content: start; }
.native-tutorial[data-chapter="first-shot"] [data-inspect="system-white-upper-A"],
.native-tutorial[data-chapter="first-shot"] #program .slot.empty:not(:disabled),
.native-tutorial[data-chapter="first-shot"] #threats > :first-child { outline: 2px dashed #e8c984; outline-offset: 3px; }
.native-tutorial[data-chapter="first-shot"] #program { display: flex; gap: 10px; }
.native-tutorial[data-chapter="first-shot"] #program .slot { width: 88px; min-height: 104px; }
.native-tutorial[data-chapter="first-shot"] #hand { grid-template-columns: 88px; margin-top: 16px; }
.native-tutorial[data-chapter="first-shot"] #hand .card > button { min-height: 76px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 800px) { .native-tutorial[data-chapter="first-shot"] .flight-layout { grid-template-columns: 1fr; } }
.native-tutorial #lesson-guide { display: none !important; }
.native-tutorial .lesson-focus { outline: 2px dashed #e8c984; outline-offset: 3px; }
/* Keep the repair target readable throughout; only its small outer halo breathes.
Static emphasis is the default, including when reduced motion is requested. */
.native-tutorial[data-chapter="repairs"] .lesson-focus {
box-shadow: 0 0 0 4px #e8c98420, 0 0 10px 2px #e8c98428;
}
@media (prefers-reduced-motion: no-preference) {
.native-tutorial[data-chapter="repairs"] .lesson-focus {
animation: tutorial-repair-attention 2.8s ease-in-out infinite;
}
}
@keyframes tutorial-repair-attention {
0%, 100% { box-shadow: 0 0 0 4px #e8c98420, 0 0 10px 2px #e8c98428; }
50% { box-shadow: 0 0 0 5px #e8c98438, 0 0 16px 3px #e8c98448; }
}
.native-tutorial .flight-layout { grid-template-columns: minmax(0, 600px) minmax(280px, 480px); gap: 28px; justify-content: start; }
@media (max-width: 800px) { .native-tutorial .flight-layout { grid-template-columns: 1fr; } }
/* BGS already supplies the game name and chapter header. */
.native-tutorial > header { display: none; }
/* Empty former room labels should not reserve a header row. */
.station-title:empty { display: none; }
.native-guide-row {
display: flex;
align-items: center;
gap: 12px;
max-width: 948px;
}
.native-guide .native-guide-row .basics-stages {
flex: 1;
min-width: 0;
margin: 0;
}
.native-guide-row .native-guide-tools { flex: 0 0 auto; }
@media (max-width: 520px) {
.native-guide-row { gap: 6px; }
.native-guide-row .native-guide-tools a { display: none; }
}
.native-tutorial[data-chapter="first-shot"] #program { margin-top: 32px; }
.slot-arrival { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 3px; white-space: nowrap; color: #e8c984; font-size: 12px; }
.slot-arrival .pictogram { width: 16px; height: 16px; }
.lesson-target { margin-top: 24px; max-width: 340px; }
.lesson-target .section-heading { margin-bottom: 10px; }
.pending-threat > .equipment-art { opacity: .35; }
.lesson-target .hull-gauge { border-color: #74e8bd; }
.lesson-shield-note { display: flex; align-items: center; gap: 8px; color: #a2e3ef; font-size: 13px; max-width: 65ch; }
.lesson-shield-note .pictogram { flex: 0 0 22px; width: 22px; height: 22px; }
.native-tutorial .lesson-shield-focus { outline: 1px solid #8eeaff; outline-offset: 2px; }
.native-tutorial .lesson-lane { border-left-color: #e8c984; border-right-color: #e8c984; }
.lesson-lane-label { position: absolute; left: calc(100% + 8px); top: 4px; width: 80px; color: #e8c984; font-size: 12px; text-align: left; line-height: 1.3; }
/* Discovery introduces the target before exposing editable program controls. */
.native-tutorial[data-chapter="first-shot"][data-tutorial-step="0"] #planning {
display: block !important;
}
.native-tutorial[data-chapter="first-shot"][data-tutorial-step="0"] #planning > :not(.lesson-target) {
display: none !important;
}
.native-tutorial[data-chapter="first-shot"][data-tutorial-step="0"] .lesson-target {
margin-top: 0;
}
.native-tutorial[data-chapter="first-shot"] #latest { display: none; }
.lesson-program-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0; }
.lesson-program-controls .lesson-phase-lock { min-height: 48px; font-weight: 700; }
.lesson-program-controls .lesson-phase-lock.ready {
background: var(--gold);
border-color: var(--gold);
color: #15242c;
box-shadow: 0 0 0 2px #e8c98433;
}
.lesson-phase-ready { color: var(--gold); font-size: 13px; }
.lesson-phase-lock, .lesson-run { max-width: 100%; min-width: 0; white-space: normal; }
.lesson-phase-lock span, .lesson-run span { min-width: 0; overflow-wrap: anywhere; }
.lesson-run kbd { flex-shrink: 0; }
.native-tutorial .practice-readiness, .phase-lesson-controls { flex-wrap: wrap; }
.lesson-program-controls:empty { display: none; }
.lesson-program-controls [data-guide="run"] { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; }
.lesson-program-controls kbd { font: inherit; font-size: 12px; color: var(--muted); }
.native-tutorial[data-chapter="first-shot"] #replay:not(:empty) { display: block !important; }
.compact-console-header { flex-wrap: wrap; }
.compact-console-header .console-nav { margin: 0 0 0 auto; padding: 0; border: 0; flex-wrap: nowrap; }
.compact-console-header .header-tools { flex: 0 0 auto; }
@media (max-width: 760px) {
.compact-console-header .console-nav button { flex-direction: row; padding: 6px; }
}
/* The program and threat track follow the same live or replay frame. */
#program .slot.current {
opacity: 1;
border-color: #ffe19a;
outline: 2px solid #ffe19a;
outline-offset: 3px;
box-shadow: 0 0 0 4px #ffe19a18;
}
#program .slot.current .turn { color: #ffe19a; font-weight: 700; }
.track-distance { flex: 1; min-width: 0; overflow-x: auto; padding: 2px; }
.approach-track .track, .track-turns {
display: grid;
grid-template-columns: repeat(var(--track-length), minmax(14px, 1fr));
gap: 2px;
}
.approach-track .track > span { height: 32px; line-height: 30px; }
.approach-track .track .effect-mark { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1; }
.effect-mark .pictogram { width: 12px; height: 12px; }
.effect-mark b { font-size: 10px; line-height: 10px; }
.approach-track .track .forecast-tone-0 { background: #264d55; }
.approach-track .track .forecast-tone-1 { background: #30405c; }
.approach-track .track .forecast-start { border-left: 1px solid #91b7bb; }
.approach-track .track .forecast-end { border-right: 1px solid #91b7bb; }
.approach-track .track .current { background: #ffe19a; color: #13202c; }
.track-turns { margin-top: 4px; align-items: center; text-align: center; font-size: 10px; }
.track-turns > small { grid-column: 1; color: var(--muted); font-size: 8px; }
.track-turns > span { padding: 2px 0; border-radius: 2px; border-bottom: 2px solid; }
.track-turns .pictogram { width: 12px; height: 12px; vertical-align: middle; }
.program-jump { grid-column: 1 / -1; flex-basis: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--muted); font-size: 12px; }
.program-jump.current { color: var(--gold); }
.program-jump .pictogram { width: 18px; height: 18px; }
.track-turns .forecast-tone-0 { color: #acf0e5; border-color: #72c9bb; background: #264d5580; }
.track-turns .forecast-tone-1 { color: #c0d5fa; border-color: #87a9e1; background: #30405c80; }
/* Mission overview uses the same pictograms and numbered program slots. */
.mission-overview { max-width: 950px; margin: 16px 0; }
.mission-flow { display: flex; align-items: center; gap: 12px; }
.mission-concept { flex: 1; min-width: 0; display: grid; grid-template-columns: 30px 1fr; gap: 6px 10px; padding: 12px; background: #122632; border-radius: 8px; }
.mission-concept > svg { grid-row: span 2; width: 26px; height: 26px; color: var(--cyan); }
.mission-concept small { color: var(--muted); line-height: 1.45; }
.flow-arrow svg { width: 20px; height: 20px; color: var(--muted); }
.mission-timeline, .mission-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mission-timeline { margin-top: 14px; font-size: 12px; color: var(--muted); }
.mission-timeline > svg { width: 22px; height: 22px; }
.mission-group { display: flex; gap: 4px; padding-bottom: 5px; border-bottom: 2px solid var(--cyan); }
.mission-group.later { opacity: .5; }
.mission-group span { display: grid; place-items: center; width: 23px; height: 28px; border: 1px solid #527181; border-radius: 4px; }
.lesson-scope { display: block; color: var(--muted); margin: -8px 0 10px; }
.practice-clock.stopped > svg { width: 22px; height: 22px; color: var(--cyan); }
.phase-lesson-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.phase-lesson-controls .practice-clock { margin: 0; min-width: 225px; }
.phase-lesson-controls .practice-clock small { color: var(--muted); }
.native-tutorial[data-chapter="planning-phases"] #threats { display: block !important; }
.native-tutorial[data-chapter="planning-phases"] .tactical .section-heading:has(#threat-title) { display: flex !important; }
.native-tutorial[data-chapter="planning-phases"] #program { display: grid; grid-template-columns: repeat(4, minmax(0, 70px)); gap: 14px 10px; }
.native-tutorial[data-chapter="planning-phases"] #program .slot { flex: 0 0 70px; }
.native-tutorial[data-chapter="planning-phases"] #program .slot:nth-child(4) { grid-column: 1; }
.native-tutorial[data-chapter="planning-phases"] .basics-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 650px) {
.mission-flow { flex-direction: column; align-items: stretch; gap: 6px; }
.flow-arrow { align-self: center; transform: rotate(90deg); }
.mission-group span { width: 18px; }
}
.planned-location { display: flex; justify-content: center; padding-top: 3px; opacity: .75; }
.planned-location .ship-locator { width: 34px; height: 19px; }
.slot:has(.planned-location) { flex-direction: column; gap: 5px !important; padding-bottom: 10px; }
.slot.previewed-turn { outline: 2px dashed var(--cyan); outline-offset: 3px; }
.station.planned-room { outline: 2px dashed var(--cyan); outline-offset: -5px; }
.planned-pawn { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 3px; color: var(--cyan); pointer-events: none; opacity: .55; }
.planned-pawn > svg { width: 32px; height: 32px; }
.planned-pawn b, .planned-pawn small { font-size: 10px; }
.planned-pawn small { padding: 2px 3px; border: 1px dashed currentColor; border-radius: 3px; }
/* Keep effects in board coordinates, including while its scroller moves. */
.flight-layout { position: relative; }
.resolution-effects { position: absolute; inset: 0; z-index: 80; pointer-events: none; overflow: clip; }
.resolution-effects > span { position: absolute; pointer-events: none; }
.resolution-effects .fx-pawn { z-index: 2; margin: 0; filter: drop-shadow(0 0 8px #91e7ed90); }
.fx-beam { width: 0; height: 0; transform-origin: 0 0; }
.fx-beam i { position: absolute; right: 0; top: -2px; width: 46px; height: 4px; border-radius: 50%; background: linear-gradient(90deg,transparent,var(--fx-color),#fff); box-shadow: 0 0 9px var(--fx-color); }
.fx-pulse i { width: 24px; height: 24px; top: -12px; border: 2px solid var(--fx-color); background: #8eeaff40; border-radius: 50%; }
.fx-rocket i,.fx-impact i { width: 20px; height: 10px; top: -5px; }
.fx-ring { width: 52px; height: 52px; border: 2px solid var(--fx-color); border-radius: 50%; box-shadow: inset 0 0 20px var(--fx-color),0 0 12px var(--fx-color); }
.fx-spark { width: 5px; height: 5px; border-radius: 50%; background: var(--fx-color); box-shadow: 0 0 7px var(--fx-color); }
.fx-delta { color: var(--fx-color); font-size: 24px; font-weight: 800; text-shadow: 0 2px 4px #020a10,0 0 8px #020a10; white-space: nowrap; }
.fx-jump-star { width: 2px; height: 45px; border-radius: 50%; background: linear-gradient(transparent,var(--fx-color),transparent); box-shadow: 0 0 6px #8eeaff70; }
.ship-jump-effects { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.ship-jump-effects > span { position: absolute; }
.fx-jump-success { display: grid; place-items: center; width: 80px; height: 80px; border: 2px solid var(--fx-color); border-radius: 50%; background: #102b32ee; color: var(--fx-color); box-shadow: 0 0 30px #76e5c650,inset 0 0 20px #76e5c620; }
.fx-jump-success .pictogram { width: 44px; height: 44px; }