/* House of Embers: /start. The page sits in the docs layout (wiki list left, "On this page" right); the first-hour road is ui.step_list (steps.css). */

/* the server-list card: what the House looks like in the Minecraft server list (its name and MOTD are the game's own, drawn in a hologram) */
.fr-sl { display: flex; align-items: center; gap: 14px; margin: 12px 0 24px; padding: 12px 16px 12px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.fr-sl-icon { flex: none; width: 64px; height: 64px; image-rendering: pixelated; }
.fr-sl-body { flex: 1; min-width: 0; }
.fr-sl-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 2px 12px; font: 600 15px var(--sans); color: var(--text); }
.fr-sl-st { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; }
.fr-sl .tag { display: flex; align-items: center; background: none; margin: 4px 0 0; padding: 0; }
.fr-sl .fr-status { font-size: 14px; font-weight: 400; }
.fr-chk { margin: 2px 0 0; text-align: right; font: 13px/1.3 var(--sans); color: var(--text-3); max-width: none; }
@media (max-width: 480px) { .fr-sl-icon { width: 48px; height: 48px; } }

/* the /help groups: a group name, what it is for, its commands */
.fr-cmds { list-style: none; margin: 8px 0 20px; padding: 0; }
.fr-cmds li { margin: 0 0 12px; }
.fr-cmds code { margin-right: 2px; }
.fr-cmds a.ln { display: inline-block; padding: 10px 2px; margin: -10px -2px; }   /* a 44 px tap target on a phone */

/* ---- how to join: ui.step_list (four steps, each a card) with a picture of the real Java screen in every step ---------------------------------- */
/* the cards are not links here, so they do not change on hover */
.ui-steps--join .ui-step:hover { border-color: var(--border); background: var(--surface); }
.ui-steps--join .ui-step-x { margin-top: var(--sp-3); }
.ui-steps--join .ui-step-t { font-size: 22px; }
.ui-steps--join .ui-step-x > p { margin: 0 0 var(--sp-3); max-width: 60ch; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.ui-steps--join .ui-step-x > p strong { color: var(--text); font-weight: 600; }
.ui-steps--join .ui-step-x a { color: var(--ember-soft); }
.ui-steps--join .ui-step-x > p.jn-live-h { margin: var(--sp-4) 0 0; font-size: 14px; color: var(--text-3); }

/* a picture: its width and height are set, it shrinks with the card, and the ember ring sits over the button or field to press (percent of the picture) */
.jn-fig { margin: var(--sp-4) 0 var(--sp-5); max-width: 660px; }
.jn-shot { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-strong); background: var(--bg-raised); line-height: 0; }
.jn-shot img { display: block; width: 100%; height: auto; }
.jn-fig figcaption { margin: var(--sp-2) 0 0; max-width: none; font-size: 14px; line-height: 1.4; color: var(--text-3); }
.jn-ring { position: absolute; box-sizing: border-box; border: 2px solid var(--ember); border-radius: 4px; padding: 0; margin: -3px 0 0 -3px; box-sizing: content-box;
  box-shadow: 0 0 0 2px rgba(13,10,8,.55), 0 0 18px rgba(255,106,26,.55); animation: jn-pulse 2.4s var(--ease) infinite; pointer-events: none; }
@keyframes jn-pulse { 0%, 100% { box-shadow: 0 0 0 2px rgba(13,10,8,.55), 0 0 10px rgba(255,106,26,.35); } 50% { box-shadow: 0 0 0 2px rgba(13,10,8,.55), 0 0 22px rgba(255,106,26,.75); } }

/* the address: Geist 600 in a pill, the copy button beside it (secondary, the page has no primary one) */
.jn-addr { display: inline-flex; align-items: center; gap: var(--sp-4); margin: var(--sp-2) 0 var(--sp-3); padding: 4px 4px 4px var(--sp-5); max-width: 100%;
  border: 1px solid var(--border-strong); border-radius: var(--pill); background: var(--surface-2); }
