/* Player experience campaign: quiet scene chrome, clear contextual decisions. */
header .power {
  background: transparent;
  transition: none;
}
.playing header {
  background: linear-gradient(#18394cd9, #18394c45);
}
.playing .resourcebar {
  background: linear-gradient(#18394c45, transparent);
  gap: 18px;
}
.playing .resourcebar > button {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 44px;
  padding: 0 7px;
  text-shadow:
    0 1px 3px #173c47,
    0 0 6px #173c4780;
}
.hud-icon {
  background: #244b6150;
  border-color: #ebf6fc28;
  border-radius: 50%;
}
.hud-icon:hover {
  background: #244b6199;
}
.playing .power strong {
  color: #ffe2a4;
  font-size: 27px;
}
.playing header .power:hover {
  background: transparent;
}
.location-badge {
  top: calc(var(--hud-bottom) + 4px);
}
.location-badge span {
  padding: 0;
  background: none;
  color: #294f51;
  font-size: 10px;
  text-shadow:
    0 1px 2px #f2f1d8,
    0 0 5px #f2f1d8;
}
.location-badge b {
  display: none;
}
.map-readout .coordinate-readout {
  background: none;
  border: 0;
  box-shadow: none;
  color: #29494d;
  font-size: 10px;
  text-shadow:
    0 1px 2px #f2f1d8,
    0 0 4px #f2f1d8;
}
.map-tools,
.base-stage .map-tools {
  top: auto;
  bottom: calc(104px + var(--safe-bottom));
  right: max(12px, var(--safe-right));
  gap: 4px;
  grid-template-columns: 44px;
}
.map-tools button,
.base-stage .map-tools button {
  border-color: #eff7e670;
  background: #244858a8;
  border-radius: 50%;
  box-shadow: none;
}
.map-tools button:hover {
  background: #244858e0;
}
.panel-open .map-tools {
  bottom: auto;
  top: calc(var(--hud-bottom) + 18px);
}
.panel-open .map-tools [data-map-tool="plus"],
.panel-open .map-tools [data-map-tool="minus"],
.panel-open .map-tools [data-map-tool="grid"],
.panel-open .map-tools [data-tool="plus"],
.panel-open .map-tools [data-tool="minus"] {
  display: none;
}
.bottom-nav {
  background: #1e4053ed;
  border-top: 1px solid #d8eced36;
  box-shadow: none;
}
#mapToggle {
  background: #578b9b35;
  border-color: #b5d4da35;
  border-radius: 15px;
}
.bottom-nav button[aria-pressed="true"] {
  background: transparent;
  color: #ffd18a;
}
.bottom-nav button[aria-pressed="true"] svg {
  color: #ffd18a;
}
.bottom-nav button {
  font-size: 11px;
}
#reportCount {
  font-size: 10px;
  color: #ffd18a;
}
.on-map #panelWrap {
  background: #eff2e8;
  border: 1px solid #ffffffd0;
  border-radius: 22px;
  box-shadow: 0 8px 30px #183d4940;
  scrollbar-width: thin;
  scrollbar-color: #8caaa9 transparent;
}
#panelWrap,
dialog {
  --ink: #243e49;
  --muted: #5c7178;
  --line: #68828330;
  color: var(--ink);
  color-scheme: light;
}
#panelWrap aside,
dialog {
  background: #eff2e8;
}
.on-map #panelWrap aside {
  padding: 20px;
}
.on-map .panel-toolbar {
  height: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: block;
  overflow: visible;
}
.panel-toolbar > span {
  display: none;
}
.on-map #closePanel {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #dce6e1;
  border: 0;
  border-radius: 50%;
  color: #3e6066;
}
.on-map #panelWrap h2 {
  padding-right: 40px;
  margin: 5px 0 12px;
  line-height: 1.15;
}
.on-map #panelWrap .eyebrow {
  padding-right: 42px;
  color: #758671;
  font-size: 10px;
  letter-spacing: 0.1em;
}
#panelWrap .eyebrow {
  color: #758671;
}
#panelWrap p {
  margin: 10px 0;
}
#panelWrap .muted {
  color: #586d74;
  font-size: 12px;
}
#panelWrap .status {
  background: none;
  border: 0;
  color: #527962;
  padding: 0;
}
#panelWrap .status.warning {
  color: #a05a35;
}
#panelWrap .card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #6e8b842b;
  border-radius: 0;
}
#panelWrap button:not(.primary):not(#closePanel) {
  color: #315661;
  background: #dce6e1;
  border-color: #78978c30;
}
#panelWrap .primary {
  box-shadow: none;
  background: #efb66a !important;
  border: 1px solid #dbac68 !important;
}
#panelWrap .operation-choice {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 12px;
  gap: 10px;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #68898230 !important;
  border-radius: 0;
  padding: 8px 0;
  margin: 0;
}
.operation-art {
  width: 70px;
  height: 62px;
  object-fit: contain;
}
#panelWrap .operation-choice strong {
  font-size: 14px;
}
#panelWrap .operation-choice small {
  font-size: 12px;
  line-height: 1.35;
}
.choice-progress {
  display: block;
  height: 4px;
  margin: 7px 0 3px;
  background: #cfdbcd;
  border-radius: 4px;
  overflow: hidden;
}
.choice-progress > span {
  display: block;
  height: 100%;
  background: #69927d;
}
.resume-actions {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
}
.panel-open .base-hint {
  display: none;
}
.upgrade-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 8px;
}
.upgrade-progress .progress {
  flex: 1;
  min-width: 0;
}
.upgrade-progress small {
  white-space: nowrap;
}
.resume-actions button {
  min-height: 44px;
}
#panelWrap button:disabled {
  opacity: 0.48;
  cursor: default;
}
#panelWrap input:not([type="checkbox"]),
dialog input:not([type="checkbox"]) {
  background: #f8faf2;
  border: 1px solid #9bafa5;
  color: #243e49;
  font-size: 16px;
}
#panelWrap input::placeholder,
dialog input::placeholder {
  color: #7c8e89;
}
#panelWrap .operation-choice:hover {
  background: #dde8df !important;
}
#panelWrap .operation-choice small {
  color: #637b7e;
  font-size: 12px;
}
#panelWrap .operation-choice b {
  color: #a07846;
  font-size: 20px;
}
#panelWrap .support-options {
  grid-template-columns: 1fr;
  gap: 0;
  margin: 4px 0;
}
#panelWrap .support-option.card {
  display: grid;
  grid-template-columns: 1fr 104px;
  column-gap: 10px;
  padding: 12px 0;
  align-items: start;
}
.support-option .support-description {
  min-width: 0;
}
#panelWrap .support-option h3 {
  font-size: 15px;
  margin-bottom: 1px;
}
#panelWrap .support-option small {
  display: block;
  color: #607577;
  font-size: 11px;
}
#panelWrap .support-fit {
  color: #6c8155;
  font-size: 11px;
}
#panelWrap .support-option .full {
  grid-column: 2;
  grid-row: 1;
  margin: 4px 0;
  font-size: 12px;
}
#panelWrap .support-state {
  grid-column: 1 / -1;
  margin-top: 6px;
}
#panelWrap .operation-progress {
  margin: 10px 0 5px;
}
#panelWrap progress {
  height: 6px;
  background: #d2dfd4;
  border: 0;
}
#panelWrap progress::-webkit-progress-bar {
  background: #d2dfd4;
  border-radius: 5px;
}
#panelWrap progress::-webkit-progress-value {
  background: #6a987f;
  border-radius: 5px;
}
#panelWrap .production-summary strong {
  color: #315e6d;
}
#panelWrap .metric {
  background: #dde6dc;
  border: 0;
}
#panelWrap .metric b {
  color: #315c62;
}
#panelWrap .metric small {
  color: #617a79;
}
#panelWrap .production-breakdown {
  margin-top: 7px;
}
#panelWrap .research-track {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #68828330;
  border-radius: 0;
  margin: 0;
  padding: 12px 0;
}
#panelWrap .research-track .row {
  border: 0;
  margin: 0 0 5px;
  padding: 0;
}
#panelWrap .research-track h3 {
  font-size: 15px;
  margin: 0;
}
#panelWrap .research-track button {
  margin: 10px 0 6px;
}
.research-note {
  display: block;
  font-size: 11px;
}
#panelWrap .production-breakdown summary {
  color: #567371;
}
#panelWrap .building-upgrade {
  border-color: #6e8b842b;
}
#panelWrap .row {
  border-color: #6e8b842b;
}
#panelWrap .row b {
  text-align: right;
}
dialog {
  border: 1px solid #fff;
  box-shadow: 0 18px 70px #122d4960;
}
dialog::backdrop {
  background: #132f4969;
  backdrop-filter: blur(3px);
}
dialog button:not(.primary) {
  background: #dce6e1;
  color: #315661;
}
dialog .muted,
dialog small,
.building-entry small {
  color: #637875;
}
.settings-account {
  border-color: #68828330;
}
#settingsPanel {
  width: 440px;
}
#logout {
  color: #8a5343;
}
.building-entry {
  border: 0;
  border-bottom: 1px solid #68828330;
  background: transparent !important;
  border-radius: 0;
  padding: 14px 2px;
}
.playing #game:not([data-view="base"]):not([data-view="world"]) {
  position: fixed;
  top: var(--hud-bottom);
  bottom: calc(76px + var(--safe-bottom));
  left: var(--safe-left);
  right: var(--safe-right);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px 12px 20px;
}
body:not(.on-map) .scene-shell {
  background: transparent;
  border: 0;
  width: 100%;
}
body:not(.on-map) .scene-heading {
  position: static;
  padding: 16px 4px;
  background: none;
}
body:not(.on-map) .list-content,
#game[data-view="clan"] .list-content {
  padding: 4px 0 12px;
}
body:not(.on-map) .scene-caption {
  display: none;
}
body:not(.on-map) .map-tag {
  display: none;
}
body:not(.on-map) .list-content .card {
  padding: 16px;
  margin: 0 0 8px;
  border: 0;
  border-radius: 12px;
}
.base-label:focus-visible {
  background: #eff2e8;
  color: #244451;
  opacity: 1;
}
@media (max-width: 680px) {
  #game[data-view="reports"] .workspace {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
  }
  #game[data-view="reports"] #panelWrap {
    order: -1;
  }
  #game[data-view="reports"] .scene-shell {
    min-height: 0;
  }
  .on-map #panelWrap {
    left: 8px;
    right: 8px;
    max-height: min(
      52svh,
      calc(100svh - var(--hud-bottom) - var(--safe-bottom) - 104px)
    );
  }
  .on-map #panelWrap aside {
    padding: 18px;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  #settingsPanel {
    padding: 16px;
  }
  #settingsPanel .dialog-heading {
    margin-bottom: 6px;
  }
  #settingsPanel .settings-row {
    min-height: 44px;
  }
  #settingsPanel .settings-account {
    margin-top: 8px;
    padding-top: 12px;
  }
  #settingsPanel .settings-account p {
    margin: 6px 0;
  }
  #settingsPanel #logout {
    margin-top: 10px;
  }
  :root {
    --hud-bottom: calc(var(--safe-top) + 58px);
  }
  .playing header {
    height: calc(var(--safe-top) + 58px);
    min-height: 58px;
  }
  .playing .resourcebar {
    top: var(--safe-top);
    right: calc(65px + var(--safe-right));
    left: auto;
    width: auto;
    height: 58px;
    gap: 4px;
    background: none;
  }
  .playing .resourcebar > button {
    padding: 0 4px;
  }
  .playing .resourcebar b {
    font-size: 12px;
  }
  .playing .resourcebar svg {
    width: 17px;
  }
  .on-map #panelWrap {
    top: calc(var(--hud-bottom) + 4px);
    bottom: calc(68px + var(--safe-bottom));
    right: max(8px, var(--safe-right));
    left: auto;
    width: 310px;
    max-height: none;
  }
  .map-tools,
  .base-stage .map-tools,
  .panel-open .map-tools {
    top: auto;
    bottom: calc(74px + var(--safe-bottom));
    right: auto;
    left: max(12px, var(--safe-left));
    display: flex;
  }
  .bottom-nav {
    min-height: 60px;
  }
  .bottom-nav button {
    min-height: 44px;
    padding: 2px;
  }
  .bottom-nav svg {
    width: 21px;
    height: 21px;
  }
}
