.brand-home{border:0;padding:3px 0;color:inherit;background:transparent;white-space:nowrap}
.brand-home:hover{color:var(--lime)}
.pixel-prop{image-rendering:pixelated;object-fit:contain}
.lobby-banner,.empire-head,.mode-card{border:2px solid var(--ink);border-radius:7px;overflow:hidden;box-shadow:4px 4px var(--ink);background:var(--cream)}
.lobby-art{min-height:285px;display:flex;align-items:center;position:relative;isolation:isolate;overflow:hidden;color:#fffcef;background:#252437 url('./assets/empire-city.png') center right/cover no-repeat;image-rendering:pixelated}
.lobby-art::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#222137 0%,#24223bc9 31%,transparent 62%)}
.lobby-copy{padding:29px 34px 30px;max-width:68%;image-rendering:auto}
.lobby-copy h1{font-size:clamp(54px,5.8vw,85px);margin:12px 0 13px;line-height:1.04}
.lobby-copy p{font-size:17px;line-height:1.45;color:#eeebf7}
.launch-row{display:flex;gap:16px;align-items:center;margin-top:21px}.launch-row>span{color:#e5dfeb;font:12px var(--mono);letter-spacing:.01em}
.launch-btn{padding:11px 18px;box-shadow:2px 3px #11101f;border:2px solid #100f1d;gap:10px;font-size:16px}
.play-pixel{display:block;width:12px;height:14px;background:var(--ink);clip-path:polygon(0 0,28% 0,28% 12%,55% 12%,55% 26%,78% 26%,78% 38%,100% 38%,100% 62%,78% 62%,78% 74%,55% 74%,55% 88%,28% 88%,28% 100%,0 100%)}
.map-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:2px solid var(--ink);background:#fbf9ef}
.district-stop{min-width:0;display:flex;align-items:center;gap:8px;padding:12px 12px;color:var(--ink);border:0;background:transparent;text-align:left;position:relative}
.district-stop+.district-stop{border-left:1px solid #c6c2b4}
.district-stop:hover,.district-stop:focus-visible{background:#eeeddc;z-index:1}
.district-stop img{width:56px;height:41px}
.district-stop span{display:grid;gap:1px}.district-stop strong{font-size:17px;line-height:1.2}.district-stop small,.mode-copy small,.empire-numbers small{font:11px var(--mono);text-transform:uppercase;letter-spacing:.06em;color:#66616d}
.side-modes{margin:29px 0 24px}
.mode-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.mode-card{display:grid;grid-template-columns:27% 1fr;padding:0;text-align:left;background:#fffdf4;cursor:pointer;transition:transform .15s}
.mode-card:hover{transform:translateY(-2px)}
.mode-illustration{align-self:stretch;display:grid;place-items:center;border-right:1.5px solid var(--ink);background-image:radial-gradient(#35314224 .7px,transparent .9px);background-size:6px 6px}
.mode-illustration img{width:95%;height:auto}
.daily-art,.map-market{--district:#d9e8c6;--trim:#6a8b54}.classic-art,.map-port{--district:#d2e5e8;--trim:#638c9a}.map-studio{--district:#e6d7ed;--trim:#88689b}.map-orbit{--district:#ffdbbd;--trim:#a9795a}
.daily-art{background-color:#e5dcf2}.classic-art{background-color:#f2d9b7}
.mode-copy{display:grid;align-content:center;gap:5px;padding:17px 18px}
.mode-copy strong{font-weight:750;font-size:25px;letter-spacing:-.7px;line-height:1.12}
.mode-copy>span{font-size:15px;line-height:1.4;color:#54515b}
.mode-copy b{font-size:14px;color:#373440;margin-top:4px;text-decoration:underline;text-underline-offset:3px}
#lobby-title:focus,#district-title:focus{outline:0}
#trophy-shelf{margin:0 0 24px}
.map-card{display:flex;align-items:center;gap:16px;padding:12px 17px;background:var(--district);border:1.5px solid var(--ink);border-radius:4px;margin-bottom:15px}
.map-card img{width:96px;height:62px}.map-card strong{display:block;font-size:19px}
.map-facts{margin-top:15px;padding-top:8px;border-top:1px dashed #b3ae9f}
#dialog-content .map-facts p{margin:5px 0}.map-facts strong{display:inline-block;margin-right:6px}
.empire-head{background:var(--cream)}
.year-header{border-bottom:2px solid var(--ink);display:flex;align-items:center;gap:16px;padding:16px 24px;background-color:var(--district);background-image:radial-gradient(#33324720 .8px,transparent 1px);background-size:7px 7px}
.year-emblem{display:grid;place-items:center;border:1.5px solid var(--ink);width:91px;height:74px;border-radius:4px;background:#fff8e59c}
.year-emblem img{width:82px;height:63px}
.year-title{flex:1}
.year-title .eyebrow{font-size:11px;color:#514b5a}
.year-title h1{color:var(--ink);text-shadow:none;margin:7px 0 4px;font-size:clamp(27px,3.8vw,49px);letter-spacing:-.04em}
.year-title p{font-size:15px;color:#46424e}
.empire-numbers{display:grid;grid-template-columns:1.2fr 1.2fr 1fr .8fr;padding:12px 0;background:#fffdf3}
.empire-numbers>div{min-width:0;padding:0 22px}.empire-numbers>div+div{border-left:1px solid #cbc8b9}
.empire-numbers small{display:block}.empire-numbers strong{display:block;font:clamp(19px,2.35vw,31px) var(--pixel);line-height:1.1;letter-spacing:-.04em;margin-top:5px}.empire-numbers div:first-child strong{color:#3a6138}
.empire-numbers em{font:16px var(--mono);color:#77717d;margin-left:7px}
.annual-goal{display:flex;align-items:center;justify-content:space-between;gap:9px;margin:15px 0 0;border-left:4px solid #848250;padding:6px 11px;background:#eeeacfa6;font-size:15px;color:#4a4653}
.annual-goal>strong{font:14px var(--mono);white-space:nowrap}
#empire-body{margin:25px 0}
.quarter-bar{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:16px}.quarter-bar .eyebrow{font-size:11px;margin:0 0 5px;color:#655f70}.quarter-bar>span{font:12px var(--mono);color:#5b5464}
.quarter-heading{margin-bottom:15px}
.ledger-year{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px dashed #c7c2b6;font-size:15px}
.ledger-note{padding-top:10px}
@media(max-width:850px){.lobby-copy{max-width:74%;padding:24px}.lobby-art{min-height:265px}.district-stop{padding:12px 7px;gap:4px}.district-stop img{width:44px;height:34px}.district-stop strong{font-size:15px}.mode-copy{padding:16px 12px}.mode-grid{gap:14px}}
@media(max-width:620px){.lobby-art{min-height:288px;align-items:flex-start;background-size:auto 67%;background-position:right bottom}.lobby-art::before{background:linear-gradient(180deg,#252337 0%,#252337f2 17%,#25233716 65%),linear-gradient(90deg,#252337a8,transparent 76%)}.lobby-copy{width:100%;max-width:100%;padding:20px 16px 67px}.lobby-copy h1{font-size:clamp(40px,9.25vw,57px);margin:10px 0}.lobby-copy p{font-size:15px;max-width:82%;line-height:1.36}.launch-row{align-items:flex-start;flex-direction:column;gap:8px;margin-top:13px}.launch-btn{min-height:41px;padding:8px 14px}.launch-row>span{font-size:11px;text-shadow:0 1px #141323}.map-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.district-stop{padding:7px 9px;gap:5px}.district-stop:nth-child(3){border-left:0}.district-stop:nth-child(n+3){border-top:1px solid #cec8b7}.district-stop img{width:40px;height:29px}.district-stop small{font-size:9px}.district-stop strong{font-size:14px}.side-modes{margin:23px 0 18px}.mode-grid{grid-template-columns:1fr;gap:13px}.mode-card{grid-template-columns:27% 1fr}.mode-copy{gap:4px;padding:12px 13px}.mode-copy strong{font-size:22px}.mode-copy small{font-size:10px}.mode-copy>span{font-size:14px}.mode-copy b{font-size:13px}.year-header{padding:12px 10px;gap:7px;flex-wrap:wrap}.year-emblem{width:52px;height:52px}.year-emblem img{width:49px;height:40px}.year-title .eyebrow{font-size:9px}.year-title h1{font-size:clamp(18px,4.9vw,30px);white-space:normal}.year-title p{font-size:12px}.year-header .ledger-button{font-size:12px;padding:6px}.year-header .ledger-button canvas{display:none}.empire-numbers{grid-template-columns:1fr 1fr;padding:0}.empire-numbers>div{padding:8px 10px}.empire-numbers>div:nth-child(3){border-left:0}.empire-numbers>div:nth-child(n+3){border-top:1px solid #d3ccbb}.empire-numbers strong{font-size:21px}.empire-numbers small{font-size:10px}.annual-goal{font-size:13px;align-items:flex-start}.annual-goal>strong{font-size:12px}.quarter-bar>span{display:none}#empire-body{margin:20px 0}.map-card{padding:9px}.map-card img{width:68px}}
.if-clear{display:block;font-size:12px;line-height:1.2;color:#53654e;margin-top:4px}
.annual-goal strong>small{display:block;text-align:right;font:11px var(--mono);color:#615d69;margin-top:2px}
.playtime-record{margin:14px 0;color:#56535e;font:13px var(--mono);line-height:1.5}
.filing-connection{margin:-4px 0 18px;padding:10px 14px;border-left:3px solid #93845d;background:#f4f0e4;color:#453f49;line-height:1.5}
.ledger-deal{border-bottom:1px dashed #c7c2b6;padding:8px 0}
.ledger-deal summary{cursor:pointer;font-weight:600}.ledger-deal ul{padding:0 0 0 14px;margin:8px 0}
.ledger-deal li{display:flex;justify-content:space-between;gap:10px;padding:4px 0}.ledger-deal li small{display:block;color:#625969}
.ledger-deal li strong{white-space:nowrap}

.lobby-art { min-height:clamp(290px,29vw,405px); }
.lobby-copy { max-width:min(65%,680px); }
.lobby-copy .lobby-hook { max-width:43ch; font-size:clamp(18px,1.8vw,23px); line-height:1.36; color:#fffaf1; }
.lobby-copy .lobby-goal { font-size:16px; line-height:1.4; margin-top:9px; color:#e9e4ef; }
.launch-row { flex-wrap:wrap; }
.launch-row > span { color:#ebe7f3; font-size:13px; }
.lobby-extras { margin:18px 0 0; border-block:1px solid #bdb8ad; }
.lobby-drawer + .lobby-drawer { border-top:1px solid #d4d0c4; }
.lobby-drawer > summary {
  min-height:48px; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 8px;
  font-weight:600; cursor:pointer; list-style:none; color:var(--ink);
}
.lobby-drawer > summary::-webkit-details-marker { display:none; }
.lobby-drawer > summary::after {
  content:""; width:8px; height:8px; flex:none; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin-right:3px;
}
.lobby-drawer[open] > summary::after { transform:rotate(225deg); }
.lobby-drawer > summary:hover { background:#ecebdf; }
.lobby-drawer > summary:focus-visible { outline:3px solid #7153cf; outline-offset:-3px; }
.drawer-content { padding:5px 8px 20px; }
.campaign-select { display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; }
.campaign-select label { font-weight:600; }
.campaign-select select { font:inherit; color:var(--ink); background:#fffdf4; border:1px solid #77727c; border-radius:4px; padding:8px; max-width:100%; }
.route-synopsis, .lobby-guide > p { max-width:70ch; margin:8px 0 14px; line-height:1.45; }
.drawer-content .mode-grid { margin-top:18px; }
.lobby-guide .map-strip { border:1px solid #aaa699; border-radius:4px; }
.opening-case button { padding:4px 0; background:transparent; border:0; color:#354a36; font:inherit; font-weight:650; text-decoration:underline; text-underline-offset:3px; text-align:start; }
body[data-screen="home"] .page-footer { display:none; }
.entry-head { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:0 12px; border-bottom:1px solid #bdb8ad; }
.entry-head h1 { color:var(--ink); font:700 clamp(19px,2.4vw,26px)/1.25 Outfit,system-ui,sans-serif; letter-spacing:-.02em; text-transform:none; text-shadow:none; white-space:normal; margin:0; padding:8px 0; }
.entry-accounts { grid-column:1/-1; border:1px solid #bdb8ad; border-radius:5px; overflow:hidden; margin:0 0 12px; background:#f9f8ee; }
.entry-income { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 16px; }
.entry-head > .ledger-button { justify-self:end; margin:4px 0; }
.entry-income h2 { font:700 17px/1.25 Outfit,system-ui,sans-serif; letter-spacing:0; }
.entry-income > span { font-size:14px; }
.entry-accounts .annual-goal { margin:0; border-radius:0; }
#empire-header:has(.entry-head) + #empire-body { margin-top:16px; }
@media(max-width:620px) {
  .lobby-copy { max-width:100%; padding:23px 17px 70px; }
  .lobby-art { min-height:292px; }
  .lobby-copy .lobby-hook { max-width:100%; font-size:18px; }
  .lobby-copy .lobby-goal { max-width:95%; font-size:15px; }
  .lobby-art::before { background:linear-gradient(180deg,#252337 0%,#252337ed 53%,#25233730 85%),linear-gradient(90deg,#252337a8,transparent 76%); }
  .launch-row > span { font-size:12px; }
  .lobby-extras { margin-top:15px; }
  .drawer-content { padding:6px 4px 15px; }
  .lobby-copy h1 { font-size:clamp(32px,9.5vw,57px); white-space:normal; }
  .campaign-select select { min-width:0; font-size:16px; }
  .district-stop { min-height:54px; }
  .district-stop small, .mode-copy small { font-size:12px; }
  .district-stop img { flex:none; }
  .district-stop span { min-width:0; overflow-wrap:break-word; }
  .entry-head { gap:0 4px; }
  .entry-income { padding:8px 10px; }
}

@media(max-width:620px), (pointer:coarse) {
  .launch-btn, .campaign-select select, .campaign-select button, .opening-case button { min-height:44px; }
}
@media(max-width:480px) {
  .campaign-select { display:grid; grid-template-columns:minmax(0,1fr); gap:7px; }
  .campaign-select select, .campaign-select button { width:100%; }
  .campaign-select button { white-space:normal; }
}

.campaign-intro {
  display:grid; grid-template-columns:minmax(120px,1fr) minmax(0,2.7fr);
  max-width:850px; margin:clamp(18px,5vw,54px) auto; overflow:hidden;
  background:var(--cream); border:2px solid var(--ink); border-radius:7px; box-shadow:4px 4px var(--ink);
}
.campaign-intro-art {
  display:grid; place-items:center; background-color:#dce7c5;
  background-image:repeating-linear-gradient(0deg,transparent 0 12px,#a6b49135 12px 14px);
  border-right:2px solid var(--ink);
}
.campaign-intro-art img { width:94%; height:auto; max-width:200px; }
.campaign-intro-copy { padding:clamp(22px,4vw,45px); }
.campaign-intro-copy .eyebrow { font-size:13px; color:#52584c; }
.campaign-intro-copy h1 {
  margin:8px 0 17px; font-size:clamp(26px,3.5vw,42px); line-height:1.2;
  text-shadow:none; white-space:normal; overflow-wrap:break-word;
}
.campaign-intro-copy p:not(.eyebrow) { font-size:17px; line-height:1.5; max-width:50ch; margin:0 0 10px; }
.campaign-intro-copy button { margin-top:10px; min-height:44px; }
@media(max-width:600px) {
  .campaign-intro { display:block; margin:14px 0 22px; }
  .campaign-intro-art { border:0; border-bottom:2px solid var(--ink); }
  .campaign-intro-art img { height:76px; width:auto; }
  .campaign-intro-copy { padding:19px; }
}
