:root {
  --ivory: #fff9e8;
  --paper: #fffdf6;
  --purple: #35135f;
  --purple-2: #57228b;
  --purple-soft: #eee3f6;
  --gold: #ffc400;
  --gold-dark: #7b5900;
  --ink: #21152d;
  --muted: #675c6d;
  --ice: #dff4ff;
  --line: rgba(53, 19, 95, 0.24);
  --danger: #a12a4b;
  --success: #176a4d;
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --container: 74rem;
  --reading: 70ch;
  --notch: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--ivory);
  background-image: repeating-linear-gradient(132deg, transparent 0 23px, rgba(53, 19, 95, 0.025) 23px 24px);
  font: 400 1rem/1.65 Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--purple-2);
  text-decoration: underline;
  text-decoration-color: var(--gold-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0 0 var(--s-4);
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.5rem, 11vw, 8.6rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p,
ul,
ol,
dl {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--s-2);
  left: var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  min-height: 5rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 249, 232, 0.95);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 3vw, 1.35rem);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 2.75rem;
  height: 2.75rem;
}

.coin-chip {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-2);
  padding: 0.55rem 0.9rem;
  clip-path: var(--notch);
  background: var(--purple);
  color: white;
  font: 700 0.78rem/1.2 "Courier New", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.coin-chip output {
  color: var(--gold);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.hero {
  padding: clamp(3rem, 8vw, 7rem) 0 var(--s-8);
}

.hero__grid {
  display: grid;
  gap: var(--s-6);
  align-items: end;
}

.hero__kicker,
.section-kicker,
.badge {
  display: inline-block;
  margin: 0 0 var(--s-3);
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 62ch;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin: var(--s-5) 0 0;
}

.hero__fact {
  min-width: 8rem;
  padding: var(--s-4);
  clip-path: var(--notch);
  background: var(--gold);
  color: var(--purple);
  font-weight: 800;
}

.hero__fact strong {
  display: block;
  font: 700 clamp(1.8rem, 5vw, 3rem)/1 Georgia, serif;
}

.hero__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  clip-path: var(--notch);
  border: 1px solid var(--line);
}

.free-band {
  padding: var(--s-5) 0;
  background: var(--purple);
  color: white;
}

.free-band__inner {
  display: grid;
  gap: var(--s-3);
}

.free-band strong {
  color: var(--gold);
  font-size: clamp(1.25rem, 3vw, 2rem);
}

.free-band p {
  margin: 0;
  max-width: 76ch;
}

.games-showcase,
.content-section,
.faq,
.editorial,
.game-layout {
  padding: var(--s-8) 0;
}

.games-showcase__header,
.section-header {
  max-width: var(--reading);
  margin-bottom: var(--s-6);
}

.game-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82%, 1fr);
  gap: var(--s-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: var(--s-2) var(--s-2) var(--s-5);
  margin-inline: calc(var(--s-2) * -1);
}

.game-card {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  min-height: 100%;
  clip-path: var(--notch);
  background: var(--paper);
  border: 1px solid var(--line);
}

.game-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.game-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--s-5);
}

.game-card__body p {
  flex: 1;
}

.game-card__setting {
  color: var(--purple-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border: 1px solid var(--purple);
  border-radius: 999px;
  background: var(--gold);
  color: var(--purple);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
}

.btn:hover {
  background: #ffd84d;
  text-decoration: none;
}

.btn--secondary {
  background: transparent;
  color: var(--purple);
}

.btn--danger {
  border-color: var(--danger);
  background: transparent;
  color: var(--danger);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.overview-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.overview-card {
  padding: var(--s-5);
  background: var(--paper);
}

.overview-card strong {
  color: var(--purple);
}

.overview-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-2) var(--s-4);
  margin: var(--s-4) 0 0;
}

.overview-card dt {
  font-weight: 700;
}

.overview-card dd {
  margin: 0;
}

.faq__list {
  max-width: 58rem;
}

