/* Keep the flight and the active bet controls together within the viewport. */
html, body { height: 100%; }
body { overflow: hidden; }
.app { height: 100dvh; min-height: 0; display: flex; flex-direction: column; overflow: hidden; padding-inline: 22px; }
.topbar { flex: none; min-height: 52px; height: 52px; }
.brand-mark { width: 32px; height: 32px; font-size: 19px; }
.brand strong { font-size: 18px; }
.wallet { padding: 5px 10px; }
.wallet strong { font-size: 18px; }
.mode-pill { padding: 6px 10px; }
.intro { flex: none; padding: 10px 0 8px; align-items: center; }
.intro h1 { font-size: clamp(21px, 2.3vw, 30px); }
.intro p:last-child { margin-top: 3px; font-size: 11px; }
.intro .eyebrow { margin-bottom: 2px; font-size: 10px; }
.dashboard { flex: 1 1 auto; min-height: 0; grid-template-columns: minmax(0, 1fr) 205px; gap: 10px; }
.game-panel { min-height: 0; display: flex; flex-direction: column; }
.history-head { flex: none; height: 34px; padding-inline: 12px; gap: 10px; }
.history-head ol { gap: 4px; }
.history-head li { padding: 2px 6px; }
.sky { flex: 1 1 auto; min-height: 120px; height: auto; }
.sky .readout { top: 44%; }
.sky .readout strong { font-size: clamp(52px, 7vw, 110px); }
.flight-plane { font-size: clamp(32px, 4vw, 48px); }
.sky:not(.flying):not(.crashed) .flight-plane { opacity: .48; left: 12%; top: 73%; }
.sky.crashed .flight-plane { opacity: 0 !important; }
.game-foot { flex: none; height: 27px; padding-inline: 12px; font-size: 10px; }
.side-panel { overflow: hidden; padding: 14px; }
.side-head strong { font-size: 18px; }
.steps { margin: 8px 0; }
.steps li { padding: 9px 0; }
.side-note { padding: 10px; }
.bet-section { flex: none; padding-top: 7px; }
.section-line { margin-bottom: 6px; }
.section-line .eyebrow { display: none; }
.section-line h2 { font-size: 20px; }
.bet-grid { gap: 10px; }
.bet-card { padding: 10px 12px; }
.bet-top { margin-bottom: 6px; }
.bet-top strong { font-size: 15px; }
.bet-inputs { gap: 8px; }
.field span { margin-bottom: 4px; font-size: 9px; }
.field input { height: 34px; font-size: 16px; }
.quick { gap: 5px; margin: 6px 0 8px; }
.quick button { padding: 4px 3px; font-size: 12px; }
.bet-action { height: 41px; font-size: 17px; }
.bet-meta { margin-top: 5px; font-size: 10px; }
.below { min-height: 18px; margin: 3px 0 2px; }
.below #status { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 10px; }
.below .text-button { font-size: 10px; padding: 0; }
footer { flex: none; padding: 5px 0 7px; font-size: 9px; }
.mobile-bet-tabs { display: none; }
@media (max-width: 900px) {
  .dashboard { grid-template-columns: 1fr; }
  .side-panel { display: none; }
  .sky { height: auto; }
}
@media (max-width: 640px) {
  .app { padding-inline: 10px; }
  .topbar { min-height: 46px; height: 46px; }
  .brand { gap: 7px; }
  .brand-mark { width: 29px; height: 29px; font-size: 17px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 8px; letter-spacing: .08em; }
  .wallet { padding: 4px 7px; }
  .wallet strong { font-size: 17px; }
  .intro { min-height: 42px; padding: 3px 0; }
  .intro .eyebrow, .intro p:last-child { display: none; }
  .intro h1 { font-size: clamp(18px, 5.4vw, 23px); line-height: 1.05; }
  .intro .text-button { font-size: 10px; }
  .history-head { height: 27px; }
  .history-head>span { font-size: 9px; }
  .history-head li { font-size: 10px; }
  .sky { min-height: 115px; }
  .sky .readout strong { font-size: clamp(56px, 17vw, 90px); }
  .sky .readout p { font-size: 9px; margin-bottom: 2px; }
  .sky .readout span { font-size: 12px; }
  .game-foot { height: 24px; font-size: 9px; }
  .bet-section { padding-top: 5px; }
  .section-line { display: none; }
  .mobile-bet-tabs { display: flex; height: 28px; gap: 5px; margin-bottom: 5px; }
  .mobile-bet-tabs button { flex: 1; background: var(--surface2); border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font: 600 12px var(--display); letter-spacing: .06em; position: relative; }
  .mobile-bet-tabs button.is-active { color: var(--text); border-color: var(--accent); }
  .mobile-bet-tabs button.has-bet::after { content: ''; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); right: 9px; top: 10px; }
  .bet-grid { display: block; }
  .bet-card { display: none; padding: 7px 9px; }
  .bet-card.is-mobile-active { display: block; }
  .bet-top { display: none; }
  .field span { font-size: 8px; margin-bottom: 3px; }
  .field input { height: 32px; font-size: 15px; padding-inline: 8px; }
  .quick { margin: 5px 0 6px; }
  .quick button { height: 23px; padding: 2px; font-size: 11px; }
  .bet-action { height: 38px; font-size: 15px; }
  .bet-meta { margin-top: 4px; font-size: 9px; }
  .below { height: 18px; margin: 2px 0; }
  footer { padding: 3px 0 5px; font-size: 8px; line-height: 1.2; }
  footer span:last-child { display: none; }
}
@media (max-height: 560px) {
  .intro { display: none; }
  .topbar { height: 40px; min-height: 40px; }
  .history-head { height: 24px; }
  .game-foot { height: 22px; }
  .quick { display: none; }
  footer { display: none; }
  .side-panel { display: none; }
  .dashboard { grid-template-columns: 1fr; }
}
@media (max-height: 430px) {
  .bet-meta, .below { display: none; }
  .bet-card { padding: 6px; }
  .bet-action { height: 34px; }
  .sky { min-height: 80px; }
}
