/* Guide pages (tools/build-site.mjs): the game's night palette, readable text, no scripts. */
@font-face { font-family: 'Pixelify Sans'; font-weight: 400; font-display: swap; src: url(/guide/pixelify-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Pixelify Sans'; font-weight: 700; font-display: swap; src: url(/guide/pixelify-sans-latin-700-normal.woff2) format('woff2'); }
:root {
  --night: #0b1430; --navy: #173452; --panel: rgba(16, 32, 66, .82); --line: rgba(160, 196, 255, .28);
  --text: #eaf2ff; --muted: #a9bddf; --gold: #ffd45a; --cyan: #7fe3ff; --violet: #2a1450;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 17px/1.55 'Pixelify Sans', system-ui, sans-serif;
  background: radial-gradient(ellipse at 70% -10%, rgba(127, 227, 255, .14), transparent 55%), radial-gradient(ellipse at 10% 110%, rgba(91, 45, 160, .35), transparent 60%), linear-gradient(180deg, #0d1838, var(--night) 40%, #080b1c);
  background-attachment: fixed;
}
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover, a:focus-visible { color: #fff; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 44px); color: #fff; text-shadow: 0 2px 0 #0b1330, 0 0 18px rgba(127, 208, 255, .35); }
h1 small { font-size: .5em; color: var(--muted); font-weight: 400; }
h2 { font-size: 24px; color: var(--gold); margin-top: 1.6em; }
h3 { font-size: 18px; color: var(--muted); margin-top: 1.2em; }
img.portrait, .portrait.is-empty { width: 40px; height: 40px; image-rendering: pixelated; border-radius: 6px; background: rgba(6, 12, 30, .8); border: 1px solid var(--line); flex-shrink: 0; display: inline-block; }
img.portrait.big, .portrait.big.is-empty { width: 80px; height: 80px; border-radius: 10px; border: 2px solid rgba(255, 212, 90, .6); }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px max(16px, calc(50% - 520px)); border-bottom: 1px solid var(--line); background: rgba(6, 12, 30, .55); }
.brand img { display: block; width: 120px; height: auto; }
.top-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.top-nav a { color: var(--text); text-decoration: none; }
.top-nav a:hover { color: var(--gold); }
.play { display: inline-block; padding: 6px 16px; border-radius: 8px; color: #2b2210 !important; text-decoration: none; font-weight: 700; background: linear-gradient(180deg, #ffe38a, var(--gold)); border: 1px solid #fff3c4; box-shadow: 0 0 14px rgba(255, 212, 90, .3); }
.play:hover { background: linear-gradient(180deg, #fff0b8, #ffdc70); }
.play.big { font-size: 20px; padding: 10px 24px; }
.crumbs { padding: 12px max(16px, calc(50% - 520px)) 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 8px; opacity: .6; }
main { padding: 8px max(16px, calc(50% - 520px)) 32px; }
.intro p { max-width: 70ch; }
.hint { color: var(--muted); font-size: 15px; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.card a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; height: 100%; }
.card a:hover { border-color: var(--gold); }
.card-text { display: flex; flex-direction: column; }
.card-text strong { color: #fff; font-size: 19px; }
.card-text span { color: var(--muted); font-size: 14px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 0 0 16px; }
.facts div { padding: 10px 14px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; color: #fff; }
.boss-row { display: flex; gap: 16px; flex-wrap: wrap; }
.boss { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--gold); }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.list li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 10px; border-radius: 8px; background: var(--panel); border: 1px solid transparent; }
.list li:hover { border-color: var(--line); }
.list a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; min-width: 180px; }
.list .meta { color: var(--muted); margin-left: auto; font-size: 15px; }
.types { display: inline-flex; gap: 6px; margin: 0; }
.type { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 13px; color: #fff; background: #68707e; text-shadow: 0 1px 0 rgba(0, 0, 0, .45); }
.type-normal { background: #8a8a64; } .type-fire { background: #d8661e; } .type-water { background: #4f7bd8; } .type-electric { background: #c9a70f; }
.type-grass { background: #4f9b3a; } .type-ice { background: #4aa7a7; } .type-fighting { background: #b0301f; } .type-poison { background: #8c3d91; }
.type-ground { background: #b08f3e; } .type-flying { background: #7d6fd0; } .type-psychic { background: #d9446f; } .type-bug { background: #859614; }
.type-rock { background: #9a8530; } .type-ghost { background: #5d4a85; } .type-dragon { background: #5b30d6; } .type-dark { background: #5a463a; }
.type-steel { background: #7f8aa6; } .type-fairy { background: #c86e8c; }

.items { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.items li { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.item-icon { width: 16px; height: 16px; zoom: 2; image-rendering: pixelated; background-repeat: no-repeat; flex-shrink: 0; }

.dex { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.dex a { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; background: var(--panel); color: #fff; text-decoration: none; font-size: 15px; border: 1px solid transparent; }
.dex a:hover { border-color: var(--gold); }

.species-head { display: flex; gap: 18px; align-items: center; margin: 8px 0 16px; }
.species-head h1 { margin: 0; }
.subtitle { margin: 0; color: var(--muted); }
.stats { border-collapse: collapse; width: min(100%, 560px); }
.stats th { text-align: left; font-weight: 400; color: var(--muted); padding: 3px 12px 3px 0; white-space: nowrap; }
.stats td { padding: 3px 12px 3px 0; text-align: right; width: 3em; }
.stats td.bar { width: 65%; text-align: left; }
.stats .bar span { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--cyan), var(--gold)); }
.stats .total th, .stats .total td { color: #fff; border-top: 1px solid var(--line); padding-top: 6px; }
.abilities dt { color: #fff; margin-top: 8px; }
.abilities dd { margin: 0; color: var(--muted); }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.foot { padding: 24px max(16px, calc(50% - 520px)) 40px; border-top: 1px solid var(--line); background: rgba(6, 12, 30, .55); }
.disclaimer { color: var(--muted); font-size: 13px; max-width: 90ch; }
@media (max-width: 560px) {
  body { font-size: 16px; }
  .list .meta { margin-left: 50px; width: 100%; }
  .top-nav { gap: 12px; }
}
