:root {
  --primary: #d4a843;
  --primary-dark: #b8922f;
  --text: #f7ead6;
  --cream: #f7ead6;
  --sand: #d8c3a5;
  --muted: #b8a58e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body[data-page-type="player-guide"] {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(212, 168, 67, 0.18), transparent 24%),
    radial-gradient(circle at 86% 16%, rgba(79, 159, 224, 0.15), transparent 22%),
    linear-gradient(180deg, #1e1510 0%, #18110d 100%);
}

a {
  color: inherit;
}

.page-shell {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding-block: 18px;
  padding-inline: max(16px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid rgba(212, 168, 67, 0.16);
  background: linear-gradient(180deg, rgba(30, 21, 16, 0.98), rgba(26, 18, 14, 0.94));
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-image {
  display: block;
  width: min(148px, 22vw);
  height: auto;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

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

.lang-switch {
  display: inline-flex;
  flex-shrink: 0;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn {
  min-width: 42px;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease;
}

.lang-btn:hover,
.lang-btn:focus-visible,
.lang-btn.is-active {
  color: #1e1510;
  background: linear-gradient(180deg, #f5cc68, #d4a843);
}

.header-btn,
.menu-btn,
.hero-btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.header-btn,
.menu-btn {
  padding: 12px 18px;
  border-radius: 14px;
}

.header-btn {
  color: #1e1510;
  background: linear-gradient(180deg, #f5cc68, #d4a843);
  box-shadow: 0 10px 24px rgba(212, 168, 67, 0.24);
}

.menu-btn {
  display: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.guide-page {
  max-width: 1180px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px auto;
  color: var(--sand);
  font-size: 0.92rem;
}

.breadcrumb a,
.guide-related a,
.site-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
  padding: 34px 0 16px;
}

.guide-hero-copy,
.guide-fact-card,
.guide-card,
.guide-faq details,
.guide-cta-band {
  border: 1px solid rgba(212, 168, 67, 0.18);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(48, 36, 26, 0.96), rgba(32, 23, 17, 0.98));
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
}

.guide-hero-copy {
  padding: clamp(26px, 4vw, 48px);
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e8bb55, var(--primary-dark));
}

.guide-hero h1 {
  max-width: 16ch;
  margin: 14px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.guide-lead,
.guide-card p,
.guide-faq p,
.guide-note,
.guide-fact-card dd {
  color: var(--sand);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.hero-btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(212, 168, 67, 0.24);
  border-radius: 999px;
}

.hero-btn:hover,
.header-btn:hover {
  transform: translateY(-1px);
}

.hero-btn-primary {
  color: #1e1510;
  background: linear-gradient(180deg, #e8bb55 0%, #d4a843 52%, #b8922f 100%);
  box-shadow: 0 16px 30px rgba(184, 146, 47, 0.3);
}

.hero-btn-secondary {
  color: var(--text);
  background: rgba(212, 168, 67, 0.08);
}

.hero-btn-apk {
  color: #102616;
  border-color: rgba(126, 228, 155, 0.58);
  background: linear-gradient(180deg, #7ee49b, #42b96a);
  box-shadow: 0 16px 30px rgba(38, 153, 79, 0.24);
}

.guide-fact-card {
  padding: 26px;
}

.guide-fact-card h2 {
  margin: 0 0 18px;
  font-size: 1.3rem;
}

.guide-fact-card dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.guide-fact-card div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(212, 168, 67, 0.13);
}

.guide-fact-card div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.guide-fact-card dt {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-fact-card dd {
  margin: 4px 0 0;
}

.guide-section {
  padding: 30px 0;
}

.guide-section-head {
  max-width: 760px;
  margin-bottom: 20px;
}

.guide-section h2 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.guide-section-head p {
  color: var(--muted);
  line-height: 1.7;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  padding: 24px;
}

.guide-card .guide-step {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(212, 168, 67, 0.16);
  font-weight: 900;
}

.guide-card h3 {
  margin: 16px 0 8px;
  font-size: 1.18rem;
}

.guide-note {
  padding: 18px 20px;
  border-left: 3px solid var(--primary);
  border-radius: 0 16px 16px 0;
  background: rgba(212, 168, 67, 0.08);
}

.guide-faq {
  display: grid;
  gap: 12px;
}

.guide-faq details {
  padding: 0 22px;
}

.guide-faq summary {
  padding: 20px 0;
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.guide-faq p {
  margin: 0 0 22px;
}

.guide-cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 24px 0 34px;
  padding: 26px;
  background:
    radial-gradient(circle at right top, rgba(212, 168, 67, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(48, 36, 26, 0.96), rgba(32, 23, 17, 0.98));
}

.guide-cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.guide-cta-band p {
  margin: 0;
  color: var(--sand);
}

.guide-cta-actions,
.guide-related {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guide-related a {
  padding: 10px 14px;
  border: 1px solid rgba(212, 168, 67, 0.2);
  border-radius: 999px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 52px auto 0;
  padding: 24px;
  border: 1px solid rgba(212, 168, 67, 0.22);
  border-radius: 26px;
  color: var(--sand);
  background: linear-gradient(135deg, rgba(43, 31, 23, 0.92), rgba(24, 15, 10, 0.9));
}

.site-footer strong {
  color: var(--cream);
  font-size: 1.05rem;
}

.site-footer p {
  max-width: 680px;
  margin: 6px 0 0;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

@media (max-width: 980px) {
  .guide-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .menu-btn {
    display: inline-flex;
    justify-self: end;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 8px;
  }

  .nav.is-open {
    display: flex;
  }

  .topbar-actions {
    grid-column: 1 / -1;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .guide-hero {
    grid-template-columns: 1fr;
  }

  .guide-cta-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100vw - 20px, 1280px);
  }

  .topbar {
    padding-inline: 10px;
  }

  .topbar-actions {
    gap: 8px;
    flex-wrap: nowrap;
  }

  .logo-image {
    width: min(118px, 30vw);
  }

  .header-btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    white-space: nowrap;
  }

  .guide-hero h1 {
    font-size: 2.25rem;
  }

  .guide-cta-actions,
  .guide-cta-actions .hero-btn,
  .hero-actions,
  .hero-actions .hero-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
