/* ============================================================
   multicade — "floating web" layer for the public site
   Loaded after app.css on every non-admin page. Plain CSS so it
   never depends on the Tailwind build step.
   Surfaces detach from the page: bigger soft shadows, inset
   highlights, generous radii and a drifting aurora behind them.
   ============================================================ */

:root {
  --fl-shadow:
    0 46px 92px -58px rgba(0, 0, 0, .95),
    0 14px 34px -26px rgba(0, 0, 0, .72);
  --fl-shadow-soft: 0 30px 62px -46px rgba(0, 0, 0, .92);
  --fl-ring: inset 0 1px 0 rgba(255, 255, 255, .06);
  --fl-line: rgba(148, 163, 184, .16);
  --fl-glow: 0 52px 100px -54px rgba(56, 189, 248, .5);
}

/* ---------------------------------------------------------------
   Ambient — let the aurora drift so panels float over moving light
   --------------------------------------------------------------- */
@keyframes fl-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(2%, 3%, 0) scale(1.06); }
}
.mc-aurora { animation: fl-drift 30s ease-in-out infinite; }
.mc-aurora::after { animation: fl-drift 42s ease-in-out infinite reverse; }

/* ---------------------------------------------------------------
   Floating header
   --------------------------------------------------------------- */
.site-header,
.site-header.is-scrolled,
.site-header.is-pinned {
  top: 10px;
  width: min(1300px, 100% - 20px);
  margin-inline: auto;
  margin-block-start: 10px;
  border: 1px solid var(--fl-line);
  border-radius: 20px;
  box-shadow: var(--fl-shadow), var(--fl-ring);
}

/* ---------------------------------------------------------------
   Floating footer
   --------------------------------------------------------------- */
.site-footer {
  width: min(1300px, 100% - 20px);
  margin: 4.5rem auto 26px;
  border: 1px solid var(--fl-line);
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012)), rgba(9, 12, 26, .6);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: var(--fl-shadow), var(--fl-ring);
  overflow: hidden;
}

/* ---------------------------------------------------------------
   Floating surfaces
   --------------------------------------------------------------- */
.card,
.panel,
.mc-glass,
.tile,
.game-card,
.plan-card,
.stat-card,
.podium-card,
.lb-row,
.activity-row,
.auth-stage,
.auth-point,
.auth-demo,
.ad-slot,
.faq details,
.achv,
.cta-band,
.hero,
.game-frame-shell,
.table-wrap,
.cd-box,
.segmented,
.billing-toggle,
.filter-tabs a,
.vote-group,
.search-trigger,
.coin-chip {
  box-shadow: var(--fl-shadow), var(--fl-ring);
  border-color: var(--fl-line);
}

/* Interactive surfaces: deepen + glow on hover */
.tile:hover,
.game-card:hover,
.plan-card:hover,
.podium-card:hover,
.qp-item:hover,
.auth-point:hover,
.faq details[open] {
  box-shadow: var(--fl-glow), 0 14px 34px -26px rgba(0, 0, 0, .72), var(--fl-ring);
}

.stat-card:hover,
.lb-row:hover,
.activity-row:hover {
  border-color: rgba(56, 189, 248, .4);
  box-shadow: 0 40px 80px -50px rgba(56, 189, 248, .6), var(--fl-ring);
}

/* Hero + CTA get an extra lift since they anchor the page */
.hero,
.cta-band {
  box-shadow:
    0 60px 120px -60px rgba(0, 0, 0, .98),
    0 18px 42px -30px rgba(0, 0, 0, .75),
    var(--fl-ring);
}

/* Game cards already lift; make the lift read as leaving the page */
.game-card:hover { transform: translateY(-6px); }
.tile:hover,
.plan-card:hover,
.podium-card:hover { transform: translateY(-6px); }

/* Small floating pills */
.segmented,
.billing-toggle,
.search-trigger,
.header-tool,
.nav-icon-btn,
.lang-switch,
.coin-chip,
.vote-group,
.filter-tabs a { box-shadow: 0 20px 44px -34px rgba(0, 0, 0, .92), var(--fl-ring); }

/* ---------------------------------------------------------------
   Floating overlays
   --------------------------------------------------------------- */
.modal-card,
.cmd-card,
.user-menu-panel {
  box-shadow: 0 64px 128px -42px rgba(0, 0, 0, .98), var(--fl-ring);
}
.drawer-panel {
  box-shadow: -44px 0 110px -44px rgba(0, 0, 0, .98);
}

/* ---------------------------------------------------------------
   Mobile — headers go full-bleed, footer keeps a slim float
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-pinned {
    top: 0;
    width: 100%;
    margin-block-start: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .site-footer {
    width: calc(100% - 20px);
    margin: 3rem auto 16px;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-aurora,
  .mc-aurora::after { animation: none; }
}

/* ---------------------------------------------------------------
   Store — coin package grid (3-up on desktop)
   --------------------------------------------------------------- */
.store-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .store-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------
   Quests — daily & weekly
   --------------------------------------------------------------- */
.quest-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--fl-line);
  border-radius: 24px;
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(56, 189, 248, .12), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .012)),
    rgba(9, 12, 26, .58);
  box-shadow: var(--fl-shadow), var(--fl-ring);
}
.quest-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.quest-hero-actions form { margin: 0; }

