/* TAP IT! marketing site. Palette pulled from the game logo:
   teal / magenta / lime / orange candy pieces on a deep teal-navy night. */

@font-face {
  font-family: "Luckiest Guy";
  src: url("/assets/LuckiestGuy.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0c1826;
  --bg-alt: #0f2032;
  --panel: #152c42;
  --line: #23425e;
  --text: #e8f1f8;
  --muted: #9db4c6;
  --teal: #2ad3c9;
  --magenta: #e93fae;
  --lime: #97d327;
  --orange: #ff9633;
  --radius: 18px;
  --display: "Luckiest Guy", "Arial Black", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); }

.accent-teal    { color: var(--teal); }
.accent-magenta { color: var(--magenta); }
.accent-lime    { color: var(--lime); }
.accent-orange  { color: var(--orange); }

/* ---------------- nav ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.5rem;
  padding: .7rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(12, 24, 38, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-size: 1.35rem; letter-spacing: .04em;
  color: var(--text); text-decoration: none;
}
.nav-links { display: flex; gap: 1.3rem; margin-left: auto; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.nav-links a:hover { color: var(--teal); }
@media (max-width: 640px) { .nav-links { display: none; } .nav > .btn { margin-left: auto; } }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: linear-gradient(135deg, var(--magenta), #ff5fc9);
  color: #fff; border-radius: 999px; padding: .8rem 1.7rem;
  box-shadow: 0 4px 18px rgba(233, 63, 174, .35);
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: .5rem 1.15rem; font-size: .9rem; }

/* ---------------- hero ---------------- */
.hero {
  position: relative; text-align: center;
  padding: clamp(3rem, 8vh, 5.5rem) 1.25rem 4.5rem;
}
.hero-glow {
  position: absolute; inset: -20% -30% auto;  height: 130%;
  background:
    radial-gradient(38% 45% at 30% 30%, rgba(42, 211, 201, .16), transparent 70%),
    radial-gradient(35% 42% at 72% 24%, rgba(233, 63, 174, .14), transparent 70%),
    radial-gradient(30% 40% at 55% 75%, rgba(255, 150, 51, .10), transparent 70%);
  pointer-events: none;
}
.hero-logo {
  width: clamp(190px, 34vw, 290px); height: auto;
  filter: drop-shadow(0 18px 45px rgba(0, 0, 0, .55));
  position: relative;
}
.hero-title {
  font-family: var(--display); font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.06; letter-spacing: .02em; margin-top: 1.4rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .5);
  position: relative;
}
.hero-sub {
  max-width: 34rem; margin: 1.2rem auto 2rem; color: var(--muted);
  font-size: 1.12rem; position: relative;
}

/* ---------------- store badges ---------------- */
.stores { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.store-badge {
  position: relative; display: flex; align-items: center; gap: .7rem;
  background: #05090e; border: 1px solid #3a5673; border-radius: 14px;
  color: #fff; text-decoration: none; padding: .6rem 1.3rem .6rem 1rem;
  min-width: 185px; transition: transform .15s ease, border-color .15s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--teal); }
