/* Skyline registry — the launcher's design language: Noto Sans body, Silkscreen titles,
   dirt/grass block motifs, flat dark surfaces and one green accent. */
@font-face {
  font-family: Silkscreen;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/silkscreen-400.woff2) format("woff2");
}
@font-face {
  font-family: Silkscreen;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/silkscreen-700.woff2) format("woff2");
}
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/notosans-latin.woff2) format("woff2");
}

:root {
  --bg: #1e1e1e;
  --bg-bar: #161616;
  --bg-sub: #131313;
  --accent: #008542;
  --mc-green: #008542;
  --mc-green-bright: #00b45a;
  --mc-green-hover: #00a352;
  --mc-red: #ff5555;
  --mc-yellow: #ffff55;
  --fg: #ffffff;
  --fg-dim: #cccccc;
  --fg3: #b9b9b9;
  --fg4: #9a9a9a;
  --fg5: #767676;
  --fg6: #585858;
  --surface0: #242424;
  --surface1: #2a2a2a;
  --surface2: #2f2f2f;
  --surface3: #353535;
  --surface4: #3e3e3e;
  --surface5: #4a4a4a;
  --surface6: #5c5c5c;
  --line: #353535;
  --line-soft: #2a2a2a;
  --font-body: "Noto Sans", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  --font-pixel: "Silkscreen", var(--font-body);
}

* { box-sizing: border-box; }

html, body, #app { height: 100%; }
html { background: var(--bg); }
body {
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
}
a { color: var(--mc-green-bright); text-decoration: none; }
a:hover { text-decoration: none; }
code, pre, textarea, .log, .mono { font-family: var(--font-mono); }
::selection { background: rgba(0, 180, 90, 0.35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface5); border-radius: 5px; }

.dim { color: var(--fg4); }
.faint { color: var(--fg5); }
.bolded { font-weight: 800; }
.hidden { display: none !important; }

/* ---------------------------------------------------------------- shell */
.shell {
  display: flex;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
}

.sidebar {
  display: flex;
  flex-direction: column;
  width: 16rem;
  min-width: 13rem;
  flex-shrink: 0;
  background: var(--bg-bar);
  position: relative;
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1rem 1.2rem;
  color: var(--fg);
}
.brand-icon { width: 1.9rem; height: 1.9rem; }
.brand-text {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.brand-text small {
  font-family: var(--font-body);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: var(--fg5);
  font-weight: 700;
}
.side-nav { display: flex; flex-direction: column; }
.sidebar-option {
  display: flex;
  height: 3.5rem;
  align-items: center;
  gap: 0.9rem;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.35;
  background: transparent;
  border: none;
  border-left: 0.3rem solid transparent;
  color: var(--fg-dim);
  text-align: left;
  transition: background 0.25s, padding 0.25s, color 0.25s;
}
.sidebar-option:hover { background: var(--surface3); color: var(--fg); }
.sidebar-option.selected {
  font-weight: 700;
  color: var(--fg);
  border-left-color: var(--accent);
  padding-left: 0.8rem;
}
.nav-icon { display: flex; flex: none; }
.nav-icon svg { width: 1.3rem; height: 1.3rem; fill: currentColor; opacity: 0.92; }
.nav-label { font-family: var(--font-body); }
.sidebar-foot {
  margin-top: auto;
  padding: 0.9rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--line-soft);
}
.side-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--fg5);
  font-weight: 700;
}
.side-label b { color: var(--mc-green-bright); font-weight: 700; }

.main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  background: var(--bg);
}
.mobile-nav { display: none; }
.views { position: relative; flex: 1; min-height: 0; }
.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 1.6rem 2rem 2rem;
}
.view-center { padding: 0; display: flex; align-items: center; justify-content: center; }
.view-title {
  margin: 0 0 1.2rem;
  font-size: 1.25rem;
  font-family: var(--font-pixel);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--mc-green-bright);
  text-transform: uppercase;
}
.page-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.page-head .view-title { margin: 0; }
.page-head .spacer { flex: 1; }

