:root {
  --brand: #0c6b45;
  --brand-dark: #084c31;
  --brand-light: #e8f5ef;
  --accent: #c89b1a;
  --accent-soft: #f7efd6;
  --ink: #15202b;
  --muted: #5a6a78;
  --line: #d7e3dc;
  --bg: #f4f8f6;
  --surface: #ffffff;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(8, 40, 28, 0.08);
  --max: 1120px;
  --header-h: 72px;
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(12, 107, 69, 0.12), transparent 60%),
    radial-gradient(900px 400px at 100% 0%, rgba(200, 155, 26, 0.12), transparent 55%),
    linear-gradient(180deg, #eef6f1 0%, var(--bg) 220px, #f7faf8 100%);
  line-height: 1.75;
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--brand-dark);
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(215, 227, 220, 0.9);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.brand span {
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(12, 107, 69, 0.28);
}

.btn-primary:hover {
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-accent {
  background: linear-gradient(135deg, #d4a017 0%, #a87c0d 100%);
  color: #fff;
  box-shadow: 0 8px 20px rgba(168, 124, 13, 0.25);
}

.btn-accent:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 28, 20, 0.35) 0%, rgba(6, 28, 20, 0.72) 55%, rgba(6, 28, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(6, 28, 20, 0.55), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 72px 0 64px;
  max-width: 720px;
  animation: fadeUp 0.8s ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.65);
  border-block: 1px solid rgba(215, 227, 220, 0.7);
}

.section-head {
  margin-bottom: 28px;
  max-width: 760px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  line-height: 1.3;
}

.prose h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.55rem;
}

.prose h3 {
  margin: 1.5rem 0 0.6rem;
  font-size: 1.2rem;
}

.prose p {
  margin: 0 0 1rem;
  color: #243240;
}

.prose ul,
.prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: var(--ink);
}

.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 28px;
  box-shadow: var(--shadow);
}

.toc strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
}

.toc a {
  font-weight: 500;
}

/* Grids */
.feature-grid,
.game-grid,
.partner-grid,
.advantage-grid,
.step-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.game-grid {
  grid-template-columns: repeat(4, 1fr);
}

.partner-grid {
  grid-template-columns: repeat(4, 1fr);
}

.advantage-grid,
.step-grid {
  grid-template-columns: repeat(2, 1fr);
}

.feature-item,
.game-item,
.advantage-item,
.step-item,
.content-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-item,
.advantage-item,
.step-item,
.content-panel {
  padding: 22px;
}

.feature-item h3,
.advantage-item h3,
.step-item h3,
.game-item h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.feature-item p,
.advantage-item p,
.step-item p,
.game-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.game-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.game-item .game-body {
  padding: 14px 16px 18px;
}

.partner-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid;
  place-items: center;
  min-height: 110px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.partner-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.partner-item img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}

.shot-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}

.shot-row img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.shot-row.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.shot-row.reverse .shot-copy {
  order: -1;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  font-size: 1.2rem;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
}

/* Auth pages */
.auth-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
  padding: 48px 0 72px;
}

.auth-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-form h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.auth-form .form-lead {
  margin: 0 0 22px;
  color: var(--muted);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}

.form-group input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font: inherit;
  background: #fff;
}

.form-group input:focus {
  outline: 2px solid rgba(12, 107, 69, 0.25);
  border-color: var(--brand);
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-aside img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

/* Legal / error */
.page-hero {
  padding: 48px 0 20px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 700px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  opacity: 0.5;
}

.error-page {
  min-height: calc(100vh - var(--header-h) - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 0;
}

.error-page h1 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--brand);
}

.error-page p {
  margin: 0 0 24px;
  color: var(--muted);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 18px;
}

.related-links a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #0b1c16;
  color: rgba(255, 255, 255, 0.82);
  padding: 48px 0 24px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.site-footer h3 {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
}

.provider-row img {
  height: 28px;
  width: auto;
  opacity: 0.9;
  filter: grayscale(0.2);
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Mobile */
@media (max-width: 960px) {
  .feature-grid,
  .partner-grid,
  .advantage-grid,
  .step-grid,
  .auth-layout,
  .shot-row,
  .shot-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shot-row.reverse .shot-copy {
    order: 0;
  }

  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-panel {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
    z-index: 99;
    padding: 16px;
  }

  .mobile-panel.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-panel nav {
    display: grid;
    gap: 4px;
  }

  .mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--ink);
    font-weight: 600;
  }

  .mobile-panel a:hover,
  .mobile-panel a.active {
    background: var(--brand-light);
    color: var(--brand-dark);
  }

  .mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  .feature-grid,
  .partner-grid,
  .advantage-grid,
  .step-grid,
  .auth-layout,
  .game-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 56px 0 48px;
  }

  .section {
    padding: 52px 0;
  }

  .nav-actions .btn-secondary {
    display: none;
  }
}

@media (min-width: 961px) {
  .mobile-panel {
    display: none;
  }
}

/* Top ads bar */
.ads-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  padding: 8px 0 6px;
}

#ads {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 2px;
  background: transparent;
  margin: 0;
  min-height: 0;
}

#ads > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  box-sizing: border-box;
}

#ads figure {
  margin: 0;
}

#ads img {
  width: 65px;
  height: 65px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
  display: block;
  border: none;
  background: linear-gradient(135deg, #fff, #fff);
}

#ads a {
  display: inline-block;
  text-decoration: none;
  border-radius: 15px;
}

#ads img:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 24px rgba(24, 24, 24, 0.18);
}

#ads figcaption,
#ads .caption {
  height: 15px;
  font-size: 11px;
  color: #666;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 4px;
}
