:root {
  --bg: #111813;
  --panel: #1a221b;
  --line: #354036;
  --text: #eceee7;
  --muted: #a3aea0;
  --accent: #d6b48e;
  --font: "Segoe UI", "Malgun Gothic", sans-serif;
  color-scheme: dark;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a:hover, button:hover:not(:disabled) { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
button:disabled { cursor: not-allowed; }
.hidden { display: none !important; }
.shell { max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; top: -100px; left: 20px; background: var(--accent); color: var(--bg); padding: 12px; z-index: 10; }
.skip:focus { top: 10px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; border-bottom: 1px solid var(--line); }
.brand { font-size: 18px; font-weight: 650; white-space: nowrap; }
.header nav { display: flex; gap: 24px; font-size: 13px; color: var(--muted); }
.login-link, .quiet { color: var(--muted); font-size: 12px; padding: 8px 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 32px; font-weight: 600; letter-spacing: -1px; margin-bottom: 18px; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -.4px; }
h3 { font-size: 15px; font-weight: 600; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 38px 0; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 26px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 12px 18px; border-radius: 4px; font-size: 13px; font-weight: 600; }
.primary { background: var(--accent); color: #1d251e !important; }
.primary:hover:not(:disabled) { background: #e7c9a7; }
.text-link { display: inline-flex; padding: 0; color: #c3cdbd; font-size: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 12px; }
.server-card { border: 1px solid var(--line); border-radius: 5px; background: var(--panel); padding: 22px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.card-top h2 { font-size: 16px; margin: 0; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #8d9987; }
.status.online i { background: #b8cf91; }
.status.offline i { background: #cb9476; }
.server-description { color: var(--muted); font-size: 12px; margin: 12px 0 20px; }
.server-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.server-meta>div { display: flex; flex-direction: column; gap: 8px; }
.server-meta span { font-size: 11px; color: var(--muted); }
.server-meta strong { font-size: 18px; font-weight: 500; }
.server-meta small { font-size: 12px; color: var(--muted); }
.address { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 18px; padding: 12px; border: 1px solid #50604a; border-radius: 3px; font: 12px Consolas, var(--font); text-align: left; overflow-wrap: anywhere; }
.address:disabled { color: var(--muted); }
.network-tools { display: grid; grid-template-columns: 1fr; gap: 20px; border: 1px solid var(--line); border-radius: 5px; padding: 22px; margin-bottom: 32px; }
.network-tools.has-vpn { grid-template-columns: 1.2fr 1fr; }
.network-copy h2 { font-size: 16px; margin: 0 0 14px; }
.network-copy p, .network-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 0 0 14px; }
.network-copy #vpn-invite { display: block; margin-top: 14px; color: var(--accent); }
.network-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.compact-action { border: 1px solid #50604a; border-radius: 3px; padding: 12px; font-size: 12px; }
.compact-action.danger { border-color: #70543e; color: #d2b297; }
.disabled { opacity: .5; cursor: not-allowed; }
.network-note { grid-column: 1/-1; margin: 0; }
.pc-cleanup { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: 16px; font-size: 12px; color: var(--muted); }
.pc-cleanup summary { cursor: pointer; }
.pc-cleanup>div { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; color: var(--text); }
.pc-cleanup p { margin: 16px 0 0; line-height: 1.8; }
.prepare { padding: 28px 0 32px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 5px; }
.step { display: flex; flex-direction: column; min-width: 0; padding: 22px; }
.step+.step { border-left: 1px solid var(--line); }
.step-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.step-number { color: var(--muted); font: 19px Consolas, monospace; }
.step-state { color: var(--muted); font-size: 11px; }
.step h3 { margin: 0 0 12px; }
.step p { min-height: 42px; margin: 0 0 20px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.step code { font-size: 10px; overflow-wrap: anywhere; }
.step-action { width: 100%; margin-top: auto; padding: 14px 0 0; border-top: 1px solid var(--line); text-align: left; font-size: 12px; }
.step-note { margin-top: 10px; font-size: 10px; line-height: 1.7; color: var(--muted); }
.step.complete .step-number { color: var(--accent); }
.identity { color: #b9c7ac; font: 10px/1.8 Consolas, var(--font); overflow-wrap: anywhere; }
.modpack { padding: 10px 0 30px; }
.pack-version { border: 1px solid var(--line); border-radius: 3px; padding: 5px 8px; color: var(--muted); font: 11px Consolas, monospace; }
.mod-list { border-top: 1px solid var(--line); }
.mod-row { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.mod-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 4px; color: #b7c8a5; font: 15px Consolas, monospace; }
.mod-name { font-size: 13px; }
.mod-role { font-size: 11px; color: var(--muted); margin-top: 6px; }
.mod-origin { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 11px; }
.mod-origin span { font: 10px Consolas, monospace; }
.install-details { display: flex; justify-content: flex-end; padding-top: 16px; }
footer { display: flex; justify-content: flex-end; min-height: 70px; align-items: center; border-top: 1px solid var(--line); }
.notice { padding: 12px 16px; border: 1px solid #795d43; border-radius: 4px; margin-top: 20px; color: #e2c3a4; font-size: 12px; line-height: 1.8; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: 90vw; padding: 12px 20px; border-radius: 4px; background: #e1e2d5; color: #273023; box-shadow: 0 8px 30px #0005; font-size: 12px; line-height: 1.7; z-index: 20; }
dialog { width: calc(100vw - 40px); max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; border: 1px solid #56624c; border-radius: 5px; background: var(--panel); color: var(--text); }
dialog::backdrop { background: #030805b8; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.dialog-top h2 { margin: 0; }
dialog ol, dialog ul { padding-left: 20px; color: #b9c5b0; font-size: 12px; line-height: 1.9; }
dialog li { padding-bottom: 9px; }
dialog code { color: var(--accent); font-size: 11px; }
.dialog-note { color: var(--muted); font-size: 11px; line-height: 1.9; margin: 16px 0 22px; }
dialog .button { width: 100%; }
.access-gate { display: flex; flex-direction: column; justify-content: center; max-width: 480px; min-height: 100vh; margin: 0 auto; padding: 40px 24px; }
.access-gate>.brand { margin-bottom: 24px; }
.gate-card { padding: 28px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.gate-card h1 { margin: 0; font-size: 24px; letter-spacing: -.5px; }
.gate-card>p { color: var(--muted); font-size: 12px; line-height: 1.9; margin: 18px 0 0; }
.login-providers { display: grid; gap: 12px; margin-top: 24px; }
.login-providers .button { width: 100%; }
.login-providers .button:disabled { opacity: .5; }
.gate-actions { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 22px; }
.gate-card .gate-note { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; font-size: 11px; }
.gate-member { display: flex; flex-direction: column; gap: 12px; padding: 16px; margin-top: 22px; border: 1px solid var(--line); }
.gate-member>span { color: var(--muted); font-size: 11px; }
.gate-member code { color: #c2d0b4; overflow-wrap: anywhere; font: 12px/1.8 Consolas, monospace; }
.gate-member .text-link { align-self: flex-start; }
@media (max-width: 760px) {
  .shell { padding: 0 22px; }
  .header { min-height: 72px; }
  .header nav { display: none; }
  .brand { font-size: 17px; }
  h1 { font-size: 28px; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 28px 0; }
  .hero-actions { gap: 22px; margin-top: 22px; }
  .server-card, .network-tools { padding: 20px; }
  .network-tools.has-vpn { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step+.step { border-left: 0; border-top: 1px solid var(--line); }
  .step p { min-height: 0; }
  .step code { font-size: 11px; }
  .mod-origin span { display: none; }
  .mod-origin { font-size: 10px; }
  .mod-row { gap: 10px; }
  .gate-card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
