@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Chivo:wght@400;500;700&family=Silkscreen&display=swap');

/* Hallmark · v2.0.0 · theme: Arcade (dealt 1/3, playful genre, Roblox reward funnel) · genre: playful · shape: stepped-funnel · signature: the reward card grid as a game-select screen · deal: manual · built: 2026-10-27 */
/* critique: the original was a purple SaaS gradient with pill-badge spam and fake Google verification badge on a dot-grid wash — replaced with CRT aubergine ground, pixel-block type, hard offset shadows, ember signal, acid success, no gradients on primary surfaces */
/* waive 46a: online count and activity toasts are owner's product mechanic · copy: verbatim (user instruction) · F-8 waive: sync progress bar is owner's product logic */

/* ============================================================
   1. TOKENS — every colour and font lives here, nowhere else
   ============================================================ */
:root {
  /* Palette */
  --paper:          #150c1a;
  --surface-1:      #1f1230;
  --surface-2:      #2a1a42;
  --border:         #3d2860;
  --border-hover:   #5a3d8a;

  --ink-primary:    #e8deff;
  --ink-secondary:  #a891d4;
  --ink-muted:      #6e5d9a;
  --ink-white:      #ffffff;

  --accent-ember:   #f97316;
  --accent-acid:    #a3e635;
  --accent-amber:   #fbbf24;
  --accent-red:     #f87171;

  --disabled-bg:    #2e2040;
  --disabled-ink:   #5a4a7a;

  /* Shadows */
  --shadow-hard:    4px 4px 0 #000000;
  --shadow-card:    6px 6px 0 #000000;
  --shadow-btn:     3px 3px 0 #000000;
  --shadow-btn-hover: 5px 5px 0 #000000;
  --shadow-btn-active: 1px 1px 0 #000000;

  /* Typography */
  --font-display:   'Bungee', 'Impact', sans-serif;
  --font-body:      'Chivo', 'Helvetica Neue', sans-serif;
  --font-mono:      'Silkscreen', 'Courier New', monospace;

  /* Radius — CRT/arcade: angular, not pill */
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      4px;  /* cards stay sharp */

  /* Motion */
  --ease-out:       cubic-bezier(0.2, 0, 0, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: 16px;
  background-color: var(--paper);
  color: var(--ink-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 14px 48px;
  line-height: 1.5;
}

/* ============================================================
   3. IN-APP BANNER
   ============================================================ */
#inapp-banner {
  display: none;
  width: 100%;
  max-width: 450px;
  background: var(--surface-2);
  color: var(--ink-primary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 14px;
  text-align: center;
  box-shadow: var(--shadow-hard);
}

/* ============================================================
   4. FUNNEL SHELL — container cap
   ============================================================ */
.funnel-shell {
  width: 100%;
  max-width: 450px;
}

/* ============================================================
   5. TOP BAR
   ============================================================ */
.top-bar {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  box-shadow: var(--shadow-hard);
}

.brand-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400; /* Bungee is display-weight by default */
  letter-spacing: 0.01em;
  color: var(--ink-primary);
  overflow-wrap: break-word;
  min-width: 0;
}

.brand-name span {
  color: var(--accent-ember);
}

/* Online pill — owner's JS mechanic (waive 46a) */
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent-acid);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
}

/* Pulse dot — owner's mechanic; no decorative dot added by us */
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-acid);
  animation: pulseDot 1.5s ease infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(1.3); }
}

/* ============================================================
   6. GOOGLE VERIFIED BADGE — restyled, content verbatim
   ============================================================ */
.google-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--surface-2);
  border: 1px solid var(--accent-ember);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  margin: 14px auto 0;
  box-shadow: var(--shadow-btn);
}

.google-verified-badge svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* HTML text is owner's copy (UPPERCASE), verbatim per user instruction — no text-transform added by us */
.google-verified-badge span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-secondary);
  letter-spacing: 0;
}

