/* playhoardroad.com: the pieces the site's own pages add to style.css: the menu on small screens, the home page's
   tiles and news, the game page's new sections, the wiki (tools/sitewiki.py writes its pages) and the news. */

/* ---------- the menu, where the header's links do not fit ---------- */
.menu { display: none; position: relative; margin-left: auto; }
.menu summary {
  list-style: none; cursor: pointer; padding: 8px 14px 6px; color: var(--soft);
  font-family: var(--head); font-size: 24px; line-height: 1; box-shadow: inset 0 0 0 3px #2c313b;
  background: rgba(14, 16, 20, 0.88); text-shadow: 0 2px 0 var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { color: var(--text); box-shadow: inset 0 0 0 3px var(--acc); }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; display: flex; flex-direction: column; min-width: 210px; padding: 8px;
  background: var(--panel); box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px var(--ink);
}
.menu nav a { padding: 10px 12px 8px; color: var(--soft); text-decoration: none; font-family: var(--head); font-size: 27px; line-height: 1; }
.menu nav a:hover, .menu nav a[aria-current] { color: var(--text); box-shadow: inset 4px 0 0 var(--acc); }
@media (max-width: 900px) {
  .menu { display: block; }
  .bar .bar-in > .btn { margin-left: 8px; }
}

/* ---------- the language menu (tools/sitelang.py: only on a page that exists in two or more languages) ---------- */
.langs { position: relative; margin-left: 10px; }
.langs summary {
  list-style: none; cursor: pointer; padding: 8px 10px 6px; color: var(--soft);
  font-family: var(--head); font-size: 24px; line-height: 1; box-shadow: inset 0 0 0 3px #2c313b;
  background: rgba(14, 16, 20, 0.88); text-shadow: 0 2px 0 var(--ink);
}
.langs summary::-webkit-details-marker { display: none; }
.langs[open] summary { color: var(--text); box-shadow: inset 0 0 0 3px var(--acc); }
.langs nav {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 61; display: flex; flex-direction: column; min-width: 190px; padding: 8px;
  background: var(--panel); box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px var(--ink);
}
.langs nav a { padding: 10px 12px 8px; color: var(--soft); text-decoration: none; font-size: 18px; line-height: 1.2; white-space: nowrap; }
.langs nav a:hover, .langs nav a[aria-current] { color: var(--text); box-shadow: inset 4px 0 0 var(--acc); }
@media (max-width: 900px) { .langs { margin-left: 8px; } }
@media (max-width: 440px) {
  .langs { margin-left: 6px; }
  .langs summary { padding: 8px 6px 6px; font-size: 20px; }
  .bar .bar-in > .btn { margin-left: 6px; }
}

/* ---------- the home page: what is on the road, and the latest news ---------- */
.onroad, .news-home, .shots-home { padding: 72px 0 40px; }
.shots-home { padding-bottom: 72px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 34px 0 0; padding: 0; list-style: none; }
.tile { display: flex; gap: 16px; align-items: flex-start; padding: 18px 18px 16px; color: inherit; text-decoration: none; }
.tile:hover { filter: brightness(1.1); }
.tile .ic { flex: none; width: 72px; height: 72px; display: grid; place-items: center; }
.tile .ic img { image-rendering: pixelated; max-width: 72px; max-height: 72px; width: auto; }
.tile h3 { margin: 2px 0 6px; font-size: 30px; color: var(--acc); text-shadow: 0 2px 0 var(--ink); }
.tile p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--soft); }
.tile .more { display: inline-block; margin-top: 8px; font-family: var(--head); font-size: 20px; color: var(--gold); }
.latest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.shotstrip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.shotstrip a { display: block; }
/* (cut to the world over the road: the shop under it is in the full screenshot on Media) */
.shotstrip img { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 690; object-fit: cover; object-position: 50% 0; }
.seemore { margin-top: 26px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tiles, .latest { grid-template-columns: minmax(0, 1fr); }
  .shotstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .shotstrip li:nth-child(3) { display: none; }
}

