:root {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --border: #2a2a2a;
  --text: #ffffff;
  --muted: #cfcfcf;
  --accent: #ffe000;
  --accent-hover: #ffee72;
  --accent-2: #ffd000;
  --ink: #111111;
  --container: 1160px;
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
}

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

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-size: 38px;
}

h2 {
  font-size: 28px;
  margin-top: 48px;
}

h3 {
  font-size: 21px;
  margin-top: 28px;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

ul,
ol {
  padding-left: 24px;
}

li {
  margin-bottom: 7px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--ink);
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  flex-shrink: 0;
  line-height: 0;
}

.logo img {
  height: 26px;
  width: auto;
}

.nav {
  flex: 1;
}

.nav ul {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav li {
  margin: 0;
}

.nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  background: var(--surface-2);
  color: var(--accent-hover);
}

.nav a[aria-current="page"] {
  color: var(--accent);
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn,
.btn-outline {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn {
  border: 0;
  background: var(--accent);
  color: var(--ink);
}

.btn:hover {
  background: var(--accent-hover);
  color: var(--ink);
}

.btn-outline {
  border: 1px solid var(--accent-2);
  background: transparent;
  color: var(--text);
}

.btn-outline:hover {
  background: var(--accent-2);
  color: var(--ink);
}

.header-actions .btn,
.header-actions .btn-outline {
  padding: 10px 18px;
  font-size: 14px;
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.backdrop {
  display: none;
}

/* Hero */

.hero {
  position: relative;
  margin: 28px auto 0;
  max-width: var(--container);
  padding: 0 32px;
}

.hero-inner {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--surface);
}

.hero-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.hero-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0) 70%);
}

.hero-text {
  position: absolute;
  inset: 0;
  z-index: 1;
  max-width: 520px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-label {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
}

.hero-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
}

/* Main */

.content {
  padding-top: 40px;
  padding-bottom: 16px;
}

.page-head {
  padding: 48px 0 8px;
}

.page-head .lead {
  color: var(--muted);
  font-size: 18px;
}

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.table-scroll {
  margin: 8px 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

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

thead th {
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 700;
}

tbody tr:nth-child(even) {
  background: var(--surface);
}

tbody td:first-child {
  font-weight: 500;
}

.callout {
  margin: 0 0 20px;
  padding: 14px 18px;
  background: var(--surface);
  border-left: 4px solid var(--accent-2);
  border-radius: 10px;
}

/* Grids */

.game-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.game-grid li {
  margin: 0;
}

.game-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

.game-grid li:hover img {
  transform: translateY(-3px);
}

.game-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.cat-grid li {
  margin: 0;
  text-align: center;
}

.cat-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--surface);
}

.cat-grid span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.live-grid li {
  margin: 0;
  padding: 12px 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.live-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto 8px;
}

.live-grid span {
  display: block;
  font-size: 12px;
  line-height: 1.3;
}

.coin-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin: 18px 0 12px;
  padding: 0;
  list-style: none;
}

.coin-grid li {
  margin: 0;
  padding: 14px 6px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.coin-grid img {
  width: 40px;
  height: 40px;
  margin: 0 auto 8px;
}

.coin-grid span {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 18px 0 24px;
}

.card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.card h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 18px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* FAQ */

.faq {
  margin: 16px 0 24px;
}

.faq-item {
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.faq-item h3 {
  margin: 0;
  font-size: inherit;
}

.faq-btn {
  position: relative;
  width: 100%;
  padding: 18px 56px 18px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}

.faq-btn::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-btn[aria-expanded="true"]::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-panel {
  padding: 0 20px 18px;
  color: var(--muted);
}

.faq-panel p:last-child {
  margin-bottom: 0;
}

/* Footer */

.footer {
  margin-top: 56px;
  padding: 40px 0 32px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand p {
  max-width: 360px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li {
  margin: 0;
}

.footer-nav a {
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--accent);
}

.footer-coins {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 24px;
  padding: 20px 0;
  list-style: none;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.footer-coins li {
  margin: 0;
}

.footer-coins img {
  width: 30px;
  height: 30px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
}

.age {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 700;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Tablet */

@media (max-width: 1100px) {
  .game-grid {
    grid-template-columns: repeat(5, 1fr);
  }

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

  .nav a {
    padding: 8px 10px;
    font-size: 14px;
  }
}

/* Mobile navigation */

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .container,
  .hero {
    padding: 0 16px;
  }

  .header {
    background: var(--bg);
    backdrop-filter: none;
  }

  .nav-open .header {
    z-index: 70;
  }

  .header .container {
    gap: 12px;
  }

  .burger {
    display: flex;
    order: -1;
  }

  .logo {
    margin-right: auto;
  }

  .header-actions .btn {
    display: none;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    bottom: 0;
    z-index: 60;
    width: min(320px, 86vw);
    padding: 16px;
    overflow-y: auto;
    background: var(--surface);
    border-right: 1px solid var(--border);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0.25s ease;
  }

  .nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav li {
    border-bottom: 1px solid var(--border);
  }

  .nav a {
    padding: 14px 8px;
    border-radius: 0;
    font-size: 16px;
  }

  .backdrop {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 55;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .backdrop.is-visible {
    opacity: 1;
    visibility: visible;
  }

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

  .coin-grid {
    grid-template-columns: repeat(5, 1fr);
  }

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

/* Phones */

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 27px;
  }

  h2 {
    font-size: 22px;
    margin-top: 36px;
  }

  h3 {
    font-size: 18px;
  }

  .hero {
    margin-top: 0;
    padding: 0;
  }

  .hero-inner {
    height: auto;
    border-radius: 0;
  }

  .hero-inner img {
    height: 240px;
    object-position: 72% center;
  }

  .hero-inner::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.85) 62%, var(--bg) 100%);
    height: 240px;
  }

  .hero-text {
    position: relative;
    max-width: none;
    margin-top: -64px;
    padding: 0 16px 8px;
    align-items: stretch;
    text-align: center;
  }

  .hero-label {
    margin-bottom: 4px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-sub {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .hero .btn {
    width: 100%;
  }

  .content {
    padding-top: 24px;
  }

  .page-head {
    padding-top: 28px;
  }

  .page-head .lead {
    font-size: 16px;
  }

  .header-actions .btn-outline {
    padding: 8px 14px;
  }

  th,
  td {
    padding: 10px 12px;
    font-size: 14px;
  }

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

  .live-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .live-grid li {
    padding: 8px 4px;
  }

  .live-grid span {
    font-size: 10px;
  }

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

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

  .cards {
    grid-template-columns: 1fr;
  }

  .cta-row .btn {
    width: 100%;
  }

  .faq-btn {
    padding: 15px 48px 15px 16px;
    font-size: 15px;
  }

  .faq-panel {
    padding: 0 16px 15px;
  }

  .footer-coins {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