.faq__item {
  padding: var(--s-5) 0;
  border-top: 1px solid var(--line);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq__item p {
  max-width: var(--reading);
  margin-bottom: 0;
}

.editorial__grid {
  display: grid;
  gap: var(--s-7);
}

.editorial__body {
  max-width: var(--reading);
}

.editorial__body h2 {
  margin-top: var(--s-7);
}

.editorial__body h3 {
  margin-top: var(--s-6);
}

.editorial__body li + li {
  margin-top: var(--s-2);
}

.editorial__media {
  display: grid;
  align-content: start;
  gap: var(--s-4);
}

.editorial__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  clip-path: var(--notch);
  border: 1px solid var(--line);
}

.callout {
  margin: var(--s-6) 0;
  padding: var(--s-5);
  clip-path: var(--notch);
  background: var(--gold);
  color: var(--purple);
}

.callout p:last-child {
  margin-bottom: 0;
}

.plain-table-wrap {
  overflow-x: auto;
}

.plain-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}

.plain-table th,
.plain-table td {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.plain-table th {
  background: var(--purple-soft);
  color: var(--purple);
}

.game-layout__grid {
  display: grid;
  gap: var(--s-4);
}

.game-panel {
  padding: var(--s-5);
  background: var(--paper);
  border: 1px solid var(--line);
}

.game-panel--stage {
  min-width: 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--purple);
  color: white;
}

.game-panel--stage h2,
.game-panel--stage h3 {
  color: white;
}

.game-panel__title {
  font-size: 1.45rem;
}

.game-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}

.field {
  display: grid;
  gap: var(--s-1);
}

.field label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field select,
.field input {
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: white;
  color: var(--ink);
}

.game-status {
  min-height: 3.5rem;
  margin: var(--s-4) 0;
  padding: var(--s-3) var(--s-4);
  border: 1px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.1);
  font-weight: 700;
}

.game-balance {
  font-variant-numeric: tabular-nums;
}

.game-art {
  width: 100%;
  margin-bottom: var(--s-4);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  clip-path: var(--notch);
}

.wheel-wrap {
  display: grid;
  place-items: center;
  min-height: 22rem;
  overflow: hidden;
}

.wheel-pointer {
  z-index: 2;
  width: 0;
  height: 0;
  margin-bottom: -0.4rem;
  border-right: 1.1rem solid transparent;
  border-left: 1.1rem solid transparent;
  border-top: 2rem solid var(--gold);
  filter: drop-shadow(0 2px 0 var(--ink));
}

.prize-wheel {
  display: grid;
  width: min(19rem, 78vw);
  aspect-ratio: 1;
  place-items: center;
  border: 8px solid var(--gold);
  border-radius: 50%;
  background: conic-gradient(
    #fff9e8 0 30deg, #57228b 30deg 60deg,
    #ffc400 60deg 90deg, #7345a0 90deg 120deg,
    #fff9e8 120deg 150deg, #57228b 150deg 180deg,
    #ffc400 180deg 210deg, #7345a0 210deg 240deg,
    #fff9e8 240deg 270deg, #57228b 270deg 300deg,
    #ffc400 300deg 330deg, #7345a0 330deg 360deg
  );
  box-shadow: inset 0 0 0 4px var(--purple);
  color: var(--purple);
  transition: transform 3.6s cubic-bezier(.12,.72,.08,1);
}

.prize-wheel::after {
  content: "★";
  display: grid;
  width: 5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 3px solid var(--purple);
  border-radius: 50%;
  background: var(--gold);
  font-size: 2.2rem;
}

.wheel-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-4);
}

.wheel-labels span {
  padding: var(--s-2);
  background: rgba(255,255,255,.1);
  text-align: center;
  font: 700 0.78rem/1.2 "Courier New", monospace;
}

.roulette-wheel-wrap {
  display: grid;
  place-items: center;
  min-height: 19rem;
}

