@font-face {
  font-family: Cormorant;
  src: url('../../fonts/cormorant-cyrillic.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
[hidden] { display: none !important; }
.delivery-page { --gold: #ffdfa0; --gold-text: #332019; }
.delivery-main { padding-block: 29px 55px; }
.delivery-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 23px; margin-bottom: 20px; }
.delivery-heading h1 { font-size: clamp(36px, 5vw, 64px); }
.delivery-heading h1 span { color: var(--gold); }
.delivery-heading p { color: #b9c9da; }
.delivery-game { overflow: hidden; border: 1px solid #46596f; border-radius: 19px; background: #111e34; box-shadow: 0 22px 55px #07112075; }
.delivery-hud, .flight-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; }
.delivery-hud { border-bottom: 1px solid #435872; }
.route { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 1px 9px; }
.route small { grid-column: 1 / -1; }
.route strong { color: #ffedca; }
.route > span { color: #b9cbdc; font-size: 12px; white-space: nowrap; }
.delivery-hud small { color: #afc5dc; font-size: 10px; font-weight: 800; letter-spacing: .085em; line-height: 1.1; }
.numbers { display: flex; gap: clamp(8px, 3.5vw, 48px); }
.numbers > div { display: grid; justify-items: center; gap: 2px; }
.numbers strong { line-height: 1.25; font-variant-numeric: tabular-nums; }
#hearts { color: #ffa7ae; letter-spacing: .12em; white-space: nowrap; }
.hud-actions { display: flex; gap: 6px; }
.flight-button, .gift-choice {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 7px 13px; border: 1px solid #516580; border-radius: 9px;
  background: #1c2d49; color: #fff4da; cursor: pointer; font: 800 14px/1.2 Nunito, 'Segoe UI', sans-serif;
  touch-action: manipulation;
}
.flight-button:focus-visible, .gift-choice:focus-visible { outline: 2px solid #ffe4aa; outline-offset: 3px; }
.flight-button:hover:not(:disabled), .gift-choice:hover { border-color: #ffe4aa; }
.flight-button:disabled { opacity: .62; cursor: default; }
.primary-flight { background: linear-gradient(145deg, #ffedbc, #e5b36d); border-color: #ffe4aa; color: var(--gold-text); }
.icon-button { padding-inline: 5px; color: var(--gold); font-size: 20px; }
#sound[aria-pressed='false'] { color: #b5c9df; text-decoration: line-through; }
.flight-stage { position: relative; isolation: isolate; height: clamp(385px, 56vw, 525px); background: #172647; }
#flight { display: block; width: 100%; height: 100%; touch-action: manipulation; }
#flight:focus { outline: none; }
.flight-readout { position: absolute; pointer-events: none; top: 12px; right: 16px; display: grid; gap: 5px; justify-items: end; }
.flight-readout > span, .flight-message:not(:empty) { background: #101830ec; border: 1px solid #56647f; border-radius: 7px; padding: 4px 9px; color: #e6f0fe; font-size: 13px; font-weight: 800; }
.flight-readout > span:empty { display: none; }
.flight-readout > .ready { color: #d1ffdf; border-color: #72aa8a; }
.flight-readout > .almost { color: #ffe4aa; }
.flight-message { position: absolute; bottom: 15px; left: 50%; width: max-content; max-width: calc(100% - 25px); transform: translateX(-50%); text-align: center; pointer-events: none; }
.flight-overlay { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; padding: 15px; background: linear-gradient(90deg, #0b1126ba, #11172d35); }
.flight-panel { width: min(100%, 440px); max-height: 100%; overflow: auto; padding: clamp(16px, 4vw, 32px); text-align: center; border: 1px solid #eac58b; border-radius: 18px; background: linear-gradient(150deg, #213151f5, #131c35fa); box-shadow: 0 19px 50px #07101ba8; }
.flight-kicker { color: #ffdda1; font-size: 11px; font-weight: 800; letter-spacing: .15em; }
.flight-panel h2 { margin: 8px 0; color: #fff0d6; font: 700 clamp(29px, 4vw, 47px)/.99 Cormorant, Georgia, serif; }
.flight-panel p:not(.flight-kicker) { color: #d5e1ef; }
.flight-panel .flight-record { margin-top: 12px; font-weight: 800; }
.flight-record:empty { display: none; }
.flight-panel button { margin-top: 16px; }
.flight-controls { border-top: 1px solid #435872; }
.gift-palette { display: flex; gap: 6px; }
.gift-choice { color: #ffb2ad; }
.gift-choice[data-color='1'] { color: #a3f5d8; }
.gift-choice[data-color='2'] { color: #ffe39d; }
.gift-choice span { font-size: 20px; line-height: 1; }
.gift-choice kbd, .flight-controls kbd { border: 1px solid currentColor; border-radius: 4px; padding: 2px 4px; font: inherit; font-size: 10px; }
.gift-choice[aria-pressed='true'] { background: #3b314b; border-color: currentColor; box-shadow: inset 0 -2px currentColor; }
.gift-choice:disabled { cursor: default; }
.flight-tip { color: #bed0e0; font-size: 13px; text-align: center; }
.flight-tip kbd { display: inline-block; min-width: 16px; }

@media (max-width: 650px) {
  .delivery-heading { display: block; margin-bottom: 13px; }
  .delivery-heading p { margin-top: 4px; font-size: 14px; }
  .delivery-main { padding-block: 17px 37px; }
  .delivery-hud, .flight-controls { gap: 6px; padding: 8px; }
  .delivery-hud { flex-wrap: wrap; }
  .route { flex: 1 1 100%; }
  .numbers { padding-left: 5px; gap: 14px; }
  .flight-stage { height: clamp(346px, 51vh, 570px); }
  .flight-tip, .flight-controls kbd { display: none; }
  .gift-choice { padding-inline: 7px; }
  .flight-readout { top: 8px; right: 8px; }
}
@media (orientation: landscape) and (max-height: 520px) {
  .flight-stage { height: max(200px, calc(100vh - 136px)); height: max(200px, calc(100dvh - 136px)); }
  .delivery-main { padding-block: 12px 25px; }
}