/*
 * Copyright (c) 2026 Sudolix (sudolix.com). All rights reserved.
 * Proprietary and confidential. Copying, modifying, distributing or using this code,
 * in whole or in part, without written permission from Sudolix is not allowed.
 */

:root {
  --bg: #0e0e10;
  --raised: #151517;
  --line: #29292d;
  --text: #f3f1ec;
  --muted: #a09c94;
  --faint: #6f6c66;
  --accent: #7096f8;
  --btn: #3b68de;
  --btn-hover: #4a78ec;
  --accent-ink: #ffffff;
  --danger: #ff9b8f;
  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

p { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* header */
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo { height: 36px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: var(--text);
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.nav .nav-cta:hover { border-color: var(--faint); }

/* hero */
.hero { padding: 72px 0 96px; text-align: center; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
h1 {
  margin: 0 auto 20px;
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.lead {
  margin: 0 auto 32px;
  max-width: 560px;
  font-size: 18px;
  color: var(--muted);
}

/* form */
.join { max-width: 480px; margin: 0 auto; text-align: left; }
.label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--muted); }
.label-gap { margin-top: 16px; }
.row { display: flex; gap: 8px; }
.row input { flex: 1; min-width: 0; }

input[type="email"], input[type="text"], select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  background: var(--raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}
input::placeholder { color: var(--faint); }
input:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  height: 46px;
  padding: 0 18px;
  background: var(--btn);
  color: var(--accent-ink);
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { background: var(--btn-hover); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.fine { margin-top: 14px; font-size: 14px; color: var(--faint); }
.msg { margin-top: 10px; font-size: 14px; color: var(--danger); }
.msg:empty { margin: 0; }

.form[hidden], .done[hidden] { display: none; }
.done { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; }
.done-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.done-text { color: var(--muted); }

/* sections */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
}
h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.list { margin: 0; }
.list > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.list > div:first-child { border-top: 0; padding-top: 4px; }
.list dt { font-weight: 600; }
.list dd { margin: 0; color: var(--muted); }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head p { margin-top: 12px; font-size: 18px; color: var(--muted); }
.section-head .demo-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; font-size: 14px; color: var(--faint); }
.ghost-btn { display: inline-block; padding: 9px 16px; border: 1px solid var(--faint); border-radius: 4px; color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.ghost-btn:hover { border-color: var(--accent); }
.ghost-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 56px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.feature.flip { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.feature.flip .feature-text { order: 2; }
h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.feature-text p:last-child, .grid p { color: var(--muted); }

.shot {
  margin: 0;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.shot-bar {
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}
.shot img { display: block; width: 100%; height: auto; }
.shot-body {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--faint);
  background: var(--bg);
}

.grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 40px;
}
.grid h3 { font-size: 17px; }
.after { margin-top: 40px; color: var(--faint); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.foot-note { color: var(--faint); }
.foot a { text-decoration-color: var(--faint); text-underline-offset: 3px; }
.foot a:hover { color: var(--text); }

@media (max-width: 880px) {
  .hero { padding: 32px 0 64px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 0; }
  .feature.flip .feature-text { order: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 56px 0; }
}

@media (max-width: 560px) {
  .nav a:not(.nav-cta) { display: none; }
  .row { flex-direction: column; }
  .row input { flex: none; }
  .btn { width: 100%; }
  .list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* why, pricing, questions */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.grid.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; margin-top: 0; padding-top: 0; }
.demo-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 40px; font-size: 14px; color: var(--faint); }
.after a, .fine a, .qa a, .price-note a { color: var(--accent); text-underline-offset: 3px; }

.price-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.price-box { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.price-head { padding: 22px 24px 18px; }
.price-head p { margin-top: 6px; color: var(--muted); }
.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { padding: 13px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.prices th:first-child, .prices td:first-child { padding-left: 24px; }
.prices th:last-child, .prices td:last-child { padding-right: 24px; text-align: right; white-space: nowrap; }
.prices thead th { font-size: 12px; font-weight: 500; color: var(--faint); }
.prices tbody th { font-weight: 600; white-space: nowrap; }
.prices td { color: var(--muted); }
.prices .num { text-align: right; white-space: nowrap; }
.prices td.num { color: var(--text); font-weight: 600; font-size: 17px; }
.sold { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 4px; background: #24242a; color: var(--muted); }
.price-note { padding: 16px 24px 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }

.qa-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; }
.qa-group h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-family: var(--mono); font-size: 20px; font-weight: 400; color: var(--faint); }
.qa[open] summary::after { content: "\2212"; }
.qa summary:hover { color: var(--accent); }
.qa summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qa p { padding: 0 32px 18px 0; color: var(--muted); }

.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot .foot-note { margin-top: 18px; }

/* legal pages */
.legal { padding: 40px 0 88px; }
.legal-in { max-width: 720px; }
.legal h1 { font-size: clamp(30px, 4.4vw, 42px); margin-bottom: 8px; }
.legal .updated { color: var(--faint); font-size: 14px; margin-bottom: 28px; }
.legal h2 { margin: 40px 0 12px; font-size: 22px; }
.legal h3 { margin: 24px 0 8px; font-size: 17px; }
.legal p, .legal li { color: #c9c5bc; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); text-underline-offset: 3px; }

@media (max-width: 880px) {
  .price-cols, .qa-cols { grid-template-columns: minmax(0, 1fr); }
  .qa-cols { gap: 36px; }
}
@media (max-width: 560px) {
  .grid.grid-2 { grid-template-columns: minmax(0, 1fr); }
  .prices th:nth-child(2), .prices td:nth-child(2) { display: none; }
  .prices th:first-child, .prices td:first-child { padding-left: 16px; }
  .prices th:last-child, .prices td:last-child { padding-right: 16px; }
  .price-head, .price-note { padding-left: 16px; padding-right: 16px; }
  .nav a:not(.nav-cta) { display: none; }
}

/* separate pages */
.nav a[aria-current="page"] { color: var(--text); }
.section.page-top { border-top: 0; padding-top: 48px; }
.page-top h1 { margin-bottom: 0; font-size: clamp(32px, 4.6vw, 46px); }
.page-top .section-head p { margin-top: 16px; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.product { display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; }
.product:hover { border-color: var(--faint); }
.product img { display: block; width: 100%; height: 220px; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.product-text { padding: 22px 24px 24px; }
.product-text p { color: var(--muted); margin-bottom: 14px; }
.product .more { color: var(--accent); font-weight: 600; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; }
.cta-row p { margin-top: 8px; color: var(--muted); max-width: 560px; }
.cta-row p a { color: var(--accent); text-underline-offset: 3px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-btn { display: inline-flex; align-items: center; text-decoration: none; }
.feature-text p + p { margin-top: 12px; }
@media (max-width: 880px) {
  .products { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .nav { gap: 16px; font-size: 14px; }
  .nav a[href="/#faq"] { display: none; }
}
@media (max-width: 560px) {
  .top-row { height: auto; padding-top: 14px; padding-bottom: 10px; flex-wrap: wrap; gap: 10px 16px; }
  .nav a:not(.nav-cta) { display: inline; }
  .nav a[href="/#faq"] { display: none; }
}

/* price tables read better stacked than squeezed side by side */
.price-cols { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.prices td:nth-child(2) { width: 58%; }

/* hosting menu */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.menu summary:hover, .menu[open] summary, .menu[data-current] summary { color: var(--text); }
.menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.menu-list { position: absolute; top: calc(100% + 12px); left: -14px; z-index: 20; min-width: 200px; padding: 6px; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; }
.nav .menu-list a { padding: 9px 12px; border-radius: 4px; color: var(--text); white-space: nowrap; }
.nav .menu-list a:hover { background: #1f1f23; }

/* sign-up buttons in the hero */
.join-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.join { max-width: 620px; text-align: center; }
.join .fine { max-width: 520px; margin-left: auto; margin-right: auto; }
a.btn.link-btn { height: 46px; }

/* centered pages */
.legal-in { margin-left: auto; margin-right: auto; }
.centered .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.centered .price-cols { margin-left: auto; margin-right: auto; max-width: 940px; }
.centered .after { text-align: center; }

/* what a plan includes */
.prices.specs td { color: var(--text); }
.prices.specs td.for { color: var(--muted); width: 34%; }
.prices.specs td:nth-child(2) { width: auto; white-space: nowrap; }
.prices.specs td:nth-child(3) { white-space: nowrap; }
.includes { padding: 22px 24px 24px; border-top: 1px solid var(--line); }
.includes h4 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.includes ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.includes li { position: relative; padding-left: 18px; color: var(--muted); font-size: 15px; }
.includes li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--btn); }
@media (max-width: 720px) {
  .includes ul { grid-template-columns: minmax(0, 1fr); }
  .prices.specs .for { display: none; }
  .nav a[href="https://panel.sudolix.com/"] { display: none; }
}
@media (max-width: 560px) {
  .prices.specs th:nth-child(2), .prices.specs td:nth-child(2) { display: table-cell; }
  .prices.specs th, .prices.specs td { padding-left: 8px; padding-right: 8px; }
  .includes { padding-left: 16px; padding-right: 16px; }
  .menu-list { left: 0; }
}

@media (max-width: 560px) { .prices.specs td:last-child, .prices.specs th:last-child { padding-right: 12px; } .sold { padding: 3px 6px; } }

.sold.open { background: #1d2a20; color: #8fd6a3; }

.grid a { color: var(--accent); text-underline-offset: 3px; }

.claim-btn { height: 36px; white-space: nowrap; font-size: 14px; padding: 0 14px; }
@media (max-width: 640px) { .claim-btn { width: auto; } }

/* Other products */
.eyebrow { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.feature-text h2 { font-size: 28px; margin-bottom: 14px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.product-actions .btn, .product-actions .ghost-btn { width: auto; }
.more-soon { margin-top: 64px; }

/* Shorter menu labels on phones, so the menu stays on one line */
.nav a { white-space: nowrap; }
.nav .narrow { display: none; }
@media (max-width: 560px) {
  .nav .wide { display: none; }
  .nav .narrow { display: inline; }
}

/* the menu has one more link since Free tools, so the short labels start on mid-size screens */
@media (max-width: 900px) {
  .nav { gap: 20px; }
  .nav .wide { display: none; }
  .nav .narrow { display: inline; }
}

/* Free tools */
.crumbs { margin-bottom: 14px; font-size: 14px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: 0.92em; padding: 1px 5px; border-radius: 3px; background: #1d1d21; color: var(--text); }

.tool-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tool-card { display: block; padding: 24px; background: var(--raised); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.tool-card:hover { border-color: var(--faint); }
.tool-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-card h2, .tool-card h3 { font-size: 20px; margin-bottom: 8px; }
.tool-card p { color: var(--muted); margin-bottom: 14px; }
.tool-card .more { color: var(--accent); font-weight: 600; }
.tool-card .more::after { content: " \2192"; }

.tool-box { background: var(--raised); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; }
.tool-box .row select.edition { width: auto; flex: none; }
.tool-box .msg { margin-top: 12px; }
.tool-out { margin-top: 24px; }
.tool-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.tool-cols .tool-out { margin-top: 0; }
.out-title { font-size: 15px; color: var(--muted); font-weight: 600; margin: 22px 0 10px; }
.tool-cols .tool-out > .out-title:first-child { margin-top: 0; }
.out-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.out-actions .btn, .out-actions .ghost-btn { width: auto; }
button.ghost-btn { background: transparent; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.tool-notes { margin-top: 56px; }
.msg.warn { color: #f2c46d; }

input[type="number"], textarea { width: 100%; padding: 0 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 4px; font: inherit; }
input[type="number"] { height: 46px; }
textarea { padding: 12px; resize: vertical; min-height: 220px; line-height: 1.5; }
.tool-box input[type="text"], .tool-box select { background: var(--bg); }
textarea:focus, input[type="number"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
select:disabled, input:disabled { opacity: 0.5; }
.mono, textarea.mono { font-family: var(--mono); font-size: 14px; }
.check { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--btn); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.more-opts { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.more-opts summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.more-opts summary:hover { color: var(--text); }

/* MOTD maker buttons */
.swatches { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.sw { height: 30px; border: 1px solid #000; border-radius: 3px; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12); }
.sw:hover { transform: translateY(-1px); }
.sw:focus-visible, .fmt button:focus-visible, .copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sw-0 { background: #000000; } .sw-1 { background: #0000aa; } .sw-2 { background: #00aa00; } .sw-3 { background: #00aaaa; }
.sw-4 { background: #aa0000; } .sw-5 { background: #aa00aa; } .sw-6 { background: #ffaa00; } .sw-7 { background: #aaaaaa; }
.sw-8 { background: #555555; } .sw-9 { background: #5555ff; } .sw-a { background: #55ff55; } .sw-b { background: #55ffff; }
.sw-c { background: #ff5555; } .sw-d { background: #ff55ff; } .sw-e { background: #ffff55; } .sw-f { background: #ffffff; }
.fmt { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.fmt button { height: 32px; padding: 0 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 14px; cursor: pointer; }
.fmt button:hover { border-color: var(--faint); }
.fmt-l { font-weight: 700; } .fmt-o { font-style: italic; } .fmt-n { text-decoration: underline; } .fmt-m { text-decoration: line-through; }

/* a server list entry, drawn like the game's */
.mc-list { padding: 10px; border-radius: 6px; background-color: #1b1610; background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), repeating-linear-gradient(45deg, #3b2f22 0 6px, #34291e 6px 12px); overflow: hidden; }
.mc-entry { display: flex; gap: 10px; align-items: flex-start; padding: 6px; border: 1px solid #808080; background: rgba(0,0,0,0.6); }
.mc-icon { flex: none; width: 64px; height: 64px; image-rendering: pixelated; display: block; }
.mc-icon-empty { background: #3a3a3a; box-shadow: inset 0 0 0 8px #444; }
.mc-body { flex: 1; min-width: 0; font-family: var(--mono); font-size: 15px; line-height: 1.35; }
.mc-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.mc-name { color: #fff; text-shadow: 0.125em 0.125em 0 #3f3f3f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-right { display: inline-flex; gap: 8px; align-items: center; flex: none; }
.mc-motd { margin-top: 4px; white-space: pre; overflow: hidden; min-height: 2.7em; }
.mc-text { white-space: pre-wrap; font-family: var(--mono); }
.mc-l { font-weight: 700; } .mc-o { font-style: italic; } .mc-n { text-decoration: underline; } .mc-m { text-decoration: line-through; } .mc-nm { text-decoration: underline line-through; }
.mc-bars { display: inline-flex; align-items: flex-end; gap: 1px; height: 14px; }
.mc-bars i { display: block; width: 3px; background: #00cc00; }
.mc-bars i:nth-child(1) { height: 4px; } .mc-bars i:nth-child(2) { height: 6px; } .mc-bars i:nth-child(3) { height: 8px; } .mc-bars i:nth-child(4) { height: 11px; } .mc-bars i:nth-child(5) { height: 14px; }
.bars-4 i:nth-child(n+5), .bars-3 i:nth-child(n+4), .bars-2 i:nth-child(n+3), .bars-1 i:nth-child(n+2) { background: #2b2b2b; }
.bars-1 i:nth-child(1) { background: #cc0000; }

.facts { margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.facts > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.players { margin-top: 20px; }
.players h3 { font-size: 15px; color: var(--muted); font-weight: 600; }
.mc-sample { list-style: none; margin: 8px 0 0; padding: 12px 14px; background: #100010; border: 1px solid #2a0a5e; border-radius: 4px; display: inline-block; min-width: 240px; }
.mc-sample li { font-size: 14px; }
.share { margin-top: 18px; }
.share a { color: var(--accent); text-underline-offset: 3px; }

.code-out { position: relative; }
.code-out pre { margin: 0; padding: 14px 16px; padding-right: 76px; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }
.copy { position: absolute; top: 8px; right: 8px; height: 30px; padding: 0 12px; background: var(--raised); color: var(--text); border: 1px solid var(--line); border-radius: 4px; font: inherit; font-size: 13px; cursor: pointer; }
.copy:hover { border-color: var(--faint); }
.code-out + .fine { margin-top: 8px; }
.notes { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }
.notes li { margin: 6px 0; }

.findings { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.finding { padding: 14px 16px; background: var(--raised); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; }
.finding h4 { margin: 6px 0 4px; font-size: 16px; font-family: var(--mono); font-weight: 600; overflow-wrap: anywhere; }
.finding p { color: var(--muted); }
.finding a { display: inline-block; margin-top: 8px; color: var(--accent); text-underline-offset: 3px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: #1d2440; color: #a9bdf8; }
.finding-risk { border-left-color: #ff7b6e; } .finding-risk .badge { background: #3a1a17; color: #ffb2a8; }
.finding-lag { border-left-color: #f2c46d; } .finding-lag .badge { background: #362a12; color: #f6d48f; }

.msg.ok { color: #8fd6a3; }
.inline-select { width: auto; height: 46px; }
input[type="datetime-local"] { width: 100%; height: 46px; padding: 0 12px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 4px; font: inherit; color-scheme: dark; }
input[type="datetime-local"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
input[type="range"] { width: 100%; accent-color: var(--btn); }
.tool-group { margin-top: 56px; }
.tool-group:first-of-type { margin-top: 0; }
.tool-group > h2 { margin-bottom: 18px; }

/* DNS records */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; margin-top: 12px; }
.records { width: 100%; border-collapse: collapse; font-size: 14px; }
.records th, .records td { padding: 10px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.records thead th { border-top: 0; font-size: 12px; font-weight: 500; color: var(--faint); background: var(--raised); }
.records td { font-family: var(--mono); color: var(--muted); white-space: nowrap; }
.records td.value { color: var(--text); white-space: normal; overflow-wrap: anywhere; min-width: 240px; }

/* Discord timestamps and passwords: one row per result */
.ts-list, .pw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ts-list li { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto auto; gap: 6px 14px; align-items: center; padding: 10px 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; }
.ts-label { color: var(--muted); font-size: 14px; }
.ts-looks { overflow-wrap: anywhere; }
.ts-list code, .pw-list code { white-space: nowrap; }
.ts-list .copy, .pw-list .copy { position: static; }
.pw-list li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; background: var(--raised); border: 1px solid var(--line); border-radius: 6px; }
.pw-list code { background: transparent; padding: 0; font-size: 15px; white-space: normal; overflow-wrap: anywhere; user-select: all; }

/* Discord ANSI colours */
.ansi-row { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.ansi-row button { height: 32px; border: 1px solid #000; border-radius: 3px; cursor: pointer; font: inherit; font-weight: 700; }
.ansi-row button:not([data-bg]) { background: #2b2d31; }
.ansi-row button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ansi-edit { min-height: 180px; margin-top: 0; padding: 12px; background: #2b2d31; color: #b9bbbe; border: 1px solid var(--line); border-radius: 4px; font-family: var(--mono); font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.ansi-edit:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ansi-fg-30 { color: #4f545c; } .ansi-fg-31 { color: #dc322f; } .ansi-fg-32 { color: #859900; } .ansi-fg-33 { color: #b58900; }
.ansi-fg-34 { color: #268bd2; } .ansi-fg-35 { color: #d33682; } .ansi-fg-36 { color: #2aa198; } .ansi-fg-37 { color: #ffffff; }
.ansi-bg-40 { background: #002b36; } .ansi-bg-41 { background: #cb4b16; } .ansi-bg-42 { background: #586e75; } .ansi-bg-43 { background: #657b83; }
.ansi-bg-44 { background: #839496; } .ansi-bg-45 { background: #6c71c4; } .ansi-bg-46 { background: #93a1a1; } .ansi-bg-47 { background: #fdf6e3; }
.ansi-row .ansi-bg-40, .ansi-row .ansi-bg-41, .ansi-row .ansi-bg-42, .ansi-row .ansi-bg-43, .ansi-row .ansi-bg-44, .ansi-row .ansi-bg-45, .ansi-row .ansi-bg-46, .ansi-row .ansi-bg-47 { border-color: #000; }
.ansi-bold { font-weight: 700; } .ansi-ul { text-decoration: underline; }
.ansi-clear { color: #b9bbbe; background: transparent; font-weight: 400; }

@media (max-width: 880px) {
  .tool-cols { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .tool-cards { grid-template-columns: minmax(0, 1fr); }
  .tool-box { padding: 18px 16px; }
  .tool-box .row select.edition { width: 100%; }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mc-body { font-size: 12px; }
  .mc-icon { width: 48px; height: 48px; }
  .swatches { gap: 4px; }
  .ts-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .ts-list .ts-label { grid-column: 1 / -1; }
  .ts-list code { grid-column: 1 / -1; grid-row: 3; white-space: normal; }
  .ts-list .copy { grid-column: 2; grid-row: 2; }
  .ansi-row { gap: 4px; }
  .out-actions .inline-select { width: auto; }
}
