:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --text: #17212b;
  --muted: #607083;
  --line: #d9e1e9;
  --red: #ca3037;
  --shadow: 0 18px 48px rgba(25, 42, 59, 0.12);
  --game-accent: #ca3037;
  --game-accent-soft: #f1a5a8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 88% 8%, color-mix(in srgb, var(--game-accent-soft) 22%, transparent), transparent 25rem),
    var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a {
  color: inherit;
}

main {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--game-accent);
  font-weight: 750;
  text-decoration: none;
}

.guide-hero,
.index-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--game-accent) 30%, var(--line));
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.86)),
    var(--game-accent-soft);
  box-shadow: var(--shadow);
}

.guide-hero::before,
.guide-hero::after,
.index-hero::before {
  position: absolute;
  border: 2px solid color-mix(in srgb, var(--game-accent) 18%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.guide-hero::before,
.index-hero::before {
  width: 360px;
  height: 360px;
  right: -125px;
  top: -165px;
}

.guide-hero::after {
  width: 210px;
  height: 210px;
  right: 92px;
  bottom: -155px;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 26px;
  align-items: center;
  padding: 54px 58px;
}

.hero-copy,
.version-mascot {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker,
.game-card-generation {
  display: block;
  color: var(--game-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin: 10px 0 16px;
  font-size: clamp(36px, 5.5vw, 62px);
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero-copy > p:not(.verification) {
  max-width: 700px;
  margin-bottom: 26px;
  color: #475668;
  font-size: 18px;
}

.hero-actions,
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 850;
  line-height: 1.2;
  padding: 11px 17px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--game-accent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--game-accent) 24%, transparent);
  color: #ffffff;
}

.button.secondary {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text);
}

.verification {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.verification span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #269c61;
  box-shadow: 0 0 0 4px rgba(38, 156, 97, 0.12);
}

.version-mascot {
  width: 100%;
  min-height: 350px;
  margin: -28px 0 -34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mascot-glow {
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--game-accent-soft) 48%, #ffffff) 0 22%, color-mix(in srgb, var(--game-accent) 16%, transparent) 48%, transparent 70%);
  filter: blur(3px);
  opacity: 0.88;
}

.version-mascot img {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  height: 350px;
  object-fit: contain;
  filter:
    drop-shadow(0 18px 16px rgba(17, 26, 35, 0.18))
    drop-shadow(0 6px 7px color-mix(in srgb, var(--game-accent) 22%, transparent));
  transform: translateY(3px);
}

.quick-facts {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin: 22px 0 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
  box-shadow: 0 8px 24px rgba(25, 42, 59, 0.06);
}

.quick-facts > div {
  position: relative;
  min-width: 0;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 20px;
}

.quick-facts span,
.sidebar-dns span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.quick-facts strong {
  margin-top: 3px;
  font-size: 15px;
}

.quick-facts button {
  position: absolute;
  right: 14px;
  top: 50%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 9px;
  transform: translateY(-50%);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) 250px;
  gap: 38px;
  align-items: start;
}

.guide-content {
  min-width: 0;
}

.content-section {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(25, 42, 59, 0.055);
  padding: 34px 36px;
  scroll-margin-top: 90px;
}

.content-section h2,
.other-guides h2 {
  margin: 5px 0 12px;
  font-size: clamp(25px, 3.4vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.content-section > p {
  color: #4f5f70;
}

.setup-steps,
.compact-steps {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.setup-steps > li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 30px;
  scroll-margin-top: 90px;
}

.setup-steps > li:not(:last-child) .step-number::after {
  position: absolute;
  width: 2px;
  height: calc(100% + 18px);
  left: 50%;
  top: 42px;
  background: color-mix(in srgb, var(--game-accent) 20%, var(--line));
  content: "";
  transform: translateX(-50%);
}

.step-number {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--game-accent) 12%, #ffffff);
  color: var(--game-accent);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 950;
}

.setup-steps h3 {
  margin: 6px 0 5px;
  font-size: 18px;
}

.setup-steps p,
.trouble-grid p {
  margin-bottom: 0;
  color: #536273;
}

.dns-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 17px;
}

.dns-settings span {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
}

.dns-settings small {
  color: var(--muted);
  font-weight: 700;
}

.dns-settings b {
  white-space: nowrap;
}

