/* WishWatch — pre-login splash / landing page.
   Loaded on login.html alongside style.css (for the font + :root tokens). All
   selectors are sp-* prefixed to avoid clashing with the app stylesheet. */

body.splash {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #cfd2a6 0%, #e7cf93 100%);
  background-attachment: fixed;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #1c2b25;
}

.sp-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-sizing: border-box;
}

/* Shared card look (hero + footer) */
.sp-hero,
.sp-footer {
  background: #fbf4da;
  border: 1px solid rgba(0, 40, 50, .07);
  border-radius: 26px;
  box-shadow: 0 14px 40px rgba(0, 40, 50, .13);
}

/* ---------- A. Split hero ---------- */
.sp-hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 26px;
  align-items: stretch;
  padding: 32px 36px;
  box-sizing: border-box;
}

.sp-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}

.sp-lockup { display: flex; align-items: center; gap: 12px; }
.sp-logo { width: 52px; height: 52px; display: block; }
.sp-wordmark {
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 33px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #005f73;
  line-height: 1;
}
.sp-wm-watch { color: #6e9a3e; }

.sp-h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.18;
  color: #10231f;
  letter-spacing: -.01em;
}

.sp-lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #46503c;
  max-width: 46ch;
}
.sp-lead em { font-style: italic; font-weight: 600; }

