:root {
  --bg: #f6ecdc;
  --bg-warm: #f2dfc3;
  --ink: #1f1b18;
  --ink-soft: #5a4f45;
  --line: rgba(31, 27, 24, 0.12);
  --primary: #c8452a;
  --primary-ink: #8a2a14;
  --accent: #2f5d4f;
  --accent-soft: #e3ecd8;
  --gold: #d8a436;
  --shadow-sm: 0 1px 2px rgba(31, 27, 24, 0.08), 0 4px 14px rgba(31, 27, 24, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(31, 27, 24, 0.28), 0 10px 20px -10px rgba(31, 27, 24, 0.18);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 80% -10%, #ffd9a8 0%, rgba(255,217,168,0) 60%),
              radial-gradient(900px 500px at -10% 10%, #f7c6a0 0%, rgba(247,198,160,0) 55%),
              linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 60%);
  background-attachment: fixed;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  mix-blend-mode: multiply;
  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.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.8'/></svg>");
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}

h1 em { font-style: italic; color: var(--primary); font-weight: 500; }

p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: rgba(246, 236, 220, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-sm);
}

.brand-word {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--ink-soft);
}

.nav a { transition: color 160ms var(--ease); }
.nav a:hover { color: var(--ink); }

.nav-cta {
  color: var(--ink) !important;
  background: var(--ink);
  color: var(--bg) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 500;
}

@media (max-width: 640px) {
  .nav { gap: 14px; font-size: 14px; }
  .nav a:not(.nav-cta) { display: none; }
}

/* HERO */
.hero {
  position: relative;
  padding: clamp(70px, 10vw, 140px) 0 clamp(80px, 12vw, 160px);
  overflow: hidden;
}

.hero-inner {
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-ink);
  background: rgba(200, 69, 42, 0.08);
  border: 1px solid rgba(200, 69, 42, 0.2);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.only-lg { display: none; }
@media (min-width: 720px) { .only-lg { display: inline; } }

.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-soft);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); background: #2b2623; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { background: rgba(31,27,24,0.05); }

.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-soft);
}
.hero-stat .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 93, 79, 0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(47, 93, 79, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(47, 93, 79, 0); }
}

/* HERO DECORATIONS */
.hero-scene {
  position: absolute;
  right: -60px;
  top: 40%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  z-index: 1;
  pointer-events: none;
}
@media (max-width: 960px) { .hero-scene { opacity: 0.35; right: -180px; } }

