mirror of
https://github.com/db9979/uconsole_asw_game.git
synced 2026-12-06 12:54:18 +01:00
The frigate's damage plan is now an F125-style side profile with the compartments at their real height, water tilted by trim, the outside waterline and draft marks, visible holes with inflow jet, patch plate and pump discharge, plus a cross-section that heels with the list. The U-boat damage page and the browser engine console show a Type VII-style cutaway of the pressure hull. Display only: save stays v48, no rule changes. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VQkTBZ6nNCXjyAJvYjDofk
380 lines
32 KiB
CSS
380 lines
32 KiB
CSS
/* Instruments on the stage and station-specific arrangement. */
|
|
|
|
.role-visuals { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; padding: .45rem .55rem .35rem; overflow: hidden; background: var(--bg-0); }
|
|
.visual-heading { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; flex: 0 0 auto; padding-bottom: .3rem; }
|
|
.visual-heading h3 { color: var(--live); font-size: var(--font-xs); text-transform: uppercase; letter-spacing: .14em; font-weight: 650; }
|
|
.visual-state { color: var(--text-dim); font: var(--font-xs) var(--font-mono); }
|
|
.visual-panel { min-width: 0; }
|
|
.visual-panel:not([hidden]) { display: flex; flex: 1; flex-direction: column; min-height: 0; }
|
|
#map-visual:not([hidden]) { flex-grow: 2.2; }
|
|
|
|
/* Canvases scale with the stage; the bitmap follows the CSS size. */
|
|
.role-canvas { display: block; width: 100%; height: clamp(14rem, 42vh, 28rem); min-width: 0; min-height: 6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--scope); touch-action: none; }
|
|
.stage .role-canvas { flex: 1; height: auto; }
|
|
.role-map-frame { position: relative; flex: 1; width: 100%; min-width: 0; min-height: 8rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--scope); }
|
|
#role-map, #role-map-sweep { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; border: 0; }
|
|
#role-map-sweep { pointer-events: none; }
|
|
.actionable-canvas { cursor: crosshair; }
|
|
|
|
/* Canvas prose equivalents stay for screen readers, not for the eye. */
|
|
.visual-equivalent, #role-map-help {
|
|
position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
|
|
}
|
|
|
|
/* Instrument tabs and toolbars. */
|
|
.visual-toolbar { flex: 0 0 auto; padding-bottom: .3rem; }
|
|
.visual-tabs { display: flex; flex-wrap: wrap; gap: .2rem; flex: 0 0 auto; margin-bottom: .3rem; }
|
|
.visual-tabs button, .helicopter-visual-tabs button {
|
|
min-height: 1.9rem; padding: .1rem .7rem; border-radius: var(--radius) var(--radius) 0 0; border-color: transparent;
|
|
border-bottom: 2px solid var(--line); background: transparent; color: var(--text-dim); font-size: var(--font-xs);
|
|
text-transform: uppercase; letter-spacing: .08em;
|
|
}
|
|
.visual-tabs button[aria-selected="true"], .helicopter-visual-tabs button[aria-selected="true"] { color: var(--live-strong); border-bottom-color: var(--live); background: var(--bg-2); }
|
|
.helicopter-visual-tabs { display: flex; gap: .2rem; flex: 0 0 auto; margin-bottom: .3rem; }
|
|
.plot-tools { flex: 0 0 auto; padding-bottom: .25rem; }
|
|
.plot-tools > summary { cursor: pointer; color: var(--plot); font-size: var(--font-xs); min-height: 1.5rem; }
|
|
.plot-toolbar { align-items: center; }
|
|
.plot-toolbar label { color: var(--plot); font-size: var(--font-xs); }
|
|
.plot-toolbar #plot-speed { width: 5.5rem; }
|
|
.plot-toolbar #plot-label-input { width: 10rem; }
|
|
.plot-list { display: flex; flex-wrap: wrap; gap: .2rem .8rem; margin: .3rem 0 0; padding: 0; list-style: none; color: var(--plot); font: var(--font-xs) var(--font-mono); }
|
|
.plot-list button { min-height: 1.7rem; padding: .1rem .4rem; font-size: var(--font-xs); }
|
|
|
|
/* Sonar: listening strip, display controls, plots. */
|
|
.sonar-live-audio { display: flex; align-items: center; gap: .6rem; flex: 0 0 auto; min-width: 0; padding-bottom: .3rem; }
|
|
.sonar-live-audio p { color: var(--text-dim); font-size: var(--font-sm); line-height: 1.3; }
|
|
#sonar-live-toggle[aria-pressed="true"] { background: var(--live-bg); border-color: var(--live-2); color: var(--live-2); }
|
|
.sonar-audition-controls, .sonar-display-controls {
|
|
display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; flex: 0 0 auto; min-width: 0;
|
|
padding: .25rem .45rem; margin-bottom: .3rem; background: var(--bg-1); border: 1px solid var(--line-faint); border-radius: var(--radius);
|
|
}
|
|
.sonar-audition-controls .check { font-size: var(--font-xs); color: var(--text); }
|
|
.sonar-audition-controls > label:not(.check), .sonar-display-controls label { color: var(--text-dim); font-size: var(--font-xs); text-transform: uppercase; letter-spacing: .05em; }
|
|
.sonar-audition-controls select, .sonar-display-controls select, .sonar-display-controls button { min-height: 1.8rem; padding: .05rem .4rem; font-size: var(--font-xs); }
|
|
.sonar-audition-controls input[type="range"], .sonar-display-controls input[type="range"] { width: 6.5rem; }
|
|
.sonar-audition-controls output, .sonar-display-controls output { color: var(--live); font-size: var(--font-xs); white-space: nowrap; }
|
|
.sonar-cursor-readout { flex: 1 1 12rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: right; }
|
|
.sonar-plots { display: flex; flex: 1; flex-direction: column; min-height: 0; }
|
|
.sonar-plots > section:not([hidden]) { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; }
|
|
.sonar-plots[data-layout="overview"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .35rem; }
|
|
.sonar-plots[data-layout="overview-wide"] { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .35rem; }
|
|
.spectrum-canvas { flex: 0 0 5rem !important; height: 5rem !important; min-height: 5rem; margin-top: .3rem; }
|
|
.sonar-band-plots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; flex: 0 0 6rem; margin-top: .3rem; }
|
|
.sonar-plots:not([data-layout="single"]) .sonar-band-plots { display: none; }
|
|
.band-canvas { height: 6rem !important; min-height: 0; flex: none !important; }
|
|
.sonar-active-plots { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); grid-template-rows: minmax(0, 1fr); flex: 1; min-height: 0; gap: .35rem; }
|
|
.sonar-active-plots > canvas { height: 100% !important; min-width: 0; min-height: 6rem; }
|
|
|
|
/* Split stage (ultra-wide screens): helicopter acoustic console beside the map. */
|
|
.role-visuals[data-split="on"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto minmax(0, 1fr); column-gap: .6rem; }
|
|
.role-visuals[data-split="on"] > .visual-heading { grid-column: 1 / -1; }
|
|
.role-visuals[data-split="on"] > .visual-panel:not([hidden]) { grid-row: 2; }
|
|
|
|
/* Damage / engine / ESM / weapons instruments. */
|
|
.damage-visual-controls { display: flex; align-items: center; gap: .5rem; flex: 0 0 auto; padding-bottom: .3rem; }
|
|
.damage-visual-controls label { color: var(--text-dim); font-size: var(--font-xs); }
|
|
.damage-console:not([hidden]) { display: flex; flex-direction: column; gap: .45rem; min-height: 0; }
|
|
.damage-console > .console-annunciator { flex: none; }
|
|
.damage-console > #damage-schematic { flex: 1 1 20rem; min-height: 20rem; }
|
|
|
|
/* Helicopter: dip picture and buoy console on the stage. */
|
|
#helicopter-dip-display:not([hidden]) { flex: 1 1 40%; min-height: 0; overflow-y: auto; }
|
|
#helicopter-dip-canvas { display: block; width: 100%; max-width: 560px; height: auto; margin: .35rem auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--scope); }
|
|
.helicopter-acoustic-visual:not([hidden]) { display: flex; flex: 1; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; gap: .3rem; }
|
|
.helicopter-acoustic-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; font-size: var(--font-xs); }
|
|
.helicopter-acoustic-controls select { flex: 1; min-width: 8rem; }
|
|
.helicopter-acoustic-controls input[type="range"] { flex: 1; min-width: 7rem; }
|
|
.helicopter-acoustic-controls output { min-width: 3.5rem; color: var(--live); font-size: var(--font-xs); }
|
|
.helicopter-inline-form { display: flex; flex: 1; align-items: center; gap: .35rem; }
|
|
.helicopter-inline-form input { width: 7rem; }
|
|
#helicopter-audio-controls { padding: .25rem .45rem; border: 1px solid var(--line); border-radius: var(--radius); }
|
|
#helicopter-audio-controls summary { cursor: pointer; color: var(--live); font-size: var(--font-xs); }
|
|
#helicopter-audio-controls[open] { max-height: 13rem; overflow: auto; }
|
|
.helicopter-acoustic-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 25%); gap: .5rem; flex: 1; min-height: 0; }
|
|
.helicopter-acoustic-plots { display: flex; min-height: 0; }
|
|
.helicopter-acoustic-plots > div:not([hidden]) { display: flex; flex: 1; flex-direction: column; min-height: 0; }
|
|
.helicopter-acoustic-plots .role-canvas { flex: 1; height: auto; min-height: 12rem; }
|
|
.helicopter-acoustic-plots .helicopter-spectrum-canvas { flex: none; height: 7rem; min-height: 7rem; margin-bottom: .35rem; }
|
|
.helicopter-acoustic-rail { display: flex; flex-direction: column; min-height: 0; padding: .35rem; border: 1px solid var(--line); border-radius: var(--radius); }
|
|
#helicopter-buoy-observations { flex: 1; min-height: 0; overflow: auto; }
|
|
|
|
/* Radio room: a rack of receiver units instead of a chart. Device fronts with
|
|
engraved plates, amber digital frequency readouts, segment S-meters and a
|
|
teletype printing the message traffic. */
|
|
.radio-visual:not([hidden]) { display: grid; grid-template-rows: minmax(0, 1.6fr) minmax(8rem, 1fr); gap: .55rem; min-height: 0; }
|
|
.radio-rack { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: .55rem; min-height: 0; }
|
|
.radio-unit {
|
|
display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: .45rem .55rem .55rem;
|
|
background: linear-gradient(var(--bg-3), var(--bg-2)); border: 1px solid var(--line-strong); border-radius: calc(var(--radius) * 2);
|
|
box-shadow: inset 0 1px 0 var(--bg-4), inset 0 -2px 0 var(--bg-0), 0 .4rem 1rem -.6rem var(--shadow);
|
|
}
|
|
.radio-plate { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex: 0 0 auto; padding: .1rem .3rem .4rem; }
|
|
.radio-plate h4 { padding: .1rem .5rem; color: var(--text-dim); background: var(--bg-1); border: 1px solid var(--line); border-radius: 2px; font-size: var(--font-xs); letter-spacing: .16em; text-transform: uppercase; }
|
|
.radio-count { color: var(--text-faint); font: var(--font-xs) var(--font-mono); }
|
|
.radio-lamp { display: inline-flex; align-items: center; gap: .4rem; color: var(--live-2); font: var(--font-xs) var(--font-mono); text-transform: uppercase; }
|
|
.radio-lamp::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 .5rem currentColor; }
|
|
.radio-lamp[data-state="down"] { color: var(--alarm); }
|
|
.radio-scope-frame { flex: 1; min-height: 0; padding: .45rem; background: var(--bg-0); border: 1px solid var(--line); border-radius: calc(var(--radius) * 3); box-shadow: inset 0 0 2.5rem -1rem var(--shadow); }
|
|
.radio-scope-frame .role-canvas { height: 100% !important; border: 0; border-radius: 0; background: transparent; }
|
|
.radio-channels { display: flex; flex: 1; flex-direction: column; gap: .35rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: .1rem; }
|
|
.radio-channel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: .35rem; }
|
|
.radio-tune {
|
|
display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: .15rem .7rem;
|
|
padding: .35rem .6rem; text-align: left; font-weight: 500; background: var(--scope); border: 1px solid var(--line); border-radius: var(--radius);
|
|
}
|
|
.radio-tune:hover:not(:disabled) { background: var(--bg-2); }
|
|
.radio-channel.selected .radio-tune { border-color: var(--live); box-shadow: inset 3px 0 0 var(--live); }
|
|
.radio-channel.stale .radio-frequency { opacity: .55; }
|
|
.radio-channel > .station-action { align-self: stretch; min-width: 6.5rem; font-size: var(--font-xs); }
|
|
.radio-dial { grid-row: 1 / 3; display: flex; align-items: baseline; gap: .3rem; padding: .15rem .5rem; background: var(--bg-0); border: 1px solid var(--line); border-radius: 2px; }
|
|
.radio-frequency { color: var(--caution); font: 700 clamp(1.15rem, 1.1vw + .6rem, 2rem)/1 var(--font-mono); letter-spacing: .06em; text-shadow: 0 0 .6rem color-mix(in srgb, var(--caution) 45%, transparent); font-variant-numeric: tabular-nums; }
|
|
.radio-unit-label { color: var(--text-faint); font: var(--font-xs) var(--font-mono); }
|
|
.radio-mode { justify-self: start; padding: .05rem .4rem; border: 1px solid currentColor; border-radius: 2px; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); }
|
|
.radio-mode.ground { color: var(--live-2); }
|
|
.radio-mode.sky { color: var(--info); }
|
|
.radio-smeter { display: inline-flex; gap: 2px; align-items: flex-end; height: 1rem; }
|
|
.radio-smeter i { width: .38rem; height: 100%; background: var(--line); border-radius: 1px; }
|
|
.radio-smeter i.on { background: var(--live-2); box-shadow: 0 0 .3rem color-mix(in srgb, var(--live-2) 60%, transparent); }
|
|
.radio-smeter i.hot { background: var(--caution); }
|
|
.radio-meta { grid-column: 2 / 4; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .8rem; font: var(--font-sm) var(--font-mono); }
|
|
.radio-label { color: var(--text); }
|
|
.radio-bearing { color: var(--live); }
|
|
.radio-age { color: var(--text-faint); }
|
|
.radio-idle { color: var(--text-faint); font-family: var(--font-mono); }
|
|
.radio-teletype-unit { min-height: 0; }
|
|
.radio-lower { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: .55rem; min-height: 0; }
|
|
.radio-tasks-unit { min-height: 0; }
|
|
.radio-tasks { display: flex; flex: 1; flex-direction: column; gap: .35rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
|
|
.radio-task { padding: .35rem .55rem; background: var(--scope); border: 1px solid var(--line); border-radius: var(--radius); font: var(--font-sm) var(--font-mono); }
|
|
.radio-task[data-state="offered"] { border-color: var(--caution); box-shadow: inset 3px 0 0 var(--caution); }
|
|
.radio-task[data-state="active"] { border-color: var(--live); box-shadow: inset 3px 0 0 var(--live); }
|
|
.radio-task[data-state="done"], .radio-task[data-state="failed"], .radio-task[data-state="declined"] { opacity: .7; }
|
|
.radio-task-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .6rem; color: var(--text); }
|
|
.radio-task-state { color: var(--text-dim); letter-spacing: .08em; }
|
|
.radio-task[data-state="offered"] .radio-task-state { color: var(--caution); }
|
|
.radio-task-brief { margin: .25rem 0 0; color: var(--text-dim); font-family: var(--font-body, inherit); }
|
|
.radio-task-facts { margin: .2rem 0 0; color: var(--live); }
|
|
.radio-task-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
|
|
.radio-task-actions .station-action { font-size: var(--font-xs); }
|
|
.radio-teletype {
|
|
flex: 1; min-height: 0; margin: 0; padding: .5rem .7rem; overflow-y: auto; overscroll-behavior: contain; list-style: none;
|
|
background: var(--scope); border: 1px solid var(--line); border-radius: var(--radius);
|
|
color: var(--caution); font: var(--font-md)/1.55 var(--font-mono); text-shadow: 0 0 .5rem color-mix(in srgb, var(--caution) 30%, transparent);
|
|
}
|
|
.radio-teletype li { display: grid; grid-template-columns: 6.5ch minmax(0, 1fr); gap: .9rem; padding: .05rem 0; }
|
|
.radio-teletype li:not(.latest) { opacity: .78; }
|
|
.radio-teletype .radio-stamp { color: var(--text-dim); }
|
|
.radio-teletype li.latest .radio-text::after { content: "\2588"; margin-left: .25ch; animation: pulse 1s steps(1) infinite; }
|
|
@media (min-width: 2400px) {
|
|
.radio-visual:not([hidden]) { grid-template-rows: minmax(0, 2fr) minmax(10rem, 1fr); }
|
|
.radio-rack { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
|
|
}
|
|
@media (max-width: 899px) {
|
|
.radio-visual:not([hidden]) { display: flex; flex-direction: column; }
|
|
.radio-rack { display: flex; flex-direction: column; }
|
|
.radio-scope-frame { flex: none; height: min(70vw, 22rem); }
|
|
.radio-teletype { max-height: 18rem; }
|
|
.radio-lower { display: flex; flex-direction: column; }
|
|
.radio-tasks { max-height: 22rem; }
|
|
}
|
|
|
|
/* Submarine engine room: a machinery control console. An annunciator panel
|
|
of status lamps (dark when off, turquoise running, amber caution, red
|
|
alarm), round gauges, tank columns and the compartment mimic, in the radio
|
|
rack's device fronts. */
|
|
.engine-console:not([hidden]) { display: flex; flex-direction: column; gap: .55rem; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
|
|
.console-lamps { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .3rem; }
|
|
.console-lamp {
|
|
display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0 .5rem;
|
|
padding: .3rem .45rem; min-width: 0; background: var(--scope); border: 1px solid var(--line); border-radius: var(--radius);
|
|
--lamp: var(--line);
|
|
}
|
|
.console-led {
|
|
grid-row: 1 / 3; width: .85rem; height: .85rem; border-radius: 50%;
|
|
background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--lamp) 55%, var(--text)), var(--lamp) 60%);
|
|
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lamp) 60%, var(--bg-0));
|
|
}
|
|
.console-lamp-label { overflow: hidden; color: var(--text-dim); font-size: var(--font-xs); letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
|
|
.console-lamp-value { overflow: hidden; color: var(--text-faint); font: var(--font-sm) var(--font-mono); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
|
|
.console-lamp[data-level="on"] { --lamp: var(--live); border-color: color-mix(in srgb, var(--live) 35%, var(--line)); }
|
|
.console-lamp[data-level="caution"] { --lamp: var(--caution); border-color: var(--caution); background: var(--caution-bg); }
|
|
.console-lamp[data-level="alarm"] { --lamp: var(--alarm); border-color: var(--alarm); background: var(--alarm-bg); }
|
|
.console-lamp:not([data-level="off"]) .console-led { box-shadow: 0 0 .55rem var(--lamp), inset 0 0 0 1px var(--lamp); }
|
|
.console-lamp:not([data-level="off"]) .console-lamp-label { color: var(--text); }
|
|
.console-lamp[data-level="on"] .console-lamp-value { color: var(--live); }
|
|
.console-lamp[data-level="caution"] .console-lamp-value { color: var(--caution); }
|
|
.console-lamp[data-level="alarm"] .console-lamp-value { color: var(--alarm); }
|
|
.console-lamp[data-level="alarm"] .console-led { animation: pulse .9s steps(1) infinite; }
|
|
#uboot-engine-master[data-state="caution"], #engine-master[data-state="caution"], #damage-master[data-state="caution"] { color: var(--caution); }
|
|
#uboot-engine-master[data-state="alarm"], #engine-master[data-state="alarm"], #damage-master[data-state="alarm"] { color: var(--alarm); }
|
|
.console-annunciator, .console-dials { flex: none; }
|
|
.console-dials .radio-scope-frame { flex: none; height: clamp(10rem, 22vh, 17rem); }
|
|
.console-lower { display: grid; flex: 1 0 13rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: .55rem; min-height: 13rem; }
|
|
.console-tanks-unit, .console-mimic { min-height: 0; }
|
|
.console-tanks { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .35rem; flex: 1; min-height: 9rem; }
|
|
.console-tank { display: grid; grid-template-rows: auto minmax(4rem, 1fr) auto; justify-items: center; gap: .25rem; min-width: 0; --tank: var(--live); }
|
|
.console-tank[data-level="caution"] { --tank: var(--caution); }
|
|
.console-tank[data-level="alarm"] { --tank: var(--alarm); }
|
|
.console-tank-label, .console-tank-value { max-width: 100%; overflow: hidden; text-align: center; text-overflow: ellipsis; }
|
|
.console-tank-value { white-space: nowrap; }
|
|
.console-tank-label { display: flex; align-items: flex-end; justify-content: center; min-height: 2.3em; color: var(--text-dim); font-size: .66rem; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; }
|
|
.console-tank-value { color: var(--text); font: 600 clamp(.66rem, .5vw + .3rem, var(--font-sm)) var(--font-mono); font-variant-numeric: tabular-nums; }
|
|
.console-tank[data-level="caution"] .console-tank-value { color: var(--caution); }
|
|
.console-tank[data-level="alarm"] .console-tank-value { color: var(--alarm); }
|
|
.console-tank-tube {
|
|
position: relative; width: min(100%, 2.6rem); height: 100%; overflow: hidden; background: var(--scope);
|
|
border: 1px solid var(--line-strong); border-radius: 3px;
|
|
background-image: repeating-linear-gradient(to top, transparent 0 calc(10% - 1px), var(--line-faint) calc(10% - 1px) 10%);
|
|
}
|
|
.console-tank-fill { position: absolute; left: 2px; right: 2px; bottom: 0; height: var(--fill, 0%); background: linear-gradient(to top, color-mix(in srgb, var(--tank) 45%, var(--bg-0)), var(--tank)); box-shadow: 0 0 .5rem color-mix(in srgb, var(--tank) 40%, transparent); }
|
|
.console-tank[data-centred="true"] .console-tank-tube::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--text-dim); }
|
|
.console-tank[data-centred="true"][data-sign="plus"] .console-tank-fill { bottom: 50%; }
|
|
.console-tank[data-centred="true"][data-sign="minus"] .console-tank-fill { top: 50%; bottom: auto; background: linear-gradient(to bottom, color-mix(in srgb, var(--tank) 45%, var(--bg-0)), var(--tank)); }
|
|
.console-rooms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 3px; flex: 1; min-height: 9rem; padding: .35rem; background: var(--scope); border: 1px solid var(--line); border-radius: 2.2rem 1rem 1rem 2.2rem; }
|
|
.console-room {
|
|
position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem;
|
|
min-width: 0; padding: .45rem .15rem; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 3px;
|
|
}
|
|
.console-room:first-child { border-radius: 2rem 3px 3px 2rem; }
|
|
.console-room:last-child { border-radius: 3px .8rem .8rem 3px; }
|
|
.console-room-water { position: absolute; left: 0; right: 0; bottom: 0; height: var(--water, 0%); background: color-mix(in srgb, var(--info) 35%, transparent); border-top: 1px solid var(--info); }
|
|
.console-room > :not(.console-room-water) { position: relative; }
|
|
.console-room-name { max-width: 100%; overflow: hidden; color: var(--text); font-size: .68rem; font-weight: 650; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
|
|
.console-room-value, .console-room-team { color: var(--text-dim); font: var(--font-xs) var(--font-mono); text-align: center; }
|
|
.console-room-team { min-height: 1.3em; color: var(--live); }
|
|
.console-room-leds { margin-top: auto; }
|
|
.console-room-leds { display: grid; gap: .25rem; width: 100%; padding: 0 .2rem; }
|
|
.console-room-led { display: flex; align-items: center; gap: .3rem; overflow: hidden; color: var(--text-faint); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; --lamp: var(--line); }
|
|
.console-room-led::before { content: ""; flex: 0 0 auto; width: .55rem; height: .55rem; border-radius: 50%; background: var(--lamp); }
|
|
.console-room-led[data-level="on"] { --lamp: var(--live); color: var(--text-dim); }
|
|
.console-room-led[data-level="caution"] { --lamp: var(--caution); color: var(--caution); }
|
|
.console-room-led[data-level="alarm"] { --lamp: var(--alarm); color: var(--alarm); }
|
|
.console-room-led:not([data-level="off"])::before { box-shadow: 0 0 .4rem var(--lamp); }
|
|
.console-room[data-down="true"] { border-color: var(--alarm); box-shadow: inset 0 0 0 1px var(--alarm); }
|
|
.console-room[data-down="true"] .console-room-value { color: var(--alarm); }
|
|
/* Frigate: one fuel bunker with its readouts, and the ship's sections from bow
|
|
to stern between the two hull sides (starboard above, port below). */
|
|
.console-lower-ship { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); }
|
|
.console-fuel-unit { min-height: 0; }
|
|
.console-fuel { display: grid; grid-template-columns: minmax(3.5rem, auto) minmax(0, 1fr); gap: .55rem; flex: 1; min-height: 9rem; }
|
|
.console-readouts { display: grid; align-content: space-evenly; gap: .3rem; min-width: 0; }
|
|
.console-readout { display: grid; gap: .05rem; min-width: 0; padding: .25rem .45rem; background: var(--scope); border: 1px solid var(--line); border-radius: var(--radius); }
|
|
.console-readout span { overflow: hidden; color: var(--text-dim); font-size: .62rem; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
|
|
.console-readout strong { overflow: hidden; color: var(--live); font: 600 var(--font-sm) var(--font-mono); font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
|
|
/* The boat's engine room: the cutaway drawing (damage-section.js) with a
|
|
compact row of names, water and teams under its compartments, stern left. */
|
|
.console-mimic:has(.console-cutaway) { display: flex; flex-direction: column; }
|
|
.console-cutaway { display: block; width: 100%; flex: 1 1 8rem; min-height: 8rem; }
|
|
.console-rooms.console-cutaway-rooms { flex: 0 0 auto; min-height: 0; grid-template-columns: .14fr .2fr .17fr .15fr .18fr .16fr; padding: .2rem 11% .2rem 7%; background: none; border: 0; border-radius: 0; }
|
|
.console-cutaway-rooms .console-room { border-radius: 3px; min-height: 0; padding: .15rem .1rem; }
|
|
.console-cutaway-rooms .console-room-water, .console-cutaway-rooms .console-room-leds { display: none; }
|
|
.console-cutaway-rooms [data-key="stern"] { order: 1; } .console-cutaway-rooms [data-key="engine"] { order: 2; }
|
|
.console-cutaway-rooms [data-key="battery"] { order: 3; } .console-cutaway-rooms [data-key="quarters"] { order: 4; }
|
|
.console-cutaway-rooms [data-key="control"] { order: 5; } .console-cutaway-rooms [data-key="bow"] { order: 6; }
|
|
.console-rooms.console-ship { grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto minmax(8rem, 1fr) auto; border-radius: 3.2rem 1rem 1rem 3.2rem; }
|
|
.console-ship .console-room[data-side] { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; gap: .6rem; padding: .25rem .6rem; border-radius: 3px; }
|
|
.console-ship .console-room[data-side] .console-room-leds { display: flex; width: auto; margin: 0; }
|
|
.console-ship .console-room:not([data-side]) { border-radius: 3px; }
|
|
.console-ship .console-room[data-key="sonar"] { border-radius: 2.6rem 3px 3px 2.6rem; }
|
|
.console-ship .console-room[data-key="flightdeck"] { border-radius: 3px .8rem .8rem 3px; }
|
|
.console-ship .console-room[data-side="starboard"] { border-radius: 2.6rem .8rem 3px 3px; }
|
|
.console-ship .console-room[data-side="port"] { border-radius: 3px 3px .8rem 2.6rem; }
|
|
@media (max-width: 899px) {
|
|
.engine-console:not([hidden]) { display: flex; flex-direction: column; }
|
|
.console-dials .radio-scope-frame { height: min(80vw, 22rem); }
|
|
.console-lower { display: flex; flex-direction: column; }
|
|
.console-rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 1rem; }
|
|
.console-rooms.console-ship { grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 1rem; }
|
|
.console-fuel { grid-template-columns: 1fr; }
|
|
.console-room:first-child, .console-room:last-child { border-radius: 3px; }
|
|
}
|
|
|
|
/* Lists duplicated by the contacts dock stay out of the station dock. */
|
|
body.workstation-mode .station-grid > :has(#bridge-tactical),
|
|
body.workstation-mode .station-grid > :has(#sonar-observations),
|
|
body.workstation-mode .station-grid > :has(#opz-observations),
|
|
body.workstation-mode .station-grid > :has(#radio-observations) { display: none; }
|
|
body.workstation-mode .bridge-order-heading p, body.workstation-mode #bridge-order-values { display: none; }
|
|
body.workstation-mode .station-list { display: block; max-height: none; overflow: visible; }
|
|
body.workstation-mode .station-list > .station-row + .station-row { margin-top: .35rem; }
|
|
/* Station cards flow into as many columns as the dock is wide (two on
|
|
2560 px and 4K monitors, one on a 1920 px screen). */
|
|
body.workstation-mode .station-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); align-content: start; }
|
|
body.workstation-mode .station-grid > .station-controls, body.workstation-mode .station-grid > .direct-fire-controls { grid-column: 1 / -1; }
|
|
|
|
/* A just-switched station shows its cached picture; dim it only if the fresh
|
|
state takes noticeably long, so a normal switch does not flicker. */
|
|
body[data-role-stale="true"] .stage, body[data-role-stale="true"] .dock-right { opacity: .55; transition: opacity .15s ease .3s; }
|
|
|
|
/* Crewed-submarine torpedo alarm tints the whole frame. */
|
|
body.uboot-torpedo-alarm .statusbar { border-bottom-color: var(--alarm); box-shadow: inset 0 -2px 0 var(--alarm); }
|
|
|
|
/* Detached sonar plot window (?scope=...): only the plot. */
|
|
body[data-sonar-scope][data-remote-role="assigned"] #shell { grid-template-rows: minmax(0, 1fr); }
|
|
body[data-sonar-scope][data-remote-role="assigned"] .statusbar,
|
|
body[data-sonar-scope][data-remote-role="assigned"] .alert-band,
|
|
body[data-sonar-scope][data-remote-role="assigned"] .tablist,
|
|
body[data-sonar-scope][data-remote-role="assigned"] .dock,
|
|
body[data-sonar-scope][data-remote-role="assigned"] .drawer,
|
|
body[data-sonar-scope][data-remote-role="assigned"] #station-command-status,
|
|
body[data-sonar-scope][data-remote-role="assigned"] #sonar-page-tabs { display: none !important; }
|
|
body[data-sonar-scope][data-remote-role="assigned"] .cic-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); grid-template-areas: "stage"; }
|
|
|
|
@media (max-width: 899px) {
|
|
.stage { overflow: visible; }
|
|
.role-visuals { overflow: visible; }
|
|
.stage .role-canvas { flex: none; height: min(54svh, 22rem); }
|
|
.role-map-frame { flex: none; height: min(54svh, 22rem); }
|
|
.sonar-plots[data-layout="overview"], .sonar-plots[data-layout="overview-wide"] { display: flex; flex-direction: column; }
|
|
.sonar-active-plots { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
|
|
.sonar-active-plots > canvas { height: 18rem !important; }
|
|
.sonar-band-plots { grid-template-columns: minmax(0, 1fr); flex-basis: auto; }
|
|
.helicopter-acoustic-workspace { display: flex; flex-direction: column; }
|
|
.helicopter-acoustic-plots { min-height: 16rem; }
|
|
.role-visuals[data-split="on"] { display: flex; }
|
|
}
|
|
|
|
/* Sonar listening console: annunciator lamps and a north-up bearing rose
|
|
(listening beam, baffles astern, contact bearings), then framed plots. */
|
|
.sonar-console { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; align-items: center; gap: .5rem; flex: 0 0 auto; padding-bottom: .35rem; }
|
|
.sonar-lamps { grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); align-content: center; }
|
|
.sonar-rose-frame { height: 7.5rem; min-width: 0; }
|
|
.sonar-rose-frame > canvas { width: 100%; height: 100% !important; }
|
|
.sonar-console .visual-equivalent { grid-column: 1 / -1; }
|
|
.sonar-plots > section:not([hidden]) {
|
|
--bracket: color-mix(in srgb, var(--live) 55%, transparent);
|
|
padding: .3rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
|
|
background:
|
|
linear-gradient(var(--bracket), var(--bracket)) top left / .8rem 2px no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) top left / 2px .8rem no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) top right / .8rem 2px no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) top right / 2px .8rem no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) bottom left / .8rem 2px no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) bottom left / 2px .8rem no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) bottom right / .8rem 2px no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) bottom right / 2px .8rem no-repeat,
|
|
var(--scope);
|
|
}
|
|
@media (max-width: 720px) { .sonar-console { grid-template-columns: minmax(0, 1fr); } .sonar-rose-frame { height: 9rem; } }
|
|
|
|
/* Helicopter sonar: lamps and the dipping scope in the rail, framed plots. */
|
|
.helicopter-lamps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: .4rem; }
|
|
.helicopter-scope-frame { flex: 0 0 13rem; min-height: 0; margin-bottom: .4rem; }
|
|
.helicopter-scope-frame > canvas { width: 100%; height: 100% !important; }
|
|
.helicopter-acoustic-plots > div:not([hidden]), .helicopter-acoustic-rail {
|
|
--bracket: color-mix(in srgb, var(--live) 55%, transparent);
|
|
padding: .3rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
|
|
background:
|
|
linear-gradient(var(--bracket), var(--bracket)) top left / .8rem 2px no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) top left / 2px .8rem no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) top right / .8rem 2px no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) top right / 2px .8rem no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) bottom left / .8rem 2px no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) bottom left / 2px .8rem no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) bottom right / .8rem 2px no-repeat,
|
|
linear-gradient(var(--bracket), var(--bracket)) bottom right / 2px .8rem no-repeat,
|
|
var(--scope);
|
|
}
|
|
/* The plot frames only show the brackets: the waterfalls keep their height. */
|
|
.helicopter-acoustic-plots > div:not([hidden]) { padding: 2px; border-color: transparent; }
|