:root {
  --bg: #f6f7f2;
  --surface: #ffffff;
  --surface-soft: #eef3ed;
  --surface-navy: #edf1f6;
  --ink: #1b2623;
  --muted: #64706b;
  --line: #dbe1dc;
  --navy: #253d63;
  --navy-deep: #1d304e;
  --green: #3f8d63;
  --green-deep: #2d704c;
  --green-soft: #dff0e4;
  --warning: #9b5b2d;
  --warning-soft: #fff1e5;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 60px rgba(23, 42, 34, 0.10);
  --content: 1180px;
  color-scheme: light;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 6%, rgba(63, 141, 99, 0.08), transparent 28rem),
    radial-gradient(circle at 88% 2%, rgba(37, 61, 99, 0.08), transparent 30rem),
    var(--bg);
  color: var(--ink);
  line-height: 1.7;
  letter-spacing: -0.015em;
}

button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button, input { font: inherit; }
code, kbd { font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; }
code { letter-spacing: -0.025em; }

::selection { background: #cfe9d6; color: #183324; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 3px;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--green));
  transform-origin: left center;
}

.skip-link {
  position: fixed;
  z-index: 1200;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--navy-deep);
  color: #fff;
  transform: translateY(-150%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(219, 225, 220, 0.86);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(120%);
}
.header-inner {
  max-width: var(--content);
  min-height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--navy);
  color: #dff0e4;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(37, 61, 99, .18);
}
.brand-text { display: flex; align-items: baseline; gap: 7px; }
.brand-text strong { font-size: 16px; letter-spacing: -.03em; }
.brand-text small { color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.header-meta { color: #7c8581; font-size: 11px; font-weight: 800; letter-spacing: .16em; }

.mobile-nav { display: none; }

.hero {
  max-width: var(--content);
  margin: 0 auto;
  padding: 72px 24px 78px;
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(34px, 6vw, 78px);
}
.hero-copy { min-width: 0; }
.eyebrow, .field-label {
  margin: 0;
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 13px 0 18px;
  max-width: 640px;
  color: var(--navy-deep);
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.hero h1 span {
  display: block;
  white-space: nowrap;
}
.hero-description {
  margin: 0;
  max-width: 560px;
  color: #53605b;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
}
.must-read {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #47524e;
  font-size: 14px;
}
.must-read-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(63, 141, 99, .12);
}
.server-address-block {
  margin-top: 31px;
  padding: 15px 15px 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d4ddd7;
  border-radius: 16px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 10px 38px rgba(31, 46, 40, .05);
}
.server-address-block > div { min-width: 0; }
.server-address-block code {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--navy-deep);
  font-size: 18px;
  font-weight: 750;
  white-space: nowrap;
}
.copy-button {
  min-height: 43px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 11px;
  background: var(--navy);
  color: white;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.copy-button:hover { transform: translateY(-1px); background: var(--navy-deep); box-shadow: 0 8px 20px rgba(37,61,99,.18); }
.copy-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hero-visual { margin: 0; position: relative; }
.hero-visual picture, .hero-visual img { display: block; width: 100%; }
.hero-visual img {
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 22px -16px 22px;
  height: 26px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(37, 61, 99, .16);
  filter: blur(20px);
}
.hero-visual figcaption {
  position: absolute;
  right: 16px;
  bottom: 15px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 28, 43, .64);
  color: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  font-size: 11px;
}

.guide-shell {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px 120px;
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  justify-content: space-between;
  gap: clamp(48px, 8vw, 96px);
}
.side-nav { position: relative; }
.side-nav-inner {
  position: sticky;
  top: 100px;
  padding: 12px 0 14px;
  border-left: 1px solid var(--line);
}
.side-nav p {
  margin: 0 0 10px 18px;
  color: #88908d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}
.side-nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 8px 12px 8px 18px;
  color: #65706c;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
.side-nav a span { color: #a0a7a3; font-size: 10px; font-variant-numeric: tabular-nums; }
.side-nav a::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 9px;
  bottom: 9px;
  width: 2px;
  border-radius: 4px;
  background: transparent;
}
.side-nav a:hover { color: var(--navy); transform: translateX(2px); }
.side-nav a.active { color: var(--navy-deep); }
.side-nav a.active::before { background: var(--green); }
.side-nav a.sub { padding-left: 42px; font-size: 12px; font-weight: 580; }

.guide-content { min-width: 0; }
.guide-section {
  padding: 88px 0 90px;
  border-top: 1px solid var(--line);
}
.guide-section:first-child { border-top: 0; padding-top: 24px; }
.section-header {
  margin-bottom: 42px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: start;
}
.section-number {
  margin-top: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}
.section-header h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(29px, 3.5vw, 42px);
  line-height: 1.18;
  letter-spacing: -.045em;
}
.section-header p {
  margin: 11px 0 0;
  max-width: 690px;
  color: var(--muted);
  font-size: 15px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 15px;
}
.timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding-bottom: 39px;
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: -2px;
  width: 1px;
  background: #d7ded9;
}
.timeline > li:last-child::before { display: none; }
.step-marker {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid #cad6cf;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 0 0 7px var(--bg);
}
.step-content { min-width: 0; padding-top: 1px; }
.step-content h3 {
  margin: 0 0 9px;
  color: #24332d;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -.025em;
}
.step-content p { margin: 0; color: #5c6863; }
.step-content code { color: var(--navy-deep); }
kbd {
  padding: 2px 7px;
  border: 1px solid #cfd6d1;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: #35413c;
  font-size: .86em;
}
.warning-line {
  margin: 18px 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #704421;
  font-size: 14px;
}
.warning-line strong {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 11px;
}
.inline-copy {
  width: min(100%, 460px);
  margin-top: 12px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #cdd7d1;
}
.inline-copy code { font-size: 17px; font-weight: 760; }
.text-copy {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.text-copy:hover { text-decoration: underline; text-underline-offset: 3px; }
.image-button {
  position: relative;
  width: 100%;
  margin-top: 21px;
  padding: 0;
  overflow: hidden;
  display: block;
  border: 0;
  border-radius: var(--radius-md);
  background: #dfe5df;
  cursor: zoom-in;
  box-shadow: 0 12px 34px rgba(37, 48, 43, .08);
}
.image-button img { width: 100%; height: auto; display: block; transition: transform .35s ease; }
.image-button:hover img { transform: scale(1.012); }
.image-hint {
  position: absolute;
  right: 11px;
  bottom: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(20, 27, 25, .66);
  color: rgba(255,255,255,.9);
  font-size: 10px;
  backdrop-filter: blur(7px);
}
.split-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 28px;
  align-items: start;
}
.image-button.portrait { margin-top: 0; }

.command-list {
  margin: 4px 0 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.command-row {
  min-height: 82px;
  padding: 17px 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.command-row + .command-row { border-top: 1px solid var(--line); }
.command-row code {
  display: block;
  margin-top: 4px;
  color: var(--navy-deep);
  font-size: 21px;
  font-weight: 800;
}
.fact-list { border-top: 1px solid var(--line); }
.fact-row {
  min-height: 92px;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 17px;
  border-bottom: 1px solid var(--line);
}
.fact-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-navy);
  color: var(--navy);
  font-weight: 850;
}
.fact-row strong { color: #2c3733; font-size: 15px; }
.fact-row p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.fact-note { color: #6c7672; font-size: 12px; font-weight: 750; white-space: nowrap; }
.fact-note.emphasized {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
}
.small-note { margin: 16px 0 0; color: #79827e; font-size: 12px; }

.report-strip {
  margin: 0 0 56px;
  padding: 22px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  border-top: 1px solid #cfdad3;
  border-bottom: 1px solid #cfdad3;
}
.report-strip strong { color: var(--navy-deep); }
.report-strip p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.discord-actions { text-align: right; }
.discord-button {
  margin-left: 6px;
  padding: 8px 11px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border-radius: 10px;
  background: #eef1f8;
  color: #344c78;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.discord-button:hover { transform: translateY(-1px); background: #e5eaf5; }
.discord-button span { color: #69799b; font-size: 10px; font-weight: 700; }
.web-fallback { margin-top: 8px; color: #89908d; font-size: 10px; }
.web-fallback a { color: #69799b; text-underline-offset: 2px; }

.rules-group, .known-issues {
  scroll-margin-top: 120px;
  padding: 43px 0;
  border-top: 1px solid var(--line);
}
.rules-group:first-of-type { border-top: 0; padding-top: 0; }
.subsection-header {
  display: flex;
  align-items: baseline;
  gap: 13px;
}
.subsection-header span {
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}
.subsection-header h3 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 24px;
  letter-spacing: -.035em;
}
.group-lead {
  margin: 7px 0 22px 39px;
  color: #7b8580;
  font-size: 12px;
  font-weight: 700;
}
.rule-list { list-style: none; margin: 22px 0 0 39px; padding: 0; }
.rule-list li {
  position: relative;
  padding: 15px 0 15px 24px;
  border-top: 1px solid #e3e7e4;
}
.rule-list li:first-child { border-top: 0; }
.rule-list p { margin: 0; color: #4e5a55; }
.rule-dot {
  position: absolute;
  left: 2px;
  top: 25px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9fc6aa;
}
.rule-list strong { color: #283a32; }

.tip-lines { border-top: 1px solid var(--line); }
.tip-lines p {
  margin: 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--line);
  color: #505c57;
}
.tip-icon {
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .03em;
}
.tip-text {
  min-width: 0;
}
.tip-lines code { color: var(--navy-deep); font-weight: 700; }
.contact-note {
  margin: 34px 0 70px;
  padding: 22px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px dashed #cbd4ce;
}
.contact-note p { margin: 0; max-width: 600px; color: #59645f; }
.contact-note > span { flex: 0 0 auto; color: #7a8480; font-size: 12px; }

.known-issues { padding-bottom: 0; }
.issue-list { list-style: none; margin: 28px 0 0; padding: 0; }
.issue-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.issue-number { color: #9aa39f; font-size: 11px; font-weight: 850; }
.issue-list h4 { margin: 0 0 7px; color: #2b3833; font-size: 17px; letter-spacing: -.02em; }
.issue-list p { margin: 0; color: #5d6964; font-size: 14px; }

.site-footer {
  max-width: var(--content);
  margin: 0 auto;
  padding: 34px 24px 52px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}
.site-footer div { display: flex; flex-direction: column; gap: 5px; }
.site-footer span { color: #929a96; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.site-footer strong { color: var(--navy-deep); font-size: 17px; }
.site-footer a { color: #6b7671; font-size: 12px; font-weight: 700; text-decoration: none; }
.site-footer a:hover { color: var(--green-deep); }

.lightbox {
  max-width: min(94vw, 1500px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #0f1413;
  overflow: visible;
  box-shadow: 0 30px 100px rgba(0,0,0,.35);
}
.lightbox::backdrop { background: rgba(14, 19, 18, .76); backdrop-filter: blur(7px); }
.lightbox img { display: block; max-width: min(94vw, 1500px); max-height: 88vh; width: auto; height: auto; border-radius: 18px; }
.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: white;
  color: #27322f;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
}
.toast {
  position: fixed;
  z-index: 1100;
  left: 50%;
  bottom: 24px;
  padding: 9px 13px;
  border-radius: 999px;
  background: #17221f;
  color: white;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

body.enhanced .reveal {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
}
body.enhanced .reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  html { scroll-padding-top: 125px; }
  .header-inner { min-height: 60px; }
  .header-meta { display: none; }
  .mobile-nav {
    display: flex;
    max-width: 100%;
    padding: 0 18px 8px;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav a {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: #6f7975;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
  }
  .mobile-nav a.active { background: var(--green-soft); color: var(--green-deep); }
  .hero { padding-top: 48px; grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { order: 2; }
  .guide-shell { grid-template-columns: 1fr; padding-bottom: 90px; }
  .side-nav { display: none; }
}

@media (max-width: 680px) {
  body { line-height: 1.65; }
  .header-inner { padding: 0 18px; }
  .brand-text small { display: none; }
  .hero { padding: 38px 18px 58px; }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .hero-description { font-size: 15px; }
  .must-read { align-items: flex-start; font-size: 13px; }
  .server-address-block { align-items: stretch; }
  .server-address-block code { font-size: 15px; }
  .copy-button span { display: none; }
  .copy-button { width: 43px; justify-content: center; padding: 0; }
  .hero-visual img { border-radius: 20px; }
  .guide-shell { padding: 0 18px 80px; }
  .guide-section { padding: 70px 0; }
  .guide-section:first-child { padding-top: 10px; }
  .section-header { grid-template-columns: 36px 1fr; gap: 10px; margin-bottom: 34px; }
  .section-number { margin-top: 5px; }
  .section-header h2 { font-size: 31px; }
  .section-header p { font-size: 14px; }
  .timeline { padding-left: 4px; }
  .timeline > li { grid-template-columns: 38px 1fr; gap: 10px; }
  .timeline > li::before { left: 14px; }
  .step-marker { width: 29px; height: 29px; box-shadow: 0 0 0 6px var(--bg); }
  .step-content h3 { font-size: 16px; }
  .step-content p { font-size: 14px; }
  .split-step { grid-template-columns: 1fr; }
  .image-button.portrait { width: min(78%, 360px); }
  .fact-row { grid-template-columns: 36px 1fr; padding: 16px 0; }
  .fact-note { grid-column: 2; justify-self: start; }
  .report-strip { grid-template-columns: 1fr; gap: 18px; }
  .discord-actions { text-align: left; }
  .discord-button { margin: 0 5px 6px 0; }
  .rule-list { margin-left: 0; }
  .group-lead { margin-left: 0; }
  .contact-note { flex-direction: column; }
  .issue-list li { grid-template-columns: 34px 1fr; gap: 10px; }
  .site-footer { padding: 28px 18px 40px; }
  .lightbox-close { top: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  body.enhanced .reveal { opacity: 1; transform: none; }
}
