:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: rgba(28, 30, 39, 0.78);
  --panel-strong: #171923;
  --text: #f7f8fb;
  --muted: #a8adbb;
  --blue: #22a7e8;
  --blue-light: #89d3ff;
  --red: #e83345;
  --yellow: #ffe24a;
  --green: #24bd6b;
  --pink: #ea3d9f;
  --border: rgba(255, 255, 255, 0.11);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 159, 227, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 18%, rgba(230, 0, 126, 0.1), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, sans-serif;
  line-height: 1.65;
  margin: 0;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
  pointer-events: none;
  position: fixed;
  z-index: -1;
}

a {
  color: var(--blue-light);
}

a:hover {
  color: #fff;
}

a:focus-visible,
summary:focus-visible {
  border-radius: 5px;
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.skip-link {
  background: #fff;
  color: #000;
  font-weight: 700;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -60px;
  transition: top 0.18s ease;
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(8, 9, 13, 0.82);
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  min-height: 70px;
  padding: 10px max(20px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand,
.footer-brand {
  color: #fff;
  font-family: "Fredericka the Great", serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-decoration: none;
  text-shadow: 0 0 30px rgba(77, 166, 255, 0.32);
}

.site-header nav {
  display: flex;
  gap: 22px;
  justify-content: center;
}

.site-header nav a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover {
  color: #fff;
}

.button {
  align-items: center;
  background: linear-gradient(135deg, #009fe3, #1672dc);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 13px;
  box-shadow: 0 10px 30px rgba(0, 126, 220, 0.25);
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 13px 22px;
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.button:hover {
  box-shadow: 0 14px 36px rgba(0, 126, 220, 0.38);
  color: #fff;
  transform: translateY(-2px);
}

.button-small {
  border-radius: 10px;
  font-size: 0.82rem;
  padding: 9px 15px;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

main {
  overflow: hidden;
}

.hero {
  align-items: center;
  display: flex;
  min-height: min(760px, calc(100vh - 70px));
  padding: 90px 24px 80px;
  position: relative;
}

.hero::before {
  background: radial-gradient(circle, rgba(44, 123, 255, 0.17), transparent 65%);
  content: "";
  height: 680px;
  left: 50%;
  position: absolute;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 900px;
}

.hero-content {
  margin: 0 auto;
  max-width: 900px;
  position: relative;
  text-align: center;
  z-index: 2;
}

.breadcrumbs {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.76rem;
  margin: 0 0 38px;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
}

.breadcrumbs span {
  margin: 0 10px;
}

.eyebrow {
  color: var(--blue-light);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 2.4px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  font-family: "Fredericka the Great", serif;
  font-size: clamp(3rem, 8vw, 6.5rem);
  letter-spacing: 3px;
  line-height: 0.98;
  margin: 0 auto 24px;
  max-width: 900px;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.75);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 8px;
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin: 0 auto;
  max-width: 740px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.hero-facts {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 48px auto 0;
  max-width: 650px;
  padding: 0;
}

.hero-facts li {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.hero-facts li:first-child {
  border-radius: 14px 0 0 14px;
}

.hero-facts li:last-child {
  border-radius: 0 14px 14px 0;
}

.hero-facts strong {
  font-size: 1.1rem;
}

.hero-facts span {
  color: var(--muted);
  font-size: 0.7rem;
}

.hero-card {
  filter: drop-shadow(0 26px 25px rgba(0, 0, 0, 0.55));
  max-width: 150px;
  opacity: 0.68;
  position: absolute;
  width: 11vw;
  z-index: 1;
}

.hero-card-left {
  left: 3vw;
  top: 27%;
  transform: rotate(-17deg);
}

.hero-card-right {
  bottom: 12%;
  right: 4vw;
  transform: rotate(15deg);
}

.content-section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 84px 24px;
}

.section-heading {
  margin-bottom: 34px;
  max-width: 760px;
}

.prose p,
.rule-card p,
.special-card p,
.steps p,
.faq-list p,
.final-cta p {
  color: var(--muted);
}

.two-column-copy {
  columns: 2;
  column-gap: 54px;
}

.two-column-copy p {
  break-inside: avoid;
  margin: 0;
}

.steps {
  counter-reset: steps;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: flex;
  gap: 16px;
  padding: 22px;
}

.steps p {
  font-size: 0.88rem;
  margin: 0;
}

.step-number {
  align-items: center;
  background: rgba(0, 159, 227, 0.16);
  border: 1px solid rgba(77, 184, 255, 0.36);
  border-radius: 50%;
  color: var(--blue-light);
  display: flex;
  flex: 0 0 auto;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

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

.rule-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--border);
  border-radius: 20px;
  min-height: 260px;
  padding: 24px;
}

.rule-card:nth-child(1) { border-top-color: rgba(232, 51, 69, 0.75); }
.rule-card:nth-child(2) { border-top-color: rgba(255, 226, 74, 0.75); }
.rule-card:nth-child(3) { border-top-color: rgba(36, 189, 107, 0.75); }
.rule-card:nth-child(4) { border-top-color: rgba(34, 167, 232, 0.75); }

.rule-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 28px;
}

.rule-card p {
  font-size: 0.85rem;
  margin: 0;
}

.dice-section {
  max-width: 1050px;
}

.dice-layout {
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 159, 227, 0.12), rgba(230, 0, 126, 0.07));
  border: 1px solid rgba(111, 191, 255, 0.2);
  border-radius: 28px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(180px, 0.7fr) 1.5fr;
  overflow: hidden;
  padding: 42px;
}

.dice-visual {
  color: #fff;
  filter: drop-shadow(0 0 30px rgba(106, 192, 255, 0.45));
  font-size: clamp(8rem, 20vw, 14rem);
  line-height: 0.8;
  text-align: center;
}

.dice-layout .prose > p {
  margin: 0 0 24px;
}

.dice-results {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dice-results > div {
  align-items: center;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: grid;
  gap: 14px;
  grid-template-columns: 58px 1fr;
  padding: 11px 14px;
}

.dice-results strong {
  color: var(--blue-light);
  font-size: 1.05rem;
}

.dice-results .dice-one { color: #ff6b74; }
.dice-results .dice-six { color: var(--yellow); }
.dice-results span { color: var(--muted); font-size: 0.85rem; }

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

.special-card {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  display: grid;
  gap: 18px;
  grid-template-columns: 72px 1fr;
  padding: 18px;
}

.special-card-wide {
  grid-column: 1 / -1;
}

.special-card img {
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.42));
  width: 72px;
}

.special-card p {
  font-size: 0.78rem;
  margin: 0;
}

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

.settings-grid > div {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.settings-grid span {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

.comparison-section {
  max-width: 1050px;
}

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

.comparison-grid article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
}

.comparison-grid article:last-child {
  border-color: rgba(34, 167, 232, 0.28);
}

.comparison-grid ul {
  color: var(--muted);
  margin: 18px 0 0;
  padding-left: 20px;
}

.comparison-grid li {
  margin: 9px 0;
}

.trademark-note {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.74rem;
  margin: 18px 0 0;
}

.faq-list {
  border-top: 1px solid var(--border);
}

.faq-list details {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
  padding: 22px 48px 22px 0;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  color: var(--blue-light);
  content: "+";
  font-size: 1.5rem;
  position: absolute;
  right: 8px;
  top: 14px;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list p {
  margin: -6px 0 22px;
  max-width: 880px;
}

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

.more-games-grid > a {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  color: #fff;
  display: grid;
  gap: 15px;
  grid-template-columns: auto 1fr auto;
  padding: 20px;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.more-games-grid > a:first-child {
  background: linear-gradient(135deg, rgba(91, 51, 24, 0.8), rgba(26, 18, 14, 0.82));
}

.more-games-grid > a:last-child {
  background: linear-gradient(135deg, rgba(39, 55, 96, 0.82), rgba(18, 20, 34, 0.88));
}

.more-games-grid > a:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.more-games-grid strong,
.more-games-grid small {
  display: block;
}

.more-games-grid small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.76rem;
  margin-top: 4px;
}

.more-game-icon {
  font-size: 1.8rem;
}

.final-cta {
  background:
    linear-gradient(135deg, rgba(0, 159, 227, 0.14), rgba(230, 0, 126, 0.09)),
    var(--panel-strong);
  border: 1px solid rgba(109, 191, 255, 0.2);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin: 60px auto 110px;
  max-width: 1080px;
  padding: 64px 24px;
  text-align: center;
}

.final-cta p:not(.eyebrow) {
  margin: 12px auto 28px;
}

footer {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 34px 24px 48px;
}

footer p,
footer > a:last-child {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.75rem;
  margin: 0;
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

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

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

  .special-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 72px;
  }

  .site-header {
    min-height: 62px;
    padding: 9px 16px;
  }

  .brand {
    font-size: 1.05rem;
    letter-spacing: 1px;
  }

  .button-small {
    font-size: 0.72rem;
    padding: 8px 11px;
  }

  .hero {
    min-height: auto;
    padding: 64px 18px 54px;
  }

  .breadcrumbs {
    margin-bottom: 28px;
  }

  h1 {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
    letter-spacing: 1px;
  }

  .hero-card {
    display: none;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 34px;
  }

  .hero-facts li,
  .hero-facts li:first-child,
  .hero-facts li:last-child {
    border-radius: 11px;
  }

  .content-section {
    padding: 60px 18px;
  }

  .two-column-copy {
    columns: 1;
  }

  .two-column-copy p + p {
    margin-top: 16px;
  }

  .steps,
  .rule-grid,
  .special-grid,
  .settings-grid,
  .comparison-grid,
  .more-games-grid {
    grid-template-columns: 1fr;
  }

  .rule-card {
    min-height: auto;
  }

  .dice-layout {
    gap: 22px;
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .dice-visual {
    font-size: 8rem;
  }

  .special-card-wide {
    grid-column: auto;
  }

  .final-cta {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin: 40px 0 70px;
    padding: 52px 18px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 30px 18px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
