/* COUNT THE CATCH — home page extras (page-specific; styles.css untouched) */

/* featured grid: reuse .grid.g4 + .t-card from styles.css */

/* loading skeletons */
.skel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.skel .sk-photo { aspect-ratio: 16/9; }
.skel .sk-line { height: 14px; border-radius: 7px; margin: 14px 18px 0; }
.skel .sk-line.w60 { width: 60%; }
.skel .sk-line.w40 { width: 40%; margin-bottom: 18px; }
.skel .sk-photo, .skel .sk-line {
  background: linear-gradient(90deg, #0d130d 25%, #162016 50%, #0d130d 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s infinite linear;
}
@keyframes sk-shimmer { to { background-position: -200% 0; } }

/* honest empty state */
.empty {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 52px 28px;
  text-align: center;
  color: var(--muted);
  grid-column: 1 / -1;
  background: rgba(166,255,0,.02);
}
.empty h3 {
  font-family: var(--font-display);
  font-style: italic;
  text-transform: uppercase;
  color: #e8eee6;
  font-size: 24px;
  margin-bottom: 10px;
}
.empty p { font-size: 14px; margin-bottom: 20px; }
.empty .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.load-err {
  border: 1px solid rgba(255,110,110,.35);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  color: #e8b0b0;
  grid-column: 1 / -1;
  background: rgba(255,80,80,.04);
}
.load-err p { margin-bottom: 16px; font-size: 14px; }

/* ================= HERO: two columns + phone mockup ================= */
@media (min-width: 901px) {
  .hero-cols { display: grid; grid-template-columns: 55fr 45fr; gap: 34px; align-items: center; }
  /* The phone visual takes the right side; the cursive overlay would clash. */
  .hero-script { display: none; }
}
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
@media (max-width: 900px) { .hero-visual { margin-top: 44px; } }

.phone {
  position: relative; width: min(290px, 78vw); aspect-ratio: 9 / 18.6; flex: none;
  background: #050705; border: 3px solid #232d23; border-radius: 44px; overflow: hidden;
  box-shadow: 0 34px 70px rgba(0,0,0,.55), 0 0 0 8px rgba(10,15,10,.55), 0 0 60px rgba(166,255,0,.10);
}
.phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; border-radius: 999px; background: #050705; z-index: 5;
}
.phone-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.phone-shade {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(0deg, rgba(5,8,5,.55), transparent 40%), linear-gradient(180deg, rgba(5,8,5,.35), transparent 30%);
}
.phone-rec {
  position: absolute; top: 44px; left: 16px; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(5,8,5,.6); border: 1px solid rgba(255,255,255,.25); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .18em; padding: 6px 11px; border-radius: 999px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; box-shadow: 0 0 10px rgba(255,59,48,.9); animation: rec-pulse 1.6s infinite; }
@keyframes rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.phone-verified {
  position: absolute; left: 16px; bottom: 52px; z-index: 4;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--lime); color: var(--lime-ink);
  font-size: 11.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 13px; border-radius: 999px; box-shadow: 0 8px 24px rgba(166,255,0,.35);
}
.phone-verified svg { width: 15px; height: 15px; }
.phone-ruler {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30px; z-index: 3;
  background-color: var(--lime);
  background-image:
    repeating-linear-gradient(90deg, rgba(10,15,10,.85) 0 2px, transparent 2px 29px),
    repeating-linear-gradient(90deg, rgba(10,15,10,.45) 0 1px, transparent 1px 7.25px);
  background-size: 100% 55%, 100% 30%;
  background-position: bottom left, bottom left;
  background-repeat: no-repeat;
}

