/* Masters of the Universe CE. Eternia night purple, Grayskull green, Power Sword gold.
   Loads after guide-v3.css and the shared sheets on purpose: these body.motu rules must override the shared
   guide-v3 layout, as heavy-metal-theme.css does.
   WCAG contrast, linearized sRGB, on bg #140c22 / paper #22163a: ink 17.03/15.14; muted 11.82/10.50;
   accent 12.29/10.92; gold 11.32/10.06; UI line 6.04/5.37. */
body.motu.guide-v3{--bg:#140c22;--bg-glow:#2d1650;--paper:#22163a;--ink:#f6f0ff;--muted:#d4c6ea;--line:#4a3a6a;--line-ui:#9d86c8;--accent:#9ee35a;--accent-ink:#0f1a06;--bone:#f6e7b8;--gold:#f2c14e;--gold-shadow:#5a2a0a;--castle:#7fdc4a;--ripper:#f2d14e;--heman:#ff5a4f;--gold-glow:#f2c14e55;--measure:1160px;--measure-inner:1104px;--fade:#140c22f0;--fade-mid:#140c2299;background:var(--bg);color:var(--ink)}
/* Sections stay one flat color so the character paintings (painted on --bg) blend in; the glow lives in the opening only. */
body.motu.guide-v3 .shortcut{background:radial-gradient(ellipse at 50% 0%,var(--bg-glow) 0%,transparent 70%)}
body.motu.guide-v3 main{max-width:none;padding:0;margin:0;width:100%;overflow:visible}
body.motu.guide-v3 main section{display:block;max-width:var(--measure);margin:0 auto;padding:66px 28px;border-bottom:1px solid var(--line)}
body.motu.guide-v3 h3{color:var(--ink)}
body.motu.guide-v3 h2{color:var(--gold);letter-spacing:.02em}
body.motu.guide-v3 p,body.motu.guide-v3 li{line-height:1.6}
body.motu.guide-v3 a{color:var(--accent)}
body.motu.guide-v3 li{margin:.6em 0}body.motu.guide-v3 li::marker{color:var(--gold)}
body.motu.guide-v3 figure{margin:0}
body.motu.guide-v3 figcaption{font-size:.92rem;color:var(--muted);padding:14px 0}
body.motu.guide-v3 figcaption strong{display:block;color:var(--gold);font-size:1rem;margin-bottom:4px}
body.motu.guide-v3 img{max-width:100%;height:auto;display:block}
body.motu.guide-v3 main details{background:var(--paper);border:1px solid var(--line-ui);padding:18px 22px;margin:22px 0}
body.motu.guide-v3 summary{color:var(--ink);cursor:pointer;font-weight:700}

/* Opening: Codex hero with Grok motion. He-Man center-left, Grayskull right; the title holds the quiet left sky. */
body.motu.guide-v3 .opening.cinematic{position:relative;isolation:isolate;display:flex;align-items:flex-end;min-height:700px;width:100%;margin:0;max-width:none;padding:70px 7vw;background:var(--bg);overflow:hidden}
body.motu.guide-v3 .opening .hero-motion{position:absolute;inset:0;margin:0;z-index:-2}
body.motu.guide-v3 .opening .hero-motion .art,body.motu.guide-v3 .opening .hero-motion video{position:absolute;inset:0;width:100%;height:100%;max-height:none;max-width:none;margin:0;transform:none;object-fit:cover;object-position:62% 22%}
body.motu.guide-v3 .opening .hero-motion button{top:auto;bottom:18px;left:auto;right:22px;transform:none}
body.motu.guide-v3 .opening:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,var(--fade) 0%,var(--fade-mid) 38%,transparent 66%),linear-gradient(0deg,var(--bg),transparent 42%);z-index:-1}
body.motu.guide-v3 .opening .intro{position:relative;max-width:640px;background:none;padding:0;border:0;box-shadow:none;margin:0;text-align:left;width:100%}
body.motu.guide-v3 .opening h1{font-size:clamp(3rem,6.4vw,5.8rem);line-height:.95;margin:.2em 0;letter-spacing:-1px;color:var(--gold);text-shadow:0 3px 0 var(--gold-shadow),0 0 28px var(--gold-glow)}
body.motu.guide-v3 .opening .intro p{max-width:480px;color:var(--ink)}
body.motu.guide-v3 .opening.cinematic p:not(.kicker){margin:0 0 18px}
body.motu.guide-v3 .opening .kicker{color:var(--accent);letter-spacing:.14em;text-transform:uppercase}

body.motu.guide-v3 .shortcut{max-width:var(--measure);margin:0 auto;padding:24px;display:flex;flex-wrap:wrap;gap:10px}
body.motu.guide-v3 .shortcut a{background:var(--paper);border:1px solid var(--line-ui);padding:8px 13px;color:var(--ink)}

