/* Hatch Games — site styles
   Ported from the Claude Design source (Hatch Games.dc.html). */

:root {
  --bg: #1a1b1d;
  --bg-deep: #141517;
  --ink: #f4f1ea;
  --ink-muted: #a8a6a1;
  --accent: #ffc53d;
  --accent-hover: #ffd978;
  --hairline: rgba(244, 241, 234, .08);
  --font: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  background: rgba(26, 27, 29, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--ink);
}
.wordmark:hover { color: var(--ink); }

.wordmark-text {
  font: 900 19px/1 var(--font);
  letter-spacing: .02em;
}

.wordmark-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  font: 600 14px/1 var(--font);
}

.nav-link { color: rgba(244, 241, 234, .82); }
.nav-link:hover { color: var(--accent); }

.btn {
  color: var(--bg);
  background: var(--accent);
  padding: 11px 17px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.btn:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.btn-lg {
  font: 700 16px/1 var(--font);
  padding: 16px 26px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  flex: 1;
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.4vh, 52px);
  padding: clamp(48px, 9vh, 110px) var(--gutter) 68px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: 44%;
  left: 50%;
  width: min(780px, 105vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  will-change: transform;
  pointer-events: none;
}

.hero-glow-inner {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle,
    rgba(255, 197, 61, .10) 0%,
    rgba(255, 197, 61, .035) 38%,
    rgba(255, 197, 61, 0) 68%);
  opacity: .6;
  animation: hatch-breathe 9s ease-in-out infinite;
}

.egg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1px, .35vh, 4px);
  will-change: transform;
}

.egg-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1px, .35vh, 4px);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.egg-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 12px;
  border-radius: 50%;
}

.egg-img {
  height: 30vh;
  min-height: 150px;
  max-height: 330px;
  width: auto;
  display: block;
  transform-origin: 50% 100%;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.egg-shadow {
  width: clamp(78px, 15vh, 164px);
  height: clamp(11px, 2vh, 22px);
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, .72) 0%,
    rgba(0, 0, 0, .34) 52%,
    rgba(0, 0, 0, 0) 78%);
  opacity: .58;
  pointer-events: none;
  will-change: transform, opacity;
  display: block;
}

.hero-title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  will-change: transform, opacity;
}

.hero-title h1 {
  margin: 0;
  font: 900 clamp(38px, 6.6vw, 84px)/0.98 var(--font);
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

.accent { color: var(--accent); }

.tagline {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tagline-rule {
  width: 34px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.tagline-text {
  font: 600 13px/1 var(--font);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, .6);
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font: 600 11.5px/1 var(--font);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
}
.scroll-cue:hover { color: var(--accent); }
.scroll-cue span {
  display: block;
  animation: hatch-cue 2.6s ease-in-out infinite;
}

/* ---------- About ---------- */

.about {
  padding: clamp(80px, 14vh, 150px) var(--gutter);
  border-top: 1px solid var(--hairline);
}

.about-inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(30px, 5vh, 48px);
  text-align: center;
}

.eyebrow {
  font: 700 12px/1 var(--font);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
}

.about p {
  margin: 0;
  font: 600 clamp(21px, 2.5vw, 33px)/1.42 var(--font);
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: pretty;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  padding: clamp(36px, 6vh, 56px) var(--gutter) 30px;
  border-top: 1px solid var(--hairline);
  background: var(--bg-deep);
}

.footer-row {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.footer-brand:hover { color: var(--ink); }
.footer-brand img {
  width: 26px;
  height: auto;
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  font: 500 14px/1 var(--font);
}
.footer-links a { color: rgba(244, 241, 234, .72); }
.footer-links a:hover { color: var(--accent); }

.footer-legal {
  max-width: 1120px;
  margin: 26px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 241, 234, .07);
  font: 400 12.5px/1.5 var(--font);
  color: var(--ink-muted);
}

/* ---------- Motion ---------- */

@keyframes hatch-breathe {
  0%, 100% { opacity: .46; }
  50% { opacity: .74; }
}

@keyframes hatch-cue {
  0%, 100% { opacity: .72; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-anim] { animation: none !important; }
}
