SOURCE / PINNED RELEASE
Made of little things.
City Breaker
- Release
- 94d2b8664b10…
- Author-recorded commit
- df23103cbcc1…
- License
- LICENSE
- Author’s source reference
- nostr://npub1sj2vketepqw9v6fmge5fdzuj7atj9sv6qv2jss05n2z6rl64lcfqumdsnt/wss%3A%2F%2Fgit.napplet.soy%2F/n-cf8b858653e
Archive hash verified: eeeed725668c1ece…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
/*
City Breaker — DEFCON vector command post.
App-owned palette (FOLLOW_HOST_THEME = false): phosphor cyan on near-black,
amber for the living city, red for hostile, green for good news.
*/
:root {
--bg: #03080a;
--panel: rgba(6, 18, 22, 0.92);
--panel-2: #08161b;
--fg: #bfe9f2;
--dim: #6d97a1;
--line: rgba(95, 211, 255, 0.28);
--cyan: #5fd3ff;
--amber: #ffb347;
--red: #ff4a3a;
--green: #7dffa0;
--paper: #e9e3d2;
--ink: #1b1915;
--tap: 44px;
--mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
color-scheme: dark;
font: 14px/1.45 var(--mono);
}
* {
box-sizing: border-box;
}
:where(html, body, body *) {
-webkit-user-select: none;
user-select: none;
}
:where(input, textarea, select, [data-napplet-select="text"]) {
-webkit-user-select: text;
user-select: text;
}
html,
body,
#app {
height: 100%;
margin: 0;
background: var(--bg);
color: var(--fg);
}
body {
overflow: hidden;
-webkit-tap-highlight-color: transparent;
}
#app {
position: relative;
overflow: hidden;
}
button,
select,
input {
font: inherit;
color: inherit;
}
button {
min-height: 36px;
padding: 6px 12px;
border: 1px solid var(--line);
border-radius: 2px;
background: rgba(95, 211, 255, 0.06);
color: var(--fg);
letter-spacing: 0.04em;
cursor: pointer;
touch-action: manipulation;
}
button:hover:not(:disabled) {
background: rgba(95, 211, 255, 0.14);
border-color: var(--cyan);
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
outline: 2px solid var(--amber);
outline-offset: 2px;
}
button:disabled {
opacity: 0.4;
cursor: not-allowed;
}
button.primary {
border-color: var(--amber);
background: rgba(255, 179, 71, 0.14);
color: #ffe2b8;
text-transform: uppercase;
}
button.primary:hover:not(:disabled) {
background: rgba(255, 179, 71, 0.26);
border-color: #ffd08a;
}
button.danger {
border-color: var(--red);
color: #ffc2bb;
background: rgba(255, 74, 58, 0.1);
}
button.big {
min-height: 48px;
font-size: 1.05rem;
}
button.chip {
min-height: 30px;
padding: 3px 9px;
font-size: 0.8rem;
}
button.icon {
min-width: 36px;
padding: 0;
}
select {
min-height: 36px;
max-width: 100%;
padding: 4px 6px;
border: 1px solid var(--line);
border-radius: 2px;
background: var(--panel-2);
}
@media (pointer: coarse) {
button,
select {
min-height: var(--tap);
}
}
h2,
h3 {
margin: 0.9em 0 0.4em;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
}
h2 {
font-size: 1.05rem;
color: var(--amber);
}
h3 {
font-size: 0.78rem;
color: var(--cyan);
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
p {
margin: 0.4em 0;
}
.note {
color: var(--dim);
font-size: 0.82rem;
}
.warn {
color: #ffb3a8;
font-size: 0.85rem;
margin: 0.25em 0;
}
.good {
color: var(--green);
}
.bad {
color: var(--red);
}
.row {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.col {
display: flex;
flex-direction: column;
gap: 8px;
}
label {
display: inline-flex;
flex-direction: column;
gap: 2px;
font-size: 0.75rem;
color: var(--dim);
letter-spacing: 0.05em;
text-transform: uppercase;
}
label.check {
flex-direction: row;
align-items: center;
gap: 6px;
text-transform: none;
font-size: 0.85rem;
color: var(--fg);
min-height: 36px;
}
label.check input {
width: 18px;
height: 18px;
accent-color: var(--amber);
}
.screen {
position: absolute;
inset: 0;
overflow: hidden;
}
/* Bars & key-value lists ─────────────────────────────────────────────── */
.bar {
display: inline-block;
flex: 1 1 auto;
min-width: 60px;
height: 7px;
border: 1px solid var(--line);
background: rgba(0, 0, 0, 0.4);
vertical-align: middle;
}
.bar > span {
display: block;
height: 100%;
background: var(--cyan);
box-shadow: 0 0 8px rgba(95, 211, 255, 0.5);
}
.bar.amber > span {
background: var(--amber);
box-shadow: 0 0 8px rgba(255, 179, 71, 0.5);
}
.bar.red > span {
background: var(--red);
box-shadow: 0 0 8px rgba(255, 74, 58, 0.5);
}
.kv {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 3px;
}
.kv li {
display: flex;
justify-content: space-between;
align-items: center;
gap: 10px;
font-size: 0.85rem;
}
.kv li > span:first-child {
color: var(--dim);
flex: 0 1 auto;
}
.kv.bars li > span:first-child {
flex: 0 0 45%;
}
.kv.small li {
font-size: 0.75rem;
}
/* Title ──────────────────────────────────────────────────────────────── */
.title {
display: grid;
place-items: center;
overflow-y: auto;
background:
radial-gradient(ellipse at 50% 120%, rgba(255, 120, 40, 0.18), transparent 60%),
repeating-linear-gradient(0deg, rgba(95, 211, 255, 0.035) 0 1px, transparent 1px 28px),
repeating-linear-gradient(90deg, rgba(95, 211, 255, 0.035) 0 1px, transparent 1px 28px),
var(--bg);
}
.title-in {
width: min(560px, 100%);
padding: 24px 20px;
}
.title-k {
color: var(--amber);
letter-spacing: 0.3em;
font-size: 0.78rem;
}
.title-t {
font-size: clamp(2.6rem, 13vw, 5.6rem);
line-height: 0.92;
font-weight: 800;
letter-spacing: 0.06em;
margin: 10px 0 14px;
color: #e8fbff;
text-shadow: 0 0 18px rgba(95, 211, 255, 0.55), 0 0 2px #fff;
}
.title-p {
color: var(--fg);
max-width: 48ch;
}
.title .col {
margin: 18px 0 12px;
max-width: 340px;
}
/* HQ ─────────────────────────────────────────────────────────────────── */
.hq-grid {
position: absolute;
inset: 0;
display: grid;
grid-template-rows: auto minmax(0, 1fr) auto auto;
}
.hq-bar {
display: flex;
flex-wrap: wrap;
gap: 4px 18px;
align-items: center;
padding: 6px 10px;
border-bottom: 1px solid var(--line);
background: var(--panel);
}
.hq-bar .clock {
display: flex;
flex-direction: column;
line-height: 1.15;
}
.hq-bar .clock b {
color: #e8fbff;
font-size: 1.05rem;
}
.hq-bar .clock span,
.meter .k {
color: var(--dim);
font-size: 0.68rem;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.meter {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.meter b {
font-size: 1.05rem;
color: #e8fbff;
}
.meter .bar {
width: 70px;
flex: 0 0 70px;
}
.roe {
font-size: 0.7rem;
color: var(--amber);
border: 1px solid rgba(255, 179, 71, 0.4);
padding: 1px 5px;
letter-spacing: 0.06em;
}
.roe.lb {
color: var(--red);
border-color: var(--red);
}
.spark {
width: 60px;
height: 16px;
}
.spark polyline {
fill: none;
stroke: var(--amber);
stroke-width: 1.2;
}
.spark .goal {
stroke: var(--green);
stroke-dasharray: 2 2;
stroke-width: 0.8;
}
.hq-main {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr) 340px;
min-height: 0;
}
.map-wrap {
position: relative;
min-height: 0;
min-width: 0;
}
.strat-canvas,
.mission-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
display: block;
touch-action: none;
}
.map-ctl {
position: absolute;
top: 8px;
left: 8px;
display: flex;
gap: 6px;
z-index: 2;
}
.side-toggle {
display: none;
}
.hq-side {
border-left: 1px solid var(--line);
background: var(--panel);
display: flex;
flex-direction: column;
min-height: 0;
}
.tabs {
display: flex;
border-bottom: 1px solid var(--line);
overflow-x: auto;
}
.tab {
flex: 1 0 auto;
border: 0;
border-bottom: 2px solid transparent;
background: transparent;
font-size: 0.75rem;
text-transform: uppercase;
padding: 6px 8px;
}
.tab.on {
border-bottom-color: var(--amber);
color: #ffe2b8;
}
.side-body {
overflow-y: auto;
padding: 4px 12px 16px;
flex: 1;
}
.side-body button.primary,
.side-body button.danger {
width: 100%;
margin-top: 10px;
}
.hq-actions {
display: flex;
gap: 6px;
padding: 6px 8px;
border-top: 1px solid var(--line);
background: var(--panel);
overflow-x: auto;
}
.hq-actions button {
flex: 1 0 auto;
}
.ticker {
overflow: hidden;
white-space: nowrap;
background: var(--paper);
color: var(--ink);
font: 600 0.78rem/1.9 Georgia, "Times New Roman", serif;
border-top: 2px solid #000;
}
.ticker-in {
display: inline-block;
padding-left: 100%;
animation: ticker 70s linear infinite;
}
@keyframes ticker {
to {
transform: translateX(-100%);
}
}
.fleet {
width: 100%;
border-collapse: collapse;
font-size: 0.75rem;
margin-top: 8px;
}
.fleet th,
.fleet td {
text-align: left;
padding: 3px 4px;
border-bottom: 1px solid rgba(95, 211, 255, 0.1);
font-weight: normal;
}
.fleet thead th {
color: var(--dim);
text-transform: uppercase;
font-size: 0.68rem;
}
.fleet td .bar {
min-width: 40px;
width: 40px;
}
.masthead {
font: 700 1.1rem/1.2 Georgia, "Times New Roman", serif;
letter-spacing: 0.04em;
margin: 10px 0 6px;
color: var(--paper);
}
.news {
list-style: none;
padding: 0;
margin: 0;
display: grid;
gap: 8px;
font-size: 0.83rem;
}
.news time {
color: var(--dim);
font-size: 0.72rem;
display: block;
}
.news .n-hq {
color: #ffe2b8;
}
.news .n-moral {
color: #ffb3a8;
}
.news .n-intel {
color: var(--cyan);
}
.crews {
list-style: none;
padding: 0;
display: grid;
gap: 10px;
font-size: 0.85rem;
}
/* Planner ────────────────────────────────────────────────────────────── */
.plan-grid {
position: absolute;
inset: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) 440px;
}
.plan-map {
position: relative;
min-height: 0;
}
.plan-form {
overflow-y: auto;
border-left: 1px solid var(--line);
background: var(--panel);
padding: 0 14px 24px;
}
.plan-head {
position: sticky;
top: 0;
z-index: 2;
display: flex;
align-items: center;
gap: 10px;
padding: 8px 0;
background: var(--panel);
border-bottom: 1px solid var(--line);
}
.plan-head b {
flex: 1;
letter-spacing: 0.12em;
text-transform: uppercase;
color: var(--amber);
}
.plan-form section {
border-bottom: 1px dashed rgba(95, 211, 255, 0.15);
padding-bottom: 10px;
}
.plan-form section > label {
margin: 4px 8px 4px 0;
}
.seg {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.seg label {
flex: 1 1 auto;
flex-direction: row;
justify-content: center;
align-items: center;
min-height: 36px;
padding: 4px 8px;
border: 1px solid var(--line);
color: var(--fg);
text-transform: none;
font-size: 0.82rem;
cursor: pointer;
}
.seg label.on {
border-color: var(--amber);
background: rgba(255, 179, 71, 0.12);
color: #ffe2b8;
}
.seg input {
position: absolute;
opacity: 0;
pointer-events: none;
}
.flight {
border: 1px solid var(--line);
padding: 6px 8px;
margin: 6px 0;
background: rgba(0, 0, 0, 0.25);
}
.flight.me {
border-color: var(--amber);
box-shadow: inset 3px 0 0 var(--amber);
}
.f-head,
.f-row {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
}
.f-head span {
flex: 1;
font-size: 0.8rem;
color: var(--dim);
}
.f-row {
margin-top: 6px;
}
.f-row select {
flex: 1 1 110px;
}
.f-note {
font-size: 0.72rem;
color: var(--dim);
margin-top: 4px;
}
.me-pick {
flex-direction: row;
align-items: center;
gap: 6px;
color: var(--fg);
font-size: 0.9rem;
text-transform: none;
min-height: 36px;
}
.me-pick input {
width: 18px;
height: 18px;
accent-color: var(--amber);
}
.stepper {
display: inline-flex;
align-items: center;
gap: 6px;
}
.stepper button {
min-width: 36px;
padding: 0;
}
.stepper b {
min-width: 2ch;
text-align: center;
}
.add-row {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 6px;
}
.timeline {
position: relative;
padding: 18px 0 4px;
}
.tl-zero {
position: absolute;
top: 0;
bottom: 0;
border-left: 1px dashed var(--amber);
}
.tl-zero span {
position: absolute;
top: 0;
left: 4px;
font-size: 0.65rem;
color: var(--amber);
}
.tl-row {
position: relative;
height: 22px;
font-size: 0.7rem;
}
.tl-l {
position: absolute;
left: 0;
top: 4px;
color: var(--dim);
}
.tl-t {
position: absolute;
right: 0;
top: 4px;
color: var(--dim);
}
.tl-dot {
position: absolute;
top: 7px;
width: 10px;
height: 10px;
margin-left: -5px;
border-radius: 50%;
background: var(--cyan);
box-shadow: 0 0 8px var(--cyan);
}
.tl-dot.r-strike {
background: var(--amber);
box-shadow: 0 0 8px var(--amber);
}
.tl-dot.r-weasel {
background: var(--red);
box-shadow: 0 0 8px var(--red);
}
.summary .launch {
margin-top: 12px;
}
.summary .launch button {
flex: 1 1 160px;
}
.roe-box {
border: 1px solid rgba(255, 74, 58, 0.4);
padding: 4px 8px;
margin: 6px 0;
}
/* Mission ────────────────────────────────────────────────────────────── */
.mission {
background: #000;
}
.mission-overlay {
position: absolute;
inset: 0;
pointer-events: none;
}
.mission-overlay button {
pointer-events: auto;
}
.hud-top {
position: absolute;
top: 8px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 6px;
}
.tbtn {
background: rgba(3, 10, 12, 0.7);
font-size: 0.75rem;
}
.tbtn.small {
min-height: 32px;
min-width: 44px;
padding: 2px 8px;
}
.touch-stick,
.touch-btns {
display: none;
}
@media (pointer: coarse) {
.touch-stick {
display: block;
position: absolute;
left: max(16px, env(safe-area-inset-left));
bottom: max(24px, env(safe-area-inset-bottom));
width: 132px;
height: 132px;
border: 1px solid rgba(95, 211, 255, 0.35);
border-radius: 50%;
background: rgba(3, 10, 12, 0.35);
pointer-events: auto;
touch-action: none;
}
.stick-knob {
position: absolute;
left: 50%;
top: 50%;
width: 52px;
height: 52px;
margin: -26px 0 0 -26px;
border-radius: 50%;
border: 1px solid var(--cyan);
background: rgba(95, 211, 255, 0.18);
}
.touch-btns {
display: grid;
position: absolute;
right: max(14px, env(safe-area-inset-right));
bottom: max(24px, env(safe-area-inset-bottom));
grid-template-columns: 64px 64px;
grid-template-areas: "chaff alt" "fire fire";
gap: 10px;
}
.touch-btns .tbtn {
min-height: 56px;
touch-action: none;
}
.touch-btns [data-act="chaff"] {
grid-area: chaff;
}
.touch-btns [data-act="alt"] {
grid-area: alt;
}
.touch-btns .fire {
grid-area: fire;
min-height: 72px;
border-color: var(--amber);
color: #ffe2b8;
font-size: 1rem;
}
}
.mission-banner {
position: absolute;
inset: 0;
display: grid;
place-items: center;
background: rgba(0, 0, 0, 0.55);
padding: 12px;
overflow-y: auto;
}
.mission-banner[hidden] {
display: none;
}
.brief {
width: min(520px, 100%);
border: 1px solid var(--line);
background: var(--panel);
padding: 14px 16px;
display: flex;
flex-direction: column;
gap: 8px;
}
.brief-k {
color: var(--dim);
font-size: 0.75rem;
letter-spacing: 0.08em;
}
.brief-t {
color: var(--amber);
font-size: 1.1rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.brief .keys {
font-size: 0.75rem;
color: var(--dim);
}
@media (pointer: coarse) {
.brief .keys {
display: none;
}
}
.mission-toast {
position: absolute;
top: 52px;
left: 50%;
transform: translateX(-50%);
max-width: min(560px, 92%);
padding: 8px 12px;
border: 1px solid var(--red);
background: rgba(20, 0, 0, 0.8);
color: #ffd2cc;
font-size: 0.85rem;
text-align: center;
pointer-events: none;
}
/* Aftermath ──────────────────────────────────────────────────────────── */
.aftermath,
.end {
overflow-y: auto;
}
.after {
padding: 12px 14px 24px;
max-width: 1280px;
margin: 0 auto;
}
.after header {
display: flex;
justify-content: space-between;
align-items: baseline;
border-bottom: 1px solid var(--line);
padding-bottom: 6px;
}
.after header .k {
color: var(--amber);
text-transform: uppercase;
letter-spacing: 0.12em;
}
.after-cols {
display: grid;
grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.9fr);
gap: 18px;
}
.photos {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 10px;
}
.photos figure {
margin: 0;
}
.photos canvas {
width: 100%;
height: auto;
aspect-ratio: 4 / 3;
border: 4px solid #d8d2c2;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.photos figcaption {
font-size: 0.72rem;
color: var(--fg);
margin-top: 4px;
}
.lost {
font-size: 0.82rem;
padding-left: 16px;
}
.captive {
border: 1px solid var(--line);
padding: 6px 8px;
margin: 6px 0;
}
.paper {
background: var(--paper);
color: var(--ink);
padding: 10px 14px 16px;
font-family: Georgia, "Times New Roman", serif;
align-self: start;
margin-top: 14px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}
.paper .masthead {
color: var(--ink);
text-align: center;
border-bottom: 3px double var(--ink);
font-size: 1.15rem;
margin: 0;
padding-bottom: 4px;
}
.paper-date {
text-align: center;
font-size: 0.7rem;
border-bottom: 1px solid var(--ink);
margin-bottom: 8px;
}
.paper h2 {
color: var(--ink);
text-transform: none;
letter-spacing: 0;
font-size: 1.15rem;
line-height: 1.2;
}
.paper p {
font-size: 0.85rem;
border-top: 1px solid rgba(0, 0, 0, 0.2);
padding-top: 4px;
}
.after footer {
margin-top: 18px;
display: flex;
justify-content: center;
}
/* End ────────────────────────────────────────────────────────────────── */
.end-in {
max-width: 1100px;
margin: 0 auto;
padding: 20px 16px 30px;
}
.end-k {
color: var(--dim);
letter-spacing: 0.14em;
font-size: 0.78rem;
}
.end-t {
font-size: clamp(1.6rem, 6vw, 2.8rem);
font-weight: 800;
color: #e8fbff;
text-shadow: 0 0 14px rgba(95, 211, 255, 0.5);
margin: 4px 0 8px;
}
.end-reason {
color: var(--amber);
}
.end-cols {
display: grid;
grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
gap: 20px;
margin: 16px 0 20px;
}
.stats {
border-collapse: collapse;
width: 100%;
font-size: 0.82rem;
}
.stats th {
text-align: left;
font-weight: normal;
color: var(--dim);
padding: 4px 6px 4px 0;
border-bottom: 1px solid rgba(95, 211, 255, 0.1);
}
.stats td {
text-align: right;
color: #e8fbff;
border-bottom: 1px solid rgba(95, 211, 255, 0.1);
}
.ussbs {
background: var(--paper);
color: var(--ink);
padding: 14px 18px;
font: 0.86rem/1.5 "Courier New", Courier, monospace;
}
.ussbs-k {
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.1em;
border-bottom: 1px solid var(--ink);
margin-bottom: 8px;
}
/* Modal & notices ────────────────────────────────────────────────────── */
.modal-back {
position: absolute;
inset: 0;
z-index: 20;
display: grid;
place-items: center;
padding: 12px;
background: rgba(0, 0, 0, 0.6);
}
.modal {
width: min(520px, 100%);
max-height: 100%;
overflow-y: auto;
border: 1px solid var(--line);
background: var(--panel);
padding: 4px 16px 16px;
}
.too-small {
position: fixed;
inset: 0;
z-index: 50;
display: flex;
flex-direction: column;
justify-content: center;
gap: 6px;
padding: 10px;
background: var(--bg);
color: var(--fg);
font-size: 12px;
}
.too-small[hidden] {
display: none;
}
.too-small b {
color: var(--amber);
letter-spacing: 0.2em;
}
/* Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
.after-cols {
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.paper {
grid-column: 1 / -1;
}
}
@media (max-width: 760px) {
.hq-main {
grid-template-columns: minmax(0, 1fr);
overflow: hidden;
}
.hq-bar .clock span,
.hq-bar .meter.small {
display: none;
}
.hq-bar .meter .k {
font-size: 0.6rem;
letter-spacing: 0.04em;
}
.hq-actions button {
padding: 6px 8px;
}
.hq-actions .long {
display: none;
}
.hq-side {
background: var(--panel-2);
}
.side-toggle {
display: inline-block;
}
.hq-side {
position: absolute;
inset: auto 0 0 0;
height: 62%;
border-left: 0;
border-top: 1px solid var(--line);
transform: translateY(102%);
transition: transform 0.2s ease;
z-index: 3;
}
.hq-side.open {
transform: none;
}
.hq-bar {
gap: 2px 12px;
padding: 4px 8px;
}
.meter .bar {
width: 44px;
flex-basis: 44px;
}
.spark {
display: none;
}
.plan-grid {
grid-template-columns: minmax(0, 1fr);
grid-template-rows: 30% minmax(0, 1fr);
}
.plan-form {
border-left: 0;
border-top: 1px solid var(--line);
}
.after-cols,
.end-cols {
grid-template-columns: minmax(0, 1fr);
}
}
@media (max-height: 460px) and (max-width: 1000px) {
.plan-grid {
grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
grid-template-rows: minmax(0, 1fr);
}
.plan-form {
border-top: 0;
border-left: 1px solid var(--line);
}
.ticker {
display: none;
}
}
@media (prefers-reduced-motion: reduce) {
.ticker-in {
animation-duration: 200s;
}
.hq-side {
transition: none;
}
}
@media (max-width: 560px) {
.hud-top {
left: auto;
right: 8px;
top: 210px;
transform: none;
flex-direction: column;
}
}
/* Tooltips ───────────────────────────────────────────────────────────── */
.tip {
position: fixed;
z-index: 100;
max-width: min(320px, 90vw);
padding: 7px 10px;
border: 1px solid var(--amber);
background: rgba(6, 14, 18, 0.96);
color: var(--fg);
font-size: 0.8rem;
line-height: 1.4;
pointer-events: none;
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
.tip b {
display: block;
color: #ffe2b8;
margin-bottom: 2px;
}
.tip em {
color: #ffb3a8;
font-style: normal;
}
.tip i {
color: var(--dim);
}
/* Title backdrop ─────────────────────────────────────────────────────── */
.title-canvas {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
z-index: 0;
}
.title-in {
position: relative;
z-index: 1;
background: linear-gradient(90deg, rgba(3, 8, 10, 0.88), rgba(3, 8, 10, 0.55) 70%, rgba(3, 8, 10, 0));
border-left: 2px solid var(--amber);
}
/* HQ pictures & legend ───────────────────────────────────────────────── */
.map-legend {
position: absolute;
top: 46px;
left: 8px;
z-index: 3;
width: min(330px, calc(100% - 16px));
padding: 8px 12px;
border: 1px solid var(--line);
background: rgba(4, 12, 16, 0.94);
font-size: 0.78rem;
}
.map-legend ul,
.legend ul {
list-style: none;
padding: 0;
margin: 6px 0;
display: grid;
gap: 4px;
}
.map-legend li,
.legend li {
display: flex;
gap: 8px;
align-items: flex-start;
}
.sw {
flex: 0 0 16px;
height: 12px;
margin-top: 3px;
border: 1px solid;
}
.sw.amber { border-color: #ffbe74; background: rgba(255, 180, 90, 0.35); }
.sw.pale { border-color: #9cc4d4; background: rgba(130, 170, 190, 0.3); }
.sw.hatch { border-color: #777; background: repeating-linear-gradient(45deg, #222 0 2px, #666 2px 4px); }
.sw.sam { border-color: #ff4a3a; border-radius: 50%; }
.sw.radar { border: 0; border-bottom: 2px dashed #ff4a3a; }
.sw.flow { border: 0; background: radial-gradient(circle, #e8f2f5 2px, transparent 3px) 0 50% / 6px 6px repeat-x; }
.sw.fire { border: 0; background: radial-gradient(circle, #ffb050, rgba(255, 90, 20, 0) 70%); }
.sw.heat { border: 0; background: radial-gradient(circle, #ff5a28 1.5px, transparent 2px) 0 0 / 5px 5px; }
.sw.decoy { border-color: #ffdc50; background: linear-gradient(45deg, transparent 45%, #ffdc50 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, #ffdc50 45% 55%, transparent 55%); }
.intel-photo,
.target-photo {
margin: 4px 0 8px;
}
.intel-photo img,
.target-photo img {
width: 100%;
display: block;
border: 3px solid #d8d2c2;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}
.intel-photo figcaption,
.target-photo figcaption {
font-size: 0.7rem;
color: var(--dim);
margin-top: 3px;
}
.mini-plane {
width: 40px;
height: 27px;
vertical-align: middle;
margin-right: 6px;
border: 1px solid rgba(95, 211, 255, 0.2);
}
.fleet tr[data-tip] {
cursor: help;
}
/* Planner pictures ───────────────────────────────────────────────────── */
.flight-pic {
width: 72px;
height: 48px;
border: 1px solid rgba(95, 211, 255, 0.25);
flex: 0 0 auto;
}
.you-tag {
font-style: normal;
font-size: 0.7rem;
color: #1a1206;
background: var(--amber);
padding: 0 4px;
margin-left: 4px;
}
.add-plane {
display: inline-flex;
align-items: center;
gap: 6px;
}
.add-plane img {
width: 36px;
height: 24px;
}
/* Mission chrome ─────────────────────────────────────────────────────── */
.brief.wide {
width: min(680px, 100%);
}
.brief-pics {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.brief-pics figure {
margin: 0;
flex: 1 1 200px;
}
.brief-pics img {
width: 100%;
display: block;
border: 3px solid #d8d2c2;
}
.brief-pics figcaption {
font-size: 0.72rem;
color: var(--dim);
margin-top: 3px;
}
.brief-keys {
list-style: none;
display: flex;
flex-wrap: wrap;
gap: 6px 14px;
padding: 0;
margin: 4px 0;
font-size: 0.78rem;
color: var(--dim);
}
kbd {
display: inline-block;
min-width: 1.6em;
padding: 1px 5px;
margin-right: 3px;
border: 1px solid var(--line);
border-bottom-width: 2px;
border-radius: 3px;
background: #0b1a20;
color: var(--fg);
font: inherit;
text-align: center;
}
@media (pointer: coarse) {
.brief-keys {
display: none;
}
}
.coach {
position: absolute;
left: 50%;
top: 84px;
transform: translateX(-50%);
width: min(520px, calc(100% - 20px));
padding: 8px 12px;
border: 1px solid #7dffa0;
background: rgba(4, 20, 10, 0.88);
color: #d8ffe2;
font-size: 0.85rem;
pointer-events: none;
z-index: 3;
}
.coach[hidden] {
display: none;
}
.coach-k {
display: inline-block;
background: #7dffa0;
color: #04140a;
font-weight: 700;
padding: 0 5px;
margin-right: 6px;
font-size: 0.72rem;
}
.legend {
position: absolute;
top: 48px;
left: 50%;
transform: translateX(-50%);
width: min(520px, calc(100% - 20px));
max-height: calc(100% - 120px);
overflow-y: auto;
padding: 10px 14px;
border: 1px solid var(--line);
background: rgba(4, 12, 16, 0.95);
font-size: 0.8rem;
pointer-events: auto;
z-index: 4;
}
.legend[hidden] {
display: none;
}
.lg {
flex: 0 0 16px;
height: 12px;
margin-top: 3px;
display: inline-block;
}
.lg.you { border: 2px solid #bff4ff; }
.lg.enemy { border: 2px solid #ff5a4a; border-radius: 50%; }
.lg.target { border: 2px solid #ffd36a; transform: rotate(45deg) scale(0.75); }
.lg.pipper { border: 2px solid #8cffaa; border-radius: 50%; }
.lg.sam { border: 1px dashed #ff4a3a; border-radius: 50%; background: radial-gradient(circle, #e8e4d8 2px, transparent 3px); }
.lg.missile { background: linear-gradient(90deg, #ffa040, #fff 40%, #fff 60%, transparent 60%); height: 4px; margin-top: 7px; }
.lg.flak { background: radial-gradient(circle, #111 4px, transparent 5px); }
.lg.radar { border-bottom: 2px solid #ff6a5a; border-left: 2px solid transparent; }
.lg.glow { background: radial-gradient(circle, #ffb050, rgba(255, 90, 20, 0) 70%); }
@media (max-width: 560px) {
.coach {
top: 208px;
left: 10px;
right: 62px;
width: auto;
transform: none;
font-size: 0.78rem;
}
.legend {
top: 160px;
}
}
/* Crew station buttons ───────────────────────────────────────────────── */
.crew-btns {
position: absolute;
left: 10px;
top: 190px;
display: grid;
grid-template-columns: repeat(2, 84px);
gap: 5px;
}
.crew-btns .tbtn {
min-height: 30px;
padding: 2px 6px;
font-size: 0.72rem;
}
@media (max-height: 620px) and (pointer: fine) {
.crew-btns {
display: none;
}
}
@media (pointer: coarse) {
.crew-btns {
left: auto;
top: auto;
right: max(14px, env(safe-area-inset-right));
bottom: calc(max(24px, env(safe-area-inset-bottom)) + 150px);
grid-template-columns: repeat(3, 44px);
}
.crew-btns .tbtn {
min-height: 40px;
padding: 0;
font-size: 0.62rem;
}
}
@media (max-width: 560px) and (pointer: fine) {
.crew-btns {
top: 250px;
grid-template-columns: repeat(3, 56px);
}
}
@media (max-width: 560px) {
.hud-top {
top: 216px;
}
.coach {
top: 214px;
}
}
/* Planner resources & analysis ───────────────────────────────────────── */
.res summary {
cursor: pointer;
font-size: 0.78rem;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--cyan);
margin: 0.9em 0 0.4em;
}
.res h4 {
font-size: 0.72rem;
color: var(--dim);
letter-spacing: 0.08em;
text-transform: uppercase;
margin: 10px 0 4px;
}
.res-planes {
display: grid;
gap: 6px;
}
.res-plane {
display: grid;
grid-template-columns: 84px minmax(0, 1fr) auto;
gap: 8px;
align-items: center;
border: 1px solid var(--line);
padding: 4px;
background: rgba(0, 0, 0, 0.25);
font-size: 0.75rem;
}
.res-plane img {
width: 84px;
height: 50px;
}
.res-info {
display: flex;
flex-direction: column;
gap: 1px;
min-width: 0;
}
.res-role {
color: var(--amber);
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.06em;
}
.mun-table {
width: 100%;
border-collapse: collapse;
font-size: 0.72rem;
}
.mun-table th,
.mun-table td {
padding: 3px 4px;
border-bottom: 1px solid rgba(95, 211, 255, 0.1);
text-align: left;
font-weight: normal;
}
.mun-table thead th {
color: var(--dim);
font-size: 0.65rem;
text-transform: uppercase;
}
.mun-table tr.rec th {
color: #ffe2b8;
}
.mun-table tr[data-tip] {
cursor: help;
}
.eff {
display: inline-block;
width: 34px;
height: 6px;
background: linear-gradient(90deg, var(--amber) calc(var(--v) * 100%), rgba(95, 211, 255, 0.12) 0);
}
.res-misc {
margin-top: 8px;
}
.analysis {
border: 1px solid rgba(255, 179, 71, 0.35);
background: rgba(255, 179, 71, 0.05);
padding: 6px 8px;
margin-top: 6px;
display: grid;
gap: 3px;
font-size: 0.78rem;
}
.an-row {
display: grid;
grid-template-columns: 92px minmax(0, 1fr);
gap: 8px;
}
.an-row > span:first-child {
color: var(--dim);
}
.caution {
color: #ffd27a;
font-size: 0.82rem;
margin: 0.25em 0;
}
.warn-txt {
color: #ffb347;
}
.chips-row {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 6px;
}
.pill {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 10px;
border: 1px solid var(--line);
border-radius: 999px;
font-size: 0.78rem;
}
.pill.night { border-color: #7a8cff; color: #c8d0ff; }
.pill.day { border-color: var(--amber); color: #ffe2b8; }
.pill.warn { border-color: #ff9a6a; color: #ffc9b0; }
.alt-diagram {
width: 100%;
max-width: 340px;
margin-top: 6px;
font: 600 11px var(--mono);
}
.alt-diagram .t { fill: var(--dim); }
.alt-diagram text { fill: #cfe9f0; }
.alt-diagram .sam path { fill: #ff6a5a; }
.alt-diagram .sc circle { fill: #ffd36a; }
.alt-diagram .flak circle { fill: #222; stroke: #ff9a6a; }
.alt-diagram .hit circle { fill: none; stroke: #8cffaa; stroke-width: 2; }
.alt-diagram .plane { fill: #e9fbff; }
