:root {
  --page-bg: #f7f7f7;
  --surface: #ffffff;
  --surface-soft: #efefef;
  --text: #1a1a1e;
  --muted: #5b5b63;
  --border: #e6e6e9;
  --footer: #17171f;
  --footer-muted: #c8cad4;
  --primary-a: #100e8f;
  --primary-b: #161dcd;
  --primary-c: #0698f7;
  --shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.8;
}

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

button,
a {
  transition: 0.2s ease;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.top-bar-menu,
.container,
.footer-main,
.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.top-bar-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.top-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
}

.top-logo img {
  display: block;
  height: 46px;
  width: auto;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.footer-logo img {
  display: block;
  height: 46px;
  width: auto;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.top-nav a {
  font-size: 0.96rem;
  font-weight: 700;
}

.top-nav a:hover,
.footer-links a:hover {
  color: var(--primary-b);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--primary-a) 0%, var(--primary-b) 50%, var(--primary-c) 100%);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(22, 29, 205, 0.18);
}

.container {
  padding: 94px 0 28px;
}

.hero-card,
.box {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  overflow: hidden;
  margin-bottom: 24px;
}

.hero-banner {
  height: 260px;
  background: url("../img/hero-background.webp") center center / cover no-repeat;
}

.hero-content {
  display: flex;
  gap: 18px;
  margin: -78px 24px 24px;
  padding: 14px;
  background: var(--surface);
  border-radius: var(--radius);
}

.hero-side {
  width: 220px;
  flex-shrink: 0;
}

.game-cover {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.game-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-button {
  width: 100%;
  margin-bottom: 8px;
}

.platform-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.hero-main {
  flex: 1;
  padding-top: 6px;
}

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

h1 {
  margin-bottom: 6px;
  font-size: 1.95rem;
  font-weight: 800;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-weight: 800;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

p,
li {
  color: var(--text);
  font-size: 1rem;
}

.rating-line {
  margin-top: 0;
  margin-bottom: 14px;
  color: var(--muted);
}

.stats-table {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.stat-item {
  padding: 10px 12px;
  background: var(--page-bg);
  border-radius: 8px;
}

.stat-item p {
  margin: 0;
}

.label {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 4px;
}

.value {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
}

.box {
  padding: 24px 36px;
  margin-bottom: 24px;
}

.article-box {
  overflow: hidden;
}

.article-box h2 {
  margin-top: 34px;
}

.article-box h2:first-of-type {
  margin-top: 0;
}

.article-box h3 {
  margin-top: 24px;
}

.faq-block {
  margin-top: 40px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f3f6ff 0%, #eef4ff 100%);
  border: 1px solid #dbe5ff;
}

.faq-block h2 {
  margin-top: 0;
  margin-bottom: 18px;
}

.faq-card {
  padding: 18px 18px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #dfe7fb;
  box-shadow: 0 6px 18px rgba(16, 14, 143, 0.05);
  margin-bottom: 12px;
}

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

.faq-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #100e8f;
}

.faq-card p {
  margin: 0;
}

.toc-box {
  padding: 0;
  overflow: hidden;
}

.toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 18px;
  background: var(--surface-soft);
  border: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.toc-list {
  margin: 0;
  padding: 16px 38px 20px;
}

.toc-list li {
  margin-bottom: 10px;
}

.toc-list li:last-child {
  margin-bottom: 0;
}

.content-image {
  margin-bottom: 22px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

.article-figure {
  margin: 0 0 22px;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.image-candy-rain {
  height: 280px;
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.5), transparent 12%),
    radial-gradient(circle at 35% 60%, rgba(255, 213, 79, 0.6), transparent 9%),
    radial-gradient(circle at 68% 42%, rgba(255, 118, 184, 0.5), transparent 11%),
    linear-gradient(135deg, #57c7ff, #9f62ff 48%, #ff6fb1);
}

.image-reels {
  height: 260px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.18) 0,
      rgba(255, 255, 255, 0.18) 70px,
      rgba(255, 255, 255, 0.05) 70px,
      rgba(255, 255, 255, 0.05) 102px
    ),
    linear-gradient(135deg, #0e1278, #1a4fda 45%, #24b8ff);
}

ul {
  padding-left: 20px;
}

.article-box ul,
.article-box ol {
  margin: 0 0 20px;
}

.article-box li {
  margin-bottom: 10px;
}

.article-box li:last-child {
  margin-bottom: 0;
}

.article-box li p,
.article-box td p {
  margin: 0;
}

.table-wrap {
  width: 100%;
  margin: 0 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

table td {
  padding: 12px 14px;
  vertical-align: top;
  background: var(--page-bg);
}

table tr td:first-child {
  border-radius: 8px 0 0 8px;
  font-weight: 700;
}

table tr td:last-child {
  border-radius: 0 8px 8px 0;
}

.site-footer {
  margin-top: 10px;
  background: var(--footer);
  color: #fff;
}

.footer-main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 30px 0 20px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-text p,
.footer-bottom p,
.footer-links a {
  color: var(--footer-muted);
}

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

.footer-bottom p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 18px;
}

@media (max-width: 980px) {
  .hero-content,
  .footer-main {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-side {
    width: 100%;
  }

  .game-cover {
    max-width: 220px;
  }

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

@media (max-width: 760px) {
  .top-bar-menu,
  .container,
  .footer-main,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

  .top-bar-menu {
    flex-wrap: wrap;
    padding: 10px 0;
    min-height: auto;
  }

  .top-nav {
    order: 3;
    gap: 14px;
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .top-logo img {
    height: 40px;
  }

  .top-cta {
    display: none;
  }

  .container {
    padding-top: 104px;
  }

  .hero-banner {
    height: 180px;
  }

  .hero-content {
    margin: -44px 12px 12px;
    padding: 18px;
    border-radius: 14px;
  }

  .box {
    padding: 18px;
  }

  h1 {
    font-size: 1.55rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.04rem;
  }

  p,
  li {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .article-box h2 {
    margin-top: 28px;
  }

  .faq-block {
    margin-top: 28px;
    padding: 18px;
  }

  .faq-card {
    padding: 15px 14px;
  }

  .content-image {
    height: 180px;
  }

  .article-figure {
    margin-bottom: 18px;
  }

  .stats-table {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 520px;
  }

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