/* floating leaderboard card over the phone (filled by js/home.js, real data only) */
.hero-lb {
  position: absolute; left: -56px; bottom: 44px; z-index: 6; width: 250px;
  background: rgba(13,19,13,.92); border: 1px solid rgba(166,255,0,.35);
  border-radius: var(--radius-sm); padding: 14px 16px;
  box-shadow: 0 22px 50px rgba(0,0,0,.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-lb[hidden] { display: none; }
@media (max-width: 900px) { .hero-lb { position: static; width: min(340px, 100%); margin-top: 16px; } }
.hero-lb-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #e8eee6;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px rgba(166,255,0,.8); flex: none; }
.hero-lb-name { font-family: var(--font-display); font-style: italic; text-transform: uppercase; font-size: 16px; margin-top: 7px; color: #fff; }
.hero-lb-body { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.hero-lb-top { display: flex; align-items: center; gap: 8px; color: #e8eee6; }
.hero-lb-link { display: inline-block; margin-top: 9px; color: var(--lime); font-weight: 700; font-size: 12.5px; }

/* weather pill extras (place + solunar segments) */
.wx-place { font-weight: 700; }
.wx-sol { color: var(--lime); font-weight: 700; }

/* ================= FEATURED: 60/40 banner + rail ================= */
.feat-layout { grid-column: 1 / -1; display: grid; grid-template-columns: 3fr 2fr; gap: 18px; }
@media (max-width: 860px) { .feat-layout { grid-template-columns: 1fr; } }

.feat-banner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); min-height: 340px;
  display: flex; text-decoration: none; color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.feat-banner:hover { border-color: rgba(166,255,0,.45); box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.feat-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feat-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,8,5,.94) 0%, rgba(5,8,5,.45) 55%, rgba(5,8,5,.15) 100%); }
.feat-in { position: relative; z-index: 2; margin-top: auto; padding: 26px; display: flex; flex-direction: column; gap: 10px; width: 100%; align-items: flex-start; }
.feat-in h3 {
  font-family: var(--font-display); font-style: italic; text-transform: uppercase;
  font-size: clamp(26px, 3.4vw, 40px); color: #fff; transform: skewX(-4deg);
}
.feat-meta { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #c9d4c7; }
.feat-meta span { display: flex; align-items: center; gap: 7px; }
.feat-meta svg { width: 15px; height: 15px; color: var(--lime); flex: none; }
.feat-meta.sm { font-size: 12.5px; color: var(--muted); }
.feat-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.feat-tag {
  font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  background: rgba(166,255,0,.14); border: 1px solid rgba(166,255,0,.4); color: #dff5c2;
}
.feat-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; width: 100%; }
.feat-foot .btn { margin-left: auto; }
.feat-cd .ctc-count {
  margin-top: 0; background: rgba(10,15,10,.7); border: 1px solid var(--lime); color: var(--lime);
  font-size: 12.5px; padding: 8px 12px; border-radius: 9px;
  box-shadow: 0 0 18px rgba(166,255,0,.45), inset 0 0 12px rgba(166,255,0,.12);
}
.feat-reg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: #e8eee6; }
.feat-reg[hidden] { display: none; }
.feat-reg svg { width: 16px; height: 16px; color: var(--lime); }

.feat-rail { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.feat-next {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.feat-next-photo { position: relative; display: block; aspect-ratio: 16 / 7; overflow: hidden; }
.feat-next-photo img { width: 100%; height: 100%; object-fit: cover; }
.feat-next-photo .pill { position: absolute; top: 12px; left: 12px; z-index: 2; }
.feat-next-in { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.feat-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.feat-next-name {
  font-family: var(--font-display); font-style: italic; text-transform: uppercase;
  font-size: 19px; color: #fff; text-decoration: none; transform: skewX(-4deg);
}
.feat-next-name:hover { color: var(--lime); }

.feat-side {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.feat-details h4 {
  font-family: var(--font-display); font-style: italic; text-transform: uppercase;
  font-size: 19px; color: #fff; margin-bottom: 10px; transform: skewX(-4deg);
}
.feat-minis { display: flex; gap: 26px; margin: 14px 0 16px; padding-top: 12px; border-top: 1px solid rgba(30,42,30,.6); }
.feat-minis .amt { font-size: 21px; font-weight: 800; color: var(--lime); }
.feat-minis .amt.plain { color: #e8eee6; font-size: 16px; }
.feat-minis .lbl { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.feat-lb-head { display: flex; align-items: center; gap: 8px; }
.feat-lb-head h4 { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #e8eee6; }
.feat-lb-t { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.feat-lb-rows { list-style: none; margin: 12px 0 14px; display: flex; flex-direction: column; gap: 9px; }
.feat-lb-rows li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.feat-lb-rows .rk, .hero-lb-top .rk {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  background: var(--lime-dim); border: 1px solid rgba(166,255,0,.4); color: var(--lime);
  font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.feat-lb-rows .nm { flex: 1; color: #e8eee6; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-lb-top .nm { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feat-lb-rows .tt, .hero-lb-top .tt { color: var(--lime); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ================= HOW IT WORKS + FEATURES: bento grid ================= */
.bento { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.bento .step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color .18s ease, transform .18s ease;
}
.bento .step:hover { border-color: rgba(166,255,0,.45); transform: translateY(-3px); }
.bento .f-card { height: 100%; }
.b-promo { grid-column: 3 / 5; grid-row: 1 / 3; }
/* Audit fix: stronger bottom-anchored gradient so promo copy stays legible
   (the paragraph itself is now pure #fff and the button solid lime in HTML). */
.b-promo::after { background: linear-gradient(0deg, rgba(4,7,4,.97) 0%, rgba(4,7,4,.72) 42%, rgba(4,7,4,.25) 72%, transparent); }
.b-secure { grid-column: 1 / 3; }
@media (max-width: 1100px) and (min-width: 701px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-promo { grid-column: 1 / 3; grid-row: auto; min-height: 300px; }
  .b-secure { grid-column: 1 / 3; }
}
@media (max-width: 700px) {
  .bento { grid-template-columns: 1fr; }
  .b-promo { grid-column: auto; grid-row: auto; min-height: 320px; }
  .b-secure { grid-column: auto; }
}

/* anti-fraud scan motif (Secure & Trusted tile) */
.scan-viz {
  position: relative; height: 118px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid rgba(166,255,0,.25); margin-bottom: 16px; background: #000;
}
.scan-viz img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.scan-viz::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,8,5,.35), transparent 55%); }
.scan-line {
  position: absolute; left: 0; right: 0; top: 38%; height: 2px; background: var(--lime);
  box-shadow: 0 0 14px rgba(166,255,0,.9), 0 0 34px rgba(166,255,0,.5);
  animation: scan-move 4.5s ease-in-out infinite alternate;
}
@keyframes scan-move { from { top: 22%; } to { top: 72%; } }
@media (prefers-reduced-motion: reduce) { .scan-line { animation: none; } }
.scan-ruler {
  position: absolute; left: 0; right: 0; bottom: 0; height: 16px;
  background-color: rgba(10,15,10,.72);
  background-image:
    repeating-linear-gradient(90deg, rgba(166,255,0,.9) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(90deg, rgba(166,255,0,.45) 0 1px, transparent 1px 6.5px);
  background-size: 100% 70%, 100% 40%;
  background-position: bottom left, bottom left;
  background-repeat: no-repeat;
}
.scan-corner { position: absolute; width: 18px; height: 18px; border: 2px solid var(--lime); opacity: .9; }
.sc-tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.sc-tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.sc-bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.sc-br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }

/* abstract metric / standings graphics (payments + organizers tiles; no data) */
.mini-viz { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.viz-row { display: block; height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.viz-row i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(166,255,0,.45), var(--lime)); }
.viz-lb { display: flex; align-items: center; gap: 10px; }
.viz-lb .rk { width: 16px; height: 16px; flex: none; border-radius: 50%; background: rgba(255,255,255,.14); }
.viz-lb .rk1 { background: var(--lime); }
.viz-lb .rk2 { background: rgba(166,255,0,.55); }
.viz-lb .rk3 { background: rgba(166,255,0,.3); }
.viz-lb i { display: block; height: 10px; border-radius: 999px; background: rgba(255,255,255,.16); }
