:root {
  --bg: #060807;
  --bg-2: #0d1410;
  --surface: rgba(14, 22, 18, 0.86);
  --surface-strong: #111d17;
  --line: rgba(238, 212, 129, 0.2);
  --gold: #f6cc62;
  --gold-2: #ffedab;
  --green: #2ef08f;
  --green-2: #0ec96f;
  --text: #f8f7ef;
  --muted: #aeb7ad;
  --danger: #ff6969;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
  font-family: Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 35% 0%, rgba(29, 125, 72, 0.22), transparent 34rem),
    linear-gradient(180deg, #07100b 0%, var(--bg) 43%, #090b09 100%);
}

button,
a,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 12px auto 0;
  padding: 0 18px;
  border: 1px solid rgba(246, 204, 98, 0.16);
  border-radius: 8px;
  background: rgba(3, 8, 5, 0.8);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #061008;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 58%, #bf8521);
  font-weight: 900;
  box-shadow: 0 8px 28px rgba(246, 204, 98, 0.24);
}

.brand-name {
  color: var(--gold-2);
  font-size: 1.14rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--gold-2);
}

.top-actions,
.hero-actions,
.download-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

button {
  cursor: pointer;
  border: 0;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.game-info button,
.quick-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.primary-btn {
  color: #071008;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 58%, #d99b2c);
  box-shadow: 0 14px 34px rgba(246, 204, 98, 0.26);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.game-info button:hover,
.quick-grid button:hover {
  transform: translateY(-2px);
}

.primary-btn.small {
  min-height: 42px;
  padding: 0 16px;
}

.primary-btn.full {
  width: 100%;
}

.secondary-btn {
  border: 1px solid rgba(246, 204, 98, 0.35);
  color: var(--gold-2);
  background: rgba(255, 255, 255, 0.04);
}

.secondary-btn.dark {
  background: rgba(0, 0, 0, 0.18);
}

.ghost-btn {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero-section {
  position: relative;
  min-height: 760px;
  padding: 146px 24px 80px;
  overflow: hidden;
}

.hero-canvas,
.hero-backdrop,
.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
  opacity: 0.5;
  filter: saturate(1.08) contrast(1.08);
}

.hero-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.hero-backdrop {
  background:
    linear-gradient(90deg, rgba(6, 8, 7, 0.96) 0%, rgba(6, 8, 7, 0.78) 44%, rgba(6, 8, 7, 0.62) 100%),
    linear-gradient(180deg, rgba(6, 8, 7, 0.05), var(--bg) 94%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.7fr);
  align-items: center;
  gap: 48px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(46, 240, 143, 0.28);
  border-radius: 8px;
  color: var(--green);
  background: rgba(46, 240, 143, 0.07);
  font-size: 0.77rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  color: var(--gold-2);
  font-size: clamp(3.6rem, 8vw, 7.4rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
  max-width: 610px;
  margin-bottom: 32px;
  color: #d7ddd5;
  font-size: 1.1rem;
  line-height: 1.9;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.trust-row span {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: #d9e7da;
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.88rem;
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(246, 204, 98, 0.2);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 30, 24, 0.92), rgba(7, 13, 9, 0.88));
  box-shadow: var(--shadow);
}

.panel-top,
.jackpot,
.vip-table [role="row"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-top {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.panel-top strong {
  color: var(--green);
  font-size: 1rem;
}

.jackpot {
  min-height: 112px;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid rgba(246, 204, 98, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(246, 204, 98, 0.18), rgba(46, 240, 143, 0.08)),
    rgba(0, 0, 0, 0.24);
}

.jackpot span {
  color: var(--muted);
}

.jackpot strong {
  color: var(--gold-2);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1;
}

.reel-window {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.reel {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--gold-2);
  background: linear-gradient(180deg, #18231d, #060907);
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 900;
}

.reel.go {
  color: #061008;
  background: linear-gradient(135deg, var(--green), var(--gold));
  font-size: clamp(1.1rem, 4vw, 1.65rem);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-grid button {
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
}

.ticker-band {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  margin: -28px auto 76px;
  padding: 0 18px;
  border: 1px solid rgba(246, 204, 98, 0.18);
  border-radius: 8px;
  background: rgba(9, 15, 11, 0.94);
  box-shadow: var(--shadow);
}

.ticker-band > span {
  flex: 0 0 auto;
  color: var(--gold-2);
  font-weight: 900;
}

.ticker {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  white-space: nowrap;
}

.ticker p {
  display: inline-block;
  margin: 0;
  animation: tickerMove 18s linear infinite;
}

@keyframes tickerMove {
  0% {
    transform: translateX(40%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.feature-band,
.games-section,
.vip-section,
.app-section,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.feature-band,
.games-section,
.vip-section,
.app-section {
  padding: 82px 0;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.vip-copy h2,
.app-copy h2 {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-grid article,
.game-card,
.vip-table,
.phone-mock {
  border: 1px solid rgba(246, 204, 98, 0.16);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.26);
}

.feature-grid article {
  min-height: 238px;
  padding: 22px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 34px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: #061008;
  background: var(--gold);
  font-weight: 900;
}

.feature-grid h3,
.game-info h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.feature-grid p,
.game-info p,
.vip-copy p,
.app-copy p,
.footer p,
.auth-card p {
  color: var(--muted);
  line-height: 1.78;
}

.game-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.game-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 800;
}

.game-tabs button.active {
  border-color: rgba(46, 240, 143, 0.42);
  color: var(--green);
  background: rgba(46, 240, 143, 0.1);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.game-card {
  min-height: 356px;
  overflow: hidden;
}

.game-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 178px;
  overflow: hidden;
  background: #111;
}

.game-art::before,
.game-art::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.game-art::after {
  inset: auto 22px 22px;
  height: 24px;
  background: rgba(255, 255, 255, 0.11);
}

.game-art span {
  position: relative;
  z-index: 1;
  color: var(--gold-2);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 900;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.pitch {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 46px),
    linear-gradient(135deg, #092f20, #16864e);
}

.live {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 40%, rgba(0, 0, 0, 0.28)),
    linear-gradient(135deg, #34200d, #cf9a39);
}

.slot {
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #1c241d, #d0a33b);
}

.card {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.08) 50% 75%, transparent 75%),
    linear-gradient(135deg, #0d1d35, #248a79);
  background-size: 30px 30px, auto;
}

.neon {
  background:
    radial-gradient(circle at 50% 50%, rgba(46, 240, 143, 0.42), transparent 32%),
    linear-gradient(135deg, #151515, #082418);
}

.arena {
  background:
    linear-gradient(180deg, transparent 0 56%, rgba(255, 255, 255, 0.09) 56% 58%, transparent 58%),
    linear-gradient(135deg, #1d1210, #bb5729);
}

.game-info {
  padding: 20px;
}

.game-info p {
  min-height: 58px;
  margin-bottom: 18px;
}

.game-info button {
  width: 100%;
  color: var(--gold-2);
  background: rgba(246, 204, 98, 0.1);
  border: 1px solid rgba(246, 204, 98, 0.24);
}

.game-card.is-hidden {
  display: none;
}

.vip-section,
.app-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  align-items: center;
  gap: 46px;
}

.vip-copy p,
.app-copy p {
  max-width: 620px;
  margin-top: 20px;
}

.vip-table {
  padding: 16px;
}

.vip-table [role="row"] {
  min-height: 72px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.vip-table [role="row"]:last-child {
  border-bottom: 0;
}

.vip-table span {
  color: var(--gold-2);
  font-weight: 900;
}

.vip-table strong {
  color: var(--text);
}

.vip-table em {
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.app-section {
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
}

.phone-mock {
  justify-self: center;
  width: min(320px, 100%);
  padding: 14px;
  background: linear-gradient(180deg, #182018, #060806);
}

.phone-top {
  width: 86px;
  height: 8px;
  margin: 0 auto 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
}

.phone-screen {
  display: grid;
  place-items: center;
  min-height: 430px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.5)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #135b39, #f6cc62);
}

.phone-screen span {
  align-self: end;
  font-weight: 900;
}

.phone-screen strong {
  color: #061008;
  font-size: 5.5rem;
  line-height: 1;
  font-weight: 900;
}

.phone-screen button {
  align-self: start;
  min-width: 116px;
  min-height: 46px;
  border-radius: 8px;
  color: var(--gold-2);
  background: #061008;
  font-weight: 900;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  max-width: 520px;
  margin: 14px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--muted);
}

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

.auth-dialog {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(246, 204, 98, 0.22);
  border-radius: 8px;
  color: var(--text);
  background: transparent;
}

.auth-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.auth-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
  background: linear-gradient(180deg, #121d17, #080b09);
}

.auth-card h2 {
  margin: 0;
  font-size: 2rem;
}

.auth-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-card input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  outline: 0;
}

.auth-card input:focus {
  border-color: rgba(46, 240, 143, 0.54);
}

.auth-card p {
  margin: 0;
  font-size: 0.84rem;
}

.not-found {
  display: grid;
  align-content: center;
  gap: 28px;
  min-height: 100vh;
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.not-found-card {
  padding: 36px;
  border: 1px solid rgba(246, 204, 98, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 30, 24, 0.92), rgba(7, 13, 9, 0.88)),
    url("./assets/p999go-hero.png") center / cover;
  box-shadow: var(--shadow);
}

.not-found-card h1 {
  margin: 18px 0 14px;
  font-size: clamp(3rem, 12vw, 5rem);
}

.not-found-card p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.3rem;
}

@media (max-width: 960px) {
  .topbar {
    width: min(100% - 24px, 760px);
  }

  .nav-links {
    display: none;
  }

  .hero-section {
    min-height: 0;
    padding: 128px 16px 64px;
  }

  .hero-content,
  .vip-section,
  .app-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-panel {
    max-width: 560px;
  }

  .feature-grid,
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-section .phone-mock {
    order: 2;
  }
}

@media (max-width: 640px) {
  .topbar {
    height: 66px;
    padding: 0 10px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .top-actions {
    gap: 6px;
  }

  .ghost-btn {
    display: none;
  }

  .primary-btn.small {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .hero-section {
    padding-top: 108px;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 4.8rem);
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .hero-actions,
  .download-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn,
  .download-actions .primary-btn,
  .download-actions .secondary-btn {
    width: 100%;
  }

  .hero-panel {
    padding: 14px;
  }

  .jackpot {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

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

  .ticker-band {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    min-height: 78px;
    padding: 12px 14px;
  }

  .feature-band,
  .games-section,
  .vip-section,
  .app-section {
    padding: 58px 0;
  }

  .feature-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .game-card {
    min-height: auto;
  }

  .game-art {
    height: 156px;
  }

  .vip-table [role="row"] {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 92px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
