/* Minecraft Studio (build/tools/minecraft-studio.mjs): a list of every tool
   down the left side, beside the open tool or, with none open, the journey:
   six numbered steps along a dashed path, each a row of cards that show what
   the tool makes. The site's own purple, no game textures (2026-11-09). */

.mcs-home { min-height: 0; padding: 22px 24px 32px; overflow-y: auto; font-size: 14px; background: var(--tex-wall) 0 0 / var(--tex-wall-size) repeat local, var(--bg-deep); image-rendering: pixelated; }
.mcs-home[hidden] { display: none; }
.mcs-home.is-dragover { outline: 2px solid var(--accent-strong); outline-offset: -2px; }
.mcs-home-line { max-width: 1320px; margin: 0 auto 18px; color: var(--muted); }
.mcs-steps { position: relative; max-width: 1320px; margin: 0 auto; padding: 0; list-style: none; }
.mcs-steps::before { content: ""; position: absolute; left: 21px; top: 30px; bottom: 30px; border-left: 4px dashed var(--rule); }
.mcs-step { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; margin-bottom: 28px; }
.mcs-step-n { grid-row: 1 / span 3; display: grid; place-items: center; width: 46px; height: 46px; color: var(--ink); background: var(--gold); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-family: var(--display); font-size: 1.25rem; }
.mcs-group { margin: 2px 0 0; color: var(--text); font-family: var(--display); font-size: 1.3rem; font-weight: 400; }
.mcs-step-line { margin: 2px 0 12px; color: var(--muted); font-family: var(--read); font-size: 0.84rem; }
.mcs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mcs-card { display: flex; flex-direction: column; height: 100%; color: var(--text); text-decoration: none; background: var(--surface); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.mcs-card:hover { border-color: var(--gold); }
.mcs-card:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mcs-card-art { display: grid; place-items: center; align-content: center; height: 116px; padding: 10px; overflow: hidden; color: var(--text); background: var(--surface-2); font-family: var(--small); font-size: 0.9rem; line-height: 1.55; text-align: center; overflow-wrap: anywhere; }
.mcs-card-art > span, .mcs-motd > span { display: block; }
.mcs-card-art b { font-weight: 400; }
.mcs-card-art svg { max-width: 100%; max-height: 92px; }
.mcs-motd { width: 100%; padding: 6px 8px; text-align: left; background: #000; }
.mcs-grad { font-size: 1.3rem; color: transparent; background: linear-gradient(90deg, #ff5f6d, #ffc371, #7cc152); -webkit-background-clip: text; background-clip: text; }
.mcs-card-text { min-width: 0; padding: 8px 10px 10px; }
.mcs-card-name { display: block; font-family: var(--display); }
.mcs-card-line { display: block; margin-top: 3px; color: var(--muted); font-family: var(--read); font-size: 0.76rem; line-height: 1.35; }

.mcs-work { display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
.mcs-nav { display: flex; flex-direction: column; min-height: 0; padding: 12px 6px 12px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); }
.mcs-nav-group { margin: 14px 8px 4px; color: var(--faint); font-family: var(--mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.mcs-nav-item, .mcs-nav-all { display: flex; align-items: center; gap: 8px; padding: 5px 8px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.mcs-nav-item svg, .mcs-nav-all svg { flex: none; }
.mcs-nav-item span, .mcs-nav-all span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcs-nav-item:hover, .mcs-nav-all:hover { color: var(--text); background: var(--tint); }
.mcs-nav-item.is-active, .mcs-nav-all.is-active { color: var(--text); background: var(--tint); border-left-color: var(--gold); }
.mcs-nav-item:focus-visible, .mcs-nav-all:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.mcs-notice { margin: 16px 8px 0; color: var(--faint); font-size: 0.62rem; line-height: 1.4; letter-spacing: 0.02em; }

.mcs-main { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.mcs-head { display: flex; align-items: center; gap: 10px; min-height: 39px; padding: 4px 10px; background: var(--surface); border-bottom: 1px solid var(--border); }
.mcs-name { flex: 1; min-width: 0; margin: 0; overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.mcs-page[hidden] { display: none; }
.mcs-page { display: inline-flex; align-items: center; gap: 6px; }
.mcs-menu { display: none; }
.mcs-frame[hidden] { display: none; }
.mcs-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--bg); }

@media (max-width: 760px) {
  .mcs-work { grid-template-columns: minmax(0, 1fr); }
  .mcs-nav { position: absolute; inset: 0 auto 0 0; z-index: 2; width: min(280px, 86vw); box-shadow: var(--shadow); transform: translateX(-102%); transition: transform 180ms ease; }
  .mcs-work.is-nav-open .mcs-nav { transform: none; }
  .mcs-menu { display: grid; }
  .mcs-page span { display: none; }
  .mcs-home { padding: 12px 12px 20px; }
  .mcs-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mcs-step { grid-template-columns: 34px minmax(0, 1fr); column-gap: 10px; }
  .mcs-step-n { width: 34px; height: 34px; font-size: 1rem; }
  .mcs-steps::before { left: 15px; }
  .mcs-card-art { height: 92px; font-size: 0.72rem; }
}