.help-callout,
.index-help {
  border: 1px solid color-mix(in srgb, var(--game-accent) 22%, var(--line));
  border-radius: 13px;
  background: color-mix(in srgb, var(--game-accent-soft) 12%, #ffffff);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 19px;
}

.help-callout div,
.index-help div {
  display: grid;
  gap: 2px;
}

.help-callout span,
.index-help span {
  color: var(--muted);
  font-size: 13px;
}

.help-callout a {
  flex: 0 0 auto;
  color: var(--game-accent);
  font-weight: 850;
}

.feature-section {
  border-top: 4px solid var(--game-accent);
}

.compact-steps {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.compact-steps li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.compact-steps b:first-child {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--game-accent) 12%, #ffffff);
  color: var(--game-accent);
  display: grid;
  place-items: center;
}

.text-link {
  color: var(--game-accent);
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.trouble-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.trouble-grid > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 16px;
}

.trouble-grid p {
  margin-top: 5px;
  font-size: 14px;
}

.faq-section details {
  border-top: 1px solid var(--line);
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  cursor: pointer;
  font-weight: 850;
  padding: 17px 3px;
}

.faq-section details p {
  margin: -5px 3px 18px;
  color: #536273;
}

.guide-sidebar {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(25, 42, 59, 0.06);
  display: grid;
  overflow: hidden;
  padding: 17px;
}

.guide-sidebar > strong {
  margin-bottom: 8px;
  font-size: 13px;
}

.guide-sidebar > a {
  border-radius: 8px;
  color: #4d5c6d;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 9px;
  text-decoration: none;
}

.guide-sidebar > a:hover,
.guide-sidebar > a:focus-visible {
  background: color-mix(in srgb, var(--game-accent) 9%, #ffffff);
  color: var(--game-accent);
}

.sidebar-dns {
  margin-top: 12px;
  border-radius: 10px;
  background: #17212b;
  color: #ffffff;
  display: grid;
  padding: 13px;
}

.sidebar-dns span {
  color: #b8c4cf;
}

.sidebar-dns b {
  margin-top: 2px;
  font-size: 16px;
  letter-spacing: 0.03em;
}

.other-guides {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 26px;
  border-radius: 18px;
  background: #17212b;
  color: #ffffff;
  padding: 30px 34px;
}

.other-guides .section-kicker {
  color: var(--game-accent-soft);
}

.other-guides h2 {
  margin-bottom: 0;
}

.guide-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-pills a {
  border: 1px solid #46525e;
  border-radius: 999px;
  background: #25313c;
  font-size: 13px;
  font-weight: 750;
  padding: 7px 12px;
  text-decoration: none;
}

.guide-pills a:hover,
.guide-pills a:focus-visible {
  border-color: var(--game-accent-soft);
  background: #33414e;
}

footer {
  width: min(1160px, calc(100% - 32px));
  margin: -40px auto 32px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Guide index */
.guide-index {
  --game-accent: #ca3037;
  --game-accent-soft: #f1a5a8;
}

.index-hero {
  padding: 56px;
}

.index-hero p {
  max-width: 720px;
  margin: 0;
  color: #4d5c6d;
  font-size: 18px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.game-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(25, 42, 59, 0.055);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 23px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.game-card::after {
  position: absolute;
  width: 150px;
  height: 150px;
  right: -70px;
  top: -70px;
  border: 22px solid color-mix(in srgb, var(--game-accent) 9%, transparent);
  border-radius: 50%;
  content: "";
}

.game-card:hover,
.game-card:focus-visible {
  border-color: color-mix(in srgb, var(--game-accent) 45%, var(--line));
  box-shadow: 0 18px 38px rgba(25, 42, 59, 0.12);
  transform: translateY(-3px);
}

.game-card strong {
  max-width: 220px;
  margin: 12px 0 8px;
  font-size: 25px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.game-card > span:not(.game-card-generation) {
  color: var(--muted);
  font-size: 14px;
}

.game-card > b {
  margin-top: auto;
  color: var(--game-accent);
  padding-top: 18px;
}

.index-help {
  background: var(--surface);
}

@media (max-width: 920px) {
  .guide-hero {
    grid-template-columns: minmax(0, 1fr) 300px;
    padding: 42px;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-sidebar {
    display: none;
  }

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

@media (max-width: 680px) {
  main {
    width: min(100% - 20px, 1160px);
    padding-top: 14px;
  }

  .guide-hero {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

  .version-mascot {
    width: min(320px, 88vw);
    min-height: 300px;
    margin: -12px auto -22px;
    justify-self: center;
  }

  .version-mascot img {
    height: 300px;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .content-section {
    border-radius: 14px;
    padding: 26px 20px;
  }

  .dns-settings,
  .trouble-grid {
    grid-template-columns: 1fr;
  }

  .help-callout,
  .index-help,
  .other-guides {
    display: grid;
    grid-template-columns: 1fr;
  }

  .feature-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .other-guides {
    gap: 18px;
    padding: 26px 22px;
  }

  .index-hero {
    padding: 36px 25px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  footer {
    margin-top: -42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