/* ============================================================
   7. AUTO-DETECTED DEVICE BADGE
   ============================================================ */
.auto-device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.detected-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   8. FUNNEL CARD — main card container
   ============================================================ */
.funnel-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}

/* ============================================================
   9. STEP SCREENS — show/hide + fade transition
   ============================================================ */
.step-screen {
  display: none;
  animation: fadeStep 0.22s var(--ease-out) both;
}

.step-screen.active {
  display: block;
}

@keyframes fadeStep {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ============================================================
   10. HERO LOGO WRAP
   ============================================================ */
.hero-logo-wrap {
  width: 82px;
  height: 82px;
  border-radius: var(--radius-md);
  margin: 0 auto 16px;
  overflow: hidden;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-hard);
}

.hero-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   11. CARD TYPOGRAPHY
   ============================================================ */
.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  text-align: center;
  color: var(--ink-primary);
  overflow-wrap: break-word;
  min-width: 0;
  line-height: 1.15;
}

.card-sub {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 400;
  color: var(--ink-secondary);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ============================================================
   12. FIELD LABEL & INPUT
   ============================================================ */
/* HTML uses uppercase label text — verbatim per user instruction */
.field-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-secondary);
  display: block;
}

.input-box {
  width: 100%;
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-primary);
  outline: none;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
  margin-bottom: 16px;
}

.input-box::placeholder {
  color: var(--ink-muted);
}

.input-box:focus {
  background: var(--surface-2);
  border-color: var(--accent-ember);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

.input-box:focus-visible {
  outline: 2px solid var(--accent-ember);
  outline-offset: 2px;
}

/* ============================================================
   13. BUTTONS
   ============================================================ */
.btn-main {
  width: 100%;
  background: var(--accent-ember);
  color: var(--ink-white);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.12s var(--ease-out), opacity 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
  display: block;
  text-align: center;
}

.btn-main:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-main:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-btn-active);
}

.btn-main:focus-visible {
  outline: 2px solid var(--accent-ember);
  outline-offset: 3px;
}

.btn-main:disabled {
  background: var(--disabled-bg);
  color: var(--disabled-ink);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  width: 100%;
  background: transparent;
  color: var(--ink-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 15px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  color: var(--ink-primary);
}

.btn-outline:focus-visible {
  outline: 2px solid var(--accent-ember);
  outline-offset: 2px;
}

/* ============================================================
   14. AVATAR CONFIRM CARD
   ============================================================ */
.avatar-confirm-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 16px;
  text-align: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-hard);
}

.avatar-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--accent-ember);
  margin: 0 auto 12px;
  overflow: hidden;
  background: var(--surface-2);
}

.avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   15. CONNECTED STRIP (Step 2)
   ============================================================ */
.connected-strip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.strip-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.strip-user img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--accent-acid);
  object-fit: cover;
  background: var(--surface-2);
}

.platform-chip {
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   16. REWARDS GRID — game-select screen signature
   ============================================================ */
.rewards-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.reward-card {
  background: var(--surface-2);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), transform 0.15s var(--ease-out);
  position: relative;
}

.reward-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hard);
}

.reward-card:focus-visible {
  outline: 2px solid var(--accent-ember);
  outline-offset: 2px;
}

.reward-card.selected {
  border-color: var(--accent-ember);
  background: var(--surface-2);
  box-shadow: var(--shadow-card);
}

.stock-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.reward-card.selected .stock-tag {
  background: var(--accent-ember);
  border-color: var(--accent-ember);
  color: var(--ink-white);
}

.reward-amount {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--accent-amber);
  margin-top: 8px;
  overflow-wrap: break-word;
  min-width: 0;
}

.reward-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-secondary);
  margin-top: 4px;
}

/* ============================================================
   17. SYNC PROGRESS METER & VERIFY CTA (Step 2.5)
   ============================================================ */
