:root {
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  --bg: #180811;
  --gold: #dfb76c;
  --gold-light: #f2d9aa;
  --text: #f8fafc;
  --soft: #cfa8c0;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(32px, 7vw, 84px) clamp(20px, 6vw, 72px) 32px;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(224, 104, 155, .17), transparent 27rem),
    radial-gradient(circle at 12% 60%, rgba(223, 183, 108, .08), transparent 31rem),
    linear-gradient(150deg, #240c1a 0, #180811 48%, #0e0409 100%);
}

.site-header, .games, footer {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.site-header { margin-bottom: clamp(34px, 6vw, 68px); }

.eyebrow, .game-type {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 7rem);
  line-height: .9;
  letter-spacing: -.055em;
  text-shadow: 0 0 28px rgba(223, 183, 108, .14);
}

.intro {
  max-width: 640px;
  margin: 24px 0 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.65;
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 24px;
}

.game-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  border: 1px solid rgba(223, 183, 108, .29);
  border-radius: 22px;
  color: inherit;
  background: linear-gradient(145deg, rgba(47, 15, 34, .97), rgba(21, 7, 15, .98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .38);
  text-decoration: none;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.game-card:hover, .game-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .5), 0 0 30px rgba(223, 183, 108, .1);
}

.game-card:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 5px; }

.game-preview {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 28px;
  background: radial-gradient(circle, rgba(154, 54, 99, .42), transparent 55%), linear-gradient(145deg, #3a1028, #210816);
}

.mini-wheel {
  position: relative;
  width: min(176px, 68%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 8px solid #e5a927;
  border-radius: 50%;
  background: conic-gradient(
    #bd61e6 0 6.25%, #31b8e5 6.25% 12.5%, #5cdb27 12.5% 18.75%, #f3f3f3 18.75% 25%,
    #e9e11c 25% 31.25%, #f18b24 31.25% 37.5%, #d53425 37.5% 43.75%, #d843b2 43.75% 50%,
    #8f4dd0 50% 56.25%, #2aa5d8 56.25% 62.5%, #52c829 62.5% 68.75%, #dedfe4 68.75% 75%,
    #cec91d 75% 81.25%, #e87d20 81.25% 87.5%, #bd2b26 87.5% 93.75%, #c638a0 93.75% 100%
  );
  box-shadow: 0 0 0 5px #6f3c08, 0 12px 30px rgba(0, 0, 0, .42);
}

.mini-wheel::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  border-inline: 12px solid transparent;
  border-top: 25px solid var(--gold-light);
  filter: drop-shadow(0 3px 0 #784408);
}

.mini-wheel span {
  display: grid;
  place-items: center;
  width: 40%;
  aspect-ratio: 1;
  border: 4px solid #ffe276;
  border-radius: 50%;
  color: #ffe276;
  background: radial-gradient(circle at 38% 28%, #a65bff, #5916bd 68%, #2a086e);
  box-shadow: 0 0 0 5px #8b4b05;
  overflow: hidden;
  font-family: Georgia, serif;
  font-size: clamp(.95rem, 2.2vw, 1.4rem);
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.06em;
  white-space: nowrap;
  text-shadow: 0 2px 0 #6d3413;
}

.game-card--mono {
  border-color: rgba(255, 255, 255, .38);
  background: linear-gradient(145deg, #181818, #000);
}

.game-card--red {
  border-color: rgba(224, 0, 50, .55);
  background: linear-gradient(145deg, #290008, #000);
}

.game-card--red:hover,
.game-card--red:focus-visible { border-color: #e00032; }

.game-card--red .game-type,
.game-card--red .game-copy h2 { color: #ff315f; }

.game-card--red .game-copy > p:not(.game-type) { color: #e4a5b3; }

.game-card--red .open-game {
  border-color: #e00032;
  color: #000;
  background: #e00032;
}

.game-preview--red {
  background: radial-gradient(circle, #650019, #160005 66%, #000);
}

.mini-wheel--red {
  border-color: #dec985;
  background: repeating-conic-gradient(#a6222a 0 22.5deg, #080506 22.5deg 45deg);
  box-shadow: 0 0 0 5px #080506, 0 0 0 8px #dec985, 0 12px 30px rgba(0, 0, 0, .5);
}

.mini-wheel--red::before {
  border-top-color: #dec985;
  filter: drop-shadow(0 3px 0 #000);
}

.mini-wheel--red span {
  border-color: #dec985;
  color: #dec985;
  background: #080506;
  box-shadow: 0 0 0 5px #dec985, 0 0 0 9px #080506;
  text-shadow: none;
}

.game-card--mono:hover,
.game-card--mono:focus-visible { border-color: #fff; }

.game-card--mono .game-type,
.game-card--mono .game-copy h2 { color: #fff; }

.game-card--mono .game-copy > p:not(.game-type) { color: #cfcfcf; }

.game-card--mono .open-game {
  border-color: #fff;
  color: #000;
  background: #fff;
}

.game-preview--mono {
  background: radial-gradient(circle, #373737, #090909 66%, #000);
}

.mini-wheel--mono {
  border-color: #fff;
  background: repeating-conic-gradient(#fff 0 22.5deg, #000 22.5deg 45deg);
  box-shadow: 0 0 0 5px #000, 0 0 0 8px #fff, 0 12px 30px rgba(0, 0, 0, .5);
}

.mini-wheel--mono::before {
  border-top-color: #fff;
  filter: drop-shadow(0 3px 0 #000);
}

.mini-wheel--mono span {
  border-color: #fff;
  color: #fff;
  background: #000;
  box-shadow: 0 0 0 5px #fff, 0 0 0 9px #000;
  text-shadow: none;
}

.game-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 28px 30px 32px;
}

.game-copy h2 {
  margin: 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1;
}

.game-copy > p:not(.game-type) {
  max-width: 420px;
  margin: 14px 0 24px;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.6;
}

.open-game {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  color: #1a090f;
  background: linear-gradient(135deg, var(--gold-light), #c99443);
  font-weight: 900;
}

footer {
  margin-top: 44px;
  color: #906f82;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .game-preview { min-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
