*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #1a1208;
  color: #e0ccaa;
  font-family: 'Courier New', Courier, monospace;
  min-height: 100vh;
}

/* Screens */
.screen { display: none; }
.screen.active { display: flex; flex-direction: column; }

/* ── Lobby ── */
#lobby-screen {
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  gap: 24px;
  padding: 32px 16px;
  background: linear-gradient(170deg, #5a8cb0 0%, #8ab4cc 30%, #b0c8c0 65%, #c4c8a0 100%);
  color: #2a1808;
}

/* ── Lobby header with insignia ── */
.lobby-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 700px;
  gap: 16px;
}

.lobby-title { text-align: center; flex: 1; }

h1 {
  font-size: 2.2rem;
  letter-spacing: 0.14em;
  color: #1a3254;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.tagline { color: #5a4228; font-size: 0.78rem; margin-top: 6px; letter-spacing: 0.06em; }

.insignia-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.insignia-svg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.insignia-label {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.allies-text  { color: #1a3a6a; }
.german-text  { color: #702010; }

/* ── Game screen faction insignia (corner badge) ── */
.game-insignia-bar {
  position: fixed;
  bottom: 12px;
  right: 12px;
  z-index: 10;
  pointer-events: none;
}
.game-insignia {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0,0,0,0.7);
  display: none;
}
#game-screen[data-faction="allies"] .allies-insignia { display: block; }
#game-screen[data-faction="german"] .german-insignia { display: block; }

/* ══════════════════════════════════════════
   Landing screen — full redesign
   ══════════════════════════════════════════ */
#landing-screen {
  align-items: stretch;
  background: #0c1a2e;
  color: #e8d8b8;
}

/* ── Sticky nav ── */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 36px;
  background: rgba(8,14,26,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(180,140,60,0.25);
}
.landing-brand h1 {
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: #d4b870;
  text-shadow: none;
}
.landing-brand .tagline {
  color: #8a7858;
  font-size: 0.68rem;
  margin-top: 3px;
  letter-spacing: 0.08em;
}
#landing-login-btn {
  background: #7a4a08 !important;
  border: 1px solid #c07818 !important;
  color: #f0e0b0 !important;
  font-weight: bold;
  padding: 8px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
#landing-login-btn:hover { background: #a06010 !important; }

/* ── Hero ── */
.l-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(80,50,10,0.5) 0%, transparent 60%),
    linear-gradient(180deg, #060e1c 0%, #0e2040 35%, #1a3a5c 65%, #2a4a30 100%);
}
/* Cloud-like texture overlay */
.l-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 300px 80px at 20% 30%, rgba(255,255,255,0.04) 0%, transparent 100%),
    radial-gradient(ellipse 200px 60px at 75% 45%, rgba(255,255,255,0.03) 0%, transparent 100%),
    radial-gradient(ellipse 400px 100px at 55% 20%, rgba(255,255,255,0.03) 0%, transparent 100%);
  pointer-events: none;
}
.l-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 60px 24px 80px;
  text-align: center;
  max-width: 700px;
}
.l-insignia-pair {
  display: flex;
  align-items: center;
  gap: 40px;
}
.l-insignia-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.l-insignia-svg {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0,0,0,0.7), 0 0 60px rgba(0,0,0,0.4);
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.6));
}
.l-insignia-nation {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a09070;
}
.l-vs-block .l-vs {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 0.3em;
  color: #b89040;
  text-shadow: 0 0 20px rgba(184,144,64,0.5);
}
.l-hero-title {
  font-size: 2.0rem;
  letter-spacing: 0.12em;
  line-height: 1.3;
  color: #f0e0c0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}
.l-hero-sub {
  font-size: 0.88rem;
  color: #a09070;
  line-height: 1.9;
  letter-spacing: 0.03em;
}

/* Decorative plane silhouettes in hero */
.l-hero-planes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.l-plane-svg {
  position: absolute;
  opacity: 0.13;
  display: block;
  background: transparent;
  pointer-events: none;
}
.l-plane-left  { width: 420px; aspect-ratio: 3 / 2; }
.l-plane-right { width: 360px; aspect-ratio: 3 / 2; }

/* ── Field report showcase ── */
.l-report-section {
  background: #f5edd8;
  color: #2a1808;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.l-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a6030;
  font-weight: bold;
}
.l-section-title {
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: #3a1a08;
  text-align: center;
}
.l-report-card {
  width: 100%;
  max-width: 780px;
  background: #faf4e4;
  border: 2px solid #b89050;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  overflow: hidden;
}
.l-report-top {
  padding: 18px 24px 14px;
  border-bottom: 1px solid #d8c080;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.l-report-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.l-report-outcome {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  font-weight: bold;
  background: #1a5010;
  color: #80d050;
  padding: 3px 8px;
  border-radius: 2px;
}
.l-report-location {
  font-size: 0.82rem;
  color: #5a3818;
  font-style: italic;
}
.l-report-meta-block {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.76rem;
  background: rgba(180,150,80,0.10);
  border: 1px solid #c8a860;
  border-radius: 3px;
  padding: 7px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.l-report-meta-row { display: flex; gap: 8px; }
.l-meta-label {
  font-weight: bold;
  color: #6a4018;
  min-width: 52px;
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.l-meta-val { color: #2a1808; flex: 1; }
.l-report-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}
.l-showcase-map {
  height: 100%;
  min-height: 200px;
  border-right: 1px solid #d8c080;
  filter: saturate(0.6) contrast(1.1) brightness(0.88);
}
.l-report-diary {
  padding: 20px 24px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 0.90rem;
  line-height: 1.9;
  color: #2a1808;
}
.l-report-caption {
  font-size: 0.75rem;
  color: #7a5838;
  text-align: center;
  max-width: 560px;
  line-height: 1.7;
}

/* ── Aircraft showcase ── */
.l-aircraft-section {
  background: #0e1c2e;
  color: #e0d0b0;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.l-aircraft-section .l-eyebrow { color: #907050; }
.l-aircraft-section .l-section-title { color: #d4c090; }
.l-skies-section .l-section-title { color: #e8d4a0; } /* ~12:1 on #0d1520 — AAA */
.l-aircraft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  max-width: 960px;
  width: 100%;
}
.l-aircraft-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 16px 20px;
  border-radius: 4px;
  border-top: 3px solid transparent;
}
.l-aircraft-card.l-allies {
  background: rgba(0,40,100,0.35);
  border-top-color: #3060b0;
}
.l-aircraft-card.l-german {
  background: rgba(80,10,10,0.35);
  border-top-color: #902020;
}
.l-aircraft-name {
  font-size: 0.88rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: #f0e0c0;
}
.l-aircraft-nation {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.l-aircraft-card.l-allies .l-aircraft-nation { color: #5888c8; }
.l-aircraft-card.l-german .l-aircraft-nation { color: #c05040; }
.l-aircraft-desc {
  font-size: 0.78rem;
  line-height: 1.75;
  color: #a09070;
}

/* ── Mechanics ── */
/* ── Take to the Skies ── */
.l-skies-section {
  background: #0d1520;
  color: #c8c0a8;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.l-skies-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 960px;
  width: 100%;
  align-items: start;
}
.l-skies-screenshot {
  border: 1px solid rgba(180,140,60,0.3);
  border-radius: 4px;
  overflow: hidden;
  background: #060e1c;
}
.l-screenshot-img {
  display: block;
  width: 100%;
  height: auto;
}
.l-skies-desc {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.l-skies-item-title {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c8a860;
  font-weight: bold;
  margin-bottom: 6px;
}
.l-skies-item-text { font-size: 0.82rem; line-height: 1.8; color: #9090a0; }

/* ── AI features ── */
.l-intel-section {
  background: #120f08;
  color: #c8c0a0;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.l-intel-section .l-eyebrow { color: #806840; }
.l-intel-section .l-section-title { color: #d8c898; }
.l-intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  width: 100%;
}
.l-intel-item {
  background: rgba(180,140,60,0.07);
  border: 1px solid rgba(180,140,60,0.18);
  border-radius: 4px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.l-intel-icon {
  font-size: 1.3rem;
  color: #c09850;
}
.l-intel-title {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c09850;
  font-weight: bold;
  margin-bottom: 4px;
}
.l-intel-text { font-size: 0.80rem; line-height: 1.85; color: #8a8070; }

/* ── Footer line ── */
.l-footer-line {
  background: #060e1c;
  border-top: 1px solid rgba(180,140,60,0.2);
  padding: 36px 24px;
  text-align: center;
  font-size: 1.0rem;
  letter-spacing: 0.12em;
  color: #c0a860;
}

/* ── Modals ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-panel {
  background: #f2e8d4;
  border: 1px solid #b89860;
  border-radius: 8px;
  padding: 28px 28px 24px;
  position: relative;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
  color: #2a1808;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #7a5838;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 3px;
}
.modal-close:hover { background: #e0cca8; color: #2a1808; }

/* Auth modal */
.auth-panel { width: 340px; display: flex; flex-direction: column; gap: 14px; }

.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #b89860;
  margin-bottom: 4px;
}
.auth-tab {
  flex: 1;
  background: #e8dcc0;
  border: 1px solid #b89860;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  color: #7a5838;
  font-size: 0.85rem;
  padding: 7px;
  cursor: pointer;
}
.auth-tab.active { background: #f2e8d4; color: #2a1808; font-weight: bold; }
.auth-tab:hover:not(.active) { background: #d8c8a0; }

.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form input[type="text"],
.auth-form input[type="password"] { width: 100%; }
.auth-form button {
  width: 100%;
  background: #8a5808 !important;
  border-color: #c07810 !important;
  color: #fff !important;
  font-weight: bold;
  padding: 10px;
}
.auth-form button:hover { background: #c07810 !important; }

/* Plane selection modal */
.plane-panel { width: 480px; }
.opponent-toggle {
  display: flex;
  gap: 0;
  border: 1px solid #b89860;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0;
  margin-bottom: 14px;
}
.opp-btn {
  flex: 1;
  background: #e8dcc0;
  border: none;
  color: #7a5838;
  font-size: 0.82rem;
  padding: 8px;
  cursor: pointer;
}
.opp-btn.active { background: #8a5808; color: #fff; font-weight: bold; }
.opp-btn:hover:not(.active) { background: #d8c8a0; }
.plane-faction-headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.plane-faction-label {
  font-size: 0.65rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px 3px 0 0;
  text-align: center;
}
.allies-lbl { background: #d8d0a8; color: #5a4010; border: 1px solid #a09040; border-bottom: none; }
.german-lbl { background: #d8c8c0; color: #5a1810; border: 1px solid #a04030; border-bottom: none; }
.plane-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.plane-select-btn {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 12px 12px;
  border-radius: 6px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  width: 100%;
}
.plane-select-btn.allies { background: #ece8d0; border: 1px solid #a09040; }
.plane-select-btn.allies:hover:not(:disabled) { background: #e8e0b8; border-color: #8a7820; }
.plane-select-btn.allies.selected { background: #e8d890; border: 2px solid #a07810; }
.plane-select-btn.german { background: #ece0d8; border: 1px solid #a04030; }
.plane-select-btn.german:hover:not(:disabled) { background: #e8d0c4; border-color: #803020; }
.plane-select-btn.german.selected { background: #f0c8b8; border: 2px solid #c03020; }
.plane-select-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.plane-select-name { font-size: 0.9rem; font-weight: bold; color: #2a1808; }
.plane-select-faction { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; color: #6a5030; }
.plane-select-note { font-size: 0.70rem; color: #7a5838; margin-top: 3px; }

#plane-confirm-btn {
  width: 100%;
  background: #3a6a20;
  border-color: #5a9030;
  color: #f0f0f0;
  font-weight: bold;
  padding: 12px;
}
#plane-confirm-btn:hover:not(:disabled) { background: #5a9030; }
#plane-confirm-btn:disabled { opacity: 0.4; cursor: default; }

/* ── Aircraft info modal ── */
.aircraft-panel {
  width: min(900px, 96vw);
  max-height: 88vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #b89860 transparent;
}
.aircraft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .aircraft-grid { grid-template-columns: 1fr; } }

.aircraft-faction-col { display: flex; flex-direction: column; gap: 14px; }

.aircraft-faction-header {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: bold;
  padding: 5px 10px 5px 12px;
  border-left: 3px solid;
  border-radius: 0 3px 3px 0;
}
.allies-hdr { border-color: #3a6a9a; color: #1a4a80; background: rgba(58,106,154,0.08); }
.german-hdr { border-color: #a03010; color: #802010; background: rgba(160,48,16,0.08); }

.aircraft-card {
  border: 1px solid #c0a870;
  border-radius: 6px;
  overflow: hidden;
  background: #ece0c8;
}

.aircraft-sil-wrap {
  position: relative;
  background: #0d1117;
}
.aircraft-canvas { display: block; width: 100%; height: auto; }

.aircraft-sil-controls {
  position: absolute;
  bottom: 6px; left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  pointer-events: none;
}
.aircraft-sil-controls button {
  pointer-events: all;
  background: rgba(13,17,23,0.80);
  border: 1px solid #444;
  border-radius: 3px;
  color: #c9d1d9;
  cursor: pointer;
  font-family: monospace;
  font-size: 0.75rem;
  padding: 2px 10px;
  line-height: 1.5;
}
.aircraft-sil-controls button:hover { background: rgba(50,70,90,0.95); }
.sil-angle-label {
  font-size: 0.62rem;
  color: #8b949e;
  min-width: 80px;
  text-align: center;
  background: rgba(13,17,23,0.75);
  border: 1px solid #333;
  border-radius: 3px;
  padding: 2px 6px;
}

.aircraft-info { padding: 10px 12px 12px; }
.aircraft-name { font-size: 0.92rem; font-weight: bold; color: #2a1808; margin-bottom: 1px; }
.aircraft-meta { font-size: 0.68rem; color: #7a5838; margin-bottom: 6px; letter-spacing: 0.03em; }
.aircraft-desc { font-size: 0.72rem; line-height: 1.6; color: #5a3818; margin-bottom: 8px; }

.aircraft-features { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.aircraft-features li {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 0.75rem; line-height: 1.45; color: #3a2010;
}
.fi { flex-shrink: 0; width: 14px; text-align: center; font-size: 0.7rem; }
.fi.pos { color: #3a7020; }
.fi.neg { color: #a02010; }
.fi.neu { color: #8a6020; }
.aircraft-features strong { color: #2a1808; }

/* ── In-game chat panel ── */
.chat-panel { display: flex; flex-direction: column; overflow: hidden; }
.chat-label { font-size: 0.7rem; letter-spacing: 0.15em; color: #7a5838; text-transform: uppercase; margin-bottom: 4px; }
.chat-messages { height: 130px; overflow-y: auto; padding: 2px 0; display: flex; flex-direction: column; gap: 3px; scroll-behavior: smooth; }
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #b89860; border-radius: 2px; }
.chat-msg { font-size: 0.82rem; line-height: 1.5; color: #3a2808; font-weight: 500; }
.chat-msg-name { font-weight: bold; color: #7a5838; }
.chat-msg-name.mine { color: #3a6018; }
.chat-msg-name.ai { color: #8a3020; }
.chat-input-row { display: flex; gap: 4px; margin-bottom: 6px; }
.chat-input { flex: 1; font-size: 0.7rem; background: rgba(255,255,255,0.5); border: 1px solid #b89860; color: #3a2808; padding: 3px 7px; border-radius: 3px; font-family: inherit; }
.chat-input:focus { outline: none; border-color: #7a5838; }
.chat-input::placeholder { color: #a08058; }
.chat-send-btn { font-size: 0.68rem; padding: 3px 10px; line-height: 1; }
.chat-wand-btn { font-size: 0.85rem; padding: 3px 7px; line-height: 1; background: transparent; border: 1px solid #b89860; border-radius: 3px; color: #7a5838; cursor: pointer; font-family: inherit; }
.chat-wand-btn:hover { background: rgba(184,152,96,0.15); color: #4a3018; }
.chat-wand-btn:disabled { opacity: 0.4; cursor: default; }

/* "+" create game button in lobby header */
.games-header-actions { display: flex; gap: 6px; align-items: center; }
.plus-btn {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
  background: #8a5808 !important;
  border-color: #c07810 !important;
  color: #fff !important;
}
.plus-btn:hover { background: #c07810 !important; }

/* Pilot badge in lobby */
.pilot-badge {
  flex: 1;
  font-size: 0.9rem;
  color: #2a1808;
  padding: 8px 4px;
}
.pilot-badge strong { color: #8a5808; }

.lobby-panel {
  background: #f2e8d4;
  border: 1px solid #b89860;
  border-radius: 8px;
  padding: 24px;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

/* Upper-right corner action buttons (fixed to viewport) */
.lobby-corner {
  position: fixed;
  top: 14px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 50;
}
.pilot-badge-sm {
  font-size: 0.72rem;
  font-weight: bold;
  color: #3a2010;
  background: rgba(242,232,200,0.82);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #8a6830;
  border-radius: 6px;
  background: rgba(242,232,200,0.82);
  color: #5a3818;
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  backdrop-filter: blur(4px);
}
.icon-btn:hover { background: #e8d890; border-color: #7a5828; }

.name-row { display: flex; gap: 8px; }
input[type="text"],
input[type="password"] {
  flex: 1;
  background: #faf4e8;
  border: 1px solid #b89860;
  border-radius: 4px;
  color: #2a1808;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 8px 12px;
}
input[type="text"]:focus,
input[type="password"]:focus { outline: 1px solid #c88010; border-color: #c88010; }

/* Global button = warm dark (game screen default) */
button {
  background: #251808;
  border: 1px solid #4a3018;
  border-radius: 4px;
  color: #e0ccaa;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 8px 16px;
  transition: background 0.15s, border-color 0.15s;
}
button:hover { background: #352010; border-color: #7a5030; }
button:disabled { opacity: 0.4; cursor: default; }
button.small { padding: 4px 10px; font-size: 0.8rem; }

/* Lobby button overrides — parchment light */
#lobby-screen button {
  background: #e8dcc0;
  border-color: #a08040;
  color: #2c1808;
}
#lobby-screen button:hover { background: #d8c8a0; border-color: #806020; }
#lobby-screen button:disabled { opacity: 0.4; cursor: default; }

#create-btn {
  background: #8a5808 !important;
  border-color: #c07810 !important;
  color: #fff !important;
  font-weight: bold;
}
#create-btn:hover { background: #c07810 !important; }

/* Plane selector */
.faction-row { display: flex; gap: 6px; flex-wrap: wrap; }

.faction-btn { flex: 1; min-width: 0; padding: 8px 4px; font-size: 0.76rem; text-align: center; color: #7a5838; }

.faction-btn.active[data-plane="camel"],
.faction-btn.active[data-plane="spad"] {
  background: #e8d890;
  border-color: #a07810;
  color: #5a3808;
  font-weight: bold;
}

.faction-btn.active[data-plane="dr1"],
.faction-btn.active[data-plane="albatros"] {
  background: #e8d0c0;
  border-color: #a03010;
  color: #5a1008;
  font-weight: bold;
}

/* ── Game Over overlay ── */
#game-over-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
#game-over-overlay.active { display: flex; }

.game-over-panel {
  background: #f2e8d4;
  border: 1px solid #b89860;
  border-radius: 8px;
  padding: 48px 40px;
  width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
  color: #2a1808;
}

.game-over-title {
  font-size: 2rem;
  letter-spacing: 0.2em;
  color: #8a5808;
  text-shadow: 0 0 16px rgba(200,130,20,0.25);
}

.game-over-msg {
  color: #4a3018;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 360px;
}

#back-to-lobby-btn {
  background: #3a6a20 !important;
  border-color: #5a9030 !important;
  color: #f0f0f0 !important;
  font-size: 0.95rem;
  font-weight: bold;
  padding: 12px 28px;
}
#back-to-lobby-btn:hover { background: #5a9030 !important; color: #fff !important; }

/* ── Combat event modal ── */
.combat-modal {
  display: none;
  position: fixed;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  min-width: 300px;
  max-width: 460px;
  background: rgba(20, 8, 4, 0.94);
  border: 1px solid #cc4400;
  border-radius: 6px;
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #f0c090;
  pointer-events: none;
  animation: combatFadeOut 3.5s forwards;
}
.combat-modal.active { display: block; }
.combat-modal div { border-bottom: 1px solid rgba(200,100,30,0.22); padding: 2px 0; }
.combat-modal div:last-child { border-bottom: none; }

@keyframes combatFadeOut {
  0%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

.open-games-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
h2 { font-size: 0.85rem; color: #7a5a38; letter-spacing: 0.1em; text-transform: uppercase; }

#game-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
#game-list li {
  background: #ece0c8;
  border: 1px solid #c0a870;
  border-radius: 4px;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #2a1808;
}
#game-list li.empty { color: #7a5838; justify-content: center; }
#game-list li button { padding: 4px 12px; font-size: 0.8rem; }

/* ── Stats leaderboard ── */
.stats-panel {
  background: #f2e8d4;
  border: 1px solid #b89860;
  border-radius: 8px;
  padding: 16px;
  width: 560px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  color: #2a1808;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
.stats-table th {
  color: #7a5838;
  font-weight: normal;
  text-align: left;
  padding: 4px 8px;
  border-bottom: 1px solid #c0a870;
  letter-spacing: 0.05em;
}
.stats-table td {
  padding: 5px 8px;
  border-bottom: 1px solid #d8c8a8;
  color: #2a1808;
}
.stats-table tr:last-child td { border-bottom: none; }
.stats-table td.stat-name { color: #8a5808; font-weight: bold; }
.stats-table td.stat-allies { color: #1a4a80; }
.stats-table td.stat-german { color: #802010; }
.stats-table td.stat-win  { color: #3a8020; }
.stats-table td.stat-loss { color: #a02010; }
.stats-empty { color: #7a5838; text-align: center; padding: 12px !important; }
.stat-link { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 2px; }
.stat-link:hover { opacity: 0.75; }

/* Plane stats modal */
.plane-stats-panel { width: 340px; }
.ps-grid { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.ps-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; border-bottom: 1px solid #d8c8a0; padding: 3px 0; }
.ps-label { color: #7a5838; }
.ps-moves-title { font-size: 0.72rem; font-weight: bold; text-transform: uppercase; color: #7a5838; letter-spacing: 0.05em; margin-bottom: 4px; }
.ps-moves { display: flex; flex-direction: column; gap: 2px; }
.ps-move-row { display: flex; justify-content: space-between; font-size: 0.8rem; padding: 1px 0; }
.ps-move-count { color: #7a5838; }

/* ── Game layout ── */
#game-screen {
  min-height: 100vh;
  padding: 8px;
  background: linear-gradient(160deg, #7aaec8 0%, #a8c4c0 45%, #c0c8a4 100%);
}

.game-layout {
  display: grid;
  grid-template-columns: 270px 1fr 230px;
  gap: 8px;
  height: calc(100vh - 16px);
  align-items: start;
}

/* Shared panel look — parchment, matching lobby */
.cockpit-col, .status-col, .log-col {
  background: #f2e8d4;
  border: 1px solid #b89860;
  border-radius: 6px;
  padding: 8px;
  min-height: 0;
}

/* Column 1: Status stats + map */
.status-col {
  height: calc(100vh - 16px);
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.status-stats {
  flex-shrink: 0;
}

.game-version {
  flex-shrink: 0;
  font-size: 0.58rem;
  color: #a08058;
  text-align: center;
  padding: 3px 0 1px;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.leave-game-btn {
  margin-top: auto;
  background: rgba(70, 25, 8, 0.88);
  border: 1px solid rgba(200, 90, 40, 0.65);
  border-radius: 3px;
  color: #e8a060;
  font-size: 0.80rem;
  font-weight: bold;
  cursor: pointer;
  padding: 8px 12px;
  text-align: center;
  letter-spacing: 0.06em;
  width: 100%;
  box-sizing: border-box;
}
.leave-game-btn:hover {
  background: rgba(110, 35, 10, 0.96);
  color: #ffc880;
  border-color: rgba(240, 110, 55, 0.85);
}

/* Column 2: Cockpit */
.cockpit-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cockpit-canvas-wrap {
  position: relative;
  width: 100%;
  border: 1px solid #b89860;
  border-radius: 4px;
  overflow: hidden;
}

.cockpit-top-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 4px 6px;
  background: rgba(8, 14, 26, 0.72);
  border-top: 1px solid rgba(184,152,96,0.5);
  z-index: 2;
}

.view-rotate-btn {
  font-size: 0.85rem;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(180, 140, 60, 0.45);
  border-radius: 3px;
  color: #d4c090;
  cursor: pointer;
  font-family: inherit;
}
.view-rotate-btn:hover { background: rgba(255, 255, 255, 0.20); color: #f0e0a0; border-color: rgba(220,180,80,0.7); }

.view-angle-display {
  flex: 1;
  text-align: center;
  font-size: 0.72rem;
  color: #c8b070;
  font-family: inherit;
  padding: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.08em;
}
.view-angle-display:hover { color: #f0e0a0; }

#cockpit-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 400;
}

/* (status-col flex layout set above) */

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 2px;
  border-bottom: 1px solid #d8c8a8;
}
.stat-row:last-child { border-bottom: none; }

.stat-lbl {
  font-size: 0.68rem;
  color: #7a5838;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-val {
  font-size: 0.82rem;
  color: #2a1808;
  font-weight: bold;
  text-align: right;
}
.stat-val.ok   { color: #3a8020; }
.stat-val.warn { color: #c87810; }
.stat-val.crit { color: #c02010; }
.stat-val.dmg  { color: #c02010; }

.stat-sep {
  font-size: 0.62rem;
  color: #a08050;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 2px 3px;
  border-bottom: 1px solid #d8c8a8;
}

/* Column 3: Status log + Chat */
.log-col {
  height: calc(100vh - 16px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.log-section {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Chat panel and messages fill the right column */
.log-col .chat-panel { flex: 1 1 0; min-height: 0; }
.log-col .chat-messages { flex: 1 1 0; min-height: 0; height: auto; }


.map-canvas-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#map-canvas {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  border: 1px solid #b89860;
  background: #1e1a10;
}

/* Shared panel label */
.panel-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #7a5838;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Move panel */
.move-status {
  font-size: 0.8rem;
  color: #6a5030;
  margin-bottom: 4px;
  min-height: 1.4em;
  line-height: 1.4;
}

/* Speed selector */
.speed-selector {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}
.speed-btn {
  flex: 1;
  font-size: 0.8rem;
  padding: 5px 2px;
  background: #e8dcc0;
  border-color: #a08040;
  color: #7a5838;
}
.speed-btn:hover:not(:disabled) { background: #d8c8a0; border-color: #806020; color: #2c1808; }
.speed-btn.active {
  background: #e8d890;
  border-color: #a07810;
  color: #5a3808;
  font-weight: bold;
}

.stall-warn {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 7px;
  border-radius: 3px;
  flex-shrink: 0;
  background: rgba(160,110,0,0.15);
  border: 1px solid #a07810;
  color: #7a5000;
}
.stall-warn.stall-urgent {
  background: rgba(160,40,0,0.14);
  border-color: #a03010;
  color: #8a2000;
}

.move-reasons {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.move-reason-item {
  font-size: 0.68rem;
  color: #6a4a10;
  background: rgba(120,80,0,0.08);
  border-left: 2px solid #a07010;
  padding: 2px 5px;
  border-radius: 0 2px 2px 0;
}

.move-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  border: 1px solid #b89860;
  border-radius: 4px;
  overflow: hidden;
}

.move-section {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #b89860;
}
.move-section:last-child { border-right: none; }

.move-section-label {
  font-size: 0.58rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a5820;
  background: rgba(120,80,0,0.10);
  border-bottom: 1px solid #b89860;
  padding: 2px 6px;
  text-align: center;
}

.move-section-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  justify-content: center;
}

.move-btn {
  background: #e8dcc0;
  border-color: #b89860;
  color: #2a1808;
  padding: 4px;
  text-align: center;
}
.move-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  padding: 4px;
}
.move-icon-btn svg {
  width: 100%;
  height: 100%;
  display: block;
  color: #4a3010;
}
.move-icon-btn:disabled svg { opacity: 0.3; }
.move-btn:hover:not(:disabled) { background: #d8c8a0; border-color: #a07810; color: #5a3808; }
.move-btn.selected {
  background: #e8d890;
  border-color: #a07810;
}
.move-btn.selected svg { color: #3a1808; }

.move-desc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.move-desc {
  flex: 1;
  font-size: 0.7rem;
  color: #7a5820;
  font-style: italic;
  min-width: 0;
}

#submit-btn {
  flex-shrink: 0;
  background: #3a6a20;
  border-color: #5a9030;
  color: #f0f0f0;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 7px 12px;
  white-space: nowrap;
}
#submit-btn:hover:not(:disabled) { background: #5a9030; color: #fff; }
#submit-btn:disabled { opacity: 0.35; cursor: default; }

/* Event log below cockpit */
.event-log {
  flex-shrink: 0;
  height: 120px;
  overflow-y: auto;
  background: #ece0c8;
  border: 1px solid #b89860;
  border-radius: 4px;
  padding: 6px 8px;
  font-size: 0.78rem;
  color: #7a5838;
  line-height: 1.65;
  scrollbar-width: thin;
  scrollbar-color: #b89860 transparent;
}
.event-log .log-entry { border-bottom: 1px solid #d8c8a8; padding: 1px 0; }
.event-log .log-entry:last-child { color: #2a1808; border-bottom: none; }
.event-log .log-hit   { color: #a02010; }
.event-log .log-fire  { color: #a07010; }
.event-log .log-end   { color: #3a8020; font-weight: bold; }
.event-log .log-lobby-btn {
  display: block;
  margin-top: 8px;
  background: #3a6a20;
  border: 1px solid #5a9030;
  border-radius: 4px;
  color: #f0f0f0;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: bold;
  padding: 6px 14px;
  cursor: pointer;
}
.event-log .log-lobby-btn:hover { background: #5a9030; color: #fff; }

/* Error */
.error-msg {
  background: #3d1515;
  border: 1px solid #7d2020;
  border-radius: 4px;
  color: #ff7b7b;
  font-size: 0.85rem;
  padding: 8px 12px;
  margin-top: 8px;
}

/* ── Battle synopsis modal ── */
.synopsis-panel {
  width: 560px;
  max-width: 94vw;
  max-height: 92vh;
  overflow-y: auto;
  background: #f7f0e0;
  border: 2px solid #8a6a30;
  box-shadow: 0 6px 40px rgba(0,0,0,0.55), inset 0 0 60px rgba(120,90,30,0.07);
  padding: 36px 42px 32px;
  position: relative;
}
.synopsis-outcome {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: #8a5808;
  margin-bottom: 4px;
}
.synopsis-location {
  font-family: Georgia, serif;
  font-size: 1rem;
  text-align: center;
  color: #3a2010;
  font-style: italic;
  margin-bottom: 14px;
}
.synopsis-rule {
  height: 1px;
  background: linear-gradient(to right, transparent, #b89860, transparent);
  margin-bottom: 14px;
}
.synopsis-header-block {
  border: 1px solid #c8aa70;
  border-radius: 3px;
  background: rgba(180,150,90,0.12);
  padding: 8px 12px;
  margin-bottom: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
}
.synopsis-meta-row {
  display: flex;
  gap: 8px;
  line-height: 1.5;
}
.synopsis-meta-label {
  font-weight: bold;
  color: #6a4818;
  min-width: 56px;
  text-transform: uppercase;
  font-size: 0.70rem;
  letter-spacing: 0.06em;
  padding-top: 1px;
}
.synopsis-meta-value {
  color: #3a2408;
  flex: 1;
}
.synopsis-map {
  width: 100%;
  height: 180px;
  border-radius: 4px;
  border: 1px solid #c8aa70;
  margin-bottom: 16px;
  filter: saturate(0.6) contrast(1.1) brightness(0.88);
  overflow: hidden;
}
.synopsis-map-pin {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: #8a1010;
  border: 2px solid #5a0808;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.synopsis-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  line-height: 1.85;
  color: #2a1808;
  font-size: 0.95rem;
  margin: 0 0 26px;
  min-height: 60px;
}
.synopsis-stats {
  border-top: 1px solid #c8aa70;
  margin: 0 0 22px;
  padding-top: 14px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.76rem;
  color: #3a2408;
}
.synopsis-result-line {
  font-weight: bold;
  color: #6a3808;
  margin-bottom: 10px;
  font-size: 0.78rem;
}
.synopsis-stat-table {
  display: grid;
  grid-template-columns: 1fr 1.1fr 3.5rem 3.5rem 1fr;
  gap: 0;
  width: 100%;
}
.synopsis-stat-header {
  display: contents;
}
.synopsis-stat-header span {
  font-size: 0.62rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #8a6030;
  padding: 0 6px 5px 0;
  border-bottom: 1px solid #c8aa70;
  margin-bottom: 4px;
}
.synopsis-stat-row {
  display: contents;
}
.synopsis-stat-row span {
  padding: 4px 6px 4px 0;
  border-bottom: 1px dotted #d8c080;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.synopsis-stat-row:last-child span { border-bottom: none; }
.synopsis-stat-name { font-weight: bold; color: #2a1408; }
.synopsis-stat-plane { color: #6a4818; font-style: italic; }
.synopsis-stat-hp, .synopsis-stat-fuel { color: #4a3010; text-align: right; padding-right: 12px !important; }
.synopsis-stat-dmg { color: #4a3010; }
.synopsis-chat {
  margin-top: 18px;
  border-top: 1px solid #5a3818;
  padding-top: 12px;
}
.synopsis-chat-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #8a6838;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.synopsis-chat-log {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 180px;
  overflow-y: auto;
}
.synopsis-chat-log::-webkit-scrollbar { width: 4px; }
.synopsis-chat-log::-webkit-scrollbar-thumb { background: #5a3a10; border-radius: 2px; }
.synopsis-chat-msg { font-size: 0.82rem; color: #3a2808; line-height: 1.45; }
.synopsis-chat-name { font-weight: bold; color: #b89860; margin-right: 4px; }
.log-chat-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #8a6838;
  text-transform: uppercase;
  margin: 14px 0 6px;
}
.log-chat-log { display: flex; flex-direction: column; gap: 4px; }
.log-chat-msg { font-size: 0.82rem; color: #3a2808; line-height: 1.45; }
.log-chat-name { font-weight: bold; color: #b89860; margin-right: 4px; }

.synopsis-footer { text-align: center; }
.synopsis-footer button {
  background: #5a3818;
  color: #f0e8d0;
  border: 1px solid #8a5828;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.05em;
}
.synopsis-footer button:hover { background: #7a5028; }

/* ── Pilot logs modal ── */
.logs-panel {
  width: 620px;
  max-width: 94vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.logs-list {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  padding-right: 4px;
}
.log-entry-card {
  border-radius: 6px;
  padding: 14px 16px;
  background: #faf4e6;
  border-left: 4px solid #b89860;
}
.log-entry-card.allies { border-left-color: #2a5298; }
.log-entry-card.german { border-left-color: #8a1010; }
.log-entry-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 0.8rem;
}
.log-pilot { font-weight: bold; color: #2a1808; font-size: 0.9rem; }
.log-plane { color: #5a4228; }
.log-location { color: #6a5030; font-style: italic; margin-left: auto; }
.log-outcome {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: bold;
}
.log-outcome.win  { background: #1a5010; color: #a0e070; }
.log-outcome.loss { background: #501010; color: #e07070; }
.log-outcome.tie  { background: #303010; color: #c0c060; }
.log-map {
  width: 100%;
  height: 140px;
  border-radius: 3px;
  border: 1px solid #c8b880;
  margin: 6px 0 10px;
  filter: saturate(0.6) contrast(1.1) brightness(0.88);
  overflow: hidden;
}
.log-meta-block {
  border: 1px solid #c8b880;
  border-radius: 3px;
  background: rgba(180,150,90,0.10);
  padding: 5px 10px;
  margin: 6px 0 10px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.74rem;
}
.log-meta-row {
  display: flex;
  gap: 6px;
  line-height: 1.5;
}
.log-meta-label {
  font-weight: bold;
  color: #6a4818;
  min-width: 52px;
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  padding-top: 1px;
}
.log-meta-value { color: #3a2408; flex: 1; }
.log-synopsis-text {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #3a2010;
}

.orders-under-cockpit {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid #c8b060;
  padding-top: 6px;
  margin-top: 4px;
}

.orders-header-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

@media (max-width: 900px) {
  .game-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
  .status-col, .log-col { height: auto; }
  .map-canvas-wrap { min-height: 280px; }
}
@media (max-width: 700px) {
  .l-intel-grid { grid-template-columns: 1fr; }
}
