/* Heavy Metal. Contrast measured in tmp/heavy-metal/qa.json: cream and muted text on charcoal/paper; rose UI lines. */
body.heavy-metal.guide-v3{--bg:#10150e;--paper:#202a1b;--ink:#f3f4df;--muted:#d0d6bd;--line:#576447;--line-ui:#99ad75;--accent:#c2e781;--accent-ink:#121a0b;--bone:#f3f4df;background:var(--bg);color:var(--ink)}
body.heavy-metal.guide-v3 main{overflow:visible}body.heavy-metal.guide-v3 main section{display:block;max-width:1160px;margin:0 auto;padding:66px 28px;border-bottom:1px solid var(--line)}
body.heavy-metal.guide-v3 h1,body.heavy-metal.guide-v3 h2,body.heavy-metal.guide-v3 h3{color:var(--ink)}body.heavy-metal.guide-v3 p,body.heavy-metal.guide-v3 li{line-height:1.6}body.heavy-metal.guide-v3 a{color:var(--accent)}body.heavy-metal.guide-v3 li{margin:.65em 0}body.heavy-metal.guide-v3 figure{margin:0}body.heavy-metal.guide-v3 figcaption{font-size:.9rem;color:var(--muted);padding:14px 0}body.heavy-metal.guide-v3 img{max-width:100%;height:auto;display:block}body.heavy-metal.guide-v3 main details{background:var(--paper);border:1px solid var(--line-ui);padding:18px 22px;margin:22px 0}body.heavy-metal.guide-v3 summary{color:var(--ink);cursor:pointer;font-weight:700}
body.heavy-metal.guide-v3 .opening.cinematic{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:690px;margin:0;max-width:none;padding:70px 7vw;background:#10150e;overflow:hidden}body.heavy-metal.guide-v3 .opening .art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:62% 10%;z-index:-2;max-height:none;opacity:1}body.heavy-metal.guide-v3 .opening:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#10150eee 0%,#10150e88 43%,transparent 74%),linear-gradient(0deg,#10150e,transparent 40%);z-index:-1}body.heavy-metal.guide-v3 .opening .intro{position:relative;max-width:650px;background:none;padding:0;border:0;box-shadow:none}body.heavy-metal.guide-v3 .opening h1{font-size:clamp(3.2rem,6.6vw,6rem);line-height:.97;margin:.22em 0}body.heavy-metal.guide-v3 .opening .intro p{max-width:475px;color:#f3f4df}body.heavy-metal.guide-v3 .opening .kicker{color:#d7efa6;letter-spacing:.12em}body.heavy-metal.guide-v3 .shortcut{max-width:1160px;margin:0 auto;padding:24px;display:flex;flex-wrap:wrap;gap:12px}body.heavy-metal.guide-v3 .shortcut a{background:var(--paper);border:1px solid var(--line-ui);padding:8px 13px}
body.heavy-metal.guide-v3 .route-spread{display:grid;grid-template-columns:1.25fr 1fr;gap:38px;align-items:center}body.heavy-metal.guide-v3 .route-spread img{width:100%;object-position:53% 48%;border-radius:0}body.heavy-metal.guide-v3 .coffin-chapter{position:relative;margin:20px calc(50% - 50vw) 32px;width:100vw;max-width:none}body.heavy-metal.guide-v3 .coffin-chapter img{width:100%;height:420px;object-fit:cover;object-position:50% 53%;max-height:none}body.heavy-metal.guide-v3 .coffin-chapter figcaption{position:absolute;bottom:0;left:0;right:0;padding:32px max(28px,calc((100vw - 1104px)/2));color:white;background:linear-gradient(transparent,#10150eed)}
body.heavy-metal.guide-v3 .mode-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}body.heavy-metal.guide-v3 .mode-columns article{border-top:3px solid var(--accent);padding-top:10px}body.heavy-metal.guide-v3 .mode-columns ul{padding-left:20px}body.heavy-metal.guide-v3 .stack-spread{display:grid;grid-template-columns:1fr 1.15fr;gap:34px;align-items:center}body.heavy-metal.guide-v3 .stack-spread img{width:100%;object-position:50% 52%}body.heavy-metal.guide-v3 .shot-map__side article{background:var(--paper);border-color:var(--line-ui)}body.heavy-metal.guide-v3 .shot-map__side h3{font-size:1.1rem}body.heavy-metal.guide-v3 .shot-map__field figcaption{max-width:540px}body.heavy-metal.guide-v3 footer{padding:35px;text-align:center;color:var(--muted)}
body.heavy-metal.guide-v3 .term-link{color:inherit!important}body.heavy-metal.guide-v3 .term-link:hover,body.heavy-metal.guide-v3 .term-link:focus{background:#f3f4df!important;color:#121a0b!important}body.heavy-metal.guide-v3 .compact-library-nav,body.heavy-metal.guide-v3 .all-tables-panel{background:#10150e;color:#f3f4df}body.heavy-metal.guide-v3 .all-tables-panel{max-height:72vh;overflow:auto}body.heavy-metal.guide-v3 .all-tables-panel a{color:#f3f4df}body.heavy-metal.guide-v3 .guide-reader-bar,body.heavy-metal.guide-v3 .guide-reader-menu{background:#10150e!important;color:#f3f4df!important}body.heavy-metal.guide-v3 .guide-reader-bar a,body.heavy-metal.guide-v3 .guide-reader-bar summary{color:#f3f4df!important}body.heavy-metal.guide-v3 .guide-reader-menu a:hover,body.heavy-metal.guide-v3 .guide-reader-menu a[aria-current]{background:#f3f4df!important;color:#10150e!important}
@media(max-width:1100px){body.heavy-metal.guide-v3 .mode-columns{grid-template-columns:1fr}body.heavy-metal.guide-v3 .opening.cinematic{min-height:590px}body.heavy-metal.guide-v3 .route-spread,body.heavy-metal.guide-v3 .stack-spread{gap:24px}body.heavy-metal.guide-v3 .shot-map__field{max-width:100%}}
@media(max-width:700px){body.heavy-metal.guide-v3 main section{padding:40px 20px}body.heavy-metal.guide-v3 .opening.cinematic{display:block;padding:0 0 30px;min-height:0}body.heavy-metal.guide-v3 .opening .art{position:relative;inset:auto;height:auto;width:100%;object-fit:contain}body.heavy-metal.guide-v3 .opening:after{display:none}body.heavy-metal.guide-v3 .opening .intro{padding:24px 20px 0}body.heavy-metal.guide-v3 .opening h1{font-size:3.4rem}body.heavy-metal.guide-v3 .route-spread,body.heavy-metal.guide-v3 .stack-spread{grid-template-columns:1fr}body.heavy-metal.guide-v3 .coffin-chapter img{height:300px}body.heavy-metal.guide-v3 .coffin-chapter figcaption{padding:30px 20px 16px}body.heavy-metal.guide-v3 .shot-map{gap:20px}body.heavy-metal.guide-v3 .shot-map__field{grid-row:1}body.heavy-metal.guide-v3 .compact-library-nav{gap:12px;flex-wrap:wrap}}

body.heavy-metal.guide-v3 main{max-width:none;padding:0;margin:0;width:100%}body.heavy-metal.guide-v3 .opening.cinematic{width:100%;margin-left:0}body.heavy-metal.guide-v3 .opening.cinematic .art{margin:0;max-width:none;transform:none}body.heavy-metal.guide-v3 .opening.cinematic .intro{margin:0;text-align:left;width:100%}body.heavy-metal.guide-v3 .opening.cinematic h1 br{display:block}body.heavy-metal.guide-v3 .opening.cinematic p:not(.kicker){margin:0 0 18px}body.heavy-metal.guide-v3 .opening.cinematic h1{letter-spacing:-1px}

body.heavy-metal.guide-v3 .compact-library-nav .all-tables{margin:0;padding:0;border:0;background:none}@media(max-width:700px){body.heavy-metal.guide-v3 .compact-library-nav{display:grid;grid-template-columns:1fr 1fr 1fr;padding:20px;gap:18px;font-size:13px}body.heavy-metal.guide-v3 .compact-library-nav .guide-home{grid-column:1/-1}body.heavy-metal.guide-v3 .compact-library-nav .all-tables-panel{position:fixed;left:12px;right:12px;top:120px;width:auto;max-width:none}}
body.heavy-metal.guide-v3 .shot-map__field figcaption a{display:inline!important}
/* WCAG contrast, measured with linearized sRGB: ink bg17.79/paper15.81; muted11.69/10.39; accent9.24/8.21; UI line6.12/5.44. */

body.heavy-metal.guide-v3 .opening .art{object-position:50% 0%}body.heavy-metal.guide-v3 .route-spread img{object-position:52% 45%}body.heavy-metal.guide-v3 .coffin-chapter img{object-position:50% 45%}

/* Generated character cutouts, preserved alpha. */
body.heavy-metal.guide-v3 .character-spread{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(230px,.7fr);gap:clamp(28px,5vw,64px);align-items:center}
body.heavy-metal.guide-v3 .character-copy{min-width:0}
body.heavy-metal.guide-v3 .character-art{margin:0 auto;width:100%;max-width:320px;background:none}
body.heavy-metal.guide-v3 .character-art img{width:100%;height:auto;max-height:500px;object-fit:contain;filter:drop-shadow(0 10px 22px #0007)}
body.heavy-metal.guide-v3 .character-art figcaption{text-align:center;font:700 12px/1.4 Arial,sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);padding:8px 0}
body.heavy-metal.guide-v3 #survival .character-art{grid-column:1;grid-row:1;max-width:280px}
body.heavy-metal.guide-v3 #survival .character-copy{grid-column:2;grid-row:1}
body.heavy-metal.guide-v3 #survival .character-spread{grid-template-columns:minmax(230px,.65fr) minmax(0,1.4fr)}
@media(max-width:700px){body.heavy-metal.guide-v3 .character-spread,body.heavy-metal.guide-v3 #survival .character-spread{grid-template-columns:1fr;gap:20px}body.heavy-metal.guide-v3 .character-art{max-width:225px}body.heavy-metal.guide-v3 .character-art img{max-height:350px}body.heavy-metal.guide-v3 #survival .character-copy,body.heavy-metal.guide-v3 #survival .character-art{grid-column:1;grid-row:auto}body.heavy-metal.guide-v3 #survival .character-art{max-width:210px}}

/* User-approved replacement paintings retain rider, sword and bird. */
body.heavy-metal.guide-v3 li::marker{color:var(--ink)}
body.heavy-metal.guide-v3 #points .stack-spread{grid-template-columns:1fr 1fr;align-items:center}
body.heavy-metal.guide-v3 #points .stack-spread img{height:auto;max-height:none;object-fit:contain;width:100%}
body.heavy-metal.guide-v3 .opening .art{object-position:50% 0%}
body.heavy-metal.guide-v3 #objective .character-art{max-width:360px}
body.heavy-metal.guide-v3 #objective .character-art img{width:100%;height:440px;max-height:none;object-fit:cover;object-position:40% 32%;border:1px solid var(--line);filter:none}
@media(max-width:700px){body.heavy-metal.guide-v3 #points .stack-spread{grid-template-columns:1fr}body.heavy-metal.guide-v3 #objective .character-art{max-width:280px}body.heavy-metal.guide-v3 #objective .character-art img{height:350px}}
