/* Airport Gauntlet — styles. A navy top bar like an airport sign, a
   yellow-and-black stripe under it, a pale page, and the terminal filling
   the screen with the flight ticket, clock, map and controls around it. */
:root {
  --bg: #f2f9ff;
  --panel: #ffffff;
  --text: #2a2420;
  --muted: #6b625a;
  --line: #d6e2ee;
  --blue: #2f7fd8;
  --blue-dark: #1d4f86;
  --sky: #1b2a3a;
  --sky-dark: #10161f;
  --honey: #ffc21a;
  --wood: #c98b55;
  --wood-dark: #9a6236;
  --go: #2fa35a;
  --go-dark: #23824a;
  --sun: #ffd23f;
  --right: #2fa35a;
  --wrong: #d0402e;
  --tc: #2f6fe0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text); display: flex; flex-direction: column; min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
button {
  font: inherit; font-weight: 700; border: 2px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 12px; padding: 8px 16px; cursor: pointer; touch-action: manipulation;
}
button:disabled { cursor: default; }
button.go { background: var(--go); border-color: var(--go-dark); color: #fff; font-size: 18px; padding: 10px 22px; }
button.go:not(:disabled):hover { background: var(--go-dark); }
button.go.big { font-size: 22px; padding: 12px 40px; border-radius: 999px; box-shadow: 0 4px 0 var(--go-dark); }
button.secondary { background: #fff; }
button.danger { color: var(--wrong); border-color: #f0c4be; }
button.icon { width: 42px; height: 42px; padding: 0; border-radius: 50%; font-size: 20px; }
button.plain { border: none; background: none; }
.small { color: var(--muted); font-size: 13px; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-shrink: 0;
  padding: 8px 14px; background: var(--sky); color: #fff;
}
.brand { font-size: 22px; font-weight: 800; letter-spacing: .3px; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.brand-mark { font-size: 20px; background: #fff; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; }
.top-right { display: flex; gap: 8px; align-items: center; }
.top-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.apps-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 14px;
  border-radius: 999px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .6);
  color: #fff; text-decoration: none; font-weight: 700; font-size: 16px;
}
.apps-link:hover { background: rgba(255, 255, 255, .3); }
.apps-link svg { fill: currentColor; flex: none; }
.player-chip { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .6); padding: 6px 14px; }
.topbar button.icon { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .6); }
.update-note {
  display: flex; gap: 10px; align-items: center; justify-content: center; padding: 8px; background: #fff4d6;
  border-bottom: 1px solid #f0d58a; font-weight: 600; flex-shrink: 0;
}

/* ---------- home ---------- */
.home { max-width: 1180px; width: 100%; margin: 0 auto; padding: 12px 14px 0; display: flex; flex-direction: column; gap: 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.home h2 { margin: 0 0 10px; font-size: 18px; color: var(--blue-dark); }
.home-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 12px; }
.players { display: flex; flex-wrap: wrap; gap: 10px; }
.player { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 30px; border: 3px solid var(--line); }
.player-emoji { font-size: 28px; line-height: 1; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #f6f1e4; }
.player.on { border-color: var(--pc, var(--blue)); background: color-mix(in srgb, var(--pc, var(--blue)) 10%, #fff); }
.player.add { color: var(--muted); border-style: dashed; }
.player-badges { font-size: 18px; letter-spacing: 1px; margin-left: 2px; }
.tracks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.track { border: 3px solid color-mix(in srgb, var(--tc) 35%, #fff); border-radius: 14px; padding: 8px; background: color-mix(in srgb, var(--tc) 6%, #fff); display: flex; flex-direction: column; gap: 6px; }
.track-head { display: flex; align-items: center; gap: 6px; font-weight: 900; color: var(--tc); font-size: 17px; }
.track-icon { font-size: 22px; }
.track-badge { font-size: 11.5px; font-weight: 800; color: #a59a88; border: 2px dashed #ddd3bf; border-radius: 999px; padding: 1px 8px; width: fit-content; white-space: nowrap; }
.track-badge.won { color: #7a5200; background: linear-gradient(#fff3c4, #f7d36a); border: 2px solid #d9a521; }
.track-levels { display: flex; flex-direction: column; gap: 6px; }
.lvl { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 7px 10px; border-width: 3px; text-align: left; }
.lvl-name { font-size: 15px; min-width: 0; }
.lvl-stars { color: #f2b705; letter-spacing: 1px; font-size: 15px; white-space: nowrap; }
.lvl.on { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, #fff); }
.lvl.locked { background: #f4f1ea; color: var(--muted); border-style: dashed; }
.lvl.locked .lvl-stars { opacity: .4; }
.level-about { margin: 10px 2px 0; color: var(--muted); font-weight: 600; }
.home-go {
  display: flex; align-items: center; gap: 10px; position: sticky; bottom: 0; z-index: 2;
  padding: 10px 0 12px; background: linear-gradient(rgba(242, 249, 255, 0), var(--bg) 30%);
}
.spacer { flex: 1; }

/* ---------- a round ---------- */
.play { flex: 1; display: grid; grid-template-rows: auto 1fr; gap: 6px; padding: 6px 10px 10px; min-height: 0; }
.play-bar { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.bar-title { font-weight: 800; font-size: 18px; color: var(--tc); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.progress { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; justify-content: flex-end; max-width: 45%; }
.pip { width: 14px; height: 14px; border-radius: 50%; background: #e6dfcc; border: 2px solid #d8cfb8; }
.pip.done { background: var(--right); border-color: #23824a; }
.pip.now { background: #fff; border-color: var(--tc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tc) 25%, #fff); }
.streak { font-weight: 900; font-size: 16px; color: #c2410c; background: #fff1e0; border: 2px solid #f6b98a; border-radius: 999px; padding: 2px 12px; white-space: nowrap; }
.streak.bump { animation: pop .35s ease-out; }

/* the side: question, answers, help */


/* ---------- dialogs ---------- */
.dialog { max-width: 460px; width: calc(100% - 28px); border: none; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); }
.dialog.wide { max-width: 760px; }
.dialog::backdrop { background: rgba(20, 30, 50, .45); }
.dialog h2 { margin: 0 0 12px; color: var(--blue-dark); }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; margin-bottom: 12px; }
.field.check { flex-direction: row; align-items: center; gap: 10px; }
.field input[type=text], .field select { font: inherit; font-weight: 500; padding: 8px 10px; border: 2px solid var(--line); border-radius: 10px; }
.field input[type=checkbox] { width: 22px; height: 22px; flex: none; }
.field-label { font-weight: 700; margin-bottom: 6px; }
.emoji-pick { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; margin-bottom: 14px; }
.emoji-pick button { font-size: 26px; padding: 4px 0; border-radius: 10px; }
.emoji-pick button.on { border-color: var(--blue); background: #e6f2fc; }
.dialog-buttons { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.help li { margin-bottom: 8px; line-height: 1.45; }

/* ---------- rewards: celebrations ---------- */
.toast {
  position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 20; pointer-events: none;
  background: #c2410c; color: #fff; font-weight: 900; font-size: 20px; padding: 8px 20px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(194, 65, 12, .35);
}
.toast.show { animation: toastIn 2.2s ease-out forwards; }
@keyframes toastIn {
  0% { opacity: 0; translate: 0 -12px; scale: .8; } 12% { opacity: 1; translate: 0 0; scale: 1.08; } 20% { scale: 1; }
  80% { opacity: 1; } 100% { opacity: 0; translate: 0 -8px; }
}
.celebrate { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(20, 35, 70, .45); overflow: hidden; }
.cel-card {
  position: relative; z-index: 2; background: #fff; border-radius: 22px; border: 4px solid var(--sun); padding: 22px 28px 20px;
  width: min(420px, 90%); text-align: center; box-shadow: 0 16px 50px rgba(20, 35, 70, .4); animation: celIn .5s cubic-bezier(.2, 1.6, .4, 1);
}
.cel-icon { font-size: 72px; line-height: 1.1; animation: wiggle 1.2s ease-in-out .4s 2; }
.celebrate.badge .cel-icon {
  width: 120px; height: 120px; margin: 0 auto 6px; display: grid; place-items: center; font-size: 62px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8d6, #f7d36a 60%, #d9a521); border: 5px solid #c08f12;
  box-shadow: 0 0 0 6px #fff3c4, 0 0 30px 10px rgba(247, 211, 106, .7);
}
.cel-title { font-size: 30px; font-weight: 900; color: var(--blue-dark); margin-top: 4px; }
.cel-text { color: var(--muted); font-weight: 600; margin: 8px 0 16px; line-height: 1.4; }
@keyframes celIn { from { scale: .4; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 25% { rotate: -12deg; } 75% { rotate: 12deg; } }
@keyframes pop { 0% { scale: .9; } 70% { scale: 1.05; } 100% { scale: 1; } }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
  position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 2px; opacity: 0;
  animation-name: fall; animation-timing-function: cubic-bezier(.3, .6, .6, 1); animation-fill-mode: forwards;
}
.confetti i.round { width: 12px; height: 12px; border-radius: 50%; }
@keyframes fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: .9; transform: translate(var(--drift), 105vh) rotate(var(--spin)); }
}

/* ---------- Buzz Box ---------- */
.stripes {
  height: 10px; flex-shrink: 0;
  background: repeating-linear-gradient(135deg, var(--honey) 0 14px, #2a2a2a 14px 22px);
}
.brand-mark { font-size: 19px; }
.home-total { font-size: 15px; color: #c98a00; font-weight: 800; margin-left: 6px; }
.lvl-bonus { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }

/* your drone and wallet */
.hangar { display: grid; grid-template-columns: 150px 1fr; gap: 4px 14px; align-items: center; background: linear-gradient(#e6f3ff, #fff); }
.my-drone svg { width: 150px; height: 104px; display: block; }
.wallet { font-size: 28px; font-weight: 900; color: #1f7a3a; line-height: 1.1; }
.shop-btn { margin-top: 8px; background: #fff7d6; border-color: #f2c94c; color: #7a5200; }
.shop-have { margin-left: 8px; color: #1f7a3a; }
.shop-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: start; }
.shop-drone svg { width: 220px; height: 152px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.paint { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 6px; border-width: 3px; }
.paint .swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, .15); }
.paint .p-name { font-size: 13px; }
.paint .p-price { font-size: 13px; color: #1f7a3a; }
.paint.own { border-color: #9fd3ae; background: #effaf2; }
.paint.on { border-color: var(--go); box-shadow: 0 0 0 3px #bfe9cc; }
.paint.dear { opacity: .6; }
.shop-buy { margin-top: 12px; display: flex; gap: 12px; align-items: center; background: #fff8dc; border: 2px solid #f2d27a; border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.shop-buy .swatch { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.shop-buy div { flex: 1; }

/* the flying screen */
.play { grid-template-rows: auto 1fr; }
.play-bar .icon-btn { width: 46px; padding: 8px 0; }
.flight { position: relative; min-height: 0; border-radius: 16px; overflow: hidden; background: #9fd8ff; touch-action: none; user-select: none; -webkit-user-select: none; }
.view, .view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.no3d { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; text-align: center; font-size: 20px; font-weight: 700; color: var(--blue-dark); background: #e6f3ff; }
.hud { position: absolute; z-index: 2; }
.jobs {
  top: 10px; left: 10px; max-width: min(300px, 34%); background: rgba(255, 255, 255, .92); border-radius: 14px; padding: 8px 12px;
  box-shadow: 0 3px 12px rgba(20, 50, 90, .18);
}
.clock-row { display: flex; gap: 10px; align-items: center; font-weight: 900; }
.clock { font-size: 18px; color: var(--blue-dark); }
.cash { font-size: 16px; color: #1f7a3a; }
.clock:empty, .cash:empty { display: none; }
.stops { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.stops li { font-weight: 800; font-size: 16px; color: var(--blue-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stops li.done { color: var(--right); text-decoration: line-through; text-decoration-thickness: 2px; opacity: .8; }
.stops li.next { color: #b26b00; }
.stops li .due { font-size: 13px; color: var(--muted); margin-left: 4px; }
.stops li .due.late { color: var(--wrong); }
.note { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 6px; line-height: 1.35; white-space: normal; }
.top-mid { top: 8px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.compass { width: 240px; height: 34px; background: rgba(255, 255, 255, .92); border-radius: 999px; box-shadow: 0 3px 10px rgba(20, 50, 90, .18); }
.guide { display: flex; align-items: center; gap: 8px; background: rgba(255, 210, 63, .95); border: 2px solid #b98a00; border-radius: 999px; padding: 2px 14px 2px 6px; font-weight: 900; font-size: 15px; color: #3a2a00; white-space: nowrap; box-shadow: 0 3px 10px rgba(20, 50, 90, .2); }
.guide-arrow { display: inline-block; font-size: 24px; color: #1b2a3a; transition: transform .1s linear; }
.hint-btn { background: #fff7d6; border-color: #f2c94c; color: #7a5200; }
.say {
  font-size: 19px; font-weight: 900; color: #fff; background: rgba(27, 42, 58, .78); border-radius: 999px; padding: 4px 16px;
  max-width: 60vw; text-align: center; opacity: 0; transition: opacity .25s;
}
.say.on { opacity: 1; }
.say.good { background: rgba(35, 130, 74, .92); }
.say.bad { background: rgba(208, 64, 46, .9); }
.mini-wrap {
  top: 10px; right: 10px; width: 210px; height: 150px; padding: 0; border: 3px solid #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 3px 12px rgba(20, 50, 90, .25); background: #bfe3a6;
}
.mini { width: 100%; height: 100%; display: block; }
.mini-n { position: absolute; left: 6px; top: 2px; font-weight: 900; font-size: 13px; color: #d0402e; }
.gauges {
  right: 12px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, .92); border-radius: 14px; padding: 10px 8px; box-shadow: 0 3px 12px rgba(20, 50, 90, .18); min-width: 74px;
}
.battery { position: relative; width: 34px; height: 76px; border: 3px solid #1b2a3a; border-radius: 7px; padding: 2px; display: flex; align-items: flex-end; }
.batt-cap { position: absolute; top: -8px; left: 50%; width: 14px; height: 5px; margin-left: -7px; background: #1b2a3a; border-radius: 2px 2px 0 0; }
.batt-fill { width: 100%; border-radius: 3px; background: var(--go); transition: height .3s; }
.batt-fill.low { background: #f2a516; }
.batt-fill.empty { background: var(--wrong); animation: blink 1s infinite; }
.batt-fill.charging { background: linear-gradient(#7ee0a0, var(--go)); }
@keyframes blink { 50% { opacity: .35; } }
.batt-pct { font-weight: 900; font-size: 18px; color: var(--blue-dark); }
.batt-range { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.alt { font-weight: 900; color: var(--blue-dark); display: flex; gap: 4px; align-items: baseline; }
.alt span { color: var(--muted); }
.windy { display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.wind-arrow { font-size: 24px; color: #2f7fd8; display: inline-block; }

.controls { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.controls > * { pointer-events: auto; }
.stick {
  position: relative; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .5); border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 4px 14px rgba(20, 50, 90, .25); touch-action: none; display: grid; place-items: center;
}
.knob { width: 62px; height: 62px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fff, #ffd23f 55%, #e0a800); border: 3px solid #b98a00; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); pointer-events: none; z-index: 1; }
.stick-hint { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: 14px; line-height: 1.6; color: rgba(27, 42, 58, .45); pointer-events: none; }
.buttons { display: flex; align-items: flex-end; gap: 10px; }
.smalls { display: flex; flex-direction: column; gap: 8px; }
.btn-power { width: 58px; height: 58px; background: rgba(255, 255, 255, .85); color: #2fa35a; display: grid; place-items: center; }
.btn-power svg { width: 30px; height: 30px; }
.btn-power.off { color: #8a96a6; }
.btn-power.lit { background: #e3f7e9; border-color: #2fa35a; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
.motor { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.motor.on { color: #23824a; }
.ctl { border-radius: 18px; border: 3px solid rgba(255, 255, 255, .95); box-shadow: 0 4px 12px rgba(20, 50, 90, .25); touch-action: none; padding: 0; }
.btn-beep { width: 58px; height: 58px; font-size: 26px; background: rgba(255, 255, 255, .85); }
.btn-drop { width: 86px; height: 86px; font-size: 36px; background: var(--honey); border-color: #b98a00; display: grid; place-items: center; line-height: .9; }
.btn-drop span { font-size: 18px; color: #7a5200; }
.btn-drop { position: relative; }
.btn-drop.empty { opacity: .45; }
.drop-count { position: absolute; top: -10px; right: -10px; min-width: 30px; height: 30px; border-radius: 999px; background: #e4572e; color: #fff; font-size: 15px; display: grid; place-items: center; border: 2px solid #fff; padding: 0 6px; }
.drop-count:empty { display: none; }
.brief-how { font-size: 15px; font-weight: 600; color: var(--blue-dark); background: #eef6ff; border-radius: 10px; padding: 6px 10px; margin: 6px 0; line-height: 1.4; }
.brief-how:empty { display: none; }
.updown { display: flex; flex-direction: column; gap: 8px; }
.btn-up, .btn-down { width: 72px; height: 62px; font-size: 26px; color: #fff; background: rgba(47, 127, 216, .9); }
.ctl.held, .ctl:active { transform: translateY(2px); filter: brightness(1.1); }

.card {
  position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(540px, 92%); max-height: 92%; overflow-y: auto;
  background: #fff; border-radius: 22px; border: 4px solid var(--honey); box-shadow: 0 14px 40px rgba(20, 50, 90, .35); padding: 18px 20px; text-align: center;
}
.brief-title { font-size: 26px; font-weight: 900; color: var(--blue-dark); }
.brief-text { font-size: 17px; font-weight: 600; color: var(--text); margin: 6px 0; line-height: 1.4; }
.brief-list { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; font-size: 19px; font-weight: 800; color: var(--blue-dark); }
.brief-bonus { font-size: 15px; color: #7a5200; background: #fff6dc; border-radius: 10px; padding: 6px 10px; margin: 8px 0 14px; font-weight: 700; }
.card-prompt { font-size: 21px; font-weight: 800; color: var(--blue-dark); line-height: 1.35; margin-bottom: 12px; }
.card-prompt b { color: #b26b00; white-space: nowrap; }
.card-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-choices button { font-size: 19px; padding: 14px 8px; border-width: 3px; border-radius: 16px; min-height: 64px; box-shadow: 0 3px 0 var(--line); }
.card-choices button.yes { border-color: var(--right); background: #e3f7e9; }
.card-choices button.no { border-color: #e7b9ae; background: #f6e2de; opacity: .55; }
.card-say { min-height: 1.2em; font-weight: 800; margin: 10px 0 6px; font-size: 17px; line-height: 1.35; }
.card-say.good { color: var(--right); }
.card-say.bad { color: var(--wrong); }
.card-say.shown { color: var(--blue-dark); }
.bigmap { width: min(900px, 96%); height: min(680px, 94%); display: flex; flex-direction: column; gap: 8px; padding: 10px; }
.big { flex: 1; min-height: 0; width: 100%; border-radius: 12px; background: #bfe3a6; }
.bigmap-row { display: flex; gap: 10px; align-items: center; text-align: left; }
.paused { width: min(360px, 90%); }
.paused .go { margin-top: 12px; }
.flash { position: absolute; inset: 0; z-index: 1; background: #fff; opacity: 0; pointer-events: none; transition: opacity .35s; }
.flash.on { opacity: .45; transition: none; }
.result { width: min(460px, 92%); }
.result-title { font-size: 30px; font-weight: 900; color: var(--blue-dark); }
.result-stars { font-size: 50px; color: #f2b705; letter-spacing: 4px; }
.result-checks { list-style: none; padding: 0; margin: 4px 0 10px; text-align: left; display: flex; flex-direction: column; gap: 3px; font-weight: 700; }
.result-checks li.no { color: var(--muted); }
.result-rewards { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 4px; font-weight: 800; color: #7a4a00; }
.result-rewards li { background: #fff6dc; border-radius: 10px; padding: 4px 10px; }
.result-rewards:empty { display: none; }
.result-buttons { display: flex; gap: 10px; justify-content: center; }

/* bigger controls on tablets */
.touch .stick { width: 176px; height: 176px; }
.touch .knob { width: 72px; height: 72px; }
.touch .btn-drop { width: 96px; height: 96px; }
.touch .btn-up, .touch .btn-down { width: 82px; height: 70px; }
.touch .btn-beep, .touch .btn-power { width: 64px; height: 64px; }

@media (max-width: 1080px) {
  .tracks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px), (max-aspect-ratio: 1/1) {
  .mini-wrap { width: 170px; height: 122px; }
  .jobs { max-width: 42%; }
  .compass { width: 180px; }
}
@media (max-width: 700px) {
  .apps-link span { display: none; }
  .home-top { grid-template-columns: 1fr; }
  .tracks { grid-template-columns: minmax(0, 1fr); }
  .shop-wrap { grid-template-columns: 1fr; }
  .shop-drone svg { margin: 0 auto; display: block; }
  .top-mid { top: auto; bottom: 200px; }
}
@media (max-height: 700px) and (min-aspect-ratio: 1/1) {
  .stick { width: 124px; height: 124px; }
  .knob { width: 52px; height: 52px; }
  .btn-drop { width: 72px; height: 72px; font-size: 30px; }
  .btn-up, .btn-down { width: 62px; height: 50px; }
  .battery { height: 58px; }
  .mini-wrap { width: 180px; height: 128px; }
}

/* ---------- Airport Gauntlet ---------- */
.brand-mark { font-size: 18px; }
.flight { background: #bfe3ff; }
.ticket { display: flex; gap: 8px; align-items: center; }
.tk-plane { font-size: 26px; color: #1b2a3a; }
.tk-flight { font-weight: 900; font-size: 16px; color: var(--blue-dark); white-space: nowrap; }
.tk-gate { font-weight: 900; font-size: 22px; color: #1b2a3a; }
.tk-gate b { background: #1b2a3a; color: #ffd23f; border-radius: 8px; padding: 0 8px; }
.tk-gate.changed b { animation: blink 1s 4; }
.tk-times { font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.tk-times b { color: var(--blue-dark); }
.tk-times .late { color: var(--wrong); }
.tk-snack { margin-top: 6px; font-weight: 800; font-size: 15px; color: #7a4a00; background: #fff6dc; border-radius: 8px; padding: 2px 8px; }
.tk-snack.done { color: var(--right); background: #e3f7e9; }
.clock-big { font-family: ui-monospace, Menlo, monospace; font-weight: 900; font-size: 24px; color: #ffd23f; background: #1b2a3a; border-radius: 10px; padding: 2px 14px; box-shadow: 0 3px 10px rgba(20, 50, 90, .25); }
.clock-big.hurry { color: #ff8a65; animation: blink 1s infinite; }
.board-btn { background: #1b2a3a; color: #ffd23f; border-color: #1b2a3a; }
.announce {
  position: absolute; z-index: 3; left: 50%; top: 110px; transform: translateX(-50%); max-width: min(620px, 90%);
  display: flex; gap: 10px; align-items: center; background: #1b2a3a; color: #fff; border: 3px solid #ffd23f; border-radius: 16px;
  padding: 10px 16px; font-weight: 800; font-size: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); animation: pop .35s ease-out;
}
.an-icon { font-size: 26px; }
.announce b { color: #ffd23f; }
.btn-excuse, .btn-run { display: grid; place-items: center; line-height: 1; font-size: 30px; padding: 4px; }
.btn-excuse span, .btn-run span { font-size: 12px; font-weight: 800; margin-top: 2px; }
.btn-excuse { width: 76px; height: 76px; background: rgba(255, 255, 255, .9); color: var(--blue-dark); }
.btn-run { width: 92px; height: 92px; background: var(--honey); border-color: #b98a00; color: #5a3a00; }
.touch .btn-run { width: 100px; height: 100px; }
.touch .btn-excuse { width: 84px; height: 84px; }
.dep-board { background: #10161f; border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; font-family: ui-monospace, Menlo, monospace; color: #e8eef5; text-align: left; overflow-x: auto; }
.dep-board .db-head { color: #ffd23f; font-weight: 900; font-family: system-ui, sans-serif; display: flex; justify-content: space-between; margin-bottom: 4px; }
.dep-board table { border-collapse: collapse; width: 100%; font-size: 15px; }
.dep-board th { color: #9fb3c8; font-weight: 700; text-align: left; padding: 2px 8px; font-size: 12px; }
.dep-board td { padding: 3px 8px; white-space: nowrap; }
.dep-board tr:nth-child(even) td { background: #161e2a; }
.dep-board tr.mine td { background: #2b3a10; color: #ffef7a; font-weight: 800; }
.dep-board .st-delay, .dep-board .st-change { color: #ff8a65; }
.dep-board .st-board { color: #7ee0a0; }
.boardcard { width: min(640px, 94%); }
.menu { width: min(520px, 94%); }
.menu-have { font-weight: 800; color: #1f7a3a; margin: 4px 0 10px; }
.menu-items { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-items button { display: flex; align-items: center; gap: 8px; padding: 10px; border-width: 3px; border-radius: 14px; text-align: left; }
.menu-items button .mi-e { font-size: 30px; }
.menu-items button .mi-n { flex: 1; font-size: 15px; }
.menu-items button .mi-p { color: #1f7a3a; font-weight: 900; }
.menu-items button.on { border-color: var(--go); background: #e3f7e9; }
.menu-total { font-weight: 800; margin: 10px 0; min-height: 1.3em; }
.menu-total.over { color: var(--wrong); }
.menu-buttons { display: flex; gap: 10px; justify-content: center; }
.fade { position: absolute; inset: 0; z-index: 4; background: #fff; opacity: 0; pointer-events: none; transition: opacity .4s; }
.fade.on { opacity: 1; }
.my-drone svg, .shop-drone svg { display: block; }
