/* ══ HOME CSS ══ */

/* ── Hero ── */
.hero {
  position: relative;
  padding: 52px 20px 44px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0,214,127,0.06) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(77,166,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 480px; }

.hero-date {
  font-size: 11px;
  color: var(--text3);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(44px, 11vw, 72px);
  line-height: .95;
  letter-spacing: .01em;
  color: var(--text);
  margin-bottom: 16px;
}
.hero-title .accent { color: var(--green); }

.hero-sub {
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-lg { padding: 10px 22px; font-size: 13px; border-radius: 24px; }

.hero-balls {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 180px;
  pointer-events: none;
  display: none;
}
@media (min-width: 560px) { .hero-balls { display: block; } }

.hb { position: absolute; font-size: 42px; opacity: .18; animation: float 6s ease-in-out infinite; }
.hb1 { top: 15%; right: 30%; animation-delay: 0s; }
.hb2 { top: 45%; right: 10%; animation-delay: 1.5s; font-size: 32px; }
.hb3 { bottom: 20%; right: 40%; animation-delay: 3s; font-size: 28px; }
.hb4 { top: 25%; right: 5%; animation-delay: .8s; font-size: 24px; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-12px) rotate(8deg); }
}

/* ── Today strip ── */
.today-section { padding: 24px 0 0; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text3);
}

.section-sub { font-size: 11px; color: var(--text3); }

.today-progress { font-size: 11px; color: var(--green); font-weight: 600; }

.tp-spinner {
  display: inline-block;
  width: 10px; height: 10px;
  border: 1.5px solid rgba(0,214,127,.3);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.today-scroll { overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.today-scroll::-webkit-scrollbar { display: none; }

.today-track {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
  width: max-content;
}

.today-card {
  width: 148px;
  flex-shrink: 0;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 13px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.today-card:hover { border-color: var(--border2); background: var(--bg3); }
.today-card.completed { border-color: rgba(0,214,127,.25); background: rgba(0,214,127,.04); }
.today-card.locked { opacity: .45; pointer-events: none; }

.tc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.tc-icon { font-size: 22px; }

.tc-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border2);
}
.tc-status-dot.done { background: var(--green); }
.tc-status-dot.new  { background: var(--amber); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.tc-name  { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; }
.tc-hint  { font-size: 10px; color: var(--text3); line-height: 1.3; }
.tc-action { margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--green); }
.today-card.locked .tc-action { color: var(--text3); }
.today-card.completed .tc-action { color: var(--text3); font-weight: 400; }

/* ── Stats row ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 20px 28px;
}
.stat-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
}
.stat-n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: var(--green);
  line-height: 1;
}
.stat-l { font-size: 10px; color: var(--text3); margin-top: 4px; line-height: 1.3; }

/* ── Games section ── */
.games-section {
  padding: 28px 20px 20px;
  border-top: 1px solid var(--border);
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.ftab {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: none;
  color: var(--text2);
  cursor: pointer;
  transition: all .12s;
}
.ftab:hover { border-color: var(--border2); color: var(--text); }
.ftab.active { background: var(--surface2); border-color: var(--border2); color: var(--text); }

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.game-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 16px 20px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, background .15s;
  overflow: hidden;
}
.game-card:not(.coming-soon):hover { border-color: var(--border2); background: var(--bg3); }

.gc-stripe {
  position: absolute;
  top: 0; left: 0; width: 3px; bottom: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}
.gc-icon { font-size: 24px; flex-shrink: 0; margin-top: 2px; }
.gc-body { flex: 1; min-width: 0; }
.gc-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 5px; line-height: 1.3; }
.gc-desc { font-size: 12px; color: var(--text2); line-height: 1.5; margin-bottom: 10px; }
.gc-footer { display: flex; gap: 5px; flex-wrap: wrap; }
.gc-arrow {
  font-size: 16px;
  color: var(--text3);
  flex-shrink: 0;
  margin-top: 4px;
  transition: transform .15s, color .15s;
}
.game-card:not(.coming-soon):hover .gc-arrow { color: var(--green); transform: translateX(3px); }
.gc-lock { font-size: 13px; }

.coming-soon { opacity: .45; cursor: default; }

.gc-done-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0,214,127,.08);
  border: 1px solid rgba(0,214,127,.25);
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}
.gc-done-overlay.visible { display: flex; }
.game-card.filtered-out { display: none; }

/* ── Archive section ── */
.archive-section {
  padding: 28px 20px 20px;
  border-top: 1px solid var(--border);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.archive-loading {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text3);
  padding: 16px 0;
}

.archive-day {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text2);
  font-size: 12px;
  transition: all .12s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.archive-day:hover { border-color: var(--border2); color: var(--text); background: var(--bg3); }
.archive-day.played { border-color: rgba(0,214,127,.2); }
.ad-date { font-weight: 600; color: var(--text); font-size: 13px; }
.ad-sub  { font-size: 10px; color: var(--text3); }
.ad-check { font-size: 10px; color: var(--green); }

/* ── How section ── */
.how-section {
  padding: 32px 20px;
  border-top: 1px solid var(--border);
}
.how-section .section-title { margin-bottom: 20px; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.how-item { display: flex; gap: 14px; align-items: flex-start; }
.how-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--green);
  opacity: .4;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}
.how-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.how-text p { font-size: 12px; color: var(--text2); line-height: 1.55; }
