/* ===== CROAKDOWN — Red Frog Black Art ===== */

:root {
  --red: #CC1212;
  --red-dark: #8B0000;
  --bg: #080808;
  --bg-2: #0e0e0e;
  --gold: #F7C948;
  --white: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.42);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.10);
  --hairline: rgba(255, 255, 255, 0.08);

  --tile-red: #CC1212;
  --tile-orange: #F5A623;
  --tile-green: #7ED321;
  --tile-blue: #4A90D9;
  --tile-gold: #F7C948;
  --tile-purple: #9B59B6;

  --radius: 16px;
  --nav-h: 64px;

  --font-head: 'Oswald', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 7vw, 5.4rem); }
h2 { font-size: clamp(1.8rem, 4.4vw, 3rem); letter-spacing: 0.04em; }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); letter-spacing: 0.06em; }

p { margin: 0 0 1em; color: var(--muted); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 220ms ease, backdrop-filter 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 1.05rem;
  text-transform: uppercase;
  color: var(--white);
}
.nav-brand img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 220ms ease, background 220ms ease;
  white-space: nowrap;
  font-size: 0.92rem;
}
.btn:hover {
  background: #e01818;
  box-shadow: 0 0 0 1px rgba(204, 18, 18, 0.4), 0 12px 32px -8px rgba(204, 18, 18, 0.55);
  transform: translateY(-1px);
}
.btn-sm { padding: 10px 18px; font-size: 0.78rem; }
.btn-lg { padding: 18px 34px; font-size: 1rem; }
.btn-ghost {
  background: transparent;
  border-color: var(--card-border);
  color: var(--white);
}
.btn-ghost:hover {
  background: var(--card-bg);
  box-shadow: none;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 32px) 24px 64px;
}
.hero-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(204, 18, 18, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(204, 18, 18, 0.10) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 24s linear infinite, grid-pulse 6s ease-in-out infinite;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0) 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0) 90%);
}
@keyframes grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 60px 60px, 60px 60px; }
}
@keyframes grid-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.hero-glow {
  position: absolute;
  width: 720px; height: 720px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(204,18,18,0.18) 0%, transparent 60%);
  pointer-events: none;
  filter: blur(20px);
}

