:root {
  --bg-deep: #070f17;
  --bg: #0b1620;
  --felt: #15303d;
  --felt-2: #1b3d4d;
  --line: rgba(243, 231, 206, 0.14);
  --ivory: #f3e7ce;
  --ivory-dim: #e4d6b8;
  --gold: #e5b45c;
  --gold-deep: #b98438;
  --crimson: #c24a4a;
  --teal: #4fd1c5;
  --violet: #9b7bff;
  --lime: #c4e04b;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ivory);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 15, 23, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-links a {
  color: var(--ivory-dim);
  font-size: 14px;
  font-weight: 800;
  padding: 9px 11px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--bg-deep);
  background: var(--gold);
}

.hero {
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(7, 15, 23, 0.98), rgba(11, 22, 32, 0.88), rgba(21, 48, 61, 0.52)),
    url("assets/images/logo.png") center right 6vw / min(58vw, 680px) no-repeat,
    var(--bg-deep);
}

.hero-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 42px;
  padding: 58px 0 72px;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.06;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  margin-top: 12px;
  font-size: clamp(48px, 8vw, 102px);
}

.hero-copy {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--ivory-dim);
  font-size: clamp(18px, 2.2vw, 23px);
}

.hero-actions,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
}

.button.primary {
  color: var(--bg-deep);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 12px 30px rgba(229, 180, 92, 0.22);
}

.button.secondary {
  color: var(--ivory);
  border-color: var(--line);
  background: rgba(243, 231, 206, 0.08);
}

.game-preview {
  min-height: 540px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 28px;
  background: rgba(7, 15, 23, 0.6);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px var(--shadow);
}

.preview-logo {
  width: min(92%, 360px);
  filter: drop-shadow(0 20px 38px rgba(0, 0, 0, 0.38));
}

.dice-row {
  display: grid;
  grid-template-columns: repeat(5, 52px);
  gap: 10px;
}

.die {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--ivory);
  border: 2px solid #d3b986;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.12), 0 12px 20px rgba(0, 0, 0, 0.25);
}

.die::before {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a1410;
}

.die.one::before {
  left: 20px;
  top: 20px;
}

.die.three::before {
  left: 9px;
  top: 9px;
  box-shadow: 11px 11px 0 #1a1410, 22px 22px 0 #1a1410;
}

.die.five::before {
  left: 9px;
  top: 9px;
  box-shadow: 22px 0 0 #1a1410, 11px 11px 0 #1a1410, 0 22px 0 #1a1410, 22px 22px 0 #1a1410;
}

.die.six::before {
  left: 10px;
  top: 8px;
  box-shadow: 22px 0 0 #1a1410, 0 12px 0 #1a1410, 22px 12px 0 #1a1410, 0 24px 0 #1a1410, 22px 24px 0 #1a1410;
}

.scorecard {
  width: min(100%, 360px);
  display: grid;
  gap: 8px;
}

.scorecard div,
.score-rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(243, 231, 206, 0.08);
  border: 1px solid var(--line);
}

.scorecard span,
.score-rule span {
  color: var(--ivory-dim);
  font-weight: 800;
}

.scorecard strong,
.score-rule strong {
  color: var(--gold);
  white-space: nowrap;
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(7, 15, 23, 0.96), rgba(21, 48, 61, 0.74)),
    url("assets/images/logo.png") center right 8vw / min(48vw, 460px) no-repeat;
  border-bottom: 1px solid var(--line);
}

.page-hero .wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 58px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(40px, 6vw, 76px);
}

.page-hero p {
  max-width: 720px;
  color: var(--ivory-dim);
  font-size: 19px;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 68px 0;
}

.section.tight {
  padding-top: 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.section-head p,
.lede {
  max-width: 700px;
  color: var(--ivory-dim);
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.feature,
.faq-item,
.policy-block {
  background: rgba(27, 61, 77, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
}

.feature strong,
.card strong {
  color: var(--gold);
  display: block;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card h3,
.feature h3,
.faq-item h3,
.policy-block h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.card p,
.feature p,
.faq-item p,
.policy-block p,
.policy-block li {
  color: var(--ivory-dim);
}

.card a,
.policy-block a {
  color: var(--gold);
  font-weight: 800;
}

.steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: rgba(243, 231, 206, 0.06);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.step::before {
  content: counter(step);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--bg-deep);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 900;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.step p {
  margin: 0;
  color: var(--ivory-dim);
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.score-rule {
  background: rgba(27, 61, 77, 0.72);
}

.accent-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 8px;
}

.accent-strip span:nth-child(1) { background: var(--gold); }
.accent-strip span:nth-child(2) { background: var(--crimson); }
.accent-strip span:nth-child(3) { background: var(--teal); }
.accent-strip span:nth-child(4) { background: var(--violet); }

.callout {
  background:
    linear-gradient(135deg, rgba(229, 180, 92, 0.18), rgba(79, 209, 197, 0.12)),
    var(--felt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.callout .section {
  padding: 46px 0;
}

.callout-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.support-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.support-list li {
  padding: 14px 16px;
  border-left: 4px solid var(--gold);
  background: rgba(243, 231, 206, 0.06);
  border-radius: 0 8px 8px 0;
  color: var(--ivory-dim);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ivory-dim);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--ivory);
}

@media (max-width: 900px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(7, 15, 23, 0.94), rgba(11, 22, 32, 0.9)),
      url("assets/images/logo.png") top 18px right -96px / 340px no-repeat,
      var(--bg-deep);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 116px;
  }

  .game-preview {
    min-height: auto;
  }

  .section-head,
  .callout-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid,
  .grid.two,
  .score-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-links a {
    font-size: 13px;
    padding: 8px 9px;
  }

  .hero-actions,
  .actions,
  .button {
    width: 100%;
  }

  .dice-row {
    grid-template-columns: repeat(5, 42px);
    gap: 8px;
  }

  .die {
    width: 42px;
    height: 42px;
  }

  .die.one::before {
    left: 15px;
    top: 15px;
  }

  .die.three::before,
  .die.five::before {
    left: 6px;
    top: 6px;
  }

  .die.three::before {
    box-shadow: 10px 10px 0 #1a1410, 20px 20px 0 #1a1410;
  }

  .die.five::before {
    box-shadow: 20px 0 0 #1a1410, 10px 10px 0 #1a1410, 0 20px 0 #1a1410, 20px 20px 0 #1a1410;
  }

  .die.six::before {
    left: 7px;
    top: 5px;
    box-shadow: 20px 0 0 #1a1410, 0 10px 0 #1a1410, 20px 10px 0 #1a1410, 0 20px 0 #1a1410, 20px 20px 0 #1a1410;
  }

  .scorecard div,
  .score-rule {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}
