:root {
  --bg: #070b16;
  --bg-soft: #0d1425;
  --panel: #121b30;
  --panel-2: #182342;
  --line: #24304f;
  --text: #e8edf7;
  --muted: #9aa8c4;
  --gold: #f6c445;
  --gold-2: #ffdd7a;
  --accent: #3c6cf6;
  --accent-2: #6f4df4;
  --radius: 14px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

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

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

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 22, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 6px 18px rgba(0, 0, 0, .45);
  transition: transform .3s ease, box-shadow .3s ease;
}
.brand:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 8px 24px rgba(0, 0, 0, .55);
}
.brand img { height: 46px; width: auto; }

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { text-decoration: none; }

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .55s ease;
}
.btn:hover::after { left: 130%; }

.btn-login {
  color: var(--gold);
  border: 1px solid var(--gold);
  background: transparent;
}
.btn-login:hover {
  background: rgba(246, 196, 69, .12);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(246, 196, 69, .22);
}

.btn-signup {
  color: #14100a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  border: 1px solid transparent;
  box-shadow: 0 6px 18px rgba(246, 196, 69, .28);
}
.btn-signup:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 28px rgba(246, 196, 69, .45);
}

.btn-play {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 14px 40px;
  font-size: 17px;
  box-shadow: 0 10px 30px rgba(60, 108, 246, .4);
  animation: pulse 2.6s ease-in-out infinite;
}
.btn-play:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 16px 40px rgba(111, 77, 244, .55);
  animation-play-state: paused;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(60, 108, 246, .4); }
  50% { box-shadow: 0 10px 42px rgba(111, 77, 244, .7); }
}

.hero { padding: 28px 0 10px; }

.hero-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  min-height: 380px;
  display: flex;
  align-items: center;
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(5, 8, 18, .92) 0%, rgba(5, 8, 18, .74) 45%, rgba(5, 8, 18, .18) 100%);
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 46px 40px;
  max-width: 620px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(246, 196, 69, .14);
  border: 1px solid rgba(246, 196, 69, .45);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  display: block;
  font-size: 44px;
  line-height: 1.14;
  font-weight: 800;
  margin-bottom: 14px;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  display: block;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 26px;
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}
.hero-meta span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.section { padding: 46px 0 10px; }

.section-head { margin-bottom: 24px; }

.section-title {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
}

.section-sub {
  display: block;
  color: var(--muted);
  font-size: 16px;
  margin-top: 6px;
}

.slots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.slot-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.slot-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: rgba(246, 196, 69, .6);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .55);
}

.slot-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.slot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .35s ease;
}
.slot-card:hover .slot-media img {
  transform: scale(1.12);
  filter: brightness(.45) saturate(1.15);
}

.slot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .35s ease;
}
.slot-card:hover .slot-overlay { opacity: 1; }

.slot-overlay .btn {
  padding: 10px 30px;
  color: #14100a;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  transform: translateY(14px);
  transition: transform .35s ease, box-shadow .25s ease;
}
.slot-card:hover .slot-overlay .btn { transform: translateY(0); }
.slot-overlay .btn:hover { box-shadow: 0 10px 26px rgba(246, 196, 69, .5); }

.slot-name {
  display: block;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-top: 1px solid var(--line);
}

.toc {
  margin: 46px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 18px 22px;
  background: var(--panel-2);
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .25s ease;
}
.toc-head:hover { background: #1d2a51; }

.toc-arrow {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg);
  transition: transform .3s ease;
}
.toc-head[aria-expanded="true"] .toc-arrow { transform: rotate(-135deg); }

.toc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.toc-list {
  margin: 0;
  padding: 16px 22px 22px;
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 30px;
}
.toc-list li {
  break-inside: avoid;
  margin-bottom: 9px;
}
.toc-list li.sub { padding-left: 20px; }
.toc-list a {
  color: var(--text);
  font-size: 15px;
  transition: color .2s ease, padding-left .2s ease;
}
.toc-list a:hover {
  color: var(--gold);
  padding-left: 5px;
  text-decoration: none;
}

.article { padding: 40px 0 20px; }

.article-body { max-width: 900px; }

.article-body h1 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 800;
  margin: 0 0 20px;
}
.article-body h2 {
  font-size: 27px;
  line-height: 1.25;
  font-weight: 800;
  margin: 42px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
}
.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 12px;
  color: var(--gold-2);
}
.article-body p { margin: 0 0 16px; }
.article-body strong { color: #fff; }
.article-body ol, .article-body ul { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 34px 0;
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
  font-size: 15px;
}
.article-body th, .article-body td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.article-body thead th {
  background: var(--panel-2);
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}
.article-body tbody tr:last-child td { border-bottom: 0; }
.article-body tbody tr:nth-child(even) { background: rgba(255, 255, 255, .02); }
.article-body td:first-child { color: var(--muted); }

.faq { margin-top: 8px; }

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

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 17px 20px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.faq-q:hover { background: var(--panel-2); color: var(--gold); }

.faq-icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-a p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.faq-a strong { color: var(--text); }

.site-footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 40px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.footer-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-logo {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 10px;
  background: #fff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .3);
  margin-bottom: 14px;
}
.footer-brand img { height: 42px; width: auto; }

.footer-text {
  display: block;
  color: var(--muted);
  font-size: 14px;
  max-width: 380px;
}

.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--muted); font-size: 14px; transition: color .2s ease; }
.footer-links a:hover { color: var(--gold); text-decoration: none; }

.footer-note {
  display: block;
  padding-top: 22px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

@media (max-width: 1024px) {
  .slots-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-title { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 64px; }
  .brand img { height: 36px; }
  .btn { padding: 9px 18px; font-size: 14px; }
  .slots-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { min-height: 0; }
  .hero-body { padding: 30px 22px; }
  .hero-title { font-size: 28px; }
  .hero-text { font-size: 15px; }
  .toc-list { columns: 1; }
  .article-body h1 { font-size: 28px; }
  .article-body h2 { font-size: 22px; }
  .section-title { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .header-actions { gap: 8px; }
  .btn { padding: 8px 14px; font-size: 13px; }
}
