*, *:before, *:after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pix: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --title: "Press Start 2P", "Rubik", ui-monospace, monospace;
  --gui: #c6c6c6; --gui-hi: #fff; --gui-lo: #555;
  --ink: #2b2b2b; --ink-dim: #545454;
  --green: #55ff55; --yellow: #ffff55; --gold: #ffaa00; --aqua: #55ffff; --red: #ff5555; --grey: #aaaaaa;
  --glass: rgba(14, 10, 7, .72);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--pix); font-size: 17px; line-height: 1.55; color: #fff; min-height: 100vh;
  background: #3a2a1c url(/assets/dirt.png); background-size: 128px 128px; image-rendering: pixelated; overflow-x: hidden;
}
body:before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,.1), rgba(0,0,0,.6) 85%), rgba(0,0,0,.3); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
::selection { background: #7b8bd6; color: #fff; }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ic { image-rendering: pixelated; flex: none; vertical-align: middle; }
img { image-rendering: pixelated; }

/* ---------- reveal on scroll ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- top bar ---------- */
.grass-top { position: relative; z-index: 31; height: 24px; background: url(/assets/grass.svg) repeat-x; background-size: 40px 24px; image-rendering: pixelated; border-bottom: 3px solid #000; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(16, 11, 7, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 4px solid #000; box-shadow: 0 6px 0 rgba(0,0,0,.28); }
.topbar-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 8px 18px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 26px; width: auto; display: block; filter: drop-shadow(2px 2px 0 rgba(0,0,0,.6)); }
.menu { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin-bottom: -4px; }
.menu::-webkit-scrollbar { display: none; }
.menu a { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: .92rem; font-weight: 500; color: #e6e0d8; white-space: nowrap; transition: background .15s, color .15s; }
.menu a:hover { background: rgba(255,255,255,.09); color: #fff; }
.menu a.is-active { color: #fff; background: rgba(255,255,255,.08); }
.menu a.is-active:after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 4px; background: #58a02e; box-shadow: inset 0 2px 0 #94d660; }
.menu a .ic { transition: transform .18s var(--ease); }
.menu a:hover .ic { transform: translateY(-2px) scale(1.08); }
.pill { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; background: #000; border: 3px solid #303030; font-size: .88rem; font-weight: 500; color: #ddd; }
.pill .dot { width: 10px; height: 10px; background: #666; box-shadow: inset 2px 2px 0 rgba(255,255,255,.3); }
.pill.up .dot { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s ease-in-out infinite; }
.pill.down .dot { background: var(--red); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

.shell { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: calc(100vh - 100px); padding: 30px clamp(14px, 4vw, 40px) 26px; max-width: 1240px; margin: 0 auto; width: 100%; }
main { flex: 1 0 auto; display: flex; flex-direction: column; gap: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; padding: 26px 0 8px; }
.hero-main { position: relative; z-index: 1; }
.hero-main .logo-img { display: block; max-width: 100%; height: auto; width: min(560px, 100%); filter: drop-shadow(0 8px 0 rgba(0,0,0,.35)); margin-bottom: 22px; }
.tagline { font-size: clamp(1.05rem, 2.2vw, 1.35rem); font-weight: 500; color: #f4eee4; text-shadow: 2px 2px 0 #000; max-width: 34ch; margin-bottom: 8px; }
.tagline em { font-style: normal; color: var(--yellow); }
.sub { color: #cfc8bd; text-shadow: 2px 2px 0 #000; max-width: 46ch; margin-bottom: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floaters .ic { position: absolute; opacity: .3; filter: drop-shadow(4px 4px 0 rgba(0,0,0,.45)); animation: bob 5s ease-in-out infinite; }
.floaters .f1 { right: 3%; top: -6px; animation-delay: -1s; } .floaters .f2 { left: 46%; bottom: -6px; animation-delay: -3s; }
.floaters .f3 { left: 40%; top: 4%; animation-delay: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
.hero-card { position: relative; z-index: 1; }

.server { display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: rgba(0,0,0,.8); border: 4px solid #000; box-shadow: inset 0 0 0 2px #303030; }
.server .ic { border: 3px solid #000; }
.server .info { flex: 1 1 auto; min-width: 0; }
.server .name { font-family: var(--title); font-size: .9rem; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; margin-bottom: 4px; }
.server .motd { font-size: .98rem; color: var(--grey); line-height: 1.35; }
.server .motd .g { color: var(--green); } .server .motd .a { color: var(--aqua); }
.server .right { text-align: right; }
.server .count { font-size: 1rem; color: var(--grey); }
.server .count b { color: #fff; }
.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 20px; margin-left: 8px; vertical-align: middle; }
.bars i { width: 5px; background: #555; display: block; }
.bars i:nth-child(1) { height: 25%; } .bars i:nth-child(2) { height: 45%; } .bars i:nth-child(3) { height: 65%; } .bars i:nth-child(4) { height: 82%; } .bars i:nth-child(5) { height: 100%; }
.bars.up i.on { background: var(--green); } .bars.down i { background: var(--red); }
.state { font-family: var(--title); font-size: .56rem; margin-top: 6px; color: var(--grey); }
.state.up { color: var(--green); } .state.down { color: var(--red); }

.addr { margin-top: 14px; display: flex; align-items: stretch; background: #000; border: 4px solid #000; box-shadow: inset 0 0 0 2px #555; }
.addr code { flex: 1 1 auto; display: flex; align-items: center; padding: 12px 16px; background: transparent; border: 0; color: var(--green); font-size: clamp(.95rem, 2vw, 1.15rem); overflow-x: auto; white-space: nowrap; }
.addr .btn { margin: 0; border-width: 0 0 0 4px; }
.addr-note { margin-top: 8px; font-size: .88rem; color: #cfc8bd; text-shadow: 2px 2px 0 #000; }
.addr-note code { font-size: .88em; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--glass); border: 4px solid #000; box-shadow: inset 2px 2px 0 #555, inset -2px -2px 0 #1a1a1a; transition: transform .2s var(--ease), box-shadow .2s; }
.stat:hover { transform: translateY(-3px); box-shadow: inset 2px 2px 0 #777, inset -2px -2px 0 #1a1a1a, 0 8px 0 rgba(0,0,0,.35); }
.stat b { display: block; font-size: 1.35rem; font-weight: 700; line-height: 1.1; text-shadow: 2px 2px 0 #000; }
.stat span { font-size: .86rem; color: #cfc8bd; }

/* ---------- panels ---------- */
.panel { background: var(--gui); color: var(--ink); border: 4px solid #000; box-shadow: inset 4px 4px 0 var(--gui-hi), inset -4px -4px 0 var(--gui-lo); padding: 22px 24px; position: relative; }
.panel.dark { background: var(--glass); color: #fff; box-shadow: inset 2px 2px 0 #555, inset -2px -2px 0 #1a1a1a; }
.ptitle { display: flex; align-items: center; gap: 12px; font-family: var(--title); font-size: .78rem; line-height: 1.5; color: #3f3f3f; margin-bottom: 14px; }
.panel.dark .ptitle { color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.pagehead { display: flex; flex-direction: column; gap: 6px; margin-bottom: 2px; }
h1.page { display: flex; align-items: center; gap: 14px; font-family: var(--title); font-size: clamp(.95rem, 2.6vw, 1.3rem); line-height: 1.4; color: #fff; text-shadow: 3px 3px 0 #000; }
.lead { color: #eee; text-shadow: 2px 2px 0 #000; max-width: 70ch; }
p { margin-bottom: 10px; max-width: 74ch; color: var(--ink); }
.panel.dark p { color: #ddd; }
.panel a:not(.btn) { color: #2a3a9e; border-bottom: 2px solid currentColor; }
.panel a:not(.btn):hover { color: #5a2a9e; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; background: #373737; color: var(--green); border: 2px solid #000; padding: 0 7px; font-size: .92em; }
b { font-weight: 600; }
.sect { display: flex; align-items: center; gap: 12px; font-family: var(--title); font-size: .8rem; color: #fff; text-shadow: 3px 3px 0 #000; margin-top: 8px; }
.sect:after { content: ""; flex: 1; height: 4px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 8px, transparent 8px 16px); }

.kv { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 8px 22px; margin-top: 4px; }
.kv dt { color: var(--ink-dim); font-weight: 500; }
.kv dd { color: var(--ink); word-break: break-word; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 8px 22px; font-family: var(--pix); font-size: 1rem; font-weight: 600; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; cursor: pointer;
  background: #7d7d7d; border: 3px solid #000; box-shadow: inset 3px 3px 0 #b8b8b8, inset -3px -3px 0 #4a4a4a; transition: transform .12s var(--ease), background .12s; }
.btn:hover { background: #7583d1; box-shadow: inset 3px 3px 0 #a9b4f0, inset -3px -3px 0 #414f9a; transform: translateY(-2px); }
.btn:active { box-shadow: inset 3px 3px 0 #4a4a4a, inset -3px -3px 0 #b8b8b8; transform: translateY(1px); }
.btn.green { background: #58a02e; box-shadow: inset 3px 3px 0 #94d660, inset -3px -3px 0 #2f6614; }
.btn.green:hover { background: #6ab93a; box-shadow: inset 3px 3px 0 #a9ec78, inset -3px -3px 0 #36781a; }
.btn.big { min-height: 54px; padding: 10px 26px; font-size: 1.08rem; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn.small { min-height: 30px; padding: 2px 12px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.copy { font-family: var(--pix); font-size: .78rem; font-weight: 500; color: #fff; background: #7d7d7d; border: 2px solid #000; box-shadow: inset 2px 2px 0 #b8b8b8, inset -2px -2px 0 #4a4a4a; padding: 0 8px; margin-left: 8px; text-shadow: 1px 1px 0 #3f3f3f; }
.copy:hover { background: #7583d1; }

/* ---------- forms ---------- */
label { display: block; font-size: .95rem; font-weight: 500; color: var(--ink-dim); margin: 14px 0 6px; }
input[type=text], input[type=search], input[type=password], textarea { width: 100%; background: #000; color: #fff; border: 3px solid #555; box-shadow: inset 2px 2px 0 #222; font: inherit; font-size: 1.02rem; padding: 9px 12px; transition: border-color .15s; }
input:focus, textarea:focus { border-color: #fff; outline: none; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0; color: var(--ink); }
.check input { width: 22px; height: 22px; margin-top: 3px; accent-color: #58a02e; flex: none; }
.hp { position: absolute; left: -9999px; }
.msg { margin-top: 14px; font-size: 1rem; }
.msg.ok { color: #1c7a1c; } .msg.err { color: #b02020; }

/* ---------- lists ---------- */
.steps { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; min-height: 38px; padding: 4px 0 14px 56px; color: var(--ink); max-width: 76ch; }
.steps li:before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  font-family: var(--title); font-size: .8rem; color: #14320a; background: #b5e61d; border: 3px solid #000; box-shadow: inset 3px 3px 0 #dcff6a, inset -3px -3px 0 #7aa310; }
.steps li:not(:last-child):after { content: ""; position: absolute; left: 17px; top: 42px; bottom: 2px; width: 4px; background: repeating-linear-gradient(#7b7b7b 0 6px, transparent 6px 12px); }
ul.list { list-style: none; }
ul.list li { position: relative; padding: 3px 0 3px 26px; max-width: 74ch; color: var(--ink); }
ul.list li:before { content: ""; position: absolute; left: 4px; top: 11px; width: 10px; height: 10px; background: #58a02e; box-shadow: inset 2px 2px 0 #94d660, inset -2px -2px 0 #2f6614; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feat { background: var(--glass); border: 4px solid #000; box-shadow: inset 2px 2px 0 #555, inset -2px -2px 0 #1a1a1a; padding: 18px 20px; color: #fff; transition: transform .2s var(--ease), box-shadow .2s; }
.feat:hover { transform: translateY(-4px); box-shadow: inset 2px 2px 0 #777, inset -2px -2px 0 #1a1a1a, 0 10px 0 rgba(0,0,0,.35); }
.feat .ic { margin-bottom: 10px; }
.feat h3 { font-family: var(--title); font-size: .68rem; line-height: 1.6; color: var(--yellow); text-shadow: 2px 2px 0 #3f3f15; margin-bottom: 8px; }
.feat p { color: #ddd; font-size: .98rem; margin: 0; }

/* ---------- faq ---------- */
details { background: var(--glass); border: 4px solid #000; box-shadow: inset 2px 2px 0 #555, inset -2px -2px 0 #1a1a1a; color: #fff; margin-bottom: 12px; }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-size: 1.08rem; font-weight: 600; text-shadow: 2px 2px 0 #000; transition: background .15s; }
summary::-webkit-details-marker { display: none; }
summary:before { content: ""; width: 16px; height: 16px; flex: none; background: #b5e61d; box-shadow: inset 3px 3px 0 #dcff6a, inset -3px -3px 0 #7aa310, 0 0 0 3px #000; transition: transform .2s var(--ease); }
details[open] summary { color: var(--yellow); border-bottom: 3px solid #000; }
details[open] summary:before { background: #ff5555; box-shadow: inset 3px 3px 0 #ff9a9a, inset -3px -3px 0 #a01d1d, 0 0 0 3px #000; transform: rotate(45deg); }
summary:hover { background: rgba(255,255,255,.06); }
details .a { padding: 14px 18px 6px; animation: open .25s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
details .a p, details .a li { color: #e6e6e6; }
details .a a { color: var(--aqua); border-bottom: 2px solid currentColor; }

/* ---------- mods ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; margin: 12px 0 4px; }
.toolbar input[type=search] { max-width: 380px; }
.chip { padding: 5px 14px; font-size: .95rem; font-weight: 500; color: #fff; background: #7d7d7d; border: 3px solid #000; box-shadow: inset 2px 2px 0 #b8b8b8, inset -2px -2px 0 #4a4a4a; text-shadow: 2px 2px 0 #3f3f3f; }
.chip.on { background: #58a02e; box-shadow: inset 2px 2px 0 #94d660, inset -2px -2px 0 #2f6614; }
.chip.count { background: transparent; box-shadow: none; border-style: dashed; border-color: #888; }
.mods { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.mod { display: flex; gap: 12px; padding: 12px; background: var(--glass); border: 4px solid #000; box-shadow: inset 2px 2px 0 #555, inset -2px -2px 0 #1a1a1a; transition: transform .15s var(--ease); }
.mod:hover { transform: translateY(-3px); }
.mod .idn { flex: none; width: 48px; height: 48px; border: 3px solid #000; background: #8b8b8b; }
.mod h3 { font-size: 1.02rem; font-weight: 600; color: #fff; text-shadow: 2px 2px 0 #000; line-height: 1.2; }
.mod .ver { font-size: .8rem; color: var(--grey); margin-left: 8px; font-weight: 400; }
.mod p { font-size: .92rem; margin: 4px 0 0; color: #ccc; line-height: 1.3; }
.mod .tag { font-size: .78rem; color: var(--aqua); }
.mod .tag.client { color: var(--gold); }
.mapframe { width: 100%; height: min(72vh, 760px); border: 4px solid #000; background: #000; display: block; }

/* ---------- toast (advancement style) ---------- */
#toast { position: fixed; z-index: 60; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: calc(100vw - 36px); padding: 10px 16px 10px 12px; background: #1a1a1a; border: 4px solid #000; box-shadow: inset 0 0 0 3px #4a4a4a, 0 8px 0 rgba(0,0,0,.35); transform: translateX(120%); transition: transform .35s var(--ease); pointer-events: none; }
#toast.show { transform: none; }
#toast .t1 { font-family: var(--title); font-size: .58rem; color: var(--yellow); margin-bottom: 4px; }
#toast .t2 { font-size: .95rem; color: #fff; word-break: break-word; }

/* ---------- footer ---------- */
.site-footer { margin-top: 26px; padding: 14px 18px; justify-content: space-between; background: var(--glass); border: 4px solid #000; box-shadow: inset 2px 2px 0 #555, inset -2px -2px 0 #1a1a1a; font-size: .95rem; color: var(--grey); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.site-footer a { color: #fff; border-bottom: 2px solid #777; }
.site-footer a:hover { color: var(--green); }
.site-footer .ic { margin-right: 6px; }
table.tbl { border-collapse: collapse; width: 100%; font-size: .95rem; color: var(--ink); }
table.tbl th, table.tbl td { border-bottom: 2px solid #8b8b8b; padding: 6px 8px; text-align: left; vertical-align: top; }
table.tbl th { color: var(--ink-dim); font-weight: 500; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 22px; padding-top: 10px; }
  .floaters { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar-in { padding: 6px 10px; gap: 8px; flex-wrap: wrap; }
  .brand img { height: 22px; }
  .menu { order: 3; width: 100%; flex: 1 0 100%; }
  .menu a { padding: 8px 10px; font-size: .86rem; }
  .pill { margin-left: auto; padding: 4px 10px; }
  .panel { padding: 16px 14px; }
  .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; }
  .server { flex-wrap: wrap; } .server .right { text-align: left; width: 100%; }
  .addr { flex-direction: column; } .addr .btn { border-width: 4px 0 0 0; }
  #toast { left: 12px; right: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floaters .ic, .pill.up .dot, details .a { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .feat, .stat, .mod, #toast { transition: none; }
}

/* ---------- wordmark (text logo, same pixel font as headings) ---------- */
.wordmark { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.wordmark .ic { filter: drop-shadow(5px 5px 0 rgba(0,0,0,.55)); }
.wm-text, .brand-text { font-family: var(--title); color: #fff; line-height: 1; white-space: nowrap; }
.wm-text { font-size: clamp(1.9rem, 6.2vw, 3.3rem); letter-spacing: 1px;
  -webkit-text-stroke: 3px #0b0b0b; paint-order: stroke fill;
  text-shadow: 3px 3px 0 #4a4a4a, 6px 6px 0 #0b0b0b; }
.wm-text b, .brand-text b { font-weight: 400; color: #6bd13a; }
.wm-text b { text-shadow: 3px 3px 0 #2a6b12, 6px 6px 0 #0b0b0b; }
.brand-text { font-size: .95rem; -webkit-text-stroke: 2px #0b0b0b; paint-order: stroke fill; text-shadow: 2px 2px 0 #3a3a3a; }
.brand { gap: 10px; }
.brand .ic { filter: drop-shadow(2px 2px 0 rgba(0,0,0,.55)); }
@media (max-width: 720px) { .wordmark { gap: 12px; } .wordmark .ic { width: 56px; height: 56px; } }

/* light backing for dark-on-transparent mod icons */
.ic.lit { background: #c6c6c6; padding: 4px; border: 3px solid #000; box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #555; box-sizing: content-box; }