.pin {
  position: absolute;
  width: 46px;
  height: 92px;
  background: linear-gradient(180deg, #fff 0%, #f2e9db 100%);
  border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
  box-shadow: inset -6px 0 10px rgba(31,27,24,0.08), var(--shadow-lg);
}
.pin::after {
  content: '';
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 14px;
  background: linear-gradient(90deg, transparent, #c8452a 20%, #c8452a 80%, transparent);
  opacity: 0.85;
}
.pin-1 { top: 180px; left: 120px; transform: rotate(-8deg); animation: sway 6s ease-in-out infinite; }
.pin-2 { top: 140px; left: 220px; transform: rotate(4deg); animation: sway 7s ease-in-out infinite -1.5s; }
.pin-3 { top: 220px; left: 320px; transform: rotate(-3deg); animation: sway 6.5s ease-in-out infinite -3s; }
.pin-4 { top: 280px; left: 200px; transform: rotate(10deg); animation: sway 7.5s ease-in-out infinite -2s; }

@keyframes sway {
  0%, 100% { transform: rotate(var(--r, 0deg)) translateY(0); }
  50% { transform: rotate(var(--r, 0deg)) translateY(-6px); }
}

.ball {
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #e57050 0%, #a93418 55%, #6a1f0a 100%);
  top: 60px; right: 40px;
  box-shadow: var(--shadow-lg), inset -12px -14px 30px rgba(0,0,0,0.35);
  animation: bob 8s ease-in-out infinite;
}
.ball::before, .ball::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #3a1207;
}
.ball::before { top: 40px; left: 32px; }
.ball::after { top: 60px; left: 54px; box-shadow: 24px 6px 0 #3a1207; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-10px) rotate(6deg); }
}

.dart {
  position: absolute;
  width: 120px; height: 14px;
  top: 420px; left: 60px;
  background: linear-gradient(90deg, #2f5d4f 0%, #2f5d4f 60%, #d8a436 60%, #d8a436 100%);
  border-radius: 4px;
  transform: rotate(-18deg);
  box-shadow: var(--shadow-sm);
  animation: drift 10s ease-in-out infinite;
}
.dart::after {
  content: '';
  position: absolute;
  right: -14px; top: -4px;
  width: 0; height: 0;
  border-left: 18px solid #8a2a14;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}
@keyframes drift {
  0%, 100% { transform: rotate(-18deg) translateX(0); }
  50% { transform: rotate(-15deg) translateX(14px); }
}

/* ABOUT */
.about {
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.35);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 820px) { .about-inner { grid-template-columns: 1fr; } }

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.about-copy h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  margin-bottom: 22px;
}
.about-copy p {
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  max-width: 52ch;
}

.pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.pillars li {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.pillars li:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pillars h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.pillars p { color: var(--ink-soft); font-size: 15px; }

/* GAMES */
.games {
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.games-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.games-head h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  margin-bottom: 14px;
}
.games-sub { color: var(--ink-soft); font-size: 17px; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .game-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .game-grid { grid-template-columns: 1fr; } }

.game-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
  display: flex;
  flex-direction: column;
}
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.game-art {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.game-art-bowling {
  background:
    radial-gradient(circle at 70% 65%, #c8452a 0%, #8a2a14 60%, #5c1a09 100%),
    linear-gradient(180deg, #f6ecdc, #e8d6b9);
  background-blend-mode: normal;
}
.game-art-bowling::before {
  content: '';
  position: absolute;
  width: 60px; height: 120px;
  background: linear-gradient(180deg, #fff 0%, #f2e9db 100%);
  border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
  left: 18%; top: 30%;
  transform: rotate(-10deg);
  box-shadow: 80px 20px 0 -2px #fff, 40px -10px 0 -4px #fff;
}
.game-art-darts {
  background:
    radial-gradient(circle at 50% 55%, #2f5d4f 0%, #1f3f36 70%),
    linear-gradient(180deg, #e3ecd8, #cdd9bd);
}
.game-art-darts::before {
  content: '';
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background:
    radial-gradient(circle, #d8a436 0 18%, #fff 18% 36%, #c8452a 36% 58%, #fff 58% 78%, #2f5d4f 78% 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}
.game-art-mystery {
  background:
    radial-gradient(circle at 30% 30%, #ffd9a8 0%, rgba(255,217,168,0) 60%),
    linear-gradient(135deg, #1f1b18 0%, #3a2f27 100%);
  display: grid;
  place-items: center;
}
.game-art-mystery::before {
  content: '?';
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 140px;
  color: var(--gold);
  line-height: 1;
  text-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.game-body { padding: 22px 24px 26px; }
.tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.game-body h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.game-body p { color: var(--ink-soft); font-size: 15px; }

/* SIGNUP */
.signup {
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(200, 69, 42, 0.08), transparent 60%),
    radial-gradient(700px 300px at 90% 100%, rgba(47, 93, 79, 0.1), transparent 60%);
}

.signup-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}
@media (max-width: 820px) { .signup-inner { grid-template-columns: 1fr; } }

.signup-copy h2 {
  font-size: clamp(30px, 4.2vw, 48px);
  margin-bottom: 14px;
}
.signup-copy p { color: var(--ink-soft); font-size: 17px; max-width: 42ch; }

.signup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 200ms var(--ease);
}
.signup-form:focus-within { box-shadow: var(--shadow-lg); }

.signup-form input {
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 18px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  min-width: 0;
}
.signup-form input::placeholder { color: #9b8f82; }

.form-note {
  grid-column: 1 / -1;
  font-size: 14px;
  padding: 4px 18px;
  color: var(--ink-soft);
  min-height: 20px;
}
.form-note.ok { color: var(--accent); font-weight: 500; }

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 14px;
  color: var(--ink-soft);
  background: rgba(31, 27, 24, 0.02);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
