:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-alt: #0d0d0f;
  --accent: #ff5c1c;
  --accent-strong: #ff2d00;
  --accent-soft: #ff9234;
  --text: #ffe8d6;
  --muted: rgba(255, 233, 214, 0.6);
  --border: rgba(255, 92, 28, 0.25);
  --glow: rgba(255, 92, 28, 0.35);
}

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  padding-bottom: 140px;
}

.backdrop {
  position: fixed;
  inset: 0;
  background: #050505;
  pointer-events: none;
  z-index: 0;
  filter: none;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  background: rgba(5, 5, 5, 0.92);
  border-bottom: 1px solid rgba(255, 45, 0, 0.6);
}

.logo {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-left: 18px;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 0;
  letter-spacing: 0.24em;
  text-transform: inherit;
  transition: color 0.2s ease;
  font: inherit;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--text);
}

.logo::before {
  content: '';
  position: absolute;
  left: 0;
  top: 45%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.wallet-button {
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 92, 28, 0.5);
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.wallet-button:hover,
.wallet-button:focus-visible {
  background: rgba(255, 92, 28, 0.18);
  color: var(--accent-soft);
  outline: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 32px;
  flex: 1;
  min-height: calc(100vh - 220px);
  padding: 120px 20px 80px;
  width: min(960px, 100%);
  margin: 0 auto;
}

.static-page {
  flex: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 160px 24px 200px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.static-card {
  background: #0b0b0d;
  border-radius: 28px;
  border: 1px solid var(--border);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.static-card h1 {
  margin: 0;
  font-size: 1.45rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.static-card p,
.static-card li {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.static-card ul {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.static-card a {
  color: var(--accent-soft);
  text-decoration: none;
}

.static-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.static-back:hover {
  color: var(--accent-soft);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--accent-soft);
}

.hero-subtitle {
  margin: 0;
  font-size: clamp(1rem, 2.4vw, 1.35rem);
  color: var(--muted);
}

.reward-strip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 18px;
  background: rgba(255, 92, 28, 0.12);
  border: 1px solid rgba(255, 92, 28, 0.28);
}

.reward-label {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.rewards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rewards-list span {
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 92, 28, 0.3);
  background: rgba(255, 92, 28, 0.12);
  color: var(--text);
}

.winners-card {
  width: 100%;
  padding: 28px 30px 32px;
  border-radius: 28px;
  border: 1px solid rgba(255, 92, 28, 0.22);
  background: #09090c;
  text-align: left;
}

.winners-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.winners-header h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.winners-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.winners-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.winners-table th,
.winners-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 92, 28, 0.2);
  text-align: left;
}

.winners-table th {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.winners-table td:last-child {
  color: var(--accent-soft);
  font-weight: 600;
  text-align: right;
}

.winners-table th.prize-head {
  text-align: right;
}

.slot-shell {
  position: relative;
  width: min(780px, 96vw);
  min-height: clamp(540px, 70vw, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-glow {
  position: absolute;
  width: 80%;
  height: 80%;
  background: transparent;
  filter: none;
  z-index: 0;
  display: none;
}

.slot-machine {
  position: relative;
  width: 100%;
  background: #0b0b0d;
  border-radius: 36px;
  padding: 60px 52px 74px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-end;
  gap: 40px;
  z-index: 1;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.slot-machine.jackpot-glow {
  box-shadow: 0 0 35px rgba(255, 92, 28, 0.45),
    inset 0 0 22px rgba(255, 92, 28, 0.3);
  border-color: rgba(255, 92, 28, 0.8);
}

.slot-crown {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 18px;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 92, 28, 0.08);
}

.slot-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.slot-screen {
  width: 100%;
  min-height: 320px;
  padding: 28px;
  border-radius: 26px;
  border: 1px solid rgba(255, 92, 28, 0.25);
  background: #020202;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slot-screen canvas {
  width: 100%;
  max-width: 648px;
  height: auto;
  display: block;
  border-radius: 18px;
  background: #010101;
}

.slot-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 92, 28, 0.08);
  border: 1px solid rgba(255, 92, 28, 0.25);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.spin-button {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px solid rgba(255, 45, 0, 0.8);
  background: #ff4d2c;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-end;
  margin-left: 20px;
}

.spin-button span {
  display: inline-block;
  transform: translateX(0.06em);
}

.spin-button:focus-visible {
  outline: 2px dashed var(--text);
  outline-offset: 6px;
}

.spin-button:active {
  transform: translateY(4px);
  background: #d83c1f;
}

.spin-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
  background: #7a2918;
}

.site-footer {
  border-top: 1px solid rgba(255, 92, 28, 0.18);
  padding: 18px 28px 24px;
  background: #040404;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 5;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.2em;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-note {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
}

.gate-modal,
.win-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.gate-backdrop,
.win-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.gate-dialog,
.win-dialog {
  position: relative;
  width: min(360px, 90vw);
  background: #0d0d10;
  border-radius: 24px;
  border: 1px solid rgba(255, 92, 28, 0.3);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  z-index: 1;
}

.gate-dialog h2,
.win-dialog h2 {
  margin: 0;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.gate-dialog p,
.win-dialog p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.gate-close,
.win-close {
  border: none;
  background: transparent;
  color: var(--muted);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.8rem;
  cursor: pointer;
  margin-top: 8px;
}


@media (max-width: 720px) {
  .top-bar {
    padding: 20px;
  }

  .slot-machine {
    flex-direction: column;
    align-items: center;
    padding: 28px;
  }

  .main-nav {
    display: none;
  }

  .slot-shell {
    width: min(520px, 100%);
    min-height: auto;
    aspect-ratio: 3 / 2.2;
  }

  .spin-button {
    width: 120px;
    height: 120px;
    margin-left: 0;
    margin-top: 18px;
    align-self: center;
  }

  .slot-crown {
    display: none;
  }

  .reward-strip {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .winners-card {
    padding: 22px;
  }

  .winners-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .winners-table th,
  .winners-table td {
    padding: 12px 8px;
  }

  .site-footer {
    padding: 16px 20px 20px;
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
  }

  .static-page {
    padding: 140px 20px 180px;
  }

  .gate-dialog {
    width: 90vw;
  }
}

