/* Night Glass component polish — the places a palette swap alone leaves flat. Loaded last. */
/* calmer type: no shouty caps or wide tracking anywhere in the game */
.nation-shell *{text-transform:none!important}
.nation-shell :is(small,span,b,p,strong,em,label,summary,.nation-kicker){letter-spacing:0!important}
.nation-shell .nation-kicker{color:var(--acc)!important;font:500 13px/1.3 NGText,system-ui,sans-serif!important;margin-bottom:6px!important}

/* section titles: no gold bar or tinted banner, just big clean type */
.nation-shell #nationPanel section>h3,.nation-shell #nationPanel .nation-world-sub,.nation-shell #nationPanel>div>h3{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:22px 0 10px!important;color:#fff!important;font-size:clamp(24px,6.6vw,30px)!important;line-height:1.1!important;display:block!important;width:auto!important}

/* the "next action" card: a mint-lit glass card instead of a beige plaque */
.nation-shell .hud-order{background:linear-gradient(135deg,color-mix(in srgb,var(--acc) 16%,transparent),color-mix(in srgb,var(--acc) 4%,transparent) 60%,rgba(255,255,255,.03))!important;border:1px solid color-mix(in srgb,var(--acc) 38%,transparent)!important;border-radius:3px!important;box-shadow:0 0 34px color-mix(in srgb,var(--acc) 12%,transparent)!important;color:#fff!important}
.nation-shell .hud-order h3{color:#fff!important;font:600 17px/1.25 NGText,sans-serif!important;margin:0 0 4px!important}
.nation-shell .hud-order p{color:var(--ng-mut)!important;font:400 14px/1.5 NGText,sans-serif!important;margin:0!important}
.nation-shell .hud-order .hud-seal{background:var(--acc)!important;color:#0b1a12!important;border:0!important;box-shadow:0 0 0 5px color-mix(in srgb,var(--acc) 18%,transparent),0 0 22px color-mix(in srgb,var(--acc) 45%,transparent)!important;font:700 20px/1 NGText,sans-serif!important;text-shadow:none!important}
.nation-shell .hud-order.urgent{background:linear-gradient(135deg,rgba(239,154,134,.18),rgba(239,154,134,.05) 60%)!important;border-color:rgba(239,154,134,.45)!important;box-shadow:0 0 34px rgba(239,154,134,.14)!important}
.nation-shell .hud-order.urgent .hud-seal{background:var(--ng-pink)!important;box-shadow:0 0 0 5px rgba(239,154,134,.18),0 0 22px rgba(239,154,134,.45)!important}

/* top command bar: let the island name breathe */
.nation-shell .hud-command{background:rgba(11,31,36,.86)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:1px solid rgba(255,255,255,.08)!important}
.nation-shell .hud-command-id b{font-size:15px!important;font-weight:600!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:34vw;display:block}
.nation-shell .hud-command-id span{font-size:11.5px!important;color:var(--ng-mut)!important;white-space:nowrap}
.nation-shell .hud-command-bp b,.nation-shell #hudCorrupt b{font-weight:700!important}

/* bottom tab bar: glass with a mint active state */
.nation-shell .hud-tabbar{background:rgba(11,31,36,.9)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border-top:1px solid rgba(255,255,255,.08)!important}
.nation-shell .hud-tabbar button{color:#8aa19a!important;font-weight:500!important}
.nation-shell .hud-tabbar button[aria-current=page],.nation-shell .hud-tabbar button[aria-pressed=true]{color:#fff!important}
.nation-shell .hud-tabbar button[aria-current=page] svg,.nation-shell .hud-tabbar button[aria-pressed=true] svg{color:var(--acc)!important;stroke:var(--acc)!important;filter:drop-shadow(0 0 6px color-mix(in srgb,var(--acc) 60%,transparent))}
.nation-shell .hud-tabbar button[aria-current=page]::before,.nation-shell .hud-tabbar button[aria-pressed=true]::before{background:var(--acc)!important;box-shadow:0 0 10px color-mix(in srgb,var(--acc) 70%,transparent)}

/* primary buttons: one warm sun yellow, softly lit */
.nation-shell button.primary:not(:disabled),.nation-shell .primary:not(:disabled){background:var(--acc)!important;color:#1a1405!important;border:0!important;box-shadow:0 8px 24px color-mix(in srgb,var(--acc) 28%,transparent)!important;text-shadow:none!important}
/* secondary buttons: glass */
.nation-shell button.secondary,.nation-shell .secondary{background:rgba(255,255,255,.07)!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:none!important}

/* gains & losses read as signal colours, not boxed tags */
.nation-shell .nation-effect-tags small{background:rgba(255,255,255,.05)!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:3px!important;font:500 12px/1.2 NGText,sans-serif!important;padding:5px 9px!important}
.nation-shell .nation-effect-tags small.gain,.nation-shell .nation-effect-tags .gain{color:var(--acc)!important;border-color:color-mix(in srgb,var(--acc) 30%,transparent)!important;background:color-mix(in srgb,var(--acc) 7%,transparent)!important}
.nation-shell .nation-effect-tags small.loss,.nation-shell .nation-effect-tags .loss{color:var(--ng-pink)!important;border-color:rgba(239,154,134,.3)!important;background:rgba(239,154,134,.07)!important}

/* council letters centred, whatever older rules say */
body .nation-shell .nation-scenario .nation-choice-letter{display:grid!important;place-items:center!important;padding:0!important;line-height:1!important;text-align:center!important;min-width:34px}

/* disclosure rows */
.nation-shell details>summary{color:#fff!important}
.nation-shell details{border-color:rgba(255,255,255,.1)!important}

/* cards on the world tab: lighter weight titles, mint status */
.nation-shell .nation-country h4,.nation-shell .nation-country strong{color:#fff!important}
.nation-shell .nation-country-status{color:var(--acc)!important;font-size:12px!important;font-weight:500!important}

/* menu sheet */
.nation-mobile-menu{background:#0b1f24!important;color:#e9efe6!important}
.nation-mobile-menu :is(h2,h3,b,strong){color:#fff!important}

/* home + loading */
.sx,.nl{--gold:var(--acc);--gold2:#ffd866}
.sx *,.nl *{text-transform:none!important;letter-spacing:0!important}
.sx .sx-title,.nl .nl-title{font-family:NGText,system-ui,sans-serif!important;font-weight:700!important;letter-spacing:-.035em!important;line-height:.95!important;text-shadow:0 10px 40px rgba(8,5,25,.7)!important}
.sx .sx-title b,.nl .nl-title b{font-family:NGText,system-ui,sans-serif!important;font-weight:700!important;letter-spacing:-.035em!important;font-size:1em!important;color:transparent!important;background:linear-gradient(180deg,#fff2c2,var(--acc) 60%,#f0a81c);-webkit-background-clip:text;background-clip:text;text-shadow:none!important;filter:drop-shadow(0 6px 24px color-mix(in srgb,var(--acc) 35%,transparent))}
.sx .sx-k,.nl .nl-k,.nl .nl-studio{color:var(--acc)!important;font-weight:500!important;font-size:13px!important}
.sx .sx-pillar{font-weight:500!important;font-size:13px!important}
.sx .sx-cta,.nl .nl-go{background:var(--acc)!important;color:#1a1405!important;border:0!important;box-shadow:0 10px 30px color-mix(in srgb,var(--acc) 30%,transparent)!important;font-weight:600!important;text-shadow:none!important}
.sx .sx-cta *,.nl .nl-go *{color:#1a1405!important}
.nl .nl-go small,.nl .nl-go span{opacity:.75}
.sx .sx-ghost{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.14)!important;color:#fff!important;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.sx .sx-ico{width:18px;height:18px;fill:none;stroke:var(--acc);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sx .sx-card,.nl .nl-card{background:rgba(11,31,36,.78)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.1)!important}
body.standalone-site>header{background:rgba(11,31,36,.9)!important;border-bottom:1px solid rgba(255,255,255,.08)!important}
body.standalone-site>header .top button,body.standalone-site>header .top a{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:3px!important;color:#fff!important;text-decoration:none!important;padding:7px 12px!important}
body.standalone-site>header .brand{color:#fff!important;font-family:NGText,sans-serif!important;letter-spacing:0!important}
/* menu sheet */
.hud-menu-head #nationMobileMenuClose{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:3px!important;color:#fff!important;text-decoration:none!important;padding:8px 14px!important;outline:0!important;box-shadow:none!important}
.fr-menu{background:linear-gradient(135deg,color-mix(in srgb,var(--acc) 20%,transparent),color-mix(in srgb,var(--acc) 5%,transparent))!important;border:1px solid color-mix(in srgb,var(--acc) 40%,transparent)!important;box-shadow:0 0 30px color-mix(in srgb,var(--acc) 14%,transparent)!important;color:#fff!important}
.fr-menu>span svg{width:26px;height:26px;fill:none;stroke:var(--acc);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fr-menu small{color:var(--ng-mut)!important}
.sx .sx-tag{color:#c4d2cc!important;font-weight:400!important;font-size:16px!important}
.sx .sx-tag b,.sx .sx-tag strong{color:var(--acc)!important}
dialog,dialog *{font-family:NGText,system-ui,sans-serif!important}
dialog :is(h2,h3,b,strong){letter-spacing:-.01em}
/* quick task: a lit button, not a 'help' label */
.nation-shell #hudTask{background:linear-gradient(135deg,color-mix(in srgb,var(--acc) 22%,transparent),color-mix(in srgb,var(--acc) 6%,transparent))!important;border:1px solid color-mix(in srgb,var(--acc) 50%,transparent)!important;color:#fff!important;box-shadow:0 0 18px color-mix(in srgb,var(--acc) 25%,transparent)!important;animation:qtPulse 2.6s ease-in-out infinite}
.nation-shell #hudTask .hud-qt-ic svg{width:16px;height:16px;fill:var(--acc);stroke:none;filter:drop-shadow(0 0 4px color-mix(in srgb,var(--acc) 80%,transparent))}
.nation-shell #hudTask small{color:#fff!important;font-weight:600!important;font-size:10.5px!important;white-space:nowrap}
@keyframes qtPulse{50%{box-shadow:0 0 26px color-mix(in srgb,var(--acc) 45%,transparent)}}
@media (prefers-reduced-motion:reduce){.nation-shell #hudTask{animation:none}}
/* alerts: one glass toast, line icon, sentence case */
.nation-alert{background:rgba(15,40,46,.94)!important;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.14)!important;border-radius:3px!important;box-shadow:0 18px 40px rgba(0,0,0,.45)!important;color:#fff!important;font-family:NGText,system-ui,sans-serif!important}
.nation-alert *{font-family:NGText,system-ui,sans-serif!important;text-transform:none!important;letter-spacing:0!important}
.nation-alert h4{font-family:NGDisplay,NGText,sans-serif!important;font-size:19px!important;color:#fff!important}
.nation-alert small{color:var(--ng-mut)!important}
.nation-alert-icon svg{width:22px;height:22px;fill:none;stroke:var(--acc);stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nation-alert.war .nation-alert-icon svg,.nation-alert.emergency .nation-alert-icon svg{stroke:var(--ng-pink)}
.nation-alert p b{color:var(--acc)!important;font-weight:600!important;font-size:12.5px!important}
.nation-alert.war p b,.nation-alert.emergency p b{color:var(--ng-pink)!important}
.nation-alert-go{background:var(--acc)!important;color:#1a1405!important;border:0!important;border-radius:3px!important;font-weight:600!important}
.nation-alert-close{background:rgba(255,255,255,.08)!important;color:#fff!important;border:0!important;border-radius:50%!important}
/* round report */
.rbp,.rbp *{font-family:NGText,system-ui,sans-serif!important;text-transform:none!important;letter-spacing:0!important}
.rbp .rbp-card{background:linear-gradient(180deg,#12303a,#0b1f24)!important;border:1px solid rgba(255,255,255,.12)!important;box-shadow:0 30px 70px rgba(0,0,0,.55),0 0 60px color-mix(in srgb,var(--acc) 8%,transparent)!important}
.rbp :is(h2,h3,.rbp-title){font-family:NGDisplay,NGText,sans-serif!important;font-weight:700!important}
/* one yellow action in the top bar: Play (mini-games) becomes glass */
.nation-shell #hudPlay{background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.16)!important;color:var(--acc)!important;box-shadow:none!important}
.nation-shell #hudPlay *{color:var(--acc)!important;fill:currentColor}
.nation-alert{top:calc(70px + env(safe-area-inset-top))!important}
.nation-shell .nation-badge-collection{background:rgba(255,255,255,.04)!important}
/* nested glass stays clear instead of turning grey */
.nation-shell :is(section,article,details,div)[class] :is(section,article,details)[class]{background-color:rgba(255,255,255,.035)}
/* map sheets sit over a bright map: solid dark glass so every line reads */
.city-view .city-sheet{background:rgba(11,31,36,.95)!important;-webkit-backdrop-filter:blur(18px) saturate(1.2)!important;backdrop-filter:blur(18px) saturate(1.2)!important;border:1px solid rgba(255,255,255,.12)!important;color:#e9efe6!important;box-shadow:0 -10px 40px rgba(0,0,0,.45)!important}
.city-view .city-sheet *{text-shadow:none!important}
.city-view .city-sheet :is(p,small,span,li){color:#c4d2cc}
.city-view .city-sheet :is(h3,h4,b,strong){color:#fff}
.city-view .city-sheet :is(article,section,div)[class]{background-color:rgba(255,255,255,.05)}
.city-view .city-sheet .nation-effect-tags small{background:rgba(255,255,255,.06)!important}
.city-view :is(.city-goal,.city-ticker,.city-toast,.city-hint,.city-weather,.city-controls button,.city-roam){background:rgba(11,31,36,.82)!important;color:#fff!important;border:1px solid rgba(255,255,255,.14)!important}
/* top bar on phones: no overlaps, the island name gets the room */
@media (max-width:480px){
 .nation-shell .hud-command{gap:6px!important;padding-left:8px!important;padding-right:8px!important}
 .nation-shell #hudSound{display:none!important}
 .nation-shell #hudPlay{width:40px!important;height:40px!important;min-width:40px!important;flex:none!important;position:static!important;margin:0!important;transform:none!important}
 .nation-shell .hud-command-id{flex:1 1 auto!important;min-width:0!important;overflow:hidden}
 .nation-shell .hud-command-id b{max-width:none!important}
 .nation-shell #hudTask{padding:4px 8px!important}
 .nation-shell #hudTask small{font-size:10px!important}
}
dialog :is(button.secondary,.secondary),dialog button.quiet{background:rgba(255,255,255,.08)!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;box-shadow:none!important}
dialog :is(button.primary,.primary):not(:disabled){background:var(--acc)!important;color:#1a1405!important;border:0!important}
.nation-shell :is(button.primary,.primary):disabled,dialog :is(button.primary,.primary):disabled{background:rgba(255,255,255,.07)!important;color:#7f948e!important;border:1px solid rgba(255,255,255,.14)!important;box-shadow:none!important;opacity:1!important}
.city-view .city-build-btn{background:var(--acc)!important;color:#1a1405!important;border:0!important}
.city-view .city-sheet em.down{color:var(--ng-pink)!important;background:rgba(239,154,134,.1)!important;border-color:rgba(239,154,134,.3)!important}
.city-view .city-sheet em.up{color:var(--acc)!important;background:color-mix(in srgb,var(--acc) 10%,transparent)!important;border-color:color-mix(in srgb,var(--acc) 30%,transparent)!important}
/* any card or panel that opens over the map: solid dark glass */
.city-view :is([class$="-card"],[class*="-card "],[class$="-panel"],[class*="-panel "],[class$="-dialog"],.fest-card){background:rgba(11,31,36,.95)!important;-webkit-backdrop-filter:blur(18px)!important;backdrop-filter:blur(18px)!important;border:1px solid rgba(255,255,255,.14)!important;color:#e9efe6!important}
.fest-card :is(h2,h3,h4,b,strong){color:#fff!important}
.fest-card :is(p,small,span){color:#c4d2cc}
.fest-opts button{background:rgba(255,255,255,.06)!important;border:1px solid rgba(255,255,255,.14)!important;color:#fff!important;box-shadow:none!important}
.fest-opts button:hover{border-color:var(--acc)!important}
.fest-x{background:rgba(255,255,255,.1)!important;color:#fff!important}
