Files
space-game/src/style.css

445 lines
7.9 KiB
CSS

:root {
color-scheme: dark;
font-family: "Space Grotesk", "Segoe UI", sans-serif;
--bg: #050914;
--panel: rgba(5, 12, 26, 0.78);
--panel-border: rgba(126, 212, 255, 0.18);
--text: #ebf7ff;
--muted: #9fb6c8;
--accent: #7ed4ff;
--warning: #ffbf69;
}
* {
box-sizing: border-box;
}
html,
body,
#app {
margin: 0;
width: 100%;
height: 100%;
overflow: hidden;
background:
radial-gradient(circle at top, rgba(75, 123, 236, 0.18), transparent 36%),
radial-gradient(circle at 20% 40%, rgba(255, 134, 91, 0.14), transparent 26%),
linear-gradient(180deg, #03070f 0%, #060c18 100%);
color: var(--text);
}
canvas {
display: block;
}
.hud {
position: fixed;
inset: 0;
pointer-events: none;
}
.strategic-overlay {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
pointer-events: none;
opacity: 0.96;
}
.marquee {
position: fixed;
display: none;
border: 1px solid rgba(126, 212, 255, 0.85);
background: rgba(126, 212, 255, 0.14);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
z-index: 3;
}
.panel {
position: absolute;
backdrop-filter: blur(14px);
background: var(--panel);
border: 1px solid var(--panel-border);
border-radius: 18px;
box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
z-index: 2;
}
.panel h1,
.panel h2,
.panel p {
margin: 0;
}
.session-actions {
display: flex;
gap: 10px;
}
.details {
left: 24px;
right: 24px;
bottom: 24px;
min-height: 138px;
padding: 16px 18px;
display: flex;
flex-direction: column;
gap: 12px;
pointer-events: auto;
}
.selection-meta {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 16px;
}
.details h2 {
font-size: 0.82rem;
text-transform: uppercase;
letter-spacing: 0.16em;
color: var(--accent);
}
.selection-strip {
display: flex;
gap: 10px;
overflow-x: auto;
overflow-y: hidden;
padding-bottom: 4px;
align-items: stretch;
}
.selection-strip-card {
flex: 0 0 auto;
border: 1px solid rgba(126, 212, 255, 0.18);
border-radius: 14px;
min-width: 180px;
padding: 10px 12px;
color: var(--text);
background: linear-gradient(180deg, rgba(13, 30, 56, 0.7), rgba(8, 17, 33, 0.82));
display: flex;
flex-direction: column;
gap: 4px;
}
.selection-strip-card-title {
font-size: 0.84rem;
font-weight: 600;
letter-spacing: 0.04em;
color: var(--text);
}
.selection-strip-card-line {
font-size: 0.76rem;
line-height: 1.35;
color: var(--muted);
white-space: nowrap;
}
.selection-strip-empty {
color: var(--muted);
font-size: 0.84rem;
padding: 8px 2px;
}
.details .content {
color: var(--muted);
line-height: 1.55;
white-space: pre-line;
max-height: 132px;
overflow: auto;
}
.selection-title,
.selection-meta .mode {
margin: 0;
font-size: 0.86rem;
text-transform: uppercase;
letter-spacing: 0.14em;
}
.window-launchers {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
}
.selection-meta .mode {
color: var(--warning);
text-shadow: 0 0 18px rgba(255, 191, 105, 0.24);
}
.window-launchers button,
.session-actions button,
.window-close {
border: 1px solid rgba(126, 212, 255, 0.16);
border-radius: 12px;
background: linear-gradient(180deg, rgba(13, 30, 56, 0.95), rgba(8, 17, 33, 0.95));
color: var(--text);
font: inherit;
padding: 12px 10px;
text-transform: uppercase;
letter-spacing: 0.08em;
cursor: pointer;
transition: border-color 120ms ease, transform 120ms ease, background 120ms ease, opacity 120ms ease;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.window-launchers button:hover,
.session-actions button:hover,
.window-close:hover {
border-color: rgba(126, 212, 255, 0.4);
transform: translateY(-1px);
}
button:disabled {
opacity: 0.35;
cursor: default;
transform: none;
}
.minimap {
width: 100%;
height: auto;
border-radius: 10px;
border: 1px solid rgba(126, 212, 255, 0.16);
background: rgba(2, 6, 13, 0.92);
}
.minimap-hidden {
display: none;
}
.app-window {
position: absolute;
top: 104px;
left: 50%;
width: min(480px, calc(100vw - 48px));
height: min(68vh, 680px);
display: none;
flex-direction: column;
gap: 14px;
padding: 18px;
pointer-events: auto;
backdrop-filter: blur(16px);
background:
linear-gradient(180deg, rgba(6, 13, 27, 0.94), rgba(4, 10, 21, 0.92)),
radial-gradient(circle at top, rgba(126, 212, 255, 0.08), transparent 60%);
border: 1px solid rgba(126, 212, 255, 0.2);
border-radius: 18px;
box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
z-index: 4;
}
.app-window[data-open="true"] {
display: flex;
}
.window-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
cursor: move;
user-select: none;
}
.window-header h2,
.window-header p {
margin: 0;
}
.window-header h2 {
font-size: 0.95rem;
letter-spacing: 0.16em;
text-transform: uppercase;
}
.window-subtitle {
margin-top: 6px;
color: var(--muted);
line-height: 1.4;
}
.window-close {
padding-inline: 14px;
cursor: pointer;
}
.window-body {
overflow: auto;
display: flex;
flex-direction: column;
gap: 12px;
padding-right: 4px;
min-height: 0;
}
.ship-window-row {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
padding: 8px 10px;
border-bottom: 1px solid rgba(126, 212, 255, 0.1);
color: var(--muted);
cursor: pointer;
}
.ship-window-row:hover {
color: var(--text);
}
.ship-window-row[data-selected="true"] {
color: #ffbf69;
}
.ship-window-name {
color: inherit;
font-weight: 600;
line-height: 1.35;
}
.ship-window-meta {
color: inherit;
line-height: 1.35;
text-align: right;
font-size: 0.92em;
}
.ship-window-group + .ship-window-group {
margin-top: 10px;
}
.ship-window-group-title {
margin: 0 0 6px;
color: var(--text);
font-size: 0.8rem;
letter-spacing: 0.12em;
text-transform: uppercase;
cursor: pointer;
}
.ship-window-group-title:hover {
color: #ffbf69;
}
.ship-window-empty {
color: var(--muted);
}
.debug-history {
flex: 1 1 auto;
min-height: 0;
overflow: auto;
display: flex;
flex-direction: column;
gap: 12px;
padding-right: 4px;
}
.debug-history-ship {
border: 1px solid rgba(126, 212, 255, 0.12);
border-radius: 14px;
padding: 10px 12px;
background: rgba(8, 17, 33, 0.55);
}
.debug-history-ship[data-selected="true"] {
border-color: rgba(255, 191, 105, 0.4);
}
.debug-history-title {
margin: 0 0 8px;
color: var(--text);
font-size: 0.82rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.debug-history-summary {
display: grid;
grid-template-columns: 1fr;
gap: 4px;
margin-bottom: 10px;
padding: 8px 10px;
border-radius: 10px;
background: rgba(126, 212, 255, 0.08);
color: var(--muted);
font-size: 0.78rem;
line-height: 1.4;
}
.debug-history-summary strong {
color: var(--text);
font-weight: 600;
}
.debug-history-entry {
color: var(--muted);
font-size: 0.78rem;
line-height: 1.45;
white-space: pre-wrap;
}
.debug-history-empty {
color: var(--muted);
font-size: 0.82rem;
}
.window-resize-handle {
position: absolute;
right: 10px;
bottom: 10px;
width: 18px;
height: 18px;
border-right: 2px solid rgba(126, 212, 255, 0.42);
border-bottom: 2px solid rgba(126, 212, 255, 0.42);
border-radius: 0 0 8px 0;
cursor: nwse-resize;
}
.window-resize-handle::before,
.window-resize-handle::after {
content: "";
position: absolute;
right: 3px;
bottom: 3px;
border-right: 1px solid rgba(126, 212, 255, 0.24);
border-bottom: 1px solid rgba(126, 212, 255, 0.24);
}
.window-resize-handle::before {
width: 10px;
height: 10px;
}
.window-resize-handle::after {
width: 6px;
height: 6px;
}
@media (max-width: 900px) {
.details {
width: auto;
left: 16px;
right: 16px;
}
.details {
bottom: 16px;
}
.window-launchers {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.app-window {
top: 76px;
width: calc(100vw - 32px);
}
}