/* 纸翼追风 · 手账纸感 UI
   发布号 20261118T113325Z-paper2 / 只改视觉层，DOM 钩子与交互全部保留 */

:root {
  color-scheme: light;
  /* 纸与墨 */
  --paper: #f6f2e8;
  --paper-warm: #f1ead9;
  --paper-deep: #e8e1d2;
  --paper-card: #fbf8f0;
  --paper-hud: #edf1e8;
  --ink: #263c40;
  --muted: #52645f;          /* 对 --paper 5.4:1 / 对 --paper-hud 5.1:1 */
  --muted-soft: #5b6a63;     /* 5:1 on paper；仍用于页脚等小字 */
  --line: #b6c4b6;
  --line-soft: #ccd5c6;
  /* 品牌色：文字色与装饰色分开，保证小字 ≥4.5:1 */
  --green: #3c7165;
  --green-dark: #2f5b52;
  --green-deep: #23473f;
  --gold: #b8873f;           /* 装饰用（大色块/图标） */
  --gold-ink: #8a6124;       /* 文字用，纸底 4.9:1 */
  --orange: #c96b4c;         /* 装饰用 */
  --orange-ink: #a6543c;     /* 文字/焦点环用，纸底 4.7:1 */
  --danger-ink: #9a4632;
  --tape: linear-gradient(100deg, rgba(216, 178, 122, .5), rgba(232, 200, 152, .42) 55%, rgba(203, 160, 108, .48));
  --shadow-soft: 0 18px 34px rgba(64, 78, 66, .12);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.2'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-width: 300px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  background:
    var(--grain),
    repeating-linear-gradient(0deg, rgba(63, 90, 78, .045) 0 1px, transparent 1px 30px),
    radial-gradient(120% 90% at 82% -10%, rgba(222, 205, 168, .35), transparent 60%),
    var(--paper);
  background-blend-mode: multiply, normal, normal, normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button:not(:disabled), a { cursor: pointer; }
img, svg, canvas { max-width: 100%; }

/* 焦点环：内外双色（白内圈 + 橙外圈），纸底与墨底都清晰 */
a:focus-visible, button:focus-visible, canvas:focus-visible, main:focus-visible,
[tabindex]:focus-visible, summary:focus-visible {
  outline: 3px solid #fffdf5;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--orange-ink) !important;
  border-radius: 4px;
}
button:disabled { cursor: default; opacity: .55; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; z-index: 60; top: 10px; left: 12px; padding: 12px 16px;
  border-radius: 4px; color: #fffdf5; background: var(--green-deep);
  box-shadow: 0 6px 16px rgba(20, 40, 34, .28);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

/* ============ header ============ */
.site-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(calc(100% - 44px - env(safe-area-inset-left) - env(safe-area-inset-right)), 1160px);
  min-height: 84px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute; left: 0; bottom: -1px; width: 62px; height: 2px;
  background: var(--orange);
}
.site-brand {
  display: inline-flex; align-items: center; justify-self: start; gap: 10px;
  min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 650;
  letter-spacing: 2.4px; text-decoration: none;
}
.site-brand:hover { color: var(--green-dark); }
.brand-mark { width: 13px; height: 18px; border-left: 5px solid var(--orange); border-top: 5px solid var(--orange); transform: skew(-12deg); }
.game-title { text-align: center; }
.game-title > span { display: block; margin-bottom: 4px; color: var(--muted); font: 9.5px/1.2 Menlo, monospace; letter-spacing: 2.6px; }
.game-title h1 {
  margin: 0; font-family: "Songti SC", "STSong", serif;
  font-size: 21px; font-weight: 650; letter-spacing: 5px;
}
.header-actions { display: flex; justify-self: end; align-items: center; gap: 8px; }

.icon-button, .text-button, .canvas-button, .secondary-button {
  min-width: 44px; min-height: 44px;
  border: 1px solid var(--line); border-radius: 8px;
  color: var(--muted); background: var(--paper-card);
  box-shadow: 0 2px 0 rgba(110, 104, 88, .10), inset 0 1px rgba(255, 255, 255, .7);
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.icon-button { padding: 0; font-size: 18px; }
.icon-button[aria-pressed="true"] { color: var(--orange-ink); border-color: var(--orange-ink); background: #f8ecdf; }
.text-button { padding: 0 13px; font-size: 12px; }
.text-button:hover, .icon-button:hover, .secondary-button:hover { color: var(--ink); border-color: var(--green); background: #fdfbf4; }
.icon-button:hover { transform: translateY(-1px); }
.offline { position: relative; padding-left: 27px; border-color: transparent; background: transparent; box-shadow: none; }
.offline::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px;
  margin-top: -4px; border-radius: 50%; background: var(--muted-soft);
  box-shadow: 0 0 0 3px rgba(102, 117, 108, .14);
  transition: background-color .2s ease, box-shadow .2s ease;
}
.offline[data-state="ready"] { color: var(--green-dark); }
.offline[data-state="ready"]::before { background: var(--green); box-shadow: 0 0 0 3px rgba(60, 113, 101, .16); }
.offline[data-state="retry"] { color: var(--orange-ink); border-color: #d9b9a7; background: #fbf1e8; }
.offline[data-state="retry"]::before { background: var(--orange); }
.offline[data-state="loading"] { color: var(--muted); }
.offline[data-state="loading"]::before { background: var(--gold); animation: offline-pulse 1.8s ease-in-out infinite; }
.offline:disabled { color: var(--muted); }
@keyframes offline-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(184, 135, 63, .12); } 50% { box-shadow: 0 0 0 6px rgba(184, 135, 63, .05); } }

/* ============ 版心 ============ */
.page-shell {
  width: min(calc(100% - 44px - env(safe-area-inset-left) - env(safe-area-inset-right)), 1120px);
  margin: 0 auto;
  padding: 28px 0 44px;
}

/* ============ 工坊首页 hero ============ */
.hangar-hero {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 48px;
  padding: 18px 0 42px;
}
.eyebrow, .dialog-kicker { margin: 0 0 14px; color: var(--green-dark); font-size: 12px; letter-spacing: 2.2px; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 10px; }
.hero-copy .eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--orange); }
.hero-copy h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(34px, 4.3vw, 51px);
  font-weight: 600; line-height: 1.34; letter-spacing: 2px; text-wrap: balance;
}
.hero-description { max-width: 470px; margin: 20px 0 24px; color: var(--muted); font-size: 14.5px; line-height: 1.95; }
.hangar-stats { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 34px); margin-bottom: 26px; }
.hangar-stats > div { position: relative; min-width: 84px; padding-left: 12px; }
.hangar-stats > div::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 2px;
  width: 2px; background: linear-gradient(var(--green), rgba(60, 113, 101, .25));
}
.hangar-stats span, .flight-hud span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11.5px; letter-spacing: 1.2px; }
.hangar-stats strong { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.hangar-stats small, .flight-hud small { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }

.primary-button, .secondary-button {
  min-height: 52px; padding: 0 24px; border-radius: 7px;
  font-weight: 650; letter-spacing: 1.4px; font-size: 14.5px;
  transition: background-color .16s ease, border-color .16s ease, transform .12s ease, box-shadow .16s ease;
}
.primary-button {
  border: 1px solid var(--green-deep);
  color: #fffdf5;
  background: linear-gradient(180deg, #3c7165, #2f5b52);
  box-shadow: 0 6px 0 rgba(35, 71, 63, .18), inset 0 1px rgba(255, 255, 255, .2);
}
.primary-button:hover:not(:disabled) { background: linear-gradient(180deg, #3f7569, #315e56); }
.primary-button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 rgba(35, 71, 63, .18); }
.primary-button span { margin-left: 24px; }
.hero-copy > .primary-button { width: min(100%, 286px); display: flex; align-items: center; justify-content: space-between; }
.rank-goal {
  margin: 14px 0 0; padding: 2px 0 2px 10px;
  border-left: 2px dashed #c8a684; color: var(--muted);
  font-family: "Songti SC", "STSong", serif; font-size: 12.5px; letter-spacing: .4px;
}

/* hero 手账插画 */
.plane-stage {
  position: relative; min-width: 0;
  padding: 9px;
  border: 1px solid #a9bcae;
  background: linear-gradient(160deg, #fbf7ee, #f2ecdd);
  box-shadow: 12px 14px 0 #d9d1be, 0 20px 34px rgba(84, 72, 48, .10);
  transform: rotate(1deg);
}
.plane-stage::before,
.plane-stage::after {
  content: ""; position: absolute; z-index: 3; width: 132px; height: 34px;
  background: var(--tape);
  box-shadow: 0 2px 5px rgba(96, 74, 44, .14), inset 0 0 0 1px rgba(255, 255, 255, .22);
  clip-path: polygon(2% 8%, 99% 0%, 97% 26%, 100% 54%, 96% 80%, 99% 100%, 1% 92%, 3% 64%, 0 38%, 2% 20%);
}
.plane-stage::before { top: -15px; left: 40px; transform: rotate(-3deg); }
.plane-stage::after { right: 30px; bottom: -15px; transform: rotate(-2.2deg); }
.plane-stage svg { display: block; width: 100%; height: auto; border: 1px solid rgba(63, 90, 78, .16); }
.stage-note {
  position: absolute; z-index: 4; color: #45665e;
  font: 11.5px/1.4 Menlo, monospace; letter-spacing: 1.6px;
}
.note-top {
  top: 22px; left: 26px; padding: 6px 10px;
  background: rgba(251, 248, 240, .8); border: 1px solid rgba(96, 120, 104, .35); border-radius: 3px;
}
.note-bottom {
  right: 22px; bottom: 20px; padding: 6px 11px;
  border: 1px solid rgba(96, 120, 104, .3); border-radius: 3px;
  background: rgba(251, 248, 240, .86); color: #34564e;
  font-family: "Songti SC", "STSong", serif; font-size: 12px; letter-spacing: 1px;
}
/* 插画内部 */
.stage-route { stroke: #4a776a; stroke-width: 2.4; stroke-dasharray: 1 10; stroke-linecap: round; opacity: .9; }
.stage-route-tip { stroke: #4a776a; }
.stage-sun { }
.stage-ridge { }
.stage-hill-back, .stage-hill-mid, .stage-hill-front, .stage-hill-line, .stage-grass { }
.stage-cloud { }
.plane-shadow { fill: #3f6157; opacity: .15; }
.plane-main { fill: #fffdf4; }
.plane-fold { fill: #ece7da; }
.plane-wing { fill: #f8f5ea; }
.plane-stripe { fill: var(--orange); }
.plane-line { fill: none; stroke: #99a89f; stroke-width: 1.1; }
.plane-gloss { fill: #fffdf7; opacity: .55; }
.stage-coin, .stage-coins { }
.stage-clouds, .stage-birds, .stage-wind, .stage-sparkle, .stage-grass { }

/* ============ 工坊 ============ */
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-family: "Songti SC", "STSong", serif; font-size: 32px; letter-spacing: 2px; }
.section-heading > p { margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .4px; }
.workshop { padding: 30px 0 36px; border-top: 1px solid var(--line); }
.equipment-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.equipment-card {
  position: relative;
  display: flex; flex-direction: column; min-width: 0;
  padding: 20px 19px 18px;
  border: 1px solid #c2ccbc;
  border-radius: 4px;
  background:
    var(--grain),
    linear-gradient(165deg, #fcf9f2, #f4eee1);
  background-blend-mode: multiply, normal;
  box-shadow: 4px 5px 0 rgba(196, 186, 164, .55), 0 2px 0 rgba(255, 255, 255, .5) inset;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.equipment-card::after {
  content: ""; position: absolute; top: -1px; right: -1px; width: 22px; height: 22px;
  background: linear-gradient(145deg, #e7ddc8 0 46%, #fbf8f0 46% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  box-shadow: -1px 1px 2px rgba(90, 74, 46, .13);
  border-top-right-radius: 4px;
}
.equipment-card[data-maxed="true"] {
  border-color: #a9bfa9;
  background: var(--grain), linear-gradient(165deg, #f0f4ea, #e7eee2);
  background-blend-mode: multiply, normal;
}
.equipment-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.equipment-mark svg { display: block; width: 20px; height: 20px; }
.equipment-mark small { font: 600 9px/1 Menlo, monospace; letter-spacing: 0; }
.equipment-mark {
  display: grid; place-items: center; gap: 1px; width: 42px; height: 42px;
  border: 1px dashed #8ea697; border-radius: 3px;
  color: var(--green-dark); background: rgba(255, 253, 245, .55);
  font-family: "Songti SC", serif; font-size: 12px;
  transform: rotate(-3deg);
}
.equipment-level { display: flex; gap: 4px; }
.equipment-level i {
  width: 8px; height: 19px; border: 1px solid #a3b3a5; border-radius: 2px;
  background: transparent;
  transition: background-color .2s ease, border-color .2s ease;
}
.equipment-level i.filled { border-color: var(--green); background: linear-gradient(var(--green), #35675c); }
.equipment-card h3 { margin: 16px 0 8px; font-size: 17.5px; letter-spacing: .6px; }
.equipment-card p { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.75; }
.equipment-effect { min-height: 3.5em; color: var(--green-dark) !important; font-weight: 600; }
.upgrade-button {
  width: 100%; min-height: 46px; margin-top: auto;
  border: 1px solid #8fa596; border-radius: 5px;
  color: var(--green-dark); background: linear-gradient(#f2f5ec, #e7eee2);
  font-size: 13px; font-weight: 650; letter-spacing: .4px;
  box-shadow: 0 2px 0 rgba(120, 130, 112, .16), inset 0 1px rgba(255, 255, 255, .6);
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .12s ease;
}
.upgrade-button:not(:disabled):hover { color: #fffdf5; background: linear-gradient(#3f7569, #35675c); border-color: #35675c; }
.upgrade-button:not(:disabled):active { transform: translateY(1px); }
.upgrade-button strong { margin-left: 5px; color: var(--gold-ink); font-weight: 700; }
.upgrade-button:not(:disabled):hover strong { color: #ffe6b6; }
.upgrade-button:disabled { border-style: dashed; color: var(--muted); background: rgba(238, 238, 228, .7); box-shadow: none; }
.upgrade-button:disabled strong { color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .equipment-card:hover {
    transform: translateY(-4px);
    border-color: #a9bcab;
    box-shadow: 5px 9px 0 rgba(196, 186, 164, .6), 0 14px 24px rgba(70, 84, 68, .10);
  }
}

/* ============ 手账便签 ============ */
.field-notes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  padding: 30px 0 4px; border-top: 1px solid var(--line);
}
.field-notes article { position: relative; padding-top: 2px; }
.field-notes article > span {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border: 1px solid #c9b79d; border-radius: 50%;
  color: var(--orange-ink); background: #f9f2e5;
  font: 10.5px/1 Menlo, monospace; letter-spacing: .5px;
  vertical-align: middle;
}
.field-notes h3 { display: inline; margin-left: 9px; font-size: 14.5px; letter-spacing: .4px; }
.field-notes p { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.85; }

/* ============ 飞行 HUD ============ */
.flight-view { max-width: 1060px; margin: 0 auto; }
.flight-hud { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 13px; }
.flight-hud > div {
  position: relative; padding: 12px 16px 13px 20px;
  border: 1px solid #c3cdbd; border-radius: 4px;
  background: var(--grain), linear-gradient(170deg, #fbf8f0, #eef1e7);
  background-blend-mode: multiply, normal;
  box-shadow: 3px 3px 0 rgba(196, 186, 164, .5);
}
.flight-hud > div::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--green);
}
.flight-hud span { margin-bottom: 3px; font-size: 11px; letter-spacing: 1.6px; }
.flight-hud strong {
  display: block;
  font-size: clamp(23px, 2.3vw, 30px); font-weight: 700; line-height: 1.15;
  font-variant-numeric: tabular-nums; letter-spacing: .5px;
}
.flight-reward { border-color: #d3bd94 !important; background: var(--grain), linear-gradient(170deg, #fdf8ec, #f4ead4) !important; background-blend-mode: multiply, normal !important; }
.flight-reward::before { background: var(--gold) !important; }
.flight-reward strong { color: var(--gold-ink); }

/* ============ 画布 ============ */
.flight-canvas-wrap {
  position: relative; overflow: hidden;
  height: min(61dvh, 600px); min-height: 430px;
  border: 1px solid #93aca4; border-radius: 4px;
  background: #bfe1e4;
  box-shadow: 9px 11px 0 #d9d1be, 0 18px 30px rgba(60, 80, 70, .08);
}
#flight-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.canvas-toolbar {
  position: absolute; inset: 12px 12px auto;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  pointer-events: none;
}
.zone-name {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .7); border-radius: 999px;
  color: #2a4c48; background: rgba(251, 248, 240, .9);
  box-shadow: 0 2px 6px rgba(50, 80, 70, .12);
  font-size: 12px; letter-spacing: 1.4px;
}
.zone-name::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.canvas-button {
  min-width: 84px; min-height: 44px; padding: 0 12px;
  color: var(--ink); background: rgba(251, 248, 240, .94);
  border-radius: 8px; font-size: 12px; letter-spacing: .5px;
  pointer-events: auto;
  box-shadow: 0 2px 0 rgba(90, 100, 88, .16);
}
.canvas-button[aria-pressed="true"] { color: #fffdf5; background: var(--green-dark); border-color: var(--green-deep); }
.canvas-button:hover { background: #fffdf6; }
.canvas-button[aria-pressed="true"]:hover { background: var(--green); }

.flight-status {
  position: absolute; z-index: 3; left: 50%; bottom: 14px;
  transform: translateX(-50%);
  max-width: min(calc(100% - 140px), 660px);
  margin: 0; padding: 7px 16px 8px;
  border: 1px solid rgba(96, 120, 104, .42); border-radius: 999px;
  color: var(--muted); background: rgba(251, 248, 240, .92);
  box-shadow: 0 3px 9px rgba(50, 80, 70, .12);
  font-size: 12.5px; line-height: 1.5; text-align: center;
  pointer-events: none;
  backdrop-filter: blur(3px);
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.flight-status[data-tone="success"] { color: var(--green-dark); border-color: rgba(60, 113, 101, .5); background: rgba(240, 246, 237, .95); }
.flight-status[data-tone="danger"] { color: var(--danger-ink); border-color: rgba(154, 70, 50, .5); background: rgba(250, 238, 232, .95); }

/* 暂停遮罩 */
.pause-overlay {
  position: absolute; z-index: 4; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 0;
  padding: 26px; text-align: center;
  background:
    var(--grain),
    rgba(240, 243, 233, .93);
  background-blend-mode: multiply, normal;
  backdrop-filter: blur(5px);
}
.pause-overlay::before {
  content: "PAPER WIND · PAUSED";
  margin-bottom: 10px; color: var(--green-dark);
  font: 10px/1 Menlo, monospace; letter-spacing: 3px;
}
.pause-overlay strong { font-family: "Songti SC", serif; font-size: 32px; letter-spacing: 2px; }
.pause-overlay p { margin: 10px 0 24px; color: var(--muted); font-size: 13.5px; }
.pause-overlay .primary-button { min-width: 220px; }
.pause-overlay .text-button { margin-top: 10px; border-color: transparent; background: transparent; box-shadow: none; }
.pause-overlay .text-button:hover { color: var(--orange-ink); background: transparent; }

/* ============ 控制区 ============ */
.flight-controls { display: grid; grid-template-columns: minmax(250px, .72fr) 1fr; align-items: center; gap: 22px; margin-top: 18px; }
.lift-button {
  width: 100%; min-height: 58px;
  font-size: 15px; letter-spacing: 2px;
  touch-action: none; user-select: none;
}
.lift-button[data-active="true"] {
  color: #fff9ee;
  background: linear-gradient(180deg, #bc6a4c, #a6543c);
  border-color: #8f442f;
  box-shadow: 0 3px 0 rgba(120, 58, 40, .3), inset 0 2px 6px rgba(90, 40, 26, .25);
  transform: translateY(2px);
}
.lift-button[data-active="true"]:hover { background: linear-gradient(180deg, #b05c43, #9d4c34); }
.control-explanation { position: relative; padding-left: 16px; border-left: 1px dashed #b9c6b4; }
.control-explanation strong, .control-explanation span { display: block; }
.control-explanation strong { margin-bottom: 5px; font-size: 14.5px; letter-spacing: .5px; }
.control-explanation span { color: var(--muted); font-size: 12.5px; line-height: 1.7; }

/* ============ 弹窗 ============ */
.dialog {
  width: min(calc(100% - 28px), 520px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 34px 32px max(30px, calc(18px + env(safe-area-inset-bottom)));
  overflow: auto; overscroll-behavior: contain;
  border: 1px solid #a4b4a3; border-radius: 5px;
  color: var(--ink);
  background: var(--grain), linear-gradient(168deg, #fcf9f1, #f4ede0);
  background-blend-mode: multiply, normal;
  box-shadow: 0 26px 60px rgba(24, 40, 35, .32), 12px 12px 0 rgba(150, 140, 118, .38);
  text-align: center;
}
.dialog::backdrop { background: #1b332fa8; backdrop-filter: blur(4px); }
.dialog::before {
  content: ""; display: block; width: 48px; height: 2px; margin: -8px auto 18px;
  background: var(--orange); opacity: .8;
}
.dialog h2 {
  margin: 10px 0 16px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(25px, 3vw, 32px); font-weight: 600; line-height: 1.45; letter-spacing: 1.4px; text-wrap: balance;
}
.dialog > p:not(.dialog-kicker):not(.dialog-description) { color: var(--muted); font-size: 14px; line-height: 1.9; }
.dialog .primary-button, .dialog .secondary-button { width: 100%; margin-top: 16px; }
.dialog-close {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  color: var(--muted); background: transparent; font-size: 27px; line-height: 1;
}
.dialog-close:hover { color: var(--ink); background: rgba(120, 130, 112, .12); }

/* 欢迎 */
.dialog-kicker { color: var(--green-dark); font: 10.5px/1.5 Menlo, monospace; letter-spacing: 2.6px; }
.welcome-plane { position: relative; width: 190px; height: 104px; margin: 0 auto 10px; }
.welcome-plane svg { display: block; width: 100%; height: auto; overflow: visible; }
.welcome-plane .wp-route { fill: none; stroke: #6d998d; stroke-width: 1.6; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .8; }
.welcome-plane .wp-shadow { fill: #3f6157; opacity: .14; }
.welcome-plane .wp-main { fill: #fffdf4; }
.welcome-plane .wp-fold { fill: #ece7da; }
.welcome-plane .wp-wing { fill: #f7f4e9; }
.welcome-plane .wp-stripe { fill: var(--orange); }
.welcome-plane .wp-line { fill: none; stroke: #99a89f; stroke-width: 1.1; }
.welcome-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.welcome-tips span {
  padding: 9px 6px; border: 1px dashed #a9b8aa; border-radius: 4px;
  color: var(--green-dark); background: rgba(251, 248, 240, .7);
  font-size: 11.5px; letter-spacing: .6px;
}

/* 结算 */
.result-dialog { width: min(calc(100% - 28px), 540px); }
.result-distance { position: relative; margin: 20px 0 20px; padding-bottom: 16px; }
.result-distance::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 78%; height: 1px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, #c4cbbc 0 5px, transparent 5px 11px);
}
.result-distance strong {
  color: var(--green-dark);
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(58px, 7.5vw, 86px); font-weight: 600; line-height: .92;
  letter-spacing: -1.5px; font-variant-numeric: tabular-nums;
}
.result-distance > span { margin-left: 8px; color: var(--muted); font-size: 15px; }
.result-distance small {
  display: inline-block; margin-left: 12px; padding: 4px 9px;
  border: 1px dashed #b4553a; border-radius: 3px;
  color: #8f3f28; background: #f9e9df;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px;
  transform: rotate(-5deg) translateY(-8px);
}
.result-breakdown { margin-top: 4px; border: 1px solid #c8d0c2; border-radius: 4px; overflow: hidden; background: rgba(243, 238, 225, .55); }
.result-breakdown > div { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 14px; border-bottom: 1px dashed #c9cfc1; font-size: 13.5px; }
.result-breakdown > div:last-child { border-bottom: 0; }
.result-breakdown span { color: var(--muted); letter-spacing: .4px; }
.result-breakdown strong { color: var(--gold-ink); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.result-breakdown .result-total { padding: 13px 14px; background: #e7eee4; font-size: 15px; }
.result-breakdown .result-total span { color: var(--ink); font-weight: 650; letter-spacing: .8px; }
.result-breakdown .result-total strong { color: var(--green-dark); font-size: 22px; letter-spacing: .5px; }
.result-dialog #result-detail { margin: 18px 0 4px; color: var(--muted); font-size: 12.5px; line-height: 1.9; }
.result-dialog .primary-button { margin-top: 18px; }

/* 帮助 */
.help-dialog { text-align: left; }
.help-dialog h2 { padding-right: 26px; }
.help-dialog ul { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: help-item; }
.help-dialog li {
  position: relative; margin-bottom: 13px; padding-left: 36px;
  color: var(--muted); font-size: 13.5px; line-height: 1.85;
}
.help-dialog li::before {
  counter-increment: help-item; content: counter(help-item, decimal-leading-zero);
  position: absolute; left: 0; top: 1px;
  display: grid; place-items: center; width: 25px; height: 25px;
  border: 1px solid #c9b79d; border-radius: 50%;
  color: var(--orange-ink); background: #f9f1e2;
  font: 10px/1 Menlo, monospace;
}
.help-dialog strong { color: var(--ink); font-weight: 650; }
.help-dialog > p:last-child {
  margin: 18px 0 0; padding-top: 14px; border-top: 1px dashed #c4cbbc;
  color: var(--muted); font-size: 12px; line-height: 1.85;
}

/* ============ 页脚手账注释 ============ */
.page-footer {
  display: grid; gap: 6px;
  margin-top: 38px; padding: 26px 0 2px;
  border-top: 1px dashed var(--line);
  color: var(--muted); font-size: 12.5px; line-height: 1.85;
}
.footer-kicker { margin: 0; color: var(--green-dark); font: 10.5px/1.5 Menlo, monospace; letter-spacing: 2.8px; }
.footer-note { max-width: 62ch; margin: 0; }
.footer-meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px;
  margin: 8px 0 0; padding-top: 10px; border-top: 1px solid rgba(182, 196, 182, .5);
  color: var(--muted-soft); font: 9.5px/1.6 Menlo, monospace; letter-spacing: 1.8px;
}
#flight-view:not([hidden]) ~ .page-footer { display: none; }

.noscript { color: var(--danger-ink); text-align: center; }

/* ============ 响应式 ============ */
@media (max-width: 1000px) {
  .hangar-hero { gap: 30px; }
  .equipment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipment-effect { min-height: 0; }
  .note-top { top: 18px; left: 20px; }
  .note-bottom { right: 18px; bottom: 16px; }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: calc(100% - 26px - env(safe-area-inset-left) - env(safe-area-inset-right));
    min-height: 68px;
  }
  .game-title { display: none; }
  .site-brand { font-size: 14px; letter-spacing: 2px; }
  .header-actions { gap: 3px; }
  .offline { max-width: 112px; padding: 0 4px 0 23px; font-size: 11.5px; letter-spacing: .2px; }
  .offline::before { left: 7px; }
  .page-shell { width: calc(100% - 26px - env(safe-area-inset-left) - env(safe-area-inset-right)); padding-top: 18px; padding-bottom: 22px; }
  .hangar-hero { grid-template-columns: 1fr; padding-top: 4px; gap: 30px; }
  .hero-copy h2 { font-size: 36px; letter-spacing: 1px; }
  .hero-description { margin-block: 16px 20px; font-size: 14px; }
  .hangar-stats { gap: 14px; justify-content: space-between; }
  .hangar-stats > div { min-width: 0; }
  .hangar-stats strong { font-size: 23px; }
  .plane-stage { width: calc(100% - 6px); margin-inline: auto; }
  .note-top { top: 14px; left: 14px; padding: 4px 8px; font-size: 10.5px; letter-spacing: 1.2px; }
  .note-bottom { right: 14px; bottom: 12px; font-size: 11px; }
  .section-heading { display: block; margin-bottom: 16px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading > p { margin-top: 8px; }
  .field-notes { grid-template-columns: 1fr; gap: 20px; padding-top: 26px; }

  .flight-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 10px; }
  .flight-hud > div { padding: 9px 12px 10px 16px; box-shadow: 2px 2px 0 rgba(196, 186, 164, .5); }
  .flight-hud span { font-size: 10.5px; letter-spacing: 1.2px; }
  .flight-hud strong { font-size: 23px; }
  .flight-canvas-wrap { height: min(55dvh, 480px); min-height: 330px; box-shadow: 5px 6px 0 #d9d1be; }
  .canvas-toolbar { inset: 8px 8px auto; }
  .zone-name { padding: 6px 11px; font-size: 11px; letter-spacing: 1px; }
  .canvas-button { min-width: 78px; min-height: 44px; font-size: 11.5px; }
  .flight-controls { grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
  .lift-button { min-height: 56px; }
  .control-explanation { padding-left: 0; border-left: 0; text-align: center; }
  .control-explanation strong { margin-bottom: 2px; font-size: 13.5px; }
  .control-explanation span { font-size: 12px; }
  .flight-status {
    bottom: 8px; max-width: calc(100% - 20px);
    padding: 6px 13px 7px; font-size: 11.5px;
  }
  .pause-overlay strong { font-size: 27px; }
  .pause-overlay .primary-button { min-width: 0; width: min(100%, 260px); }

  .dialog { padding: 28px 20px max(24px, calc(16px + env(safe-area-inset-bottom))); }
  .dialog::before { margin-bottom: 14px; }
  .dialog h2 { font-size: 24px; }
  .welcome-tips { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .welcome-tips span { padding: 8px 4px; font-size: 11px; letter-spacing: .2px; }
  .result-distance strong { font-size: clamp(54px, 15vw, 72px); }
  .help-dialog li { font-size: 13px; }
  .footer-meta { display: grid; gap: 4px; letter-spacing: 1.2px; }
}

@media (max-width: 420px) {
  .hangar-stats { gap: 10px; }
  .hangar-stats strong { font-size: 22px; }
  .equipment-grid { gap: 9px; }
  .equipment-card { padding: 14px 12px 13px; }
  .equipment-mark svg { display: block; width: 20px; height: 20px; }
.equipment-mark small { font: 600 9px/1 Menlo, monospace; letter-spacing: 0; }
.equipment-mark { width: 36px; height: 36px; font-size: 11px; }
  .equipment-level i { width: 6px; height: 16px; }
  .equipment-card h3 { font-size: 15.5px; margin-top: 13px; }
  .equipment-card p { font-size: 12px; }
  .equipment-effect { min-height: 0; }
  .upgrade-button { min-height: 44px; font-size: 12px; }
  .field-notes p { font-size: 12px; }
  .result-breakdown > div { padding: 9px 11px; }
  .result-breakdown .result-total { padding: 12px 11px; }
}

@media (max-width: 340px) {
  .equipment-grid { grid-template-columns: 1fr; }
  .hero-copy h2 { font-size: 30px; }
  .welcome-tips { grid-template-columns: 1fr; }
}

/* 横屏矮视口：HUD 与画布一屏放下 */
@media (orientation: landscape) and (max-height: 560px) {
  .site-header {
    min-height: 42px;
    width: calc(100% - 20px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }
  .site-header::after { width: 40px; }
  .site-brand { font-size: 13px; letter-spacing: 1.6px; min-height: 38px; }
  .game-title > span { display: none; }
  .game-title h1 { font-size: 16px; letter-spacing: 3px; }
  .header-actions { gap: 4px; }
  .icon-button, .text-button { min-width: 40px; min-height: 38px; font-size: 15px; }
  .offline { max-width: 106px; font-size: 11px; }
  .page-shell { width: calc(100% - 20px - env(safe-area-inset-left) - env(safe-area-inset-right)); padding: 4px 0 6px; }
  .flight-view {
    display: flex; flex-direction: column;
    height: calc(100dvh - 52px);
    max-width: none;
  }
  .flight-hud { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
  .flight-hud > div { padding: 5px 9px 6px 12px; box-shadow: 2px 2px 0 rgba(196, 186, 164, .5); }
  .flight-hud > div::before { top: 5px; bottom: 5px; }
  .flight-hud span { margin-bottom: 1px; font-size: 9px; letter-spacing: 1px; }
  .flight-hud strong { font-size: 16px; }
  .flight-hud small { font-size: 9px; margin-left: 2px; }
  .flight-canvas-wrap { flex: 1 1 auto; height: auto; min-height: 0; box-shadow: 4px 4px 0 #d9d1be; }
  .canvas-toolbar { inset: 6px 6px auto; }
  .zone-name { padding: 5px 10px; font-size: 10.5px; }
  .canvas-button { min-width: 72px; min-height: 44px; font-size: 11px; }
  .flight-controls { grid-template-columns: minmax(190px, 32%) minmax(0, 1fr); gap: 12px; margin-top: 7px; align-items: center; }
  .lift-button { min-height: 46px; font-size: 13px; letter-spacing: 1px; }
  .control-explanation { padding-left: 12px; border-left: 1px dashed #b9c6b4; text-align: left; }
  .control-explanation strong { margin-bottom: 1px; font-size: 12.5px; }
  .control-explanation span { display: none; }
  .flight-status { bottom: 7px; padding: 5px 12px; font-size: 11px; max-width: calc(100% - 130px); }
  .page-footer { display: none; }
}

/* 阻尼动态：尊重系统设置 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .plane-stage, .note-bottom, .equipment-mark, .result-distance small, .rank-goal { transform: none; }
  .icon-button:hover, .equipment-card:hover, .primary-button:active:not(:disabled) { transform: none; }
  .offline[data-state="loading"]::before { box-shadow: 0 0 0 3px rgba(184, 135, 63, .14); }
}

/* VOL.05 · 风的旅行家 — artwork, instruments and travel journal */
:root { --paper:#f5f0e4; --green-deep:#254e45; }
body { background-size:160px 160px,100% 32px,auto,auto; }
.site-header { min-height:78px; }
.page-shell { max-width:1200px; }
.hangar-hero { padding:30px 0 58px; gap:46px; }
.hero-copy h2 { font-size:clamp(38px,4.7vw,60px); line-height:1.3; letter-spacing:3px; }
.hero-description { max-width:380px; }
.journal-art { display:block; width:100%; height:auto; aspect-ratio:3/2; object-fit:cover; border:1px solid #c8bfa8; }
.plane-stage { padding:7px; transform:rotate(1.1deg); background:#fff9eb; box-shadow:7px 9px 0 #d8cdb5,0 25px 42px #6a5b3520; }
.plane-stage::before { width:85px; left:25px; opacity:.65; }
.plane-stage::after { width:85px; right:20px; opacity:.65; }
.note-top { top:19px; left:19px; font-size:9px; background:#f8f1dfe8; }
.note-bottom { right:17px; bottom:18px; font-size:11px; background:#f8f1dfed; }
.voyage-desk { border-block:1px solid #bfc5b4; padding:32px 0 30px; margin-bottom:38px; }
.section-heading h2 { font-size:30px; letter-spacing:2px; }
.preflight-grid { display:grid; grid-template-columns:.95fr 1.3fr .75fr; gap:20px; align-items:stretch; }
.mission-paper { position:relative; padding:25px 23px; background:linear-gradient(150deg,#faf6e8,#ebe7d5); border:1px solid #c9c9b3; box-shadow:3px 4px 0 #d6cfbb; }
.mission-paper::before { content:'AIR MAIL / 05'; display:block; color:#9a6547; font:9px/1.5 Menlo,monospace; letter-spacing:3px; border-bottom:1px dashed #c5b8a1; padding-bottom:15px; margin-bottom:19px; }
.mini-label { display:block; color:#52695e; font-size:11px; letter-spacing:1.4px; line-height:1.6; }
.mission-paper h3 { font:600 23px/1.55 'Songti SC','STSong',serif; margin:12px 0; }
.mission-paper p { font-size:13px; color:var(--muted); line-height:1.9; }
.route-tag { display:block; margin-top:20px; font-size:11px; color:#8d603c; line-height:1.7; }
.fold-picker,.skin-picker { min-width:0; margin:0; padding:14px; border:1px solid #c8cebf; }
.fold-picker legend,.skin-picker legend { padding:0 9px; font-size:13px; letter-spacing:2px; }
#fold-options { display:grid; gap:8px; }
.fold-option { display:flex; align-items:center; gap:13px; width:100%; min-height:83px; padding:11px; border:1px solid transparent; background:#f9f6ed; color:var(--ink); text-align:left; border-radius:4px; }
.fold-option[aria-pressed=true] { border-color:#427265; background:#e6eadc; box-shadow:inset 3px 0 #427265; }
.fold-number { color:#937048; font:11px/1 Menlo,monospace; }
.fold-option>span:nth-child(2) { flex:1; }
.fold-option strong { display:block; font:600 20px/1.4 'Songti SC',serif; }
.fold-option small { display:block; font-size:12px; line-height:1.6; color:#50635b; }
.fold-option em { display:block; font-size:10px; font-style:normal; color:#6d705c; line-height:1.5; margin-top:3px; }
.fold-option svg { width:61px; flex-shrink:0; fill:#f9f0d9; stroke:#7d9785; stroke-width:1; filter:drop-shadow(1px 4px 0 #728e6925); }
.fold-option:nth-child(2) svg { transform:scaleX(1.1) scaleY(.8); }
.fold-option:nth-child(3) svg { transform:scaleX(.88) scaleY(1.16); }
#skin-options { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.skin-swatch { padding:8px 4px; color:var(--ink); background:transparent; border:1px solid transparent; min-height:94px; border-radius:4px; }
.skin-swatch>span { display:grid; place-content:center; width:48px; height:55px; margin:0 auto 8px; background:linear-gradient(135deg,transparent 75%,#fff8 75%),var(--stock); color:var(--stripe); border:1px solid #aeb5a7; font:30px/1 serif; box-shadow:2px 3px 0 #b8af932c; transform:rotate(-5deg); }
.skin-swatch[aria-pressed=true] { border-color:#467c69; background:#e5e8d9; }
.skin-swatch small { font-size:11px; }
#skin-hint { font-size:11px; color:var(--muted); line-height:1.9; margin:16px 3px 0; }
.stamp-heading { display:flex; justify-content:space-between; gap:12px; margin-top:28px; align-items:center; }
.stamp-heading strong { color:#9e7046; font:12px/1.5 Menlo,monospace; }
.stamp-book { display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); gap:12px; margin-top:18px; }
.travel-stamp { display:grid; justify-items:center; gap:6px; padding:15px 4px 12px; border:2px dashed #a6aa96; color:#767e6d; opacity:.55; border-radius:42% 42% 7px 7px; background:#efecdf; transform:rotate(var(--tilt)); }
.travel-stamp>span { font:27px/1.2 Georgia,serif; }
.travel-stamp strong { font-size:11px; font-weight:500; }
.travel-stamp small { font-size:9px; letter-spacing:2px; }
.travel-stamp.collected { border-color:#a4654e; color:#95533d; opacity:1; background:#f6e8d9; box-shadow:inset 0 0 0 3px #f5f0e4,inset 0 0 0 4px #a4654e55; }
.equipment-card { display:flex; flex-direction:column; min-width:0; }
.equipment-card>p { min-height:65px; }
.equipment-sketch { height:104px; display:grid; place-content:center; margin:0 0 13px; background:radial-gradient(ellipse at center,#dce3d0aa,transparent 70%); border-block:1px dashed #cbd0bd; }
.equipment-sketch svg { width:82px; height:82px; color:#5f7a67; transform:rotate(-8deg); filter:drop-shadow(3px 6px 0 #afaa8e30); }
.equipment-spec { margin-bottom:15px; }
.equipment-spec summary { cursor:pointer; font-size:12px; color:#4d6c5e; min-height:44px; display:flex; align-items:center; gap:6px; }
.equipment-spec summary::before { content:'+'; font-size:17px; }
.equipment-spec[open] summary::before { content:'−'; }
.equipment-spec p { min-height:0; font-size:11px; }
.upgrade-button { margin-top:auto; }
.field-notes article { border-top:1px solid #c3c7b6; padding-top:18px; }
.flight-mission { display:flex; align-items:center; gap:12px; padding:10px 14px; margin-bottom:12px; background:#eeecdc; border:1px solid #c4c8b5; border-radius:4px; }
.mission-pin { font-size:25px; color:#9b743c; }
.flight-mission>div { flex:1; min-width:0; }
.flight-mission strong { display:block; font-size:13px; font-weight:500; }
.flight-mission #flight-mission-progress { display:block; margin-top:3px; color:#68735c; font-size:11px; }
.flight-mission[data-complete=true] { background:#e2ead8; border-color:#8ca384; }
.flight-mission[data-complete=true] .mission-pin { color:#41705a; }
.wind-instrument { position:absolute; z-index:2; top:72px; left:14px; width:210px; border:1px solid #c0c9b3; border-radius:4px; background:#faf6e7eb; box-shadow:2px 3px 0 #69735318; padding:10px 12px; pointer-events:none; }
.wind-instrument>div:first-child { display:flex; justify-content:space-between; gap:6px; font-size:11px; color:#3e6252; }
#wind-reading { font-size:10px; }
.wing-meter { height:4px; margin:9px 0 7px; background:#d2d8bc; border-radius:2px; overflow:hidden; }
#wing-needle { display:block; height:100%; width:3%; background:#4d826b; transition:width .15s linear; }
.wind-instrument[data-warning=true] #wing-needle { background:#b26846; }
.wind-instrument[data-warning=true] #wing-state { color:#9b4e35; }
.wind-instrument small { display:block; font-size:10px; color:#576451; line-height:1.5; }
.in-flight { height:100dvh; overflow:hidden; }
.in-flight .site-header { width:calc(100% - 32px); min-height:50px; }
.in-flight .game-title>span { display:none; }
.in-flight .game-title h1 { font-size:17px; }
.in-flight .page-shell { width:calc(100% - 32px); max-width:1600px; padding:10px 0 max(10px,env(safe-area-inset-bottom)); height:calc(100dvh - 50px - env(safe-area-inset-top)); }
.in-flight .flight-view { display:flex; flex-direction:column; height:100%; max-width:none; }
.in-flight .flight-mission { padding:6px 12px; margin-bottom:8px; flex-shrink:0; }
.in-flight .flight-hud { grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-bottom:10px; flex-shrink:0; }
.in-flight .flight-hud>div { padding:8px 14px; box-shadow:2px 2px 0 #b4ad952b; }
.in-flight .flight-hud strong { font-size:24px; }
.in-flight .flight-hud span { font-size:10px; margin-bottom:2px; }
.in-flight .flight-canvas-wrap { flex:1; min-height:0; height:auto; box-shadow:4px 5px 0 #d5cbb6; }
.in-flight .flight-controls { flex-shrink:0; margin-top:12px; }
.in-flight .page-footer { display:none; }
.in-flight .flight-status { max-width:calc(100% - 30px); font-size:12px; }
.result-dialog { width:min(calc(100% - 24px),600px); }
.flight-review { text-align:left; padding:15px; border:1px solid #c6ccb6; background:#f1efdf; margin-top:18px; }
.review-heading { display:flex; gap:10px; justify-content:space-between; align-items:center; }
.review-heading strong { font-size:12px; font-weight:500; }
.review-heading>span { flex-shrink:0; font:12px/1.4 'Songti SC',serif; padding:4px 7px; border:1px solid #9baa88; color:#43654f; }
#review-chart { display:block; width:100%; height:auto; margin:10px 0; }
.review-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; font-size:10px; color:var(--muted); }
.review-metrics strong { display:block; font:16px/1.6 Menlo,monospace; color:#365d4b; }
#review-advice { margin:13px 0 0; padding-top:10px; border-top:1px dashed #bfc7b1; font-size:12px; line-height:1.8; }
#review-stamps { margin:8px 0 0; font-size:11px; line-height:1.7; color:#9b5c3e; }
.result-breakdown.challenge-breakdown { margin-top:0; }
#result-retry { color:#3e6756; background:#f7f3e7; border-color:#9ba98d; box-shadow:none; margin-top:10px; }
#result-hangar { margin-top:10px; }
#result-detail { font-size:12px; }
@media(min-width:1100px){.hero-copy .eyebrow{font-size:10px;}.hero-description{font-size:13px;}}
@media(max-width:1000px){.preflight-grid{grid-template-columns:1fr 1.3fr;}.skin-picker{grid-column:1/-1;}#skin-options{grid-template-columns:repeat(4,1fr);}.skin-picker{display:grid;grid-template-columns:1fr 190px;align-items:center;gap:15px;}.skin-picker legend{grid-column:1/-1;}.stamp-book{gap:9px;}}
@media(max-width:760px){
 .hangar-hero{padding-top:10px;gap:25px;padding-bottom:40px;}.hero-copy h2{font-size:40px;}.hero-description{font-size:14px;max-width:none;}.plane-stage{width:100%;}.voyage-desk{padding-top:25px;}.preflight-grid{grid-template-columns:1fr;gap:17px;}.mission-paper{padding:18px 20px;}.mission-paper::before{padding-bottom:10px;margin-bottom:12px;}.mission-paper h3{font-size:23px;margin:8px 0;}.mission-paper p{margin:5px 0;}.route-tag{margin-top:12px;}.skin-picker{display:block;grid-column:auto;}.stamp-book{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}.travel-stamp{padding:12px 3px 10px;}.stamp-heading .mini-label{font-size:10px;}.equipment-card>p{min-height:105px;}.equipment-sketch{height:85px;}.equipment-sketch svg{width:66px;height:66px;}
 .in-flight .site-header{width:calc(100% - 20px);min-height:48px;}.in-flight .page-shell{width:calc(100% - 20px);height:calc(100dvh - 48px - env(safe-area-inset-top));padding-top:7px;}.in-flight .flight-mission{gap:7px;padding:4px 8px;}.flight-mission strong{font-size:11px;}.flight-mission .text-button{padding:0 9px;font-size:11px;}.mission-pin{font-size:20px;}.in-flight .flight-hud{gap:5px;margin-bottom:7px;}.in-flight .flight-hud>div{padding:7px 6px 7px 10px;}.in-flight .flight-hud strong{font-size:19px;}.in-flight .flight-hud span{font-size:9px;letter-spacing:0;}.in-flight .flight-hud small{font-size:9px;}.in-flight .flight-controls{display:block;margin-top:9px;}.in-flight .lift-button{min-height:52px;}.in-flight .control-explanation{margin-top:6px;}.in-flight #control-title{font-size:11px;}.in-flight #control-detail{font-size:10px;line-height:1.5;}.wind-instrument{top:64px;left:9px;width:177px;padding:8px 9px;}.wind-instrument>div:first-child{font-size:10px;}.wind-instrument small{font-size:9px;}.in-flight .flight-status{font-size:10px;padding:5px 9px;bottom:8px;}.review-heading strong{font-size:11px;}.flight-review{padding:11px;}.review-metrics{font-size:9px;gap:3px;}.review-metrics strong{font-size:13px;}.in-flight .offline{max-width:100px;}
}
@media(orientation:landscape) and (max-height:560px){
 .in-flight .site-header{min-height:42px;}.in-flight .page-shell{height:calc(100dvh - 42px - env(safe-area-inset-top));padding-top:3px;}.in-flight .flight-mission{padding:0 8px;margin-bottom:4px;min-height:44px;}.in-flight .flight-mission>div{display:flex;gap:12px;align-items:center;}.in-flight .flight-hud{margin-bottom:5px;}.in-flight .flight-hud>div{padding:3px 12px;}.in-flight .flight-hud strong{font-size:16px;}.in-flight .flight-controls{display:grid;grid-template-columns:240px 1fr;margin-top:6px;}.in-flight .lift-button{min-height:44px;}.in-flight .control-explanation{margin-top:0;}.in-flight #control-detail{display:none;}.wind-instrument{top:54px;width:190px;padding:5px 8px;}.wind-instrument small{display:none;}.wing-meter{margin:5px 0 2px;}.in-flight .flight-status{font-size:10px;max-width:calc(100% - 230px);left:auto;right:8px;transform:none;}
}
@media(prefers-reduced-motion:reduce){.plane-stage,.travel-stamp,.skin-swatch>span,.equipment-sketch svg{transform:none;}#wing-needle{transition:none;}}

@media(max-width:760px) and (orientation:portrait){.wind-instrument{top:auto;bottom:52px;width:175px;}.wind-instrument small{font-size:9px;}}
.result-dialog { padding:22px 26px 24px; }
.result-dialog::before { margin-bottom:10px; }
.result-dialog .dialog-kicker { margin-bottom:4px; }
.result-dialog h2 { font-size:26px; margin:6px 0 10px; }
.result-dialog .result-distance { margin:10px 0 14px; padding-bottom:10px; }
.result-dialog .result-distance strong { font-size:60px; }
.result-dialog .result-breakdown { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.result-dialog .result-breakdown>div { display:grid; padding:8px; gap:4px; font-size:10px; border-right:1px dashed #c9cfc1; }
.result-dialog .result-breakdown strong { font-size:15px; }
.result-dialog .result-breakdown .result-total { background:#e5ead8; }
.result-dialog .result-breakdown .result-total strong { font-size:18px; }
.result-dialog .flight-review { margin-top:12px; padding:10px 13px; }
.result-dialog #review-chart { max-height:93px; margin:5px 0; }
.result-dialog #review-advice { margin-top:8px; padding-top:8px; }
.result-dialog .primary-button,.result-dialog .secondary-button { min-height:45px; margin-top:8px; font-size:13px; }
.result-log { margin-top:10px; text-align:left; }
.result-log summary { min-height:44px; display:flex; align-items:center; color:#62705c; font-size:11px; cursor:pointer; }
.result-log summary::before { content:'+ '; margin-right:5px; }
.result-log[open] summary::before { content:'− '; }
.travel-stamp>span { height:52px; }
.travel-stamp:not(.collected) svg { filter:grayscale(.8); }
.travel-stamp.collected svg { filter:drop-shadow(1px 2px 0 #9b6a4020); }
@media(max-width:420px){.result-dialog{padding:17px 15px 20px;}.result-dialog h2{font-size:22px;}.result-dialog .result-distance strong{font-size:51px;}.result-dialog .flight-review{padding:9px;}.result-dialog .result-breakdown>div{padding:7px 4px;}.result-dialog .result-breakdown strong{font-size:14px;}.result-dialog .result-breakdown span{letter-spacing:0;}}

.desk-departure{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:28px;padding-top:20px;border-top:1px dashed #c2c7b4;}.desk-departure p{font:15px/1.8 'Songti SC',serif;color:#586b5c;margin:0;}.desk-departure button{min-width:240px;}
@media(max-width:760px){.equipment-card>p{min-height:76px;}.desk-departure{display:block;}.desk-departure p{font-size:13px;margin-bottom:12px;}.desk-departure button{width:100%;min-width:0;}}

@media(orientation:landscape) and (max-height:560px){.wind-instrument{left:auto;right:9px;top:58px;width:190px;}}

/* VOL.06 — one persistent flight scene, a workbench rail, local overlays. */
body.single-cockpit {height:100dvh;overflow:hidden;}
.single-cockpit .site-header {width:calc(100% - 32px);min-height:54px;}
.single-cockpit .game-title>span {font-size:8px;}
.single-cockpit .game-title h1 {font-size:18px;}
.single-cockpit .cockpit-shell {display:grid;grid-template-columns:310px minmax(0,1fr);gap:18px;width:calc(100% - 32px);max-width:none;height:calc(100dvh - 54px - env(safe-area-inset-top));padding:12px 0 14px;}
.cockpit-desk {min-width:0;min-height:0;display:flex;flex-direction:column;border:1px solid #bbc3af;background:#f7f1e4;box-shadow:3px 4px 0 #c5bca331;overflow:hidden;}
.desk-heading {display:flex;justify-content:space-between;align-items:center;padding:17px 15px 10px;border-bottom:1px solid #cbd0bd;background:linear-gradient(90deg,#f6efdfec,#f6efdfc9),url('./assets/flight-journal.webp') center 60%/cover;}
.desk-heading .eyebrow {font:8px/1.5 Menlo,monospace;letter-spacing:2px;margin:0 0 4px;}
.desk-heading h2 {font:600 25px/1.35 'Songti SC',serif;letter-spacing:2px;margin:0;}
#panel-close {display:none;}
.cockpit-wallet {display:grid;grid-template-columns:1fr 1fr .6fr;gap:8px;padding:12px 15px 6px;}
.cockpit-wallet span {display:block;font-size:10px;color:#60725e;margin-bottom:4px;}
.cockpit-wallet strong {font:22px/1.3 'Songti SC',serif;color:#355b49;font-variant-numeric:tabular-nums;}
.cockpit-wallet small {font:10px/1.2 sans-serif;margin-left:3px;}
.cockpit-desk>#pilot-rank {font-size:10px;letter-spacing:1px;margin:4px 15px;}
.cockpit-desk>#rank-goal {font-size:10px;line-height:1.6;margin:3px 15px 10px;min-height:16px;}
.desk-tabs {display:flex;border-block:1px solid #c7cebb;gap:0;flex-shrink:0;}
.desk-tabs button {flex:1;min-height:44px;border:0;border-bottom:2px solid transparent;color:#596f5d;background:#edeada;font-size:11px;}
.desk-tabs button[aria-pressed=true] {border-bottom-color:#4b7b62;background:#e2e8d7;color:#2c5a43;font-weight:600;}
.desk-scroll {flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:11px;scrollbar-width:thin;}
.single-cockpit .workshop {margin:0;padding:0;border:0;}
.single-cockpit .workshop>.section-heading {display:none;}
.single-cockpit .equipment-grid {display:grid;grid-template-columns:1fr;gap:8px;}
.single-cockpit .equipment-card {display:grid;grid-template-columns:34px minmax(0,1fr) 72px;gap:4px 8px;padding:10px 9px;box-shadow:1px 2px 0 #bdb59931;border-radius:3px;}
.single-cockpit .equipment-card::after {display:none;}
.single-cockpit .equipment-top {grid-column:1;grid-row:1/3;margin:0;display:block;}
.single-cockpit .equipment-mark {width:32px;height:38px;transform:none;}
.single-cockpit .equipment-mark svg {width:23px;height:23px;}
.single-cockpit .equipment-mark small {font-size:7px;}
.single-cockpit .equipment-level,.single-cockpit .equipment-sketch {display:none;}
.single-cockpit .equipment-card h3 {grid-column:2;grid-row:1;margin:0;font-size:12px;line-height:1.5;letter-spacing:0;}
.single-cockpit .equipment-card h3 small {font:9px/1.5 Menlo,monospace;color:#8b805f;margin-left:4px;}
.single-cockpit .equipment-card>p {grid-column:2;grid-row:2;margin:0;min-height:0;font-size:10px;line-height:1.6;color:#62715b;}
.single-cockpit .equipment-card .upgrade-button {grid-column:3;grid-row:1/3;min-height:46px;padding:5px;font-size:10px;letter-spacing:0;margin:0;align-self:center;}
.single-cockpit .equipment-spec {grid-column:1/-1;margin:0;}
.single-cockpit .equipment-spec summary {min-height:28px;font-size:9px;}
.single-cockpit .equipment-spec p {font-size:10px;line-height:1.7;}
.desk-footer {padding:10px 12px;border-top:1px solid #c6cdb8;flex-shrink:0;background:#efeada;}
.desk-footer .primary-button {width:100%;min-height:43px;font-size:13px;}
.desk-footer p {font-size:9px;color:#63715c;line-height:1.5;margin:6px 0 0;}
.single-cockpit .voyage-desk {margin:0;padding:0;border:0;}
.single-cockpit .voyage-desk>.section-heading {display:none;}
.single-cockpit .preflight-grid {display:grid;grid-template-columns:1fr;gap:12px;}
.single-cockpit .mission-paper {padding:14px;}
.single-cockpit .mission-paper::before {font-size:8px;margin-bottom:10px;padding-bottom:9px;}
.single-cockpit .mission-paper h3 {font-size:20px;margin:7px 0;}
.single-cockpit .mission-paper p {font-size:11px;}
.single-cockpit .route-tag {margin-top:10px;font-size:9px;}
.single-cockpit .fold-picker,.single-cockpit .skin-picker {padding:9px;display:block;grid-column:auto;}
.single-cockpit .fold-option {padding:7px;min-height:72px;gap:8px;}
.single-cockpit .fold-option strong {font-size:17px;}
.single-cockpit .fold-option small {font-size:10px;}
.single-cockpit .fold-option em {font-size:8px;}
.single-cockpit .fold-option svg {width:43px;}
.single-cockpit #skin-options {grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;}
.single-cockpit .skin-swatch {padding:5px 1px;min-height:75px;}
.single-cockpit .skin-swatch>span {width:35px;height:43px;font-size:23px;}
.single-cockpit .skin-swatch small {font-size:8px;}
.single-cockpit #skin-hint {font-size:10px;}
.single-cockpit .stamp-book {grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
.single-cockpit .travel-stamp {padding:9px 2px;}
.single-cockpit .travel-stamp strong {font-size:9px;}
.single-cockpit .travel-stamp small {font-size:8px;}
.single-cockpit .travel-stamp>span,.single-cockpit .travel-stamp svg {width:39px;height:39px;}
.single-cockpit .stamp-heading .mini-label {font-size:9px;}
.single-cockpit .desk-departure {display:none;}
.single-cockpit .flight-view {display:flex;flex-direction:column;min-height:0;height:100%;max-width:none;margin:0;min-width:0;}
.single-cockpit .flight-mission {gap:10px;min-height:48px;margin-bottom:8px;padding:3px 10px;}
.single-cockpit .flight-mission strong {font-size:12px;}
.single-cockpit .flight-mission .text-button {min-height:40px;font-size:11px;padding:0 10px;}
.single-cockpit .flight-hud {grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:8px;}
.single-cockpit .flight-hud>div {padding:6px 10px;}
.single-cockpit .flight-hud strong {font-size:22px;}
.single-cockpit .flight-hud span {font-size:9px;letter-spacing:.5px;}
.voyage-resources {display:flex;align-items:center;gap:15px;flex-shrink:0;padding:8px 11px;margin-bottom:8px;border:1px solid #bdc8b1;background:#e7ecdd;color:#52694e;font-size:10px;}
.hydrogen-meter {min-width:135px;flex:0 1 170px;}
.hydrogen-meter span {display:flex;justify-content:space-between;gap:8px;}
.hydrogen-meter meter {width:100%;height:8px;display:block;margin-top:2px;accent-color:#4f927e;}
.voyage-resources>span {white-space:nowrap;}
.voyage-resources strong {font-weight:600;color:#365c48;}
.service-hint {margin-left:auto;overflow:hidden;text-overflow:ellipsis;}
.single-cockpit .flight-canvas-wrap {height:auto;min-height:0;flex:1;box-shadow:3px 4px 0 #c5b99b5c;isolation:isolate;}
.single-cockpit .flight-controls {display:grid;grid-template-columns:minmax(200px,1fr) minmax(155px,.6fr);margin-top:10px;gap:10px;flex-shrink:0;}
.single-cockpit .lift-button {min-height:54px;font-size:14px;}
.boost-button {min-height:54px;padding:6px 13px;border:1px solid #709985;border-radius:5px;background:linear-gradient(#e6efdc,#cadcc9);color:#315f49;font:600 14px/1.5 'PingFang SC',sans-serif;box-shadow:0 3px 0 #abc0a55e;}
.boost-button small {display:block;font-size:9px;font-weight:400;}
.single-cockpit .control-explanation {grid-column:1/-1;display:flex;justify-content:space-between;gap:8px;padding:0;border:0;text-align:left;}
.single-cockpit #control-title {font-size:10px;margin:0;}
.single-cockpit #control-detail {font-size:9px;}
.single-cockpit .wind-instrument {top:65px;left:10px;bottom:auto;right:auto;width:183px;padding:8px 9px;}
.single-cockpit .flight-status {bottom:10px;max-width:calc(100% - 24px);font-size:11px;}
.single-cockpit .inline-result,.single-cockpit .inline-help {position:absolute;z-index:5;top:12px;right:12px;bottom:12px;left:auto;inset-inline-start:auto;margin:0;width:min(400px,calc(100% - 24px));max-height:none;padding:18px 19px;overflow:auto;box-shadow:0 6px 24px #38503b35;}
.single-cockpit .inline-result {border-top:3px solid #a78148;}
.single-cockpit .inline-result h2 {font-size:23px;}
.single-cockpit .inline-result .result-distance strong {font-size:49px;}
.single-cockpit .inline-result .result-breakdown>div {font-size:9px;}
.single-cockpit .inline-result #review-chart {max-height:76px;}
.single-cockpit .inline-result .review-metrics {row-gap:8px;}
.single-cockpit .inline-help {width:min(520px,calc(100% - 24px));}
.single-cockpit .inline-help h2 {font-size:24px;}
.single-cockpit .inline-help li {font-size:12px;}
.single-cockpit .pause-overlay {background:#edf0e6a8;backdrop-filter:blur(2px);}
.single-cockpit .pause-overlay strong {font-size:27px;}
@media(max-width:1000px){.single-cockpit .cockpit-shell{grid-template-columns:280px minmax(0,1fr);gap:12px;}.single-cockpit .service-hint{display:none;}.single-cockpit .flight-mission strong{font-size:11px;}.single-cockpit .wind-instrument{width:157px;}.single-cockpit #control-detail{display:none;}}
@media(max-width:760px){
 .single-cockpit .site-header{width:calc(100% - 20px);min-height:48px;}.single-cockpit .cockpit-shell{display:block;width:calc(100% - 20px);height:calc(100dvh - 48px - env(safe-area-inset-top));padding:7px 0 9px;}.cockpit-desk{display:none;}.single-cockpit.panel-open .cockpit-desk{display:flex;position:fixed;z-index:20;bottom:0;left:0;right:0;max-height:min(69dvh,620px);height:620px;border-radius:12px 12px 0 0;box-shadow:0 -10px 32px #2f4b3438;}.single-cockpit #panel-close{display:block;}.desk-heading{padding:10px 15px;}.desk-heading h2{font-size:21px;}.cockpit-wallet{padding-top:7px;}.cockpit-wallet strong{font-size:19px;}.cockpit-desk>#pilot-rank,.cockpit-desk>#rank-goal{display:none;}.desk-scroll{padding:8px 11px;}.single-cockpit .equipment-grid{grid-template-columns:1fr 1fr;gap:7px;}.single-cockpit .equipment-card{grid-template-columns:30px minmax(0,1fr);padding:8px;gap:5px;}.single-cockpit .equipment-card h3{font-size:11px;}.single-cockpit .equipment-card>p{font-size:9px;}.single-cockpit .equipment-card .upgrade-button{grid-column:1/-1;grid-row:auto;min-height:37px;}.single-cockpit .equipment-spec{display:none;}.desk-footer{padding:7px 11px;}.desk-footer p{display:none;}.single-cockpit .flight-mission{min-height:49px;margin-bottom:6px;gap:6px;padding:3px 7px;}.single-cockpit .flight-mission strong{font-size:10px;}.single-cockpit .flight-mission #flight-mission-progress{font-size:9px;}.single-cockpit .mission-pin{display:none;}.single-cockpit .flight-mission .text-button{font-size:10px;padding:0 8px;min-height:40px;}.single-cockpit .flight-hud>div{padding:6px 7px;}.single-cockpit .flight-hud strong{font-size:18px;}.single-cockpit .flight-hud span{font-size:8px;letter-spacing:0;}.single-cockpit .flight-hud small{font-size:8px;}.voyage-resources{padding:6px 8px;gap:10px;font-size:9px;margin-bottom:6px;}.hydrogen-meter{min-width:105px;flex:1;}.single-cockpit .flight-controls{grid-template-columns:1fr .66fr;gap:8px;margin-top:8px;}.single-cockpit .lift-button,.single-cockpit .boost-button{min-height:51px;font-size:12px;letter-spacing:.5px;}.single-cockpit .wind-instrument{top:auto;bottom:54px;left:8px;width:162px;padding:7px 8px;}.single-cockpit .wind-instrument small{font-size:8px;}.single-cockpit .flight-status{font-size:10px;bottom:8px;padding:5px 9px;}.single-cockpit .inline-result{top:auto;bottom:8px;right:8px;width:calc(100% - 16px);max-height:calc(100% - 16px);padding:13px;}.single-cockpit .inline-result .dialog-kicker{font-size:8px;}.single-cockpit .inline-result h2{font-size:20px;}.single-cockpit .inline-result .result-distance{margin:8px 0;}.single-cockpit .inline-result .result-distance strong{font-size:40px;}.single-cockpit .inline-result #review-chart{max-height:58px;}.single-cockpit .inline-result .result-log{display:none;}.single-cockpit .inline-result .primary-button,.single-cockpit .inline-result .secondary-button{min-height:40px;font-size:11px;}.single-cockpit .inline-result #review-advice{font-size:10px;}.single-cockpit .inline-result .review-metrics{font-size:8px;}.single-cockpit .inline-result .review-metrics strong{font-size:12px;}.single-cockpit .control-explanation{display:none;}
}
@media(orientation:landscape) and (max-height:560px){
 .single-cockpit .site-header{min-height:40px;}.single-cockpit .cockpit-shell{height:calc(100dvh - 40px - env(safe-area-inset-top));padding-top:4px;grid-template-columns:240px minmax(0,1fr);}.single-cockpit .desk-heading{padding:8px 12px;}.single-cockpit .cockpit-wallet{padding:6px 12px;}.single-cockpit .cockpit-wallet strong{font-size:17px;}.single-cockpit .cockpit-desk>#pilot-rank,.single-cockpit .cockpit-desk>#rank-goal{display:none;}.single-cockpit .desk-footer p{display:none;}.single-cockpit .flight-mission{min-height:40px;padding:0 6px;margin-bottom:4px;}.single-cockpit .flight-mission .text-button{min-height:36px;}.single-cockpit .flight-hud{margin-bottom:5px;}.single-cockpit .flight-hud>div{padding:3px 6px;}.single-cockpit .flight-hud strong{font-size:16px;}.single-cockpit .flight-hud span{font-size:8px;}.single-cockpit .voyage-resources{padding:4px 6px;margin-bottom:5px;}.single-cockpit .flight-controls{margin-top:6px;gap:7px;}.single-cockpit .lift-button,.single-cockpit .boost-button{min-height:43px;font-size:11px;}.single-cockpit .control-explanation{display:none;}.single-cockpit .wind-instrument{left:auto;right:8px;top:56px;bottom:auto;width:150px;padding:5px 7px;}.single-cockpit .wind-instrument small{display:none;}.single-cockpit .flight-status{font-size:9px;}.single-cockpit .inline-result{top:7px;bottom:7px;right:7px;width:min(370px,calc(100% - 14px));}.single-cockpit .canvas-button{min-height:38px;min-width:65px;}.single-cockpit .zone-name{font-size:9px;}
}
@media(max-width:1000px) and (orientation:landscape) and (max-height:560px){.single-cockpit .cockpit-shell{display:block;}.single-cockpit .cockpit-desk{display:none;}.single-cockpit.panel-open .cockpit-desk{display:flex;position:fixed;z-index:20;right:0;top:0;bottom:0;width:310px;max-height:100dvh;box-shadow:-9px 0 26px #2e463735;}.single-cockpit #panel-close{display:block;}}

.single-cockpit .inline-result{display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;padding:13px 14px;}.result-scroll{overflow:auto;min-height:0;padding:0 3px;scrollbar-width:thin;}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:8px;border-top:1px dashed #c4cbb5;background:#f7f0e3;}.single-cockpit .result-actions button{margin:0!important;min-height:39px;font-size:10px;padding:5px;letter-spacing:0;}.single-cockpit .result-actions #result-same-route{grid-column:1/-1;}.single-cockpit #result-title:focus{outline:none;box-shadow:none!important;}.single-cockpit .inline-result #result-title{font-size:21px;}.single-cockpit .inline-result .result-distance{margin:9px 0 12px;}
@media(max-width:760px){.single-cockpit .inline-result{top:8px;bottom:8px;max-height:none;}.single-cockpit .result-actions button{font-size:9px;min-height:37px;}}
@media(max-width:760px){.single-cockpit .equipment-card .upgrade-button{min-height:44px;}.single-cockpit .result-actions button{min-height:44px;}}
@media(orientation:landscape) and (max-height:560px){.single-cockpit .site-header{min-height:44px;}.single-cockpit .cockpit-shell{height:calc(100dvh - 44px - env(safe-area-inset-top));}.single-cockpit .flight-mission .text-button,.single-cockpit .canvas-button{min-height:44px;}.single-cockpit .lift-button,.single-cockpit .boost-button{min-height:44px;}}
