:root {
  --felt: #0a2f24;
  --felt-deep: #061a14;
  --felt-mid: #124536;
  --gold: #d9b46a;
  --gold-bright: #f0d59a;
  --cream: #f3ebe0;
  --cream-dim: rgba(243, 235, 224, 0.72);
  --ink: #08110e;
  --line: rgba(217, 180, 106, 0.28);
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background: var(--felt-deep);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.mark {
  width: 2rem;
  height: 2rem;
  border: 1.5px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  color: var(--gold-bright);
  transform: rotate(45deg);
}

.mark span {
  transform: rotate(-45deg);
  display: block;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--cream-dim);
}

.nav a:hover {
  color: var(--gold-bright);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 6vh, 4rem);
  isolation: isolate;
  overflow: hidden;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 70% 35%, rgba(217, 180, 106, 0.18), transparent 55%),
    radial-gradient(ellipse 55% 45% at 18% 75%, rgba(18, 69, 54, 0.9), transparent 60%),
    linear-gradient(160deg, #0d3a2d 0%, var(--felt-deep) 48%, #040d0a 100%);
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 180, 106, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(217, 180, 106, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black, transparent 75%);
  opacity: 0.45;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.dice-plane {
  position: absolute;
  right: -4%;
  top: 12%;
  width: min(58vw, 640px);
  aspect-ratio: 1;
  transform: rotate(-8deg);
  animation: float-plane 9s var(--ease) infinite alternate;
}

.die {
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #f7f1e6, #d7cbb8);
  border-radius: 18%;
  box-shadow:
    0 28px 50px rgba(0, 0, 0, 0.35),
    inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  padding: 12%;
  gap: 8%;
}

.die::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 12%;
  border: 1px solid rgba(8, 17, 14, 0.08);
  pointer-events: none;
}

.pip {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1a1714;
  align-self: center;
  justify-self: center;
  opacity: 0;
}

.die-a {
  top: 8%;
  left: 8%;
  animation: tumble-a 7s var(--ease) infinite alternate;
}

.die-a .pip:nth-child(1),
.die-a .pip:nth-child(3),
.die-a .pip:nth-child(5),
.die-a .pip:nth-child(7),
.die-a .pip:nth-child(9) {
  opacity: 1;
}

.die-b {
  bottom: 10%;
  right: 6%;
  width: 28%;
  animation: tumble-b 8.5s var(--ease) infinite alternate;
}

.die-b .pip:nth-child(1),
.die-b .pip:nth-child(5),
.die-b .pip:nth-child(9) {
  opacity: 1;
}

.felt-glow {
  position: absolute;
  left: 8%;
  bottom: 18%;
  width: min(42vw, 420px);
  height: 28%;
  background: radial-gradient(ellipse at center, rgba(30, 110, 82, 0.55), transparent 70%);
  filter: blur(18px);
  animation: pulse-glow 5.5s ease-in-out infinite alternate;
}

.hero-copy {
  max-width: 38rem;
  animation: rise-in 1s var(--ease) both;
}

.brand-lockup {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--cream);
}

.brand-lockup em {
  font-style: normal;
  color: var(--gold-bright);
  display: block;
}

.hero-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  letter-spacing: -0.01em;
  color: var(--cream);
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 30rem;
  color: var(--cream-dim);
  font-size: clamp(1rem, 2vw, 1.125rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
}

.btn-primary:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--cream);
  background: rgba(8, 17, 14, 0.25);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.section {
  padding: clamp(3.5rem, 8vh, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-head p {
  margin: 0;
  color: var(--cream-dim);
  max-width: 34rem;
}

.games {
  background:
    linear-gradient(180deg, rgba(6, 26, 20, 0.2), rgba(6, 26, 20, 0.85)),
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(217, 180, 106, 0.08), transparent 60%),
    var(--felt);
  border-top: 1px solid var(--line);
}

.game-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.game-list li {
  border-bottom: 1px solid var(--line);
}

.game-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0.15rem;
  transition: color 0.2s ease, padding-left 0.3s var(--ease);
}

.game-list a:hover {
  color: var(--gold-bright);
  padding-left: 0.4rem;
}

.game-index {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  min-width: 2rem;
}

.game-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.game-meta {
  font-size: 0.85rem;
  color: var(--cream-dim);
}

.about {
  background: linear-gradient(180deg, var(--felt-deep), #07140f);
}

.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 800px) {
  .about-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }
}

.stat-stack {
  display: grid;
  gap: 1rem;
}

.stat {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat span {
  color: var(--cream-dim);
  font-size: 0.95rem;
}

.contact {
  border-top: 1px solid var(--line);
  background: #050e0b;
}

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  color: var(--cream-dim);
  font-size: 0.85rem;
  background: #040b09;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

.page {
  padding-top: 5.5rem;
  min-height: 100vh;
}

.page-inner {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 4rem;
}

.page-inner h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.page-inner h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.65rem;
}

.page-inner p,
.page-inner li {
  color: var(--cream-dim);
}

.page-inner ul {
  padding-left: 1.15rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-plane {
  from {
    transform: rotate(-8deg) translateY(0);
  }
  to {
    transform: rotate(-5deg) translateY(-14px);
  }
}

@keyframes tumble-a {
  from {
    transform: rotate(-12deg) translate(0, 0);
  }
  to {
    transform: rotate(8deg) translate(8px, -10px);
  }
}

@keyframes tumble-b {
  from {
    transform: rotate(16deg) translate(0, 0);
  }
  to {
    transform: rotate(-6deg) translate(-10px, 8px);
  }
}

@keyframes pulse-glow {
  from {
    opacity: 0.55;
    transform: scale(0.96);
  }
  to {
    opacity: 0.95;
    transform: scale(1.05);
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .dice-plane {
    width: min(78vw, 360px);
    top: 8%;
    right: -12%;
    opacity: 0.55;
  }

  .hero {
    align-items: end;
  }

  .game-list a {
    grid-template-columns: auto 1fr;
  }

  .game-meta {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
