@font-face {
  font-family: "MCTen";
  src: url("../assets/fonts/mcten.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Minecraft";
  src: url("../assets/fonts/minecraft-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-07FF;
}
@font-face {
  font-family: "Minecraft";
  src: url("../assets/fonts/minecraft-bold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-07FF;
}
@font-face {
  font-family: "Minecraft";
  src: url("../assets/fonts/minecraft-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-07FF;
}
@font-face {
  font-family: "Minecraft";
  src: url("../assets/fonts/minecraft-bold-italic.woff2") format("woff2");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-07FF;
}
@font-face {
  font-family: "Minecraft";
  src: url("../assets/fonts/minecraft.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0800-10FFFF;
}

@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/noto-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans";
  src: url("../assets/fonts/noto-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #181818;
  --bg-2: #0d0d0d;
  --card: #111111;
  --card-2: #101010;
  --line: #2a2a2a;
  --text: #ffffff;
  --muted: #a8a8a8;
  --accent: #6a4dff;
  --accent-2: #3d8bff;
  --accent-light: #c4b6ff;
  --accent-deep: #2a1d86;
  --ink: #120e22;
  --wrap: 1080px;
  --nav: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; border-radius: 0; }
h1, h2, h3, .brand-name, .price, .nav-links a, .btn, .side button, .kicker, th, .mobile-menu a {
  font-family: "MCTen", sans-serif;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(34px, 5vw, 54px); margin: 12px 0 14px; }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 12px; }
h3 { font-size: 22px; margin: 0 0 8px; color: var(--text); }
p { margin: 0 0 14px; color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: 12px; z-index: 80;
  background: #fff; color: #111; padding: 8px 12px;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--nav);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  background: #181818;
  border-bottom: 2px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-name { font-size: 20px; color: var(--text); }
.brand-name span { color: var(--accent-2); }
.nav-links { display: flex; gap: 18px; align-items: center; justify-self: center; }
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--text);
  padding: 6px 0 4px;
  border-bottom: 3px solid transparent;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: #fff; }
.nav-cta { justify-self: end; }
button.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 10px 16px;
  background: var(--accent); color: #fff;
  text-decoration: none; cursor: pointer;
  border-style: solid;
  border-width: 2px 2px 5px;
  border-color: var(--accent-light) var(--accent-light) var(--accent-deep);
  font-size: 16px;
}
.btn:hover { background: #7d64ff; box-shadow: 4px 4px 0 var(--accent-2); }
.btn.ghost {
  background: #4a4a4a; color: #fff;
  border-color: var(--accent-light) var(--accent-light) var(--accent-deep);
}
.btn.ghost:hover { background: #5a5a5a; box-shadow: 4px 4px 0 var(--accent); }
.btn.small { min-height: 38px; font-size: 15px; padding: 6px 12px; }
.btn.danger { background: #6a2ad4; }
.btn.full { width: 100%; }
.btn.light {
  background: #fff; color: #141414;
  border: 2px solid #fff;
}
.btn.light:hover { box-shadow: 4px 4px 0 #7a5cff; background: #fff; }
.btn.line {
  background: transparent; color: #fff;
  border: 2px solid #fff;
}
.btn.line:hover { box-shadow: 4px 4px 0 var(--accent-2); }

.mobile-menu { display: none; }

.hero-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: #0d0d0d url("../assets/img/ocean.jpg") center 30% / cover no-repeat;
  overflow: hidden;
  padding: calc(var(--nav) + 28px) 0 150px;
}
.hero-stage::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(13,13,13,.78) 0%, rgba(13,13,13,.42) 42%, rgba(13,13,13,.9) 100%),
    radial-gradient(ellipse at 50% 42%, rgba(0,0,0,.05) 0%, rgba(0,0,0,.72) 78%);
}
.embers { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.embers i {
  position: absolute; width: 10px; height: 10px;
  background: #7a5cff;
  animation: rise 11s linear infinite;
}
.embers i:nth-child(odd) { background: var(--accent-2); }
.embers i:nth-child(1) { left: 8%; bottom: 18%; }
.embers i:nth-child(2) { left: 18%; bottom: 8%; width: 8px; height: 8px; animation-duration: 13s; animation-delay: -3s; }
.embers i:nth-child(3) { left: 32%; bottom: 22%; animation-duration: 9s; animation-delay: -5s; }
.embers i:nth-child(4) { left: 58%; bottom: 12%; width: 12px; height: 12px; animation-delay: -2s; }
.embers i:nth-child(5) { left: 74%; bottom: 20%; width: 8px; height: 8px; animation-duration: 12s; animation-delay: -6s; }
.embers i:nth-child(6) { left: 88%; bottom: 10%; animation-delay: -4s; }
.hero-inner { position: relative; z-index: 2; text-align: center; }
.lede { font-size: 17px; max-width: 62ch; margin-inline: auto; color: #d5d5d5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 20px; }
.section { position: relative; padding: 64px 0 28px; background: var(--bg); }
.section:has(> .edge) { padding-bottom: clamp(108px, 13vw, 168px); }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 680px; margin-bottom: 26px; }
.kicker, .chip {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 5px 8px;
  margin-bottom: 10px;
}

.grid-3, .grid-2, .plans, .soft, .bento, .gallery { display: grid; gap: 16px; }
.grid-3, .plans { grid-template-columns: repeat(3, 1fr); }
.grid-2, .bento { grid-template-columns: 1fr 1fr; }
.soft { grid-template-columns: repeat(4, 1fr); }
.logo-marquee {
  container-type: inline-size;
  overflow: hidden;
  margin-top: 8px;
  width: 100%;
}
.logo-track {
  display: flex;
  width: max-content;
  animation: logo-slide 22s linear infinite;
}
.logo-wall {
  list-style: none;
  margin: 0;
  padding: 14px 0 18px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-around;
  flex: 0 0 100cqi;
  width: 100cqi;
  box-sizing: border-box;
}
.logo-wall li { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.logo-wall img {
  width: clamp(32px, 5.5vw, 64px);
  height: clamp(32px, 5.5vw, 64px);
  object-fit: contain;
}
.logo-wall img.logo-pixel { image-rendering: pixelated; }
@keyframes logo-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.gallery { grid-template-columns: 1.4fr 1fr 1fr; }

.card, .tag, .config, .motd, .stat, .row, .note {
  background: var(--card);
  border: 2px solid var(--line);
}
.card, .config, .stat { padding: 20px; }
.card { position: relative; }
.card:hover, .soft .card:hover { border-color: var(--accent-2); }
.card p:last-child { margin-bottom: 0; }
.card strong, .motd { color: var(--text); }
.plan .price { font-size: 40px; }
.plan.pick { border-color: var(--accent); }
.tag {
  color: var(--text);
  padding: 6px 8px;
  font-size: 15px;
  background: #111;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; }

.config label { display: block; color: var(--text); font-weight: 700; margin: 12px 0 6px; }
.config select, .config input[type="range"], .field input, .field textarea, .console-input, .search input, .connect input {
  width: 100%;
  background: #0d0d0d;
  color: var(--text);
  border: 2px solid var(--line);
  padding: 10px 12px;
  font-size: 16px;
}
.price-line { margin-top: 16px; }
.price { font-size: 48px; color: #b7a6ff; }
.price span { font-family: "Noto Sans", sans-serif; font-size: 15px; color: var(--muted); font-weight: 400; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split + .split { margin-top: 36px; }
.split figure { margin: 0; }
.split img, .gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 2px solid var(--line);
}
.gallery img { height: 220px; }
.gallery .wide { grid-row: span 2; height: 100%; min-height: 456px; object-fit: cover; }
figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; }

.motd {
  padding: 16px;
  font-family: ui-monospace, monospace;
  color: #f4f4f4;
}
.motd .players { color: #b7f0c8; }
.bar { height: 8px; background: #2a2a2a; margin-top: 8px; }
.bar i { display: block; height: 100%; background: var(--accent); width: 42%; }

.pixel-row { display: flex; gap: 6px; margin: 8px 0 16px; }
.pixel-row i { width: 10px; height: 10px; background: var(--accent); display: block; }
.pixel-row i:nth-child(2) { background: var(--accent-2); }
.pixel-row i:nth-child(3) { background: #c4b6ff; }

table { width: 100%; border-collapse: collapse; background: var(--card-2); }
th, td { border: 2px solid var(--line); padding: 12px 14px; text-align: left; }
th { background: #111; color: #fff; font-size: 16px; }
td { color: var(--muted); }
.table-wrap { overflow-x: auto; }

.faq details { border-bottom: 2px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; color: var(--text); font-weight: 700; }

.footer { border-top: 2px solid var(--line); padding: 28px 0 40px; background: var(--bg-2); }
.footer-grid { display: flex; flex-wrap: wrap; gap: 14px 22px; justify-content: space-between; align-items: center; }
.footer a { color: var(--text); text-decoration: none; border-bottom: 3px solid transparent; padding-bottom: 2px; }
.footer a:hover { border-bottom-color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.fine { flex-basis: 100%; font-size: 15px; color: var(--muted); }

.note { padding: 12px 14px; color: var(--muted); border-left: 0; }

.edge { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(70px, 9vw, 130px); z-index: 4; pointer-events: none; }
.edge div { position: absolute; inset: 0; }
.edge .e1 { background: rgba(23, 24, 28, 0.55); }
.edge .e2 { background: var(--bg); }
.edge.onto-dark .e2 { background: var(--bg-2); }
.edge.v0 .e1 { clip-path: polygon(0 55%,4% 55%,4% 25%,12% 25%,12% 50%,22% 50%,22% 20%,30% 20%,30% 60%,42% 60%,42% 30%,50% 30%,50% 55%,60% 55%,60% 15%,68% 15%,68% 50%,80% 50%,80% 25%,90% 25%,90% 55%,100% 55%,100% 100%,0 100%); }
.edge.v0 .e2 { clip-path: polygon(0 80%,7% 80%,7% 60%,16% 60%,16% 78%,28% 78%,28% 55%,38% 55%,38% 80%,52% 80%,52% 62%,64% 62%,64% 82%,74% 82%,74% 58%,86% 58%,86% 78%,96% 78%,96% 62%,100% 62%,100% 100%,0 100%); }
.edge.v1 .e1 { clip-path: polygon(0 42%,9% 42%,9% 18%,20% 18%,20% 48%,34% 48%,34% 22%,46% 22%,46% 58%,60% 58%,60% 16%,74% 16%,74% 46%,88% 46%,88% 24%,100% 24%,100% 100%,0 100%); }
.edge.v1 .e2 { clip-path: polygon(0 70%,12% 70%,12% 48%,24% 48%,24% 74%,38% 74%,38% 52%,50% 52%,50% 78%,64% 78%,64% 46%,78% 46%,78% 72%,92% 72%,92% 54%,100% 54%,100% 100%,0 100%); }
.edge.v2 .e1 { clip-path: polygon(0 36%,6% 36%,6% 58%,15% 58%,15% 22%,27% 22%,27% 50%,39% 50%,39% 16%,51% 16%,51% 44%,63% 44%,63% 20%,75% 20%,75% 52%,87% 52%,87% 28%,100% 28%,100% 100%,0 100%); }
.edge.v2 .e2 { clip-path: polygon(0 66%,8% 66%,8% 78%,18% 78%,18% 50%,30% 50%,30% 72%,42% 72%,42% 46%,54% 46%,54% 68%,66% 68%,66% 48%,78% 48%,78% 74%,90% 74%,90% 56%,100% 56%,100% 100%,0 100%); }
.edge.v3 .e1 { clip-path: polygon(0 50%,16% 50%,16% 18%,36% 18%,36% 56%,56% 56%,56% 14%,76% 14%,76% 48%,100% 48%,100% 100%,0 100%); }
.edge.v3 .e2 { clip-path: polygon(0 76%,18% 76%,18% 52%,40% 52%,40% 80%,60% 80%,60% 48%,82% 48%,82% 74%,100% 74%,100% 100%,0 100%); }
.edge.v4 .e1 { clip-path: polygon(0 46%,11% 46%,11% 20%,24% 20%,24% 54%,38% 54%,38% 16%,52% 16%,52% 48%,66% 48%,66% 22%,80% 22%,80% 52%,94% 52%,94% 28%,100% 28%,100% 100%,0 100%); }
.edge.v4 .e2 { clip-path: polygon(0 74%,14% 74%,14% 52%,28% 52%,28% 78%,42% 78%,42% 48%,56% 48%,56% 72%,70% 72%,70% 50%,84% 50%,84% 76%,100% 76%,100% 100%,0 100%); }
.edge.v5 .e1 { clip-path: polygon(0 38%,7% 38%,7% 22%,18% 22%,18% 46%,30% 46%,30% 14%,43% 14%,43% 40%,55% 40%,55% 18%,67% 18%,67% 48%,79% 48%,79% 26%,91% 26%,91% 44%,100% 44%,100% 100%,0 100%); }
.edge.v5 .e2 { clip-path: polygon(0 68%,10% 68%,10% 50%,22% 50%,22% 72%,34% 72%,34% 46%,48% 46%,48% 70%,60% 70%,60% 48%,72% 48%,72% 74%,84% 74%,84% 54%,100% 54%,100% 100%,0 100%); }

.panel-shell { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - var(--nav)); margin-top: var(--nav); }
.side { background: var(--bg-2); border-right: 2px solid var(--line); padding: 16px 12px; }
.side button {
  display: block; width: 100%; text-align: left;
  background: transparent; border: 0; color: var(--muted);
  font-size: 16px; padding: 8px 10px; cursor: pointer;
  border-bottom: 3px solid transparent;
}
.side button[aria-current="true"] { color: #fff; border-bottom-color: #fff; background: #111; }
.panel-main { padding: 22px; }
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0; }
.stat b { display: block; color: #c4b6ff; font-family: "MCTen", sans-serif; font-weight: 400; font-size: 26px; }
.toolbar, .console-form, .connect { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.connect input { flex: 1; min-width: 180px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: grid; grid-template-columns: 1.4fr 0.8fr auto;
  gap: 10px; align-items: center;
  padding: 10px 12px;
}
.console {
  background: #0b0b0b; border: 2px solid var(--line);
  min-height: 280px; padding: 12px; overflow: auto;
  font-family: ui-monospace, monospace; font-size: 14px; color: #d7d7d7;
}
.console .err { color: #ffb4c8; }
.console .sys { color: #c4b6ff; }
.console-input { flex: 1; }
.suggest { color: #9ec4ff; font-size: 14px; min-height: 1.2em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 10px; }
.badge { color: #b7f0c8; font-size: 14px; font-weight: 700; }
.badge.off { color: #ffb4c8; }

main > .wrap:first-child,
main > section.wrap:first-child,
main > section.section:first-child {
  padding-top: calc(var(--nav) + 36px);
}
.hero-stage { padding-top: calc(var(--nav) + 24px); }

@keyframes rise {
  0% { transform: translateY(20px); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translateY(-70vh); opacity: 0; }
}
@keyframes fadeup {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.reveal { animation: fadeup .7s ease both; }

@media (max-width: 1100px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, a.btn.nav-cta { display: none; }
  button.nav-toggle { display: inline-flex; justify-self: end; }
  .mobile-menu.open {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: var(--nav); left: 12px; right: 12px; z-index: 39;
    background: #0d0d0d; border: 2px solid var(--line); padding: 10px;
  }
  .mobile-menu a { text-decoration: none; font-size: 18px; padding: 8px; border-bottom: 3px solid transparent; }
  .mobile-menu a:hover { border-bottom-color: #fff; }
}
@media (max-width: 760px) {
  .hero-stage { min-height: auto; }
  .grid-3, .grid-2, .plans, .bento, .two, .split, .panel-shell, .statrow, .gallery, .soft {
    grid-template-columns: 1fr;
  }
  .split { gap: 22px; }
  .split img, .gallery img, .gallery .wide { height: 220px; min-height: 0; }
  .side { border-right: 0; border-bottom: 2px solid var(--line); }
  .row { grid-template-columns: 1fr; }
}
.server-browser { background: var(--bg); }
.browser-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.browser-head h1 { margin-bottom: 6px; }
.browser-head .lede { margin: 0; }
.srv-list { display: flex; flex-direction: column; gap: 22px; }
.srv-card { position: relative; margin: 0; }
.srv-shell {
  position: relative;
  min-height: 320px;
  border-radius: 36px;
  overflow: hidden;
  background: #2c3344;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
}
.srv-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
}
.srv-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #252b3b 0 30%, rgba(37, 43, 59, .88) 44%, rgba(37, 43, 59, .35) 62%, rgba(37, 43, 59, .08) 100%);
}
.srv-body { position: relative; z-index: 2; padding: 28px 32px 24px; max-width: 760px; }
.srv-top { display: flex; justify-content: flex-start; align-items: center; flex-wrap: wrap; gap: 14px 18px; }
.srv-name {
  margin: 0;
  font-family: "MCTen", sans-serif;
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: .95;
  color: #fff;
  text-shadow: 4px 4px 0 #1b1b1b;
}
.srv-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}
.srv-dot { width: 16px; height: 16px; background: #6d6d6d; flex: none; }
.srv-status.on .srv-dot { background: #3dff7a; }
.srv-meta { margin: 18px 0 8px; color: #c9ced8; font-size: 15px; line-height: 1.55; }
.srv-meta p { margin: 0; }
.srv-motd-kicker {
  margin: 8px 0 6px;
  color: #fff;
  font-family: "MCTen", sans-serif;
  font-size: 18px;
  text-shadow: 2px 2px 0 #1b1b1b;
}
.srv-motd {
  display: flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  width: min(640px, 100%);
  min-height: 88px;
  margin: 0;
  padding: 12px 20px 12px 12px;
  background-color: #2a1c12;
  background-image: url("/assets/motd-bg.png");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 64px 64px;
  image-rendering: pixelated;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  font-family: "Minecraft", "MCTen", sans-serif;
  font-weight: 400;
  font-synthesis: none;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  text-align: left;
  color: #7e7e7e;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.srv-motd .srv-icon {
  width: 64px;
  height: 64px;
  flex: none;
  image-rendering: pixelated;
}
.srv-motd .srv-motd-copy { min-width: 0; flex: 1; }
.srv-motd .srv-list-name {
  margin: 0 0 4px;
  padding: 1px 4px 2px 0;
  color: #fff;
  font-family: "Minecraft", "MCTen", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: pre-wrap;
  overflow: visible;
  text-shadow: 2px 2px 0 #3f3f3f;
}
.srv-motd .srv-motd-lines {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow: visible;
  line-height: 24px;
  padding-top: 2px;
  padding-bottom: 4px;
}
.srv-motd span {
  font-family: inherit;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
}
.srv-motd .mc-0 { --mc: #000000; --mc-sh: #000000; }
.srv-motd .mc-1 { --mc: #0000aa; --mc-sh: #00002a; }
.srv-motd .mc-2 { --mc: #00aa00; --mc-sh: #002a00; }
.srv-motd .mc-3 { --mc: #00aaaa; --mc-sh: #002a2a; }
.srv-motd .mc-4 { --mc: #aa0000; --mc-sh: #2a0000; }
.srv-motd .mc-5 { --mc: #aa00aa; --mc-sh: #2a002a; }
.srv-motd .mc-6 { --mc: #ffaa00; --mc-sh: #2a2a00; }
.srv-motd .mc-reset { --mc: #7e7e7e; --mc-sh: #3f3f3f; }
.srv-motd .mc-7 { --mc: #aaaaaa; --mc-sh: #2a2a2a; }
.srv-motd .mc-8 { --mc: #555555; --mc-sh: #151515; }
.srv-motd .mc-9 { --mc: #5555ff; --mc-sh: #15153f; }
.srv-motd .mc-a { --mc: #55ff55; --mc-sh: #153f15; }
.srv-motd .mc-b { --mc: #55ffff; --mc-sh: #153f3f; }
.srv-motd .mc-c { --mc: #ff5555; --mc-sh: #3f1515; }
.srv-motd .mc-d { --mc: #ff55ff; --mc-sh: #3f153f; }
.srv-motd .mc-e { --mc: #ffff55; --mc-sh: #3f3f15; }
.srv-motd .mc-f { --mc: #ffffff; --mc-sh: #3f3f3f; }
.srv-motd .mc-0,
.srv-motd .mc-1,
.srv-motd .mc-2,
.srv-motd .mc-3,
.srv-motd .mc-4,
.srv-motd .mc-5,
.srv-motd .mc-6,
.srv-motd .mc-7,
.srv-motd .mc-8,
.srv-motd .mc-9,
.srv-motd .mc-a,
.srv-motd .mc-b,
.srv-motd .mc-c,
.srv-motd .mc-d,
.srv-motd .mc-e,
.srv-motd .mc-f,
.srv-motd .mc-reset,
.srv-motd .mc-hex {
  color: var(--mc);
  text-shadow: 2px 2px 0 var(--mc-sh);
}
.srv-motd .mc-bold {
  font-weight: 800;
  font-synthesis: weight;
}
.srv-motd .mc-italic { font-style: italic; }
.srv-motd .mc-under { text-decoration: underline; text-decoration-thickness: 0.125em; text-underline-offset: 0.125em; }
.srv-motd .mc-strike { text-decoration: line-through; text-decoration-thickness: 0.125em; }
.srv-motd .mc-under.mc-strike { text-decoration: underline line-through; }
.srv-motd br { line-height: 24px; }
.onboard .srv-motd { margin-top: 12px; }
.srv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.add-server { margin-top: 36px; max-width: 520px; }
.add-server h2 { margin-top: 0; }
.add-server label { display: block; color: #fff; font-weight: 700; margin: 12px 0 6px; }
.onboard {
  width: min(980px, calc(100% - 28px));
  max-height: calc(100% - 28px);
  overflow: auto;
  background: #161616;
  color: #fff;
  border: 2px solid var(--line);
  padding: 22px 22px 18px;
}
.onboard::backdrop { background: rgba(0, 0, 0, .75); }
.ob-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.ob-steps span {
  font-size: 13px;
  color: #8d8d8d;
  border-bottom: 3px solid #2a2a2a;
  padding-bottom: 4px;
}
.ob-steps span.on { color: #fff; border-bottom-color: var(--accent); }
.ob-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ob-choice, .ob-plan {
  text-align: left;
  background: #101010;
  color: #fff;
  border: 2px solid #2a2a2a;
  padding: 12px;
  cursor: pointer;
}
.ob-choice[aria-pressed="true"], .ob-plan[aria-pressed="true"] { border-color: #fff; }
.ob-choice img { width: 36px; height: 36px; object-fit: contain; margin-bottom: 8px; }
.ob-plan b { display: block; font-family: "MCTen", sans-serif; font-weight: 400; font-size: 28px; }
.ob-plan span, .ob-note { color: var(--muted); font-size: 14px; }
.ob-note { margin-top: 10px; }
.ob-row { display: flex; gap: 8px; margin-bottom: 12px; }
.ob-row button { flex: 1; }
.onboard input, .onboard select, .onboard textarea {
  width: 100%;
  background: #0d0d0d;
  color: #fff;
  border: 2px solid #2a2a2a;
  padding: 10px 12px;
}
.onboard label { display: block; margin: 12px 0 6px; font-weight: 700; }
.ob-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.ob-error { color: #ffb4b4; min-height: 1.2em; }
.browser-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wall-dialog {
  width: min(920px, calc(100% - 32px));
  background: #111;
  color: #fff;
  border: 2px solid var(--line);
  padding: 20px;
}
.wall-dialog::backdrop { background: rgba(0,0,0,.72); }
.wall-dialog p { color: var(--muted); }
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.wall-grid button {
  padding: 0;
  border: 2px solid var(--line);
  background: #0d0d0d;
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.wall-grid button[aria-pressed="true"], .wall-grid button:hover { border-color: #fff; }
.wall-grid img { width: 100%; height: 78px; object-fit: cover; display: block; }
.wall-grid span { display: block; padding: 6px 8px; font-size: 13px; }
#sel-error { color: #ffb4b4; min-height: 1.2em; }
@media (max-width: 760px) {
  .browser-head { align-items: flex-start; flex-direction: column; }
  .srv-shell { min-height: 0; }
  .srv-fade { background: linear-gradient(180deg, rgba(44, 51, 68, .2) 0%, #2c3344 42%, #2c3344 100%); }
  .srv-photo { object-position: center top; height: 46%; }
  .srv-body { padding-top: 46%; }
  .srv-name { font-size: 32px; }
}
.auth-wrap { width: min(480px, 100%); }
.auth-wrap .lede { margin-inline: 0; max-width: none; }
.auth-card {
  background: #111;
  border: 2px solid var(--line);
  padding: 18px 18px 16px;
}
.auth-tabs { display: flex; gap: 18px; margin-bottom: 6px; }
.auth-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 3px solid #2a2a2a;
  color: #8d8d8d;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 0 0 6px;
  cursor: pointer;
}
.auth-tabs button[aria-pressed="true"] { color: #fff; border-bottom-color: var(--accent); }
.auth-card label { display: block; margin: 14px 0 6px; font-weight: 700; color: #fff; }
.auth-card input {
  width: 100%;
  background: #0d0d0d;
  color: #fff;
  border: 2px solid #2a2a2a;
  padding: 10px 12px;
}
.auth-card .btn { width: 100%; margin-top: 18px; }
.auth-error { color: #ffb4b4; min-height: 1.2em; margin: 14px 0 0; }
.auth-card .auth-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--muted); }
.auth-card .auth-check input { width: auto; margin-top: 4px; }
.footer-tools { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; border: 2px solid var(--line); }
.seg button, .text-btn {
  background: transparent;
  color: var(--text);
  border: 0;
  font-family: "Noto Sans", sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  cursor: pointer;
}
.seg button + button { border-left: 2px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.text-btn { border: 2px solid var(--line); }
.cookie-banner {
  position: fixed;
  inset: auto 16px 16px 16px;
  z-index: 80;
}
.cookie-banner[hidden] { display: none; }
.cookie-card {
  max-width: 720px;
  margin-left: auto;
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--line);
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.cookie-card h2 { margin-top: 0; }
.cookie-card p { color: var(--muted); }
.cookie-links { display: flex; gap: 16px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }

html[data-theme="light"] {
  --bg: #f6f3ec;
  --bg-2: #efeae1;
  --card: #fffdf8;
  --card-2: #f3eee6;
  --line: #d7d0c4;
  --text: #1c1a17;
  --muted: #5e584f;
  color-scheme: light;
}
html[data-theme="light"] body,
html[data-theme="light"] .nav,
html[data-theme="light"] .mobile-menu { background: var(--bg); }
html[data-theme="light"] .nav { border-bottom-color: var(--line); }
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a[aria-current="page"],
html[data-theme="light"] .footer a:hover { border-bottom-color: #1c1a17; }
html[data-theme="light"] .btn.line { color: #1c1a17; border-color: #1c1a17; }
html[data-theme="light"] .section { background: var(--bg); }
html[data-theme="light"] .section.alt,
html[data-theme="light"] .footer,
html[data-theme="light"] .side { background: var(--bg-2); }
html[data-theme="light"] .card,
html[data-theme="light"] .config,
html[data-theme="light"] .auth-card,
html[data-theme="light"] .cookie-card,
html[data-theme="light"] .onboard,
html[data-theme="light"] .wall-dialog,
html[data-theme="light"] .tag,
html[data-theme="light"] th { background: var(--card); color: var(--text); }
html[data-theme="light"] .config select,
html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea,
html[data-theme="light"] .auth-card input,
html[data-theme="light"] .onboard input,
html[data-theme="light"] .onboard select,
html[data-theme="light"] .onboard textarea,
html[data-theme="light"] .connect input,
html[data-theme="light"] .search input,
html[data-theme="light"] .console-input { background: #fff; color: var(--text); }
html[data-theme="light"] .price { color: #4c3d99; }
html[data-theme="light"] .lede { color: var(--muted); }
html[data-theme="light"] .hero-stage,
html[data-theme="light"] .hero-stage h1,
html[data-theme="light"] .hero-stage .lede { color: #fff; }
html[data-theme="light"] .hero-stage .btn.line {
  color: #fff;
  border-color: #fff;
}
html[data-theme="light"] .logo-wall img,
html[data-theme="light"] .ob-choice img {
  filter: brightness(0);
}
html[data-theme="light"] .edge .e1 { background: rgba(246, 243, 236, .55); }
html[data-theme="light"] .side button[aria-current="true"] { color: var(--text); border-bottom-color: var(--text); background: #fff; }
html[data-theme="light"] .ob-choice,
html[data-theme="light"] .ob-plan,
html[data-theme="light"] .wall-grid button { background: #fff; color: var(--text); }
html[data-theme="light"] .auth-tabs button { color: #6d675e; }
html[data-theme="light"] .auth-tabs button[aria-pressed="true"],
html[data-theme="light"] .auth-card label { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .embers i, .reveal, .logo-track { animation: none; }
  .logo-wall[aria-hidden="true"] { display: none; }
  .embers { display: none; }
}
