/* Title screen: the approved landscape, tree standard, parchment and timber frame. */
.opening-screen{position:fixed;inset:0;z-index:1000;display:flex;overflow:auto;background:#111c1b;color:var(--gold-light)}
/* Branded first paint while the game modules load. */
.opening-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;flex:1;min-height:100svh;padding:calc(32px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));text-align:center;background:#111c1b}
.opening-crest{display:block;flex:none;width:min(192px,48vw,32svh);height:auto;aspect-ratio:1;border-radius:50%}
.opening-brand h1{margin:0;font:600 clamp(48px,13vw,72px)/1 var(--serif);letter-spacing:5px;color:var(--gold-light);text-shadow:0 2px 1px #643f13,0 4px 12px #0007}
.opening-brand .title-rule{width:min(240px,70%);margin:0}
.opening-author{font:400 15px/1.3 var(--serif);color:var(--gold-light);text-shadow:0 2px 3px #07100b}
.opening-status{font:12px/1.5 var(--sans);color:var(--muted);max-width:100%}
@media(max-height:480px){.opening-brand{gap:8px;padding-block:calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-bottom))}.opening-brand h1{font-size:48px}.opening-author{font-size:14px}}
@media(forced-colors:active){.opening-brand{background:Canvas}.opening-brand h1,.opening-author,.opening-status{color:CanvasText;text-shadow:none}}