.roulette-wheel {
  display: grid;
  width: min(17rem, 74vw);
  aspect-ratio: 1;
  place-items: center;
  border: 10px double var(--gold);
  border-radius: 50%;
  background: repeating-conic-gradient(#b62345 0 9.72deg, #21152d 9.72deg 19.44deg);
  transition: transform 3.2s cubic-bezier(.1,.72,.12,1);
}

.roulette-wheel::after {
  content: "0";
  display: grid;
  width: 42%;
  aspect-ratio: 1;
  place-items: center;
  border: 5px solid var(--gold);
  border-radius: 50%;
  background: #176a4d;
  color: white;
  font: 700 2rem/1 Georgia, serif;
}

.roulette-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(3rem, 1fr));
  gap: 2px;
  margin-top: var(--s-5);
}

.roulette-number,
.roulette-bet {
  min-height: 2.75rem;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 0;
  color: white;
  font-weight: 800;
}

.roulette-number {
  background: #21152d;
}

.roulette-number.red {
  background: #a92846;
}

.roulette-number.zero {
  grid-column: 1 / -1;
  background: #176a4d;
}

.roulette-number[aria-pressed="true"],
.roulette-bet[aria-pressed="true"] {
  outline: 4px solid var(--gold);
  outline-offset: -4px;
}

.roulette-outsides {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
  margin-top: var(--s-2);
}

.roulette-bet {
  background: var(--purple-2);
}

.mines-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-2);
  max-width: 30rem;
  margin-inline: auto;
}

.mine-tile {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #7ec8e9;
  border-radius: 0;
  background: linear-gradient(145deg, #f9feff, #b9e8ff);
  color: var(--purple);
  font-size: clamp(1.1rem, 4vw, 1.8rem);
  font-weight: 900;
}

.mine-tile:hover:not(:disabled) {
  background: var(--gold);
}

.mine-tile.safe {
  background: #d7fff1;
  color: var(--success);
}

.mine-tile.mine {
  background: #ffd4df;
  color: var(--danger);
}

.compact-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.no-js {
  padding: var(--s-4);
  background: var(--gold);
  color: var(--purple);
  font-weight: 700;
}

.age-notice {
  padding: var(--s-3) 0;
  background: var(--gold);
  color: var(--purple);
  font-size: 0.85rem;
  font-weight: 700;
}

.age-notice p {
  margin: 0;
}

.site-footer {
  padding: var(--s-7) 0 var(--s-8);
  background: var(--purple);
  color: white;
}

.site-footer__grid {
  display: grid;
  gap: var(--s-6);
}

.site-footer h2,
.site-footer h3 {
  color: var(--gold);
}

.site-footer h2 {
  font-size: 1.6rem;
}

.site-footer h3 {
  font: 800 0.75rem/1.2 Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer a {
  color: white;
  text-decoration-color: var(--gold);
}

.footer-links {
  display: grid;
  gap: var(--s-2);
  padding: 0;
  list-style: none;
}

.footer-disclaimer {
  max-width: 80ch;
  color: #e9dff0;
  font-size: 0.84rem;
}

.cookie-banner {
  position: fixed;
  z-index: 900;
  right: var(--s-4);
  bottom: var(--s-4);
  left: var(--s-4);
  display: none;
  max-width: 46rem;
  margin-inline: auto;
  padding: var(--s-5);
  clip-path: var(--notch);
  background: var(--paper);
  border: 1px solid var(--purple);
  box-shadow: 8px 8px 0 rgba(53,19,95,.22);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner p {
  margin-bottom: var(--s-3);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

@media (min-width: 42rem) {
  .hero__grid {
    grid-template-columns: 1.25fr 0.75fr;
  }

  .free-band__inner {
    grid-template-columns: 0.45fr 1fr;
    align-items: center;
  }

  .game-row {
    grid-auto-columns: minmax(21rem, 31%);
  }

  .overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }

  .roulette-board {
    grid-template-columns: repeat(6, 1fr);
  }

  .roulette-outsides {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 58rem) {
  .editorial__grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(17rem, .65fr);
  }

  .game-layout__grid {
    grid-template-columns: minmax(14rem, .55fr) minmax(0, 1.5fr) minmax(14rem, .55fr);
  }
}

@media (max-width: 30rem) {
  .brand span {
    display: none;
  }

  .coin-chip {
    font-size: 0.68rem;
  }

  .game-controls > * {
    flex: 1 1 8rem;
  }
}

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

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