/* Riventale's info pages (/guides/, /updates/, the legal pages): static HTML and CSS, no script. They wear the in-game
   Journal: night-purple stone with gold rims, its tab rail as the section nav (a side rail on a computer, a strip along
   the top on a phone), item icons in sockets, recipes as crafting slots, effects as the HUD's sockets, and the What's
   new card's rows on the update pages. Tokens from style.css and hud.css; the font is the game's Pixelify Sans (OFL). */
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/pixelify-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/pixelify-sans-latin-700-normal.woff2) format('woff2'); }

:root {
  --font: 'Pixelify Sans', 'Courier New', Courier, monospace;
  --ink: #0a0716; --night: #140f2b; --panel: #1d1640; --line: #4a3f80; --line-hi: #8a7fd0; --gold: #ffd23f; --gold-dark: #d99a12;
  --muted: #b9b0d8; --text: #f2edff; --soft: #e6e0f7;
  --st-hi: #3a2f72; --st: #261d52; --st-lo: #181238; --sock: #0e0a20; --bad: #e0503a;
  --water: #5ab4ff; --fire: #ff6a3d; --earth: #4fd06a; --wind: #fff1b8; --firstfolk: #d9a8ff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 18px; line-height: 1.55; color: var(--text);
  background: radial-gradient(ellipse at 50% -10%, #2f2366 0%, #160f33 42%, var(--ink) 100%) fixed, var(--ink);
  padding-inline: 16px;
}
img { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff3b0; }
a:focus-visible, .tab:focus-visible, .btn:focus-visible { outline: 2px dashed #fff; outline-offset: 3px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 5; padding: 8px 14px; background: var(--gold); color: #2a1600; }
.skip:focus { top: 8px; }

/* ---------------------------------------------------------------- The bar over the window */
.top { max-width: 1180px; margin: 0 auto; padding: 14px 0 12px; display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { display: block; image-rendering: pixelated; }
.brand .crest { width: 38px; height: 38px; }
.brand .word { height: 28px; width: auto; }
.top nav { display: flex; gap: 4px 18px; font-size: 17px; }
.top nav a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; white-space: nowrap;
  font-family: var(--font); font-size: 18px; font-weight: 700; text-decoration: none; color: #2a1600; text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.35);
  background: linear-gradient(180deg, #ffe680 0%, var(--gold) 45%, var(--gold-dark) 100%); border: 3px solid #fff3b0;
  box-shadow: inset 0 -3px 0 rgba(140, 80, 0, 0.45), 0 4px 0 #5a3200;
}
.btn:hover { color: #2a1600; transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #5a3200; }

/* ---------------------------------------------------------------- The Journal window */
.jr {
  max-width: 1180px; margin: 0 auto; background: linear-gradient(180deg, var(--st-hi) 0%, var(--st) 6%, var(--st-lo) 100%);
  border: 4px solid var(--line); box-shadow: 0 0 0 4px var(--ink), 0 18px 50px rgba(0, 0, 0, 0.55);
}
.jr-head { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 3px solid var(--ink); background: linear-gradient(180deg, rgba(255, 210, 63, 0.10), transparent); }
.jr-head > img { width: 26px; height: 26px; image-rendering: pixelated; flex: none; }
.jr-head .jr-title { font-size: 26px; font-weight: 700; color: var(--gold); text-decoration: none; text-shadow: 3px 3px 0 var(--ink), 0 0 18px rgba(255, 210, 63, 0.3); }
.crumbs { margin-left: auto; font-size: 15px; color: var(--muted); text-align: right; }
.crumbs a { color: var(--muted); }
.jr-body { display: grid; grid-template-columns: 252px minmax(0, 1fr); }

/* The tab rail: every guide; on a phone, a strip that scrolls sideways along the top */
.rail { border-right: 3px solid var(--ink); background: rgba(10, 7, 22, 0.3); }
.rail ul { list-style: none; margin: 0; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; }
.rail li.rail-h { margin: 10px 2px 0; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.tab {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 12px; text-decoration: none;
  font-size: 17px; line-height: 1.15; color: var(--soft); background: linear-gradient(180deg, #2c2358, #1d1640); border: 3px solid var(--line); box-shadow: 0 3px 0 var(--ink);
}
.tab img { width: 26px; height: 26px; image-rendering: pixelated; flex: none; }
.tab:hover { color: #fff; border-color: var(--line-hi); }
.tab[aria-current="page"], .tab[aria-current="true"] { color: var(--gold); border-color: var(--gold); background: linear-gradient(180deg, #3a2f72, #241b50); box-shadow: 0 3px 0 var(--ink), 0 0 14px rgba(255, 210, 63, 0.3); }
.rail li.sub .tab { min-height: 40px; margin-left: 12px; font-size: 16px; }
.rail li.sub .tab img { width: 22px; height: 22px; }
.rail li.gap { margin-top: 10px; }

/* ---------------------------------------------------------------- The page inside */
.page { min-width: 0; padding: 18px 30px 30px; }
.page > * { max-width: 780px; }
.page > .wide, .page > .cards, .page > .portraits, .page > .wn-list, .page > .table { max-width: none; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; text-shadow: 2px 2px 0 var(--ink); }
h1 { font-size: clamp(30px, 5.5vw, 42px); color: var(--gold); margin: 4px 0 10px; }
h2 { font-size: 27px; color: var(--gold); margin: 36px 0 10px; padding-top: 14px; border-top: 3px solid var(--ink); box-shadow: 0 -1px 0 rgba(138, 127, 208, 0.18); scroll-margin-top: 70px; }
h3 { font-size: 21px; color: #fff; margin: 24px 0 6px; scroll-margin-top: 70px; }
.lead { font-size: 20px; color: #ddd5f5; margin: 0 0 16px; }
.lead strong { color: #fff; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
strong { color: #fff; }
.eyebrow { margin: 0; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
kbd { font-family: var(--font); font-size: 15px; display: inline-block; padding: 0 7px; margin: 1px 0; color: #fff; background: #2c2450; border: 2px solid #6a5fa0; border-bottom-width: 4px; }

/* the title beside its picture (a guide's opening) */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; max-width: none; }
.intro .pic { margin: 6px 0 0; }
.pic { position: relative; background: var(--sock); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px rgba(138, 127, 208, 0.35), 0 4px 0 var(--ink); }
.pic img { display: block; width: 100%; height: auto; }

/* On this page: the page's sections as small gold-edged chips */
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; padding: 0; list-style: none; max-width: none; }
.toc a { display: inline-block; padding: 2px 10px; font-size: 15px; color: var(--soft); text-decoration: none; background: rgba(10, 7, 22, 0.45); border: 2px solid var(--line); }
.toc a:hover { color: var(--gold); border-color: var(--gold); }

/* Stone panels and figures */
.panel { padding: 14px 18px; margin: 14px 0; background: rgba(10, 7, 22, 0.45); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px rgba(74, 63, 128, 0.5); }
.panel > :first-child { margin-top: 0; } .panel > :last-child { margin-bottom: 0; }
figure { margin: 18px 0 22px; }
figure img { display: block; width: 100%; height: auto; border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px rgba(138, 127, 208, 0.35), 0 4px 0 var(--ink); background: var(--sock); }
figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--gold); }
.facts dd { margin: 0; }

/* Tables: rows cut into the stone; a wide one scrolls in its own box */
.table { overflow-x: auto; margin: 10px 0 18px; border: 3px solid var(--ink); background: rgba(10, 7, 22, 0.4); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 12px; vertical-align: top; font-size: 16px; }
th { color: var(--gold); font-weight: 700; background: rgba(255, 210, 63, 0.07); border-bottom: 3px solid var(--ink); }
td { border-bottom: 2px solid rgba(74, 63, 128, 0.45); }
tr:last-child td { border-bottom: 0; }
td:first-child { color: #fff; }
.ic { width: 28px; height: 28px; vertical-align: -8px; margin-right: 6px; image-rendering: pixelated; }

/* ---------------------------------------------------------------- Item sockets, recipes, effects */
.sock { position: relative; width: 46px; height: 46px; display: grid; place-items: center; flex: none; background: var(--sock); border: 2px solid var(--ink);
  box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.6), inset -2px -2px 0 rgba(138, 127, 208, 0.22); }
.sock img { width: 70%; height: 70%; image-rendering: pixelated; }
.sock .n { position: absolute; right: 2px; bottom: 0; font-size: 14px; font-weight: 700; color: #fff; text-shadow: 1px 1px 0 var(--ink), 2px 2px 0 var(--ink); line-height: 1; }
.recipes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; margin: 12px 0 18px; max-width: none; }
.recipe { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(10, 7, 22, 0.45); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px rgba(74, 63, 128, 0.5); margin: 0; }
.recipe .grid { display: grid; grid-template-columns: repeat(3, 34px); grid-auto-rows: 34px; gap: 2px; flex: none; }
.recipe .grid .sock { width: 34px; height: 34px; }
.recipe img { display: block; width: 70%; height: 70%; border: 0; box-shadow: none; background: none; }
.recipe .arrow { width: 26px; height: 18px; flex: none; background: var(--gold-dark); clip-path: polygon(0 32%, 58% 32%, 58% 0, 100% 50%, 58% 100%, 58% 68%, 0 68%); }
.recipe .out { box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 210, 63, 0.55); }
.recipe figcaption { margin: 0; min-width: 0; font-size: 15px; line-height: 1.3; color: var(--soft); }
.recipe figcaption b { display: block; font-size: 17px; color: var(--gold); }
.recipe .grid.pot { grid-template-columns: repeat(3, 34px); }
.recipe .grid .sock.bowl { box-shadow: inset 3px 3px 0 rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(138, 127, 208, 0.45); }
.dish-fx { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }
.dish-fx img { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; image-rendering: pixelated; }
.effects { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; margin: 12px 0 18px; padding: 0; list-style: none; max-width: none; }
.effects li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 10px; background: rgba(10, 7, 22, 0.45); border: 3px solid var(--ink); }
.fx { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: var(--sock); border: 2px solid var(--gold); box-shadow: 0 0 0 2px var(--ink), inset 2px 2px 0 rgba(0, 0, 0, 0.55); margin: 2px; }
.fx img { width: 64%; height: 64%; image-rendering: pixelated; }
.effects li.bad .fx { border-color: var(--bad); clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%, 0 6px); }
.effects b { display: block; font-size: 18px; color: var(--gold); line-height: 1.2; }
.effects li.bad b { color: #ff9a85; }
.effects span { display: block; font-size: 15px; line-height: 1.35; color: var(--soft); }
.effects small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---------------------------------------------------------------- Keepers as portrait cards */
.portraits { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 14px 0 20px; padding: 0; list-style: none; }
.portrait { --c: var(--gold); display: flex; flex-direction: column; background: rgba(10, 7, 22, 0.5); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 55%, transparent), 0 4px 0 var(--ink); }
.portrait a { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 12 / 13; object-fit: cover; border-bottom: 3px solid var(--ink); }
.portrait .pt { padding: 8px 12px 12px; display: flex; flex-direction: column; gap: 2px; }
.portrait b { font-size: 19px; color: var(--c); line-height: 1.15; text-shadow: 2px 2px 0 var(--ink); }
.portrait span { font-size: 14.5px; color: var(--soft); line-height: 1.3; }
.portrait small { font-size: 13.5px; color: var(--muted); }
.portrait a:hover b { text-decoration: underline; }
.water { --c: var(--water); } .fire { --c: var(--fire); } .earth { --c: var(--earth); } .wind { --c: var(--wind); } .firstfolk { --c: var(--firstfolk); }

/* ---------------------------------------------------------------- The guides hub: one card per section */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 16px 0; }
.card { display: flex; flex-direction: column; background: rgba(10, 7, 22, 0.45); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px rgba(74, 63, 128, 0.5), 0 4px 0 var(--ink); }
.card .pic { border-width: 0 0 3px; box-shadow: none; aspect-ratio: 16 / 9; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .ct { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.card h2 { margin: 0; padding: 0; border: 0; box-shadow: none; font-size: 23px; display: flex; align-items: center; gap: 10px; }
.card h2 img { width: 26px; height: 26px; image-rendering: pixelated; }
.card h2 a { color: var(--gold); text-decoration: none; }
.card h2 a:hover { text-decoration: underline; }
.card p { margin: 0; font-size: 16px; color: var(--soft); }
.card ul { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.card li a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; font-size: 15px; color: #fff; text-decoration: none; background: linear-gradient(180deg, #2c2358, #1d1640); border: 2px solid var(--line); }
.card li a img { width: 22px; height: 22px; image-rendering: pixelated; }
.card li a:hover { border-color: var(--gold); color: var(--gold); }
.card.news { grid-column: 1 / -1; flex-direction: row; box-shadow: inset 0 0 0 2px rgba(255, 210, 63, 0.55), 0 4px 0 var(--ink); }
.card.news .pic { flex: 0 0 46%; border-width: 0 3px 0 0; }
.card.news .ct { justify-content: center; }

/* ---------------------------------------------------------------- Updates: the What's new card's rows */
.wn-v { display: flex; align-items: baseline; gap: 10px; margin: 2px 0 0; font-size: 16px; color: var(--muted); }
.wn-v b { font-size: 15px; font-weight: 700; color: #2a1600; background: var(--gold); padding: 0 7px; box-shadow: 0 0 0 2px var(--ink); }
.wn-lead { font-size: 21px; color: var(--gold); margin: 0 0 14px; text-shadow: 1px 1px 0 var(--ink); }
.wn-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 14px; padding: 0; list-style: none; }
.wn-row { display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: 16px; padding: 6px 14px 6px 6px;
  background: rgba(10, 7, 22, 0.45); border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px rgba(74, 63, 128, 0.5); }
.wn-row .pic { aspect-ratio: 16 / 9; overflow: hidden; }
.wn-row .pic img { width: 100%; height: 100%; object-fit: cover; }
.wn-row b { display: block; font-size: 20px; color: var(--gold); line-height: 1.15; text-shadow: 2px 2px 0 var(--ink); }
.wn-row b a { color: inherit; text-decoration: none; }
.wn-row b a:hover { text-decoration: underline; }
.wn-row span { display: block; margin-top: 3px; font-size: 15.5px; line-height: 1.35; color: var(--soft); }
.wn-also { display: flex; gap: 12px; align-items: baseline; margin: 0 0 18px; padding: 8px 14px; font-size: 15.5px; line-height: 1.4; color: #d8d0f0; border: 2px dashed rgba(138, 127, 208, 0.55); }
.wn-also > b { color: #fff; white-space: nowrap; }
.wn-also ul { margin: 0; padding-left: 18px; }
.older { margin: 10px 0; padding: 8px 14px; background: rgba(10, 7, 22, 0.35); border: 3px solid var(--ink); }
.older h2 { font-size: 20px; margin: 4px 0; padding: 0; border: 0; box-shadow: none; }

/* The big gold button */
.cta { margin: 26px 0 6px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta .btn { height: 52px; padding: 0 30px; font-size: 24px; }
.cta small { color: var(--muted); font-size: 15px; }

footer { max-width: 1180px; margin: 0 auto; padding: 18px 0 30px; font-size: 15px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 6px; }
footer a { color: var(--muted); }
footer p { margin: 6px 0 0; }

/* ---------------------------------------------------------------- Phones and narrow windows: the rail becomes a strip */
@media (max-width: 760px) {
  body { font-size: 17px; padding-inline: 8px; }
  .top { padding: 10px 6px; gap: 8px 12px; }
  .brand .word { height: 22px; } .brand .crest { width: 30px; height: 30px; }
  .top nav { display: none; } /* (the rail reaches every guide and Updates) */
  .top .btn { height: 34px; padding: 0 12px; font-size: 15px; }
  .jr { border-width: 3px; box-shadow: 0 0 0 3px var(--ink); }
  .jr-head { padding: 8px 12px; gap: 8px; flex-wrap: wrap; }
  .jr-head .jr-title { font-size: 21px; }
  .crumbs { font-size: 13px; }
  .jr-body { display: block; } /* (a block, so the strip below stays stuck to the top the whole way down) */
  .rail { border-right: 0; border-bottom: 3px solid var(--ink); position: sticky; top: 0; z-index: 3; background: #161033; }
  .rail ul { flex-direction: row; overflow-x: auto; padding: 8px; gap: 6px; scrollbar-width: none; position: static; }
  .rail li { flex: none; }
  .rail li.rail-h { display: none; }
  .rail li.sub .tab, .tab { margin: 0; min-height: 40px; padding: 2px 10px; font-size: 15px; box-shadow: 0 2px 0 var(--ink); }
  .rail li.gap { margin: 0 0 0 8px; }
  .tab img, .rail li.sub .tab img { width: 22px; height: 22px; }
  .page { padding: 14px 14px 24px; }
  h2 { font-size: 23px; margin-top: 28px; }
  h3 { font-size: 19px; }
  .lead { font-size: 18px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .intro .pic { order: -1; margin: 0 0 8px; }
  .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: 6px; }
  th, td { font-size: 15px; padding: 7px 9px; }
  .portraits { grid-template-columns: 1fr 1fr; gap: 8px; }
  .portrait b { font-size: 16px; } .portrait span { font-size: 13px; } .portrait .pt { padding: 6px 8px 8px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card.news { flex-direction: column; }
  .card.news .pic { flex: none; border-width: 0 0 3px; }
  .effects { grid-template-columns: minmax(0, 1fr); }
  .recipes { grid-template-columns: minmax(0, 1fr); }
  .wn-row { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 5px 8px 6px 5px; align-items: start; }
  .wn-row b { font-size: 17px; } .wn-row span { font-size: 14px; }
  .wn-also { flex-direction: column; gap: 2px; font-size: 14px; }
  .wn-lead { font-size: 18px; }
  .cta .btn { height: 46px; font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover, .btn:active { transform: none; } }
.wn-meta { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.cta { max-width: none; }

/* A script from the Scribestone's editor (the Scribestone guide) */
pre.code { margin: 10px 0 18px; padding: 12px 14px; overflow-x: auto; font: 14px/1.55 ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace; color: #f2edff; background: #100b24; border: 3px solid var(--ink); box-shadow: inset 0 0 0 2px rgba(138, 127, 208, 0.35), 0 4px 0 var(--ink); }

/* ---------------------------------------------------------------- The landing page (/, D249): the game is at /play/
   The first screen holds the name, one line, Play, the main guides and the latest update with no scrolling, at
   1366x768 and on a phone (the picture steps aside on a phone); the text below waits for whoever scrolls. */
.ld { max-width: 1180px; margin: 0 auto; }
.ld-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 28px; align-items: center; padding: 6px 0 18px; }
.ld h1 { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; font-size: 64px; line-height: 1; color: var(--gold); letter-spacing: 1px; text-shadow: 4px 4px 0 var(--ink), 0 0 26px rgba(255, 210, 63, 0.35); }
.ld h1 .crest { width: 56px; height: 56px; image-rendering: pixelated; flex: none; }
.ld-line { margin: 0 0 18px; font-size: 24px; line-height: 1.35; color: var(--soft); max-width: 30ch; }
.ld-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0; }
.ld-go .ld-play { height: 64px; padding: 0 54px; font-size: 32px; border-width: 4px; }
.ld-go small { color: var(--muted); font-size: 16px; }
.ld-hero .pic { margin: 0; border: 4px solid var(--line); box-shadow: 0 0 0 4px var(--ink), 0 14px 34px rgba(0, 0, 0, 0.5); line-height: 0; }
.ld-hero .pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ld-cards ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ld-cards a {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 8px; align-items: center; height: 100%; padding: 10px 12px; text-decoration: none;
  background: linear-gradient(180deg, var(--st-hi), var(--st-lo)); border: 3px solid var(--line); box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px var(--ink);
}
.ld-cards a:hover, .ld-cards a:focus-visible { border-color: var(--gold); }
.ld-cards img { width: 30px; height: 30px; image-rendering: pixelated; }
.ld-cards b { font-size: 18px; line-height: 1.15; color: var(--gold); }
.ld-cards span { grid-column: 1 / -1; font-size: 14px; line-height: 1.3; color: var(--muted); }
.ld-new { margin: 18px 0 0; }
.ld-new a { display: flex; align-items: center; gap: 14px; padding: 6px 14px 6px 6px; text-decoration: none; color: var(--soft); background: rgba(10, 7, 22, 0.45); border: 2px dashed rgba(255, 210, 63, 0.45); font-size: 16px; line-height: 1.35; }
.ld-new a:hover { border-color: var(--gold); color: var(--text); }
.ld-new img { width: 128px; height: 72px; object-fit: cover; flex: none; border: 2px solid var(--ink); }
.ld-new small { display: block; color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.ld-new b { color: #fff; margin-right: 8px; }
.ld-more { max-width: 820px; margin: 56px auto 0; padding: 22px 26px 18px; background: rgba(20, 15, 43, 0.9); border: 4px solid var(--line); box-shadow: 0 0 0 4px var(--ink); }
.ld-more h2 { margin: 6px 0 12px; color: var(--gold); font-size: 26px; line-height: 1.25; text-shadow: 3px 3px 0 var(--ink); }
.ld-more p { margin: 0 0 14px; }
.ld-links { padding-top: 10px; border-top: 2px solid #2c2358; color: var(--muted); font-size: 16px; }
@media (max-width: 1100px) { .ld-cards ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-height: 820px) and (min-width: 761px) {
  .ld-hero { padding: 0 0 12px; } .ld h1 { font-size: 54px; } .ld-line { font-size: 21px; margin-bottom: 14px; }
  .ld-hero .pic img { max-height: 250px; } .ld-new { margin-top: 12px; }
}
@media (max-width: 760px) {
  .ld-hero { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 2px 4px 14px; }
  .ld-hero .pic { display: none; } /* (the first screen is the words, Play and the guides; the picture is on the guides) */
  .ld h1 { font-size: 44px; gap: 10px; } .ld h1 .crest { width: 40px; height: 40px; }
  .ld-line { font-size: 19px; margin-bottom: 14px; }
  .ld-go .ld-play { height: 56px; padding: 0 40px; font-size: 28px; }
  .ld-go small { font-size: 14px; }
  .ld-cards ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ld-cards a { padding: 8px 10px; grid-template-columns: 24px minmax(0, 1fr); }
  .ld-cards img { width: 24px; height: 24px; }
  .ld-cards b { font-size: 16px; }
  .ld-cards span { display: none; } /* (names only on a phone: the first screen stays whole) */
  .ld-new { margin-top: 12px; }
  .ld-new a { font-size: 14px; gap: 10px; }
  .ld-new img { width: 96px; height: 54px; }
  .ld-new a > span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ld-more { margin-top: 36px; padding: 16px 14px 12px; border-width: 3px; }
  .ld-more h2 { font-size: 21px; }
}
/* (the landing's own name and Play stand right below: its bar keeps only Guides, Updates and About, and on a phone,
   where those sit in the cards, none) */
.landing .top .brand { visibility: hidden; }
.landing .top > .btn { display: none; }
@media (max-width: 760px) { .landing .top { display: none; } .landing .ld { padding-top: 12px; } }