.quest-reset {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .68rem;
  border: 1px solid var(--fl-line);
  border-radius: 999px;
  background: rgba(148, 163, 184, .07);
  color: var(--fg-dim, #cbd5e1);
  font-size: .76rem;
  white-space: nowrap;
  box-shadow: 0 18px 38px -32px rgba(0, 0, 0, .9), var(--fl-ring);
}
.quest-reset strong {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.quest-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .quest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .quest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.quest-card {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--fl-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  box-shadow: var(--fl-shadow-soft), var(--fl-ring);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.quest-card:hover {
  border-color: rgba(56, 189, 248, .35);
  box-shadow: 0 34px 68px -46px rgba(56, 189, 248, .55), var(--fl-ring);
  transform: translateY(-2px);
}
.quest-card.is-ready {
  border-color: rgba(251, 191, 36, .4);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(251, 191, 36, .12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}
.quest-card.is-claimed { opacity: .82; }

.quest-card-top {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.quest-ico {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(56, 189, 248, .24);
  border-radius: 12px;
  background: rgba(56, 189, 248, .1);
  color: #7dd3fc;
}
.quest-card.is-ready .quest-ico {
  border-color: rgba(251, 191, 36, .35);
  background: rgba(251, 191, 36, .12);
  color: #fcd34d;
}
.quest-card.is-claimed .quest-ico {
  border-color: rgba(148, 163, 184, .25);
  background: rgba(148, 163, 184, .1);
  color: #cbd5e1;
}
.quest-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.quest-title {
  margin: 0;
  font-size: .98rem;
  line-height: 1.25;
  color: #f8fafc;
}
.quest-desc {
  margin: .18rem 0 0;
  color: var(--fg-mute, #94a3b8);
  font-size: .78rem;
  line-height: 1.45;
}
.quest-game {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin: .35rem 0 0;
  color: #7dd3fc;
  font-size: .7rem;
  font-weight: 700;
}
.quest-game a { color: inherit; text-decoration: none; }
.quest-game a:hover { text-decoration: underline; }
.quest-game-cadence { color: var(--fg-mute, #94a3b8); font-weight: 600; }

.quest-progress {
  position: relative;
  height: .5rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 999px;
  background: rgba(2, 6, 23, .65);
}
.quest-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width .45s ease;
}
.quest-card.is-ready .quest-progress > span {
  background: linear-gradient(90deg, #fbbf24, #fb923c);
}
.quest-card.is-claimed .quest-progress > span {
  background: linear-gradient(90deg, #34d399, #22c55e);
}

.quest-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.quest-count {
  color: var(--fg-mute, #94a3b8);
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
}
.quest-reward {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  color: #fcd34d;
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}
.quest-action { margin-top: auto; }
.quest-action form { margin: 0; }
.quest-form .btn { width: 100%; justify-content: center; }
.quest-done {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #86efac;
  font-size: .78rem;
  font-weight: 700;
}

/* ---------------------------------------------------------------
   AdSense test ad overlay
   --------------------------------------------------------------- */
.ad-test-overlay {
  padding: 1.25rem;
}
.ad-test-card {
  width: min(560px, 100%);
  padding: 1rem;
  border: 1px solid var(--fl-line);
  border-radius: 22px;
  background:
    radial-gradient(110% 150% at 0% 0%, rgba(56, 189, 248, .14), transparent 58%),
    linear-gradient(165deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)),
    rgba(9, 12, 26, .9);
  box-shadow: var(--fl-shadow), var(--fl-ring);
  text-align: left;
}
.ad-test-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .65rem;
}
.ad-test-kicker {
  color: #7dd3fc;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ad-test-count {
  color: #f8fafc;
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ad-test-slot {
  display: grid;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(148, 163, 184, .28);
  border-radius: 14px;
  background: rgba(2, 6, 23, .55);
}
.ad-test-ins {
  width: 100%;
  min-height: 180px;
}
.ad-test-placeholder {
  display: grid;
  gap: .35rem;
  max-width: 40ch;
  padding: 1.25rem;
  text-align: center;
  color: var(--fg-mute, #94a3b8);
  font-size: .8rem;
  line-height: 1.5;
}
.ad-test-placeholder strong {
  color: #f8fafc;
  font-size: 1rem;
}
.ad-test-placeholder-badge {
  justify-self: center;
  padding: .2rem .5rem;
  border: 1px solid rgba(56, 189, 248, .3);
  border-radius: 999px;
  background: rgba(56, 189, 248, .1);
  color: #7dd3fc;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ad-test-copy {
  margin: .8rem 0 .65rem;
  color: var(--fg-dim, #cbd5e1);
  font-size: .82rem;
  line-height: 1.55;
}
.ad-test-bar {
  height: .4rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(2, 6, 23, .8);
}
.ad-test-bar > span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #a855f7);
  transition: width .35s linear;
}
.ad-test-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-top: .8rem;
}
.ad-test-note {
  color: var(--fg-mute, #94a3b8);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------
   Daily reward claim row (profile → wallet)
   --------------------------------------------------------------- */
.daily-claim {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: .85rem 0 1rem;
  padding: .7rem .8rem;
  border: 1px solid var(--fl-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(251, 191, 36, .10), rgba(251, 191, 36, .02));
  box-shadow: var(--fl-ring);
}
.daily-claim.is-done {
  background: linear-gradient(180deg, rgba(148, 163, 184, .09), rgba(148, 163, 184, .02));
}
.daily-claim .btn {
  flex: none;
}

