/* Shared public chrome and store actions. Loaded after page styles. */
.mw-page .mw-nav-actions { align-items:center; display:flex; gap:.55rem; }
.mw-page .mw-nav-actions .mw-menu { order:2; }
.mw-page .mw-nav-actions .mw-button { order:1; }
.mw-page .mw-nav>.mw-button { order:2; }
.mw-page .mw-nav>.mw-menu { order:3; }
.mw-page .mw-menu summary { font-size:0; }
.mw-page .mw-menu summary::before { content:'☰'; font-size:1.15rem; }
.mw-page .mw-nav a[aria-current="page"] { color:var(--gold); text-decoration:underline; text-underline-offset:.2em; }
.mw-page .mw-footer nav { display:flex; flex-wrap:wrap; gap:.45rem 1rem; }
footer .mw-trademark { grid-column:1/-1; width:100%; margin:0; color:#899286; font-size:.72rem; line-height:1.45; text-align:center; }
.mw-page .mw-main a.bg-\[\#E87461\] { color:#fff8e8; }
.mw-page .mw-main > div > a.bg-\[\#E87461\] { background:#17231b; color:#fff8e8; }
.mw-page .mw-main > div > a.bg-\[\#E87461\]:hover { background:#2b3a2d; color:#fff8e8; }

.app-download-cta a[href*="apps.apple.com"],.app-download-cta a[href*="play.google.com"],.tool-cta .cta-row>a.button:not(.secondary),.mw-article .mw-blog-main>div.flex.flex-col>a[href*="apps.apple.com"],.mw-article .mw-blog-main>div.flex.flex-col>a[href*="play.google.com"] { align-items:center; background:var(--pine,#17231b); border:1px solid rgba(213,169,70,.7); border-radius:10px; color:var(--paper,#f8f1df); display:inline-flex; font:700 1rem/1.15 'DM Sans',sans-serif; gap:.55rem; justify-content:center; min-height:52px; padding:.7rem 1rem; text-decoration:none; }
.app-download-cta a[href*="apps.apple.com"]:hover,.app-download-cta a[href*="play.google.com"]:hover,.tool-cta .cta-row>a.button:not(.secondary):hover,.mw-article .mw-blog-main>div.flex.flex-col>a[href*="apps.apple.com"]:hover,.mw-article .mw-blog-main>div.flex.flex-col>a[href*="play.google.com"]:hover { background:#2b3a2d; color:var(--paper,#f8f1df); }
.app-download-cta a[href*="apps.apple.com"] small,.app-download-cta a[href*="play.google.com"] small { color:inherit; opacity:.76; }
.tool-cta .cta-row>a.button .store-icon { flex:0 0 1.15rem; height:1.15rem; width:1.15rem; }
.hero .store-ctas a,.closing .store-ctas a { align-items:flex-start; background:#fff8e8; border-color:rgba(255,248,232,.82); color:#18231d; padding:.65rem 1rem .65rem 3.5rem; }
.hero .store-ctas a:hover,.closing .store-ctas a:hover { background:#f0d58e; color:#18231d; }
.mid-cta .cta-buttons a,.sticky-cta .cta-btn { align-items:center; background:#fff8e8; border:1px solid rgba(255,248,232,.82); border-radius:10px; color:#18231d; display:inline-flex; font:700 1rem/1.15 'DM Sans',sans-serif; gap:.5rem; justify-content:center; min-height:52px; padding:.7rem 1rem; text-decoration:none; }
.sticky-cta .cta-btn { font-size:.875rem; min-height:46px; padding:.55rem .6rem; }
.mid-cta .cta-buttons a:hover,.sticky-cta .cta-btn:hover { background:#f0d58e; color:#18231d; }
.app-download-cta a[href*="apps.apple.com"]:focus-visible,.app-download-cta a[href*="play.google.com"]:focus-visible,.tool-cta .cta-row>a.button:not(.secondary):focus-visible,.mid-cta .cta-buttons a:focus-visible,.sticky-cta .cta-btn:focus-visible,.mw-article .mw-blog-main>div.flex.flex-col>a:focus-visible { outline:3px solid var(--gold); outline-offset:3px; }
@media (max-width:640px) { .mid-cta .cta-buttons { align-items:stretch; flex-direction:column; }.mid-cta .cta-buttons a { width:100%; } }

/* Paper meets the dark header and footer through the homepage's torn edge. */
.mw-page .mw-header { background-image:linear-gradient(rgba(1,5,8,0) 35%, #010508), url('/site-assets/home/atmosphere-v4.webp'); border-bottom:0; }
.mw-page .mw-header::after,.mw-page .mw-footer::before { content:''; position:absolute; left:0; right:0; height:clamp(34px,4.2vw,58px); background:url('/site-assets/home/paper-edge.webp') center top/100% 100% no-repeat; pointer-events:none; }
.mw-page .mw-header::after { top:100%; z-index:0; }
.mw-page .mw-footer { position:relative; background:#010508; border-top:0!important; }
.mw-page .mw-footer::before { bottom:100%; transform:scale(-1,-1); }
body.mw-blog { padding-bottom:0; }
.blog-hero,.prose .game-scene { height:auto; }

/* One store bar on every page with store buttons, pinned while reading. */
.mw-page .store-bar { position:fixed; z-index:40; top:auto; right:auto; bottom:calc(14px + env(safe-area-inset-bottom)); left:50%; display:flex; align-items:center; justify-content:flex-start; gap:.75rem; width:min(520px,calc(100% - 20px)); margin:0; padding:.55rem .55rem .55rem .7rem; border:1px solid rgba(227,185,108,.35); border-radius:18px; color:#f7f0dd; background:rgba(4,10,12,.92); box-shadow:0 18px 40px -12px rgba(0,0,0,.8); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); transform:translate(-50%,0); transition:transform .35s cubic-bezier(.2,.8,.2,1); }
.mw-page .store-bar.is-ready:not(.is-shown) { transform:translate(-50%,calc(100% + 34px)); }
.mw-page .store-bar > img { flex:0 0 auto; width:40px; height:40px; border-radius:10px; }
.mw-page .store-bar-copy { flex:1 1 auto; min-width:0; margin:0; color:#f7f0dd; font:600 1.15rem 'Cormorant Garamond',serif; }
.mw-page .store-bar a { display:inline-flex; flex:0 0 auto; align-items:center; gap:.45rem; min-height:46px; margin:0; padding:0 .95rem; border:0; border-radius:12px; color:#040a0c; background:#e3b96c; font:700 .95rem 'DM Sans',sans-serif; text-decoration:none; white-space:nowrap; transition:background .2s ease,transform .2s ease; }
.mw-page .store-bar a strong { font-weight:700; }
.mw-page .store-bar a + a { color:#f7f0dd; background:transparent; box-shadow:inset 0 0 0 1px rgba(247,240,221,.4); }
.mw-page .store-bar a:hover,.mw-page .store-bar a:focus-visible { transform:translateY(-2px); }
.mw-page .store-bar a:focus-visible { outline:3px solid #f0d58e; outline-offset:3px; }
.mw-page .store-bar svg { flex:0 0 auto; width:1.15rem; height:1.15rem; fill:currentColor; }
.mw-page .store-bar[data-native] a { display:none; }
.mw-page .store-bar[data-native='ios'] a[data-store='apple'],.mw-page .store-bar[data-native='android'] a[data-store='google'] { display:inline-flex; color:#040a0c; background:#e3b96c; box-shadow:none; }
@media (max-width:420px) { .mw-page .store-bar a { padding:0 .75rem; } .mw-page .store-bar:not([data-native]) .store-bar-copy { display:none; } }
@media (prefers-reduced-motion:reduce) { .mw-page .store-bar,.mw-page .store-bar a { transition:none; } }
.mw-page .mw-main .app-download-cta.about-stores { padding:1.25rem 0 0!important; background:none!important; border:0!important; }
/* The calculator's closing box keeps its night art: the paper box rule made its cream text unreadable. */
.mw-page .mw-main .tool-cta.app-download-cta { background:linear-gradient(#040a0ca8,#040a0ca8),url('/site-assets/home/atmosphere-v4.webp') center/cover!important; border-color:transparent!important; }
/* Article disclosures read as a quiet note, not a yellow box beside the evaluation note. */
.mw-article .mw-blog-main .bg-amber-50 { padding:0 0 0 .9rem!important; border:0!important; border-left:2px solid rgba(213,169,70,.7)!important; border-radius:0!important; color:#4d5548!important; background:none!important; font-size:.86rem!important; letter-spacing:normal!important; line-height:1.55; }
.mw-article .mw-blog-main .bg-amber-50 strong { color:#1c2119; }
/* On an article the trail stops at Guides: the title is the heading right below. */
.mw-article .mw-breadcrumbs li:nth-last-child(-n+2) { display:none; }
/* Old coral buttons and icon tiles take the site's pine and gold. */
.mw-page .mw-main a.bg-\[\#E87461\] { color:#fff8e8; background:#17231b; border:1px solid rgba(213,169,70,.7); }
.mw-page .mw-main a.bg-\[\#E87461\]:hover { color:#fff8e8; background:#2b3a2d; }
.mw-page .mw-icon-tile { color:#7a5a17; background:rgba(213,169,70,.18); }
.mw-page .mw-recommended { color:#60430f; }

/* Our Instagram and TikTok in every footer: the app's own glyphs
   (step-saga-app assets/icons), cream on the night footer, gold on hover. */
footer .mw-social { display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:.6rem; grid-column:1/-1; width:100%; }
footer .mw-social a { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; padding:0; border:1px solid rgba(227,185,108,.55); border-radius:50%; color:#f7f0dd; background:transparent; text-decoration:none; transition:background .2s,color .2s,border-color .2s; }
footer .mw-social a:hover { background:#e3b96c; border-color:#e3b96c; color:#040a0c; }
footer .mw-social a:focus-visible { outline:3px solid #e3b96c; outline-offset:3px; }
footer .mw-social svg { display:block; width:20px; height:20px; }
@media (prefers-reduced-motion: reduce) { footer .mw-social a { transition:none; } }
/* The homepage footer reads from the left on phones; the icons follow it. */
@media (max-width: 899px) { .footer-links + .mw-social { justify-content:flex-start; } }
