/* Existing design pass, served with the built application. */

@font-face {
  font-family: Syne;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/syne-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: Syne;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/syne-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/outfit-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: Outfit;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/outfit-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --sky-0: #07131b;
  --ink: #e7eef2;
  --muted: #9eb4c0;
  --copper: #d4894a;
  --copper-2: #f0b27a;
}

html { scroll-behavior: smooth; }

body {
  font-family: Outfit, ui-sans-serif, system-ui, sans-serif !important;
  color: var(--ink) !important;
  background-color: var(--sky-0) !important;
  background-image:
    radial-gradient(880px 460px at 8% -8%, rgba(212, 137, 74, 0.2), transparent 58%),
    radial-gradient(640px 380px at 100% 0%, rgba(36, 72, 96, 0.5), transparent 55%),
    linear-gradient(180deg, #0d1e2b 0%, #07131b 46%, #050e14 100%) !important;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/></svg>");
}

::selection { background: #d4894a; color: #1a120c; }

[class*="font-display"] {
  font-family: Syne, "Arial Black", Impact, sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
}

.font-mono,
#board ol p[class*="text-2xl"] {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 80;
  transform: translateY(-160%);
  border-radius: 10px;
  background: #f0b27a;
  color: #1a120c;
  padding: 0.55rem 0.8rem;
  font-weight: 600;
}
.skip-link:focus {
  transform: none;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #f0b27a;
  outline-offset: 3px;
}

a.rounded-full,
button.rounded-full,
p.rounded-full {
  border-radius: 12px;
}

a,
button {
  transition: transform 160ms cubic-bezier(0.2, 0.7, 0.2, 1), background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
a.rounded-full:hover,
button.rounded-full:hover,
button[class*="rounded-2xl"]:hover {
  transform: translateY(-1px);
}
a.rounded-full:active,
button.rounded-full:active,
button[class*="rounded-2xl"]:active {
  transform: translateY(1px) scale(0.98);
}

header.sticky {
  background-color: rgba(7, 19, 27, 0.9);
  border-bottom-color: rgba(231, 238, 242, 0.08);
  box-shadow: 0 10px 30px rgba(5, 14, 20, 0.28);
}
header a > span.grid {
  position: relative;
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 10px;
  color: transparent;
  background: #d4894a;
  box-shadow: inset 0 -2px 0 rgba(26, 18, 12, 0.28);
}
header a > span.grid::after {
  content: "🐤";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #1a120c;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 16px;
  line-height: 1;
}
header nav a.nav-link { color: #d5e2e9; font-weight: 500; }
body:has(#play:target) header nav a.nav-link[href="#play"],
body:has(#board:target) header nav a.nav-link[href="#board"],
body:has(#pricing:target) header nav a.nav-link[href="#pricing"] {
  color: #1a120c;
  background: #d4894a;
}
header a[class*="bg-[#d4894a]"] {
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(212, 137, 74, 0.28);
}

p.rounded-full,
p[class*="tracking-[0.25em]"] {
  text-transform: none;
  letter-spacing: 0.01em;
  font-weight: 600;
  font-size: 0.78rem;
  color: #f0c39a;
}

#home > main { padding-top: 3.5rem; }
#home h1 {
  font-size: clamp(2.7rem, 6vw, 5.35rem);
  line-height: 0.92;
  text-wrap: balance;
  color: #f4f8fa;
}
#home .max-w-xl {
  max-width: 38rem;
  color: #c9d7e0;
  line-height: 1.55;
  text-wrap: pretty;
  hyphens: none;
}
#home .mt-8 a {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 1.3rem;
  font-weight: 600;
}
#home a[href="#play"] { box-shadow: 0 12px 26px rgba(212, 137, 74, 0.28); }
#home a[href="#pricing"] {
  background: transparent;
  color: #e7eef2;
  box-shadow: inset 0 0 0 1px rgba(231, 238, 242, 0.32);
}
#home a[href="#pricing"]:hover { background: rgba(231, 238, 242, 0.06); }
#home .text-sm { color: #9eb4c0; line-height: 1.5; }

#home .floaty .flex.h-full {
  background-image:
    radial-gradient(circle at 50% 16%, #2c6278 0%, transparent 54%),
    linear-gradient(#173246 0%, #0c1c28 68%, #102818 68%);
  padding-bottom: 1.6rem;
}
#home .floaty .flex.h-full > * { position: relative; z-index: 1; }
#home .floaty .flex.h-full::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(#1f6b3d, #143d28 55%, #0e2c1d);
  z-index: 0;
}
.pixel-border {
  box-shadow:
    0 0 0 1px #2a1a10,
    0 0 0 8px #c9844a,
    0 28px 50px rgba(5, 12, 18, 0.5);
}

#home > main > .mt-24 { counter-reset: feat; }
#home > main > .mt-24 article {
  counter-increment: feat;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(231, 238, 242, 0.1);
  padding: 1.35rem 1.4rem 1.45rem;
  transition: border-color 180ms ease, transform 180ms ease;
}
#home > main > .mt-24 article h2::before {
  content: counter(feat, decimal-leading-zero);
  display: block;
  margin-bottom: 0.7rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #e0a36a;
}
#home > main > .mt-24 article:hover {
  border-color: rgba(212, 137, 74, 0.55);
  transform: translateY(-2px);
}
#home > main > .mt-24 article p { line-height: 1.55; color: #c5d4de; }