.title-controls{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.language-picker{display:flex;gap:8px;align-items:stretch;flex-wrap:wrap}
.language-picker button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;border:1px solid #a5854f;background:#142b22;color:#f5e6be;font:500 13px var(--sans);border-radius:3px}
.language-picker button[aria-pressed=true]{border-color:#efcf83;box-shadow:inset 0 0 0 1px #efcf83;background:#22513a}
.language-picker button:focus-visible{outline:2px solid #c6963a;outline-offset:3px}
.language-picker svg{width:28px;height:20px;flex-shrink:0;border-radius:2px}
.settings-language{padding:12px 0 16px;border-bottom:1px solid #8e713340}
.settings-language h3{margin:0 0 12px;font:600 20px var(--serif)}
.settings-language .language-picker button{flex:1}
.music-controls{display:grid;gap:8px;min-width:0;padding:16px 0;border-bottom:1px solid #8e713340;text-align:left;color:var(--paper-ink)}
.music-controls [data-music-toggle]{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:100%;margin:0;--button-overhang:-5px}
.music-controls [data-music-toggle] .icon{width:18px;height:18px;flex-shrink:0}
.music-controls [data-music-button-label]{min-width:0;overflow-wrap:anywhere}
.music-controls [data-music-disable]{justify-self:center;min-height:44px;margin:0;padding:4px 8px;color:var(--paper-ink);font:12px/1.3 var(--sans);text-decoration:underline}
.music-volume{display:grid;grid-template-columns:auto minmax(0,1fr) 4ch;align-items:center;gap:8px;min-width:0;font:12px/1.3 var(--sans)}
.music-volume>span{min-width:0;overflow-wrap:anywhere}
.music-controls [data-music-volume]{width:100%;min-width:0;height:44px;margin:0;accent-color:var(--green);color-scheme:light;cursor:pointer}
.music-controls [data-music-volume]:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.music-controls [data-music-volume-value]{text-align:right;font-variant-numeric:tabular-nums}
.music-controls .music-status{margin:0;min-width:0;font:12px/1.4 var(--sans);color:var(--antique-muted,#5d5143);overflow-wrap:anywhere}
.music-controls[data-music-state=error] .music-status{color:var(--red)}
@media(forced-colors:active){.music-controls{color:CanvasText;border-color:CanvasText}.music-controls .music-status,.music-controls[data-music-state=error] .music-status{color:CanvasText}.music-controls [data-music-volume]:focus-visible{outline-color:Highlight}}
@media(max-width:620px){.title-top{flex-wrap:wrap}.title-controls{width:100%;justify-content:space-between;gap:8px}.title-controls .language-picker{gap:4px}.title-controls .language-picker button{padding:8px;font-size:11px}.title-controls .title-version{padding-inline:8px;font-size:12px}}
.at-title #app{display:none}
.title-screen{position:fixed;inset:0;overflow:hidden;isolation:isolate;display:flex;flex-direction:column;height:100dvh;min-height:0;background:#111d19;color:var(--gold-light);font-family:var(--sans)}
.title-screen[hidden]{display:none}
.title-content{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;}
.title-scenery{position:fixed;inset:0;z-index:-2;overflow:hidden;pointer-events:none;background:#172c23}
/* One existing landscape, a slow camera and a faint valley haze; controls stay still. */
.title-landscape{position:absolute;inset:0;background:url('./art-web/title-reinos-v1-4b2303ab92.webp') center center/cover no-repeat;transform:scale(1.05);animation:title-landscape-drift 36s ease-in-out -9s infinite alternate paused}
/* A shared art plane keeps chimney/flag anchors exact at every cover crop. */
.title-scene-details{position:absolute;left:50%;top:50%;width:max(100%,calc(100dvh * 1672 / 940));aspect-ratio:1672/940;transform:translate(-50%,-50%);pointer-events:none}
.title-pennant{position:absolute;overflow:hidden}
.title-smoke{position:absolute;transform:translate(-50%,-100%);pointer-events:none}
.title-smoke-puff{position:absolute;inset:0;transform-origin:50% 100%;opacity:0;background:radial-gradient(ellipse at 46% 75%,#dcd6cdb3,transparent 48%),radial-gradient(ellipse at 59% 42%,#d5d0c780,transparent 42%),radial-gradient(ellipse at 40% 22%,#e0dbd15c,transparent 37%);animation:title-chimney-smoke var(--smoke-duration) linear infinite paused}
@keyframes title-chimney-smoke{0%{transform:translate3d(-5%,25%,0) scale(.35,.55);opacity:0}18%{opacity:.42}60%{opacity:.26}100%{transform:translate3d(55%,-65%,0) scale(1.15,1.25);opacity:0}}
.title-atmosphere{position:absolute;left:20%;top:29%;width:62%;height:22%;background:radial-gradient(ellipse at 35% 48%,#eadfc312,transparent 68%),radial-gradient(ellipse at 73% 56%,#fff5dd0c,transparent 60%);animation:title-valley-drift 58s ease-in-out infinite alternate paused}
.title-screen[data-scene-motion=running] :is(.title-landscape,.title-atmosphere,.title-smoke-puff){animation-play-state:running}
.title-screen[data-scene-motion=static] :is(.title-landscape,.title-atmosphere),.reduce-motion .title-screen :is(.title-landscape,.title-atmosphere){animation:none;transform:none}
.title-screen[data-scene-motion=static] .title-atmosphere,.reduce-motion .title-screen .title-atmosphere{display:none}
.title-screen[data-scene-motion=static] .title-scene-details,.reduce-motion .title-screen .title-scene-details{display:none}
/* Start mid-glide so the motion is visible on arrival, with smooth reversals. */
@keyframes title-landscape-drift{from{transform:translate3d(-1.3%,.5%,0) scale(1.05)}to{transform:translate3d(1.3%,-.5%,0) scale(1.075)}}
@keyframes title-valley-drift{from{transform:translate3d(-2%,1%,0);opacity:.4}to{transform:translate3d(2%,-1%,0);opacity:.8}}
@keyframes title-landscape-drift-mobile{from{transform:translate3d(-.75%,.3%,0) scale(1.035)}to{transform:translate3d(.75%,-.3%,0) scale(1.055)}}
.title-scenery::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#06100cc2 0%,#09140b67 27%,#0b180d08 61%,transparent 85%),linear-gradient(0deg,#050c0cd9,transparent 36%,transparent 81%,#0c160a30)}
.title-top{display:flex;align-items:center;justify-content:space-between;padding:16px 32px 8px;gap:16px;flex-shrink:0}
.title-edition{font-size:9px;font-weight:600;letter-spacing:2.4px;color:#f1dcaa;text-shadow:0 1px 4px #000}
.title-version{position:relative;isolation:isolate;display:flex;align-items:center;gap:8px;padding:4px 16px;min-height:44px;font:500 14px var(--serif);color:#f7e5ba;text-shadow:0 1px 3px #000;background:linear-gradient(#183726d9,#0d1e15e8);border:6px solid transparent;border-image:url('./art-web/hud-frame-v1-7e9c949098.webp') 18% 6% / 6px / 0 stretch;border-radius:0}
.title-version .icon{width:19px;height:19px;color:#dab574}
.title-main{position:relative;flex:1 0 auto;display:flex;flex-direction:column;justify-content:center;width:clamp(320px,34vw,400px);margin-left:clamp(40px,6vw,120px);padding:16px 0 28px;text-align:center}
.title-identity{--title-crest-size:46px;--title-letter-spacing:5px;position:relative;isolation:isolate}
.title-standard{position:absolute;z-index:-1;left:-76px;top:-40px;width:152px;height:212px;background:url('./art-web/governor-regalia-v1-d5b7eac8bf.webp') left center/200% 100% no-repeat;filter:drop-shadow(2px 5px 4px #0009);pointer-events:none}
.title-letter-i{position:relative;display:inline-block;vertical-align:baseline}
.title-crest{position:absolute;left:calc(50% - var(--title-letter-spacing)/2);bottom:calc(100% + 4px);transform:translateX(-50%);display:flex;align-items:center;justify-content:center;margin:0;width:var(--title-crest-size);height:var(--title-crest-size);color:#edc576;pointer-events:none}
.title-crest .icon{width:42px;height:42px;filter:drop-shadow(0 2px 1px #201608) drop-shadow(0 3px 5px #0008)}
.title-identity h1{position:relative;font:600 clamp(78px,8.6vw,108px)/.85 var(--serif);letter-spacing:var(--title-letter-spacing);white-space:nowrap;color:#f4d38a;text-shadow:0 1px #ffecb7,0 2px 1px #643f13,0 4px 2px #271b0e,0 8px 20px #0007;margin:0 -5px 10px 0;padding-top:calc(var(--title-crest-size) + 4px)}
.title-credit{margin:0 0 8px;font:600 12px/1.25 var(--sans);letter-spacing:1px;color:#f0d69c;text-shadow:0 2px 4px #000}
.title-screen[data-progression=true] .title-credit{font-weight:400;font-size:11px;letter-spacing:.6px}
.title-install-menu .title-menu-body{padding:var(--space,8px)}
.title-install-status{font:600 15px/1.4 var(--serif);margin:var(--space,8px) 0;color:var(--antique-ink)}
.title-install-menu .title-install-status{margin-top:calc(var(--space,8px) * 5)}
.title-install-guide{font:12px/1.5 var(--sans);margin:var(--space,8px) 0;color:var(--antique-muted)}
.title-screen[data-install-required=true] .title-main{gap:var(--space,8px)}
.title-screen[data-install-required=true] .title-identity h1{font-size:clamp(48px,10vw,100px)}
.title-rule{display:flex;align-items:center;gap:12px;justify-content:center;color:#d6b36c;width:75%;margin:auto;font-size:8px;line-height:10px}
.title-rule::before,.title-rule::after{content:'';height:1px;flex:1;background:linear-gradient(90deg,transparent,#b79857)}
.title-rule::after{transform:rotate(180deg)}
.title-motto{font:600 24px/1.05 var(--serif);margin:12px 0 22px;color:#f5e6be;text-shadow:0 2px 3px #07100b,0 2px 12px #000}
.title-menu{position:relative;isolation:isolate;padding:0;background:#e2cba0;background-clip:padding-box;border:12px solid transparent;border-image:url('./art-web/ui-parchment-v1-a75a2ca072.webp') 8% fill / 12px / 0 stretch;box-shadow:0 12px 30px #0008;color:#42301a}
.title-menu-heading{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;min-height:34px;margin:-3px -2px 0;padding:5px 8px 5px 42px;background:linear-gradient(#20150833,#08060588),url('./art-web/wood-dark-v3-331b77e862.webp') center/500px auto;border:6px solid transparent;border-image:url('./art-web/hud-frame-v1-7e9c949098.webp') 18% 6% / 6px / 0 stretch}
.title-menu-heading h2{position:relative;z-index:1;margin:0;font:600 10px/1.3 var(--sans);letter-spacing:1.6px;color:#f1d38f;text-shadow:0 1px 2px #000}
.title-menu-banner{position:absolute;left:-18px;top:-14px;width:88px;height:90px;background:url('./art-web/governor-regalia-v1-d5b7eac8bf.webp') left center/200% 100% no-repeat;filter:drop-shadow(1px 3px 2px #38210a88);pointer-events:none}
.title-menu-body{position:relative;padding:0 8px 8px}
.title-campaign{min-height:30px;display:flex;align-items:center;justify-content:center;font:500 13px/1.3 var(--serif);color:#43311a;margin:3px 0 8px;padding:3px 0 4px 35px;border-bottom:1px solid #98754355;overflow-wrap:anywhere}
.title-primary,.title-secondary{width:100%;display:flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:8px 16px;font:600 20px var(--serif);border:1px solid #e5c67c;box-shadow:inset 0 0 0 3px #3e322925,0 3px 9px #0005;background:linear-gradient(110deg,#ae8540,#efd08a 50%,#b98e49);color:#2e2415;text-shadow:0 1px #fff4}
.title-primary>.icon{width:22px;height:22px;flex-shrink:0}.title-primary>.icon:last-child{width:17px;margin-left:auto}.title-primary span{flex:1}
.title-primary:hover:not(:disabled){filter:brightness(1.1)}
.title-primary:disabled,.title-secondary:disabled{opacity:.55;cursor:wait}
.title-secondary{font-size:16px;color:#ead7b0;min-height:44px;margin-top:8px;background:#10271e80;border-color:#a5854f77;box-shadow:inset 0 0 0 3px #040a0633;text-shadow:0 2px 2px #000}
.title-secondary>.icon{width:19px;height:19px;flex-shrink:0}.title-secondary span{flex:1;padding-right:25px}
.title-secondary:hover:not(:disabled){background:#244d3980}
.title-secondary[hidden]{display:none}
.title-primary[hidden],.title-featured-games[hidden]{display:none}
.title-featured-games{margin:14px 0 18px}
.title-featured-game+.title-featured-game{margin-top:14px}
.title-featured-game p{margin:0 0 8px;font:600 13px/1.3 var(--serif);color:#49351e;overflow-wrap:anywhere}
.title-featured-game .title-primary{font-size:18px;gap:7px;padding-inline:20px}
.title-primary span{min-width:0;overflow-wrap:anywhere}
.title-saved-games{margin:18px 0 6px;padding-top:12px;border-top:1px solid #98754366;text-align:left}
.title-saved-games[hidden]{display:none}
.title-saved-games h3{margin:0 0 10px;color:#49351e;font:700 18px/1.2 var(--serif)}
.title-saved-game{padding:10px 8px 12px;margin-bottom:10px;border:1px solid #98754355;background:linear-gradient(110deg,#fff8e333,#b8944911);min-width:0}
.title-saved-game:last-child{margin-bottom:0}
.title-saved-game-copy{min-width:0;overflow-wrap:anywhere}
.title-saved-game-copy strong{display:block;color:#382b1d;font:700 17px/1.2 var(--serif)}
.title-saved-game-copy small{display:block;color:#65543c;font:11px/1.4 var(--sans);margin-top:4px}
.title-menu .title-saved-enter{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;width:100%;margin-top:10px;padding:8px 18px;font:600 17px/1.2 var(--serif);--button-overhang:-7px}
.title-saved-enter .icon{flex:none;width:18px;height:18px}
.title-saved-enter span{min-width:0;overflow-wrap:anywhere;text-align:center}
@media(forced-colors:active){.title-saved-game{background:Canvas;border-color:CanvasText}.title-featured-game p,.title-saved-games h3,.title-saved-game-copy strong,.title-saved-game-copy small{color:CanvasText}}
.title-save{margin:10px 0 0;font:500 11px/1.4 var(--serif);color:#574326}
.title-retry{min-height:44px;color:#4a361b;font-size:12px;font-weight:600;text-decoration:underline;background:transparent;border:0}
.title-promise{font:500 15px/1.05 var(--serif);color:#f0e0b5;margin:20px 0 0;text-shadow:0 2px 3px #091109,0 2px 8px #000}
.title-world-note{position:absolute;right:5%;bottom:28px;width:min(34vw,370px);text-align:center;text-shadow:0 2px 4px #000,0 1px 14px #000}
.title-world-note .eyebrow{font-size:9px;letter-spacing:2px;color:#ecd39a}.title-world-note .title-rule{width:90%;margin:8px auto 2px}.title-world-note p{font:500 14px/1.25 var(--serif);color:#f4e5c1;margin:4px 0 0}
.title-era-line{display:flex;align-items:center;justify-content:center;gap:12px;padding:0;margin:0;list-style:none;font:600 29px/1.1 var(--serif);color:#f5daa0}.title-era-line li{display:flex;align-items:center;gap:12px}.title-era-line li+li::before{content:'';height:1px;width:18px;background:linear-gradient(90deg,#b6985e55,#dbb974,#b6985e55)}
.title-bottom{position:relative;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:3px 4%;min-height:72px;border:8px solid transparent;border-image:url('./art-web/hud-frame-v1-7e9c949098.webp') 18% 6% / 8px / 0 stretch;background:linear-gradient(#130d0766,#070704a8),url('./art-web/wood-dark-v3-331b77e862.webp') center/768px auto;box-shadow:0 -4px 16px #0006}
/* Hang the settings banner from the upper timber frame. */
.title-settings{align-self:flex-start;top:-8px}
.title-links{position:relative;display:flex;gap:28px;min-width:0;flex:1}.title-links button{min-height:44px;display:flex;align-items:center;gap:10px;padding:8px 0;color:#efdab0;font:500 16px var(--serif);background:transparent;border:0}.title-links .icon{height:25px;width:25px;color:#d8b673}.title-links button:hover{color:#fff5d1}.title-footnote{max-width:340px;border-left:1px solid #a6874599;padding-left:24px;font:500 13px/1.3 var(--serif);color:#ead9b2}
.title-screen button:focus-visible,.home-info button:focus-visible,.title-return:focus-visible{outline:2px solid #f1d68d;outline-offset:4px}
.title-return{position:relative;background:none;border:0;padding:0;min-height:24px;font:700 10px var(--sans);letter-spacing:2px;color:var(--gold);text-align:left}.title-return::after{content:'';position:absolute;left:0;top:50%;width:max(100%,80px);height:44px;transform:translateY(-50%)}.title-return:hover{text-decoration:underline}
.home-info{padding:0;width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 32px);color:var(--paper-ink)}
.home-info[open]{display:flex;flex-direction:column}
.home-info-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px 12px;border-bottom:1px solid #9e7d4238;flex-shrink:0}
.home-info-header .eyebrow{color:#897043;font-size:9px;letter-spacing:2px}
.home-info-header h2{font:600 29px/1.1 var(--serif);margin:4px 0;color:#49371d}
.home-info-header .icon-button{flex-shrink:0;color:#715831}
.home-info-nav{display:flex;gap:4px;padding:0 16px;border-bottom:1px solid #a8854945;flex-shrink:0}
.home-info-nav button{flex:1;min-height:44px;font:500 12px var(--sans);background:transparent;border:0;border-bottom:2px solid transparent;color:#725b36}
.home-info-nav button[aria-current]{border-bottom-color:#85622d;color:#342a1b;font-weight:700}
.home-info-body{padding:20px 24px 24px;overflow:auto;font:13px/1.65 var(--sans);overscroll-behavior:contain}
.home-info-body p{margin:0 0 12px}.home-info-body h3{font:600 21px/1.15 var(--serif);margin:0 0 6px;color:#49371d}
.home-info-body .home-info-lead{font:600 24px/1.15 var(--serif);margin:0 0 16px;color:#49371d}
.home-info-body .notice{font-size:12px;line-height:1.6;margin:16px 0 0}
.home-info-landscape{height:140px;background:url('./art-web/kingdom-f2c6e5428d.webp') center 41%/cover;border:1px solid #a5854f77;margin-bottom:20px;box-shadow:inset 0 0 20px #30251933}
.home-pillars{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;border-block:1px solid #a8854945;margin:20px 0;padding:16px 0}
.home-pillars .icon{width:24px;height:24px;color:#856333;margin-bottom:6px}.home-pillars p{font-size:11px;line-height:1.6;margin:0}
.home-era-strip{display:flex;gap:8px;justify-content:space-between;text-align:center}.home-era-strip span{flex:1;font-size:10px;color:#705b39}.home-era-strip b{display:block;font:600 26px var(--serif);color:#6d5125;margin-bottom:4px}
.home-guide{list-style:none;padding:0;margin:0}.home-guide li{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid #a8854940}.home-guide li:first-child{padding-top:4px}.home-guide li>span{width:40px;flex-shrink:0;color:#8b6a34}.home-guide .icon{width:30px;height:30px}.home-guide p{margin:0}
.home-faction-list{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.home-faction-list button{display:flex;flex-direction:column;align-items:center;gap:10px;min-height:96px;background:#a1833920;border:1px solid #9e7f4544;border-radius:2px;color:#78603c;padding:12px 4px 8px;font:10px/1.35 var(--sans)}.home-faction-list .icon{height:29px;width:29px}.home-faction-list button[aria-pressed=true]{background:#173d32;color:#f0d99c;border-color:#776037;box-shadow:inset 0 0 0 3px #b9955025}
.home-faction-detail{text-align:center;margin:24px 0 8px;min-height:190px}.home-faction-seal{display:grid;place-items:center;width:66px;height:76px;margin:0 auto 16px;color:#edce8c;background:linear-gradient(135deg,#335d48,#122e27);border:1px solid #9c7c44;clip-path:polygon(0 0,100% 0,100% 78%,50% 100%,0 78%)}.home-faction-seal .icon{width:38px;height:38px}.home-faction-detail .eyebrow{font-size:9px;letter-spacing:1.5px;color:#7e6a42}.home-faction-detail h3{font-size:28px;margin-top:6px}.home-faction-detail p{font-size:14px;color:#265340}
.home-version-status{display:flex;gap:16px;padding:16px 0;border-bottom:1px solid #a8854940}.home-version-status>.icon{width:26px;height:26px;flex-shrink:0;color:#856333}.home-version-status p{margin:0}
@media(max-width:1000px){.title-footnote{display:none}.title-bottom{justify-content:center;padding-inline:24px;gap:16px}.title-links{width:min(580px,100%);justify-content:space-around}.title-world-note{right:4%;width:34vw;bottom:24px}.title-world-note .eyebrow{font-size:8px;letter-spacing:1.4px}.title-era-line,.title-era-line li{gap:8px}.title-era-line li+li::before{width:12px}}
@media(max-width:699px){
 .title-top{padding:max(8px,env(safe-area-inset-top)) 16px 4px;gap:8px}.title-edition{font-size:8px;line-height:1.5;letter-spacing:1.3px;max-width:130px}.title-version{min-height:44px;flex-shrink:0;font-size:12px;padding-inline:8px;gap:6px}.title-version .icon{width:16px;height:16px}
 .title-landscape{background-position:64% center;animation-name:title-landscape-drift-mobile}.title-atmosphere{left:-20%;top:35%;width:140%}.title-scenery::after{background:linear-gradient(0deg,#07100edb 0%,#0b170d77 33%,#0c1c1022 66%,#0a170f42 100%)}
 .title-scene-details{left:64%;transform:translate(-64%,-50%)}
 .title-main{width:auto;margin:0;padding:12px 20px 16px;justify-content:center;flex:1 0 auto;min-height:0}
 .title-identity{--title-crest-size:32px;--title-letter-spacing:4px;width:100%;max-width:368px;align-self:center}.title-standard{left:-42px;top:-14px;width:112px;height:156px}.title-crest .icon{width:30px;height:30px}.title-identity h1{font-size:72px;margin-bottom:8px}.title-rule{width:70%}.title-motto{font-size:21px;line-height:1.05;margin:10px 0 18px}
 .title-menu{width:100%;max-width:368px;align-self:center;border-width:10px;border-image-width:10px}.title-menu-heading{min-height:32px;padding-left:36px}.title-menu-heading h2{font-size:9px;letter-spacing:1.3px}.title-menu-banner{left:-18px;width:80px;height:82px}.title-menu-body{padding:0 6px 7px}.title-campaign{font-size:12px;min-height:29px;padding-left:31px;margin:3px 0 7px}.title-save{font-size:11px;line-height:1.3;margin-top:8px}.title-promise{font-size:13px;margin-top:14px;line-height:1.05}
 .title-world-note{position:relative;right:auto;bottom:auto;flex:none;align-self:center;width:min(320px,calc(100% - 40px));padding:0 0 14px;margin:0}.title-world-note .eyebrow{font-size:8px;letter-spacing:1.3px}.title-world-note .title-rule{width:80%;margin:4px auto 1px}.title-era-line{font-size:23px;gap:12px}.title-era-line li{gap:12px}.title-era-line li+li::before{width:18px}.title-world-note p{font-size:12px;margin-top:3px}
 .title-bottom{gap:8px;padding:2px 8px max(4px,env(safe-area-inset-bottom));min-height:66px;border-width:6px;border-image-width:6px}.title-links{gap:8px;width:100%}.title-links button{flex:1;min-width:0;justify-content:center;flex-direction:column;gap:4px;padding:4px 0;font-size:12px;line-height:1.15;min-height:44px;white-space:normal;text-align:center}.title-links .icon{width:20px;height:20px;flex-shrink:0}
 .home-info{width:calc(100vw - 16px);max-height:calc(100dvh - 24px)}.home-info-header{padding:16px 16px 12px;gap:8px}.home-info-header h2{font-size:24px}.home-info-body{padding:16px;font-size:12px}.home-info-body .home-info-lead{font-size:22px}.home-info-nav{padding:0 8px}.home-info-nav button{font-size:11px}.home-info-landscape{height:110px}.home-pillars{gap:12px}.home-pillars h3{font-size:20px}.home-pillars p{font-size:10px}.home-era-strip{gap:4px}.home-era-strip span{font-size:9px}.home-guide li{gap:8px}.home-guide li>span{width:32px}.home-guide .icon{width:25px;height:25px}.home-faction-list{gap:4px}.home-faction-list button{font-size:9px;min-height:96px;padding:10px 3px 6px}.home-faction-list .icon{width:25px;height:25px}.home-faction-detail h3{font-size:26px}
}
@media(max-height:750px) and (min-width:700px){.title-top{padding-block:8px}.title-main{padding-block:4px 20px}.title-identity{--title-crest-size:32px}.title-crest .icon{width:30px;height:30px}.title-identity h1{font-size:84px}.title-motto{margin:10px 0 16px;font-size:23px}.title-promise{margin-top:16px}.title-standard{top:-36px;height:194px}.title-bottom{min-height:66px}}
@media(max-width:699px) and (max-height:730px){.title-main{padding-block:8px 12px}.title-identity h1{font-size:64px}.title-identity{--title-crest-size:28px}.title-crest .icon{width:27px;height:27px}.title-standard{width:102px;height:140px;top:-8px}.title-motto{font-size:20px;margin:8px 0 14px}.title-promise{display:none}.title-world-note{padding-bottom:10px}}
@media(prefers-reduced-motion:reduce){.title-screen *{transition:none!important;animation:none!important}.title-screen .title-landscape{transform:none!important}.title-atmosphere,.title-scene-details{display:none}}
@media(max-width:379px){.title-main{padding-inline:18px}.title-identity h1{font-size:66px}.title-links{gap:4px}.title-links button{font-size:12px;gap:4px}.title-links .icon{width:18px;height:18px}}
@media(forced-colors:active){.title-scenery,.title-standard,.title-menu-banner{display:none}.title-screen{background:Canvas;color:CanvasText}.title-menu,.title-menu-heading,.title-bottom,.title-version{background:Canvas;border:1px solid CanvasText;border-image:none;box-shadow:none}.title-identity h1,.title-credit,.title-motto,.title-promise,.title-campaign,.title-save,.title-menu-heading h2,.title-world-note p,.title-world-note .eyebrow,.title-era-line,.title-edition,.title-footnote,.title-links button,.title-version,.title-retry{color:CanvasText;text-shadow:none}.title-screen button:focus-visible{outline-color:Highlight}}

/* Progression opening approved for desktop/mobile; Original keeps its composition. */
.title-screen[data-progression=true] .title-content{justify-content:flex-start}
.title-screen[data-progression=true] .title-main{flex:none;width:min(520px,calc(100% - 32px));margin:auto;padding:24px 0 40px;gap:24px}
.title-screen[data-progression=true] :is(.title-standard,.title-menu-banner){display:none}
.title-screen[data-progression=true] .title-identity{--title-crest-size:52px;--title-letter-spacing:4px;width:100%;max-width:none}
.title-screen[data-progression=true] .title-identity h1{font-size:clamp(72px,8.5vw,128px);margin:0 0 12px}
.title-screen[data-progression=true] .title-letter-i{letter-spacing:0;margin-right:var(--title-letter-spacing)}
.title-screen[data-progression=true] .title-crest{left:50%;bottom:calc(100% + 6px)}
.title-screen[data-progression=true] .title-crest .icon{width:100%;height:100%}
.title-screen[data-progression=true] .title-credit{font-size:13px;font-weight:400;letter-spacing:.6px;margin-bottom:12px}
.title-screen[data-progression=true] .title-identity .title-rule{width:72%;gap:16px;font:24px/1 var(--serif)}
.title-screen[data-progression=true] .title-identity .title-rule::before,.title-screen[data-progression=true] .title-identity .title-rule::after{height:2px;background:linear-gradient(90deg,#a67d35,#efd492,#a67d35)}
.title-screen[data-progression=true] .title-menu{width:100%;max-width:none}
.title-screen[data-progression=true] .title-landscape{background-image:url('./art-web/title-reinos-v2-5d32a9c143.webp')}
.title-screen[data-progression=true] .title-scene-details{display:none}
.title-screen[data-progression=true] .title-menu-heading{padding:8px;min-height:42px}
.title-screen[data-progression=true] .title-menu-heading h2{font-size:13px;letter-spacing:2px}
.title-screen[data-progression=true] .title-campaign{padding-left:0}
.title-screen[data-install-required=true] .title-menu-body{display:grid;gap:20px;padding:24px 20px 20px}
.title-screen[data-install-required=true] .title-install-status{font:500 23px/1.3 var(--serif);margin:0;min-height:60px;display:grid;place-items:center}
.title-screen[data-install-required=true] .title-primary{min-height:64px;font-size:28px}
.title-install-help{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:52px;padding:12px 16px;border:1px solid #a5854f99;background:#fff9e330;color:#49351d;font:500 22px/1.2 var(--serif);box-shadow:inset 0 0 0 3px #ae854015}
.title-install-help span{flex:1;text-align:left}.title-install-help .icon{flex:none;width:24px;height:24px}
#home-install-back .icon{transform:rotate(180deg)}
.title-install-help:hover{background:#fff9e380}
.title-screen[data-install-required=true] .title-retry{font:500 18px/1.3 var(--serif)}
.title-install-save{display:none;margin:0;color:#efd492;font:500 16px/1.3 var(--serif);text-shadow:0 2px 4px #000}
.title-install-steps{list-style:none;display:grid;gap:20px;margin:0;padding:0;text-align:left}
.title-install-steps li{display:flex;align-items:flex-start;gap:12px;min-width:0}
.title-install-step{display:grid;place-items:center;flex:none;width:32px;height:32px;background:#184631;color:#f7dda3;border:1px solid #a5854f;border-radius:50%;font:600 20px var(--serif)}
.title-install-step-copy{min-width:0}.title-install-step-copy h3{display:flex;align-items:center;gap:8px;margin:2px 0 8px;font:600 20px/1.2 var(--serif)}
.title-install-step-copy h3 .icon{flex:none;width:20px;height:20px}
.title-install-step-copy p{margin:0;font:14px/1.5 var(--sans);overflow-wrap:anywhere}
@media(max-width:699px){
 .title-screen[data-progression=true] .title-top{justify-content:center;padding:16px 16px 8px}
 .title-screen[data-progression=true] .title-edition{display:none}
 .title-screen[data-progression=true] .title-controls{flex-wrap:wrap;justify-content:center;gap:8px}
 .title-screen[data-progression=true] .title-version>span{display:inline}
 .title-screen[data-progression=true] .title-version{width:auto;font-size:14px;padding-inline:12px}
 .title-screen[data-progression=true] .title-main{width:calc(100% - 32px);padding:20px 0 32px;gap:28px}
 .title-screen[data-progression=true] .title-identity{--title-crest-size:38px;--title-letter-spacing:2px}
 .title-screen[data-progression=true] .title-identity h1{font-size:clamp(66px,20vw,118px);margin-bottom:8px}
 .title-screen[data-progression=true] .title-credit{font-size:12px;margin-bottom:8px}
 .title-screen[data-progression=true] .title-identity .title-rule{font-size:20px}
 .title-screen[data-progression=true] .title-menu-heading h2{font-size:12px;letter-spacing:1.2px}
 .title-screen[data-install-required=true] .title-menu-body{padding:20px 12px;gap:16px}
 .title-screen[data-install-required=true] .title-install-status{font-size:21px;min-height:54px}
 .title-screen[data-install-required=true] .title-primary{min-height:56px;font-size:24px}
 .title-install-help{font-size:20px;min-height:48px;padding:10px 12px}
 .title-screen[data-install-required=true] .title-retry{font-size:17px}
 .title-install-save{display:flex;align-items:center;justify-content:center;gap:12px}.title-install-save::before,.title-install-save::after{content:'';width:24px;height:1px;background:#c4a45d}
 .title-screen[data-progression=true] .title-bottom{justify-content:space-between;gap:12px}
 .title-screen[data-progression=true] .title-links{flex:1;justify-content:flex-start}
 .title-screen[data-progression=true] .title-links button{flex:none;flex-direction:row;font-size:16px}
 .title-install-steps{gap:16px}.title-install-step-copy h3{font-size:18px}.title-install-step-copy p{font-size:12px}
}
@media(max-width:379px){.title-screen[data-install-required=true] .title-primary{font-size:21px;padding-inline:18px;gap:8px}}
@media(forced-colors:active){.title-install-help,.title-install-step{background:ButtonFace;color:ButtonText;border-color:ButtonText;box-shadow:none}}

/* Keep essential actions visible; additional campaigns scroll inside the landscape. */
@media(max-width:379px){.title-version>span{display:none}.title-controls .title-version{width:44px;justify-content:center;padding-inline:4px}.title-links button{font-size:11px}}
@media(max-height:1100px){
 .title-screen[data-has-other-games=true] .title-main{padding-block:8px}
 .title-screen[data-has-other-games=true] .title-identity{--title-crest-size:28px;--title-letter-spacing:4px;margin-bottom:4px}
 .title-screen[data-has-other-games=true] .title-identity h1{font-size:64px;margin-bottom:8px}
 .title-screen[data-has-other-games=true] .title-crest .icon{width:27px;height:27px}
 .title-screen[data-has-other-games=true] .title-standard{left:-40px;top:0;width:102px;height:140px}
 .title-screen[data-has-other-games=true] :is(.title-motto,.title-promise,.title-world-note){display:none}
 .title-screen[data-has-other-games=true] .title-featured-games{margin:8px 0}
 .title-screen[data-has-other-games=true] .title-featured-game p{margin-bottom:4px}
 .title-screen[data-has-other-games=true] .title-saved-games{margin:8px 0 4px;padding-top:8px}
 .title-screen[data-has-other-games=true] .title-saved-games h3{font-size:16px;margin-bottom:6px}
 .title-screen[data-has-other-games=true] .title-saved-game{padding:8px;margin-bottom:8px}
 .title-screen[data-has-other-games=true] .title-saved-enter{margin-top:6px}
}

/* Short screens reserve room for the saved games without shrinking touch targets. */
@media(max-height:800px){
 .title-screen[data-has-other-games=true] .title-main{padding-block:4px}
 .title-screen[data-has-other-games=true] .title-top{padding-block:max(8px,env(safe-area-inset-top)) 4px}
 .title-screen[data-has-other-games=true] .title-edition{display:none}
 .title-screen[data-has-other-games=true] .title-controls{margin-left:auto}
 .title-screen[data-has-other-games=true] .title-identity{--title-crest-size:20px;margin-bottom:2px}
 .title-screen[data-has-other-games=true] .title-identity h1{font-size:48px;margin-bottom:4px}
 .title-screen[data-has-other-games=true] .title-crest .icon{width:20px;height:20px}
 .title-screen[data-has-other-games=true] .title-standard{left:-20px;top:0;width:70px;height:96px}
 .title-screen[data-has-other-games=true] .title-credit{margin-bottom:4px}
 .title-screen[data-has-other-games=true] .title-featured-games{margin:4px 0}
 .title-screen[data-has-other-games=true] .title-campaign{min-height:24px;margin-block:0 2px}
 .title-screen[data-has-other-games=true] .title-saved-games{margin-block:4px 2px;padding-top:4px}
 .title-screen[data-has-other-games=true] .title-saved-games h3{margin-bottom:4px}
 .title-screen[data-has-other-games=true] .title-saved-game{padding-block:4px}
 .title-screen[data-has-other-games=true] .title-saved-enter{margin-top:4px}
 .title-screen[data-has-other-games=true] .title-save{margin-top:2px}
}
