:root {
  --bg: #120101;
  --ink: #fff4dc;
  --muted: #e1c39b;
  --soft: #a17654;
  --red: #a50b0d;
  --red-2: #4e0506;
  --lacquer: #210303;
  --gold: #f5c15b;
  --gold-2: #a7651b;
  --cream: #ffe8bb;
  --green: #55c992;
  --line: rgba(245, 193, 91, .26);
  --shadow: rgba(0, 0, 0, .42);
  --max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, rgba(245, 193, 91, .2), transparent 26rem),
    radial-gradient(circle at 12% 10%, rgba(205, 39, 24, .34), transparent 22rem),
    linear-gradient(180deg, #1b0203 0%, var(--bg) 42%, #070000 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(135deg, rgba(245, 193, 91, .035) 0 1px, transparent 1px 18px),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, .05), transparent 20rem);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.8), transparent 78%);
  z-index: -1;
}

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

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

p {
  margin: 0 0 1rem;
}

.shell {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(245, 193, 91, .2);
  background: rgba(13, 1, 1, .86);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 0 1px var(--line), 0 0 24px rgba(245, 193, 91, .2);
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand span span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
}

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

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: .92rem;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: rgba(245, 193, 91, .1);
  box-shadow: inset 0 0 0 1px rgba(245, 193, 91, .22);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--gold);
  cursor: pointer;
}

.menu-button span,
.menu-button span::before,
.menu-button span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.menu-button span::before,
.menu-button span::after {
  content: "";
  position: relative;
}

.menu-button span::before {
  top: -7px;
}

.menu-button span::after {
  top: 5px;
}

.menu-button.is-open span {
  transform: rotate(45deg);
}

.menu-button.is-open span::before {
  transform: translateY(7px) rotate(90deg);
}

.menu-button.is-open span::after {
  opacity: 0;
}

.hero {
  padding: 30px 0 0;
}

.hero-board {
  position: relative;
  min-height: 690px;
  display: grid;
  grid: auto / minmax(0, .68fr) minmax(340px, .32fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(245, 193, 91, .28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(18, 1, 1, .95) 0%, rgba(33, 3, 3, .9) 42%, rgba(33, 3, 3, .48) 100%),
    url("../images/hero-dice-city.png") right center / cover no-repeat;
  box-shadow: 0 28px 70px var(--shadow), inset 0 0 0 1px rgba(255,255,255,.04);
}

.hero-copy {
  min-width: 0;
  padding: clamp(28px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--gold);
  font-weight: 900;
  font-size: .82rem;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
  line-height: .96;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h1 span,
h2 span {
  color: var(--gold);
}

.lead {
  max-width: 700px;
  margin: 24px 0 0;
  color: #f0d8b5;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(245, 193, 91, .35);
  border-radius: 8px;
  font-weight: 900;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 193, 91, .75);
}

.btn.primary {
  color: #2a0602;
  background: linear-gradient(180deg, #ffe5a3, #f4b43b);
  box-shadow: 0 14px 34px rgba(244, 180, 59, .18);
}

.btn.ghost {
  color: var(--ink);
  background: rgba(255,255,255,.04);
}

.side-rail {
  padding: 18px;
  display: grid;
  align-content: center;
  gap: 14px;
  border-left: 1px solid rgba(245, 193, 91, .18);
  background: rgba(12, 0, 0, .42);
}

.rail-card {
  padding: 18px;
  border: 1px solid rgba(245, 193, 91, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.rail-card:hover {
  transform: translateX(-3px);
  border-color: rgba(245, 193, 91, .5);
  background: rgba(245, 193, 91, .075);
}

.rail-card b {
  display: block;
  color: var(--gold);
  margin-bottom: 5px;
}

.rail-card small {
  color: var(--muted);
}

.brand-strip {
  margin-top: 16px;
  border: 1px solid rgba(245, 193, 91, .2);
  border-radius: 8px;
  overflow: hidden;
  background: #210303;
}

.brand-strip img {
  width: 100%;
  aspect-ratio: 1916 / 821;
  object-fit: cover;
}

.section {
  padding: clamp(58px, 8vw, 98px) 0 0;
}

.section-head {
  display: grid;
  grid: auto / minmax(0, .72fr) minmax(260px, .28fr);
  gap: 26px;
  align-items: end;
  margin-bottom: 28px;
}

h2 {
  margin: 7px 0 0;
  font-size: clamp(1.7rem, 3.4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.section-head p,
.muted {
  color: var(--muted);
}

.rule-lane {
  display: grid;
  grid: auto / minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: stretch;
}

.panel {
  border: 1px solid rgba(245, 193, 91, .22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.025));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}

.text-panel {
  padding: clamp(22px, 4vw, 38px);
}

.rule-tabs {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.rule-tab {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(245, 193, 91, .22);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,.035);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.rule-tab:hover,
.rule-tab.is-active {
  color: var(--ink);
  border-color: rgba(245, 193, 91, .55);
  background: rgba(245, 193, 91, .09);
}

.rule-detail {
  min-height: 244px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rule-detail strong {
  color: var(--gold);
}

.image-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1a0303;
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.image-panel.tall img {
  min-height: 560px;
}

.caption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 193, 91, .24);
  border-radius: 8px;
  background: rgba(12, 0, 0, .78);
  color: var(--muted);
  font-size: .88rem;
}

.tiles {
  display: grid;
  grid: auto / repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  padding: 22px;
  min-height: 188px;
  border: 1px solid rgba(245, 193, 91, .22);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.022));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  overflow-wrap: anywhere;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 193, 91, .5);
  background: rgba(245, 193, 91, .075);
}

.tile .mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #2b0702;
  background: var(--gold);
  font-weight: 900;
}

.tile p {
  color: var(--muted);
}

.wide-image {
  margin-top: 18px;
}

.wide-image img {
  aspect-ratio: 2172 / 724;
  min-height: 260px;
}

.screen-row {
  display: grid;
  grid: auto / minmax(300px, .42fr) minmax(0, .58fr);
  gap: 18px;
  align-items: stretch;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.check {
  padding: 16px;
  display: grid;
  grid: auto / 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(245, 193, 91, .2);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.check span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(85, 201, 146, .14);
  color: var(--green);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid rgba(245, 193, 91, .22);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.faq-question::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gold);
  color: #2a0602;
  flex: 0 0 auto;
}

.faq-item.is-open .faq-question::after {
  content: "-";
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.page-hero {
  margin-top: 30px;
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid rgba(245, 193, 91, .25);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(20,1,1,.92), rgba(70,7,8,.78)),
    radial-gradient(circle at 85% 20%, rgba(245, 193, 91, .18), transparent 26rem);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.5rem);
}

