:root {
  color-scheme: dark;
  --ink: #fff8e8;
  --muted: #c7bdd8;
  --panel: rgba(255, 255, 255, 0.09);
  --panel-strong: rgba(255, 255, 255, 0.15);
  --gold: #ffcc33;
  --rose: #ff3d81;
  --aqua: #36f2d0;
  --violet: #7b4dff;
  --line: rgba(255, 255, 255, 0.2);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 61, 129, 0.34), transparent 28rem),
    radial-gradient(circle at 82% 16%, rgba(54, 242, 208, 0.24), transparent 26rem),
    linear-gradient(135deg, #101024 0%, #1c1340 48%, #38123a 100%);
  color: var(--ink);
  overflow-x: hidden;
}

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

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

.page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 38px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--rose));
  color: #171323;
  box-shadow: 0 12px 28px rgba(255, 61, 129, 0.28);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 170px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.94;
  letter-spacing: 0;
}

.shine {
  display: block;
  color: var(--gold);
  text-shadow: 0 0 34px rgba(255, 204, 51, 0.36);
}

.lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--gold), #ff8f2f 44%, var(--rose));
  color: #171323;
  box-shadow: 0 18px 42px rgba(255, 61, 129, 0.26);
}

.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.notice {
  margin-top: 22px;
  color: #efe6ff;
  font-size: 14px;
  line-height: 1.5;
}

.machine {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(14, 14, 34, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.machine::after {
  content: "";
  position: absolute;
  inset: 18px -12px auto auto;
  width: 76px;
  height: 210px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rose), var(--gold));
  z-index: -1;
  filter: blur(0.2px);
  opacity: 0.9;
}

.machine-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.jackpot {
  border: 1px solid rgba(255, 204, 51, 0.38);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 204, 51, 0.12);
}

.jackpot span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.jackpot strong {
  display: block;
  margin-top: 3px;
  color: var(--gold);
  font-size: 24px;
}

.game-title {
  margin: 0 0 4px;
  font-size: 26px;
  line-height: 1.1;
}

.game-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: #0b0b1d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.reel {
  display: grid;
  min-height: 168px;
  place-items: center;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(160deg, rgba(255, 204, 51, 0.2), rgba(123, 77, 255, 0.22));
  font-size: clamp(46px, 8vw, 74px);
  box-shadow: inset 0 -12px 34px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.reel.spin {
  animation: pop 420ms ease;
}

@keyframes pop {
  0% { transform: scale(0.94) rotate(-2deg); filter: blur(2px); }
  70% { transform: scale(1.05) rotate(1deg); filter: blur(0); }
  100% { transform: scale(1) rotate(0); }
}

.wheel-stage,
.diamond-stage {
  display: grid;
  min-height: 196px;
  place-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #0b0b1d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wheel-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.wheel-pointer {
  position: absolute;
  top: -8px;
  width: 0;
  height: 0;
  border-right: 15px solid transparent;
  border-left: 15px solid transparent;
  border-top: 26px solid var(--gold);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.28));
  z-index: 2;
}

.wheel {
  display: grid;
  width: min(260px, 68vw);
  aspect-ratio: 1;
  place-items: center;
  border: 10px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--gold) 0 45deg,
    var(--rose) 45deg 90deg,
    var(--aqua) 90deg 135deg,
    var(--violet) 135deg 180deg,
    #ff8f2f 180deg 225deg,
    #35a7ff 225deg 270deg,
    #dcff57 270deg 315deg,
    #ff63d8 315deg 360deg
  );
  color: #171323;
  font-size: 36px;
  font-weight: 1000;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.25), inset 0 0 0 10px rgba(0, 0, 0, 0.14);
  transition: transform 900ms cubic-bezier(0.16, 0.84, 0.24, 1);
}

.wheel span {
  display: grid;
  width: 72px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.diamond-grid {
  display: grid;
  width: min(340px, 100%);
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gem {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05));
  color: var(--ink);
  font: inherit;
  font-size: clamp(24px, 6vw, 38px);
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.gem:hover,
.gem.hot {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(255, 204, 51, 0.58);
  background: linear-gradient(150deg, rgba(255, 204, 51, 0.25), rgba(255, 61, 129, 0.18));
}

.machine-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
}

.meter {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.meter-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.bar span {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--aqua), var(--gold), var(--rose));
}

.spin-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff2a8, var(--gold) 33%, #ff7b32 67%, var(--rose));
  color: #171323;
  font: inherit;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(255, 61, 129, 0.34);
  transition: transform 160ms ease;
}

.spin-button:hover {
  transform: rotate(-4deg) scale(1.04);
}

.games {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.game-card {
  min-height: 118px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  background: var(--panel);
  color: inherit;
  font: inherit;
  text-align: left;
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.game-card:hover,
.game-card.is-active {
  transform: translateY(-3px);
  border-color: rgba(255, 204, 51, 0.54);
  background: var(--panel-strong);
}

.game-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 204, 51, 0.24), rgba(255, 61, 129, 0.24));
  font-size: 24px;
}

.game-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.game-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.game-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.game-meta em {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 28px, 720px);
    padding-top: 18px;
  }

  .topbar {
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .nav a {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .lead {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 46px;
  }

  .actions,
  .machine-panel,
  .games {
    grid-template-columns: 1fr;
  }

  .button,
  .spin-button {
    width: 100%;
  }

  .spin-button {
    height: 64px;
    border-radius: 16px;
  }

  .reels {
    gap: 8px;
    padding: 10px;
  }

  .reel {
    min-height: 118px;
  }

  .wheel-stage,
  .diamond-stage {
    min-height: 156px;
  }
}
