/* frontend/public/css/index.css */
/* 80s / Early 90s Synthwave Neon Arcade Theme */

.arcade-home *,
.arcade-home *::before,
.arcade-home *::after {
  box-sizing: border-box;
}

.arcade-home {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 14px 14px 108px 14px;
  color: #ffffff;
  overflow: visible;
}

/* =========================================================
   1. TOP GREETING, TIER DISPLAY & NEON CASH HUD (#mainHeader)
   ========================================================= */

.arcade-header-card {
  width: 100%;
  background: linear-gradient(145deg, rgba(28, 12, 54, 0.95), rgba(11, 6, 26, 0.98));
  border: 2px solid #00f0ff;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.25), inset 0 0 12px rgba(255, 0, 127, 0.15);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.arcade-header-card.tier-bronze   { border-color: #f59e0b; box-shadow: 0 0 16px rgba(245, 158, 11, 0.28); }
.arcade-header-card.tier-silver   { border-color: #e2e8f0; box-shadow: 0 0 16px rgba(226, 232, 240, 0.28); }
.arcade-header-card.tier-gold     { border-color: #fde047; box-shadow: 0 0 18px rgba(253, 224, 71, 0.35); }
.arcade-header-card.tier-platinum { border-color: #00f0ff; box-shadow: 0 0 18px rgba(0, 240, 255, 0.38); }
.arcade-header-card.tier-diamond  { border-color: #ff007f; box-shadow: 0 0 20px rgba(255, 0, 127, 0.45); }

.arcade-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.greeting-block {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.greeting-sub {
  font-family: monospace, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  color: #ff007f;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.6);
}

.greeting-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 2px 0 #000000;
}

.hud-cash-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 12px;
  border: 2px solid #00ff66;
  background: rgba(3, 38, 22, 0.9);
  color: #00ff66;
  font-family: monospace, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 3px 0 #059669, 0 0 14px rgba(0, 255, 102, 0.35);
  transition: transform 0.1s ease;
}

.hud-cash-pill:active {
  transform: translateY(2px);
}

.tier-bar-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(7, 3, 18, 0.78);
  border: 1px solid rgba(0, 240, 255, 0.3);
  text-decoration: none;
  color: #f8fafc;
  font-size: 0.73rem;
  font-weight: 800;
}

.tier-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

#homeTierDisplay {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tier-bar-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}

.tier-bar-cta {
  flex-shrink: 0;
  font-family: monospace, sans-serif;
  color: #00f0ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

/* =========================================================
   2. HERO 4.8-HOUR REACTOR RING & LIVE TIER COIN POT
   ========================================================= */

.reactor-card {
  width: 100%;
  position: relative;
  background: radial-gradient(circle at 50% 28%, #2a0a4e 0%, #0d0620 70%, #070312 100%);
  border: 2px solid #ff007f;
  border-radius: 22px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 0 24px rgba(255, 0, 127, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.12);
  margin-bottom: 16px;
  overflow: hidden;
}

.reactor-header-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid #00f0ff;
  color: #00f0ff;
  font-family: monospace, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 0 6px rgba(0, 240, 255, 0.6);
}

.ring-stage {
  position: relative;
  width: 232px;
  height: 232px;
  max-width: 100%;
  margin: 0 auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 11;
}

.ring-progress {
  fill: none;
  stroke: url(#arcadeRingGrad);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-dasharray: 641;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-inner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 184px;
}

.live-pot-wrapper {
  width: 90px;
  height: 82px;
  margin-top: -4px;
  margin-bottom: 2px;
  transition: transform 0.3s ease;
}

.pot-svg {
  width: 100%;
  height: 100%;
}

.pot-coin-mound {
  transform-origin: 100px 74px;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.cycle-coins-readout {
  font-family: monospace, sans-serif;
  font-size: 1.45rem;
  font-weight: 900;
  color: #fde047;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(253, 224, 71, 0.65), 0 2px 0 #000;
}

.cycle-coins-label {
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #00f0ff;
  margin-top: 2px;
}

.cycle-timer-pill {
  margin-top: 6px;
  padding: 4px 11px;
  border-radius: 8px;
  background: #070312;
  border: 1px solid #ff007f;
  font-family: monospace, sans-serif;
  font-size: 0.86rem;
  font-weight: 900;
  color: #ff007f;
  letter-spacing: 1.5px;
  box-shadow: 0 0 8px rgba(255, 0, 127, 0.4);
}

.conversion-ready-inline {
  display: none;
  margin-top: 6px;
}

.ready-pill {
  color: #00ff66;
  border-color: #00ff66;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.5);
}

.est-drop-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-family: monospace, sans-serif;
  font-size: 0.78rem;
  color: #e2e8f0;
  margin-bottom: 14px;
}

.est-drop-amount {
  color: #00ff66;
  font-size: 0.92rem;
  text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

.est-drop-cut {
  font-size: 0.72rem;
  color: #00f0ff;
}

/* 3D 80s Arcade Cabinet Push Button (Sized to stay on 1 line on mobile) */
.boost-pot-btn {
  width: 100%;
  padding: 12px 10px;
  border-radius: 12px;
  border: 2px solid #fde047;
  background: linear-gradient(180deg, #ff007f 0%, #be185d 100%);
  color: #ffffff;
  font-family: monospace, sans-serif;
  font-weight: 900;
  font-size: 0.76rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 5px 0 #701a75, 0 0 18px rgba(255, 0, 127, 0.55);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.boost-pot-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #701a75, 0 0 10px rgba(255, 0, 127, 0.4);
}

/* =========================================================
   3. 5-DAY STREAK MULTIPLIER BAR (.streak-track .streak-node)
   ========================================================= */

.streak-card,
.section-card {
  width: 100%;
  min-width: 0;
  background: rgba(16, 8, 36, 0.92);
  border: 1.5px solid rgba(0, 240, 255, 0.32);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.streak-header,
.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  font-family: monospace, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.6px;
}

.streak-hint {
  color: #fde047;
  font-size: 0.7rem;
}

.streak-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.streak-node {
  padding: 8px 2px;
  border-radius: 10px;
  background: #090514;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-family: monospace, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.streak-node:active {
  transform: scale(0.93);
}

.streak-mult {
  font-size: 0.64rem;
  opacity: 0.85;
}

.streak-node.active {
  background: rgba(0, 255, 102, 0.14);
  border-color: #00ff66;
  color: #00ff66;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.25);
}

.streak-node.current {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.45);
}

.streak-node.day5-hyper {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.28), rgba(253, 224, 71, 0.22));
  border-color: #fde047;
  color: #fde047;
}

/* =========================================================
   4. THE DAILY 5 CHECKLIST (#dailyChecklist)
   ========================================================= */

.section-header-row h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.8px;
}

.section-link-cyan,
.view-all-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: monospace, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  color: #00f0ff;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(7, 3, 18, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.2);
  transition: transform 0.1s ease;
}

.check-item:active {
  transform: scale(0.98);
}

.check-item.done {
  border-color: rgba(0, 255, 102, 0.45);
  background: rgba(0, 255, 102, 0.08);
}

.check-box {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  color: #00ff66;
}

.check-item.done .check-box {
  border-color: #00ff66;
  background: rgba(0, 255, 102, 0.2);
}

.check-label {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 700;
  color: #f8fafc;
  overflow-wrap: break-word;
}

.check-item.done .check-label {
  color: #94a3b8;
  text-decoration: line-through;
}

.check-reward {
  flex-shrink: 0;
  font-family: monospace, sans-serif;
  font-size: 0.75rem;
  font-weight: 900;
  color: #fde047;
  white-space: nowrap;
}

.check-item.done .check-reward {
  color: #00ff66;
}

/* =========================================================
   5. TOP OFFERS CAROUSEL (#offersCarousel)
   ========================================================= */

.offers-carousel {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.offers-carousel::-webkit-scrollbar {
  display: none;
}

.offer-card {
  flex: 0 0 124px;
  max-width: 124px;
  padding: 12px 10px;
  border-radius: 14px;
  background: linear-gradient(160deg, #1e0b3b 0%, #090514 100%);
  border: 1.5px solid rgba(255, 0, 127, 0.45);
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: transform 0.12s ease;
}

.offer-card:active {
  transform: scale(0.95);
}

.offer-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.offer-title {
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-payout {
  font-family: monospace, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
  color: #fde047;
  margin-top: 4px;
}

/* =========================================================
   6. SCRATCH 5 QUICK ARCADE BANNER
   ========================================================= */

.scratch-arcade-banner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.25), rgba(16, 8, 36, 0.96));
  border: 2px solid #fde047;
  box-shadow: 0 0 18px rgba(253, 224, 71, 0.22);
}

.scratch-banner-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.scratch-banner-icon {
  font-size: 1.9rem;
  flex-shrink: 0;
}

.scratch-banner-copy {
  min-width: 0;
  text-align: left;
}

.scratch-banner-title {
  font-family: monospace, sans-serif;
  font-weight: 900;
  font-size: 0.9rem;
  color: #fde047;
  letter-spacing: 0.6px;
}

.scratch-banner-sub {
  font-size: 0.74rem;
  color: #e2e8f0;
  margin-top: 2px;
}

.scratch-banner-badge {
  flex-shrink: 0;
  font-family: monospace, sans-serif;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fde047;
  color: #000000;
  white-space: nowrap;
}