@font-face { font-family: "Monocraft"; font-weight: 400; font-display: swap; src: url("../assets/fonts/monocraft-400.woff2") format("woff2"); }
@font-face { font-family: "Monocraft"; font-weight: 700; font-display: swap; src: url("../assets/fonts/monocraft-700.woff2") format("woff2"); }
/* Browser MC Host
   Built from Minecraft's own UI vocabulary: dirt menu backgrounds, beveled stone buttons,
   grey inventory panels with hard bevels, a wooden sign for the address, a chat-box console
   and an XP-bar progress meter. Every texture is original pixel art (assets/tex). */

:root {
  --font: "Monocraft", ui-monospace, monospace;
  --chat: "Monocraft", ui-monospace, monospace;

  /* text */
  --white: #ffffff;
  --shadow: #3f3f3f;
  --gray: #a0a0a0;
  --ink: #3f3f3f;           /* text on inventory grey */
  --yellow: #ffff55;
  --green: #55ff55;
  --red: #ff5555;
  --aqua: #55ffff;
  --gold: #ffaa00;

  /* surfaces */
  --inv: #c6c6c6;
  --inv-hi: #ffffff;
  --inv-lo: #555555;
  --slot: #8b8b8b;
  --field: #000000;

  --ts: 2px 2px 0 var(--shadow);
  --px: 2px;
  font-size: 15px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  font-weight: 400;
  color: var(--white);
  line-height: 1.35;
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.62)),
    url("../assets/tex/dirt.png") 0 0 / 64px 64px;
  image-rendering: pixelated;
  text-shadow: var(--ts);
  -webkit-font-smoothing: none;
}
[hidden] { display: none !important; }
a { color: var(--aqua); }
code { font-family: var(--chat); font-size: 1em; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 0.5rem; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { color: var(--gray); font-size: 0.9rem; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* --------------------------------------------------------------- inventory panel */
.block, fieldset.block, .dialog {
  background: var(--inv);
  color: var(--ink);
  text-shadow: none;
  border: var(--px) solid #000;
  box-shadow: inset 2px 2px 0 var(--inv-hi), inset -2px -2px 0 var(--inv-lo);
  padding: 1rem 1.1rem;
  min-width: 0;
}
.block .note, fieldset.block .note { color: #5e5e5e; }
.block code { color: #222; }

/* ------------------------------------------------------------------- buttons */
.btn {
  font: inherit; font-weight: 400; font-size: 1rem; cursor: pointer;
  color: var(--white); text-shadow: var(--ts);
  background:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.12)),
    url("../assets/tex/stone.png") 0 0 / 32px 32px;
  border: var(--px) solid #000;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.45), inset -2px -3px 0 rgba(0, 0, 0, 0.45);
  padding: 0.45rem 1rem 0.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  text-decoration: none; white-space: nowrap; min-height: 2.4rem;
  image-rendering: pixelated;
}
.btn:hover { border-color: var(--white); color: var(--yellow); }
.btn:active { box-shadow: inset -2px -2px 0 rgba(255, 255, 255, 0.35), inset 2px 3px 0 rgba(0, 0, 0, 0.5); }
.btn:disabled, .btn:disabled:hover {
  cursor: not-allowed; color: var(--gray); border-color: #000;
  background: #2b2b2b; box-shadow: none;
}
.btn-primary {
  background:
    linear-gradient(rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.18)),
    url("../assets/tex/grass.png") 0 0 / 32px 32px;
}
.btn-danger {
  background: linear-gradient(#b0322a, #8a241e);
}
.btn-quiet { background: rgba(0, 0, 0, 0.35); box-shadow: none; border-color: #555; }
.btn-danger-quiet { color: #ffb3ad; }
.btn-small { padding: 0.15rem 0.6rem; font-size: 0.9rem; min-height: 1.9rem; }
.btn-lg { font-size: 1.1rem; padding: 0.6rem 1.4rem; }
.btn-wide { width: 100%; font-size: 1.1rem; min-height: 2.8rem; }
.block .btn { color: var(--white); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.button-grid .btn { white-space: normal; text-align: center; }
.button-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.5rem; margin: 0.75rem 0; }

/* -------------------------------------------------------------------- fields */
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--white); text-shadow: none;
  background: var(--field);
  border: var(--px) solid var(--gray);
  padding: 0.4rem 0.55rem; min-width: 0; border-radius: 0;
}
input::placeholder, textarea::placeholder { color: #6f6f6f; }
input:focus, select:focus, textarea:focus { border-color: var(--white); outline: none; }
textarea { font-family: var(--chat); font-size: 0.9rem; resize: vertical; width: 100%; line-height: 1.15; }
select { appearance: none; padding-right: 1.8rem;
  background: #000 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h10v2H8v2H6v2H4V4H2V2H0z' fill='%23a0a0a0'/%3E%3C/svg%3E") no-repeat right 0.55rem center / 10px 6px; }
input[type="checkbox"], input[type="radio"] {
  appearance: none; width: 18px; height: 18px; padding: 0; margin: 0; flex: none;
  background: #8b8b8b; border: var(--px) solid #000;
  box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #ffffff;
  cursor: pointer; position: relative; top: 3px;
}
input[type="checkbox"]:checked::after, input[type="radio"]:checked::after {
  content: ""; position: absolute; inset: 3px; background: #55ff55; box-shadow: 0 0 0 1px #1e7a1e;
}
input[type="radio"]:checked::after { background: #ffaa00; box-shadow: 0 0 0 1px #8a5c00; }
label { display: grid; gap: 0.25rem; font-size: 0.95rem; margin-bottom: 0.7rem; }
.check, .radio { display: flex; align-items: baseline; gap: 0.55rem; }
.radio { flex-wrap: wrap; }
.radio .note { flex-basis: 100%; padding-left: 1.7rem; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.6rem; padding: 0; }
fieldset.block legend { float: left; width: 100%; }
fieldset.block legend + * { clear: both; }
.block input, .block select, .block textarea { width: 100%; }
.block .check input, .inline-form input { width: auto; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.inline-form input { flex: 1 1 140px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

/* -------------------------------------------------------------------- layout */
.shell { display: grid; grid-template-columns: 310px 1fr; min-height: 100vh; }
.rail {
  background: rgba(0, 0, 0, 0.5);
  border-right: var(--px) solid #000;
  box-shadow: inset -2px 0 0 rgba(255, 255, 255, 0.08);
  padding: 1.1rem 0.9rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  position: sticky; top: 0; height: 100vh; overflow: auto;
}
.main { padding: 1.75rem clamp(1rem, 3vw, 2.5rem) 3rem; min-width: 0; outline: none; }

.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--white); font-weight: 700; font-size: 1.25rem; }
.brand-mark { width: 32px; height: 32px; shape-rendering: crispEdges; filter: drop-shadow(2px 2px 0 #000); }
.rail-actions { display: grid; gap: 0.45rem; }
.rail-heading { font-size: 0.95rem; color: var(--gray); font-weight: 400; margin: 0.4rem 0 0; }
.rail-empty { margin: 0; color: var(--gray); font-size: 0.9rem; }

/* Multiplayer-screen style server rows */
.server-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.server-list button {
  width: 100%; text-align: left; font: inherit; color: var(--white); text-shadow: var(--ts); cursor: pointer;
  background: transparent; border: var(--px) solid transparent;
  padding: 0.35rem; display: grid; grid-template-columns: 40px 1fr auto; gap: 0 0.6rem; align-items: center;
}
.server-list button:hover { background: rgba(255, 255, 255, 0.06); }
.server-list button[aria-current="true"] { border-color: var(--gray); background: rgba(0, 0, 0, 0.55); }
.server-list .icon { grid-row: span 2; width: 40px; height: 40px; image-rendering: pixelated; border: var(--px) solid #000; }
.server-list .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-list .meta { grid-column: 2; color: var(--gray); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-list .lamp { grid-row: span 2; grid-column: 3; }

/* Redstone lamp status light */
.lamp, .dot { width: 14px; height: 14px; display: inline-block; flex: none;
  background: #4a2a12; border: var(--px) solid #000; box-shadow: inset 2px 2px 0 #6b3f1d, inset -2px -2px 0 #2d1909; }
[data-phase="online"] > .lamp, .lamp[data-phase="online"], .dot[data-phase="online"] {
  background: #ffd36a; box-shadow: inset 2px 2px 0 #fff3b0, inset -2px -2px 0 #c98a1a, 0 0 8px #ffbf3a; }
.lamp[data-phase="preparing"], .lamp[data-phase="booting"], .lamp[data-phase="restoring"], .lamp[data-phase="starting"], .lamp[data-phase="stopping"],
.dot[data-phase="preparing"], .dot[data-phase="booting"], .dot[data-phase="restoring"], .dot[data-phase="starting"], .dot[data-phase="stopping"] {
  background: #b5532a; animation: flicker 0.8s steps(2, start) infinite; }
.lamp[data-phase="crashed"], .dot[data-phase="crashed"] { background: #c52a1d; box-shadow: inset 2px 2px 0 #ff6b5c, inset -2px -2px 0 #6e130c; }
@keyframes flicker { to { background: #ffbf3a; } }

.relay-status { margin-top: auto; display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--gray); }
.relay-status[data-ok="true"] .dot { background: #ffd36a; box-shadow: inset 2px 2px 0 #fff3b0, inset -2px -2px 0 #c98a1a; }
.relay-status[data-ok="false"] .dot { background: #c52a1d; }

/* -------------------------------------------------------------- title screen */
.home { min-height: calc(100vh - 5rem); display: flex; flex-direction: column; }
.title-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 2rem; padding: 2rem 0; }
.title-block { position: relative; }
.title-logo {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem); font-weight: 700; line-height: 1; letter-spacing: 0;
  color: #e8e8e8; margin: 0;
  text-shadow: 3px 3px 0 #7a7a7a, 6px 6px 0 #3a3a3a, 0 0 0 #000;
  -webkit-text-stroke: 2px #000; paint-order: stroke fill;
}
.splash {
  position: absolute; right: -6rem; bottom: -0.9rem; margin: 0;
  color: var(--yellow); text-shadow: 2px 2px 0 #3f3f00; font-size: 1.15rem; white-space: nowrap;
  transform: rotate(-18deg); transform-origin: center;
  animation: splash 0.55s ease-in-out infinite alternate;
}
@keyframes splash { from { scale: 1; } to { scale: 1.09; } }
.title-menu { display: grid; gap: 0.6rem; width: min(400px, 100%); }
.title-blurb { max-width: 46ch; color: #d8d8d8; margin: 0; font-size: 0.95rem; }
.title-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--white); font-size: 0.85rem; padding-top: 1rem; }

/* -------------------------------------------------------------------- server */
.server { max-width: 1180px; }
.server-head { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.server-title h1 { font-size: 2rem; margin-bottom: 0.35rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; color: var(--gray); font-size: 0.9rem; }
.chip:empty { display: none; }
.chip + .chip::before { content: "/"; margin-right: 0.6rem; color: #6f6f6f; }
.server-controls { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

.pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.7rem; background: rgba(0, 0, 0, 0.55); border: var(--px) solid #000; font-size: 0.95rem; }
.pill::before { content: ""; width: 14px; height: 14px; border: var(--px) solid #000; background: #4a2a12; box-shadow: inset 2px 2px 0 #6b3f1d, inset -2px -2px 0 #2d1909; }
.pill[data-phase="online"] { color: var(--green); }
.pill[data-phase="online"]::before { background: #ffd36a; box-shadow: inset 2px 2px 0 #fff3b0, inset -2px -2px 0 #c98a1a, 0 0 8px #ffbf3a; }
.pill[data-phase="crashed"] { color: var(--red); }
.pill[data-phase="crashed"]::before { background: #c52a1d; }
.pill.busy { color: var(--gold); }
.pill.busy::before { animation: flicker 0.8s steps(2, start) infinite; }

/* XP bar */
.progress { margin: 0 0 1rem; max-width: 640px; }
.progress-label { font-size: 0.95rem; color: #80ff20; margin-bottom: 0.25rem; }
.progress-bar { height: 12px; background: #1a1a1a; border: var(--px) solid #000; position: relative; overflow: hidden; }
.progress-bar::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(5.5% - 2px), #000 calc(5.5% - 2px) 5.5%); pointer-events: none; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(#b8ff5a 0 30%, #80ff20 30% 70%, #4fa800 70%); transition: width 0.3s steps(18); }
.progress-bar.indeterminate span { width: 25% !important; animation: slide 1.4s steps(20) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(400%); } }

/* The sign: where the address lives */
.address {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center;
  margin-bottom: 1.5rem; padding: 1.1rem 1.4rem;
  background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.12)), url("../assets/tex/planks.png") 0 0 / 64px 64px;
  border: var(--px) solid #000;
  box-shadow: inset 3px 3px 0 rgba(255, 230, 170, 0.35), inset -3px -3px 0 rgba(60, 40, 15, 0.6), 0 6px 0 rgba(0, 0, 0, 0.4);
  color: #000; text-shadow: none;
}
.address-line { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.address-text { font-family: var(--font); font-weight: 700; font-size: clamp(1.5rem, 3.6vw, 2.6rem); color: #000; word-break: break-all; line-height: 1.05; }
.address[data-live="false"] .address-text { color: rgba(0, 0, 0, 0.6); }
.address-alt { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.9rem; color: #000; }
.address-alt code { color: #000; font-size: 1rem; }
.address-hint { margin: 0.5rem 0 0; color: #000; font-size: 0.9rem; max-width: 60ch; }
.address .btn { text-shadow: var(--ts); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(110px, auto)); gap: 0.55rem 1.5rem; margin: 0; padding: 0.7rem 0.9rem; background: rgba(0, 0, 0, 0.72); border: var(--px) solid #000; color: var(--white); text-shadow: var(--ts); }
.stats dt { font-size: 0.8rem; color: var(--gray); }
.stats dd { margin: 0; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* Creative-inventory style tabs */
.tabs { display: flex; gap: 4px; margin-bottom: -2px; overflow-x: auto; position: relative; z-index: 1; }
.tabs button {
  font: inherit; font-size: 1rem; cursor: pointer; color: #e6e6e6; text-shadow: var(--ts);
  background: #8b8b8b; border: var(--px) solid #000; border-bottom: 0;
  box-shadow: inset 2px 2px 0 #b8b8b8; padding: 0.45rem 1rem 0.5rem;
}
.tabs button:hover { color: var(--yellow); }
.tabs button[aria-selected="true"] { background: var(--inv); color: var(--ink); text-shadow: none; box-shadow: inset 2px 2px 0 var(--inv-hi); padding-bottom: 0.7rem; }
.panel {
  background: var(--inv); color: var(--ink); text-shadow: none;
  border: var(--px) solid #000; box-shadow: inset 2px 2px 0 var(--inv-hi), inset -2px -2px 0 var(--inv-lo);
  padding: 1rem;
}
.panel-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
/* Panels inside the inventory read as recessed slots, not nested cards. */
.panel .block, .panel fieldset.block {
  background: #b5b5b5; box-shadow: inset 2px 2px 0 #8b8b8b, inset -2px -2px 0 #e2e2e2; border-color: #555;
}
.block-wide { grid-column: 1 / -1; }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.block-danger { border-color: #7a1d16 !important; }
.block-danger h2 { color: #8a1c14; }
.block .button-row + h2 { margin-top: 0.5rem; }
.empty { color: #5e5e5e; }
.panel h2 { color: #262626; }

/* ------------------------------------------------------------- chat console */
.console-tools { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-bottom: 0.6rem; }
.console-tools input[type="search"] { flex: 1 1 180px; }
.console-tools .check { margin: 0; color: var(--ink); }
.seg { display: inline-flex; gap: 0; }
.seg button { font: inherit; font-size: 0.95rem; border: var(--px) solid #000; margin-left: -2px; background: #8b8b8b; color: #e6e6e6; text-shadow: var(--ts); padding: 0.25rem 0.75rem; cursor: pointer; box-shadow: inset 2px 2px 0 #b8b8b8, inset -2px -2px 0 #5a5a5a; }
.seg button:first-child { margin-left: 0; }
.seg button[aria-pressed="true"] { background: #3a3a3a; color: var(--white); box-shadow: inset 2px 2px 0 #1e1e1e; }
.console {
  background: rgba(0, 0, 0, 0.82); color: var(--white);
  font-family: var(--chat); font-size: 0.92rem; line-height: 1.35;
  text-shadow: 2px 2px 0 #3f3f3f;
  height: min(58vh, 560px); overflow: auto; padding: 0.6rem 0.8rem;
  white-space: pre-wrap; word-break: break-word;
  border: var(--px) solid #000;
}
.console .l { display: block; }
.console .warn { color: var(--yellow); text-shadow: 2px 2px 0 #3f3f15; }
.console .error { color: var(--red); text-shadow: 2px 2px 0 #3f1515; }
.console .success { color: var(--green); text-shadow: 2px 2px 0 #153f15; }
.console .mcbh { color: var(--aqua); text-shadow: 2px 2px 0 #153f3f; }
.console .cmd { color: #aaaaaa; }
.command { display: flex; gap: 0.5rem; margin-top: 0.6rem; align-items: center; background: rgba(0, 0, 0, 0.82); border: var(--px) solid #000; padding: 0.25rem 0.25rem 0.25rem 0.7rem; }
.command .prompt { font-family: var(--chat); font-size: 1rem; color: var(--gray); text-shadow: var(--ts); }
.command input { flex: 1; border: 0; background: transparent; font-family: var(--chat); font-size: 1rem; padding: 0.2rem 0; min-width: 0; text-shadow: var(--ts); }
.command input:focus { outline: none; }
.command:focus-within { border-color: var(--gray); }

/* -------------------------------------------------------------------- players */
.players { list-style: none; padding: 0; margin: 0.5rem 0; display: grid; gap: 0.35rem; }
.players li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding: 0.35rem 0.45rem; background: #8b8b8b; border: var(--px) solid #373737; box-shadow: inset 2px 2px 0 #b8b8b8; color: var(--white); text-shadow: var(--ts); }
.players .pname { flex: 1 1 140px; display: flex; align-items: center; gap: 0.55rem; }
.players canvas { width: 24px; height: 24px; image-rendering: pixelated; border: var(--px) solid #000; }
.players select { font-size: 0.9rem; padding: 0.2rem 1.6rem 0.2rem 0.4rem; width: auto; }

.rules { display: grid; gap: 0.3rem; margin: 0.5rem 0 0.75rem; }
.rule { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.15rem 0; border-bottom: var(--px) solid #9a9a9a; }
.rule code { font-size: 0.95rem; }

.settings .form-foot, .dialog-foot { display: flex; justify-content: flex-end; align-items: center; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.form-foot .note, .dialog-foot .note { margin-right: auto; }

/* --------------------------------------------------------- dialog = options screen */
.dialog {
  padding: 0; width: min(780px, 96vw); max-height: 94vh; color: var(--white); text-shadow: var(--ts);
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url("../assets/tex/dirt.png") 0 0 / 64px 64px;
  box-shadow: 0 0 0 2px #000, 0 10px 0 rgba(0, 0, 0, 0.45);
  border: var(--px) solid var(--gray);
}
.dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
.dialog form { display: flex; flex-direction: column; max-height: 94vh; }
.dialog-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0.9rem 1.2rem 0.6rem; background: rgba(0, 0, 0, 0.35); border-bottom: var(--px) solid #000; }
.dialog-head h2 { grid-column: 2; font-size: 1.4rem; margin: 0; }
.dialog-head .btn { grid-column: 3; justify-self: end; }
.dialog-body { padding: 1rem 1.25rem 0.5rem; overflow: auto; }
.dialog-foot { padding: 0.75rem 1.25rem 0.9rem; background: rgba(0, 0, 0, 0.35); border-top: var(--px) solid #000; margin-top: 0; }
.dialog .note { color: #c8c8c8; }
.load-source { background: rgba(0, 0, 0, 0.45); border: var(--px) solid #000; padding: 0.75rem 1rem; margin-bottom: 1rem; }
.load-source p { margin: 0 0 0.5rem; }
.version-pickers { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0.25rem 0.75rem; }
.version-pickers label { margin-bottom: 0.4rem; color: #e0e0e0; }
.version-pickers select[data-active="true"] { border-color: var(--yellow); }
.version-picked { margin: 0.4rem 0 0; font-size: 0.95rem; }
.version-picked strong { font-size: 1.2rem; color: var(--yellow); font-weight: 700; }
.badge { display: inline-block; font-size: 0.85rem; padding: 0 0.4rem; margin-left: 0.4rem; color: var(--gold); border: var(--px) solid var(--gold); }
.eula { margin-top: 0.5rem; }
.addr-input { display: flex; align-items: stretch; }
.addr-input input { flex: 1 1 8ch; min-width: 6ch; width: auto; border-right: 0; }
.addr-suffix { display: flex; align-items: center; padding: 0 0.6rem; background: #2b2b2b; color: var(--gray); border: var(--px) solid var(--gray); border-left: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 60%; text-shadow: none; }
.addr-suffix:empty { display: none; }
.addr-status { margin: -0.4rem 0 0.7rem; min-height: 1.2em; }
.addr-status.ok { color: var(--green); }
.addr-status.bad { color: var(--red); }
.block .addr-status.ok { color: #1e7a1e; }
.block .addr-status.bad { color: #a1241a; }
.block .addr-suffix { color: #d0d0d0; }

/* ------------------------------------------------------------- toasts */
.toasts { position: fixed; top: 1rem; right: 1rem; display: grid; gap: 0.5rem; z-index: 10; width: min(340px, 92vw); }
.toast {
  display: grid; grid-template-columns: 32px 1fr; gap: 0.15rem 0.7rem; align-items: center;
  background: #212121; color: var(--white); padding: 0.55rem 0.8rem;
  border: var(--px) solid #000; box-shadow: inset 0 0 0 2px #555, inset 2px 2px 0 2px #6b6b6b;
  animation: toast-in 0.35s steps(6);
}
.toast canvas, .toast .ticon { grid-row: span 2; width: 32px; height: 32px; image-rendering: pixelated; }
.toast .ttitle { color: var(--yellow); font-size: 0.9rem; }
.toast .tbody { font-size: 0.95rem; }
.toast.error .ttitle { color: var(--red); }
.toast.ok .ttitle { color: var(--green); }
@keyframes toast-in { from { transform: translateX(110%); } to { transform: none; } }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) { .splash { right: -1rem; bottom: -1.6rem; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; border-right: 0; border-bottom: var(--px) solid #000; }
  .rail-actions { grid-template-columns: 1fr 1fr; }
  .address { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(4, auto); }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr; }
  .server-controls { width: 100%; }
  .panel { padding: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
