space-alert/preview/style.css

697 lines
11 KiB
CSS

:root {
font-family: Inter, ui-sans-serif, system-ui, sans-serif;
color: #d4e1e6;
background: #0b141c;
font-synthesis: none;
--muted: #95aab6;
--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;
}
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;
}
button:hover {
border-color: var(--gold);
}
button:focus-visible,
select:focus-visible,
summary:focus-visible {
outline: 2px solid var(--gold);
outline-offset: 3px;
}
button:disabled {
opacity: 0.4;
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: 1260px;
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: 1260px;
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 {
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);
}
.notice {
font-size: 12px;
color: var(--muted);
border-left: 2px solid #67737b;
padding: 4px 12px;
margin-bottom: 20px;
line-height: 1.5;
}
.flight-layout {
display: grid;
grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
gap: 30px;
}
.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);
}
.ship {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 7px;
padding: 12px 10px;
background: linear-gradient(130deg, #1d3444, #11202b);
border: 1px solid #3a5260;
border-radius: 50% 50% 14px 14px/12% 12% 10px 10px;
}
.station {
border: 1px solid #405864;
border-top: 3px solid var(--zone);
background: #0d1c28ce;
padding: 10px 7px;
border-radius: 6px;
min-width: 0;
position: relative;
}
.station-title {
font-size: 10px;
color: var(--zone);
text-transform: uppercase;
font-weight: 700;
letter-spacing: 0.4px;
}
.station .weapon {
font-size: 20px;
margin: 9px 0 5px;
color: var(--zone);
}
.systems {
font-size: 10px;
line-height: 1.8;
color: #b1c4cf;
}
.systems b {
display: inline-block;
color: var(--gold);
min-width: 15px;
}
.occupants {
min-height: 23px;
display: flex;
gap: 2px;
flex-wrap: wrap;
margin-top: 6px;
}
.pawn {
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid var(--gold);
background: #e8c98420;
color: var(--gold);
border-radius: 50%;
width: 21px;
height: 21px;
font-size: 11px;
font-weight: 700;
}
.pawn.out {
opacity: 0.5;
text-decoration: line-through;
}
.damage {
color: var(--red);
font-size: 10px;
}
.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);
}
.threat {
border: 1px solid var(--line);
border-left: 3px solid var(--zone);
border-radius: 5px;
margin: 7px 0;
padding: 9px 11px;
background: #101f2b;
}
.threat summary {
display: flex;
gap: 7px;
align-items: center;
cursor: pointer;
font-size: 12px;
}
.threat summary strong {
flex: 1;
}
.threat .stats {
color: var(--muted);
font-size: 11px;
}
.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 {
min-width: 0;
min-height: 64px;
padding: 5px 3px;
background: #101f2b;
border-color: #344553;
}
.slot .turn {
font-size: 9px;
color: var(--muted);
display: block;
}
.slot .action {
font-size: 18px;
display: block;
min-height: 22px;
}
.slot.future {
opacity: 0.4;
}
.slot.locked {
background: #25323a;
opacity: 0.75;
}
.slot.selected {
outline: 2px solid var(--gold);
}
.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;
}
.card button + button {
border-top: 1px solid var(--line);
}
.card button.selected {
background: var(--gold);
color: #132430;
}
.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;
}
.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;
}
main > details {
border-top: 1px solid var(--line);
margin-top: 24px;
padding-top: 12px;
}
summary {
cursor: pointer;
font-size: 13px;
min-height: 36px;
line-height: 1.5;
}
ol {
padding-left: 24px;
}
li {
font-size: 12px;
line-height: 1.6;
padding: 4px 0;
color: var(--muted);
}
#announcements {
max-height: 330px;
overflow: auto;
overscroll-behavior: auto;
touch-action: auto;
}
form {
display: flex;
gap: 12px;
align-items: end;
flex-wrap: wrap;
}
label {
font-size: 12px;
color: var(--muted);
display: flex;
flex-direction: column;
gap: 6px;
}
form button {
background: var(--gold);
color: #10202a;
}
#scope,
#help {
font-size: 13px;
line-height: 1.7;
color: var(--muted);
}
footer {
margin-top: 30px;
color: #78929f;
font-size: 11px;
line-height: 1.6;
}
#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;
}
.notice {
margin-bottom: 14px;
font-size: 11px;
}
.station {
padding: 8px 6px;
}
.ship {
padding: 10px 7px;
}
.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;
}
.systems {
font-size: 9px;
}
}
@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: 0.3rem;
margin: 0.4rem 0;
}
#hand-filter [aria-pressed="true"] {
border-color: var(--gold);
}
#campaign button,
#explorers button {
margin: 0.2rem 0.1rem;
}
#explorers details {
margin: 0.6rem 0;
padding: 0.7rem;
border: 1px solid #34434d;
border-radius: 0.6rem;
}
#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.6rem 0;
line-height: 1.5;
}
#lesson-guide h2 {
font-size: 1rem;
}
#lesson-list button {
margin: 0.3rem 0.1rem;
}