/* Yasa / History in your hands — public identity and title screen. */
@font-face{font-family:Source;src:url(fonts/Source.ttf);font-display:swap}
@font-face{font-family:Literata;src:url(fonts/Literata.ttf);font-display:swap}
.skip-link{position:fixed;left:18px;top:-70px;z-index:2000;background:#dec183;color:#171a1e;padding:12px 20px;border-radius:5px}.skip-link:focus{top:10px}
.brand-lockup{display:flex;flex-direction:column;gap:6px;text-decoration:none;flex-shrink:0}.brand-lockup img{width:102px;height:auto}.brand-lockup span{font-size:11px;color:#bbc0c3;letter-spacing:.035em}
body[data-screen="menu"]{background:#171a1e}
body[data-screen="menu"] .masthead{padding:22px max(28px,calc((100vw - 1240px)/2));background:#171a1e;border-color:#6b727833}
body[data-screen="menu"] .brand-lockup img{width:120px}
body[data-screen="menu"] .toolbar{margin:0;gap:25px}
body[data-screen="menu"] .toolbar button{display:block;background:none;border:0;padding:10px 0;color:#eee6d7;font-size:14px}
body[data-screen="menu"] .toolbar button:hover{color:#dec183}
body[data-screen="menu"] .toolbar #adviserButton,body[data-screen="menu"] .toolbar #menuButton{display:none}
.main-menu{max-width:1440px;margin:0 auto;padding:0 36px 30px}
.menu-hero{position:relative;isolation:isolate;display:block;min-height:610px;margin:0 -36px;overflow:hidden;background:#171a1e}
.hero-art{position:absolute;inset:0;z-index:-3;width:100%;height:100%;object-fit:cover;object-position:72% 45%}
.menu-hero:before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#171a1ef5 0%,#171a1ee3 25%,#171a1e83 48%,#171a1e00 76%),linear-gradient(0deg,#171a1e,transparent 24%)}
.menu-copy{padding:70px 0 72px;margin-left:max(36px,calc((100% - 1240px)/2));position:relative;width:52%;max-width:600px}
.menu-copy>.eyebrow{font-size:10px;letter-spacing:.18em;color:#e1c38d}
.menu-copy h1{font-size:clamp(48px,5.25vw,76px);font-weight:450;line-height:1.12;letter-spacing:-.045em;margin:22px 0 25px;color:#f5ead5;text-wrap:balance}
.title-period{color:#d5b879}
.menu-intro{font-size:18px;line-height:1.65;color:#ded1d5}
.menu-actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 17px;max-width:500px}
.menu-start{display:flex;justify-content:space-between;gap:26px;align-items:center;font-size:15px;padding:15px 19px;border-radius:4px;min-height:52px}
.menu-start>span:last-child{font-size:19px}
.secondary-start{background:#171a1ebd;border-color:#6b7278;color:#f1e4d5}
.secondary-start:hover{background:#23292e}
.menu-resume{width:100%;max-width:445px;padding:11px 15px;background:#171a1ed9;border-color:#6b72785e}.menu-resume strong{font-size:14px}.menu-resume small{font-size:11px}
.menu-save-note{font-size:12px;line-height:1.6;color:#bbc0c3;max-width:360px}
.hero-caption{position:absolute;right:30px;bottom:32px;display:flex;flex-direction:column;text-align:right;gap:5px;color:#d7c5b4;text-shadow:0 2px 5px #000;font-size:11px}
.hero-caption>span:first-child{font-size:9px;text-transform:uppercase;letter-spacing:.16em;color:#dac091}
.game-at-a-glance{display:flex;justify-content:center;gap:0;border-bottom:1px solid #6b727855;padding:26px 0;color:#bbc0c3;font-size:13px}
.game-at-a-glance span{padding:0 38px;border-right:1px solid #6b727855}.game-at-a-glance span:last-child{border:0}.game-at-a-glance b{font:22px Literata,serif;color:#e1c38d;margin-right:8px}
.menu-commanders{padding:58px 0 0;border-radius:0;background:none}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin:0 0 34px}.section-heading h2{font-size:clamp(25px,3vw,36px);line-height:1.3;letter-spacing:-.025em;margin-top:12px;color:#ede2d2}.section-heading p{font-size:14px;line-height:1.7;color:#bbc0c3;max-width:380px}
.leader-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:26px;max-width:1180px;margin:0 auto}
.leader-choice{border:0;padding:0;background:none;border-radius:4px;min-width:0;text-align:center;align-items:center;display:flex;flex-direction:column}
.leader-choice .cardface{width:100%;max-width:164px;height:auto;aspect-ratio:63/88;filter:drop-shadow(0 14px 16px #0006);transition:transform .2s ease}
.leader-choice span{display:block}.leader-choice .leader-empire{font-size:10px;text-transform:uppercase;letter-spacing:.15em;color:#d6b886;margin-top:18px}.leader-choice strong{font:14px Literata,serif;color:#f0e4d3;margin-top:7px;font-weight:450;line-height:1.5}.leader-choice .leader-command{font-size:11px;color:#bbc0c3;margin-top:7px}
.leader-choice:hover{background:none}.leader-choice:hover .cardface{transform:translateY(-7px)}
.menu-commanders>.era-note{margin-top:30px;text-align:center;font-size:12px;color:#bbc0c3;line-height:1.6}
.how-it-plays{padding-top:60px;margin-top:54px;border-top:1px solid #6b727855}
.text-action{border:0;padding:8px 0;background:none;color:#dec183;border-radius:0;font-size:14px;white-space:nowrap}.text-action:hover{background:none;color:#f9e3b8}.text-action span{margin-left:8px}
.play-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}.play-steps article{position:relative;padding-left:48px}.step-number{position:absolute;left:0;top:0;color:#b19272;font:22px Literata,serif}.play-steps h3{font-size:20px;line-height:1.5;color:#ebdcca;margin-bottom:12px}.play-steps p{font-size:14px;line-height:1.8;color:#bbc0c3;max-width:320px}
.menu-destinations{grid-template-columns:repeat(2,1fr);gap:22px;margin-top:55px}.menu-destinations button{padding:25px 28px;border-radius:5px;background:linear-gradient(110deg,#23292e,#171a1e);border-color:#6b727877;gap:12px}.menu-destinations button:hover{background:#343b41;border-color:#bbc0c3}.menu-destinations strong{font-size:24px;color:#f0e3cd}.menu-destinations button>span:last-child{color:#bbc0c3;font-size:14px;line-height:1.6;width:100%}.menu-destinations b{float:right;font-size:20px;font-weight:400;color:#d9ba88}
.personal-tools{margin-top:34px;border-top:1px solid #6b727844;padding-top:22px}.personal-tools summary{font-size:12px;color:#bbc0c3}.menu-tools{border:0;margin-top:6px;padding:10px 0}.menu-tools>span{font-size:11px;line-height:1.7;color:#bbc0c3}
footer.site-footer{background:#171a1e;border-top:1px solid #6b727844;padding:34px 28px 36px!important;display:flex;align-items:center;justify-content:space-between;gap:25px;max-width:none;text-align:left;font-size:12px}
.site-footer>div{display:flex;flex-direction:column;gap:6px;flex-shrink:0}.site-footer strong{font:20px Literata,serif;letter-spacing:.13em;color:#e2c48e}.site-footer span{color:#bbc0c3}.site-footer p{max-width:450px;font-size:12px;line-height:1.7;color:#bbc0c3}.site-footer a{text-decoration:none;font-size:12px;color:#dec183}.site-footer a:hover{text-decoration:underline}
@media(min-width:1440px){.main-menu{padding-left:80px;padding-right:80px}.menu-hero{margin:0 -80px}.hero-art{object-position:center center}}
@media(max-width:1000px){.menu-copy{padding-top:65px;width:58%}.menu-copy h1{font-size:58px}.hero-art{object-position:64% center}.leader-gallery{gap:16px}.leader-choice strong{font-size:12px}.section-heading p{max-width:295px}.play-steps{gap:20px}.play-steps article{padding-left:0}.step-number{position:static;display:block;margin-bottom:10px}.play-steps h3{font-size:18px}.game-at-a-glance span{padding:0 25px}}
@media(max-width:700px){body[data-screen="menu"] .masthead{display:flex;padding:18px 22px;align-items:center;gap:15px}body[data-screen="menu"] .brand-lockup img{width:96px}body[data-screen="menu"] .brand-lockup span{font-size:9px}body[data-screen="menu"] .toolbar{gap:16px}body[data-screen="menu"] .toolbar button{font-size:12px}body[data-screen="menu"] #decksButton{display:none}.main-menu{padding:0 22px 28px}.menu-hero{margin:0 -22px;min-height:670px;display:block}.hero-art{height:100%;object-position:65% center;opacity:.85}.menu-hero:before{background:linear-gradient(90deg,#171a1ee6,#171a1e77 70%,#171a1e22),linear-gradient(0deg,#171a1e,transparent 36%)}.menu-copy{margin-left:22px;padding:60px 0 95px;max-width:420px;width:calc(100% - 44px)}.menu-copy>.eyebrow{font-size:9px}.menu-copy h1{font-size:55px;max-width:330px;margin:24px 0}.menu-intro{font-size:16px;line-height:1.7}.menu-actions{max-width:345px;gap:10px;margin-top:30px}.menu-start{padding:14px 16px;gap:18px;font-size:14px}.menu-save-note{font-size:11px;max-width:270px;color:#eee6d7}.hero-caption{right:22px;bottom:27px;font-size:10px}.game-at-a-glance{justify-content:space-between;padding:23px 0;gap:8px}.game-at-a-glance span{padding:0 8px;font-size:10px;display:flex;flex-direction:column;gap:6px;flex:1;text-align:center}.game-at-a-glance b{font-size:20px;margin:0}.menu-commanders{padding-top:42px}.section-heading{display:block;margin-bottom:27px}.section-heading h2{font-size:28px;margin-top:11px}.section-heading p{margin-top:18px;font-size:13px;max-width:none}.leader-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 16px;max-width:500px}.leader-choice .cardface{max-width:150px}.leader-choice strong{font-size:11px}.leader-choice .leader-empire{font-size:8px;margin-top:13px}.leader-choice .leader-command{font-size:9px;margin-top:6px}.menu-commanders>.era-note{font-size:11px;margin-top:25px}.how-it-plays{margin-top:38px;padding-top:38px}.text-action{margin-top:18px;font-size:13px}.play-steps{grid-template-columns:1fr;gap:25px}.play-steps article{padding-left:43px}.step-number{position:absolute;font-size:20px}.play-steps h3{margin-bottom:8px}.play-steps p{max-width:none;font-size:13px}.menu-destinations{grid-template-columns:1fr;margin-top:37px;gap:14px}.menu-destinations button{padding:24px}.menu-destinations button>.eyebrow{display:block}.menu-destinations strong{font-size:22px}.menu-destinations button>span:last-child{font-size:13px}.menu-tools>span{margin:6px 0;width:100%}.site-footer{flex-direction:column;align-items:flex-start!important;gap:20px!important}.site-footer p{max-width:340px}}
@media(max-width:360px){body[data-screen="menu"] .toolbar{gap:10px}.menu-copy h1{font-size:46px}.menu-actions{flex-direction:column;max-width:255px}.menu-copy{padding-top:45px}.leader-gallery{gap:25px 10px}.leader-choice strong{font-size:10px}}
@media(prefers-reduced-motion:reduce){.leader-choice .cardface{transition:none}.leader-choice:hover .cardface{transform:none}}
/* Keep the commander's face visible above the copy on narrow screens. */
@media(max-width:700px){.menu-hero{min-height:0}.hero-art{height:350px;object-position:84% center;opacity:1}.menu-hero:before{background:linear-gradient(0deg,#171a1e 0%,#171a1e 51%,#171a1e00 80%)}.menu-copy{padding:285px 0 40px;max-width:none}.menu-copy h1{font-size:49px;margin:16px 0 20px}.menu-copy>.eyebrow{font-size:9px}.hero-caption{top:20px;bottom:auto;right:18px;font-size:9px}.hero-caption>span:first-child{font-size:8px}.menu-actions{margin-top:24px}.menu-save-note{max-width:315px}}
@media(max-width:360px){.menu-copy h1{font-size:43px}.menu-actions{flex-direction:row;max-width:none}.menu-start{font-size:12px;gap:10px;padding:13px 12px}}

.ranked-nav{color:var(--gold,#d7c39e);text-decoration:none;font-weight:650;padding:10px 12px;white-space:nowrap}.ranked-nav:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* Battlefield seal identity: approved vector lockups. */
.brand-lockup img{width:154px;height:auto}body[data-screen="menu"] .brand-lockup img{width:164px}.site-footer .footer-logo{width:148px;height:auto;display:block}.battle-menu-seal{display:inline-block;width:14px;height:14px;vertical-align:-2px;margin-right:6px}
@media(max-width:700px){body[data-screen="menu"] .brand-lockup img{width:126px}.brand-lockup span{max-width:126px;line-height:1.4}.identity-brand>span{max-width:115px;text-align:right}}
