/* Keep the first visible font stable on slow connections; the homepage preloads both faces. */
@font-face{font-family:Vollkorn;src:url('/assets/Vollkorn.woff') format('woff');font-weight:400 900;font-display:optional}
@font-face{font-family:'Source Sans 3';src:url('/assets/SourceSans3.woff') format('woff');font-weight:200 900;font-display:optional}
:root{color-scheme:dark;--ink:#1d1c19;--deep:#1b1611;--page-bronze:#363129;--page-warm:#4b4132;--cream:#efe6d2;--muted:#c6bba7;--gold:#e0a93b;--amber:#f6bb45;--header-edge:#1b1b1a;--header-light:#4f3f2f;--bronze-trim:#a87d4a;--line:#796341;--surface:#292721;--serif:Vollkorn,Georgia,serif;--sans:'Source Sans 3',system-ui,sans-serif;--gutter:clamp(24px,5vw,80px);--page:1320px}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:32px}
body{margin:0;background:var(--ink);color:var(--cream);font:20px/1.5 var(--sans);-webkit-font-smoothing:antialiased}
main{background:radial-gradient(ellipse at 50% 85%,#4b413259,transparent 55%),linear-gradient(180deg,var(--ink) 25%,var(--page-bronze) 65%,var(--ink))}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-underline-offset:5px}
a:focus-visible{outline:3px solid var(--gold);outline-offset:6px;border-radius:2px}
a:hover{color:var(--gold)}
h1,h2,h3,p,figure{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:700;text-wrap:balance}
.skip-link{position:absolute;top:10px;left:20px;transform:translateY(-200%);z-index:10;background:var(--cream);color:var(--ink);padding:12px 20px}
.skip-link:focus{transform:none}
.site-header{background:radial-gradient(ellipse at 46% 35%,var(--header-light),var(--header-edge) 78%);border-top:1px solid #63503a;border-bottom:2px solid var(--bronze-trim);box-shadow:0 3px 12px #0005;position:relative;z-index:2}
.header-inner,.footer-inner{max-width:calc(var(--page) + 2 * var(--gutter));margin:auto;padding:26px var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:32px}
.brand{display:block;flex-shrink:0;width:250px}
nav{display:flex;gap:36px;align-items:center}
nav a{font-size:18px;font-weight:600;text-decoration:none;min-height:44px;display:flex;align-items:center}
.hero{max-width:1800px;margin:auto;position:relative;min-height:760px;isolation:isolate;overflow:hidden;background:var(--deep)}
.hero-art{position:absolute;z-index:-2;right:0;top:0;width:100%;height:100%}
.hero-art img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero:after{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(0deg,var(--ink),transparent 15%),linear-gradient(90deg,var(--deep) 9%,transparent 69%)}
.hero-content{max-width:calc(var(--page) + 2 * var(--gutter));margin:auto;padding:108px var(--gutter) 116px}
.eyebrow{color:var(--gold);font-size:13px;font-weight:650;text-transform:uppercase;letter-spacing:.2em;line-height:1.5;margin-bottom:22px}
h1{font-size:clamp(64px,7vw,102px);line-height:.98;letter-spacing:-.035em;max-width:740px;text-shadow:0 3px 18px #0006}
.gold-rule{width:150px;height:2px;background:var(--gold);margin:32px 0}
.hero-description{font-size:clamp(22px,2.1vw,30px);line-height:1.35;max-width:510px;text-shadow:0 2px 8px #000}
.release{font-size:19px;color:var(--gold);margin:26px 0 30px}
.release span{margin:0 8px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:20px;background:#29231deF;border:1px solid #c9a25e;padding:17px 28px;border-radius:4px;color:var(--cream);font:600 22px/1.2 var(--sans);text-decoration:none;transition:background-color .18s,border-color .18s}
.button img{filter:brightness(0) saturate(100%) invert(91%) sepia(20%) saturate(350%);flex-shrink:0}
.button:hover{background:#443727;border-color:#ffe0a0;color:#fff2d1}
.button:active{background:#211d18;border-color:var(--gold)}
.section{max-width:calc(var(--page) + 2 * var(--gutter));margin:auto;padding:88px var(--gutter)}
.section-heading{text-align:center;max-width:1000px;margin:0 auto 48px}
.section-heading .eyebrow{margin-bottom:12px}
h2{font-size:clamp(34px,4vw,58px);line-height:1.12;letter-spacing:-.025em}
.section-heading .gold-rule{margin:28px auto 0}
.gameplay{padding-top:66px}
.gameplay-art{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:70px;max-width:1080px;margin:auto}
.gameplay-art figure{width:100%;min-width:0}
.gameplay-art figure img{width:100%;height:auto;aspect-ratio:800 / 755;object-fit:cover;border:1px solid var(--line);border-radius:4px}
.gameplay-art .battle-figure img{object-fit:cover;object-position:center 75%;filter:brightness(1.08)}
figcaption{text-align:left;margin-top:20px;padding:0 0 0 16px;border-left:2px solid var(--gold)}
figcaption span{display:block;color:var(--gold);font:650 12px/1.5 var(--sans);letter-spacing:.15em;text-transform:uppercase;margin-bottom:4px}
figcaption strong{display:block;color:var(--cream);font:600 clamp(22px,2.2vw,30px)/1.25 var(--serif)}
.armies{padding-top:70px;padding-bottom:70px}
.section-intro{color:var(--muted);font-size:20px;margin:20px auto 0;text-wrap:balance}
.army-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(5,1fr);gap:24px;text-align:center}
.army-list img{width:120px;height:120px;object-fit:contain;margin:0 auto 20px}
.army-list h3{font-size:22px;font-weight:600}
.support{display:flex;justify-content:space-between;align-items:center;gap:40px;padding-top:58px;padding-bottom:60px}
.support .eyebrow{margin-bottom:12px}
.support h2{font-size:34px}
.support p:last-child{font-size:18px;color:var(--muted);margin-top:12px}
.text-link{color:var(--gold);font-size:20px;padding:12px 0;overflow-wrap:anywhere}
.site-footer{background:radial-gradient(ellipse at 46% 35%,var(--header-light),var(--header-edge) 78%)}
.footer-inner{padding-top:34px;padding-bottom:34px;gap:24px}
.footer-inner .brand{width:185px}
.footer-inner p{font-size:14px;color:var(--muted);margin-right:auto}
.footer-inner nav{gap:26px}
.footer-inner nav a{font-size:16px;font-weight:400}
@media(min-width:1800px){.hero{border-left:1px solid var(--line);border-right:1px solid var(--line)}}
@media(max-width:1000px){.hero{min-height:690px}.hero-content{padding-top:90px;padding-bottom:100px}.hero-art{opacity:.86}.hero:after{background:linear-gradient(0deg,var(--ink),transparent 18%),linear-gradient(90deg,var(--deep),#1b1611c0 32%,transparent 85%)}.gameplay-art{gap:36px}.army-list h3{font-size:19px}.footer-inner{flex-wrap:wrap}.footer-inner nav{margin-left:auto}}
@media(max-width:680px){
  body{font-size:18px}.header-inner{padding:20px var(--gutter) 10px;flex-direction:column;gap:8px}.brand{width:215px}.header-inner nav{gap:34px}.header-inner nav a{font-size:16px}
  .hero{min-height:0;display:flex;flex-direction:column}.hero-content{order:0;width:100%;padding:38px var(--gutter) 28px;text-align:center}.hero .eyebrow{font-size:11px;margin-bottom:18px}h1{font-size:clamp(42px,11.5vw,76px);line-height:1.02;letter-spacing:-.04em}.hero .gold-rule{margin:22px auto;width:95px}.hero-description{font-size:22px;margin:auto}.release{font-size:17px;margin:22px 0}.release span{margin:0 4px}.button{font-size:20px;padding:16px 22px;gap:16px;min-height:56px;width:auto;max-width:100%}
  .hero-art{position:relative;order:1;z-index:0;inset:auto;width:100%;height:auto;aspect-ratio:1670 / 941;opacity:1;mask-image:linear-gradient(0deg,transparent,#000 12%,#000 86%,transparent)}.hero-art img{object-position:center}.hero:after{display:none}
  .section{padding:54px var(--gutter)}.gameplay{padding-top:28px}.section-heading{margin-bottom:30px}.section-heading .eyebrow{font-size:11px;letter-spacing:.14em}.section-heading .gold-rule{margin-top:22px}h2{font-size:36px}.gameplay-art{grid-template-columns:1fr;gap:28px;max-width:430px}.army-list{grid-template-columns:repeat(6,1fr);gap:26px 10px}.army-list li{grid-column:span 2}.army-list li:nth-child(4){grid-column:2 / span 2}.army-list img{width:90px;height:90px;margin-bottom:10px}.army-list h3{font-size:17px}.section-intro{font-size:18px}.support{display:block}.support h2{font-size:31px}.text-link{display:inline-block;margin-top:18px}.footer-inner{justify-content:center;text-align:center;gap:18px}.footer-inner .brand{width:180px}.footer-inner p{margin:0}.footer-inner nav{width:100%;margin:0;justify-content:center;flex-wrap:wrap;gap:8px 24px}
}
@media(max-width:360px){.button{font-size:18px;padding:16px 18px;gap:10px}.hero-description{font-size:20px}.hero-content{padding-top:32px}.hero .eyebrow{letter-spacing:.14em}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.button{transition:none}}

/* Keep the copy on the artwork, with a soft localized readability scrim. */
.hero-content{position:relative;z-index:2;isolation:isolate;text-align:center}
.hero-content:before{content:'';position:absolute;z-index:-1;inset:-35px -60px;background:radial-gradient(ellipse,#1b1611eb 15%,#1b1611c9 46%,#1b161166 65%,transparent 76%);pointer-events:none}
@media(min-width:1001px){
.hero{min-height:0;aspect-ratio:1670 / 941;display:grid;place-items:center}
.hero-content{padding:38px 24px;width:min(650px,65%);margin-top:70px}
.hero h1{font-size:clamp(56px,5.3vw,90px);margin:auto}
.hero .gold-rule{margin:24px auto}
.hero-description{margin:auto;font-size:clamp(22px,1.8vw,28px)}
.hero:after{background:linear-gradient(0deg,var(--ink),transparent 12%)}
}
@media(max-width:1000px){
.hero{min-height:660px;display:block}
.hero-art{position:absolute;inset:0;z-index:-2;width:100%;height:100%;aspect-ratio:auto;opacity:1;mask-image:none}
.hero-art img{object-fit:cover;object-position:12% center}
.hero:after{display:block;background:linear-gradient(0deg,var(--ink),transparent 18%),linear-gradient(180deg,#1b161199,transparent 85%)}
.hero-content{padding:48px 24px 190px;width:100%;max-width:570px;margin:auto}
.hero-content:before{inset:-60px -35px 100px;background:radial-gradient(ellipse,#1b1611e8 12%,#1b1611bd 48%,transparent 75%)}
.hero h1,.hero-description{margin:auto}
.hero .gold-rule{margin:22px auto}
}
@media(min-width:681px) and (max-width:1000px){
.hero-art img{object-position:center}
.hero-content{padding-top:65px;padding-bottom:110px}
.hero h1{font-size:68px}
}

/* The hero tagline must read against both bright castle art and dark clouds. */
.hero .eyebrow{position:relative;isolation:isolate;display:inline-block;font-size:14px;font-weight:700;letter-spacing:.14em;color:#fff2d1;padding:8px 14px;text-shadow:0 1px 4px #000,0 0 12px #0008}
.hero .eyebrow:before{content:'';position:absolute;inset:-12px -24px;z-index:-1;background:radial-gradient(ellipse,#1b1611cc 15%,#1b161180 48%,transparent 75%);filter:blur(6px);pointer-events:none}
@media(max-width:360px){.hero .eyebrow{font-size:12px;letter-spacing:.1em}}

/* A short warm fade joins the illustration to the bronze page surface. */
.hero:before{content:'';position:absolute;left:0;right:0;bottom:-1px;height:90px;z-index:1;pointer-events:none;background:linear-gradient(180deg,transparent,var(--ink))}
.gameplay{background:linear-gradient(180deg,var(--ink),transparent 120px)}
@media(max-width:680px){.hero:before{height:64px}}

/* Painted game objects are presented as artwork, without screenshot chrome. */
.bonuses{padding-top:88px;padding-bottom:96px}
.bonus-showcase{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px;list-style:none;margin:0 auto;padding:0;max-width:1080px;text-align:center}
.bonus-showcase li{--aura:#e0a93b;min-width:0}
.bonus-showcase .bonus-freeze{--aura:#5bcaff}
.bonus-showcase .bonus-rewind{--aura:#f6bb45}
.bonus-art{position:relative;isolation:isolate;padding:24px;max-width:260px;margin:0 auto 22px}
.bonus-art:before{content:'';position:absolute;inset:-12%;z-index:-1;background:radial-gradient(ellipse,color-mix(in srgb,var(--aura) 24%,transparent),transparent 65%)}
.bonus-art img{width:100%;height:auto;filter:drop-shadow(0 12px 16px #0006)}
.bonus-showcase h3{font-size:30px;margin-bottom:10px}
.bonus-showcase p{color:var(--muted);font-size:19px;max-width:28ch;margin:auto}
.portals{max-width:none;background:linear-gradient(0deg,#1b1a17,transparent clamp(64px,9vw,140px)),radial-gradient(ellipse at 50% 75%,#302d29,transparent 65%),#1b1a17;padding-bottom:76px;overflow:hidden}
.portals .section-heading{max-width:800px}
.portal-gallery{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;isolation:isolate}
.portal-gallery figure{min-width:0;text-align:center}
.portal-gallery img{width:100%;height:auto;mix-blend-mode:screen;mask-image:radial-gradient(ellipse at center,#000 40%,transparent 74%)}
.portal-gallery figcaption{border:0;padding:0;margin:-12px 0 0;text-align:center;font:600 28px/1.3 var(--serif);color:var(--cream)}
@media(max-width:680px){
.header-inner nav{gap:clamp(15px,5vw,28px)}
.bonuses{padding-top:56px;padding-bottom:56px}
.bonus-showcase{grid-template-columns:1fr;gap:34px;text-align:left}
.bonus-showcase li{display:grid;grid-template-columns:100px 1fr;column-gap:20px;align-items:center}
.bonus-art{grid-row:1 / 3;padding:0;margin:0;width:100px}
.bonus-showcase h3{font-size:27px;margin:0 0 6px}
.bonus-showcase p{font-size:17px;max-width:none;margin:0}
.portal-gallery{gap:0;margin:0 -18px}
.portal-gallery figcaption{font-size:20px;margin:0}
.portals{padding-bottom:52px}
}

/* Ten compact bonuses; portal motion is rendered independently of page layout. */
.bonus-showcase{grid-template-columns:repeat(5,minmax(0,1fr));gap:38px 28px;max-width:1200px}
.bonus-art{max-width:160px;padding:12px;margin-bottom:12px}
.bonus-showcase h3{font-size:24px}
.bonus-showcase p{font-size:17px;max-width:23ch}
.portal-stage{position:relative;aspect-ratio:2 / 3;width:90%;margin-inline:auto}
.portal-stage img,.portal-stage canvas{position:absolute;inset:0;width:100%;height:100%}
.portal-stage canvas{mix-blend-mode:screen;mask-image:radial-gradient(ellipse at center,#000 40%,transparent 74%)}
.abyss-stage:before{content:'';position:absolute;inset:12% 16%;border-radius:48%;background:radial-gradient(ellipse,#06030d 65%,#40275b 73%,transparent 76%);box-shadow:0 0 24px #7c51b52b}
.abyss-stage canvas{mix-blend-mode:normal;mask-image:none}
.abyss-stage.is-rendered:before{display:none}
@media(max-width:1000px) and (min-width:681px){.bonus-showcase{grid-template-columns:repeat(5,minmax(0,1fr));gap:28px 18px}.bonus-showcase h3{font-size:21px}.bonus-showcase p{font-size:16px}}
@media(max-width:680px){
.bonus-showcase{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 20px;text-align:center}
.bonus-showcase li{display:block}
.bonus-art{width:110px;max-width:100%;padding:6px;margin:0 auto 12px}
.bonus-showcase h3{font-size:22px;margin-bottom:8px}
.bonus-showcase p{font-size:16px}
}

/* A restrained pair of surfaces, with matching half-fades on both sides
   of every boundary. Section height never changes their color or spread. */
body:not(.inner-page){--section-dark:#1b1a17;--section-bronze:linear-gradient(90deg,#27241f,#383127 46%,#27241f);--section-mid:linear-gradient(90deg,#211f1b,#29261f 46%,#211f1b);--section-half-fade:clamp(28px,3.5vw,48px);--section-space:calc(clamp(40px,5vw,64px) + 20px)}
main > .section{max-width:none;padding-inline:max(var(--gutter),calc((100% - var(--page)) / 2));padding-block:var(--section-space)}
.gameplay,.bonuses,.shop-invitation,body:not(.inner-page) .site-footer{background:var(--section-bronze)}
.armies,.portals{background:var(--section-dark)}
.gameplay,.armies,.bonuses,.portals,body:not(.inner-page) .site-footer{position:relative;isolation:isolate}
.gameplay:before,.armies:before,.bonuses:before,.portals:before,.shop-invitation:before,body:not(.inner-page) .site-footer:before,main > .section:after{content:'';position:absolute;inset:-1px 0 auto;height:calc(var(--section-half-fade) + 1px);z-index:-1;pointer-events:none;background:var(--section-mid);-webkit-mask-image:linear-gradient(#000,transparent);mask-image:linear-gradient(#000,transparent)}
main > .section:after{inset:auto 0 -1px;-webkit-mask-image:linear-gradient(transparent,#000);mask-image:linear-gradient(transparent,#000)}
.gameplay:before{display:none}
/* Fade the artwork into the exact gameplay surface, without a dark stop. */
.hero:before{background:var(--section-bronze);-webkit-mask-image:linear-gradient(transparent,#000);mask-image:linear-gradient(transparent,#000)}
.hero:after{background:none}
@media(max-width:1000px){.hero:after{background:linear-gradient(180deg,#1b161199,transparent 85%)}}
@media(max-width:360px){main > .bonuses{padding-inline:10px}}

/* A shared footer grid keeps identity, contact and press resources aligned. */
.site-footer .footer-inner{display:grid;grid-template-columns:1.4fr 1fr auto;align-items:start;gap:42px 56px;padding-block:48px 26px;text-align:left}
.footer-identity .brand{display:block;width:230px;margin-bottom:14px}
.site-footer .footer-identity p{margin:0;font-size:17px;color:var(--muted)}
.footer-contact h2,.footer-press h2{font:600 18px/1.3 var(--serif);margin:0 0 12px;color:var(--muted)}
.footer-contact > a,.footer-press > a{display:inline-block;font-size:18px;color:var(--cream);text-decoration:none;overflow-wrap:anywhere}
.footer-press > a span{display:inline-block;margin-left:8px;color:var(--gold)}
.footer-contact > a:hover,.footer-press > a:hover{color:var(--gold);text-decoration:underline;text-underline-offset:5px}
.footer-bottom{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:10px}
.site-footer .footer-bottom p{font-size:13px;margin:0;color:var(--muted)}
.site-footer .footer-inner nav{justify-content:flex-end;margin:0;width:auto;gap:24px}
.site-footer .footer-inner nav a{font-size:13px;color:var(--muted)}
.site-footer .footer-inner nav a:hover{color:var(--cream)}
@media(max-width:900px){.site-footer .footer-inner{grid-template-columns:1fr 1fr;gap:30px}.footer-identity{grid-column:1 / -1}}
@media(max-width:480px){.site-footer .footer-inner{grid-template-columns:1fr;gap:26px;padding-block:34px 24px}.footer-identity .brand{width:210px}.footer-bottom{padding-top:8px;gap:16px}.site-footer .footer-inner nav{gap:18px}}

.site-footer .footer-identity .footer-tagline{text-transform:uppercase;letter-spacing:.14em;font-size:12px}
.hero .button{cursor:pointer}
.reel-open{overflow:hidden}
.reel-dialog{padding:0;border:1px solid #63503a;border-radius:8px;background:#161510;color:var(--cream);width:min(440px,calc(100vw - 24px),calc((100dvh - 74px) * 720 / 1560 + 2px));max-width:none;max-height:calc(100dvh - 24px);overflow:hidden;margin:auto;box-shadow:0 24px 100px #0009}
.reel-dialog::backdrop{background:#080706df;backdrop-filter:blur(8px)}
.reel-heading{display:flex;align-items:center;justify-content:space-between;padding:2px 8px 2px 12px;gap:8px}
.reel-heading h2{font:600 14px/1.3 var(--sans);margin:0}
.reel-heading button{border:0;background:transparent;color:var(--cream);font:24px/1 var(--sans);width:44px;height:44px;flex:none;cursor:pointer}
.reel-heading button:focus{outline:none}
.reel-dialog.keyboard-navigation .reel-heading button:focus-visible{outline:2px solid var(--gold)}
.reel-dialog video{display:block;width:100%;height:auto;max-height:calc(100dvh - 74px);object-fit:contain;background:#000}

@media(max-width:360px){.reel-heading{gap:4px;padding-inline:8px}.reel-heading h2{font-size:13px;white-space:nowrap}}

.footer-identity{width:230px;max-width:100%}
.footer-identity .brand{width:100%;margin-bottom:6px}
.site-footer .footer-identity .footer-tagline{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;letter-spacing:.12em}
@media(max-width:480px){.footer-identity{width:210px}.footer-identity .brand{width:100%}}

.site-header nav a[aria-current="location"]{color:var(--gold)}

.menu-toggle,.menu-scrim{display:none}
.menu-open{overflow:hidden}
@media(max-width:680px){
 .site-header.menu-ready{border-bottom:0;z-index:5}
 .menu-ready .header-inner{min-height:72px;padding:12px 20px;flex-direction:row;gap:16px;position:relative;z-index:1;background:radial-gradient(ellipse at 40% 0%,var(--header-light),#211e19)}
 .menu-ready .header-inner .brand{width:164px;max-width:60%}
 .menu-ready .menu-toggle{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 4px;border:0;background:none;color:var(--cream);font:600 16px var(--sans);cursor:pointer}
 .menu-toggle:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
 .menu-cross{display:none}.is-menu-open .menu-bars{display:none}.is-menu-open .menu-cross{display:block}
 .menu-ready .header-inner nav{position:absolute;top:100%;left:0;right:0;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:6px 20px 18px;background:linear-gradient(#30291f,#231f19);box-shadow:0 18px 36px #0008}
 .menu-ready .header-inner nav[hidden]{display:none}
 .menu-ready .header-inner nav a{min-height:62px;font-size:21px;font-weight:400;border-bottom:1px solid #ffffff0c}
 .menu-ready .header-inner nav a:last-child{border-bottom:0}
 .is-menu-open .menu-scrim{display:block;position:fixed;inset:0;background:#090806a3;backdrop-filter:blur(3px)}
}

/* Keep the panel mounted so opening and closing can both ease smoothly. */
@media(max-width:680px){
 .menu-ready .header-inner nav{opacity:0;visibility:hidden;transform:translateY(-8px);pointer-events:none;transition:opacity .18s ease,transform .2s ease,visibility 0s linear .2s}
 .menu-ready.is-menu-open .header-inner nav{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto;transition-delay:0s}
 .menu-ready .menu-scrim{display:block;position:fixed;inset:0;background:#090806a3;backdrop-filter:blur(3px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility 0s linear .2s}
 .menu-ready.is-menu-open .menu-scrim{opacity:1;visibility:visible;pointer-events:auto;transition-delay:0s}
}
@media(prefers-reduced-motion:reduce){.menu-ready .header-inner nav,.menu-ready .menu-scrim{transition:none;transform:none}}

@media(max-width:680px){
 html{scroll-padding-top:88px}
 .site-header.menu-ready{position:sticky;top:0}
}

/* Compact desktop footer; retain the existing stacked layouts below 901px. */
@media(min-width:901px){
  .site-footer .footer-inner{gap:22px 36px;padding-block:30px 20px}
  .footer-contact h2,.footer-press h2{margin-bottom:8px}
  .footer-bottom{padding-top:0;gap:18px}
  .site-footer .footer-inner nav{gap:18px}
}
/* Compact spacing within the original stacked mobile footer. */
@media(max-width:480px){
  .footer-contact h2,.footer-press h2{margin-bottom:4px}
  .footer-bottom{padding-top:0;margin-top:-12px}
}
/* Let the desktop navigation fade into the hero illustration. */
@media(min-width:681px){
  body:not(.inner-page) .site-header{position:absolute;inset:0 0 auto;background:none;border:0;box-shadow:none;isolation:isolate}
  body:not(.inner-page) .hero-art:after{content:'';position:absolute;inset:0 0 auto;height:164px;pointer-events:none;background:linear-gradient(180deg,#443629fa 0%,#352b22f2 28%,#30271fc2 57%,#30271f55 78%,#30271f00 100%)}
}

@media(min-width:681px) and (max-width:1000px){
  .hero-content{padding-top:130px}
}
@media(min-width:1001px) and (max-width:1200px){
  .hero-content{margin-top:110px}
}
/* Keep mobile hero art as a short finish below the call to action. */
@media(max-width:680px){
  .hero{min-height:0}
  .hero-content{padding:32px 24px 88px}
  .hero-content:before{inset:-40px -35px 36px}
  .hero .gold-rule{margin:18px auto}
  .hero .release{margin:18px 0}
}

/* Match the additional breathing room above section content. */
body:not(.inner-page) .site-footer{padding-top:20px}

/* Leave a quiet dark gap after the portals before the footer transition. */
main > .portals{padding-bottom:calc(var(--section-space) + 32px)}

/* Focus follows the text; the invisible target retains its touch height. */
a:focus-visible{outline-width:2px;outline-offset:3px}
nav{min-height:44px;align-items:center}
nav a{position:relative;min-height:0}
nav a::after{content:'';position:absolute;inset:50% 0 auto;height:max(100%,44px);transform:translateY(-50%)}

/* Header link sizing is shared by the homepage and all inner-page Home links. */
:root{--header-link-size:22px}
.home-link{display:inline-flex;align-items:center;min-height:44px;font-size:var(--header-link-size);font-weight:600;text-decoration:none}
@media(min-width:681px) and (max-width:1000px){:root{--header-link-size:18px}}

/* Homepage header: Shop stays outside the collapsible navigation. */
.site-header:has(.header-shop) .header-inner {
  gap:28px;
}
.site-header:has(.header-shop) .header-inner nav {
  margin-left:auto;
}
.site-header:has(.header-shop) nav a {
  font-size:var(--header-link-size);
}
.header-shop {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-shrink:0;
  min-height:48px;
  color:var(--cream);
  font:600 var(--header-link-size)/1.5 var(--sans);
  text-decoration:none;
  white-space:nowrap;
  transition:color .18s ease;
}
.header-shop-label {
  display:block;
}
.header-shop:hover {
  color:var(--gold);
}
.header-shop:active {
  color:var(--amber);
}
.header-shop:focus-visible {
  outline:2px solid var(--cream);
  outline-offset:4px;
}
.header-shop img {
  width:24px;
  height:24px;
  object-fit:contain;
  flex-shrink:0;
}
@media(min-width:681px) and (max-width:1000px) {
  .site-header:has(.header-shop) .header-inner {
    gap:20px;
    padding-inline:24px;
  }
  .site-header:has(.header-shop) .brand {
    width:170px;
  }
  .site-header:has(.header-shop) .header-inner nav {
    gap:18px;
  }
  .site-header:has(.header-shop) nav a,.header-shop {
    font-size:var(--header-link-size);
  }
}
@media(max-width:680px) {
  .site-header:has(.header-shop) .header-inner {
    flex-direction:row;
    flex-wrap:wrap;
    gap:10px;
    padding:12px 16px;
  }
  .site-header:has(.header-shop) .header-inner .brand {
    width:clamp(136px,40vw,184px);
    max-width:none;
    margin-right:auto;
  }
  .site-header:has(.header-shop) .header-inner nav {
    width:100%;
    margin-left:0;
    order:1;
  }
  .header-shop {
    min-height:44px;
    gap:7px;
    font-weight:700;
    line-height:1.2;
    position:relative;
    left:10px;
  }
  .header-shop-label {
    text-transform:uppercase;
    line-height:1;
    text-box:trim-both cap alphabetic;
    letter-spacing:.025em;
  }
  .header-shop img {
    width:32px;
    height:32px;
  }
  .site-header:has(.header-shop) .menu-toggle {
    justify-content:flex-end;
    flex-shrink:0;
    width:44px;
    padding:0;
  }
  .site-header:has(.header-shop) .menu-toggle span {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip-path:inset(50%);
    white-space:nowrap;
  }
  .site-header:has(.header-shop) .menu-toggle svg {
    width:24px;
    height:24px;
  }
}
@media(max-width:360px) {
  .header-shop {
    font-size:18px;
    gap:6px;
  }
  .header-shop img {
    width:26px;
    height:26px;
  }
  /* Keep showcase headings balanced on narrow phones. */
  .section-heading h2 {
    font-size:30px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .header-shop {
    transition:none;
  }
}
/* A short metallic glint on the coin leaves the navigation text steady. */
.shop-coin {
  position:relative;
  display:block;
  flex-shrink:0;
  line-height:0;
}
@keyframes shop-coin-shine {
  0%,58% {
    background-position:100% 0;
    opacity:0;
  }
  60% {
    opacity:1;
  }
  76% {
    background-position:0% 0;
    opacity:1;
  }
  78%,100% {
    background-position:0% 0;
    opacity:0;
  }
}
@media(prefers-reduced-motion:no-preference) {
  .shop-coin::after {
    content:'';
    position:absolute;
    inset:0;
    pointer-events:none;
    background:linear-gradient(110deg,transparent 43%,#fff3c540 47%,#fff9e6c0 50%,#fff3c540 53%,transparent 57%) 100% 0 / 300% 100% no-repeat;
    mask:url('/shop/assets/star-coin.png') center / contain no-repeat;
    animation:shop-coin-shine 7s ease-in-out infinite;
    opacity:0;
  }
}
/* The treasury uses existing painted shop art and Legionaut's typography. */
main > .shop-invitation {
  --treasury-shadow:#0008;
  position:relative;
  isolation:isolate;
  padding-top:64px;
  padding-bottom:88px;
}
/* The shop and footer share bronze, so no artificial dark seam is needed. */
main > .shop-invitation:after,main:has(> .shop-invitation) + .site-footer:before {
  display:none;
}
.shop-invitation-inner {
  max-width:1120px;
  margin:auto;
  display:grid;
  grid-template-columns:1.1fr 1fr;
  grid-template-areas:"art heading" "art details";
  column-gap:70px;
  row-gap:22px;
  align-items:center;
}
.shop-invitation-heading {
  grid-area:heading;
  align-self:end;
}
.shop-invitation .eyebrow {
  margin-bottom:18px;
}
.shop-invitation h2 {
  font-size:clamp(46px,5vw,68px);
  line-height:1.02;
  letter-spacing:-.025em;
}
.shop-invitation-art {
  grid-area:art;
  position:relative;
  min-width:0;
  aspect-ratio:1.12;
  isolation:isolate;
}
.shop-invitation-art:before {
  content:'';
  position:absolute;
  inset:75% 0 1%;
  background:radial-gradient(ellipse,var(--treasury-shadow),transparent 68%);
  z-index:-1;
}
.shop-invitation-art img {
  position:absolute;
  object-fit:contain;
  filter:drop-shadow(0 12px 12px var(--treasury-shadow));
}
.treasury-chest {
  width:86%;
  left:0;
  top:0;
}
.treasury-sack {
  width:48%;
  right:-2%;
  bottom:-2%;
}
.shop-invitation-details {
  grid-area:details;
  align-self:start;
}
.shop-invitation-details p {
  color:var(--muted);
  font-size:21px;
  line-height:1.5;
}
.shop-invitation-link {
  display:inline-flex;
  align-items:baseline;
  gap:8px;
  min-height:56px;
  margin-top:26px;
  color:var(--cream);
  font:700 28px/1.3 var(--sans);
  text-decoration:none;
}
.shop-invitation-link > span:first-child {
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:6px;
}
.shop-invitation-link > span[aria-hidden] {
  font-size:.85em;
  line-height:1;
}
.shop-invitation-link:hover {
  color:var(--gold);
}
@media(max-width:800px) {
  main > .shop-invitation {
    padding-top:40px;
    padding-bottom:64px;
  }
  .shop-invitation-inner {
    max-width:480px;
    grid-template-columns:1fr;
    grid-template-areas:"heading" "art" "details";
    gap:22px;
    text-align:center;
  }
  .shop-invitation h2 {
    font-size:46px;
  }
  .shop-invitation h2 br {
    display:none;
  }
  .shop-invitation .eyebrow {
    margin-bottom:14px;
  }
  .shop-invitation-art {
    width:100%;
    max-width:360px;
    justify-self:center;
  }
  .shop-invitation-details p {
    font-size:18px;
  }
  .shop-invitation-link {
    font-size:26px;
    gap:7px;
    margin-top:18px;
  }
}
@media(max-width:360px) {
  .shop-invitation h2 {
    font-size:40px;
  }
  .shop-invitation-link {
    font-size:24px;
    gap:7px;
  }
}

/* Official badge artwork stays unmodified; clear space exceeds its quarter-height minimum. */
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:24px;margin-top:32px;padding:15px}
.app-store-link{display:block;flex:0 0 auto;border-radius:10px}
.app-store-link img{width:auto;height:60px}
.store-badges{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:16px}
.google-play-link{display:block;flex:0 0 auto}
.google-play-link img{width:auto;height:60px}
.gameplay-link{display:inline-flex;align-items:center;justify-content:center;gap:12px;width:180px;min-height:60px;padding:12px;border:1px solid var(--bronze-trim);border-radius:10px;background:var(--deep);color:var(--cream);font:600 16px/1.3 var(--sans);white-space:nowrap;cursor:pointer}
.gameplay-link svg{flex-shrink:0;width:18px;height:18px}
.gameplay-link:hover{color:var(--gold);border-color:var(--gold)}
.gameplay-link:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.site-footer .store-credit{grid-column:1 / -1;font-size:12px;color:var(--muted);max-width:80ch}
@media(max-width:480px){.hero-actions{flex-direction:column;gap:18px;margin-top:24px}}
/* Phones: the two store badges side by side (Apple's minimum is 40px high), the gameplay button as wide as the pair. */
@media(max-width:480px){.store-badges{flex-wrap:nowrap;gap:12px}.store-badges img{height:48px}.gameplay-link{width:317px;min-height:48px}}
@media(max-width:360px){.store-badges{gap:10px}.store-badges img{height:40px}.gameplay-link{width:264px;min-height:44px}}
