:root {
  --page: #050914;
  --panel: #0e1831;
  --panel-2: #14244a;
  --violet: #9b5cff;
  --cyan: #31e5ff;
  --gold: #ff4fc8;
  --text: #f3f7ff;
  --muted: #aab8d4;
  --line: rgba(91, 209, 255, .22);
  --shadow: 0 12px 30px rgba(0, 0, 0, .24);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #171a24;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

.app-shell {
  position: relative;
  width: min(100%, 480px);
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 3%, rgba(255, 79, 200, .17), transparent 28%),
    radial-gradient(circle at 5% 18%, rgba(49, 229, 255, .13), transparent 26%),
    var(--page);
  box-shadow: 0 0 36px rgba(8, 8, 22, .22);
  padding-bottom: calc(86px + env(safe-area-inset-bottom));
}

.top-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 6px 12px;
  color: #dbd8ee;
  background: #071024;
  border-bottom: 1px solid var(--line);
  font-size: .69rem;
  font-weight: 700;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.site-header {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(5, 9, 20, .95);
  border-bottom: 1px solid var(--line);
}
.menu-button {
  width: 36px;
  min-height: 44px;
  padding: 0;
  color: var(--cyan);
  background: #0b1732;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1.15rem;
  cursor: pointer;
}
.menu-backdrop {
  position: fixed;
  z-index: 39;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(1, 4, 12, .72);
  transition: opacity .2s ease, visibility .2s ease;
}
.menu-drawer {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: max(calc(50% - 240px), 0px);
  width: min(86vw, 360px);
  padding: 18px 14px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  color: var(--text);
  background: linear-gradient(180deg, #08152e, #050914);
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 42px rgba(0, 0, 0, .42);
  transform: translateX(-110%);
  transition:
    transform .22s ease,
    opacity .18s ease,
    visibility .22s ease;
}
body.menu-open .menu-backdrop {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
body.menu-open .menu-drawer {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}
.menu-head strong {
  color: var(--cyan);
  font-size: 1.1rem;
  letter-spacing: .04em;
}
.menu-close {
  width: 44px;
  height: 44px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}
.menu-links {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}
.menu-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 9px 11px;
  background: rgba(49, 229, 255, .05);
  border: 1px solid rgba(91, 209, 255, .14);
  border-radius: 9px;
  font-size: .78rem;
  font-weight: 760;
}
.menu-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.55;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  font-size: 1.42rem;
  font-weight: 950;
  letter-spacing: -.06em;
  background: linear-gradient(100deg, var(--cyan) 0%, #6d9cff 38%, var(--violet) 72%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-orbit {
  position: relative;
  width: 30px;
  height: 30px;
  border: 2px solid var(--violet);
  border-radius: 50%;
  box-shadow: inset 0 0 10px rgba(39, 224, 212, .38), 0 0 12px rgba(139, 92, 255, .38);
}
.brand-orbit::after {
  content: "";
  position: absolute;
  top: 3px;
  right: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}
.header-actions { display: flex; gap: 6px; }
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: .72rem;
  font-weight: 850;
  line-height: 1;
}
.action-login {
  color: var(--cyan);
  background: #101128;
  border-color: rgba(39, 224, 212, .38);
}
.action-register {
  color: #071024;
  background: linear-gradient(135deg, var(--cyan), #8aa8ff 55%, #ff83da);
}

.category-hero {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 28px 22px;
  background:
    linear-gradient(110deg, rgba(5, 9, 20, .98), rgba(8, 17, 39, .76)),
    radial-gradient(circle at 90% 45%, rgba(155, 92, 255, .48), transparent 28%),
    radial-gradient(circle at 75% 30%, rgba(49, 229, 255, .28), transparent 22%),
    #071024;
  border-bottom: 1px solid var(--line);
}
.category-hero::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -62px;
  width: 210px;
  height: 210px;
  border: 24px solid rgba(155, 92, 255, .18);
  border-radius: 50%;
  box-shadow:
    0 0 0 18px rgba(49, 229, 255, .07),
    inset 0 0 44px rgba(49, 229, 255, .18);
}
.category-hero > * { position: relative; z-index: 1; }
.eyebrow, .section-kicker {
  margin: 0 0 7px;
  color: var(--cyan);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
h1 {
  max-width: 360px;
  margin: 0;
  font-size: clamp(1.65rem, 7vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.category-hero > p:not(.eyebrow) {
  max-width: 350px;
  margin: 11px 0 16px;
  color: #d5d1e6;
  font-size: .82rem;
  line-height: 1.62;
}
.hero-cta {
  width: max-content;
  color: #061024;
  background: linear-gradient(135deg, var(--cyan), #79a5ff 58%, #f56acb);
  box-shadow: 0 8px 20px rgba(49, 229, 255, .17);
}

.content-section {
  padding: 22px 13px 24px;
  border-bottom: 1px solid var(--line);
}
.section-deep {
  background: linear-gradient(180deg, #0a1630, #050914);
}
.content-section > h2, .section-heading h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -.025em;
}
.lead-copy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}
.section-heading span {
  max-width: 140px;
  color: var(--cyan);
  font-size: .62rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.info-grid, .topic-grid, .support-grid {
  display: grid;
  gap: 9px;
}
.info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card, .topic-card, .support-card {
  min-width: 0;
  padding: 13px;
  background: linear-gradient(145deg, rgba(20, 36, 74, .94), rgba(14, 24, 49, .94));
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.card-index, .topic-label {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 7px;
  color: #100a25;
  background: linear-gradient(135deg, var(--cyan), #a177ff);
  border-radius: 999px;
  font-size: .55rem;
  font-weight: 950;
}
.info-card h2, .topic-card h2, .support-card h2 {
  margin: 0;
  color: #f4f1ff;
  font-size: .84rem;
}
.info-card p, .topic-card p, .support-card li {
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.55;
}
.info-card p, .topic-card p { margin: 6px 0 0; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.game-card {
  min-width: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow);
}
.game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.game-meta { min-height: 51px; padding: 7px; }
.game-provider {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 2px 5px;
  color: #190f31;
  background: var(--gold);
  border-radius: 999px;
  font-size: .5rem;
  font-weight: 900;
}
.game-meta strong {
  display: block;
  overflow: hidden;
  font-size: .65rem;
  line-height: 1.25;
}

.table-wrap {
  margin-top: 15px;
  overflow-x: auto;
  background: #081228;
  border: 1px solid var(--line);
  border-radius: 12px;
}
table {
  width: 100%;
  min-width: 430px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .65rem;
}
caption {
  padding: 12px 10px;
  color: var(--cyan);
  font-size: .84rem;
  font-weight: 900;
  text-align: left;
}
th, td {
  padding: 10px 7px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: #dbe8ff;
  background: rgba(49, 229, 255, .06);
  font-size: .59rem;
}
td { color: #bdc9e1; }
th:nth-child(1), td:nth-child(1) { width: 26%; }
th:nth-child(2), td:nth-child(2) { width: 21%; }

.step-list { display: grid; gap: 9px; }
.step-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: rgba(20, 36, 74, .68);
  border: 1px solid var(--line);
  border-radius: 11px;
}
.step-card > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #100a25;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  border-radius: 10px;
  font-size: .74rem;
  font-weight: 950;
}
.step-card h2, .step-card h3 {
  margin: 1px 0 4px;
  font-size: .79rem;
}
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.55;
}

.topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topic-card { display: flex; flex-direction: column; }
.topic-card a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: auto;
  padding-top: 9px;
  color: var(--cyan);
  font-size: .66rem;
  font-weight: 850;
}
.wide-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 13px;
  color: #081024;
  background: linear-gradient(135deg, var(--cyan), #91a5ff, var(--gold));
  border-radius: 11px;
  font-size: .74rem;
  font-weight: 900;
}

.support-title {
  display: flex;
  align-items: center;
  gap: 9px;
}
.support-title span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: #100a25;
  background: var(--cyan);
  border-radius: 9px;
  font-size: .61rem;
  font-weight: 950;
}
.support-card ol { margin: 10px 0 0; padding-left: 19px; }
.support-card li + li { margin-top: 5px; }

.faq-list { display: grid; gap: 8px; margin-top: 12px; }
details {
  background: rgba(20, 36, 74, .68);
  border: 1px solid var(--line);
  border-radius: 10px;
}
summary {
  min-height: 48px;
  padding: 14px 36px 12px 12px;
  color: #f4f1ff;
  cursor: pointer;
  font-size: .72rem;
  font-weight: 820;
}
details p {
  margin: 0;
  padding: 0 12px 13px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.55;
}
.notice {
  margin-top: 14px;
  padding: 11px 12px;
  color: #d7d3e8;
  background: #0b0b1b;
  border-left: 3px solid var(--cyan);
  border-radius: 0 9px 9px 0;
  font-size: .68rem;
  line-height: 1.58;
}
.responsible {
  margin: 17px 12px 0;
  padding: 13px;
  color: #d9d5e9;
  background: rgba(255, 209, 102, .06);
  border: 1px solid rgba(255, 209, 102, .2);
  border-radius: 10px;
  font-size: .69rem;
  line-height: 1.55;
  text-align: center;
}
.responsible p { margin: 5px 0 0; }

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: min(100%, 480px);
  min-height: 64px;
  margin: 0 auto;
  padding: 6px 5px calc(6px + env(safe-area-inset-bottom));
  background: rgba(10, 9, 25, .97);
  border-top: 1px solid rgba(139, 92, 255, .34);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .24);
  backdrop-filter: blur(12px);
}
.bottom-nav a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 50px;
  padding: 5px 2px;
  color: #aaa6c3;
  border-radius: 9px;
  font-size: .56rem;
  font-weight: 780;
  text-align: center;
}
.bottom-nav a:nth-child(4) {
  color: #160e2e;
  background: linear-gradient(135deg, var(--gold), #fff0aa);
}

@media (max-width: 370px) {
  .site-header { grid-template-columns: 34px 1fr auto; gap: 6px; }
  .brand { font-size: 1.22rem; }
  .primary-action { padding-inline: 8px; font-size: .65rem; }
  .category-hero { padding-inline: 16px; }
  .info-grid, .topic-grid { grid-template-columns: 1fr; }
  .game-grid { gap: 6px; }
}
