:root {
  --ink: #f5f2e8;
  --muted: #a7a79f;
  --panel: rgba(26, 27, 25, 0.88);
  --line: rgba(255, 255, 255, 0.11);
  --orange: #f47721;
  --amber: #ffb43f;
  --green: #7ed957;
  --bg: #0d0f0e;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(244, 119, 33, .12), transparent 28rem),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 42px 42px, 42px 42px, auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 40px 0 32px; }
.label, footer { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; gap: 13px; color: var(--ink); text-decoration: none; }
.brand span { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 850; letter-spacing: -.055em; }
.brand small { color: var(--orange); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.status { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line); background: rgba(0,0,0,.25); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px var(--amber); }
.status.online i { background: var(--green); box-shadow: 0 0 14px var(--green); }
.status.offline i { background: #ef5350; box-shadow: 0 0 14px #ef5350; }

.card { border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(16px); padding: 24px; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 48px; height: 2px; background: var(--orange); }
.connect { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; }
.connect .label { margin-bottom: 10px; }
.label { color: var(--muted); font-size: .68rem; margin: 0 0 28px; }
.address { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: clamp(1rem, 3vw, 1.45rem); overflow-wrap: anywhere; }
.address span { color: var(--orange); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.feature { grid-column: span 2; }
.value { margin: 0; font-size: clamp(2.6rem, 5vw, 4.3rem); line-height: .9; letter-spacing: -.06em; font-weight: 760; }
.value small { color: var(--muted); font-size: .9rem; letter-spacing: .02em; }
.session-name { font-size: clamp(2rem, 4.5vw, 3.7rem); overflow-wrap: anywhere; }
.sub, .meta { color: var(--muted); font-size: .82rem; margin: 18px 0 0; }
.meta { display: flex; justify-content: space-between; gap: 12px; }

.modpack, .join { margin-top: 14px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section-heading .label { margin-bottom: 8px; }
h1, h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.04em; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.button, button { appearance: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--orange); color: #111; background: var(--orange); padding: 12px 17px; font: inherit; font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.button.secondary { color: var(--ink); background: rgba(244,119,33,.08); }
.button:hover, .button:focus-visible, button:hover, button:focus-visible { background: var(--amber); border-color: var(--amber); color: #111; outline: none; }
.mod-list { border-top: 1px solid var(--line); }
.mod { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: inherit; text-decoration: none; padding: 16px 0; border-bottom: 1px solid var(--line); }
.mod:hover strong, .mod:focus-visible strong { color: var(--orange); }
.mod:focus-visible { outline: 1px solid var(--orange); outline-offset: 4px; }
.mod span { display: grid; gap: 4px; }
.mod strong { font-size: 1rem; transition: color .15s ease; }
.mod small { color: var(--muted); }
.mod code, .steps code { color: var(--orange); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.dependency-note { margin: 18px 0 0; color: var(--muted); font-size: .8rem; }

.section-heading.compact { margin-bottom: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 16px; background: rgba(0,0,0,.18); border: 1px solid var(--line); }
.steps li > span { display: grid; place-items: center; width: 30px; height: 30px; color: #111; background: var(--orange); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 850; }
.steps p { display: grid; gap: 5px; margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.45; }
.steps strong { color: var(--ink); font-size: .9rem; }
footer { display: flex; justify-content: space-between; gap: 20px; color: #6f716c; font-size: .62rem; padding-top: 30px; }

@media (max-width: 820px) {
  main { width: min(100% - 24px, 680px); padding-top: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .brand { align-items: flex-start; flex-direction: column; gap: 2px; }
  .grid { grid-template-columns: 1fr; }
  .feature { grid-column: span 1; }
  .connect, .section-heading { align-items: stretch; flex-direction: column; }
  .actions { justify-content: stretch; }
  .actions .button { flex: 1; }
  .mod { align-items: flex-start; }
  footer { flex-direction: column; }
}
