This commit is contained in:
latypov committed 2026-11-23 23:55:37 +07:00
commit 2ca7a264b3
53 files changed
+7113

No files matched your search

+165
View File
@@ -0,0 +1,165 @@
const width = 1080, height = 548;
const laneY = (lane) => (lane === "31R" ? 57 : 491);
const queueY = (lane) => (lane === "31R" ? 129 : 419);
const spread = (i, n, from, to) => n <= 1 ? (from + to) / 2 : from + ((to - from) * i) / (n - 1);
function geometry(b) {
const points = {};
const add = (id, x, y, angle, label) => (points[id] = { x, y, angle, label });
for (const lane of b.runways) {
const sy = laneY(lane), qy = queueY(lane);
add("D:" + lane + ":0", 987, sy, -90, "D");
for (let n = 1; n < b.queue_capacity; n++)
add("D:" + lane + ":" + n, spread(n - 1, b.queue_capacity - 1, 949, 670), qy, 90, "D" + n);
}
for (let n = 0; n < b.ab_stands; n++) {
const upper = n < Math.ceil(b.ab_stands / 2), count = upper ? Math.ceil(b.ab_stands / 2) : Math.floor(b.ab_stands / 2);
add("A:B" + (n + 1), spread(upper ? n : n - Math.ceil(b.ab_stands / 2), count, 440, 600), upper ? 215 : 332, upper ? 180 : 0, "A" + (n + 1));
}
for (let n = 0; n < b.b_stands; n++)
add("B:B" + (n + 1), spread(n, b.b_stands, 410, 638), n % 2 ? 371 : 176, 90, "B" + (n + 1));
for (let n = 0; n < b.ac_stands; n++) {
const x = spread(n, b.ac_stands, 116, 258);
add("A:C" + (n + 1), x, 260, 0, "A" + (n + 1));
add("C:C" + (n + 1), x, 311, 180, "C" + (n + 1));
}
for (const lane of b.runways) {
const upper = lane === "31R";
add("V1:" + lane, 834, upper ? 231 : 317, 90, "VIP1");
add("V2:" + lane, 914, upper ? 231 : 317, 90, "VIP2");
}
return points;
}
function runway(lane, weather) {
const y = laneY(lane);
const bars = Array.from({ length: 6 }, (_, i) => '<path d="M54 ' +
(y - 13 + i * 5) +
"h31 M1026 " +
(y - 13 + i * 5) +
'h-30"/>').join("");
const lights = Array.from({ length: 24 }, (_, i) => '<path d="M' + (44 + i * 43) + " " + (y - 22) + 'v2 m0 40v2"/>').join("");
return `<g><rect x="28" y="${y - 25}" width="1024" height="50" rx="5" fill="#687773" stroke="#92a492" stroke-width="5"/>
<rect x="34" y="${y - 19}" width="1012" height="38" fill="url(#asphalt)" stroke="#c5cdc0" stroke-width="1.4"/>
<g stroke="#ecebdd" stroke-width="2.6">${bars}<path d="M171 ${y}H920" stroke-dasharray="20 16"/></g>
<path d="M225 ${y - 10}h35 m0 20h-35 M785 ${y - 10}h35 m0 20h-35" stroke="#d1d7cb" stroke-width="4"/>
<g stroke="#e5dfad" stroke-width="3">${lights}</g>
<text x="106" y="${y + 8}" class="rw-number">${lane}</text>
${weather === lane || weather === "FG" ? '<path d="M930 ' + (y - 12) + 'l23 24m0 -24l-23 24" stroke="#ff9c64" stroke-width="5"/>' : ""}</g>`;
}
const fieldDefs = `<defs>
<pattern id="grass" width="21" height="17" patternUnits="userSpaceOnUse"><rect width="21" height="17" fill="#9aa780"/><path d="M2 3h4m8 7h3m-8 4h3" stroke="#718765" stroke-width=".9" opacity=".38"/></pattern>
<pattern id="roof" width="8" height="8" patternUnits="userSpaceOnUse"><rect width="8" height="8" fill="#c5d3cb"/><path d="M1 0v8" stroke="#a3b8ad"/></pattern>
<pattern id="asphalt" width="23" height="16" patternUnits="userSpaceOnUse"><rect width="23" height="16" fill="#515e60"/><path d="M0 0h23m-17 0v16" stroke="#657073" stroke-width=".7"/></pattern>
<pattern id="apron" width="30" height="28" patternUnits="userSpaceOnUse"><rect width="30" height="28" fill="#bdc4ae"/><path d="M0 28V0h30" fill="none" stroke="#9ca896" stroke-width="1.4"/></pattern>
<g id="tree"><path d="M-6 4l1-8 4-5 6 2 4 6-3 7-7 1z" fill="#546f54"/><path d="M-6 1l1-7 5-4 5 3 1 6-5 5z" fill="#71885e"/><path d="M-4-4l4-4 3 3" fill="#889967"/></g>
<g id="vent"><rect width="12" height="9" rx="1" fill="#82988d"/><circle cx="6" cy="4.5" r="3" fill="#a5b5a9" stroke="#506a62"/><path d="M3 4.5h6m-3-3v6" stroke="#657d72"/></g>
<g id="jet1"><path d="M0-15Q3-13 2-2L14 1v3L2 3l-1 8 5 3v2l-6-2-6 2v-2l5-3-1-8-12 1V1l12-3Q-3-13 0-15Z"/></g>
<g id="jet2"><path d="M0-19Q3-18 3-6L19 4v4L3 3l-1 10 6 4v2l-8-3-8 3v-2l6-4-1-10-16 5V4L-3-6Q-3-18 0-19Z"/><path d="M-9-2v7m18-7v7" stroke-width="3"/></g>
<g id="jet3"><path d="M0-22Q4-20 3.8-7L23 4v5L4 4l-2 11 8 5v3l-10-4-10 4v-3l8-5-2-11-19 5V4L-3.8-7Q-4-20 0-22Z"/><path d="M-15 0v7m7-10v8m16-8v8m7-5v7" stroke-width="3.6"/></g>
</defs>`;
function building(x, y, w, h) {
const vents = Array.from({ length: Math.max(1, Math.floor(w / 44)) }, (_, i) => `<use href="#vent" x="${x + 8 + 35 * i}" y="${y + 5}"/>`).join("");
return `<g><rect x="${x + 4}" y="${y + 5}" width="${w}" height="${h}" rx="3" fill="#54685c" opacity=".5"/>
<rect x="${x}" y="${y}" width="${w}" height="${h}" rx="3" fill="url(#roof)" stroke="#667d72" stroke-width="2"/>
<path d="M${x + 4} ${y + h - 3}h${w - 8}" stroke="#73979a" stroke-width="4" stroke-dasharray="8 3"/>${vents}</g>`;
}
function apronEquipment() {
const carts = (x, y, angle) => `<g transform="translate(${x} ${y}) rotate(${angle})"><path d="M0 0h28" stroke="#58675b" stroke-width="2"/>
<rect x="-3" y="-3" width="8" height="6" rx="1" fill="#bc7643" stroke="#687168"/><path d="M1-2v4" stroke="#cbdfe0"/>
${[9, 18, 27].map((x) => `<rect x="${x}" y="-2.6" width="6" height="5" rx=".7" fill="#d6d4bb" stroke="#677269" stroke-width=".8"/>`).join("")}</g>`;
const hatches = Array.from({ length: 9 }, (_, i) => `<path d="M${383 + i * 7} 294l6-8 M${591 + i * 7} 248l6-8"/>`).join("");
return `<g fill="none" stroke="#f7f3d5" stroke-width="1.1">${hatches}
<path d="M374 239h33v26h-33z M662 249h22v59h-22z" stroke-dasharray="4 3"/>
<path d="M95 240h183 M95 329h183" stroke="#c9a651" stroke-width="2"/></g>
${carts(374, 317, 0)}${carts(626, 288, 90)}${carts(786, 299, -90)}
<g transform="translate(701 289)"><ellipse cx="6" cy="10" rx="10" ry="3" fill="#899980"/>
<path d="M0 9v-25" stroke="#53675b" stroke-width="2"/><path d="M0-17l18 3-2 4-16-1z" fill="#ce693d" stroke="#765f47"/><path d="M5-16v5m6-4v4" stroke="#fff3d5" stroke-width="2.5"/></g>
<g transform="translate(287 348)"><path d="M-4 13l2-22h5l3 22z" fill="#d4ddd1" stroke="#6d8278"/><path d="M-7-12h15l-2 6h-11z" fill="#76959a" stroke="#4a6360"/><path d="M-8-12l3-3h11l3 3z" fill="#c5cfc2"/></g>`;
}
function terrain(points) {
let seed = 49075;
function rand() {
seed = (1664525 * seed + 1013904223) >>> 0;
return seed / 4294967296;
}
const trees = [
[45, 172, 34, 202],
[65, 91, 265, 22],
[69, 447, 270, 18],
[383, 96, 200, 15],
[361, 442, 214, 12],
[1012, 187, 31, 161],
]
.map(([x, y, w, h]) => Array.from({ length: Math.ceil((w * h) / 180) }, () => `<use href="#tree" transform="translate(${Math.round(x + rand() * w)} ${Math.round(y + rand() * h)}) scale(${(0.48 + rand() * 0.48).toFixed(2)})"/>`).join(""))
.join("");
const routes = [
"M91 129H938Q987 129 987 90V57",
"M91 419H938Q987 419 987 458V491",
"M91 129Q72 129 72 151V397Q72 419 91 419",
"M350 129V419",
"M350 176H680Q722 176 752 129",
"M350 371H680Q722 371 752 419",
"M776 129Q758 170 758 202V342Q758 374 776 419",
"M758 231H914Q955 231 955 265V283Q955 317 914 317H758",
];
for (const [id, p] of Object.entries(points)) {
if (id.startsWith("A:B"))
routes.push(`M${p.x} ${p.y}V${p.y < 274 ? 176 : 371}`);
if (id.startsWith("A:C"))
routes.push(`M${p.x} 129V419`);
}
const line = routes.map((d) => `<path d="${d}"/>`).join("");
const apron = '<path d="M89 156H302L320 177V365L298 389H89Z M364 162H670L710 196V350L676 382H364Z M778 192H926L969 221V321L935 351H778Z" fill="url(#apron)" stroke="#a2ac95" stroke-width="3"/>';
const fingers = Object.entries(points)
.filter(([k]) => k.startsWith("A:B"))
.map(([, p]) => {
const top = p.y < 274, y = top ? 235 : 296;
return `<g><path d="M${p.x + 10} ${top ? 252 : 296}v${top ? -13 : 12}l-9 ${top ? -7 : 7}" stroke="#667e75" stroke-width="8" fill="none"/><rect x="${p.x - 5}" y="${top ? y - 8 : y + 12}" width="10" height="9" fill="#e1e4d4" stroke="#748777"/></g>`;
})
.join("");
return `<rect width="${width}" height="${height}" fill="url(#grass)"/><path d="M-30 125L370 0H615L-10 187ZM483 548L1080 342V399L671 548Z" fill="#b1b58a" opacity=".38"/>
${trees}${apron}<g fill="none" stroke-linecap="round" stroke-linejoin="round"><g stroke="#798879" stroke-width="23">${line}</g><g stroke="#a9b1a2" stroke-width="19">${line}</g><g stroke="#e4cd7e" stroke-width="1.7">${line}</g></g>
${apronEquipment()}${fingers}${building(399, 251, 259, 45)}${building(441, 244, 114, 16)}
<text x="533" y="281" class="roof-title" text-anchor="middle">ТЕРМИНАЛ</text>
${building(805, 259, 99, 36)}<text x="857" y="285" text-anchor="middle" class="roof-title">VIP</text>
${building(239, 179, 45, 27)}${building(286, 312, 28, 55)}${building(350, 254, 23, 41)}
<path d="M98 226h177m-177 114h177" stroke="#e4dfba" stroke-width="2" stroke-dasharray="4 5"/>
<text x="180" y="209" text-anchor="middle" class="ground-title">ПЕРРОН A / C</text>
`;
}
function cardBays(v) {
const items = [
["ПОГОДА", v.piles?.weather ?? "—"],
["КОЛОДА", String(v.piles?.deck ?? "—")],
["СБРОС", v.piles?.discard ?? "—"],
];
return items
.map(([label, value], i) => `<g transform="translate(${107 + 132 * i} 91)"><rect x="2" y="2" width="119" height="24" rx="3" fill="#4f6554"/>
<rect width="119" height="24" rx="3" fill="#d9dfc9" stroke="#657860"/>
<path d="M6 5h12v14H6zm2-2h12v14" fill="none" stroke="#6c806a"/>
<text x="24" y="16" class="bay-name">${label}</text><text x="111" y="16" text-anchor="end" class="bay-value">${value}</text></g>`)
.join("");
}
export function airfield(v) {
const pts = geometry(v.geometry);
const markers = Object.entries(pts)
.map(([id, p]) => {
const m = v.markers[id], dest = v.destinations.has(id), canPick = m && v.pickable.has(m.key);
const picked = !!m && m.key === v.selected;
const title = m ? m.name + " · " + p.label : p.label + " · " + id;
const action = canPick ? "pick" : dest ? "mapdest" : "";
const attr = action
? `role="button" tabindex="0" data-act="${action}" data-val="${canPick ? m.key : id}"`
: "";
const label = p.label === "D" ? "СТАРТ" : p.label;
return `<g transform="translate(${p.x} ${p.y})" data-position="${id}" class="map-slot ${dest ? "legal" : ""} ${picked ? "picked" : ""}" ${attr} aria-label="${title}"><title>${title}</title><circle r="24" fill="transparent"/>
<circle class="spot" r="${m ? 18 : 14}" fill="${id.startsWith("D") ? "#f1d977" : "#e7e8d6"}" fill-opacity=".93" stroke="#465b51" stroke-width="1.8"/>
${dest || picked ? '<circle class="focus-ring" r="21" fill="none" stroke="' + (picked ? "#fff" : "#075842") + '" stroke-width="3" stroke-dasharray="5 3"/>' : ""}
${m
? `<use href="#jet${m.size}" transform="rotate(${p.angle})" fill="${m.color}" stroke="#26382e" stroke-linejoin="round" stroke-width="1.2"/>
<rect x="-20" y="18" width="40" height="15" rx="4" fill="#233d33"/><text y="29" class="jet-id">${m.caption}</text>`
: `<text y="4" class="spot-label">${label}</text>`}</g>`;
})
.join("");
return `<svg class="airfield" viewBox="0 0 ${width} ${height}" xmlns="http://www.w3.org/2000/svg" role="group" aria-label="Аэродром, полосы 31R и 31L, терминал и стоянки">${fieldDefs}${terrain(pts)}${v.geometry.runways.map((l) => runway(l, v.weather)).join("")}${markers}${cardBays(v)}</svg>`;
}
+1014
View File
File diff suppressed because it is too large. Load diff
+152
View File
@@ -0,0 +1,152 @@
const faces = {
A: [
"Подготовка к вылету",
"Boarding",
"movement",
"Выведите борт из ангара на свободную стоянку A.",
],
B: [
"Буксировка и запуск",
"Push and Start",
"movement",
"Переведите борт с обычной стоянки A на свободную позицию B.",
],
C: [
"Запуск двигателей",
"Start Up",
"movement",
"На стоянке A/C переведите борт с позиции A на C.",
],
D: [
"Отправление на полосу",
"Departure",
"movement",
"Переведите борт с B или C в очередь выбранной ВПП.",
],
LC: [
"Счастливый капитан",
"Lucky Captain",
"special",
"Заменяет одну карту A, B, C или D при оплате движения.",
],
VIP: [
"Обслуживание VIP",
"VIP",
"special",
"Направьте один борт из ангара или с A, B, C на свободную ветку VIP.",
],
AI: [
"Противообледенительная обработка",
"Anti-Icing",
"special",
"При обледенении обработайте борт на старте. Нужно 1–3 карты по размеру.",
],
FLR: [
"Техническая неисправность",
"Failure",
"incident",
"Верните борт соперника с поля в ангар. При открытом доборе действует на свой борт.",
],
DLY: [
"Задержка рейса",
"Delay",
"incident",
"Возврат с A, B, C или VIP в ангар. При розыгрыше цель чужая, при обмене — своя.",
],
SC: [
"Чистое небо",
"Sky Clear",
"weather",
"Вылет разрешён всем типам самолётов с обеих полос.",
],
FG: [
"Туман",
"Fog",
"weather",
"Вылеты и продвижение очередей на обеих полосах приостановлены.",
],
SN: [
"Снег",
"Snow",
"weather",
"Движение стоит на карту больше. Широкофюзеляжные борта не взлетают.",
],
CW: [
"Боковой ветер",
"Crosswind",
"weather",
"Малым самолётам вылет запрещён. При очереди борт уступает старт.",
],
ICE: [
"Обледенение",
"Ice",
"weather",
"Для вылета требуется противообледенительная обработка.",
],
"31L": [
"Левая полоса закрыта",
"31L Closed",
"weather",
"Вылет и продвижение очереди на ВПП 31L приостановлены.",
],
"31R": [
"Правая полоса закрыта",
"31R Closed",
"weather",
"Вылет и продвижение очереди на ВПП 31R приостановлены.",
],
};
const families = {
movement: "Движение",
weather: "Погода",
incident: "Неприятность",
special: "Специальная",
};
const line = (d) => '<path d="' + d + '"/>';
const cloud = '<path d="M28 31h32a7 7 0 0 0 0-14 12 12 0 0 0-22-2 8 8 0 1 0-10 16Z"/>';
const snowflake = line("M44 7v33m-14-25 28 17m0-17L30 32m10-22 4 4 4-4m0 27-4-4-4 4m-9-17 6-1-1-6m20 15-6 1 1 6m-20-7 6 1-1 6m20-15-6-1 1-6");
const nose = line("M20 28l31-5 16-9q7-2 3 4L57 31l-32 3-10-8 5-2z M43 24l-6-11 5-2 12 12");
const icons = {
A: line("M13 36h21l20-22h12v-5H51L29 31H13z M31 29h7m-2-7h8m-3-6h8 M19 32v-6") + '<circle cx="24" cy="39" r="3"/><circle cx="48" cy="34" r="3"/>',
B: line("M15 31v-9h10l4-8h12l4 11h9v7H15zm13-8h12l-3-6h-6z M55 28h11l8-11") +
'<circle cx="23" cy="33" r="4"/><circle cx="45" cy="33" r="4"/>',
C: '<circle cx="44" cy="24" r="17"/><circle cx="44" cy="24" r="4"/>' +
Array.from({ length: 8 }, (_, i) => `<path d="M45 20q8-4 6-9" transform="rotate(${45 * i} 44 24)"/>`).join(""),
D: nose + line("M12 40h58m-49-4 8-1m3-1 7-1"),
LC: line("M17 18l27-9 27 9-11 7-16-4-16 4z M29 26v5q13 10 30 0v-5 M36 24l8 3 8-3") + '<circle cx="44" cy="17" r="3"/>',
VIP: line("M20 14l12 7 12-12 12 12 12-7-5 20H25z M26 39h37") +
'<circle cx="44" cy="27" r="2"/>',
AI: line("M15 33h35v-8H35l-3-9H21v11h-6z M38 24l12-16 12 4-2 4-8-2-7 11 M65 16l7 3m-9 0 7 5m-10-3 5 7") + '<circle cx="23" cy="35" r="4"/><circle cx="43" cy="35" r="4"/>',
FLR: line("M26 37l17-16a12 12 0 0 1 15-14l-8 9 6 5 9-8a12 12 0 0 1-17 14L31 42Z"),
DLY: '<circle cx="44" cy="25" r="16"/>' +
line("M44 14v12l8 4m-12-25h8m-4 0v3 M22 17h-8m7 8H9m15 8H13"),
SC: '<circle cx="44" cy="24" r="9"/>' +
line("M44 4v6m0 28v6M24 24h6m28 0h6M30 10l4 4m20 20 4 4m0-28-4 4m-20 20-4 4"),
FG: cloud + line("M15 33h34m6 0h18m-52 5h44m-38 5h18m6 0h13"),
SN: cloud +
line("M33 35v7m-3-5 6 3m0-3-6 3m15-5v6m-3-4 6 2m0-2-6 2m15-6v7m-3-5 6 3m0-3-6 3"),
CW: line("M27 40V8m0 4 37 5-4 11-33-6z M39 14l-2 10m12-9-2 11m12-10-2 11 M14 15h7m-10 7h10m47 0h10"),
ICE: snowflake,
};
for (const code of ["31L", "31R"])
icons[code] =
line("M20 10h46v28H20z M25 13v22m36-22v22m-24-19 14 16m0-16L37 32") +
`<text x="73" y="36" fill="currentColor" stroke="none" font-size="12">${code.slice(-1)}</text>`;
export function cardLabel(code) {
return faces[code]?.[0] || code;
}
export function cardCaption(code) {
return code + " · " + cardLabel(code);
}
export function cardFace(code, index, selectable, selected) {
const [title, english, family, effect] = faces[code];
const tag = selectable ? "button" : "div";
const action = selectable
? `type="button" data-act="card" data-val="${index}" aria-pressed="${selected}"`
: "";
return `<${tag} class="flight-card fc-${family}${selected ? " chosen" : ""}" ${action} data-code="${code}">
<span class="fc-head"><b>${code}</b><span>${families[family]}</span></span>
<svg viewBox="0 0 88 48" aria-hidden="true" class="fc-art"><g stroke="currentColor" stroke-width="2" fill="none" stroke-linejoin="round" stroke-linecap="round">${icons[code]}</g></svg>
<span class="fc-title">${title}</span><span class="fc-en" lang="en">${english}</span>
<span class="fc-effect">${effect}</span></${tag}>`;
}
+55
View File
@@ -0,0 +1,55 @@
const cookieName = "vzlet_demo_v1";
let bridge;
async function createBridge() {
if (!navigator.serviceWorker)
throw Error("Откройте демо по HTTPS или через localhost.");
await navigator.serviceWorker.register("/cookie-worker.js");
await navigator.serviceWorker.ready;
if (!navigator.serviceWorker.controller)
await new Promise(resolve => navigator.serviceWorker.addEventListener("controllerchange", () => resolve(), { once: true }));
return new Promise(resolve => {
const frame = document.createElement("iframe");
frame.hidden = true;
frame.title = "Локальное сохранение";
frame.onload = () => resolve(frame);
frame.src = "/__local_game__/";
document.body.append(frame);
});
}
async function cookie(next = null) {
const frame = await (bridge ??= createBridge());
return new Promise((resolve, reject) => {
const channel = new MessageChannel();
const timeout = setTimeout(() => { channel.port1.close(); reject(Error("Браузер заблокировал локальное сохранение")); }, 5000);
channel.port1.onmessage = ({ data }) => {
clearTimeout(timeout);
channel.port1.close();
data.error ? reject(Error(data.error)) : resolve(data.value);
};
frame.contentWindow.postMessage(next, location.origin, [channel.port2]);
});
}
let worker, version = "";
function run(input) {
if (!worker)
worker = new Worker("/worker.js");
return new Promise((resolve, reject) => {
worker.onmessage = ({ data }) => data.error ? reject(Error(data.error)) : resolve(data.result);
worker.onerror = () => { worker.terminate(); worker = null; reject(Error("Не удалось загрузить локальный движок")); };
worker.postMessage(input);
});
}
export function current() { return cookie(); }
export async function play(opts = {}) {
if (!navigator.locks)
throw Error("Для локальной игры откройте сайт по HTTPS или через localhost.");
return navigator.locks.request(cookieName, async () => {
const saved = await cookie();
if (opts.command && saved !== version)
throw Error("Партия изменилась в другой вкладке. Обновите страницу.");
const result = await run({ token: opts.reset ? "" : saved, bots: opts.bots || 3, color: opts.color || null, command: opts.command ?? null });
await cookie(result.token);
version = result.token;
return result;
});
}
+24
View File
@@ -0,0 +1,24 @@
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="theme-color" content="#153e36" />
<title>Взлёт разрешён! — Диспетчерская</title>
<link rel="stylesheet" href="/style.css" />
</head>
<body>
<header>
<a class="brand" href="#home"
><span class="mark" aria-hidden="true"></span>Взлёт разрешён! <small class="build-version" title="Версия сборки">v0.1.4</small></a
>
<nav>
<a href="#home">Диспетчерская</a><a href="#cards">Карты</a
><a href="#archive">Архив партий</a>
</nav>
</header>
<main id="app" aria-busy="true">Загрузка диспетчерской…</main>
<div id="notice" role="status"></div>
<script type="module" src="/app.js"></script>
</body>
</html>
+807
View File
@@ -0,0 +1,807 @@
* {
box-sizing: border-box;
}
html {
font:
16px/1.45 "Inter",
"Segoe UI",
Arial,
sans-serif;
color: #192f2b;
background: #f4f3eb;
}
body {
margin: 0;
}
header {
height: 74px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 max(5vw, 20px);
border-bottom: 1px solid #c8d0c5;
background: #fafaf4;
}
a {
color: inherit;
}
.brand {
font-size: 21px;
font-weight: 800;
letter-spacing: -0.8px;
text-decoration: none;
display: flex;
align-items: center;
gap: 12px;
}
.mark {
height: 29px;
width: 32px;
background: repeating-linear-gradient(
113deg,
#ed7546 0 6px,
transparent 6px 9px
);
clip-path: polygon(0 100%, 55% 0, 100% 0, 65% 100%);
}
nav {
display: flex;
gap: 22px;
}
nav a {
font-size: 14px;
font-weight: 650;
text-decoration: none;
}
nav a:hover,
a:hover {
text-decoration: underline;
}
main {
max-width: 1320px;
margin: auto;
padding: 38px 5vw 72px;
}
h1,
h2,
h3,
p {
margin: 0 0 0.65em;
}
h1 {
font-size: clamp(35px, 5vw, 68px);
font-weight: 760;
letter-spacing: -0.062em;
line-height: 1.02;
}
h2 {
font-size: 25px;
letter-spacing: -0.045em;
}
h3 {
font-size: 16px;
}
small,
.muted {
color: #526962;
}
.mono,
.eyebrow,
.tag,
th,
.runlabel,
.serial {
font-family: "IBM Plex Mono", Consolas, monospace;
}
.eyebrow,
.tag {
font-size: 11px;
letter-spacing: 0.1em;
text-transform: uppercase;
font-weight: 650;
}
.eyebrow {
display: block;
margin-bottom: 15px;
}
.homegrid {
display: grid;
grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr);
gap: 18px;
}
.hero {
position: relative;
background: #163e35;
color: #f6f5e6;
border-radius: 12px;
padding: clamp(24px, 4vw, 56px);
overflow: hidden;
min-height: 445px;
}
.hero .eyebrow {
color: #b4cebd;
}
.hero p {
max-width: 31em;
color: #dce7d9;
}
.diagram {
height: 160px;
position: relative;
overflow: hidden;
margin: 22px -9px 0;
background-image:
linear-gradient(#9fb8a61a 1px, transparent 1px),
linear-gradient(90deg, #9fb8a61a 1px, transparent 1px);
background-size: 19px 19px;
transform: skewY(-7deg);
}
.strip {
position: absolute;
left: 3%;
right: 3%;
height: 25px;
border: 1px solid #8da795;
display: flex;
align-items: center;
gap: 12px;
padding: 0 8px;
font: 11px monospace;
color: #e5e6ca;
}
.strip:after {
content: "";
flex: 1;
border-bottom: 2px dashed #c0cab1;
}
.strip:first-child {
top: 26px;
}
.strip:nth-child(2) {
bottom: 18px;
}
.taxi {
position: absolute;
top: 50px;
left: 22%;
width: 52%;
height: 68px;
border: 3px double #efa96b;
border-radius: 0 0 24px 16px;
transform: skewX(-29deg);
}
.panel {
background: #fffef8;
border: 1px solid #cbd3c7;
border-radius: 12px;
padding: 24px;
min-width: 0;
}
.section {
margin-top: 32px;
}
.toolbar,
.controls,
.chips,
.row,
.hand {
display: flex;
align-items: center;
gap: 9px;
flex-wrap: wrap;
}
.toolbar {
justify-content: space-between;
margin-bottom: 16px;
}
.toolbar h1,
.toolbar h2 {
margin: 0;
}
.controls {
margin: 14px 0;
}
fieldset {
border: 0;
padding: 0;
margin: 16px 0 20px;
}
legend,
label.caption {
display: block;
margin-bottom: 8px;
font-weight: 650;
font-size: 14px;
}
button,
select,
input {
font: inherit;
color: inherit;
}
button,
.btn,
select,
input {
border: 1px solid #b9c7ba;
background: #fafbf5;
border-radius: 6px;
padding: 8px 13px;
}
button,
.btn,
select {
cursor: pointer;
}
.btn {
text-decoration: none;
display: inline-block;
}
button:hover,
.btn:hover {
border-color: #285b4a;
background: #e7eee1;
text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
outline: 3px solid #e8773c;
outline-offset: 2px;
}
button:disabled {
cursor: default;
opacity: 0.5;
}
.selected,
.selected:hover {
background: #dceadc;
border-color: #246645;
box-shadow: inset 0 0 0 1px #246645;
}
.primary,
.primary:hover {
background: #f18551;
border-color: #f18551;
color: #1b2724;
font-weight: 750;
padding: 12px 22px;
}
.wide {
width: 100%;
margin-top: 7px;
}
.dot {
width: 12px;
height: 12px;
display: inline-block;
border-radius: 100%;
margin-right: 6px;
}
.tag {
background: #e3ebdf;
border-radius: 4px;
padding: 5px 7px;
display: inline-block;
}
.board {
background: #193f35;
color: #f4f5e8;
border-radius: 12px;
padding: 24px;
min-width: 0;
}
.board h2 {
font-size: 23px;
}
.board small {
color: #c0cebd;
}
.runway {
border: 1px solid #729081;
border-radius: 5px;
padding: 9px;
margin: 9px 0;
background: #295046;
}
.runlabel {
font-weight: 700;
color: #eee5b4;
font-size: 14px;
}
.slots {
display: flex;
gap: 4px;
align-items: stretch;
flex-wrap: wrap;
margin-top: 6px;
}
.slot {
min-width: 28px;
min-height: 24px;
padding: 3px 5px;
border: 1px solid #789385;
border-radius: 3px;
font: 12px/1.5 monospace;
color: #f6f3de;
}
.empty {
border-style: dashed;
color: #b7cbbc;
}
.plane {
background: #fbfaf1;
color: #202d27;
border-left: 4px solid var(--c);
font: 600 12px monospace;
padding: 5px;
display: inline-block;
border-radius: 3px;
}
.standrow {
display: flex;
align-items: center;
gap: 6px;
padding: 5px 0;
flex-wrap: wrap;
}
.standrow b {
font-size: 13px;
min-width: 44px;
}
.card {
min-width: 44px;
text-align: center;
background: #f8f5e9;
border: 1px solid #c9c8b3;
border-top: 4px solid #54846d;
padding: 9px 6px;
border-radius: 5px;
font: bold 14px monospace;
}
.hand {
gap: 5px;
}
.pay {
font: 13px monospace;
}
.log {
padding-left: 1.4em;
}
.log li {
margin: 0.4em 0;
}
.choices {
max-height: 295px;
overflow: auto;
display: grid;
gap: 6px;
margin: 8px 0;
}
.choices button {
text-align: left;
}
.ledger {
display: grid;
gap: 10px;
}
.entry {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
background: #fffef7;
border: 1px solid #c9d1c6;
border-radius: 8px;
padding: 16px;
}
.entry small {
display: block;
}
table {
border-collapse: collapse;
width: 100%;
font-size: 14px;
}
th,
td {
text-align: left;
padding: 8px;
border-bottom: 1px solid #d1d8cd;
}
th {
font-size: 12px;
}
.scroll {
overflow-x: auto;
}
#notice {
position: fixed;
bottom: 16px;
left: 50%;
transform: translateX(-50%);
background: #203e34;
color: #fff;
padding: 9px 16px;
border-radius: 6px;
display: none;
z-index: 3;
}
#notice.show {
display: block;
}
.range {
width: 100%;
accent-color: #2d6851;
}
.serial {
font-size: 12px;
white-space: nowrap;
}
.selector {
display: grid;
gap: 6px;
}
.selector select {
max-width: 100%;
}
.sub {
font-size: 13px;
color: #536c5e;
}
.space {
margin-top: 14px;
}
@media (max-width: 800px) {
main {
padding: 20px 14px 62px;
}
.homegrid {
grid-template-columns: 1fr;
}
.hero {
min-height: unset;
}
.diagram {
height: 125px;
}
.taxi {
height: 37px;
}
header {
height: auto;
padding: 15px;
gap: 10px;
flex-wrap: wrap;
}
nav {
gap: 12px;
}
.board,
.panel {
padding: 17px;
}
.entry {
align-items: flex-start;
}
.toolbar {
align-items: flex-start;
}
.section {
margin-top: 20px;
}
}
.slot.allowed {
background: #e7edb4;
color: #193d35;
border: 1px solid #eff5af;
}
/* Vector board and printed card faces */
.home-field {
margin: 24px -22px -32px;
overflow: hidden;
border: 5px solid #7c9681;
border-radius: 6px;
box-shadow: 0 12px 35px #12271d55;
transform: rotate(-3deg);
}
.home-field .airfield {
width: 100%;
height: auto;
display: block;
}
.tablegrid {
display: grid;
grid-template-columns: minmax(0, 1fr);
gap: 16px;
align-items: start;
}
.tablegrid select {max-width: 100%}
@media (min-width: 960px) {
main:has(.tablegrid) {
max-width: 1920px;
padding: 24px clamp(18px, 2vw, 40px) 60px;
}
.tablegrid {
grid-template-columns: minmax(0, 3fr) minmax(366px, 2fr);
gap: clamp(12px, 1.2vw, 24px);
}
.tablegrid > .panel {padding: clamp(14px, 1.2vw, 24px)}
.tablegrid .flight-hand {
grid-template-columns: repeat(auto-fit, minmax(min(100%, 126px), 1fr));
}
}
.map-panel {
overflow: hidden;
border-radius: 12px;
border: 1px solid #b8c5b4;
background: #1f4037;
min-width: 0;
color: #f0f3e7;
}
.map-heading {
display: flex;
justify-content: space-between;
align-items: center;
gap: 0.75em;
padding: 12px 18px;
}
.map-heading h2 {
font-size: 21px;
margin: 0;
}
.map-zoom {
font-size: 13px;
background: #34554a;
color: #fff;
border-color: #779281;
}
.map-zoom:hover {
background: #496a5e;
}
.map-window {
overflow: auto;
overscroll-behavior-x: contain;
scrollbar-color: #96a88e #304c3b;
}
.map-window .airfield {
width: 100%;
height: auto;
display: block;
}
.map-window.zoomed .airfield {
width: 150%;
min-width: 1000px;
}
.map-legend {
display: flex;
gap: 24px;
padding: 10px 18px;
flex-wrap: wrap;
}
.map-legend span {
display: flex;
gap: 8px;
align-items: baseline;
}
.map-legend small {
color: #c9d7c4;
font-size: 12px;
}
.map-legend b {
font-size: 14px;
}
.airfield text {
font-family: Consolas, "Liberation Mono", monospace;
pointer-events: none;
}
.rw-number {
font-size: 26px;
font-weight: bold;
fill: #f3f2e5;
letter-spacing: 1px;
}
.ground-title {
font-size: 10px;
letter-spacing: 2px;
font-weight: bold;
fill: #3e5744;
}
.roof-title {
font-size: 12px;
letter-spacing: 2px;
font-weight: bold;
fill: #3b514b;
}
.spot-label,
.jet-id {
font-weight: 700;
text-anchor: middle;
fill: #2a372d;
font-size: 11px;
}
.jet-id {
fill: white;
font-size: 11px;
}
.map-slot[data-act] {
cursor: pointer;
outline: none;
}
.map-slot[data-act]:hover .spot,
.map-slot[data-act]:focus-visible .spot {
stroke: #fff;
stroke-width: 4;
}
.map-slot.legal .spot {
fill: #e8ffb0;
stroke: #1d6146;
}
.flight-hand {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
gap: 8px;
align-items: stretch;
margin: 8px 0 16px;
}
.flight-card {
--ink: #275744;
--wash: #e2ecdb;
position: relative;
min-width: 0;
display: flex;
align-items: stretch;
flex-direction: column;
text-align: left;
border-radius: 7px;
padding: 9px 10px 11px;
border: 1px solid #b5bfac;
border-top: 4px solid var(--ink);
background: #fffdf2;
color: #192f27;
box-shadow: 0 2px 0 #cbd0bd;
}
.fc-weather {
--ink: #375e75;
--wash: #dfebeb;
}
.fc-incident {
--ink: #924e39;
--wash: #f1e1cd;
}
.fc-special {
--ink: #695476;
--wash: #eae3ed;
}
.fc-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 3px;
font-size: 10px;
color: var(--ink);
font-weight: 700;
}
.fc-head b {
font:
700 17px/1.1 Consolas,
monospace;
}
.fc-art {
height: 39px;
width: 100%;
margin: 7px 0;
background: repeating-linear-gradient(
125deg,
var(--wash) 0 9px,
#fff7 9px 10px,
var(--wash) 10px 19px
);
border-radius: 3px;
color: var(--ink);
}
.fc-title {
font-size: 14px;
font-weight: 740;
line-height: 1.2;
overflow-wrap: anywhere;
hyphens: auto;
}
.fc-en {
font-size: 11px;
color: var(--ink);
margin-top: 3px;
}
.fc-effect {
display: block;
font-size: 12px;
line-height: 1.35;
margin-top: 8px;
padding-top: 7px;
border-top: 1px solid #d9ddce;
color: #394d40;
}
button.flight-card:hover {
background: #fff9de;
border-color: var(--ink);
}
button.flight-card.chosen {
outline: 3px solid #29724e;
outline-offset: -2px;
background: #e9f1d8;
}
button.flight-card.chosen .fc-art {
box-shadow: inset 0 0 0 1px #4f865f;
}
.selector select {
width: 100%;
}
@media (min-width: 1050px) {
.flight-hand {
grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
}
.homegrid {
align-items: stretch;
}
.hero {
padding-bottom: 40px;
}
}
@media (max-width: 800px) {
.map-window .airfield {
min-width: 620px;
}
.map-window.zoomed .airfield {
min-width: 1000px;
}
.map-heading,
.map-legend {
padding: 10px 12px;
}
.map-legend {
gap: 6px 15px;
}
.flight-hand {
grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
}
.home-field {
margin: 16px -5px -5px;
}
.map-panel,
.tablegrid > .panel {
min-width: 0;
}
}
.bay-name {
font-size: 11px;
letter-spacing: 0.6px;
fill: #405744;
font-weight: 700;
}
.bay-value {
font-size: 12px;
fill: #193e31;
font-weight: bold;
}
@media (max-width: 800px) {
.map-window:not(.zoomed) .airfield {
min-width: 0;
}
.map-window.zoomed {
max-height: 68vh;
}
}
.build-version { font: 600 12px/1.2 Consolas, monospace; color: #455f55; letter-spacing: 0; white-space: nowrap; }
.danger{color:#883725;border-color:#b58d80}.archive-tools:empty{display:none}.ledger .entry{flex-wrap:wrap}
.hangar {padding: .85rem 1rem; border-top: 1px solid #acb9ad}
.hangar h3,.hangar p {margin: 0}
.hangar ul {display:flex;flex-wrap:wrap;gap:.4rem;margin:.5rem 0 0;padding:0;list-style:none}
.hangar li {display:flex;align-items:center;gap:.3rem;border:1px solid #acb9ad;border-radius:.3rem;padding:.2rem .45rem;font-size:.8rem}
.hangar svg {width:2rem;height:2rem;stroke:currentColor;stroke-width:.7}
.replay-step {width:6em}