:root {
  --color-bg: #0f0f1a;
  --color-text: #ffffff;
  --color-accent: #00d4ff;
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --color-primary-1: #17172a;
  --color-primary-2: #20203a;
  --color-muted: #b9c2da;
  --color-line: rgba(0, 212, 255, 0.24);
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 10%, rgba(0, 212, 255, 0.14), transparent 27rem),
    radial-gradient(circle at 88% 32%, rgba(255, 94, 200, 0.12), transparent 25rem),
    linear-gradient(135deg, #0f0f1a 0%, #141426 48%, #0f0f1a 100%);
  color: var(--color-text);
  font-family: var(--font-primary);
  line-height: 1.6;
}

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

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.mobile-action-bar {
  display: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: var(--header-height);
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(15, 15, 26, 0.88);
  border-bottom: 1px solid rgba(0, 212, 255, 0.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: min-height 240ms ease, background 240ms ease;
}

.site-header.is-scrolled {
  min-height: 62px;
  background: rgba(15, 15, 26, 0.97);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #061218;
  background: linear-gradient(135deg, var(--color-accent), #ff5ec8 72%);
  border-radius: var(--radius);
  font-size: 0.8rem;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.desktop-nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 28px);
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 800;
}

.desktop-nav a {
  transition: color 220ms ease, text-shadow 220ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--color-text);
  text-shadow: 0 0 18px rgba(0, 212, 255, 0.55);
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, border-color 220ms ease, filter 220ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #031017;
  background: var(--color-accent);
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.42);
}

.btn-outline {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: transparent;
}

.btn-outline:hover,
.btn-ghost:hover {
  background: rgba(0, 212, 255, 0.1);
}

.btn-ghost {
  color: var(--color-text);
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.btn-large {
  min-height: 50px;
  padding-inline: 24px;
}

.btn-small {
  min-height: 38px;
  padding-inline: 14px;
}

main {
  padding-top: calc(var(--header-height) + 28px);
}

.hero,
.section,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 28px);
  padding: clamp(24px, 4vw, 54px) 0 clamp(46px, 7vw, 82px);
}

.section {
  padding: clamp(46px, 7vw, 82px) 0;
}

.eyebrow,
.popup-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-secondary);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin-top: 18px;
  font-size: clamp(3rem, 8vw, 6.4rem);
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0;
  color: var(--color-muted);
}

.hero-copy {
  max-width: 660px;
  margin-top: 20px;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 30px;
}

.hero-badges span {
  padding: 9px 12px;
  color: var(--color-text);
  background: rgba(0, 212, 255, 0.11);
  border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 500px;
  padding: clamp(18px, 3vw, 28px);
  overflow: hidden;
  background: linear-gradient(145deg, rgba(0, 212, 255, 0.14), rgba(255, 94, 200, 0.1)), rgba(23, 23, 42, 0.86);
  border: 1px solid var(--color-line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-visual::before {
  content: "x1024";
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 12px 16px;
  color: var(--color-accent);
  background: rgba(15, 15, 26, 0.88);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.32);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
}

.candy-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(7, minmax(26px, 1fr));
  gap: 8px;
  height: min(70vw, 390px);
  max-height: 390px;
}