.hero-content { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.hero-frog {
  width: 88px; height: 88px;
  margin: 0 auto 18px;
  filter: brightness(0) invert(1) drop-shadow(0 0 18px rgba(204,18,18,0.6));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 8rem);
  letter-spacing: 0.08em;
  line-height: 0.9;
  margin: 0 0 18px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 0%, #f3f3f3 60%, #cfcfcf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(204, 18, 18, 0.18);
}
.hero h1 {
  font-size: clamp(1.5rem, 3.6vw, 2.4rem);
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 36px;
}
.hero-cta-row { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-fineprint {
  font-size: 0.85rem;
  color: var(--faint);
  letter-spacing: 0.04em;
}

/* ===== SECTION HEADERS ===== */
.eyebrow {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.section-head { margin-bottom: 48px; max-width: 720px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ===== GAME MODES ===== */
.modes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) {
  .modes {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .modes > .mode {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}
.mode {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--accent, #888);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 240ms ease, background 240ms ease, border-color 240ms ease;
}
.mode:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.06);
}
.mode-icon { font-size: 2rem; margin-bottom: 10px; line-height: 1; }
.mode-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.mode-tag {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent, #888);
  margin-bottom: 12px;
}
.mode-desc { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 860px) { .features { grid-template-columns: 1fr; gap: 28px; } }
.feature { padding: 8px 0; }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 8px; }
.feature p { font-size: 0.98rem; color: var(--muted); margin: 0; }

/* ===== PHONES ===== */
.phones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 8px;
}
@media (max-width: 900px) { .phones { grid-template-columns: repeat(2, 1fr); gap: 32px; } }
@media (max-width: 480px) { .phones { grid-template-columns: 1fr; max-width: 280px; margin-left: auto; margin-right: auto; } }
.phone-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9 / 18;
  background: #050505;
  border: 2px solid #1a1a1a;
  border-radius: 28px;
  position: relative;
  padding: 18px 12px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 60px -30px rgba(204,18,18,0.25), inset 0 0 0 1px rgba(255,255,255,0.04);
}
.phone::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 70px; height: 14px;
  background: #000;
  border-radius: 0 0 12px 12px;
  border: 1px solid #1a1a1a;
  border-top: none;
}
.phone-screen {
  flex: 1;
  margin-top: 12px;
  background: #0a0a0a;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.04);
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  width: 100%;
  aspect-ratio: 1;
}
.tile {
  border-radius: 2px;
  background: rgba(255,255,255,0.04);
}
.t-r { background: var(--tile-red); box-shadow: 0 0 4px rgba(204,18,18,0.4); }
.t-o { background: var(--tile-orange); box-shadow: 0 0 4px rgba(245,166,35,0.35); }
.t-g { background: var(--tile-green); box-shadow: 0 0 4px rgba(126,211,33,0.35); }
.t-b { background: var(--tile-blue);  box-shadow: 0 0 4px rgba(74,144,217,0.35); }
.t-y { background: var(--tile-gold);  box-shadow: 0 0 4px rgba(247,201,72,0.35); }
.t-p { background: var(--tile-purple);box-shadow: 0 0 4px rgba(155,89,182,0.35); }
.phone-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===== SHARE ===== */
.share-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
@media (max-width: 600px) { .share-card { padding: 28px 22px; } }
.share-card h2 { color: var(--white); }
.share-block {
  font-family: var(--font-mono);
  background: #050505;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 20px;
  margin: 26px 0;
  text-align: left;
  font-size: 0.92rem;
  color: #d8d8d8;
  white-space: pre-wrap;
  line-height: 1.6;
  overflow-x: auto;
}

/* ===== COMMUNITY ===== */
.community {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}
@media (max-width: 600px) { .community { grid-template-columns: 1fr; } }
.comm-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: background 220ms ease, transform 220ms ease, border-color 220ms ease;
}
.comm-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.comm-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.comm-icon svg { width: 22px; height: 22px; fill: currentColor; }
.comm-text strong { display: block; font-family: var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9rem; }
.comm-text span { font-size: 0.88rem; color: var(--muted); }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 24px 56px;
  text-align: center;
  color: var(--faint);
  font-size: 0.86rem;
}
.footer-line { margin-bottom: 8px; letter-spacing: 0.04em; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.footer-links a:hover { color: var(--white); }
.footer-frog { margin-top: 14px; font-size: 1.4rem; opacity: 0.6; }

/* ===== LEGAL PAGES ===== */
.legal {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  max-width: 760px;
}
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal .updated { color: var(--faint); font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 40px; }
.legal h2 { font-size: 1.15rem; letter-spacing: 0.1em; margin: 36px 0 12px; color: var(--white); }
.legal p { font-size: 1rem; line-height: 1.75; }
.legal a { color: var(--gold); border-bottom: 1px dashed rgba(247, 201, 72, 0.4); }
.legal a:hover { color: var(--white); border-color: var(--white); }

/* ===== PLAY PAGE ===== */
.play-body { overflow: hidden; height: 100vh; height: 100dvh; }
.play-bar {
  height: 48px;
  border-bottom: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(8px);
}
.play-bar a {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.play-bar a:hover { color: var(--white); }
.play-bar img { height: 22px; filter: brightness(0) invert(1); }
.play-frame {
  width: 100%;
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
  border: 0;
  display: block;
  background: #000;
}
.play-hint {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(8,8,8,0.95);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 8px 12px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
@media (max-width: 720px) {
  .play-hint { display: none; }
  .play-frame { height: calc(100dvh - 48px); }
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero-grid, .hero-frog { animation: none; }
}

/* ===== UTILITY ===== */
.center { text-align: center; }
.mt-lg { margin-top: 40px; }
.muted { color: var(--muted); }
