:root {
  --bg: #060a17;
  --card: #1a1b2a;
  --card-alt: #12121e;
  --line: #2a2c42;
  --text: #e7eef6;
  --muted: #a9bccf;
  --heading: #c8dce2;
  --link: #4aa2ca;
  --link-light: #88c8e0;
  --cta: #dfa829;
  --cta-hover: #be8914;
  --lavender: #c8b8d8;
  --radius: 10px;
  --maxw: 1080px;
  --readw: 760px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(74, 162, 202, 0.12), transparent 60%),
    radial-gradient(900px 480px at -10% 5%, rgba(200, 184, 216, 0.08), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--link-light); }
h1, h2, h3 { color: var(--heading); }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--card); color: var(--text); padding: .5rem .75rem; border-radius: 6px; }

.site-header { position: sticky; top: 0; z-index: 10; background: rgba(6, 10, 23, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { max-width: var(--maxw); margin: 0 auto; padding: .6rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; }
.brand { display: inline-flex; align-items: baseline; color: var(--text); text-decoration: none; }
.wordmark { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .4rem; font-weight: 800; letter-spacing: .02em; line-height: 1.2; }
.wm-game { color: var(--link-light); }
.wm-site { color: var(--heading); }
.wm-tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cta); border: 1px solid rgba(223, 168, 41, 0.6); border-radius: 999px; padding: 0 .45rem; }
.brand:hover .wm-site { color: var(--text); }
.primary-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.primary-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.primary-nav a:hover { color: var(--text); }
.primary-nav a.is-active { color: var(--text); border-bottom-color: var(--cta); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; position: relative; }
.nav-toggle-btn span, .nav-toggle-btn span::before, .nav-toggle-btn span::after { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); content: ""; }
.nav-toggle-btn span { top: 19px; }
.nav-toggle-btn span::before { top: -6px; left: 0; right: 0; }
.nav-toggle-btn span::after { top: 6px; left: 0; right: 0; }
@media (max-width: 739px) {
  .nav-toggle-btn { display: block; }
  .primary-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--card-alt); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  .nav-toggle:checked ~ .primary-nav { display: flex; }
}

.hero { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.25rem 2rem; }
.hero h1 { margin: 0 0 .5rem; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.15; color: var(--heading); }
.hero-lead { margin: 0; max-width: 46rem; color: var(--muted); font-size: 1.12rem; }
.cta { display: inline-block; background: var(--cta); color: var(--bg); font-weight: 700; text-decoration: none; padding: .55rem 1rem; border-radius: 8px; }
.cta:hover { background: var(--cta-hover); color: var(--bg); }

.site-main { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.guide { max-width: var(--readw); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
.guide h1 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.2; margin: .25rem 0 1rem; }
.guide h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; scroll-margin-top: 4.5rem; }
.guide > h2:first-child { margin-top: 0; }
.guide h3 { font-size: 1.1rem; margin: 1.5rem 0 .4rem; }
.guide hr { border: 0; border-top: 1px solid var(--line); margin: 1.75rem 0; }
.guide ul, .guide ol { padding-left: 1.3rem; }
.guide li { margin: .3rem 0; }
.guide strong { color: #f7fafd; }
.guide code { background: var(--card-alt); padding: .05rem .35rem; border-radius: 4px; font-size: .95em; }
.guide blockquote { margin: 1rem 0; border-left: 3px solid var(--cta); background: var(--card-alt); padding: .6rem .9rem; border-radius: 0 6px 6px 0; }
.guide blockquote p { margin: .3rem 0; }
.version-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; padding: .05rem .45rem; border-radius: 999px; border: 1px solid var(--link); color: var(--link-light); }
.version-tag--kr { border-color: var(--lavender); color: var(--lavender); }

.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.breadcrumbs a { color: var(--muted); }
.bc-sep { margin: 0 .4rem; opacity: .6; }

.hub-section { scroll-margin-top: 4.5rem; }
.card-grid { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: var(--card-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.card a { color: var(--heading); font-weight: 700; text-decoration: none; }
.card a:hover { color: var(--cta); }
.card p { margin: .35rem 0 0; color: var(--muted); font-size: .95rem; }

.table-wrap { overflow-x: auto; margin: 1rem 0; }
.guide table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.guide th, .guide td { border: 1px solid var(--line); padding: .45rem .6rem; text-align: left; vertical-align: top; }
.guide th { background: var(--card-alt); color: var(--heading); }
.guide tr:nth-child(even) td { background: rgba(18, 18, 30, 0.6); }
@media (max-width: 480px) {
  .guide { padding: 1.1rem 1rem; }
  .guide th, .guide td { padding: .35rem .4rem; font-size: .88rem; }
}

.related { max-width: var(--readw); margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-alt); }
.related-title { margin: 0 0 .4rem; font-size: 1.05rem; }
.related ul { margin: 0; padding-left: 1.2rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--card-alt); color: var(--muted); font-size: .9rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.25rem 2rem; }
.footer-inner p { margin: .4rem 0; max-width: 46rem; }
.footer-links a { color: var(--muted); }
.footer-brand { color: var(--heading); font-weight: 700; }
.footer-disclaimer { font-size: .85rem; }

.game-image { margin: 1.25rem 0; }
.game-image img { display: block; border-radius: 8px; border: 1px solid var(--line); }
.game-image figcaption { margin-top: .4rem; font-size: .85rem; color: var(--muted); }
.image-credit { font-style: italic; }

.ad-slot { margin: 1rem auto; display: flex; align-items: center; justify-content: center; max-width: 100%; }
.ad-slot .ad-inner { display: inline-block; line-height: 0; }
.ad-slot--native { margin: 1.25rem 0; }
.ad-slot--mpu { margin: 1rem 0; min-height: 250px; }
.ad-slot--mobile-banner { display: block; min-height: 50px; }
@media (min-width: 740px) { .ad-slot--mobile-banner { display: none; } }
