.profile-actions{display:flex;gap:8px;margin-top:16px}.profile-actions .btn{width:auto}
.landing-actions{display:flex;align-items:center;gap:12px}.public-language{display:flex;align-items:center;gap:8px;margin:0!important;color:#7f92a8;font:700 9px var(--body);letter-spacing:.12em;text-transform:uppercase}.public-language select{width:auto;min-width:118px;margin:0;padding:9px 30px 9px 10px;border:1px solid #294158;border-radius:3px;background:#08121ed9;color:#d8e7f6}.auth-language{justify-content:center;margin:18px 0 4px!important}.auth-language select{min-width:150px}.hero-copy .btn i{font-style:normal}.landing[dir="rtl"],html[dir="rtl"] .landing{text-align:right}.landing[dir="rtl"] .hero-copy,html[dir="rtl"] .hero-copy{margin-left:auto}.landing[dir="rtl"] .feature-strip article,html[dir="rtl"] .feature-strip article{grid-template-columns:1fr 30px}.landing[dir="rtl"] .feature-strip article>b,html[dir="rtl"] .feature-strip article>b{grid-column:2}.landing[dir="rtl"] .feature-strip article>h3,html[dir="rtl"] .feature-strip article>h3{grid-column:1;grid-row:1}.landing[dir="rtl"] .feature-strip article>p,html[dir="rtl"] .feature-strip article>p{grid-column:1}
html[dir="rtl"] .dialog-close{right:auto;left:12px}
@media(max-width:720px){.landing-actions{gap:7px}.landing-nav{gap:8px}.public-language>span{display:none}.public-language select{min-width:92px;max-width:105px;padding:8px}.landing-actions .btn{padding:9px 10px}.auth-language>span{display:block}.auth-language select{min-width:145px;max-width:none}}

/* Complete resource ledger: all resources remain visible in the header. */
.game-shell{grid-template-rows:84px 1fr}
.resource-bar{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));grid-auto-flow:column;grid-auto-columns:minmax(118px,1fr);align-items:stretch;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#29445c #070c15}
.resource-pill{min-width:0;padding:7px 10px;position:relative;overflow:hidden}
.resource-pill small{display:flex;align-items:center;justify-content:space-between;gap:5px;white-space:nowrap}
.resource-pill small span{overflow:hidden;text-overflow:ellipsis}
.resource-pill small em{flex:none;border:1px solid #2d775e;background:#0d2b25;color:#7af0b7;border-radius:10px;padding:1px 4px;font:800 7px var(--body);letter-spacing:0}
.resource-pill b{margin-top:3px;font-size:13px;white-space:nowrap}
.resource-pill i{font-size:8px}
.resource-pill.has-bonus{background:linear-gradient(90deg,#12342a99,#0a162200)}
.resource-pill.has-bonus:after{content:"";position:absolute;inset:0 auto 0 0;width:2px;background:#65e6ad;box-shadow:0 0 8px #65e6ad}

@media(max-width:1100px){.resource-bar{grid-auto-columns:126px}}
@media(max-width:720px){.game-shell{display:block}.topbar{height:64px}.resource-bar{height:64px;display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity}.resource-pill{display:block!important;flex:0 0 104px;min-width:104px;padding:8px;scroll-snap-align:start}.resource-pill small em{font-size:6px}.resource-pill b{font-size:12px}.view{height:calc(100vh - 118px)}}

.space-map{touch-action:none;outline:none}
.space-map:focus-visible{box-shadow:inset 0 0 0 2px #58e1d2}
.map-zoom{position:absolute;z-index:2;right:14px;top:14px;padding:7px 9px;border:1px solid #213a50;background:#06101bd9;color:#7893aa;font:600 9px var(--body);letter-spacing:.05em;pointer-events:none}
.map-toolbar button{font-size:17px;border-radius:3px}.map-toolbar button:hover,.map-toolbar button:focus-visible{border-color:var(--cyan);color:var(--cyan);outline:none}
.map-legend{pointer-events:none}
@media(max-width:720px){.map-zoom{top:auto;right:8px;bottom:8px;max-width:62%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.map-legend{display:none}.map-toolbar{top:8px;left:8px}}