.sp-feats { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.sp-feats li { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; color: #1c2b25; }
.sp-feat-ic {
  flex: none;
  width: 25px; height: 25px;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 13px; line-height: 1;
}
.sp-feat-ic.check { background: rgba(95, 125, 46, .15); color: #5f7d2e; }
.sp-feat-ic.shield { background: rgba(0, 95, 115, .13); color: #005f73; }
.sp-feats strong { font-weight: 800; color: #10231f; }

.sp-cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.sp-steam-btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 22px;
  border-radius: 14px;
  background: linear-gradient(100deg, #1b6fe3 0%, #36a0e6 100%);
  color: #fff; font-size: 15.5px; font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(27, 111, 227, .4);
  transition: transform .12s ease, box-shadow .12s ease;
}
.sp-steam-btn:hover { transform: translateY(-1px); box-shadow: 0 11px 26px rgba(27, 111, 227, .46); }
.sp-cta-note { font-size: 12.5px; color: #7c7a5e; }

/* Right "peek" panel */
.sp-hero-right { min-width: 0; }
.sp-peek {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 360px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0e6678 0%, #3c7e63 55%, #7a9e4a 100%);
  display: grid;
  place-items: center;
}
.sp-peek::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(118deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 30px);
  pointer-events: none;
}
.sp-peek-eye {
  position: relative;
  z-index: 2;                 /* eye sits in front of the scrolling covers */
  width: 132px; height: 132px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 255, 255, .28);
  display: grid; place-items: center;
}
.sp-peek-eye .sp-logo-lg { width: 106px; height: 106px; display: block; }

.sp-chip {
  position: absolute;
  z-index: 3;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(0, 25, 35, .26);
  padding: 9px 13px;
  font-size: 12px;
  line-height: 1.25;
  color: #16323b;
  max-width: 62%;
}
.sp-chip-deal { top: 18px; left: 16px; transform: rotate(-4deg); display: flex; flex-direction: column; gap: 1px; animation: sp-deal var(--dealdur, 9s) ease-in-out infinite; }
.sp-chip-t { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.sp-chip-d { color: #bd470b; font-weight: 700; }
.sp-chip-save { bottom: 18px; right: 18px; transform: rotate(3deg); display: flex; flex-direction: column; gap: 1px; text-align: right; }
.sp-chip-save-k { font-size: 10.5px; font-weight: 600; color: #7c7a5e; text-transform: uppercase; letter-spacing: .04em; }
.sp-chip-save-v { font-size: 15px; font-weight: 800; color: #5f7d2e; }
.sp-chip-live {
  top: 18px; right: 16px;
  background: #0e2630; color: #e8eef0;
  font-weight: 700; font-size: 11.5px;
  box-shadow: 0 8px 20px rgba(0, 25, 35, .34);
}

/* ---------- Peek panel animation: glancing/blinking eye + drifting game cards ---------- */
/* Eye: the iris group glances; the lids group scales to blink. (Both gated by JS + reduced-motion.) */
.sp-eye-lids { transform-box: fill-box; transform-origin: center; }
.sp-eye-lids.blink { animation: sp-blink .16s ease; }
@keyframes sp-blink { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.08); } }
.sp-iris { transform-box: fill-box; transform-origin: center; transition: transform .55s cubic-bezier(.4, 0, .2, 1); }
.sp-iris.look-left { transform: translateX(-3px); }
.sp-iris.look-right { transform: translateX(3px); }

/* Floating game thumbnails: each slot eases a random cover in, holds it (drifting gently),
   then eases it out; JS swaps in a fresh cover while it is invisible. They sit behind the eye. */
.sp-float { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
/* Two continuous rows of game covers scrolling past (a marquee "wall"), behind the eye.
   Each row's covers touch horizontally; the two rows touch at the vertical midline; a
   strip of the green panel shows above the top row and below the bottom row. */
.sp-row { position: absolute; left: 0; width: 100%; overflow: hidden; }
.sp-row.top { top: 7%; height: 44%; }
.sp-row.bottom { top: 49%; height: 44%; }   /* slight overlap kills the teal seam line */
.sp-track { display: flex; height: 100%; width: max-content; will-change: transform; }
.sp-thumb {
  height: 100%; aspect-ratio: 16 / 9; flex: none; overflow: hidden;
  background: linear-gradient(135deg, #16323b, #0e6678);
  /* delineate only LEFT/RIGHT neighbours, never top/bottom (no line at the row seam) */
  box-shadow: inset 1px 0 0 rgba(0, 14, 20, .18), inset -1px 0 0 rgba(0, 14, 20, .18);
}
.sp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes sp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sp-marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
/* deal chip: a random deal eases in, holds (floats), eases out; JS swaps it while invisible. */
@keyframes sp-deal {
  0%   { opacity: 0; transform: rotate(-4deg) translateY(8px); }
  16%  { opacity: 1; transform: rotate(-4deg) translateY(0); }
  50%  { opacity: 1; transform: rotate(-3.2deg) translate(3px, -4px); }
  84%  { opacity: 1; transform: rotate(-4deg) translateY(0); }
  100% { opacity: 0; transform: rotate(-4deg) translateY(-8px); }
}
.sp-peek.paused .sp-track,
.sp-peek.paused .sp-chip-deal { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .sp-track, .sp-chip-deal { animation: none; }
  .sp-eye-lids.blink { animation: none; }
  .sp-iris { transition: none; }
}

/* ---------- B. Great Games, Big Discounts (dark) ---------- */
.sp-deals {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(160deg, #0e2630 0%, #0a1c24 100%);
  box-shadow: 0 12px 32px rgba(0, 30, 40, .22);
}
.sp-deals::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(118deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 34px);
  pointer-events: none;
}
.sp-deals-head, .sp-deal-grid { position: relative; z-index: 1; }
.sp-deals-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 16px; flex-wrap: wrap;
}
.sp-deals-titles { display: flex; align-items: flex-start; gap: 10px; }
.sp-diamond { color: #5bc2d4; font-size: 15px; line-height: 1.6; }
.sp-deals-title { display: block; font-size: 19px; font-weight: 800; color: #fff; line-height: 1.15; }
.sp-deals-sub { display: block; font-size: 13px; color: #9fb6bd; margin-top: 2px; }
.sp-updated {
  font-size: 12px; color: #cfe6ec; font-weight: 600;
  background: rgba(255, 255, 255, .08);
  padding: 6px 12px; border-radius: 999px;
}

.sp-deal-grid { display: flex; flex-direction: column; gap: 14px; }
/* ONE continuous fluid grid for all 12 cards. The two .sp-deal-row wrappers become
   display:contents so their cards are direct grid items — the cards then reflow
   left-to-right at any width (auto-fill), so only the LAST row is ever partial. (The old
   two separate 6-card grids left ragged mid-grid gaps at column counts that don't divide 6,
   e.g. 4-up -> 4+2 / 4+2.) minmax(168px) keeps 6 columns at the 1104px full-width grid. */
.sp-deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.sp-deal-row { display: contents; }

.sp-card {
  display: block;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.sp-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); }

.sp-cover {
  position: relative;
  display: block;
  height: 94px;
  background: linear-gradient(135deg, #16323b, #0e6678);
}
.sp-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-cover.noimg { display: grid; place-items: center; }
.sp-cover.noimg::after {
  content: attr(data-title);
  color: #cfe3e8; font-size: 11px; font-weight: 700;
  text-align: center; padding: 0 8px; line-height: 1.25;
}
.sp-badge-cut {
  position: absolute; top: 0; left: 0; z-index: 1;
  background: #e0892a; color: #fff;
  font-size: 12px; font-weight: 800;
  padding: 3px 8px; border-bottom-right-radius: 9px;
}
.sp-badge-rate {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  background: #3f7d2e; color: #dff5cf;
  font-size: 11px; font-weight: 800;
  padding: 2px 6px; border-radius: 6px;
}

.sp-card-body { padding: 8px 10px 10px; display: block; }
.sp-card-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13px; font-weight: 700; color: #e8eef0; line-height: 1.25;
  min-height: 33px;
}
.sp-card-price { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; }
.sp-now { font-size: 15px; font-weight: 800; color: #eef3ee; }
.sp-now.free { color: #74cf7d; }
.sp-was { font-size: 12px; color: #73888f; text-decoration: line-through; }

/* ---------- C. Footer ---------- */
.sp-footer { padding: 22px 26px; }
.sp-foot-main { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }

.sp-stats { display: flex; align-items: center; gap: 22px; }
.sp-stat { display: flex; flex-direction: column; gap: 2px; }
.sp-stat-n { font-size: 22px; font-weight: 800; line-height: 1; }
.sp-stat-n.teal { color: #005f73; }
.sp-stat-n.olive { color: #5f7d2e; }
.sp-stat-n.brown { color: #8a5a3a; }
.sp-stat-l { font-size: 12.5px; color: #7c7a5e; }
.sp-stat-div { width: 1px; height: 34px; background: rgba(0, 40, 50, .12); }

.sp-sources { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sp-sources-label { font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: #a09a78; }
.sp-src-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.sp-src {
  font-size: 12.5px; font-weight: 600; color: #005f73;
  background: rgba(0, 95, 115, .06);
  padding: 5px 11px; border-radius: 999px;
}
.sp-src.emph { background: rgba(0, 95, 115, .13); font-weight: 700; }

.sp-legal {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 40, 50, .08);
  font-size: 11.5px; color: #9a9478; text-align: center; line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .sp-wrap { padding: 16px; gap: 14px; }

  .sp-hero { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .sp-hero-right { order: -1; }
  .sp-peek { min-height: 132px; height: 132px; border-radius: 16px; }
  .sp-float { display: none; } /* keep the short banner clean; eye still animates */
  .sp-peek-eye { width: 104px; height: 104px; border-radius: 22px; }
  .sp-peek-eye .sp-logo-lg { width: 84px; height: 84px; }
  .sp-chip-deal, .sp-chip-live { display: none; }
  .sp-chip-save { bottom: 12px; right: 12px; transform: none; }

  .sp-h1 { font-size: 22px; }
  .sp-lead { font-size: 14px; }
  .sp-cta-row { gap: 10px; }
  .sp-steam-btn { width: 100%; justify-content: center; height: 50px; }
  .sp-cta-note { width: 100%; text-align: center; }

  /* the auto-fill grid already drops to ~2 columns here; just tighten the container + gap */
  .sp-deals { padding: 18px 16px; }
  .sp-deal-grid { gap: 12px; }

  /* Footer stacks: stats 3-up, chips center */
  .sp-foot-main { flex-direction: column; align-items: stretch; gap: 18px; }
  .sp-stats { justify-content: space-between; gap: 8px; }
  .sp-sources { align-items: center; }
  .sp-src-chips { justify-content: center; }
  .sp-legal { text-align: center; }
}
