.retro-wiki .portal-welcome p,.retro-wiki .portal-guide-grid>a span,.retro-article p{font-size:1rem;line-height:1.6}
.retro-wiki .portal-guide-grid>a strong{font-size:1.125rem}
.retro-character-grid,.retro-picture-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.retro-character{border:1px solid var(--line,#484238);background:var(--surface);overflow:hidden;min-width:0}
.retro-character>div{padding:14px}
.retro-character h3{font-size:1.125rem;margin:8px 0}
.retro-character p{font-size:1rem;line-height:1.6;margin:8px 0}
.retro-character small{font-size:.875rem;color:var(--gold)}
.retro-character .retro-caption,.retro-caption{font-size:.875rem;color:var(--muted,#cbc6b9)}
.retro-picture{display:block;background:#151515;padding:12px}
.retro-picture img{display:block;width:100%;height:180px;object-fit:contain;margin:0}
.retro-hero{max-width:760px;margin:18px auto}
.retro-hero .retro-picture{padding:8px}
.retro-hero .retro-picture img{height:auto;max-height:360px;object-fit:contain}
.retro-picture-grid figure{margin:0;min-width:0;border:1px solid var(--line,#484238);background:var(--surface)}
.retro-picture-grid .retro-picture{padding:8px}
.retro-picture-grid figcaption{font-size:.875rem;line-height:1.5;padding:12px;overflow-wrap:anywhere}
.retro-wiki .portal-about .retro-picture img{height:220px;max-height:220px}
.retro-wiki .portal-about .retro-picture{margin-bottom:12px}
.retro-article{min-width:0}
.retro-article .toc a{overflow-wrap:anywhere}
.retro-article h1{font-size:clamp(1.5rem,3vw,2.2rem);line-height:1.25;overflow-wrap:anywhere}
.retro-article .article-section{scroll-margin-top:16px}
.retro-guide-figure{float:right;width:38%;max-width:240px;margin:8px 0 16px 22px;border:1px solid var(--line,#484238);background:var(--surface)}
.retro-guide-figure figcaption{padding:10px 12px;font-size:.875rem;line-height:1.5;overflow-wrap:anywhere}
.retro-article .article-section:has(>.retro-guide-figure){display:flow-root}
.retro-reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.retro-reference-entry{min-width:0;border:1px solid var(--line,#484238);background:var(--surface);overflow:hidden;scroll-margin-top:20px}
.retro-reference-entry>div{padding:14px}
.retro-reference-entry h3{font-size:1.125rem;margin:0 0 10px}
.retro-reference-entry p{margin:8px 0}
.retro-reference-entry .retro-picture img{image-rendering:pixelated}
.retro-picture img.retro-game-pixels{image-rendering:pixelated}
/* Give original monochrome Game Boy sprites enough contrast to read. */
[data-game="super-mario-land-2"] .retro-picture,[data-game="wario-land"] .retro-picture{background:#e7e5d5}
[data-game="super-mario-land-2"] .retro-picture img,[data-game="wario-land"] .retro-picture img{image-rendering:pixelated}
@media(max-width:650px){.retro-reference-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.retro-guide-figure{float:none;width:100%;max-width:360px;margin:12px auto 18px}}
@media(max-width:600px){.retro-character-grid,.retro-picture-grid{grid-template-columns:minmax(0,1fr)}.retro-picture img{height:190px}.retro-wiki .portal-welcome{padding:14px}.retro-wiki .portal-jump{flex-wrap:wrap}}

/* Quick answers: cheat codes, where to find and how to unlock. */
.quick-answer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:10px}
.quick-answer-grid>a{padding:12px;background:var(--bg);border:1px solid var(--line);display:flex;flex-direction:column;gap:8px;text-decoration:none;color:inherit}
.quick-answer-grid>a:hover,.quick-answer-grid>a:focus-visible{border-color:currentColor}
.quick-answer-grid small{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:var(--muted)}
.quick-answer-grid strong{font-size:1.125rem;line-height:1.4}
.quick-answer-grid span{font-size:1rem;line-height:1.5;color:var(--muted);margin-top:auto}
.quick-answer-links{margin:24px 0;padding:14px 16px;border:1px solid var(--line);background:var(--bg)}
.quick-answer-links h2{font-size:1rem;margin:0 0 8px}
.quick-answer-links a{display:block;padding:6px 0;line-height:1.4}

/* Compact, table-led reference pages, following the Black Ops wiki structure. */
.retro-compact{min-width:0}
.retro-compact .lead{font-size:.95rem;line-height:1.55;margin:10px 0 16px}
.retro-compact .portal-page-title span{font-size:.8rem;color:var(--muted)}
.retro-table-wrap{max-width:100%;overflow-x:auto;margin:12px 0 18px;border:1px solid var(--line);border-radius:3px}
.retro-table-wrap:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.retro-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:.85rem;line-height:1.5;text-align:left}
.retro-table caption{text-align:left;padding:9px 12px;background:var(--surface);font-size:.75rem;letter-spacing:.025em;color:var(--muted);border-bottom:1px solid var(--line)}
.retro-table th,.retro-table td{padding:11px 12px;vertical-align:top;overflow-wrap:anywhere;border-bottom:1px solid var(--line)}
.retro-table thead th{background:var(--surface);font-size:.75rem;text-transform:uppercase;letter-spacing:.03em;color:var(--gold)}
.retro-table tbody th{font-weight:600;color:var(--text,#e5e1d6)}
.retro-table tbody tr:nth-child(even){background:color-mix(in srgb,var(--surface) 65%,transparent)}
.retro-table tbody tr:last-child>*{border-bottom:0}
.retro-table th:first-child{width:29%}
.retro-guide-link{display:flex;align-items:center;gap:10px;text-decoration:none}
.retro-guide-link img{display:block;width:100px;height:64px;flex-shrink:0;object-fit:contain;background:#141414}
.retro-guide-link strong{font-size:.86rem;line-height:1.4}
.retro-compact #guides .retro-table th:first-child{width:42%}
.retro-compact .portal-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.retro-compact .portal-heading>a{font-size:.75rem;font-weight:400;text-transform:none;letter-spacing:0}
.retro-compact .article-section>p{font-size:.9rem;line-height:1.55}
.retro-compact .article-section:after{content:"";display:block;clear:both}
.retro-compact .article-section .retro-table-wrap{clear:both}
.retro-compact .retro-guide-figure{width:220px;margin:0 0 12px 18px}
.retro-compact .retro-guide-figure .retro-picture{padding:6px}
.retro-compact .retro-guide-figure .retro-picture img{height:120px;image-rendering:auto}
.retro-compact .retro-guide-figure figcaption{font-size:.72rem;padding:8px}
.retro-compact .retro-picture img{image-rendering:auto}
.retro-compact .edition-scope{padding:10px 12px;margin:12px 0;border:1px solid var(--line);font-size:.8rem}
.retro-compact .edition-scope summary{cursor:pointer;font-weight:600}
.retro-compact .edition-scope p{font-size:.82rem;line-height:1.5;margin-bottom:0}
.retro-compact .portal-about .retro-table{font-size:.77rem}
.retro-compact .portal-about .retro-table th:first-child{width:38%}
.retro-compact .portal-about .retro-table th,.retro-compact .portal-about .retro-table td{padding:8px}
.retro-compact .retro-edition{font-size:.8rem;line-height:1.55}
@media(max-width:650px){
 .retro-compact .retro-table{font-size:.78rem}
 .retro-compact .retro-table th,.retro-compact .retro-table td{padding:9px 8px}
 .retro-compact .retro-table thead th{font-size:.68rem}
 .retro-compact .retro-guide-link{display:block}
 .retro-compact .retro-guide-link img{width:100%;height:72px;margin-bottom:7px}
 .retro-compact #guides .retro-table th:first-child{width:37%}
 .retro-compact .retro-guide-figure{float:none;width:100%;max-width:360px;margin:12px auto}
 .retro-compact .retro-guide-figure .retro-picture img{height:auto;max-height:200px}
}
