728 lines
14 KiB
CSS
728 lines
14 KiB
CSS
/* Modals, toasts, notification window, co-op toggle vicodins, value chart, grid (forgot which one), and toggles. */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: var(--overlay-scrim);
|
|
backdrop-filter: blur(4px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 100;
|
|
padding: 16px;
|
|
}
|
|
.modal {
|
|
width: min(500px, 100%);
|
|
max-height: min(86dvh, calc(100dvh - 32px));
|
|
overflow-y: auto;
|
|
padding: 22px;
|
|
}
|
|
.modal h3 {
|
|
font-size: 14px;
|
|
margin-bottom: 14px;
|
|
color: var(--brand-blue);
|
|
}
|
|
|
|
#toast-root,
|
|
.toast-root {
|
|
position: fixed;
|
|
bottom: 64px;
|
|
right: calc(20px + var(--right-sidebar-offset, 0px));
|
|
z-index: 200;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
pointer-events: none;
|
|
max-width: calc(100vw - var(--right-sidebar-offset, 0px) - 32px);
|
|
}
|
|
.toast {
|
|
padding: 11px 16px;
|
|
border-radius: var(--radius-sm);
|
|
clip-path: var(--chamfer-sm);
|
|
font-family: var(--mono);
|
|
font-size: 11px;
|
|
letter-spacing: 0.04em;
|
|
max-width: min(380px, 100%);
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border-bright);
|
|
box-shadow: var(--shadow-elevated);
|
|
animation: slideIn 0.2s ease;
|
|
}
|
|
.toast.ok {
|
|
border-color: var(--green);
|
|
}
|
|
.toast.err {
|
|
border-color: var(--red);
|
|
}
|
|
.toast.info {
|
|
border-color: var(--brand-blue);
|
|
}
|
|
@keyframes slideIn {
|
|
from {
|
|
transform: translateX(40px);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: none;
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
#notif-drawer-root {
|
|
position: fixed;
|
|
bottom: 14px;
|
|
right: 16px;
|
|
z-index: 180;
|
|
pointer-events: none;
|
|
}
|
|
.notif-drawer-wrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
}
|
|
.notif-drawer-wrap > * {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.notif-toggle-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
background: var(--bg-glass);
|
|
backdrop-filter: blur(8px);
|
|
border: 1px solid var(--border-bright);
|
|
border-radius: var(--radius-sm);
|
|
clip-path: var(--chamfer-sm);
|
|
box-shadow: var(--shadow-elevated);
|
|
max-width: 360px;
|
|
overflow: hidden;
|
|
}
|
|
.notif-toggle-main {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 7px 11px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
min-width: 0;
|
|
text-align: left;
|
|
}
|
|
.notif-toggle-main:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
.notif-preview {
|
|
font-size: 10px;
|
|
max-width: 135px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
.notif-hide-btn {
|
|
padding: 7px 9px;
|
|
background: var(--bg-inset);
|
|
border: none;
|
|
border-left: 1px solid var(--border);
|
|
color: var(--text-dim);
|
|
cursor: pointer;
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
line-height: 1;
|
|
}
|
|
.notif-hide-btn:hover {
|
|
color: var(--text);
|
|
background: var(--bg-hover);
|
|
}
|
|
.notif-mini-pill {
|
|
padding: 6px 10px;
|
|
background: var(--bg-glass);
|
|
box-shadow: var(--shadow-elevated);
|
|
}
|
|
|
|
.notif-drawer {
|
|
width: min(370px, calc(100vw - var(--right-sidebar-offset, 0px) - 32px));
|
|
max-height: 340px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 10px 12px;
|
|
gap: 8px;
|
|
box-shadow: var(--shadow-modal);
|
|
}
|
|
.notif-header {
|
|
padding-bottom: 4px;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
}
|
|
.notif-tabs {
|
|
display: flex;
|
|
gap: 5px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.notif-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
max-height: 230px;
|
|
padding-right: 3px;
|
|
}
|
|
.notif-item {
|
|
padding: 7px 9px;
|
|
background: var(--bg-deep);
|
|
border: 1px solid var(--border);
|
|
border-left-width: 3px;
|
|
border-radius: var(--radius-sm);
|
|
clip-path: var(--chamfer-sm);
|
|
font-family: var(--mono);
|
|
font-size: 11px;
|
|
line-height: 1.35;
|
|
}
|
|
.notif-item.ok {
|
|
border-left-color: var(--green);
|
|
}
|
|
.notif-item.err {
|
|
border-left-color: var(--red);
|
|
}
|
|
.notif-item.warn {
|
|
border-left-color: var(--amber);
|
|
}
|
|
.notif-item.info {
|
|
border-left-color: var(--brand-blue);
|
|
}
|
|
.notif-msg {
|
|
color: var(--text);
|
|
word-break: break-word;
|
|
}
|
|
|
|
.list-page {
|
|
padding-bottom: 58px;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 7px;
|
|
height: 7px;
|
|
}
|
|
::-webkit-scrollbar-thumb {
|
|
background: var(--border-bright);
|
|
}
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--text-dim);
|
|
font-family: var(--mono);
|
|
font-size: 11px;
|
|
letter-spacing: 0.18em;
|
|
text-transform: uppercase;
|
|
padding: 16px;
|
|
}
|
|
.loading::after {
|
|
content: "...";
|
|
animation: dots 1.2s steps(4) infinite;
|
|
}
|
|
@keyframes dots {
|
|
0% {
|
|
content: "";
|
|
}
|
|
25% {
|
|
content: ".";
|
|
}
|
|
50% {
|
|
content: "..";
|
|
}
|
|
75% {
|
|
content: "...";
|
|
}
|
|
}
|
|
|
|
.dash-sidebar,
|
|
.builder-sidebar,
|
|
.param-side,
|
|
.map-sidebar {
|
|
min-width: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
@media (min-width: 961px) and (max-width: 1240px) {
|
|
.dash-root {
|
|
grid-template-columns: 1fr 310px;
|
|
}
|
|
.builder-root,
|
|
.param-root {
|
|
grid-template-columns: 1fr 360px;
|
|
}
|
|
.map-root {
|
|
grid-template-columns: 1fr 290px;
|
|
}
|
|
.list-page .cols {
|
|
grid-template-columns: 1fr 0.85fr;
|
|
gap: 14px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
.dash-root,
|
|
.builder-root,
|
|
.map-root {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: clamp(220px, 38dvh, 360px) minmax(0, 1fr);
|
|
}
|
|
.param-root {
|
|
grid-template-columns: 1fr;
|
|
grid-auto-rows: max-content;
|
|
overflow-y: auto;
|
|
padding-bottom: 64px;
|
|
}
|
|
.param-main,
|
|
.param-side {
|
|
overflow: visible;
|
|
border-left: none;
|
|
padding-bottom: 14px;
|
|
}
|
|
.param-side {
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
.onboard-layout {
|
|
grid-template-columns: 1fr;
|
|
grid-auto-rows: max-content;
|
|
overflow-y: auto;
|
|
height: 100%;
|
|
padding: 16px 16px 64px;
|
|
}
|
|
.onboard-scroll {
|
|
overflow: visible;
|
|
padding-right: 0;
|
|
}
|
|
.list-page .cols {
|
|
grid-template-columns: 1fr;
|
|
grid-auto-rows: max-content;
|
|
}
|
|
.dash-sidebar,
|
|
.builder-sidebar,
|
|
.map-sidebar {
|
|
padding-bottom: 62px;
|
|
border-left: none;
|
|
border-top: 1px solid var(--border);
|
|
}
|
|
.builder-viewport {
|
|
border-right: none;
|
|
border-bottom: 1px solid var(--border);
|
|
}
|
|
#hud-bottom-right {
|
|
right: 16px !important;
|
|
max-width: calc(100vw - 32px) !important;
|
|
}
|
|
#walkthrough-coach-root {
|
|
left: 16px;
|
|
right: 16px;
|
|
top: 12px;
|
|
transform: none;
|
|
max-width: calc(100vw - 32px);
|
|
}
|
|
.notif-drawer {
|
|
width: min(370px, calc(100vw - 32px)) !important;
|
|
}
|
|
.wiki-layout {
|
|
grid-template-columns: 1fr;
|
|
grid-template-rows: auto minmax(0, 1fr);
|
|
}
|
|
.wiki-sidebar {
|
|
max-height: 210px;
|
|
border-right: none;
|
|
border-bottom: 1px solid var(--border);
|
|
padding-bottom: 14px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.modal-overlay {
|
|
padding: 10px;
|
|
}
|
|
.modal {
|
|
padding: 16px;
|
|
}
|
|
.card-grid {
|
|
grid-template-columns: 1fr !important;
|
|
}
|
|
.bus-power-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
.builder-summary-bar {
|
|
padding: 8px 12px;
|
|
border-bottom: 1px solid var(--border);
|
|
background: var(--bg-inset);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
.builder-summary-bar .summary-pills {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px 10px;
|
|
font-family: var(--mono);
|
|
font-size: 10px;
|
|
}
|
|
|
|
.builder-coop-bar {
|
|
padding: 4px 10px;
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
background: transparent;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
align-items: center;
|
|
}
|
|
.station-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 3px 8px;
|
|
font-family: var(--mono);
|
|
font-size: 9px;
|
|
border: 1px solid var(--border);
|
|
background: var(--bg-deep);
|
|
color: var(--text-dim);
|
|
border-radius: var(--radius-sm);
|
|
clip-path: var(--chamfer-sm);
|
|
cursor: pointer;
|
|
transition:
|
|
border-color 0.15s,
|
|
color 0.15s,
|
|
background-color 0.15s;
|
|
}
|
|
.station-pill:hover {
|
|
border-color: var(--brand-blue);
|
|
color: var(--text);
|
|
}
|
|
.station-pill.ready {
|
|
border-color: rgba(52, 211, 153, 0.55);
|
|
color: var(--green);
|
|
background: rgba(52, 211, 153, 0.08);
|
|
}
|
|
.station-pill.occupied {
|
|
border-color: var(--sim-accent-dim);
|
|
color: var(--sim-accent);
|
|
}
|
|
|
|
.value-chart {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
background: var(--bg-deep);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
clip-path: var(--chamfer-sm);
|
|
padding: 10px 12px;
|
|
}
|
|
.value-bar-track {
|
|
display: flex;
|
|
width: 100%;
|
|
height: 18px;
|
|
background: var(--bg-elevated);
|
|
border: 1px solid var(--border);
|
|
overflow: hidden;
|
|
border-radius: 2px;
|
|
}
|
|
.value-seg {
|
|
height: 100%;
|
|
transition: width 0.25s ease;
|
|
min-width: 2px;
|
|
}
|
|
.value-seg.base {
|
|
background: var(--brand-strong);
|
|
}
|
|
.value-seg.science {
|
|
background: var(--green);
|
|
}
|
|
.value-seg.eff {
|
|
background: var(--violet);
|
|
}
|
|
.value-seg.bonus {
|
|
background: var(--amber);
|
|
}
|
|
.value-seg.hw {
|
|
background: #ef4444;
|
|
}
|
|
.value-seg.bus {
|
|
background: #f97316;
|
|
}
|
|
.value-seg.ops {
|
|
background: #eab308;
|
|
}
|
|
|
|
.bus-power-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 6px;
|
|
}
|
|
.bus-power-cell {
|
|
background: var(--bg-deep);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
clip-path: var(--chamfer-sm);
|
|
padding: 7px 9px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
.bus-power-cell .k {
|
|
font-family: var(--mono);
|
|
font-size: 9px;
|
|
color: var(--text-faint);
|
|
text-transform: uppercase;
|
|
}
|
|
.bus-power-cell .v {
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
#hud-bottom-right {
|
|
position: fixed;
|
|
bottom: 14px;
|
|
right: calc(16px + var(--right-sidebar-offset, 0px));
|
|
z-index: 180;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap-reverse;
|
|
gap: 8px;
|
|
max-width: calc(100vw - var(--right-sidebar-offset, 0px) - 32px);
|
|
pointer-events: none;
|
|
}
|
|
#hud-bottom-right > * {
|
|
pointer-events: auto;
|
|
}
|
|
#notif-drawer-root {
|
|
position: static;
|
|
}
|
|
|
|
.wiki-drawer-overlay {
|
|
z-index: 190;
|
|
padding: 18px;
|
|
}
|
|
.wiki-drawer-panel {
|
|
width: min(1160px, 100%);
|
|
height: min(88vh, 880px);
|
|
max-height: none;
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#walkthrough-coach-root {
|
|
position: fixed;
|
|
top: 62px;
|
|
left: calc(50% - var(--right-sidebar-offset, 0px) / 2);
|
|
transform: translateX(-50%);
|
|
z-index: 160;
|
|
max-width: min(470px, calc(100vw - var(--right-sidebar-offset, 0px) - 32px));
|
|
pointer-events: none;
|
|
}
|
|
#walkthrough-coach-root > * {
|
|
pointer-events: auto;
|
|
}
|
|
.walkthrough-card {
|
|
padding: 12px 14px;
|
|
border-color: var(--sim-accent);
|
|
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
|
|
}
|
|
.walkthrough-pill {
|
|
padding: 6px 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
border-color: var(--sim-accent);
|
|
}
|
|
.walkthrough-title {
|
|
font-family: var(--mono);
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
margin-bottom: 3px;
|
|
}
|
|
.walkthrough-hint {
|
|
font-size: 11px;
|
|
line-height: 1.45;
|
|
color: var(--text-dim);
|
|
}
|
|
|
|
/* Shared Co-op Mission Control bar, station locking, and roster helpers */
|
|
.panel-inset {
|
|
padding: 9px 11px;
|
|
background: var(--bg-deep);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
clip-path: var(--chamfer-sm);
|
|
}
|
|
|
|
.coop-mission-bar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 4px;
|
|
pointer-events: auto;
|
|
max-width: 100%;
|
|
}
|
|
.coop-mission-bar.compact {
|
|
padding: 1px 4px;
|
|
gap: 4px;
|
|
}
|
|
|
|
.dash-coop-bar,
|
|
.contracts-coop-bar,
|
|
.param-coop-bar,
|
|
.launch-coop-strip {
|
|
max-width: 100%;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.coop-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
padding: 2px 7px;
|
|
background: color-mix(in srgb, var(--bg-deep) 55%, transparent);
|
|
border: 1px solid var(--border-bright);
|
|
border-radius: var(--radius-sm);
|
|
clip-path: var(--chamfer-sm);
|
|
color: var(--text);
|
|
font-family: var(--mono);
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
cursor: pointer;
|
|
}
|
|
.coop-pill:hover {
|
|
border-color: var(--sim-accent);
|
|
color: var(--sim-accent);
|
|
}
|
|
.coop-pill.online {
|
|
border-color: rgba(52, 211, 153, 0.55);
|
|
}
|
|
.coop-pill.invite {
|
|
border-color: var(--brand-blue);
|
|
color: var(--brand-blue);
|
|
}
|
|
|
|
.coop-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
background: var(--text-faint);
|
|
}
|
|
.coop-dot.on {
|
|
background: var(--green);
|
|
box-shadow: 0 0 8px var(--green);
|
|
}
|
|
.coop-code-tag {
|
|
color: var(--sim-accent);
|
|
font-weight: 700;
|
|
}
|
|
|
|
.coop-stations-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
align-items: center;
|
|
}
|
|
|
|
.coop-station-group {
|
|
display: inline-flex;
|
|
align-items: stretch;
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
clip-path: var(--chamfer-sm);
|
|
background: color-mix(in srgb, var(--bg-deep) 50%, transparent);
|
|
overflow: hidden;
|
|
}
|
|
.coop-station-group.mine {
|
|
border-color: var(--sim-accent-dim);
|
|
background: var(--sim-glow);
|
|
}
|
|
.coop-station-group.ready {
|
|
border-color: rgba(52, 211, 153, 0.65);
|
|
background: rgba(52, 211, 153, 0.1);
|
|
}
|
|
.coop-station-group.locked {
|
|
border-color: rgba(245, 158, 11, 0.45);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.coop-station-btn,
|
|
.coop-station-rel {
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text);
|
|
font-family: var(--mono);
|
|
font-size: 9px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.05em;
|
|
padding: 3px 6px;
|
|
cursor: pointer;
|
|
}
|
|
.coop-station-group.open .coop-station-btn {
|
|
color: var(--text-dim);
|
|
}
|
|
.coop-station-group.ready .coop-station-btn {
|
|
color: var(--green);
|
|
}
|
|
.coop-station-group.locked .coop-station-btn {
|
|
color: var(--amber);
|
|
cursor: not-allowed;
|
|
}
|
|
.coop-station-btn:hover:not(:disabled) {
|
|
background: var(--bg-hover);
|
|
}
|
|
.coop-station-rel {
|
|
border-left: 1px solid var(--border);
|
|
color: var(--text-dim);
|
|
padding: 3px 5px;
|
|
}
|
|
.coop-station-rel:hover {
|
|
background: rgba(248, 113, 113, 0.18);
|
|
color: var(--red);
|
|
}
|
|
|
|
.coop-lock-banner {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 7px 10px;
|
|
margin-bottom: 4px;
|
|
background: rgba(245, 158, 11, 0.08);
|
|
border: 1px solid rgba(245, 158, 11, 0.48);
|
|
border-radius: var(--radius-sm);
|
|
clip-path: var(--chamfer-sm);
|
|
font-family: var(--mono);
|
|
font-size: 10px;
|
|
line-height: 1.4;
|
|
color: var(--amber);
|
|
}
|
|
.coop-lock-icon {
|
|
padding: 2px 5px;
|
|
background: rgba(245, 158, 11, 0.2);
|
|
border: 1px solid rgba(245, 158, 11, 0.6);
|
|
font-size: 9px;
|
|
font-weight: 800;
|
|
letter-spacing: 0.08em;
|
|
flex-shrink: 0;
|
|
}
|
|
.coop-section-locked {
|
|
border-color: rgba(245, 158, 11, 0.35);
|
|
}
|
|
.coop-section-locked input:disabled,
|
|
.coop-section-locked select:disabled,
|
|
.coop-section-locked button:disabled {
|
|
opacity: 0.52;
|
|
}
|