/* GameDiscovery content pages (guides, 404). Shares tokens with src/styles.css. */
@font-face {
  font-family: 'Inter Variable';
  src: url('/fonts/inter-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk Variable';
  src: url('/fonts/space-grotesk-latin-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #07071a;
  --bg-soft: #0a0a20;
  --surface: #101027;
  --text: #f8f7ff;
  --muted: #aaa9be;
  --faint: #9896ad;
  --line: rgba(255, 255, 255, 0.11);
  --cyan: #54e8f1;
  --violet: #9a72ff;
  --pink: #f54da9;
  --orange: #ff9256;
  --display: 'Space Grotesk Variable', 'Arial Black', sans-serif;
  --body: 'Inter Variable', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--text); background: radial-gradient(circle at 88% 0%, rgba(99, 56, 179, 0.1), transparent 30rem), var(--bg); font-family: var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 650; }
p { color: var(--muted); line-height: 1.75; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.text-gradient { color: transparent; background: linear-gradient(100deg, var(--cyan) 4%, #7f9bff 34%, #cb64e8 66%, var(--orange)); background-clip: text; -webkit-background-clip: text; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #cbc9dc; font-family: var(--display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; line-height: 1.4; text-transform: uppercase; }
.eyebrow::before { width: 20px; height: 1px; content: ''; background: var(--pink); }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 12px 18px; border-radius: 8px; color: var(--bg); background: var(--cyan); transform: translateY(-150%); }
.skip-link:focus-visible { transform: translateY(0); }

/* Buttons */
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; color: #fff; background: linear-gradient(110deg, #d02c8a, #d8385f 48%, #c5501c); box-shadow: 0 12px 34px rgba(208, 44, 138, 0.24), inset 0 1px rgba(255, 255, 255, 0.22); font-family: var(--display); font-size: 0.92rem; font-weight: 650; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.button svg { width: 18px; height: 18px; }
.button:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(208, 44, 138, 0.34), inset 0 1px rgba(255, 255, 255, 0.22); }
.button--small { min-height: 44px; padding: 0 18px; border-radius: 10px; font-size: 0.84rem; }
.button--outline { border-color: rgba(255, 255, 255, 0.2); background: transparent; box-shadow: none; }
.button--outline:hover { background: rgba(255, 255, 255, 0.06); box-shadow: none; }

/* Header */
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: rgba(7, 7, 26, 0.86); backdrop-filter: blur(18px); }
.site-header__inner { display: flex; height: 80px; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: auto; height: 30px; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav > a:not(.button) { position: relative; color: #cfcddc; font-size: 0.86rem; font-weight: 550; white-space: nowrap; }
.main-nav > a:not(.button):hover, .main-nav > a[aria-current='page'] { color: #fff; }
.main-nav > a[aria-current='page']::after { position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; content: ''; background: var(--cyan); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 21px; height: 21px; }
.mobile-nav nav { position: absolute; top: 56px; right: 0; display: flex; width: min(320px, calc(100vw - 36px)); padding: 16px; flex-direction: column; border: 1px solid var(--line); border-radius: 15px; background: rgba(13, 13, 35, 0.98); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.mobile-nav nav a:not(.button) { padding: 14px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: #dedcea; font-size: 0.95rem; }
.mobile-nav nav .button { margin-top: 14px; }

/* Breadcrumbs */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 34px; padding: 0; list-style: none; color: var(--faint); font-size: 0.84rem; }
.breadcrumbs li + li::before { margin-right: 8px; content: '/'; color: #5f5d74; }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current='page'] { color: #c9c7d8; }

/* Article */
.article { padding: 56px 0 40px; }
.article__header { max-width: 820px; }
.article__header .eyebrow { margin-bottom: 20px; }
.article__header h1 { font-size: clamp(2.6rem, 5.2vw, 4.2rem); line-height: 1.02; letter-spacing: -0.05em; }
.article__description { max-width: 720px; margin-top: 22px; font-size: 1.12rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; color: var(--faint); font-size: 0.86rem; }
.article__meta a { color: #dedcea; }
.article__meta a:hover { color: var(--cyan); }
.article__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; margin-top: 56px; align-items: start; }
.article__toc { position: sticky; top: 110px; padding: 20px 0; border-top: 1px solid var(--line); }
.article__toc p { margin-bottom: 14px; color: #dedcea; font-family: var(--display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.article__toc ol { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.article__toc li { counter-increment: toc; }
.article__toc a { display: grid; grid-template-columns: 26px 1fr; color: var(--faint); font-size: 0.88rem; line-height: 1.45; transition: color 0.2s ease; }
.article__toc a::before { content: counter(toc, decimal-leading-zero); color: #6d6b83; font-family: var(--display); font-size: 0.74rem; padding-top: 1px; }
.article__toc a:hover { color: var(--cyan); }
.article__main { max-width: 760px; }

.short-answer { position: relative; margin-bottom: 40px; padding: 24px 26px; overflow: hidden; border: 1px solid rgba(84, 232, 241, 0.24); border-radius: 18px; background: linear-gradient(120deg, rgba(84, 232, 241, 0.07), rgba(154, 114, 255, 0.06)); }
.short-answer::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; content: ''; background: linear-gradient(180deg, var(--cyan), #cb64e8, var(--orange)); }
.short-answer__label { margin-bottom: 8px; color: var(--cyan) !important; font-family: var(--display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.short-answer p:last-child { color: #e8e6f4; font-size: 1.08rem; line-height: 1.7; }

.prose { color: #c9c7d8; font-size: 1.06rem; line-height: 1.8; }
.prose > * + * { margin-top: 1.15em; }
.prose p { color: #c9c7d8; line-height: 1.8; }
.prose h2 { margin-top: 2.3em; color: #fff; font-size: 1.85rem; line-height: 1.18; letter-spacing: -0.035em; scroll-margin-top: 100px; }
.prose h3 { margin-top: 1.8em; color: #f1effa; font-size: 1.28rem; line-height: 1.3; letter-spacing: -0.02em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(84, 232, 241, 0.4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--cyan); }
.prose strong { color: #fff; font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { padding-left: 0.3em; }
.prose li + li { margin-top: 0.5em; }
.prose ul li::marker { color: var(--pink); }
.prose ol li::marker { color: var(--cyan); font-family: var(--display); font-weight: 600; }
.prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--violet); color: #dedcea; font-style: italic; }
.prose code { padding: 2px 6px; border-radius: 6px; color: #e8e6f4; background: rgba(255, 255, 255, 0.07); font-size: 0.9em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: #fff; background: rgba(255, 255, 255, 0.04); font-family: var(--display); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }

/* Article FAQ */
.article-faq { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.article-faq h2 { margin-bottom: 18px; font-size: 1.85rem; letter-spacing: -0.035em; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { color: #ecebf6; font-size: 1.1rem; line-height: 1.4; letter-spacing: -0.015em; }
.faq-item__icon { display: grid; width: 34px; height: 34px; flex-shrink: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--cyan); transition: transform 0.25s ease; }
.faq-item__icon svg { width: 16px; height: 16px; }
.faq-item[open] .faq-item__icon { transform: rotate(180deg); }
.faq-item p { padding: 0 52px 22px 0; font-size: 1rem; }

/* CTA panel */
.cta-panel { display: flex; gap: 22px; margin-top: 56px; padding: 32px; border: 1px solid rgba(190, 89, 211, 0.24); border-radius: 22px; background: linear-gradient(110deg, rgba(71, 214, 230, 0.06), rgba(143, 75, 211, 0.08), rgba(240, 100, 120, 0.07)); }
.cta-panel__icon { display: grid; width: 52px; height: 52px; flex-shrink: 0; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #795bea, #e64fa9); }
.cta-panel__icon svg { width: 24px; height: 24px; }
.cta-panel__eyebrow { color: var(--cyan) !important; font-family: var(--display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.cta-panel h2 { margin: 8px 0 10px; font-size: 1.7rem; line-height: 1.15; letter-spacing: -0.035em; }
.cta-panel__copy > p:not(.cta-panel__eyebrow) { font-size: 1rem; }
.cta-panel__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: #d6d4e3; background: rgba(255, 255, 255, 0.03); transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.social-links a:hover { color: var(--cyan); border-color: rgba(84, 232, 241, 0.4); transform: translateY(-3px); }
.social-links svg { width: 17px; height: 17px; }

/* Guide cards */
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.guide-card { display: flex; height: 100%; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)); transition: transform 0.3s ease, border-color 0.3s ease; }
.guide-card:hover { border-color: rgba(84, 232, 241, 0.32); transform: translateY(-5px); }
.guide-card__meta { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.guide-card__meta svg { width: 14px; height: 14px; }
.guide-card h3 { margin: 16px 0 10px; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.025em; }
.guide-card p { font-size: 0.93rem; line-height: 1.65; }
.guide-card__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; font-family: var(--display); font-size: 0.9rem; font-weight: 600; }
.guide-card__cta svg { width: 16px; height: 16px; }
.related { padding: 70px 0 110px; border-top: 1px solid rgba(255, 255, 255, 0.055); background: var(--bg-soft); }
.related h2 { margin-bottom: 30px; font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.045em; }

/* Hub */
.hub-hero { padding: 56px 0 50px; }
.hub-hero .eyebrow { margin-bottom: 20px; }
.hub-hero h1 { max-width: 900px; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.055em; }
.hub-hero__lead { max-width: 720px; margin-top: 24px; font-size: 1.14rem; }
.hub-list { padding: 10px 0 110px; }

/* 404 */
.not-found { display: grid; min-height: 64vh; place-items: center; padding: 90px 0; text-align: center; }
.not-found .eyebrow { margin-bottom: 20px; }
.not-found .eyebrow::before { display: none; }
.not-found h1 { font-size: clamp(3rem, 7vw, 5.6rem); line-height: 1; letter-spacing: -0.06em; }
.not-found p { max-width: 520px; margin: 22px auto 0; font-size: 1.08rem; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

/* Footer */
.site-footer { padding: 70px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.055); }
.site-footer__top { display: flex; justify-content: space-between; gap: 50px; padding-bottom: 48px; }
.site-footer__brand { max-width: 320px; }
.site-footer__brand p { margin-top: 20px; font-size: 0.9rem; line-height: 1.7; }
.site-footer__nav { display: flex; gap: 64px; }
.site-footer__nav > div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.site-footer__nav span { margin-bottom: 4px; color: var(--faint); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer__nav a, .site-footer__link-button { padding: 0; border: 0; color: #c0bed0; background: none; font: inherit; font-size: 0.9rem; text-align: left; cursor: pointer; transition: color 0.2s ease; }
.site-footer__nav a:hover, .site-footer__link-button:hover { color: var(--cyan); }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); }
.site-footer__bottom p { color: var(--faint); font-size: 0.82rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
.site-footer__legal nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer__legal a, .site-footer__legal .site-footer__link-button { color: #c0bed0; font-size: 0.82rem; }
.site-footer__legal a:hover { color: var(--cyan); }
.prose address { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; color: #e6e4f2; background: rgba(255, 255, 255, 0.03); font-style: normal; line-height: 1.7; }
.article--legal .prose h2 { font-size: 1.5rem; }
.site-footer__socials { display: flex; gap: 18px; }
.site-footer__socials a { color: #a3a1b8; transition: color 0.2s ease; }
.site-footer__socials a:hover { color: var(--cyan); }
.site-footer__socials svg { width: 16px; height: 16px; }

@media (max-width: 1080px) {
  .main-nav { display: none; }
  .mobile-nav { display: block; }
}

@media (max-width: 960px) {
  .article__layout { grid-template-columns: 1fr; gap: 34px; }
  .article__toc { position: static; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__top { flex-direction: column; }
}

@media (max-width: 640px) {
  .shell { width: calc(100% - 32px); }
  .site-header__inner { height: 72px; }
  .brand img { height: 26px; }
  .article { padding-top: 36px; }
  .article__layout { margin-top: 40px; }
  .prose { font-size: 1.02rem; }
  .prose h2 { font-size: 1.55rem; }
  .short-answer { padding: 20px; }
  .faq-item p { padding-right: 0; }
  .cta-panel { flex-direction: column; padding: 24px; }
  .guide-grid { grid-template-columns: 1fr; }
  .site-footer__nav { flex-wrap: wrap; gap: 32px 44px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}

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