:root {
  --bg: #0b0e1a;
  --surface: rgba(17, 22, 42, 0.82);
  --surface-strong: rgba(22, 28, 54, 0.94);
  --violet: #7b2fff;
  --gold: #ffd700;
  --cyan: #64f4ff;
  --white: #ffffff;
  --text: rgba(255, 255, 255, 0.94);
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(123, 47, 255, 0.24), transparent 30rem),
    radial-gradient(circle at 84% 10%, rgba(100, 244, 255, 0.12), transparent 26rem),
    radial-gradient(circle at 50% 92%, rgba(255, 215, 0, 0.08), transparent 26rem),
    var(--bg);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(255, 255, 255, 0.24) 0 1px, transparent 1px);
  background-position: 12px 8px, 35px 49px;
  background-size: 74px 74px, 119px 119px;
  opacity: 0.32;
}

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

button,
select {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 14, 26, 0.84);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 215, 0, 0.42);
  border-radius: var(--radius);
  color: var(--gold);
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 215, 0, 0.48), transparent 36%),
    linear-gradient(135deg, rgba(123, 47, 255, 0.78), rgba(11, 14, 26, 0.88));
  box-shadow: 0 0 28px rgba(123, 47, 255, 0.34);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--white);
}

.badge {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 215, 0, 0.38);
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.btn,
.game-button,
.choice-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn {
  padding: 11px 18px;
  border-color: transparent;
  background: linear-gradient(135deg, var(--violet), #9c60ff);
  box-shadow: 0 14px 38px rgba(123, 47, 255, 0.28);
}

.btn:hover,
.btn:focus-visible,
.game-button:hover,
.game-button:focus-visible,
.choice-button:hover,
.choice-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.5);
}

.game-page {
  padding: 56px 0 70px;
}

.game-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 32px;
}

.game-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: 54px;
  line-height: 1.04;
  font-weight: 900;
}

h2 {
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1.16;
  font-weight: 850;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 850;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
}

.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 0%, rgba(123, 47, 255, 0.18), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
    var(--surface);
  box-shadow: var(--shadow);
}

.game-board {
  min-height: 560px;
  padding: 24px;
}

.side-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.score-box {
  padding: 18px;
  border: 1px solid rgba(255, 215, 0, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 215, 0, 0.07);
}

.score-label,
.mini-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.score-value {
  color: var(--gold);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.notice {
  color: var(--muted);
  font-size: 14px;
}

.rules {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.76);
}

.game-stage {
  display: grid;
  min-height: 315px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 44%, rgba(123, 47, 255, 0.22), transparent 18rem),
    rgba(4, 7, 16, 0.5);
  overflow: hidden;
}

.metric {
  color: var(--gold);
  font-size: 72px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 34px rgba(255, 215, 0, 0.26);
}

.status {
  min-height: 58px;
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.game-button {
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.07);
}

.game-button.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), #ffb700);
  color: #151100;
  box-shadow: 0 14px 38px rgba(255, 215, 0, 0.18);
}

.game-button:disabled,
.choice-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.meter {
  width: 100%;
  height: 12px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.meter-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--gold));
  transition: width 110ms linear;
}

.flight {
  position: relative;
  width: 100%;
  height: 315px;
}

.trail {
  position: absolute;
  left: 8%;
  bottom: 16%;
  width: 18%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--gold));
  box-shadow: 0 0 28px rgba(255, 215, 0, 0.3);
}

.plane {
  position: absolute;
  left: 8%;
  bottom: 16%;
  font-size: 54px;
  filter: drop-shadow(0 0 22px rgba(100, 244, 255, 0.42));
  transition: left 100ms linear, bottom 100ms linear;
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 120px));
  gap: 14px;
  justify-content: center;
}

.reel,
.die,
.card {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 26px rgba(255, 255, 255, 0.05);
}

.reel {
  height: 132px;
  font-size: 54px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.choice-button {
  min-height: 52px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.07);
}

.choice-button.is-selected {
  border-color: rgba(255, 215, 0, 0.72);
  background: rgba(255, 215, 0, 0.13);
  color: var(--gold);
}

.wheel {
  display: grid;
  width: min(76vw, 300px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, #7b2fff 0 25%, #ffd700 0 50%, #64f4ff 0 75%, #ffffff 0 100%);
  box-shadow: 0 0 58px rgba(123, 47, 255, 0.35);
  transition: transform 900ms cubic-bezier(.2, .8, .2, 1);
}

.wheel-core {
  display: grid;
  width: 44%;
  height: 44%;
  place-items: center;
  border-radius: 50%;
  background: rgba(11, 14, 26, 0.88);
  color: var(--white);
  font-weight: 900;
}

.card-table {
  display: grid;
  width: 100%;
  gap: 18px;
}

.hand {
  min-height: 138px;
}

.hand-title {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 800;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card {
  width: 78px;
  height: 108px;
  color: var(--white);
  font-size: 24px;
  font-weight: 900;
}

.card.red {
  color: #ff9a9a;
}

.dice-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.die {
  width: 112px;
  height: 112px;
  color: var(--gold);
  font-size: 54px;
  font-weight: 950;
}

.footer {
  padding: 32px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 7, 14, 0.72);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.footer-grid {
  display: grid;
  gap: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 750;
}

.content-page {
  padding: 56px 0 72px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}

.content-card {
  padding: 28px;
}

.content-card p,
.content-card li {
  color: rgba(255, 255, 255, 0.76);
}

.content-card ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.content-card a {
  color: var(--gold);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font: inherit;
  padding: 12px 14px;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(255, 215, 0, 0.58);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

:focus-visible {
  outline: 3px solid rgba(255, 215, 0, 0.62);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .game-hero,
  .game-layout,
  .content-layout {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  .game-board {
    min-height: auto;
  }
}

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

  .nav {
    min-height: auto;
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
  }

  .game-page {
    padding: 38px 0 54px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 16px;
  }

  .game-board,
  .side-panel {
    padding: 16px;
  }

  .metric {
    font-size: 54px;
  }

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

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

  .reel {
    height: 98px;
    font-size: 42px;
  }

  .die {
    width: 92px;
    height: 92px;
    font-size: 44px;
  }
}