/* ------------------------------------------------------------- block icon */
.block-icon {
  position: relative;
  flex: none;
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  image-rendering: pixelated;
  background: #8a5c36;
  overflow: hidden;
}
.block-icon .dirt {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  bottom: 0;
  background: #8a5c36;
}
.block-icon .grass {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 38%;
  background: #5ea83f;
  border-bottom: 2px solid #4a8a30;
}
.block-icon::after {
  content: "";
  position: absolute;
  left: 12%;
  top: 44%;
  width: 18%;
  height: 14%;
  background: rgba(0, 0, 0, 0.18);
}
.block-icon.lg { width: 3.4rem; height: 3.4rem; }
.block-icon.sm { width: 1.15rem; height: 1.15rem; }

/* ------------------------------------------------------------- selection bar */
.selection-bar {
  height: 4.6rem;
  flex: none;
  display: flex;
  align-items: center;
  background: var(--bg);
  z-index: 20;
  box-shadow: 0 -1px 0 var(--line-soft);
}
.bar-left {
  height: 100%;
  width: 20rem;
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 0 0 1rem;
  min-width: 0;
}
.bar-context {
  display: flex;
  height: 2.9rem;
  width: 100%;
  align-items: center;
  gap: 0.7rem;
  padding: 0 0.9rem;
  background: var(--surface2);
  border-radius: 0.45rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
  min-width: 0;
}
.bar-context p { margin: 0; }
.sel-name {
  font-size: 0.84rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sel-id {
  font-size: 0.68rem;
  color: var(--fg4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bar-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-width: 0;
}
.bar-right {
  width: 20rem;
  flex: none;
  padding-right: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.05rem;
  min-width: 0;
}
.play-btn {
  min-width: 19rem;
  max-width: 90%;
  height: 3.4rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: #fff;
  background: linear-gradient(180deg, var(--mc-green-bright) 0%, var(--accent) 78%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), inset 0 -3px 0 rgba(0, 0, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.45);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  transition: transform 0.1s, filter 0.1s;
  white-space: nowrap;
}
.play-btn:hover:not(:disabled) { transform: scale(1.02); filter: brightness(1.08); }
.play-btn:active:not(:disabled) { transform: scale(1); }
.play-btn:disabled {
  background: var(--surface4);
  color: var(--fg5);
  cursor: not-allowed;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3);
  text-shadow: none;
}
.playing-label {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--fg5);
}
.playing-name {
  font-size: 1rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: max-content;
  border: none;
  cursor: pointer;
  border-radius: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
  padding: 0.55rem 1.1rem;
  transition: transform 0.12s, filter 0.2s, background 0.2s;
  color: #fff;
  background: var(--surface4);
  font-family: var(--font-body);
  text-transform: uppercase;
}
.btn:hover:not(:disabled) { filter: brightness(1.15); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { background: var(--surface2); color: var(--fg5); cursor: not-allowed; }
.btn.green {
  background: linear-gradient(180deg, var(--mc-green-bright), var(--accent));
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.28);
}
.btn.green:hover:not(:disabled) { background: linear-gradient(180deg, #00c463, var(--mc-green-hover)); }
.btn.danger { background: #7a2c2c; }
.btn.danger:hover:not(:disabled) { background: #963636; }
.btn.small { padding: 0.35rem 0.7rem; font-size: 0.7rem; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--fg-dim); }
.btn.ghost:hover:not(:disabled) { background: var(--surface3); color: var(--fg); }

/* ------------------------------------------------------------- inputs */
.input {
  background: var(--bg-sub);
  border: 1px solid #0c6e3d;
  color: var(--fg);
  font-size: 0.85rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.35rem;
  outline: none;
  width: 100%;
  font-family: var(--font-body);
  transition: border-color 0.2s, background 0.2s;
}
.input:focus { border-color: var(--mc-green-bright); background: #0a0a0a; }
.input::placeholder { color: var(--fg5); }
select.input { max-width: 11rem; }
textarea.input { resize: vertical; }
.search-inline { max-width: 18rem; }

.segmented {
  display: inline-flex;
  border: 1px solid #0c6e3d;
  border-radius: 0.4rem;
  overflow: hidden;
  width: max-content;
}
.seg {
  background: var(--bg-sub);
  color: var(--fg-dim);
  border: none;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-body);
}
.seg:hover { color: var(--fg); background: var(--surface3); }
.seg.active { background: var(--accent); color: #fff; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* ------------------------------------------------------------- lists */
.mod-list { display: flex; flex-direction: column; gap: 0.35rem; }
.mod-row, .inst-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.45rem;
  background: var(--bg-bar);
  border: 1px solid var(--line-soft);
  color: var(--fg);
  transition: border-color 0.2s, background 0.2s;
}
.mod-row:hover, .inst-row:hover { background: var(--surface3); border-color: var(--surface5); }
.mod-row-main { min-width: 0; flex: 1; }
.mod-row-name { display: block; font-weight: 700; font-size: 0.88rem; }
.mod-row-desc {
  display: block;
  font-size: 0.76rem;
  color: var(--fg4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mod-row-meta { font-size: 0.7rem; color: var(--fg4); white-space: nowrap; }
.inst-row.selected { border-color: var(--mc-green-bright); }
.inst-name { font-weight: 700; font-size: 0.85rem; }
.inst-meta { color: var(--fg4); font-size: 0.72rem; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface3);
  color: var(--fg-dim);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge.green { background: rgba(0, 132, 66, 0.18); color: var(--mc-green-bright); border-color: #0c6e3d; }
.badge.amber { background: rgba(255, 209, 102, 0.12); color: #ffd166; border-color: rgba(255, 209, 102, 0.35); }
.badge.red { background: rgba(255, 85, 85, 0.12); color: var(--mc-red); border-color: rgba(255, 85, 85, 0.35); }
.badge.violet { background: rgba(167, 139, 250, 0.12); color: #c4b5fd; border-color: rgba(167, 139, 250, 0.35); }

/* ------------------------------------------------------------- mod page */
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg4);
  margin-bottom: 1rem;
}
.back:hover { color: var(--fg); }
.mod-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.mod-head-text { min-width: 0; flex: 1; }
.mod-title { margin: 0 0 0.15rem; font-family: var(--font-pixel); font-size: 1.35rem; font-weight: 400; }
.mod-sub { margin: 0; font-size: 0.78rem; color: var(--fg4); }
.mod-summary { margin: 0.25rem 0 0; font-size: 0.85rem; color: var(--fg-dim); }
.mod-cols { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.6rem; align-items: start; }
.card {
  background: var(--bg-bar);
  border: 1px solid var(--line-soft);
  border-radius: 0.7rem;
  padding: 0.9rem 1.1rem;
}
.card + .card { margin-top: 0.8rem; }
.card p { margin: 0.2rem 0; font-size: 0.8rem; color: var(--fg-dim); line-height: 1.6; }
.card details summary {
  cursor: pointer;
  color: var(--fg4);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kv { display: flex; justify-content: space-between; gap: 1rem; padding: 0.2rem 0; font-size: 0.76rem; }
.kv .k { color: var(--fg5); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.65rem; }
.kv .v { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-dim); }
.meter { display: flex; gap: 2px; height: 6px; border-radius: 999px; overflow: hidden; background: var(--bg-sub); margin: 0.4rem 0 0.7rem; }
.meter span { display: block; height: 100%; }
.meter .ok { background: var(--mc-green-bright); }
.meter .degraded { background: #ffd166; }
.meter .skipped { background: var(--mc-red); }
.problem { font-size: 0.74rem; color: var(--fg-dim); padding: 0.25rem 0; border-top: 1px solid var(--line-soft); }
.problem:first-child { border-top: 0; }
.problem b { color: #ffd166; font-family: var(--font-mono); margin-right: 0.35rem; }
table.versions { width: 100%; border-collapse: collapse; }
table.versions th {
  text-align: left;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg5);
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--line-soft);
}
table.versions td { padding: 0.45rem 0.5rem; border-bottom: 1px solid var(--line-soft); font-size: 0.78rem; }
table.versions tr:last-child td { border-bottom: 0; }
table.versions tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ------------------------------------------------------------- convert */
.drop {
  border: 2px dashed var(--surface5);
  border-radius: 0.7rem;
  padding: 2.4rem 1rem;
  text-align: center;
  background: var(--bg-sub);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop:hover, .drop.drag { border-color: var(--mc-green-bright); background: rgba(0, 132, 66, 0.08); }
.drop .drop-arrow { font-size: 1.6rem; color: var(--mc-green-bright); line-height: 1; }
.drop p { margin: 0.5rem 0 0; font-size: 0.82rem; color: var(--fg-dim); }
.drop p.faint { margin-top: 0.25rem; color: var(--fg5); font-size: 0.72rem; }
.result-head { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0 0.7rem; }
.result-head h2 { margin: 0; font-family: var(--font-pixel); font-size: 1rem; font-weight: 400; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 0.4rem; }
.stat {
  background: var(--bg-bar);
  border: 1px solid var(--line-soft);
  border-radius: 0.45rem;
  padding: 0.45rem 0.6rem;
}
.stat .n { font-family: var(--font-pixel); font-size: 0.95rem; }
.stat .l { font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg5); }

/* ------------------------------------------------------------- editor */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
textarea.code {
  min-height: calc(100vh - 15rem);
  font-size: 0.74rem;
  line-height: 1.6;
  tab-size: 2;
  background: #0a0a0a;
}
.pre {
  background: #0a0a0a;
  border: 1px solid var(--line-soft);
  border-radius: 0.45rem;
  padding: 0.8rem;
  overflow: auto;
  max-height: calc(100vh - 15rem);
  font-size: 0.7rem;
  line-height: 1.6;
  color: #c7d7e6;
  white-space: pre;
  user-select: text;
}
.diag { padding: 0.4rem 0.55rem; border-radius: 0.35rem; font-size: 0.74rem; margin-bottom: 0.35rem; border: 1px solid var(--line); }
.diag.error { border-color: rgba(255, 85, 85, 0.4); background: rgba(255, 85, 85, 0.08); color: #ffd7d5; }
.diag.warn { border-color: rgba(255, 209, 102, 0.35); background: rgba(255, 209, 102, 0.08); color: #fde68a; }

/* ------------------------------------------------------------- docs */
.doc-list { display: flex; flex-direction: column; gap: 0.6rem; max-width: 52rem; }
.doc-card {
  background: var(--bg-bar);
  border: 1px solid var(--line-soft);
  border-radius: 0.7rem;
  padding: 0.9rem 1.1rem;
}
.doc-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mc-green-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.doc-card p { margin: 0.2rem 0; font-size: 0.8rem; color: var(--fg-dim); }
.doc-card code { color: var(--mc-green-bright); background: rgba(0, 132, 66, 0.12); padding: 0 0.25rem; border-radius: 0.2rem; }
.hook-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; border-top: 1px solid var(--line-soft); font-size: 0.74rem; }
.hook-row:first-child { border-top: 0; }
.hook-row .name { font-family: var(--font-mono); color: var(--fg); }
.hook-row .params { color: var(--fg5); font-family: var(--font-mono); font-size: 0.68rem; margin-left: auto; text-align: right; }

/* ------------------------------------------------------------- account */
.form-panel { width: min(30rem, 92%); }
.form-panel .irow-label { width: 7rem; }
.irow { display: flex; align-items: center; gap: 1.2rem; min-height: 3rem; }
.irow-label {
  width: 11rem;
  flex: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.irow-body { flex: 1; min-width: 0; }

/* ------------------------------------------------------------- empty/toast */
.empty { padding: 3rem 1rem; text-align: center; color: var(--fg5); font-size: 0.8rem; }
.empty .block-icon { margin: 0 auto 0.7rem; display: block; }
.toast-host { position: fixed; right: 1rem; top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 1000; }
.toast {
  padding: 0.35rem 0.85rem;
  background: rgba(50, 50, 50, 0.92);
  border-radius: 0.5rem;
  border: 2px solid #ffd166;
  color: #ffd166;
  font-size: 0.8rem;
  max-width: 24rem;
  animation: drop-in 0.25s ease;
}
.toast.error { border-color: var(--mc-red); color: var(--mc-red); }
.toast.ok { border-color: var(--mc-green-bright); color: var(--mc-green-bright); }
@keyframes drop-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.spinner {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 64rem) {
  .sidebar { display: none; }
  .mobile-nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.8rem;
    background: var(--bg-bar);
    border-bottom: 1px solid var(--line-soft);
    flex: none;
  }
  .mobile-nav a {
    padding: 0.35rem 0.7rem;
    border-radius: 0.35rem;
    color: var(--fg-dim);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .mobile-nav a.selected { background: var(--surface3); color: var(--fg); }
  .mobile-nav a:hover { color: var(--fg); }
  .bar-left, .bar-right { width: auto; flex: 1; }
  .bar-context { width: auto; }
  .play-btn { min-width: 0; padding: 0 1.6rem; font-size: 0.95rem; }
  .bar-right { padding-right: 1rem; }
  .mod-cols { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .view { padding: 1.2rem 1rem 1.5rem; }
}
@media (max-width: 44rem) {
  .bar-right { display: none; }
  .mod-head { flex-wrap: wrap; }
  .search-inline { max-width: none; }
}

/* ---------------------------------------------------------- launcher: play */
.play-view { padding: 0; overflow: hidden; position: relative; }
.game-bg { position: absolute; inset: 0; overflow: hidden; background: #0d0d0d; }
.game-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; animation: wallpaper 48s infinite; animation-delay: calc(var(--wp-i, 0) * 16s);
}
.game-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%, rgba(22,22,22,.55) 72%, #1e1e1e 100%);
}
@keyframes wallpaper {
  0% { opacity: 0; }
  2% { opacity: 1; }
  31% { opacity: 1; }
  34% { opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .game-bg img { animation: none; }
  .game-bg img:first-child { opacity: 1; }
}
.play-hero {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 0.4rem; padding: 2rem;
}
.play-title {
  font-family: var(--font-pixel);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  letter-spacing: 0.14em;
  margin: 0;
  text-shadow: 0 4px 0 rgba(0,0,0,.45);
  animation: drop-in 0.5s ease;
}
.play-sub { margin: 0; font-size: 0.8rem; color: var(--fg-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.play-status { font-family: var(--font-mono); font-size: 0.72rem; color: #ffd166; min-height: 1.2rem; margin-top: 0.4rem; }
.play-status.good { color: var(--mc-green-bright); }
.play-foot { position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center; z-index: 2; font-size: 0.68rem; color: var(--fg5); letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------------------------------------------------------- launcher: rows */
.version-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.55rem 0.85rem; border-radius: 0.45rem;
  background: var(--bg-bar); border: 1px solid var(--line-soft);
  margin-bottom: 0.35rem;
}
.version-row.ready { border-color: #0c6e3d; }
.version-row .v-main { flex: 1; min-width: 0; }
.version-row .v-name { font-family: var(--font-pixel); font-size: 0.85rem; letter-spacing: 0.06em; }
.version-row .v-note { font-size: 0.7rem; color: var(--fg4); }
.version-row .v-date { font-size: 0.68rem; color: var(--fg5); font-family: var(--font-mono); }
.dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--fg6); flex: none; }
.dot.on { background: var(--mc-green-bright); box-shadow: 0 0 8px rgba(0,180,90,.7); }

.install-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.8rem; border-bottom: 1px solid var(--line-soft); }
.install-row:last-child { border-bottom: 0; }
.install-row .i-main { flex: 1; min-width: 0; }
.install-row .i-name { font-weight: 700; font-size: 0.84rem; }
.install-row .i-desc { font-size: 0.72rem; color: var(--fg4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-row .i-actions { display: flex; gap: 0.4rem; align-items: center; }
.section-gap { margin-top: 1.3rem; }
.note { font-size: 0.72rem; color: var(--fg5); line-height: 1.6; }
