/* ============================================================
   Snow Rider 3D — custom styles
   Design tokens mirror the Tailwind config in index.html:
   frost #F4F9FF | navy #0A1A31 | deep #13294B | muted #4A607F
   ice #38BDF8 | aqua #22D3EE | lilac #A78BFA
   ============================================================ */

:root {
  --frost: #F4F9FF;
  --navy: #0A1A31;
  --deep: #13294B;
  --muted: #4A607F;
  --ice: #38BDF8;
  --aqua: #22D3EE;
  --lilac: #A78BFA;
  --aurora: linear-gradient(135deg, var(--ice) 0%, var(--aqua) 50%, var(--lilac) 100%);
}

html {
  scroll-behavior: smooth;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .wrap { padding-inline: 1.5rem; }
}

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.5rem 0;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Gradient text / buttons ---------- */
.grad-text {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn-grad {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--aurora);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px -8px rgba(56, 189, 248, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-grad:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 14px 32px -8px rgba(139, 92, 246, 0.5);
}
.btn-grad:active {
  transform: translateY(0) scale(0.98);
}
.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  transition: background 0.15s ease;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.16);
}
.btn-ghost svg {
  width: 16px;
  height: 16px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 249, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(10, 26, 49, 0.08);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--aurora);
  color: #fff;
  padding: 5px;
}
.logo-mark svg {
  width: 100%;
  height: 100%;
}
.logo-mark-sm {
  width: 26px;
  height: 26px;
  padding: 4px;
}

.nav-link {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link:hover {
  background: rgba(56, 189, 248, 0.1);
  color: var(--navy);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(10, 26, 49, 0.12);
  background: #fff;
}
.menu-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-bars i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

.mobile-nav {
  border-top: 1px solid rgba(10, 26, 49, 0.08);
  background: #fff;
}
.mobile-link {
  display: block;
  padding: 0.85rem 0.9rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}
.mobile-link:hover {
  background: rgba(56, 189, 248, 0.08);
}

/* ---------- Eyebrow labels ---------- */
.eyebrow {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ice);
  margin-bottom: 0.5rem;
}
.eyebrow-dark {
  color: var(--aqua);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -120px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: var(--aurora);
  opacity: 0.18;
  filter: blur(90px);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}
.hero .wrap {
  position: relative;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(10, 26, 49, 0.1);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}
.pill-ok {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.3);
  color: #0e7490;
}

.stars svg {
  width: 96px;
  height: 19px;
}

/* ---------- Game panel ---------- */
.game-shell {
  background: var(--navy);
  border-radius: 1.5rem;
  padding: 0.6rem;
  box-shadow: 0 24px 60px -20px rgba(10, 26, 49, 0.45);
}

.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 1.1rem;
  overflow: hidden;
  background: #050b16;
}

.game-poster {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
}
.poster-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(1px) brightness(0.7);
}
.poster-veil {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(5,11,22,0.85) 0%, rgba(5,11,22,0.25) 55%, rgba(5,11,22,0.45) 100%);
}
.poster-body {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
}

.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--aurora);
  color: #fff;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  box-shadow: 0 16px 36px -10px rgba(34, 211, 238, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
}
.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 44px -10px rgba(139, 92, 246, 0.55);
}
.play-btn:active {
  transform: scale(0.97);
}
.play-tri {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
  margin-left: 2px;
}
.poster-note {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 500;
}

.game-slot {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
}
.game-slot iframe {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.game-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 0.6rem 0.4rem;
}
.game-bar-hint {
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
}

/* ---------- Key caps ---------- */
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.6rem;
  border-radius: 0.65rem;
  background: #fff;
  border: 2px solid rgba(10, 26, 49, 0.08);
  box-shadow: 0 3px 0 rgba(10, 26, 49, 0.12);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}
.key-xs {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.3rem;
  font-size: 0.7rem;
  border-radius: 0.4rem;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.16);
  box-shadow: none;
  color: #fff;
}
.key-wide {
  min-width: 5.2rem;
}
.key-or {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0 0.15rem;
}
.key-gift {
  font-size: 1.4rem;
  min-width: 2.6rem;
}

/* ---------- Drift divider ---------- */
.drift {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -1px;
}

/* ---------- Dark band (how to play) ---------- */
.band-dark {
  background: var(--navy);
}

.ctrl-card {
  background: var(--deep);
  border-radius: 1.1rem;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.ctrl-card-tip {
  background: linear-gradient(135deg, rgba(56,189,248,0.14), rgba(167,139,250,0.14));
  border: 1px solid rgba(56,189,248,0.25);
}
.keys {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.ctrl-text {
  color: #A9C0DC;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ---------- Feature grid ---------- */
.feat {
  background: #fff;
  border: 1px solid rgba(10, 26, 49, 0.08);
  border-radius: 1.25rem;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.feat-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.feat-text {
  font-size: 0.92rem;
  line-height: 1.55;
}
.feat-lead {
  grid-column: span 2 / span 2;
  grid-row: span 2 / span 2;
  background: var(--navy);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
}
.feat-tag {
  align-self: flex-start;
  background: rgba(255,255,255,0.1);
  color: var(--aqua);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.feat-lead .feat-title {
  font-size: 1.5rem;
}
.feat-run {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: var(--aurora);
  opacity: 0.35;
  filter: blur(50px);
  border-radius: 999px;
}
.feat-tall {
  display: flex;
  flex-direction: column;
}
.feat-mini {
  margin-top: auto;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--ice);
  font-size: 0.85rem;
}
.feat-score {
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(167,139,250,0.08));
}

@media (max-width: 1023px) {
  .feat-lead {
    grid-column: span 1 / span 1;
    grid-row: auto;
  }
}

/* ---------- About ---------- */
.about {
  background: #fff;
  border-top: 1px solid rgba(10, 26, 49, 0.06);
  border-bottom: 1px solid rgba(10, 26, 49, 0.06);
}
.fact-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.65rem;
}
.fact-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px dashed rgba(10, 26, 49, 0.12);
}
.fact-list dt {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.fact-list dd {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}
.prose-block p {
  margin-bottom: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}
.prose-block p:last-child {
  margin-bottom: 0;
}

/* ---------- Game cards ---------- */
.gcard {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(10, 26, 49, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -14px rgba(10, 26, 49, 0.25);
}
.gcard-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ice), var(--lilac));
}
.gcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gcard-play {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background: rgba(10, 26, 49, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.gcard:hover .gcard-play {
  opacity: 1;
  transform: translateY(0);
}
.gcard-title {
  display: block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy);
  padding: 0.6rem 0.7rem 0;
}
.gcard-cat {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.1rem 0.7rem 0.7rem;
}

/* ---------- FAQ ---------- */
.faq-wrap {
  background: var(--frost);
}
.faq {
  background: #fff;
  border: 1px solid rgba(10, 26, 49, 0.08);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--navy);
  font-size: 1rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary i {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq summary i::before,
.faq summary i::after {
  content: '';
  position: absolute;
  background: var(--ice);
  border-radius: 2px;
}
.faq summary i::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}
.faq summary i::after {
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  transition: transform 0.2s ease;
}
.faq[open] summary i::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}
.faq-body {
  padding-top: 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
}
.foot-link {
  color: #A9C0DC;
  font-weight: 500;
  transition: color 0.15s ease;
}
.foot-link:hover {
  color: #fff;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
