/* ---------- Phase 1 (Nov 2026): Cube retired, money features off, referral v2 ---------- */

/* Cube 12 */
html.no-cube [data-fight-mode="cube"],
html.no-cube [data-fight-mode-go="cube"],
html.no-cube [data-olymp="cube"],
html.no-cube #fight-cube-panel,
html.no-cube #cube-olymp-note { display: none !important; }

/* PvP stakes: PvP stays, free */
html.no-stakes #fight-stake,
html.no-stakes #fight-pvp-panel .fight-pvp-hint[data-i18n="fight.pvpHint"] { display: none !important; }

/* Money: crypto/card top-up, withdraw, swap, Nexus buyback, USDC display */
html.no-money #screen-cash,
html.no-money #cash-pay-modal,
html.no-money .balance-plus[data-cash-focus="usdc"],
html.no-money .fx-chip[data-fx="usdc"],
html.no-money .fx-chip[data-fx="eth"],
html.no-money .fx-toggle,
html.no-money #fx-eth-rate,
html.no-money .cash-peg,
html.no-money .cab-peg,
html.no-money #cab-activate,
html.no-money .cab-card--swap,
html.no-money [data-i18n="cab.topup"],
html.no-money [data-i18n="cab.activateBtn"],
html.no-money #nexus-buyback,
html.no-money #nexus-axel-deals,
html.no-money #market-mint,
html.no-money #qs-adv,
html.no-money #flag-metamask,
html.no-money .cab-wallet .cab-coin:not(:first-child) { display: none !important; }

/* ---------- Invite entry points ---------- */
.hub-card--invite { background: linear-gradient(135deg, rgba(34, 211, 238, .22), rgba(168, 85, 247, .32)) !important;
  border: 1px solid rgba(34, 211, 238, .55) !important; }
.hub-card--invite .hub-card-emoji { font-size: 34px; line-height: 1; margin-right: 12px; }
.hub-card--invite .hub-card-desc b { color: #67e8f9; }
.fight-invite-btn { white-space: nowrap; }

/* ---------- Invite sheet ---------- */
.ref-sheet { position: fixed; inset: 0; z-index: 22000; background: rgba(2, 6, 23, .78); display: flex; align-items: flex-end; justify-content: center; }
.ref-sheet[hidden] { display: none !important; }
.ref-sheet-card { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: var(--bg-card, #10061f);
  border: 1px solid var(--panel-border, rgba(168, 85, 247, .4)); border-radius: 20px 20px 0 0; padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 18px);
  animation: ref-up .25s ease-out; color: var(--text, #e2e8f0); }
@keyframes ref-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ref-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ref-sheet-head h2 { margin: 0; font-size: 22px; }
.ref-x { background: none; border: 0; color: var(--muted, #9aa4c4); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.ref-offer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.ref-offer div { border: 1px solid rgba(34, 211, 238, .35); border-radius: 12px; padding: 10px; text-align: center; background: rgba(34, 211, 238, .06); }
.ref-offer strong { display: block; font-size: 22px; color: #67e8f9; }
.ref-offer span { font-size: 12px; color: var(--muted, #9aa4c4); }
.ref-share-main { font-size: 18px !important; padding: 15px !important; margin-bottom: 8px; }
.ref-btn-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.ref-btn-row .btn { padding: 10px 6px; font-size: 13px; }
.ref-link-box { display: flex; gap: 6px; align-items: center; margin: 6px 0 10px; }
.ref-link-box input { flex: 1; min-width: 0; font-size: 13px; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(168, 85, 247, .35);
  background: rgba(15, 23, 42, .6); color: inherit; }
.ref-qr { display: grid; place-items: center; margin: 8px 0 12px; }
.ref-qr[hidden] { display: none !important; }
.ref-qr-img { background: #fff; padding: 10px; border-radius: 12px; width: 220px; height: 220px; }
.ref-qr-img svg, .ref-qr-img img { width: 100%; height: 100%; display: block; }
.ref-qr p { margin: 6px 0 0; font-size: 12px; color: var(--muted, #9aa4c4); }
.ref-challenge { border: 1px dashed rgba(250, 204, 21, .5); border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: rgba(250, 204, 21, .06); }
.ref-challenge p { margin: 0 0 8px; font-size: 13px; color: var(--muted, #9aa4c4); }
.ref-ladder { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; font-size: 13px; }
.ref-ladder li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(148, 163, 184, .08); }
.ref-ladder li b { color: #67e8f9; white-space: nowrap; }
.ref-progress { margin: 12px 0 6px; }
.ref-progress-bar { height: 8px; border-radius: 6px; background: rgba(148, 163, 184, .2); overflow: hidden; }
.ref-progress-bar i { display: block; height: 100%; background: linear-gradient(90deg, #22d3ee, #a855f7); }
.ref-progress p { margin: 6px 0 0; font-size: 13px; }
.ref-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 8px 0; text-align: center; }
.ref-stats-row div { padding: 8px 4px; border-radius: 10px; background: rgba(148, 163, 184, .08); }
.ref-stats-row strong { display: block; font-size: 18px; }
.ref-stats-row span { font-size: 11px; color: var(--muted, #9aa4c4); }
.ref-friends { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.ref-friends li { padding: 8px 10px; border-radius: 10px; background: rgba(148, 163, 184, .08); font-size: 13px; }
.ref-friends .ref-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ref-chip { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: rgba(148, 163, 184, .18); color: var(--muted, #9aa4c4); }
.ref-chip.is-done { background: rgba(34, 197, 94, .2); color: #86efac; }
.ref-chip.is-held { background: rgba(250, 204, 21, .18); color: #fde68a; }
.ref-milestones { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; }
.ref-ms { flex: 0 0 auto; min-width: 86px; text-align: center; padding: 8px 6px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, .25); font-size: 11px; }
.ref-ms strong { display: block; font-size: 16px; }
.ref-ms.is-done { border-color: rgba(34, 197, 94, .6); background: rgba(34, 197, 94, .1); }
.ref-small { font-size: 12px; color: var(--muted, #9aa4c4); margin: 8px 0 0; }
.ref-need { text-align: center; padding: 10px 0; }

/* Landing banner for invited guests */
.qs-invite-banner { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(34, 211, 238, .5);
  background: rgba(34, 211, 238, .1); font-size: 15px; text-align: center; }
.qs-invite-banner b { color: #67e8f9; }

/* Referral screen: the old $20 copy is replaced by the v2 panel */
#screen-referral .ref-steps { display: none; }
.map-dock-card--invite { border-color: rgba(34, 211, 238, .8) !important; box-shadow: 0 0 12px rgba(34, 211, 238, .45); }
.map-dock-card--invite em { color: #67e8f9 !important; }