#home > main > .mt-16 {
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(212, 137, 74, 0.14), rgba(212, 137, 74, 0.03));
}
#home > main > .mt-16 ol span {
  display: block;
  font-family: Syne, "Arial Black", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

#play input {
  border-radius: 12px;
  border-color: rgba(231, 238, 242, 0.16);
  background: rgba(255, 255, 255, 0.04);
}
#play input:focus-visible {
  border-color: #d4894a;
  box-shadow: 0 0 0 3px rgba(212, 137, 74, 0.28);
}
#play div[class*="rounded-full"][class*="bg-white"] { border-radius: 14px; }
#play p.mt-3 {
  margin-top: 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(212, 137, 74, 0.14);
  color: #f6d7b8;
  font-size: 0.875rem;
  line-height: 1.45;
}
#play .shadow-2xl:empty::before {
  content: "Loading the run…";
  color: #c5d4de;
  font-family: Syne, sans-serif;
  font-weight: 700;
}
.game-stage { border-radius: 22px; }
button[class*="rounded-2xl"] { border-radius: 16px; }

#board ol {
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
}
#board ol:empty::before {
  content: "No runs on this device yet. Play a round and your handle lands here.";
  display: block;
  padding: 1.25rem 1.2rem;
  color: #9eb4c0;
}
#board ol li { transition: background-color 160ms ease; }
#board ol li:hover { background: rgba(212, 137, 74, 0.08); }
#board ol p[class*="text-2xl"] {
  font-size: 1.35rem;
  font-weight: 500;
}

#pricing .mt-10 article { border-radius: 22px; }
#pricing .mt-10 article:last-child {
  border-color: rgba(212, 137, 74, 0.7);
  background: linear-gradient(180deg, rgba(212, 137, 74, 0.16), rgba(212, 137, 74, 0.04));
  box-shadow: 0 18px 40px rgba(5, 12, 18, 0.35);
}
#pricing .font-mono.is-empty-code {
  color: #6f8794;
  letter-spacing: 0.42em;
  font-size: 1.35rem;
}
#pricing button[disabled] { cursor: not-allowed; }

footer a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}
footer a:hover { color: #f0b27a; }

body:has(.next-error-h1) div[style*="100vh"] {
  height: auto !important;
  min-height: 52vh;
  padding: 4.5rem 1.25rem;
  font-family: Outfit, sans-serif !important;
}
.next-error-h1 {
  display: block !important;
  border: 0 !important;
  margin: 0 0 0.35rem !important;
  padding: 0 !important;
  color: #f0b27a !important;
  font-family: Syne, sans-serif !important;
  font-size: 3.2rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em;
}
body:has(.next-error-h1) div[style*="inline-block"] { display: block !important; }
body:has(.next-error-h1) h2 {
  color: #c5d4de !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
}

.game-stage.pixel-border {
  box-shadow:
    0 0 0 1px #2a1a10,
    0 0 0 5px #c9844a,
    0 18px 36px rgba(5, 12, 18, 0.45);
}

@media (min-width: 1024px) {
  #home > main { padding-top: 4.25rem; }
  #home > main > .mt-24 {
    grid-template-columns: 1.28fr 0.92fr;
    gap: 0.9rem;
  }
}

@media (max-width: 639px) {
  header .mx-auto { padding-inline: 0.75rem; }
  header nav { gap: 0; }
  header nav a.nav-link { padding-inline: 0.4rem; }
  header a[class*="text-lg"] { font-size: 1rem; }
  #home > main { padding-top: 1.35rem; }
  #home > main > .grid { gap: 1.25rem; }
  #home h1 { font-size: 2.65rem; }
  #home .mt-8 { flex-direction: column; }
  #home .mt-8 a { width: 100%; }
  #home .floaty { max-width: 13.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  body::before { display: none; }
  header.sticky {
    background: #07131b;
    backdrop-filter: none;
  }
}