.page-layout {
  padding: clamp(46px, 7vw, 78px) 0;
  display: grid;
  grid: auto / minmax(0, .72fr) minmax(280px, .28fr);
  gap: 20px;
  align-items: start;
}

.article {
  padding: clamp(22px, 4vw, 38px);
}

.article h2 {
  margin-top: 34px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.article h2:first-child {
  margin-top: 0;
}

.article ul {
  margin: 12px 0 24px;
  padding-left: 20px;
  color: var(--muted);
}

.article li {
  margin: 8px 0;
}

.side {
  position: sticky;
  top: 96px;
  padding: 16px;
}

.side img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 16px;
}

.side a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid rgba(245, 193, 91, .13);
  color: var(--muted);
}

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

.contact-grid {
  padding: clamp(46px, 7vw, 78px) 0;
  display: grid;
  grid: auto / .9fr 1.1fr;
  gap: 18px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(245, 193, 91, .25);
  border-radius: 8px;
  background: rgba(0,0,0,.24);
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(245, 193, 91, .35);
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid rgba(245, 193, 91, .16);
  background: #080000;
}

.footer-inner {
  padding: 32px 0;
  display: grid;
  grid: auto / 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.footer-links a {
  color: var(--muted);
  font-size: .92rem;
}

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

.small-note {
  color: var(--soft);
  font-size: .9rem;
}

@media (max-width: 980px) {
  .menu-button {
    display: inline-flex;
    align-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(245, 193, 91, .22);
    border-radius: 8px;
    background: rgba(13, 1, 1, .97);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-board,
  .rule-lane,
  .screen-row,
  .page-layout,
  .contact-grid,
  .section-head,
  .footer-inner {
    grid: auto / 1fr;
  }

  .side-rail {
    border-left: 0;
    border-top: 1px solid rgba(245, 193, 91, .18);
    grid: auto / repeat(3, minmax(0, 1fr));
  }

  .tiles {
    grid: auto / repeat(2, minmax(0, 1fr));
  }

  .side {
    position: static;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, var(--max));
  }

  .brand span span {
    display: none;
  }

  .hero-board {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(18, 1, 1, .97), rgba(45, 5, 5, .9)),
      url("../images/hero-dice-city.png") center / cover no-repeat;
  }

  .hero-copy {
    padding: 26px 24px;
  }

  h1,
  .page-hero h1 {
    font-size: 2.05rem;
    line-height: 1.06;
  }

  .lead {
    font-size: .98rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .side-rail,
  .tiles {
    grid: auto / 1fr;
  }

  .image-panel.tall img {
    min-height: 420px;
  }

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