.sync-screen {
  text-align: center;
  padding: 12px 4px 6px;
}

.sync-icon-wrap {
  font-size: 38px;
  line-height: 1;
  margin-bottom: 12px;
  display: inline-block;
  animation: pulseIcon 1.8s ease-in-out infinite;
}

@keyframes pulseIcon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.85; }
}

.sync-status-title,
#sync-status-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--ink-primary);
  overflow-wrap: break-word;
  min-width: 0;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.sync-status-sub,
#sync-status-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--accent-amber);
  margin-top: 4px;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

/* Sunk Meter Container */
.sync-meter-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
  margin-bottom: 18px;
  text-align: left;
}

.sync-meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sync-step-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
}

.sync-percent-text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--accent-ember);
}

/* Sunk Track */
.sync-meter-track {
  width: 100%;
  height: 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

/* Progress Fill Bar */
.sync-progress-fill,
#sync-progress-fill {
  height: 100%;
  background: var(--accent-ember);
  border-radius: var(--radius-sm);
  position: relative;
  transition: width 0.08s linear;
}

/* Glowing leading edge */
.sync-glow-pip {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--ink-white);
  box-shadow: 0 0 8px var(--accent-ember);
}

.sync-meter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-muted);
}

.sync-rate-info {
  color: var(--accent-acid);
}

/* Verify CTA Button Container (Appears when 100% complete) */
.sync-verify-wrap {
  margin-top: 6px;
  margin-bottom: 18px;
  animation: slideUpFade 0.35s var(--ease-out);
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sync-cta-btn {
  width: 100%;
  font-size: 15px;
  padding: 16px;
}

/* ============================================================
   18. VERIFY STATUS BOX (Step 3)
   ============================================================ */
.verify-status-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent-ember);
  color: var(--ink-primary);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-hard);
}

.v-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.v-badge-amber {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.v-timer-pill {
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--accent-red);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.v-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px;
  text-align: center;
}

/* ============================================================
   19. LIVE OFFER LIST (OGAds)
   ============================================================ */
.live-offers-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 8px;
}

.offer-row-card {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.15s var(--ease-out), transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out);
}

.offer-row-card:hover {
  border-color: var(--accent-ember);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hard);
}

.offer-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--surface-1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-size: 22px;
}

.offer-icon-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.offer-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 3px;
}

.offer-mini-badge {
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.offer-pts-badge {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--accent-amber);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.offer-title-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.3;
  overflow-wrap: break-word;
  min-width: 0;
}

.offer-desc-text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

.btn-offer-go {
  background: var(--accent-ember);
  color: var(--ink-white);
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-btn);
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
  display: inline-block;
}

.btn-offer-go:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hard);
}

.btn-offer-go:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-btn-active);
}

.btn-offer-go:focus-visible {
  outline: 2px solid var(--accent-ember);
  outline-offset: 2px;
}

/* ============================================================
   20. FAQ ACCORDION
   ============================================================ */
.faq-box {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-hard);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 11px 0;
  cursor: pointer;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-q {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.faq-item:focus-visible .faq-q {
  outline: 2px solid var(--accent-ember);
  outline-offset: 2px;
}

.faq-a {
  display: none;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-top: 8px;
}

.faq-item.open .faq-a {
  display: block;
}

/* ============================================================
   21. ACTIVITY TOAST (owner's JS mechanic — waive 46a)
   ============================================================ */
.activity-toast {
  position: fixed;
  bottom: 16px;
  left: 16px;
  background: var(--surface-2);
  border: 1px solid var(--accent-ember);
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-primary);
  box-shadow: var(--shadow-hard);
  z-index: 50;
}

/* ============================================================
   22. UTILITY — waiting status text (syncing screen)
   ============================================================ */
#waiting-status-text {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ============================================================
   23. PREFERS-REDUCED-MOTION — all animations off
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .pulse-dot {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .step-screen {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