/* Three shots, three columns of modes. */
body.motu.guide-v3 .shot-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin:26px 0}
body.motu.guide-v3 .shot-columns article{background:var(--paper);border:1px solid var(--line);border-top:4px solid var(--c,var(--accent));padding:16px 18px}
body.motu.guide-v3 .shot-columns h3{margin:.1em 0 .5em;font-size:1.15rem}
body.motu.guide-v3 .shot-columns ul{padding-left:20px;margin:0}
body.motu.guide-v3 .shot-columns .toggle{color:var(--muted);font-size:.92rem;margin:.8em 0 0}
body.motu.guide-v3 .c-castle{--c:var(--castle)}body.motu.guide-v3 .c-ripper{--c:var(--ripper)}body.motu.guide-v3 .c-heman{--c:var(--heman)}

/* First game: the whole 3:2 painting beside the numbered route. */
body.motu.guide-v3 .route-spread{display:grid;grid-template-columns:1.15fr 1fr;gap:40px;align-items:center;margin-bottom:26px}
body.motu.guide-v3 .route-spread img{width:100%}
body.motu.guide-v3 .route-spread .feature-motion{margin-bottom:0}
body.motu.guide-v3 .route-spread .feature-motion button,body.motu.guide-v3 .finale-wide .feature-motion button{position:absolute;bottom:12px;right:12px;z-index:3;margin:0}
/* Multiball: full-bleed strip, keeping He-Man's face and the Roton in the band. */
body.motu.guide-v3 .bleed-chapter{position:relative;margin:24px calc(50% - 50vw) 34px;width:100vw;max-width:none}
body.motu.guide-v3 .bleed-chapter .feature-motion{margin-bottom:0}
body.motu.guide-v3 .bleed-chapter img,body.motu.guide-v3 .bleed-chapter video{width:100%;height:460px;max-height:none;object-fit:cover;object-position:50% 40%}
body.motu.guide-v3 .bleed-chapter figcaption{position:absolute;bottom:0;left:0;right:0;padding:36px max(28px,calc((100vw - var(--measure-inner))/2));color:var(--ink);background:linear-gradient(transparent,var(--fade))}
body.motu.guide-v3 .bleed-chapter .feature-motion button{position:absolute;top:16px;right:22px;z-index:3}
/* Finale: the collection painting is dense with figures, so it runs as wide as the screen allows, uncropped. */
body.motu.guide-v3 .finale-wide{width:min(100vw,1600px);margin:24px 0 28px calc(50% - min(50vw,800px));max-width:none}
body.motu.guide-v3 .finale-wide .feature-motion{margin-bottom:0}
body.motu.guide-v3 .finale-wide img,body.motu.guide-v3 .finale-wide video{width:100%;height:auto;max-height:none;object-fit:contain}
body.motu.guide-v3 .finale-wide figcaption{max-width:var(--measure-inner);margin:0 auto;padding:14px 28px}
body.motu.guide-v3 .finale-copy{max-width:760px}
body.motu.guide-v3 .feature-motion button{background:var(--bg);border-color:var(--gold);color:var(--ink)}

body.motu.guide-v3 .mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px}
body.motu.guide-v3 .mode-grid article{border-left:3px solid var(--gold);padding:2px 0 2px 16px}
body.motu.guide-v3 .mode-grid h3{margin:.1em 0 .3em;font-size:1.1rem}
body.motu.guide-v3 .mode-grid p{margin:.3em 0}
body.motu.guide-v3 .mode-list{columns:2;column-gap:32px;padding-left:20px}
body.motu.guide-v3 .mode-list li{break-inside:avoid;margin:.3em 0}

body.motu.guide-v3 .shot-map__side article{background:var(--paper);border-color:var(--line-ui)}
body.motu.guide-v3 .shot-map__side h3{font-size:1.08rem}
body.motu.guide-v3 .shot-map__field figcaption{max-width:560px}
body.motu.guide-v3 .shot-map__field figcaption a{display:inline!important}
body.motu.guide-v3 footer{padding:35px;text-align:center;color:var(--muted)}

body.motu.guide-v3 .term-link{color:inherit!important}
body.motu.guide-v3 .term-link:hover,body.motu.guide-v3 .term-link:focus{background:var(--bone)!important;color:var(--bg)!important}
body.motu.guide-v3 .compact-library-nav,body.motu.guide-v3 .all-tables-panel{background:var(--bg);color:var(--ink)}
body.motu.guide-v3 .compact-library-nav .all-tables{margin:0;padding:0;border:0;background:none}
body.motu.guide-v3 .all-tables-panel{max-height:72vh;overflow:auto}
body.motu.guide-v3 .all-tables-panel a{color:var(--ink)}
body.motu.guide-v3 .guide-reader-bar,body.motu.guide-v3 .guide-reader-menu{background:var(--bg)!important;color:var(--ink)!important}
body.motu.guide-v3 .guide-reader-bar a,body.motu.guide-v3 .guide-reader-bar summary{color:var(--ink)!important}
body.motu.guide-v3 .guide-reader-menu a:hover,body.motu.guide-v3 .guide-reader-menu a[aria-current]{background:var(--ink)!important;color:var(--bg)!important}