.candy-board span {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: inset 0 -8px 18px rgba(0, 0, 0, 0.22), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.candy-board span:nth-child(4n) {
  background: linear-gradient(145deg, #00d4ff, #0078ff);
}

.candy-board span:nth-child(4n + 1) {
  background: linear-gradient(145deg, #ff5ec8, #9c4dff);
}

.candy-board span:nth-child(4n + 2) {
  background: linear-gradient(145deg, #ffe45e, #ff9f1c);
}

.candy-board span:nth-child(4n + 3) {
  background: linear-gradient(145deg, #3efb8c, #0cae6f);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-top: 10px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 22px;
}

.content-panel,
.quick-facts,
.feature-card,
.stat-card,
.tabs,
.strategy-grid article,
.faq-item {
  background: rgba(23, 23, 42, 0.78);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.content-panel {
  padding: clamp(22px, 3vw, 32px);
}

.content-panel p,
.feature-card p {
  margin-top: 10px;
}

.content-panel p + p {
  margin-top: 16px;
}

.quick-facts {
  display: grid;
  align-content: stretch;
  overflow: hidden;
}

.quick-facts div {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.14);
}

.quick-facts div:last-child {
  border-bottom: 0;
}

.quick-facts span,
.stat-card span {
  display: block;
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.quick-facts strong,
.stat-card strong {
  display: block;
  margin-top: 5px;
  color: var(--color-text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  min-height: 132px;
  padding: 20px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.stat-card:hover,
.feature-card:hover,
.strategy-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.48);
}

.stat-card strong {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

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

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

.feature-card,
.strategy-grid article {
  padding: 22px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.feature-card svg {
  width: 30px;
  height: 30px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tabs {
  margin-top: 18px;
  overflow: hidden;
}

.tab-list {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--color-line);
}

.tab-button {
  min-height: 42px;
  padding: 9px 14px;
  color: var(--color-muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.tab-button.active {
  color: #031017;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.tab-panel {
  padding: 22px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: rgba(23, 23, 42, 0.72);
}

th,
td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 212, 255, 0.14);
  white-space: nowrap;
}

th {
  color: var(--color-text);
  background: rgba(0, 212, 255, 0.08);
  font-size: 0.88rem;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.035);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.top-row {
  box-shadow: inset 4px 0 0 var(--color-accent);
}

.casino-cell {
  position: sticky;
  left: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #17172a;
}

tbody tr:nth-child(even) .casino-cell {
  background: #1e1e35;
}

.casino-logo {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #061218;
  border-radius: 10px;
  font-weight: 900;
}

.casino-logo.blue {
  background: linear-gradient(135deg, var(--color-accent), #ff5ec8);
}

.casino-logo.pink {
  background: linear-gradient(135deg, #ff5ec8, #ffe45e);
}

.casino-logo.green {
  background: linear-gradient(135deg, #3efb8c, var(--color-accent));
}

.top-badge {
  padding: 4px 8px;
  color: #031017;
  background: var(--color-accent);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.stars {
  color: #ffe45e;
  letter-spacing: 0;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 20px;
  color: var(--color-text);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

.faq-question span {
  display: grid;
  flex: 0 0 28px;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #061218;
  background: var(--color-accent);
  border-radius: 50%;
  transition: transform 220ms ease;
}

.faq-answer {
  padding: 0 20px 18px;
}

.faq-item.is-open .faq-question span {
  transform: rotate(45deg);
}

.site-footer {
  padding: 34px 0 44px;
  border-top: 1px solid var(--color-line);
}

.site-footer p {
  max-width: 900px;
  margin-top: 12px;
  font-size: 0.94rem;
}

.error-shell {
  display: grid;
  place-items: center;
  gap: 28px;
  min-height: 100vh;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) 0;
}

.error-brand {
  justify-self: start;
}

.error-panel {
  width: 100%;
  padding: clamp(34px, 6vw, 64px);
  background: rgba(23, 23, 42, 0.84);
  border: 1px solid var(--color-line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.error-panel h1 {
  margin-top: 12px;
  font-size: clamp(2.7rem, 8vw, 6rem);
}

.error-panel p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px auto 0;
}

.error-actions {
  justify-content: center;
  margin-top: 30px;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  place-items: center;
  padding: 20px;
}

.popup.active {
  display: grid;
}

.popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.popup-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 32px;
  background: var(--color-primary-1);
  border: 1px solid var(--color-accent);
  border-radius: 16px;
  box-shadow: 0 0 42px rgba(0, 212, 255, 0.34);
  animation: popupIn 300ms ease both;
}

.popup-card h2 {
  margin-top: 10px;
  font-size: 2.2rem;
}

.popup-card p {
  margin: 12px 0 22px;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.popup-cta {
  width: 100%;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1199px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 66px;
  }

  body {
    padding-top: 44px;
  }

  .mobile-action-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1001;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 44px;
    background: rgba(15, 15, 26, 0.98);
    border-bottom: 1px solid var(--color-line);
  }

  .mobile-action-bar a {
    display: grid;
    place-items: center;
    min-width: 0;
    border-radius: 0;
    font-weight: 900;
    line-height: 1;
  }

  .mobile-login {
    color: var(--color-accent);
    border-right: 1px solid var(--color-accent);
  }

  .mobile-register {
    color: #031017;
    background: var(--color-accent);
  }

  .site-header {
    top: 44px;
    padding-inline: 16px;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  main {
    padding-top: calc(var(--header-height) + 18px);
  }

  .hero,
  .section,
  .site-footer {
    width: min(100% - 28px, 680px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 36px;
  }

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

  .hero-visual {
    min-height: 380px;
    border-radius: 20px;
  }

  .candy-board {
    gap: 6px;
    height: 290px;
  }

  .candy-board span {
    min-height: 28px;
    border-radius: 10px;
  }

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

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

  .tab-list {
    overflow-x: auto;
  }

  th,
  td {
    padding: 14px;
  }

  th:last-child,
  td:last-child {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #17172a;
    box-shadow: -10px 0 18px rgba(15, 15, 26, 0.36);
  }

  tbody tr:nth-child(even) td:last-child {
    background: #1e1e35;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-badges span {
    text-align: center;
  }

  .popup-card {
    padding: 26px 20px;
  }
}
