:root {
  --bg: #f3f5f7;
  --card: #ffffff;
  --text: #15201f;
  --muted: #60706e;
  --red: #a50034;
  --blue: #164f9d;
  --green: #087c59;
  --lg-line: #d7dedc;
  --lg-dark: #111d1c;
  --lg-soft: #f8e9ee;
}

html { scroll-padding-top: 92px; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 92% 8%, rgba(165, 0, 52, .09), transparent 28rem),
    linear-gradient(180deg, #f7f8f9, #eef1f2);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
  line-height: 1.6;
}

.lg-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  padding: 0 max(22px, calc((100% - 1060px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(21, 32, 31, .13);
  background: rgba(247, 248, 249, .92);
  backdrop-filter: blur(16px);
}

.lg-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--lg-dark); font-weight: 900; letter-spacing: .12em; text-decoration: none; }
.lg-brand span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--lg-dark); color: white; letter-spacing: 0; }
.lg-back { min-height: 44px; padding: 0 16px; display: inline-flex; align-items: center; border: 1px solid var(--lg-dark); border-radius: 999px; color: var(--lg-dark); font-size: .85rem; font-weight: 850; text-decoration: none; }
.lg-back:hover { background: var(--lg-dark); color: white; }

body > header {
  position: relative;
  overflow: hidden;
  padding: 78px max(22px, calc((100% - 960px) / 2)) 70px;
  text-align: left;
  background:
    radial-gradient(circle at 88% 5%, rgba(255, 78, 126, .3), transparent 25rem),
    linear-gradient(135deg, #111d1c 12%, #172b2a 64%, #51001a);
}
body > header::after { position: absolute; width: 280px; height: 280px; right: -105px; bottom: -175px; border: 42px solid rgba(255,255,255,.07); border-radius: 50%; content: ""; }
body > header .tv { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 18px; background: rgba(255,255,255,.08); font-size: 0; }
body > header .tv::after { color: white; font-size: 1.4rem; font-weight: 900; letter-spacing: -.08em; content: "LG"; }
body > header h1 { max-width: 800px; margin: 24px 0 12px; font-size: clamp(2.7rem, 7vw, 5.5rem); line-height: .94; letter-spacing: -.055em; }
body > header p { max-width: 660px; margin: 0; color: #cbd4d2; font-size: 1.08rem; }

.wrap { max-width: 1000px; padding: 36px 22px 80px; }
.notice { margin: 0 0 26px; padding: 18px 20px; border: 1px solid #dfc26d; border-left: 6px solid #d29700; border-radius: 14px; background: #fff8df; box-shadow: 0 8px 22px rgba(21, 32, 31, .05); }
.progressbox { top: 72px; margin: 0 0 24px; padding: 14px 0 12px; background: rgba(243,245,247,.94); }
.progress { height: 10px; background: #dce3e1; }
#bar { background: linear-gradient(90deg, #087c59, #24b98b); }
#counter { margin-top: 9px; text-align: left; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }

.step { margin-bottom: 24px; padding: 28px; border: 1px solid var(--lg-line); border-radius: 24px; box-shadow: 0 16px 38px rgba(21, 32, 31, .07); }
.step:hover { border-color: #aebbb8; }
.step.finished { border-color: #38a780; background: #f5fffb; }
.stephead { gap: 16px; }
.stephead > span { width: 52px; height: 52px; min-width: 52px; background: linear-gradient(145deg, #c1003d, #7d0028); box-shadow: 0 6px 16px rgba(165,0,52,.24); }
.stephead small { color: #7b8986; font-size: .72rem; letter-spacing: .1em; }
.stephead h2 { margin-top: 1px; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.12; letter-spacing: -.025em; }
.step > p { margin: 18px 0 15px; color: var(--muted); font-size: 1.03rem; }
.step img { margin: 18px 0; border-color: #cbd4d2; border-radius: 16px; background: #101716; }
.tip { padding: 15px 17px; border-left-color: #164f9d; background: #edf4ff; }
.done { min-height: 50px; margin-top: 3px; border: 1px solid #ccd5d3; background: #eef2f2; cursor: pointer; transition: transform .16s ease, background .16s ease; }
.done:hover { transform: translateY(-1px); background: #e5ebea; }
.finished .done { border-color: var(--green); background: var(--green); }

.dnsbox { margin: 32px 0; padding: 28px; border: 2px solid #174f9b; border-radius: 24px; background: linear-gradient(145deg, #edf5ff, #f8fbff); box-shadow: 0 16px 38px rgba(22,79,157,.1); }
.dnsbox h2 { margin-bottom: 18px; font-size: 1.65rem; }
.dns { min-height: 64px; padding: 12px 14px 12px 18px; border: 1px solid #cedbef; box-shadow: 0 5px 14px rgba(22,79,157,.07); }
.dns code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: clamp(1.05rem, 4vw, 1.35rem); }
.copy { min-height: 42px; padding: 10px 16px; cursor: pointer; }
.final { margin: 34px 0 10px; padding: 38px 24px; border: 1px solid #afd9c8; border-radius: 24px; background: linear-gradient(145deg, #e8faf2, #f7fffb); }
.final b { font-size: clamp(1.6rem, 4vw, 2.25rem); }
.final p { color: #536461; }

@media (max-width: 640px) {
  .lg-topbar { min-height: 64px; padding-inline: 14px; }
  .lg-brand strong { display: none; }
  .lg-back { min-height: 40px; padding-inline: 13px; font-size: .78rem; }
  body > header { padding: 52px 20px 46px; }
  body > header h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  body > header p { font-size: .98rem; }
  .wrap { padding: 24px 14px 58px; }
  .progressbox { top: 64px; }
  .step { padding: 18px 15px; border-radius: 18px; }
  .stephead > span { width: 44px; height: 44px; min-width: 44px; font-size: 1.15rem; }
  .step img { border-radius: 12px; }
  .dnsbox { padding: 20px 14px; border-radius: 18px; }
  .dns { align-items: stretch; flex-direction: column; }
  .copy { width: 100%; }
}