/* Tablet and cabinet-portrait widths: stack the opening so the title never covers He-Man. */
@media(max-width:1100px){
body.motu.guide-v3 .shot-columns{grid-template-columns:1fr}
body.motu.guide-v3 .shot-map__field{max-width:100%}
body.motu.guide-v3 .opening.cinematic{display:block;padding:0 0 30px;min-height:0}
body.motu.guide-v3 .opening .hero-motion{position:relative;inset:auto}
body.motu.guide-v3 .opening .hero-motion .art{position:relative;height:auto;object-fit:contain}
body.motu.guide-v3 .opening .hero-motion video{object-fit:contain}
body.motu.guide-v3 .opening:after{display:none}
body.motu.guide-v3 .opening .intro{padding:28px 28px 0;max-width:760px}
body.motu.guide-v3 .opening .intro p{max-width:640px}}
@media(max-width:700px){
body.motu.guide-v3 main section{padding:40px 20px}
body.motu.guide-v3 .opening .intro{padding:24px 20px 0}
body.motu.guide-v3 .opening h1{font-size:3.1rem}
body.motu.guide-v3 .opening .hero-motion button{bottom:10px;right:10px}
body.motu.guide-v3 .route-spread,body.motu.guide-v3 .mode-grid{grid-template-columns:1fr;gap:22px}
body.motu.guide-v3 .finale-wide figcaption{padding:12px 20px}
body.motu.guide-v3 .mode-list{columns:1}
body.motu.guide-v3 .bleed-chapter img,body.motu.guide-v3 .bleed-chapter video{height:300px}
body.motu.guide-v3 .bleed-chapter figcaption{padding:30px 20px 16px}
body.motu.guide-v3 .shot-map{gap:20px}body.motu.guide-v3 .shot-map__field{grid-row:1}
body.motu.guide-v3 .compact-library-nav{display:grid;grid-template-columns:1fr 1fr 1fr;padding:20px;gap:18px;font-size:13px}
body.motu.guide-v3 .compact-library-nav .guide-home{grid-column:1/-1}
body.motu.guide-v3 .compact-library-nav .all-tables-panel{position:fixed;left:12px;right:12px;top:120px;width:auto;max-width:none}}

/* Character columns: Codex paintings on --bg, animated by Grok. Text keeps document order; sides alternate. */
body.motu.guide-v3 .motu-cast{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,.85fr);gap:clamp(24px,4vw,56px);align-items:center}
body.motu.guide-v3 .motu-cast--left{grid-template-columns:minmax(220px,.85fr) minmax(0,1.5fr)}
body.motu.guide-v3 .motu-cast--left .motu-cast__art{grid-column:1;grid-row:1}
body.motu.guide-v3 .motu-cast--left .motu-cast__copy{grid-column:2;grid-row:1}
body.motu.guide-v3 .motu-cast__copy{min-width:0}
/* Bespoke Codex frames: the media fills the frame's measured transparent opening; the frame overlays its edges. */
body.motu.guide-v3 .motu-cast__art{position:relative;width:100%;max-width:440px;justify-self:center;aspect-ratio:2/3}
body.motu.guide-v3 .motu-cast__art img,body.motu.guide-v3 .motu-cast__art video{position:absolute;left:calc(var(--open-x) - 1%);top:calc(var(--open-y) - 1%);width:calc(var(--open-w) + 2%);height:calc(var(--open-h) + 2%);object-fit:cover;object-position:50% 45%;background:var(--bg)}
body.motu.guide-v3 .motu-cast__art::after{content:"";position:absolute;inset:0;background:var(--frame) center/100% 100% no-repeat;pointer-events:none;z-index:2}
body.motu.guide-v3 .motu-frame--grayskull{--frame:url("assets/characters/masters-of-the-universe-v1/frame-grayskull.webp");--open-x:14.45%;--open-y:14.71%;--open-w:71.29%;--open-h:68.16%}
@media(max-width:900px){body.motu.guide-v3 .motu-cast,body.motu.guide-v3 .motu-cast--left{grid-template-columns:1fr}
body.motu.guide-v3 .motu-cast--left .motu-cast__art,body.motu.guide-v3 .motu-cast--left .motu-cast__copy{grid-column:1;grid-row:auto}
body.motu.guide-v3 .motu-cast__art{max-width:320px}}
body.motu.guide-v3 .motu-cast__art button{background:var(--bg);border-color:var(--gold);color:var(--ink)}
body.motu.guide-v3 .motu-frame--snake-mountain{--frame:url("assets/characters/masters-of-the-universe-v1/frame-snake-mountain.webp");--open-x:16.60%;--open-y:15.30%;--open-w:66.89%;--open-h:75.20%}
