/* Flying Group app: install card, "Move to app" code, offline screen. Builds on pass.css and game.css. */
.pwa-card [hidden], .pwa-card[hidden], .pwa-move [hidden], .pwa-move[hidden] { display: none !important; }
.pwa-sr { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px) !important; white-space: nowrap !important; }

.pwa-card {
  position: relative;
  margin: 0 0 16px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  color: var(--navy);
  background: linear-gradient(135deg, var(--yellow-soft) 0%, var(--cream) 70%);
  border: 2px solid var(--yellow);
  box-shadow: 0 6px 0 var(--mix-yellow-33-transparent);
}
.pwa-card .eyebrow { color: var(--coral-dark); }
.pwa-card h2 { margin: 0 34px 6px 0; font-size: 21px; line-height: 1.2; }
.pwa-lead { margin: 0 0 12px; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.pwa-close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: none; color: var(--text-muted);
  font: 700 24px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer;
}
.pwa-close:hover { background: var(--mix-navy-6-transparent); }
.pwa-card .btn { width: 100%; }
.pwa-card .btn-ghost { color: var(--navy); border-color: var(--navy); background: var(--cream); }
.pwa-card .text-button { display: block; margin: 6px auto 0; text-align: center; }

.pwa-steps { margin: 0 0 12px; padding: 0 0 0 22px; font-size: 15px; line-height: 1.5; }
.pwa-steps li { margin: 0 0 6px; padding-left: 2px; }
.pwa-steps li::marker { font-weight: 900; color: var(--blue); }
.pwa-glyph {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 5px;
  border: 1px solid var(--border); border-radius: 7px; background: var(--cream); color: var(--blue); font-weight: 900; font-size: 14px; vertical-align: 1px;
}
.pwa-tip { margin: 10px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }
.pwa-done { margin: 0; font-weight: 800; color: var(--blue-dark); }

.pwa-code-box { margin: 4px 0 0; }
.pwa-chrome-btn { display: block; width: 100%; margin: 12px 0 0; text-align: center; text-decoration: none; box-sizing: border-box; }
.pwa-code-show { text-align: center; padding: 14px 10px 6px; border-radius: 16px; background: var(--navy); color: var(--cream); }
.pwa-code {
  display: block; margin: 0 0 6px; color: var(--yellow);
  font: 900 42px/1.1 ui-monospace, Menlo, monospace; letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
}
.pwa-code-meta { margin: 0; color: var(--light-muted); font-size: 13px; }
.pwa-code-show .text-button { color: var(--coral-light); }
.pwa-error { min-height: 0; margin: 8px 0 0; color: var(--coral); font-size: 14px; font-weight: 700; }
.pwa-error:empty { display: none; }

/* Code entry inside the "No Shift Pass on this device" panel */
.pwa-move { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--navy-panel); text-align: center; }
.pwa-move h3 { margin: 0 0 6px; font-size: 17px; color: var(--cream); }
.pwa-move p { margin: 0 0 12px; font-size: 14px; }
.pwa-move-input {
  display: block; width: 100%; max-width: 240px; min-height: 56px; margin: 0 auto 12px; padding: 8px 12px;
  border: 1px solid var(--navy-border); border-radius: 14px; background: var(--cream); color: var(--navy);
  font: 900 30px/1 ui-monospace, Menlo, monospace; letter-spacing: .18em; text-align: center;
}
.pwa-move-input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
.pwa-move .btn { width: 100%; max-width: 280px; }
.pwa-move .btn:disabled { opacity: .7; cursor: wait; }
.pwa-move .pwa-error { color: var(--coral-light); }

/* In the installed app, the code entry comes first: that's what most people need there. */
.pwa-standalone .empty-pass { display: flex; flex-direction: column; }
.pwa-standalone .empty-pass[hidden] { display: none; }
.pwa-standalone .empty-pass .pwa-move { order: -1; margin: 0 0 18px; padding: 0 0 16px; border-top: 0; border-bottom: 1px solid var(--navy-panel); }

/* Offline screen */
.pwa-offline { text-align: center; padding: 30px 20px; }
.pwa-offline h2 { margin: 0 0 8px; }
.pwa-offline p { color: var(--light-muted); line-height: 1.55; margin: 0 0 18px; }
.pwa-offline-icon { display: block; font-size: 48px; line-height: 1; margin-bottom: 10px; }

/* Room for the iPhone home indicator in the installed app */
@supports (padding: env(safe-area-inset-bottom)) {
  .pwa-standalone .wrap { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}