.store-text { display: flex; flex-direction: column; text-align: left; font-weight: 700; font-size: 1.08rem; line-height: 1.15; }
.store-text small { font-weight: 400; font-size: .68rem; color: #b9c9d8; text-transform: uppercase; letter-spacing: .06em; }
.ribbon {
  position: absolute; top: -9px; right: -8px;
  background: var(--orange); color: #201200;
  font-size: .62rem; font-weight: 800; text-transform: uppercase;
  padding: .15rem .5rem; border-radius: 999px; letter-spacing: .05em;
}

/* ---------------- command ticker ---------------- */
.ticker {
  margin-top: 3.6rem; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: inline-flex; gap: .8rem; white-space: nowrap; padding: .25rem 0;
  animation: ticker 26s linear infinite;
}
@keyframes ticker { to { transform: translateX(-50%); } }
.chip {
  font-family: var(--display); font-size: 1.15rem; letter-spacing: .05em;
  padding: .45rem 1.15rem; border-radius: 999px; color: #06121c;
}
.chip-teal    { background: var(--teal); }
.chip-magenta { background: var(--magenta); color: #fff; }
.chip-lime    { background: var(--lime); }
.chip-orange  { background: var(--orange); }

/* ---------------- sections ---------------- */
.section { padding: clamp(3.5rem, 9vh, 6rem) clamp(1.25rem, 5vw, 3rem); max-width: 1120px; margin: 0 auto; }
.section-alt { position: relative; }
.section-alt::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg-alt);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
#commands.section-alt, #faq.section-alt { max-width: none; }
#commands > *, #faq > * { max-width: 1120px; margin-left: auto; margin-right: auto; }

.section-title {
  font-family: var(--display); font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: .02em; line-height: 1.15; margin-bottom: 1rem; text-align: center;
}
.section-lead { text-align: center; color: var(--muted); max-width: 36rem; margin: 0 auto 2.6rem; font-size: 1.08rem; }

/* ---------------- feature cards ---------------- */
.cards {
  margin-top: 2.6rem;
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--teal); }
.card-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  font-size: 1.6rem; border-radius: 14px;
  background: color-mix(in srgb, var(--tint) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--tint) 45%, transparent);
  margin-bottom: 1rem;
}
.card h3 { font-family: var(--display); font-size: 1.25rem; letter-spacing: .03em; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------------- commands grid ---------------- */
.cmd-grid {
  list-style: none; display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.cmd-grid li {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: .9rem 1.1rem; display: flex; flex-direction: column; gap: .15rem;
}
.cmd-grid b { font-family: var(--display); letter-spacing: .05em; font-size: 1.05rem; color: var(--teal); }
.cmd-grid li:nth-child(4n+2) b { color: var(--magenta); }
.cmd-grid li:nth-child(4n+3) b { color: var(--lime); }
.cmd-grid li:nth-child(4n+4) b { color: var(--orange); }
.cmd-grid span { color: var(--muted); font-size: .92rem; }

/* ---------------- daily ---------------- */
.daily-wrap { display: grid; gap: 2.5rem; grid-template-columns: 1.2fr 1fr; align-items: center; }
@media (max-width: 800px) { .daily-wrap { grid-template-columns: 1fr; } }
.daily-copy .section-title { text-align: left; }
.daily-copy p { color: var(--muted); margin-bottom: 1rem; max-width: 30rem; }
.daily-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: 0 22px 60px rgba(0, 0, 0, .35);
  transform: rotate(2deg);
}
.panel-title { font-family: var(--display); letter-spacing: .1em; color: var(--orange); margin-bottom: .9rem; }
.panel-board { list-style: none; counter-reset: rank; }
.panel-board li {
  counter-increment: rank;
  display: flex; align-items: baseline; gap: .8rem;
  padding: .55rem 0; border-bottom: 1px dashed var(--line);
  font-weight: 700; letter-spacing: .04em;
}
.panel-board li::before { content: counter(rank); color: var(--muted); font-weight: 400; width: 1.1rem; }
.panel-board li:last-child { border-bottom: 0; }
.panel-board b { margin-left: auto; color: var(--teal); font-variant-numeric: tabular-nums; }
.panel-board .you { color: var(--magenta); }

/* ---------------- faq ---------------- */
.faq { max-width: 46rem !important; margin-top: 2.4rem; }
.faq details {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.3rem; margin-bottom: .8rem;
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; }
.faq summary::marker { color: var(--teal); }
.faq p { color: var(--muted); padding-top: .6rem; }

/* ---------------- cta + footer ---------------- */
.cta { text-align: center; }
.footer {
  border-top: 1px solid var(--line); text-align: center;
  padding: 2.5rem 1.25rem 3rem; color: var(--muted); font-size: .92rem;
}
.footer a { color: var(--muted); }
.footer p { margin-top: .6rem; }
.footer-fine { font-size: .74rem; opacity: .7; max-width: 34rem; margin-left: auto; margin-right: auto; }
