/* The game guide: each section is a text file typed at the C:\FIZZ\GUIDE> prompt. The shared BBS look
   comes from bbs.css; this file lays out the guide's own lists and tables. */
.guide .screen { gap: 48px; }
.guide .top-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; align-items: start; }
.guide .log { gap: 16px; }
.guide .box { gap: 16px; }
.guide h2:not(.box-title) { color: var(--ega-yellow); font-size: calc(11px * 3); line-height: calc(13px * 3); }
.guide .box > p { max-width: 880px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

/* Cast: a fixed sprite column, the text beside it (below it on narrow screens). */
.cast { gap: 20px; }
.cast li { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; }
.cast .pic { width: 120px; flex: none; display: flex; justify-content: center; }
.cast .txt { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

/* Tables: a dashed rule under the header row; on narrow screens each row becomes a block. */
.guide table { border-collapse: collapse; width: 100%; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 8px 12px; font-weight: 400; }
.guide thead th { color: var(--ega-light-cyan); border-bottom: 2px dashed var(--dim); padding-block: 4px; }
.guide tbody th { color: var(--ega-white); }
.zargs .cls { color: var(--ega-pink); white-space: nowrap; }
.zargs .counter { color: var(--ega-light-green); }
.zargs .pic { width: 1%; }

@media (max-width: 1199px) {
  .zargs, .zargs tbody, .zargs tr, .zargs th, .zargs td { display: block; }
  .zargs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .zargs tr { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 16px; padding: 12px 0; border-bottom: 2px dashed var(--dim); }
  .zargs tbody tr:last-child { border-bottom: 0; }
  .zargs th, .zargs td { padding: 0; grid-column: 2; }
  .zargs .pic { grid-column: 1; grid-row: 1 / span 4; width: auto; }
  .zargs .cls { white-space: normal; }
  .zargs .cls::before { content: "["; } .zargs .cls::after { content: "]"; }
  .zargs td[data-label]::before { content: attr(data-label) ": "; color: var(--ega-light-cyan); }
}

.keys-table th, .keys-table td { padding-inline: 16px; }
@media (max-width: 699px) {
  .keys-table, .keys-table tbody, .keys-table tr, .keys-table th, .keys-table td { display: block; }
  .keys-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .keys-table tr { padding: 8px 0; border-bottom: 2px dashed var(--dim); }
  .keys-table tbody tr:last-child { border-bottom: 0; }
  .keys-table th, .keys-table td { padding: 0; }
  .keys-table td::before { content: attr(data-label) ": "; color: var(--ega-light-cyan); }
}

/* Snacks: a dotted leader runs from the name to the value. */
.snacks { gap: 6px; max-width: 900px; }
.snacks li { display: flex; align-items: center; flex-wrap: wrap; gap: 0 12px; }
.snacks .nm { color: var(--ega-white); }
.snacks .dots { flex: 1; min-width: 16px; height: 30px; overflow: hidden; }
.snacks .dots::before { content: "................................................................................"; display: block; white-space: nowrap; color: var(--dim); }
.snacks .val { color: var(--ega-yellow); }
@media (max-width: 559px) { .snacks .dots { display: none; } .snacks .val { flex-basis: 100%; padding-left: 44px; } }

/* World: a directory listing per region. */
.world { gap: 20px; }
.world > li { display: flex; flex-direction: column; gap: 4px; }
.world .dirname { font-family: var(--font-mono); font-weight: 400; font-size: calc(11px * 2); line-height: calc(15px * 2); }
.world ul { gap: 4px; }
.world ul li { display: flex; gap: 12px; }
.world .tree { color: var(--dim); flex: none; }

.moves { gap: 12px; max-width: 960px; }
.moves li { display: flex; gap: 12px; }
.moves .bullet { color: var(--ega-light-cyan); flex: none; }

.launch { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
