/* QuickStart newcomer funnel + simple mode (preview newcomer-v1). Remove with js/quickstart.js to revert. */
.qs-landing {
  position: fixed; inset: 0; z-index: 21000; overflow-y: auto;
  background: radial-gradient(120% 80% at 50% 0%, #1a0b3a 0%, #060014 55%, #020617 100%);
  color: var(--text, #eef6ff); display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) 0 calc(env(safe-area-inset-bottom, 0px) + 20px);
}
.qs-landing[hidden], .qs-win[hidden], .qs-first-fight[hidden] { display: none !important; }
.qs-hero { display: block; width: 100%; max-width: 640px; }
.qs-hero img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.qs-body { width: 100%; max-width: 440px; padding: 0 22px; text-align: center; margin-top: -8px; }
.qs-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold, #67e8f9); }
.qs-title { margin: 0 0 14px; font-size: clamp(28px, 8vw, 40px); line-height: 1.08; font-weight: 800;
  text-shadow: 0 0 24px rgba(168, 85, 247, .55); }
.qs-bullets { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; text-align: left; }
.qs-bullets li { padding: 10px 14px 10px 40px; border: 1px solid rgba(168, 85, 247, .35); border-radius: 12px;
  background: rgba(16, 6, 32, .7); position: relative; font-size: 15px; }
.qs-bullets li::before { content: '⚡'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); }
.qs-bullets li:nth-child(2)::before { content: '⚔'; }
.qs-bullets li:nth-child(3)::before { content: '🏆'; }
.qs-play { font-size: 20px !important; padding: 18px 20px !important; letter-spacing: .06em; text-transform: uppercase;
  border-radius: 16px !important; box-shadow: 0 0 0 0 rgba(34, 211, 238, .6); animation: qs-pulse 2s infinite; }
.qs-play.is-busy { animation: none; opacity: .85; }
@keyframes qs-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .55); } 70% { box-shadow: 0 0 0 16px rgba(34, 211, 238, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); } }
.qs-sub { margin: 10px 0 0; font-size: 13px; color: var(--muted, #9aa4c4); }
.qs-err { margin: 10px 0 0; color: #ff8aa0; font-size: 14px; }
.qs-have { margin-top: 18px; background: none; border: 0; color: var(--muted, #9aa4c4); text-decoration: underline;
  font-size: 14px; cursor: pointer; padding: 8px; }
.qs-lang { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); right: 14px; z-index: 2;
  background: rgba(2, 6, 23, .7); color: #67e8f9; border: 1px solid rgba(34, 211, 238, .5); border-radius: 10px; padding: 6px 12px; font-weight: 700; }
body.qs-landing-open { overflow: hidden; }
body.qs-landing-open .bottom-nav, body.qs-landing-open .pilot-gate, body.qs-landing-open .onboard-root { display: none !important; }

/* First win sheet */
.qs-win { position: fixed; inset: 0; z-index: 21500; background: rgba(2, 6, 23, .78); display: flex; align-items: flex-end; justify-content: center; }
.qs-win-card { width: 100%; max-width: 460px; background: var(--bg-card, #10061f); border: 1px solid var(--panel-border, rgba(168,85,247,.4));
  border-radius: 20px 20px 0 0; padding: 22px 20px calc(env(safe-area-inset-bottom, 0px) + 18px); text-align: center; color: var(--text, #eef6ff);
  animation: qs-up .28s ease-out; }
@keyframes qs-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.qs-win-cup { font-size: 48px; }
.qs-win-card h2 { margin: 4px 0 8px; font-size: 26px; }
.qs-win-card p { margin: 0 0 14px; color: var(--muted, #9aa4c4); }
.qs-win-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.qs-win-row .btn { text-align: center; text-decoration: none; }
.qs-win-card hr { border: 0; border-top: 1px solid rgba(168, 85, 247, .25); margin: 16px 0 12px; }
.qs-win-hint { font-size: 13px; }

/* First fight CTA on the map */
.qs-first-fight { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 150px);
  z-index: 13000; border: 0; border-radius: 999px; padding: 14px 26px; font-weight: 800; font-size: 17px; letter-spacing: .04em;
  background: linear-gradient(135deg, #22d3ee 0%, #a855f7 100%); color: #041018; box-shadow: 0 8px 30px rgba(34, 211, 238, .45);
  animation: qs-pulse 2s infinite; }
body.onboard-open .qs-first-fight, body.pilot-gate-open .qs-first-fight { display: none; }

/* Advanced toggle in Account */
.qs-adv { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; text-align: left; font-size: 14px; }
.qs-adv small { color: var(--muted, #9aa4c4); }

/* ---------- Simple mode: hide crypto surfaces (reversible via Account toggle) ---------- */
body.qs-simple .fx-chip[data-fx="usdc"],
body.qs-simple .fx-chip[data-fx="eth"],
body.qs-simple .balance-plus[data-cash-focus="usdc"],
body.qs-simple #fx-eth-rate,
body.qs-simple .cab-peg,
body.qs-simple #cab-activate,
body.qs-simple .cab-card--swap,
body.qs-simple #flag-metamask,
body.qs-simple [data-oauth="metamask"],
body.qs-simple .account-restore .presale-hint,
body.qs-simple .gate-link,
body.qs-simple #screen-cash .cash-modes,
body.qs-simple #screen-cash .cash-peg,
body.qs-simple #screen-cash .screen-sub,
body.qs-simple #cash-pane-crypto { display: none !important; }
body.qs-simple .cab-wallet .cab-coin:not(:first-child) { display: none !important; }
body.qs-simple .fx-toggle { display: none !important; }

.qs-legal { margin: 14px 0 0; font-size: 12px; color: var(--muted, #9aa4c4); }
.qs-legal a { color: inherit; }

/* Fix: in Road to Olymp mode the lobby had no visible Start button (whole #fight-pve-actions was hidden). */
#screen-fight.is-olymp #fight-pve-actions { display: block !important; }
#screen-fight.is-olymp #fight-pve-actions [data-go-screen="mech"] { display: none !important; }
#screen-fight.is-olymp #btn-fight-start { margin-top: 12px; font-size: 18px; padding: 16px; }

/* ---------- Store mode: no real-money / crypto surfaces in Android / iOS / Steam builds ---------- */
html.qs-store [data-go-screen="cash"],
html.qs-store .balance-plus,
html.qs-store #screen-cash,
html.qs-store #cash-pay-modal,
html.qs-store #map-wallet-chip,
html.qs-store [data-fight-mode="pvp"],
html.qs-store [data-fight-mode="cube"],
html.qs-store [data-fight-mode-go="cube"],
html.qs-store [data-olymp="cube"],
html.qs-store #fight-pvp-panel,
html.qs-store #fight-cube-panel,
html.qs-store #cab-activate,
html.qs-store .cab-card--swap,
html.qs-store #nexus-desk,
html.qs-store .gate-link,
html.qs-store .account-restore,
html.qs-store #qs-adv,
html.qs-store .site-topbar { display: none !important; }