.jn-addr-t { font: 600 clamp(17px, 4.6vw, 22px)/1 var(--sans); letter-spacing: normal; color: var(--text); user-select: all; white-space: nowrap; }
.jn-copy { height: 44px; padding: 0 20px; font: 600 15px/1 var(--sans); color: var(--ember-soft); background: transparent; border: 1px solid var(--control-border); border-radius: var(--pill);
  cursor: pointer; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.jn-copy:hover { border-color: var(--ember); background: rgba(255,106,26,.1); color: var(--text); }
.jn-copy.done { color: var(--xp); border-color: var(--xp); }
.jn-copy:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

/* step 4: the first commands */
.jn-cmds { margin: 0 0 var(--sp-3); display: grid; gap: var(--sp-2); }
.jn-cmds > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: var(--sp-3); align-items: baseline; padding: var(--sp-2) 0; border-top: 1px solid var(--border); }
.jn-cmds > div:first-child { border-top: 0; }
.jn-cmds dt { margin: 0; }
.jn-cmds dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2); max-width: none; }

/* the server-list card sits in step 3 */
.ui-steps--join .fr-sl { margin: var(--sp-2) 0 0; }

/* phones: one column, the number sits on the title, the picture takes the card's whole width */
@media (max-width: 640px) {
  .ui-steps--join .ui-step { display: block; padding: var(--sp-4); }
  .ui-steps--join .ui-step-n { position: absolute; top: var(--sp-4); left: var(--sp-4); }
  .ui-steps--join .ui-step-h { padding-left: 46px; }
  .ui-steps--join .ui-step-t { font-size: 20px; }
  .jn-addr { display: flex; width: 100%; justify-content: space-between; padding-left: var(--sp-4); gap: var(--sp-3); }
  .jn-cmds > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .jn-ring { animation: none; } .jn-copy { transition: none; } }

/* ---- Start is its own section, not the wiki: no left wiki list, the reading column centred, "On this page" kept on the right ------------------------
   layout.render gives /start the docs layout (.page.has-side: .side, .main, .onpage) and the body class s-start; these rules only match there. */
body.s-start .page.has-side .side { display: none; }
@media (min-width: 900px) and (max-width: 1199px) {
  body.s-start .page.has-side { grid-template-columns: minmax(0, 720px); justify-content: center; }
}
@media (min-width: 1200px) {
  /* an empty 200px track on the left balances the TOC on the right, so the reading column sits in the middle of the page */
  body.s-start .page.has-side { grid-template-columns: 200px minmax(0, 720px) 200px; justify-content: center; }
  body.s-start .page.has-side .main { grid-column: 2; grid-row: 1; }
  body.s-start .page.has-side .onpage { grid-column: 3; grid-row: 1; }
}
@media (max-width: 899px) {
  body.s-start .page.has-side .main { max-width: 720px; margin-inline: auto; }
}
/* the steps' one column may not grow past the card, whatever the picture's own width */
.ui-steps--join { grid-template-columns: minmax(0, 1fr); }
.ui-steps--join .ui-step { min-width: 0; }

/* /start is a reading page: it keeps the narrow docs width while the wiki's own pages grow with the window (site.css, the docs layout) */
body.s-start { --docs: 1256px; }

/* ---- the bold pass (28 Nov 2026): the four steps of joining stand on the ground too, with more air between them, and the address is a line of
   type with its button, not a pill in a panel. The server-list card keeps its frame: it is a picture of the game's own list. ---- */
.ui-steps--join .ui-step { padding: var(--sp-6) 0; }
.ui-steps--join .ui-step:hover { background: none; }
.ui-steps--join .ui-step:hover .ui-step-t { text-decoration: none; }
.jn-addr { padding: 0; border: 0; border-radius: 0; background: none; }
@media (max-width: 640px) {
  .ui-steps--join .ui-step { padding: var(--sp-5) 0; }
  .ui-steps--join .ui-step-n { top: var(--sp-5); left: 0; }
  .ui-steps--join .ui-step-h { padding-left: 34px; }
  .jn-addr { padding-left: 0; }
}
