:root {
  --bg: #0b0b0c;
  --bg-soft: #101011;
  --surface: #151415;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ece8e1;
  --muted: #928d84;
  --accent: #d99a41;
  --accent-weak: rgba(217, 154, 65, 0.12);
  --radius: 16px;
  --max: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-mark, .wordmark {
  font-family: "Space Grotesk", system-ui, sans-serif;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
}

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

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(11, 11, 12, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: baseline; gap: 7px; }
.brand-mark {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-sub { color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 0.94rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: var(--text) !important;
  border: 1px solid var(--border);
  padding: 9px 18px;
  border-radius: 8px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-cta:hover { border-color: var(--accent); background: var(--accent-weak); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #1a1206;
}
.btn-primary:hover { transform: translateY(-2px); background: #e6a850; }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* Hero */
.hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(150px, 24vh, 260px) clamp(20px, 5vw, 56px) clamp(90px, 16vh, 150px);
  text-align: center;
}
.hero-glow {
  position: absolute;
  top: 20%; left: 50%;
  transform: translateX(-50%);
  width: min(680px, 90vw);
  height: 360px;
  background: radial-gradient(ellipse at center, var(--accent-weak), transparent 70%);
  z-index: -1;
}
.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32em;
}
.wordmark-main {
  font-size: clamp(4rem, 15vw, 10.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.wordmark-sub {
  font-size: clamp(0.85rem, 2.6vw, 1.4rem);
  letter-spacing: 0.62em;
  text-indent: 0.62em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.hero-tag {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 44ch;
  margin: 34px auto 0;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 540px;
  margin: 40px auto 0;
  padding: 14px 14px 14px 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
  text-align: left;
}
.hero-now-info { display: flex; flex-direction: column; gap: 3px; }
.hero-now-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
}
.hero-now-name {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.hero-now-info:hover .hero-now-name { color: var(--accent); }
.hero-now .btn { white-space: nowrap; }
.hero-link {
  display: inline-block;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero-link:hover { color: var(--text); border-color: var(--muted); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
}
.accent { color: var(--accent); }

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(70px, 12vh, 120px) clamp(20px, 5vw, 56px);
}
.section-head { margin-bottom: 50px; }
.section-head h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-top: 14px; }
.page-top { padding-top: clamp(120px, 18vh, 165px); }
.page-lede { color: var(--muted); max-width: 58ch; margin-top: 20px; font-size: 1.05rem; }
.nav-links a.active { color: var(--text); }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px 34px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 154, 65, 0.4);
}
.card-num {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.card h3 { font-size: 1.3rem; margin: 14px 0 10px; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* Featured game */
.games .section-head { margin-bottom: 40px; }
.game-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(28px, 4vw, 52px);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(217, 154, 65, 0.3);
  background: var(--accent-weak);
  padding: 6px 14px;
  border-radius: 100px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 154, 65, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(217, 154, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 154, 65, 0); }
}
.game-title { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 18px 0 16px; }
.game-lede { color: var(--text); font-size: 1.06rem; margin-bottom: 20px; }
.game-points { list-style: none; display: grid; gap: 11px; margin-bottom: 30px; }
.game-points li {
  padding-left: 24px;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}
.game-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--accent);
}
.game-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ea-note { color: var(--muted); font-size: 0.88rem; }
.games-more {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 34px;
}

/* Devlog */
.devlog-list { display: grid; gap: 14px; }
.devlog-entry {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.devlog-entry { cursor: pointer; }
.devlog-entry:hover { border-color: rgba(217, 154, 65, 0.4); }
.devlog-entry:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.devlog-date {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.devlog-day {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}
.devlog-mon {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 6px;
}
.devlog-body h3 { font-size: 1.25rem; margin-bottom: 9px; }
.devlog-body p { color: var(--muted); font-size: 0.96rem; }
.devlog-text {
  position: relative;
  max-height: 3.3em;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.devlog-text p + p { margin-top: 12px; }
.devlog-text::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2.4em;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.devlog-toggle {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Devlog post overlay */
.post-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  justify-content: center;
  align-items: stretch;
  padding: 88px clamp(16px, 5vw, 48px) 40px;
}
.post-modal.open { display: flex; animation: modalIn 0.25s var(--ease); }
.post-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 7, 0.72);
  backdrop-filter: blur(6px);
}
.post-modal-panel {
  position: relative;
  width: min(760px, 100%);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(30px, 4vw, 52px);
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.post-modal-close {
  position: absolute;
  top: 18px; right: 20px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.post-modal-close:hover { color: var(--text); border-color: var(--text); }
.post-modal-date {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}
.post-modal-date .devlog-day { font-size: 1.5rem; }
.post-modal-date .devlog-mon { margin-top: 0; }
.post-modal-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 20px; padding-right: 40px; }
.post-modal-text p { color: var(--muted); font-size: 1rem; }
.post-modal-text p + p { margin-top: 15px; }
body.modal-lock { overflow: hidden; }
.devlog-more {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 30px;
}
.devlog-more a {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
  transition: color 0.2s var(--ease);
}
.devlog-more a:hover { color: var(--accent); }

/* Game art mockup */
.game-art { perspective: 1400px; }
.art-screen {
  background: #121112;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform 0.5s var(--ease);
}
.game-art:hover .art-screen { transform: rotateY(-3deg) rotateX(1deg); }
.art-topbar { display: flex; gap: 7px; padding: 4px 4px 14px; }
.art-topbar span { width: 11px; height: 11px; border-radius: 50%; background: #33312e; }
.art-body {
  background: #0a0a0b;
  border-radius: 9px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.art-order {
  border-left: 3px solid var(--accent);
  padding-left: 14px;
}
.art-order-title {
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.art-order p { font-size: 1.02rem; font-weight: 600; }
.art-order .art-dim { color: var(--muted); font-size: 0.84rem; font-weight: 400; }
.art-grill { display: flex; gap: 12px; }
.patty {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, #221912 0 60%, transparent 61%),
    conic-gradient(from -90deg, var(--accent) calc(var(--p) * 1%), rgba(255, 255, 255, 0.07) 0);
}
.patty span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.patty[style*="--p:100"] span { color: var(--accent); }
.art-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
}
.art-rep { color: var(--accent); }
.art-cash { color: var(--text); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 6vw, 76px);
  align-items: start;
}
.about-grid h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.about-body p { color: var(--muted); margin-bottom: 18px; }
.about-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}
.about-list li {
  padding-left: 20px;
  position: relative;
  color: var(--text);
  font-size: 0.94rem;
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

/* Follow / CTA */
.contact-inner {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
.contact-inner h2 { font-size: clamp(2rem, 5vw, 3rem); margin: 12px 0; }
.contact-lede { color: var(--muted); max-width: 52ch; margin: 0 auto 36px; }
.cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-sub { color: var(--muted); font-size: 0.82rem; margin-top: 22px; }

/* Footer */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 50px clamp(20px, 5vw, 56px) 40px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 26px;
}
.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    background: rgba(11, 11, 12, 0.98);
    backdrop-filter: blur(16px);
    padding: 90px 30px 40px;
    gap: 22px;
    transform: translateY(-100%);
    transition: transform 0.4s var(--ease);
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; z-index: 101; }
  .nav-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .about-grid { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .art-screen { transform: none; }
  .footer-bottom { flex-direction: column; }
  .hero-now { flex-direction: column; align-items: stretch; text-align: center; padding: 20px; }
  .hero-now-info { align-items: center; }
  .hero-now .btn { width: 100%; }
  .devlog-entry { grid-template-columns: 1fr; gap: 14px; }
  .devlog-date {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
  }
  .devlog-mon { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