/* ---------- the game page's new sections: the Safehouse and the crew ---------- */
.home-pic { image-rendering: pixelated; width: 100%; height: auto; }
.crew-mock { padding: 20px 20px 16px; }
.crew-mock .bar5 { position: relative; height: 26px; background: #1a1430; box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.45), 0 0 0 3px var(--ink); margin: 14px 3px; }
.crew-mock .bar5 i { position: absolute; top: 0; bottom: 0; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25); }
.crew-mock ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--soft); }
.crew-mock li { display: flex; align-items: center; gap: 10px; }
.crew-mock li i { width: 12px; height: 12px; flex: none; }
.crew-mock li b { flex: 1; font-weight: 400; color: var(--text); }
.crew-mock .bot { margin-left: 8px; padding: 2px 6px 1px; font-family: var(--head); font-size: 16px; color: var(--ink); background: #9fb8ff; vertical-align: 1px; }
.crew-mock .t { font-family: var(--head); font-size: 26px; color: var(--gold); }

/* ---------- page headings on the wiki ---------- */
.crumbs { margin: 0 0 14px !important; font-size: 16px !important; color: var(--muted) !important; }
.crumbs a { color: var(--muted); }

/* ---------- the wiki ---------- */
.wiki-in { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; padding-bottom: 96px; }
.wnav { position: sticky; top: calc(var(--bar-h) + 18px); align-self: start; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - var(--bar-h) - 36px); overflow-y: auto; }
.wnav a { padding: 7px 12px 6px; color: var(--soft); text-decoration: none; font-size: 16px; line-height: 1.3; }
.wnav a:hover { color: var(--text); background: var(--panel); }
.wnav a[aria-current] { color: var(--text); background: var(--panel); box-shadow: inset 4px 0 0 var(--acc); }
.wdoc { min-width: 0; }
.wdoc > p, .wdoc li { color: var(--soft); }
.wdoc h2 { margin: 52px 0 16px; font-size: 48px; color: var(--text); text-shadow: 0 3px 0 var(--ink); display: flex; align-items: center; gap: 14px; }
.wdoc h2:first-child { margin-top: 0; }
.wdoc h2 img { image-rendering: pixelated; }
.wdoc h3 { margin: 30px 0 12px; font-size: 32px; color: var(--acc); text-shadow: 0 2px 0 var(--ink); }
.wdoc a { color: var(--gold); }
.wdoc h4 { margin: 22px 0 8px; font-size: 26px; color: var(--acc); text-shadow: 0 2px 0 var(--ink); }
.wdoc .steps-list li { margin: 10px 0; }
.wdoc .steps-list li::marker { color: var(--acc); font-family: var(--head); }
.wtable-wrap { overflow-x: auto; margin: 0 0 20px; }
.wtable { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.wtable th { text-align: left; padding: 8px 12px 6px; font-family: var(--head); font-size: 21px; font-weight: 400; color: var(--muted); border-bottom: 3px solid #2c313b; }
.wtable td { text-align: left; padding: 10px 12px 9px; vertical-align: top; color: var(--soft); border-bottom: 2px solid #1d2027; }
.wtable td b { color: var(--text); font-weight: 400; font-family: var(--head); font-size: 21px; }
.wtable td img { image-rendering: pixelated; display: inline-block; vertical-align: middle; width: 24px; height: auto; margin-right: 6px; }
.wtable.narrowt { width: auto; min-width: 50%; }
.tag { display: inline-block; padding: 3px 8px 1px; font-family: var(--head); font-size: 17px; line-height: 1.1; background: #2c313b; color: var(--soft); }
.wcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 0 0 18px; }
.wcard { display: flex; gap: 14px; align-items: flex-start; padding: 16px 16px 12px; scroll-margin-top: calc(var(--bar-h) + 20px); }
.wcard:target { box-shadow: inset 3px 3px 0 0 var(--gold), inset -3px -3px 0 0 var(--gold-lo), 0 0 0 3px var(--ink); }
.wcard .wpic { flex: none; width: 96px; display: grid; place-items: center; min-height: 64px; }
.wcard .wpic img { image-rendering: pixelated; max-width: 96px; height: auto; }
.wcard.boss .wpic { width: 130px; }
.wcard.boss .wpic img { max-width: 130px; }
.wcard h4 { margin: 2px 0 8px; font-size: 26px; color: var(--text); }
.wcard p { margin: 0 0 8px; font-size: 15px; line-height: 1.45; color: var(--soft); }
.wcard .lv { color: var(--muted); }
.mchip { display: inline-flex; align-items: center; gap: 8px; margin: 4px 14px 4px 0; color: var(--soft); text-decoration: none; font-size: 16px; }
.mchip img { image-rendering: pixelated; width: auto; max-height: 64px; }
.mchip:hover span { color: var(--gold-hi); text-decoration: underline; }
.land-entry { margin: 0 0 34px; padding: 0 0 26px; border-bottom: 3px solid #1d2027; scroll-margin-top: calc(var(--bar-h) + 20px); }
.land-entry .lhead { display: flex; gap: 20px; align-items: flex-end; }
.land-entry .lpic { flex: none; width: 150px; display: grid; place-items: end center; }
.land-entry .lpic img { image-rendering: pixelated; max-width: 150px; height: auto; }
.land-entry h3 { margin: 0 0 6px; font-size: 40px; color: var(--acc); }
.land-entry .ltag { margin: 0 0 6px; font-size: 18px; color: var(--text); }
.land-entry .lmeta { margin: 0; font-size: 15px; color: var(--muted); }
.land-entry .twist { margin: 14px 0 0; padding: 10px 14px; background: var(--panel); box-shadow: inset 4px 0 0 var(--acc); color: var(--soft); font-size: 16px; }
.land-entry .lrow { display: flex; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.land-entry .lk { width: 110px; font-family: var(--head); font-size: 20px; color: var(--muted); }
.pal-entry, .room-entry { display: flex; gap: 22px; padding: 20px; margin: 0 0 18px; scroll-margin-top: calc(var(--bar-h) + 20px); }
.pal-entry .ppics, .room-entry .ppics { flex: none; width: 200px; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; }
.pal-entry .ppics img, .room-entry .ppics img { image-rendering: pixelated; max-width: 200px; height: auto; }
.pal-entry h3, .room-entry h3 { margin: 0 0 10px; }
.pal-entry p, .room-entry p { color: var(--soft); font-size: 16px; }
.facts-mini { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; margin: 10px 0 0; font-size: 15px; }
.facts-mini div { display: contents; }
.facts-mini dt { color: var(--muted); }
.facts-mini dd { margin: 0; color: var(--soft); }
.looks { font-size: 15px; color: var(--muted) !important; }
.honest { padding: 14px 16px; background: var(--panel); box-shadow: inset 4px 0 0 var(--acc); }
.wiki-home { padding-bottom: 96px; }
.wcats { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.wcat { display: flex; gap: 16px; align-items: center; padding: 16px; color: inherit; text-decoration: none; }
.wcat:hover { filter: brightness(1.12); }
.wcat .wci { flex: none; width: 64px; display: grid; place-items: center; }
.wcat .wci img { image-rendering: pixelated; max-width: 64px; max-height: 64px; width: auto; }
.wcat b { display: block; font-family: var(--head); font-weight: 400; font-size: 27px; line-height: 1.05; color: var(--text); }
.wcat span span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.wsearch { margin-top: 24px; max-width: 560px; }
.wsearch input {
  width: 100%; padding: 14px 16px 12px; border: 0; background: var(--panel); color: var(--text); font: inherit; font-size: 18px;
  box-shadow: inset 3px 3px 0 0 #111317, 0 0 0 3px var(--ink);
}
.wsearch input:focus { outline: none; box-shadow: inset 3px 3px 0 0 #111317, 0 0 0 3px var(--acc); }
.wresults { margin: 12px 0 0; padding: 0; list-style: none; max-width: 760px; }
.wresults li a { display: flex; gap: 12px; align-items: baseline; padding: 8px 10px; color: var(--soft); text-decoration: none; }
.wresults li a:hover, .wresults li a:focus { background: var(--panel); color: var(--text); }
.wresults b { font-family: var(--head); font-weight: 400; font-size: 22px; color: var(--text); }
.wresults .k { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.wresults .x { flex: 1; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  .wiki-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  /* (one row that scrolls sideways, so the page's own words come first) */
  .wnav { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; max-height: none; gap: 4px; margin: 0 calc(-1 * var(--gut)); padding: 0 var(--gut) 8px; scrollbar-width: thin; }
  .wnav a { flex: none; padding: 6px 10px 5px; background: var(--panel); font-size: 15px; white-space: nowrap; }
  .wdoc h2 { font-size: 36px; }
  .pal-entry, .room-entry { flex-direction: column; }
  /* (M4, row 401: the Dragonling's two pictures are 176 and 180 px wide: side by side they ran past a phone's column and were cut at its edges; each takes at most its half) */
  .pal-entry .ppics, .room-entry .ppics { width: auto; flex-direction: row; min-width: 0; }
  .pal-entry .ppics img, .room-entry .ppics img { flex: 0 1 auto; min-width: 0; max-width: calc(50% - 7px); }
  .land-entry .lhead { flex-direction: column; align-items: flex-start; }
}

/* ---------- news (B1, 2026-10-13: posts in Facepunch's shape, shorter; tools/sitewiki.py) ---------- */
/* the index: the newest update big, the next ones as cards, the rest one line each */
.news-index { display: grid; gap: 22px; padding-bottom: 96px; }
.ncard { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.ncard:hover { filter: brightness(1.08); }
.ncard .nthumb { margin: 3px 3px 0; }
.ncard .nthumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ncard .ntext { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 18px 18px; }
.nmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; color: var(--muted); font-size: 15px; }
.ntitle { font-family: var(--head); font-size: 32px; line-height: 1; color: var(--text); text-shadow: 0 2px 0 var(--ink); }
.nsum { color: var(--soft); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .more { font-family: var(--head); font-size: 20px; color: var(--gold); }
.ncard.big { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; }
.ncard.big .nthumb { margin: 3px 0 3px 3px; }
.ncard.big .ntext { padding: 22px 26px; gap: 12px; }
.ncard.big .ntitle { font-size: 48px; }
.ncard.big .nsum { font-size: 17px; -webkit-line-clamp: 5; }
.ncards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nearlier { margin: 18px 0 0; font-size: 36px; color: var(--text); text-shadow: 0 3px 0 var(--ink); }
.nrows { margin: 0; padding: 4px 0; list-style: none; }
.nrows a { display: grid; grid-template-columns: 76px 170px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 18px; color: var(--soft); text-decoration: none; }
.nrows li + li a { border-top: 2px solid var(--panel-lo); }
.nrows a:hover { background: var(--card); }
.nrows .tag { justify-self: start; }
.nrows time { color: var(--muted); font-size: 15px; }
.nrows .t { font-size: 16px; }
/* a post: the head picture, then short sections with the pictures between them */
.npost-head { padding: 48px 0 18px; }
.npost-head .nback { margin: 0 0 16px; }
.npost-head .nback a { font-family: var(--head); font-size: 22px; color: var(--gold); text-decoration: none; }
.npost-head .nback a::before { content: "< "; }
.npost-head h1 { margin: 12px 0 0; font-size: 64px; color: var(--text); text-shadow: 0 4px 0 var(--ink); text-wrap: balance; }
.nlede { margin: 16px 0 0; font-size: 19px; line-height: 1.5; color: var(--soft); }
.nhero-wrap { width: min(100% - 2 * var(--gut), 1080px); margin: 10px auto 30px; }
.nhero, .npic { margin: 0; }
.nhero img, .npic img { display: block; width: 100%; height: auto; }
.nsec { margin: 0 0 20px; scroll-margin-top: calc(var(--bar-h) + 20px); }
.nsec h2 { margin: 0 0 6px; font-size: 32px; color: var(--acc); text-shadow: 0 2px 0 var(--ink); }
.nsec p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--soft); }
/* W1: a weekly post's theme is a list of changes, each with its bold lead */
.nlist { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.nlist li { position: relative; padding-left: 20px; font-size: 17px; line-height: 1.55; color: var(--soft); }
.nlist li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 7px; height: 7px; background: var(--acc); }
.nlist b { color: var(--text); font-weight: 700; }
.nsec + .nsec { margin-top: 30px; }
/* Brent 10-21 ("make the article easier to read ... how facepunch does"): a plain reading face at a comfortable size, each change its own
   short block with its lead as a small heading, a rule between themes, the contents up top, and wide moving pictures between */
.npost { --read: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
.nlede { font-family: var(--read); font-size: 20px; line-height: 1.65; }
.ntoc { margin: 4px auto 26px; padding: 14px 18px; background: var(--panel); }
.ntoc span { display: block; margin-bottom: 6px; font-family: var(--head); font-size: 22px; color: var(--gold); }
.ntoc ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ntoc a { font-family: var(--read); font-size: 16px; color: var(--soft); text-decoration: none; }
.ntoc a:hover { color: var(--text); text-decoration: underline; }
.nbody .nsec { padding-top: 26px; }
.nbody .nsec + .nsec { margin-top: 34px; border-top: 3px solid var(--panel); }
.nbody .nsec h2 { margin-bottom: 18px; font-size: 40px; }
.nitems { display: grid; gap: 22px; }
.nitem h3 { margin: 0 0 6px; font-family: var(--head); font-size: 26px; line-height: 1.05; color: var(--text); text-shadow: 0 2px 0 var(--ink); }
.nitem p { margin: 0; font-family: var(--read); font-size: 18px; line-height: 1.7; color: var(--soft); max-width: 68ch; }
.nitem p b { color: var(--text); }
/* a theme told in prose (a big update's post): paragraphs before its items, and a caption under a picture */
.nprose { display: grid; gap: 16px; max-width: 68ch; }
.nprose p { margin: 0; font-family: var(--read); font-size: 18px; line-height: 1.7; color: var(--soft); }
.nprose b { color: var(--text); }
.nprose + .nitems { margin-top: 26px; }
.npic figcaption, .nhero figcaption { margin: 10px 2px 0; font-family: var(--read); font-size: 15px; line-height: 1.5; color: var(--muted); }
.npost video { display: block; width: 100%; height: auto; background: var(--ink); }
.nbody .npic { width: min(100vw - 2 * var(--gut), 1080px); margin: 34px 0 10px 50%; transform: translateX(-50%); }
.nvers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--muted); }
.ncard.nopic .ntext { padding-top: 18px; }
.nstub { padding: 64px 0 96px; }
.nstub h1 { margin: 0 0 14px; font-size: 48px; color: var(--text); text-shadow: 0 3px 0 var(--ink); }
.nstub p { margin: 0 0 16px; font-size: 17px; line-height: 1.5; color: var(--soft); }
.npic { margin: 26px 0 30px; }
.nend { margin-top: 30px; padding-top: 22px; border-top: 3px solid var(--panel); }
.nend p { margin: 0 0 16px; color: var(--soft); }
.npager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 8px 0 96px; }
.npager a { display: block; padding: 12px 16px; background: var(--panel); color: var(--soft); font-size: 15px; text-decoration: none; }
.npager a:hover { background: var(--card); }
.npager span { display: block; margin-bottom: 4px; font-family: var(--head); font-size: 22px; color: var(--gold); }
.npager .newer { grid-column: 2; text-align: right; }
@media (max-width: 1000px) {
  .ncards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ncard.big { grid-template-columns: minmax(0, 1fr); }
  .ncard.big .nthumb { margin: 3px 3px 0; }
}
@media (max-width: 640px) {
  .ncards { grid-template-columns: minmax(0, 1fr); }
  .ncard.big .ntitle { font-size: 36px; }
  .ntitle { font-size: 28px; }
  .nrows a { grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 10px 14px; }
  .nrows time { grid-column: 2; grid-row: 1; }
  .nrows .t { grid-column: 1 / -1; }
  .npost-head { padding-top: 32px; }
  .npost-head h1 { font-size: 44px; }
  .nlede { font-size: 17px; }
  .nsec h2 { font-size: 27px; }
  .nsec p { font-size: 16px; }
  .npic { margin: 20px 0 24px; }
  .nbody .nsec h2 { font-size: 32px; }
  .nitem h3 { font-size: 23px; }
  .nitem p { font-size: 17px; }
  .nprose p { font-size: 17px; }
  .npic figcaption, .nhero figcaption { font-size: 14px; }
  .nlede { font-size: 18px; }
  .npager { grid-template-columns: minmax(0, 1fr); }
  .npager .newer { grid-column: auto; text-align: left; }
}

/* ---------- small phones: the brand stays on one line beside the menu ---------- */
.bar .brand { white-space: nowrap; }
@media (max-width: 480px) {
  .bar .brand { font-size: 21px; letter-spacing: 0.03em; gap: 6px; }
  .bar-in { gap: 10px; }
  .menu summary { padding: 8px 10px 6px; font-size: 22px; }
}

/* ---------- the guides (tools/siteguides.py) ---------- */
.guide-in { width: min(100% - 2 * var(--gut), 780px); padding-bottom: 96px; }
.gdoc { font-size: 19px; line-height: 1.6; }
.gdoc h2 { font-size: 42px; }
.gdoc h3 { font-size: 30px; }
.gdoc ul, .gdoc ol { color: var(--soft); padding-left: 1.3em; }
.gdoc li { margin: 6px 0; }
.gdoc li::marker { color: var(--acc); }
.gdoc strong { color: var(--text); font-weight: 600; }
.gdoc table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 16px; }
.gdoc th, .gdoc td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--panel-lo); color: var(--soft); }
.gdoc th { font-family: var(--head); font-size: 20px; font-weight: 400; color: var(--acc); }
.gdoc .gpic { image-rendering: pixelated; vertical-align: middle; margin: 0 6px; }
.gshot { margin: 26px 0; padding: 8px 8px 4px; }
.gshot img { display: block; width: 100%; height: auto; }
.gshot figcaption { margin: 8px 4px 4px; font-size: 15px; color: var(--muted); }
.gplay { margin: 34px 0; padding: 22px 24px 26px; }
.gplay p { margin: 0 0 14px; color: var(--soft); }
.gplay .gplay-t { margin: 0 0 6px; font-family: var(--head); font-size: 32px; line-height: 1.1; color: var(--gold); }
.grel h2 { font-size: 36px; }
.grel ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.grel li { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.grel a { font-family: var(--head); font-size: 24px; }
.grel span { font-size: 16px; color: var(--muted); }
.grail { margin: 48px 0 0; padding: 18px 20px 14px; }
.grail h3 { margin: 0 0 8px; }
.grail ul { margin: 0; padding-left: 1.2em; }
.grail li { margin: 4px 0; }
.ghub-in { padding-bottom: 96px; }
.ghub-group { margin: 0 0 44px; }
.ghub-group h2 { margin: 0 0 6px; font-size: 44px; color: var(--text); text-shadow: 0 3px 0 var(--ink); }
.ghub-group > p { margin: 0 0 18px; color: var(--soft); }
.ghub { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ghub .tile { height: 100%; box-sizing: border-box; }
.ghub .tile h3 { font-size: 28px; }
@media (max-width: 760px) {
  .ghub { grid-template-columns: minmax(0, 1fr); }
  .gdoc { font-size: 18px; }
  .gdoc h2 { font-size: 36px; }
  .gdoc table { display: block; overflow-x: auto; }
}

/* ---------- the creators page's application form (creators.html, creators.js) ---------- */
.cform { display: grid; gap: 16px; max-width: 640px; margin-top: 18px; }
.cform label { display: grid; gap: 6px; color: var(--soft); font-size: 17px; }
.cform input:not([type=checkbox]), .cform textarea, .cform select {
  width: 100%; padding: 12px 14px 10px; border: 0; background: var(--panel); color: var(--text); font: inherit; font-size: 17px;
  box-shadow: inset 3px 3px 0 0 #111317, 0 0 0 3px var(--ink);
}
.cform input:focus, .cform textarea:focus, .cform select:focus { outline: none; box-shadow: inset 3px 3px 0 0 #111317, 0 0 0 3px var(--acc); }
.cform .agree { display: flex; gap: 10px; align-items: center; }
.cform .agree input { width: 22px; height: 22px; accent-color: var(--gold); }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform p { margin: 0; }
.cmsg { min-height: 1.4em; font-size: 17px; }
.cmsg.ok { color: var(--acc); }
.cmsg.bad { color: #ff9a8a; }
.cnote { font-size: 15px; color: var(--muted); }
.doc code { font-size: 0.95em; padding: 0 0.3em; background: var(--panel); color: var(--text); }

/* ---------- a page for one pal or one land (tools/wikient.py) ---------- */
.ent-head.has-banner { padding-top: 0; }
.ent-banner { position: relative; height: clamp(170px, 26vw, 360px); overflow: hidden; margin-bottom: 30px; border-bottom: 4px solid var(--ink); box-shadow: 0 3px 0 0 var(--acc); }
.ent-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; image-rendering: pixelated; }
.ent-banner::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(14, 16, 20, .55)); }
.entlink { color: inherit !important; text-decoration: none; }
.entlink:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.ent-in { padding-bottom: 96px; }
.ent-doc::after { content: ""; display: block; clear: both; }
.ent-doc > p { max-width: 46em; }
.ent-doc h2 { font-size: 42px; margin-top: 40px; }
.ibox { float: right; width: 330px; margin: 0 0 24px 32px; padding: 0 0 12px; font-size: 15px; }
.ibox-t { margin: 0; padding: 10px 16px 6px; font-family: var(--head); font-size: 30px; line-height: 1.1; color: var(--ink); background: var(--acc); text-align: center; }
.ibox-pic { display: grid; place-items: center; min-height: 170px; padding: 20px 16px; background: radial-gradient(ellipse at 50% 70%, color-mix(in oklab, var(--acc) 22%, transparent), transparent 70%); }
.ibox-pic img { image-rendering: pixelated; width: auto; max-width: 260px; max-height: 220px; min-height: 96px; height: auto; object-fit: contain; }
.ibox dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 0 14px; }
.ibox dl div { display: contents; }
.ibox dt, .ibox dd { padding: 8px 0 7px; border-top: 2px solid #2c313b; }
.ibox dt { padding-right: 14px; color: var(--muted); font-family: var(--head); font-size: 19px; line-height: 1.15; }
.ibox dd { margin: 0; color: var(--soft); line-height: 1.4; }
.ibox dd b { color: var(--text); font-weight: 400; }
.growstrip { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; margin: 6px 0 16px; }
.growstrip figure { margin: 0; padding: 14px 18px 10px; background: var(--panel); display: grid; justify-items: center; gap: 8px; }
.growstrip img { image-rendering: pixelated; width: auto; max-height: 150px; height: auto; }
.growstrip figcaption { font-family: var(--head); font-size: 19px; color: var(--muted); }
.twist-box { padding: 12px 16px; background: var(--panel); box-shadow: inset 4px 0 0 var(--acc); }
.seeall { margin-top: 30px; color: var(--muted) !important; font-size: 16px; }
.navbox { margin: 40px 0 0; padding: 0 0 14px; }
.navbox-t { margin: 0 0 12px; padding: 9px 16px 5px; font-family: var(--head); font-size: 26px; background: #262a33; box-shadow: inset 0 -3px 0 var(--acc); }
.navbox-t a { color: var(--text); text-decoration: none; }
.navbox-in { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; padding: 0 12px; }
.navbox-in a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; color: var(--soft); text-decoration: none; font-size: 15px; line-height: 1.2; }
.navbox-in a:hover { background: var(--panel); color: var(--text); }
.navbox-in a[aria-current] { background: var(--panel); color: var(--text); box-shadow: inset 3px 0 0 var(--acc); }
.navbox-in img { flex: none; image-rendering: pixelated; width: 40px; height: 40px; object-fit: contain; }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 18px; }
.pager a { display: grid; gap: 2px; padding: 10px 16px; background: var(--panel); color: var(--text); text-decoration: none; font-family: var(--head); font-size: 24px; }
.pager a span { font-family: var(--body); font-size: 13px; color: var(--muted); }
.pager .pg-next { text-align: right; }
.pager a:hover { box-shadow: inset 0 -3px 0 var(--acc); }
@media (max-width: 900px) {
  .ibox { float: none; width: auto; max-width: 440px; margin: 0 auto 26px; }
  .ent-doc h2 { font-size: 34px; }
  .navbox-in { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ---------- guides: the land's road across the top, pictures on the hub, short clips (site growth 2026-10-27) ---------- */
.gtile { display: flex; flex-direction: column; padding: 0 !important; overflow: hidden; }
.gtile > div { padding: 14px 18px 18px; }
.gthumb { display: block; aspect-ratio: 16 / 7; overflow: hidden; background: var(--panel); border-bottom: 3px solid var(--ink); }
.gthumb img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; transition: transform .25s; }
.gtile:hover .gthumb img { transform: scale(1.04); }
.gclip video { display: block; width: 100%; height: auto; background: var(--ink); }
@media (prefers-reduced-motion: reduce) { .gtile:hover .gthumb img { transform: none; } }

/* ---------- the home page's guides, the wiki home's pals and lands ---------- */
.latest3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gcard .gthumb { margin: 3px 3px 0; border-bottom: 0; }
.gcard .ntitle { font-size: 28px; }
.portal { margin-top: 56px; }
.portal h2 { margin: 0 0 16px; font-size: 44px; color: var(--text); text-shadow: 0 3px 0 var(--ink); }
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.pcell { display: grid; justify-items: center; align-content: end; gap: 8px; padding: 16px 10px 12px; color: var(--soft); text-decoration: none; text-align: center; font-family: var(--head); font-size: 20px; line-height: 1.05; }
.pcell img { image-rendering: pixelated; width: auto; height: 72px; max-width: 100%; object-fit: contain; }
.pcell:hover { color: var(--text); filter: brightness(1.12); }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.lcell { display: flex; flex-direction: column; color: inherit; text-decoration: none; overflow: hidden; }
.lcell img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; image-rendering: pixelated; border-bottom: 3px solid var(--acc); }
.lcell span { display: grid; gap: 3px; padding: 10px 14px 12px; }
.lcell b { font-family: var(--head); font-weight: 400; font-size: 26px; line-height: 1; color: var(--text); }
.lcell i { font-style: normal; font-size: 14px; color: var(--muted); }
.lcell:hover { filter: brightness(1.1); }
@media (max-width: 1000px) { .latest3 { grid-template-columns: minmax(0, 1fr); } }
.land h4 a { color: inherit; text-decoration: none; } .land h4 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }

/* ---------- a guide's calculator ({{calc:offline}}, site/calc.js) ---------- */
.gcalc { margin: 30px 0; padding: 22px 24px 20px; }
.gcalc .gcalc-t { margin: 0 0 6px; font-family: var(--head); font-size: 30px; line-height: 1.1; color: var(--gold); }
.gcalc p { margin: 0 0 12px; }
.gcalc-f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 16px 0 8px; }
.gcalc-f label { display: grid; gap: 6px; align-content: start; color: var(--soft); font-size: 16px; }
.gcalc-f input {
  width: 100%; padding: 10px 12px 8px; border: 0; background: var(--panel-lo); color: var(--text); font: inherit; font-size: 18px;
  box-shadow: inset 3px 3px 0 0 #111317, 0 0 0 3px var(--ink);
}
.gcalc-f input:focus { outline: none; box-shadow: inset 3px 3px 0 0 #111317, 0 0 0 3px var(--acc); }
.gcalc-hint, .gcalc-note, .gcalc-cap { color: var(--soft); font-size: 15px; }
.gcalc-f .gcalc-hint { font-size: 14px; }
.gcalc-out { margin: 14px 0 18px; padding: 14px 16px 4px; background: var(--panel-lo); }
.gcalc-out .gcalc-big { font-family: var(--head); font-size: 28px; line-height: 1.15; color: var(--gold); }
.gcalc-out .gcalc-bad { color: var(--gold); }
.gcalc table { margin: 8px 0 14px; }
@media (max-width: 560px) {
  .gcalc { padding: 18px 16px 14px; }
  .gcalc-f { grid-template-columns: 1fr; }
}

/* ---------- a guide's game finder ({{finder:...}}, site/finder.js) ---------- */
.gfind { margin: 30px 0; padding: 22px 24px 20px; }
.gfind .gfind-t { margin: 0 0 6px; font-family: var(--head); font-size: 30px; line-height: 1.1; color: var(--gold); }
.gfind p { margin: 0 0 12px; }
.gfind-f { display: grid; gap: 12px; margin: 16px 0 10px; }
.gfind-f [role=group] { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gfind-f span { min-width: 74px; color: var(--soft); font-size: 16px; }
.gfind-f button {
  padding: 8px 12px 6px; border: 0; background: var(--panel-lo); color: var(--soft); font: inherit; font-size: 16px; cursor: pointer;
  box-shadow: 0 0 0 3px var(--ink);
}
.gfind-f button[aria-pressed=true] { background: var(--acc); color: #111317; }
.gfind-f button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--gold); }
.gfind-n { color: var(--gold); }
.gfind-ours, .gfind-note { color: var(--soft); font-size: 15px; }
.gfind-ours { font-family: inherit; }
.gfind table { margin: 8px 0 14px; }
.gfind td a { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .gfind { padding: 18px 16px 14px; }
  .gfind-f span { width: 100%; }
  /* each game becomes a card: its name, then each column's name beside its value */
  .gdoc .gfind table, .gfind tbody, .gfind tr, .gfind td { display: block; overflow: visible; }
  .gfind thead { display: none; }
  .gfind tr { padding: 12px 0 10px; border-bottom: 2px solid #1d2027; }
  .gfind tr[hidden] { display: none; }
  .gfind td { padding: 2px 0; border: 0; }
  .gfind td[data-l] { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 10px; }
  .gfind td[data-l]::before { content: attr(data-l); color: var(--muted); }
}

/* ---------- Japanese pages (2026-11-17, the ja pilot): the pixel fonts have no Japanese letters, so these words fall back to
   the system font, whose letters run about twice as wide. The header's words stay on one line and fit a phone; headings
   break between phrases, not inside a word (Chrome; other browsers break as before). ---------- */
:lang(ja) .menu summary, :lang(ja) .bar .btn { white-space: nowrap; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .tagline { word-break: auto-phrase; }
:lang(ja) .land h4, :lang(ja) .land .tag, :lang(ja) .land .who { word-break: auto-phrase; }
:lang(ja) .land h4 { font-size: 21px; line-height: 1.2; }
@media (max-width: 480px) {
  :lang(ja) .menu summary { font-size: 17px; padding: 9px 8px 7px; }
  :lang(ja) .bar .btn.small { font-size: 19px; }
}
