/* Flat expedition UI. Terrain, characters and previews share the 2D renderer. */
#duck-panel {
  --dk-bg:#101d22;
  --dk-panel:#1b2d31;
  --dk-panel2:#253b3c;
  --dk-ink:#f1ebd8;
  --dk-muted:#a5bbb2;
  --dk-line:#425c57;
  --dk-accent:#e8bb76;
  --dk-green:#8fceb2;
  --dk-ux-line:#58746b;
  --dk-ux-muted:#a5bbb2;
  --dk-ux-surface:#1b2d31;
  --dk-ux-focus:#e8bb76;
  --ui-paper:#1b2d31;
  --ui-paper2:#253b3c;
  --ui-ink:#f1ebd8;
  --ui-muted:#a5bbb2;
  --ui-line:#425c57;
  --ui-accent:#e8bb76;
  --studio-line-strong:#6c8979;
  --studio-radius:2px;
  --studio-selected:#46654b66;
  --studio-hover:#42644b44;
  --ui-panel:#233b34;
  padding:16px;
  border:1px solid #47645b;
  border-radius:3px;
  background:#101d22;
  color:var(--dk-ink);
  box-shadow:inset 0 1px #8bad822b;
  font-size:13px;
  line-height:1.5;
}

#duck-panel :is(button,input,select,summary) {border-radius:2px;}
#duck-panel :is(button,summary) {border-radius:2px!important;}
#duck-panel * {backdrop-filter:none!important;}
#duck-panel button {
  border-color:#49655b;
  background:#263e3c;
  color:#e7e6ce;
  box-shadow:inset 0 1px #8caf8a26;
}
#duck-panel button:hover:not(:disabled) {background:#35534a;border-color:#a6b77e;}
#duck-panel :is(button,input,select,summary):focus-visible {outline:2px solid #f1c47d;outline-offset:3px;}
#duck-panel button:disabled {opacity:.42;}
#duck-panel :is(input,select) {background:#14272b;border-color:#49655b;color:var(--dk-ink);}
#duck-panel :is(.dk-primary,.dk-orange,[data-prep-primary]) {
  border-color:#e9c681;
  background:#dfb873;
  color:#202f2a;
  box-shadow:inset 0 1px #fff3cd8c,inset 0 -2px #a67a3f;
  font-weight:750;
}
#duck-panel :is(.dk-primary,.dk-orange,[data-prep-primary]):hover:not(:disabled) {background:#f0ca86;border-color:#fff0bd;}
#duck-panel .dk-danger {background:#67443f;border-color:#b97966;color:#ffe1c7;}
#duck-panel kbd {background:#13272a;border-color:#557266;color:#e2d7b4;border-radius:2px;box-shadow:0 1px #08171b;}
#duck-panel :is(.dk-overline,.dk-preview-title small,.dk-logo small) {color:#b6c59d;letter-spacing:1.4px;}
#duck-panel :is(h1,h2,h3,h4) {color:#f1e6c5;}
#duck-panel :is(.dk-card,.dk-shell-menu-item,.dk-preparation,.dk-compact-armory,.dk-upgrade-workbench,.dk-assembly-panel,.dk-ux-card) {
  border-color:#425f55;
  border-radius:3px;
  background:#1b3031;
  box-shadow:none;
}
#duck-panel .dk-card {padding:16px;}
#duck-panel .dk-card :is(p,small),#duck-panel .dk-item-detail-spec {color:#adc1b4;}

/* One quiet preparation desk, with the actual region as its visual anchor. */
#duck-panel .dk-top {gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #385148;}
#duck-panel .dk-account {gap:12px;color:#b9c8ad;}
#duck-panel .dk-account b {color:#e9c681;}
#duck-panel .dk-account .dk-level {background:#243e37;border-color:#557663;border-radius:2px;color:#cfdbc3;}
#duck-panel .dk-mini-portrait {border:1px solid #7c9371;border-radius:2px;background:#243b36;box-shadow:inset 0 0 0 2px #132526;}
#duck-panel .dk-shell-dock {padding:6px;border:1px solid #425d52;border-radius:3px;background:#172c2d;}
#duck-panel .dk-shell-favorites {scrollbar-width:none;}
#duck-panel .dk-shell-favorites::-webkit-scrollbar {display:none;}
#duck-panel :is(.dk-shell-dock,.dk-shell-favorites)>button {
  height:56px;
  padding:6px 5px;
  gap:4px;
  border:1px solid #49675a;
  border-radius:2px;
  background:#263e38;
  color:#c7d5be;
  box-shadow:none;
}
#duck-panel :is(.dk-shell-dock,.dk-shell-favorites)>button :is(i,b,span:first-child) {color:#acd3aa;}
#duck-panel .dk-shell-dock>[data-shell-open=menu] {background:#3c4b36;border-color:#8d9b6d;color:#e5d9ad;}
#duck-panel .dk-shell-home.dk-prep-home {gap:14px;}
#duck-panel .dk-home-stage {gap:12px;}
#duck-panel .dk-shell-hero {border:1px solid #647b59;border-radius:3px;background:#172c2a;box-shadow:inset 0 0 0 2px #0b1c1b;}
#duck-panel .dk-shell-hero .dk-world-preview {border-radius:0;background:#172c2a;}
#duck-panel .dk-shell-hero .dk-world-preview::after {background:linear-gradient(180deg,#0a191ec9,transparent 42%,#0a191e9c);}
#duck-panel .dk-shell-hero .dk-preview-title {left:24px;top:22px;}
#duck-panel .dk-shell-hero .dk-preview-title h1 {margin:9px 0;color:#fff0c9;font-size:clamp(27px,3vw,40px);font-weight:800;letter-spacing:-.7px;text-shadow:0 2px #132b27;}
#duck-panel .dk-shell-hero .dk-preview-title p {color:#c7d6b9;font-size:12px;}
#duck-panel .dk-shell-hero .dk-preview-badge {left:24px;bottom:20px;color:#e9ddbd;}
#duck-panel .dk-shell-hero .dk-preview-caption {right:22px;bottom:20px;color:#bbd0b0;}
#duck-panel .dk-home-sortie {border:1px solid #496350;border-radius:3px;background:#1c302d;box-shadow:none;}
#duck-panel .dk-home-sortie-heading {background:#273d32;border-color:#4f6a53;}
#duck-panel .dk-home-sortie-heading h1 {font-size:17px;letter-spacing:.5px;color:#e8dfba;}
#duck-panel .dk-prep-shortcuts {gap:8px;}
#duck-panel .dk-prep-shortcuts button {background:#2a4239;border-color:#536b55;}
#duck-panel :is(.dk-prep-gear,.dk-prep-supplies,.dk-prep-ready,.dk-sortie-config,.dk-region-quest) {border-color:#405d50;background:transparent;border-radius:2px;box-shadow:none;}
#duck-panel :is(.dk-prep-notices,.dk-op-info,.dk-squad-return) {background:#263d32;border-color:#607650;border-radius:2px;box-shadow:none;}
#duck-panel .dk-shell-actions {gap:8px;}
#duck-panel .dk-shell-actions>button {height:48px;background:#2c4438;border-color:#647851;font-size:13px;}
#duck-panel .dk-shell-actions>button small {color:#bdc8a7;}
#duck-panel .dk-sortie-modes button[aria-pressed=true],#duck-panel .dk-risk-option[aria-pressed=true] {background:#3c5037;border-color:#bfbb79;color:#f5e4b6;}
#duck-panel .dk-guest {margin:10px 0;padding:9px 12px;border-color:#4b6658;border-radius:2px;background:#1b302e;color:#adc3b3;}
#duck-panel .dk-guest a {color:#edc481;}

/* Flat framed surfaces, rather than frosted overlays over the battlefield. */
#duck-panel :is(.dk-shell-dialog,.dk-ux-dialog,.dk-item-dialog,.dk-recipe-dialog,.dk-attachment-dialog,.dk-pack-dialog,.dk-operation-dialog,.dk-ammo-dialog) {
  border:2px solid #617b60;
  border-radius:3px;
  background:#172b2d;
  color:#eee7cf;
  box-shadow:0 8px 0 #06171988,inset 0 0 0 1px #9aaf7b30;
}
#duck-panel dialog::backdrop {background:#071318bf;backdrop-filter:none;}
#duck-panel :is(.dk-shell-header,.dk-ux-header,.dk-item-dialog>header,.dk-pack-dialog>header,.dk-recipe-dialog>header,.dk-attachment-dialog>header) {
  background:#243b32;
  border-bottom-color:#526c52;
  box-shadow:none;
}
#duck-panel .dk-shell-title small {color:#9fbe9e;}
#duck-panel .dk-shell-title h2 {color:#eee2b9;letter-spacing:.4px;}
#duck-panel .dk-shell-subnav {gap:6px;padding:8px;background:#142728;border-bottom-color:#3d5b4d;}
#duck-panel .dk-shell-subnav>button {background:#263d34;border-color:#4c6855;border-radius:2px;box-shadow:none;}
#duck-panel .dk-shell-subnav>button[aria-current=page] {background:#435238;border-color:#b5b47a;color:#f5e4b3;}
#duck-panel .dk-shell-menu-group h3 {color:#a8c7a7;letter-spacing:.6px;}
#duck-panel .dk-shell-menu-item>.dk-shell-menu-action {background:transparent;}
#duck-panel .dk-shell-menu-action>span:first-child {color:#add0a4;}
#duck-panel .dk-shell-menu-action>small {color:#a9beb0;}
#duck-panel .dk-shell-menu-item>.dk-shell-favorite {background:#152c2b;color:#91ad97;border-radius:2px;}
#duck-panel .dk-shell-menu-item>.dk-shell-favorite[aria-pressed=true] {background:#4c4d2f;border-color:#ada66b;color:#f0ce7e;}
#duck-panel .dk-shell-favorite-status {padding:5px 0;border:0;border-radius:0;background:none;color:#b8c7ad;}
#duck-panel :is(.dk-ux-chip,.dk-grade,.dk-category-chip) {box-shadow:none;}
#duck-panel .dk-toast {border:1px solid #8ba16a;border-radius:2px;background:#233d30f5;color:#f1e5bd;box-shadow:0 3px #091b18;}

/* Keep collection geometry and the shared item inspector; only recolor the frame. */
#duck-panel :is(.dk-stash-cell,.dk-inventory-cell,.dk-attachment-cell,.dk-recipe-icon,.dk-mount,.dk-pack-selected,.dk-field-slot>.dk-inventory-cell) {
  border-color:#486551;
  border-radius:2px;
  background:#20382f;
  box-shadow:inset 0 1px #95b47c20;
}
#duck-panel :is(.dk-stash-cell,.dk-inventory-cell,.dk-attachment-cell,.dk-recipe-icon):hover {border-color:#b4be78;background:#2e4939;}
#duck-panel :is(.dk-stash-cell.is-selected,.dk-inventory-cell.is-selected,.dk-attachment-cell.is-selected,.dk-recipe-icon[aria-pressed=true]) {border-color:#edc279;background:#4b5137;}
#duck-panel .dk-icon {border-color:#647b59;border-radius:2px;background:#294334;box-shadow:none;}
#duck-panel .dk-icon svg {filter:none;}
#duck-panel :is(.dk-stash-equipped,.dk-enhance-badge,.dk-gun-rank) {border-radius:1px;background:#101f1be8;color:#ecc77b;}
#duck-panel :is(.dk-item-detail-body,.dk-recipe-detail-body,.dk-attachment-detail-body,.dk-field-detail-scroll) {background:#172b2c;}
#duck-panel :is(.dk-item-detail-hero,.dk-item-detail-spec,.dk-weapon-options,.dk-ux-compare,.dk-attachment-compare) {border-color:#4a6957;background:#1e3730;border-radius:2px;box-shadow:none;}
#duck-panel .dk-item-buttons>.dk-icon-action,#duck-panel .dk-ux-flags>.dk-icon-action,#duck-panel .dk-floating button.dk-icon-action {border-radius:2px!important;background:#2c4437;border-color:#6e8056;}
#duck-panel :is(.dk-collection-scroll,.dk-grid-scroll,.dk-window-scroll) {scrollbar-width:none;}
#duck-panel :is(.dk-collection-scroll,.dk-grid-scroll,.dk-window-scroll)::-webkit-scrollbar {display:none;}
#duck-panel :is(.dk-weapon-showcase,.dk-catalogue-preview,.dk-hideout-preview) {border-color:#647a58;border-radius:2px;background:#182f2b;box-shadow:none;}
#duck-panel .dk-collection-scroll::before {background:linear-gradient(#172b2c,transparent);}
#duck-panel .dk-collection-scroll::after {background:linear-gradient(transparent,#172b2c);}
#duck-panel .arcade-select-button {border-color:#607b5e;border-radius:2px;background:#20382f;color:#e7e5ca;box-shadow:none;}

/* The combat view keeps opaque, compact landmarks and leaves the centre clear. */
#duck-panel.dk-raid-mode {padding:0;border-color:#49604e;background:#0d1b1f;box-shadow:none;}
#duck-panel .dk-field {border-radius:0;background:#152728;}
#duck-panel :is(#dk-canvas,#dk-lobby-preview,.dk-2d-character,.dk-pixel-character,[data-weapon-model],[data-monster-model],[data-hideout-view]) {image-rendering:pixelated;}
#duck-panel :is(.dk-hud,.dk-ammo,.dk-minimap,.dk-field-tabs,.dk-floating,.dk-context:not([hidden]),.dk-live-objective,.dk-ping-message,.dk-exit-helper,.dk-party-member) {
  border-color:#6d825b;
  border-radius:2px;
  background:#142b29ed;
  color:#e1e4c9;
  backdrop-filter:none;
  box-shadow:0 2px #061713aa;
}
#duck-panel .dk-status-name strong {color:#f0e9c8;}
#duck-panel .dk-status-name span {color:#eac37a;}
#duck-panel .dk-ammo b {color:#f2d68d;}
#duck-panel .dk-ammo b small {color:#9fba9f;}
#duck-panel .dk-field-resource {color:#e8d09b;text-shadow:0 1px #142c23;}
#duck-panel .dk-field-resource #dk-network {color:#a7c7af;}
#duck-panel .dk-raid-nav button,#duck-panel .dk-shell-field-tools>button {background:#243c32ed;border-color:#637b55;color:#e2e3bf;border-radius:2px;box-shadow:none;}
#duck-panel .dk-minimap canvas {image-rendering:pixelated;}
#duck-panel .dk-minimap>span {background:#10271fe8;color:#c3d2ad;}
#duck-panel .dk-world-label {color:#f3edcf;text-shadow:-1px 0 #0b1c1a,1px 0 #0b1c1a,0 -1px #0b1c1a,0 1px #0b1c1a;}
#duck-panel .dk-world-health {border-radius:0;background:#112822;border-color:#6d885e;}
#duck-panel .dk-world-health>b {background:#a5cf85;border-radius:0;}
#duck-panel .dk-context .dk-context-key,#duck-panel .dk-context .dk-context-symbol {background:#3b5039;border-color:#a3ad70;color:#f0dfaa;border-radius:2px;}
#duck-panel .dk-context-copy strong {color:#f0e4bb;}
#duck-panel .dk-context-copy small {color:#aec6a8;}
#duck-panel .dk-context-timer {color:#efc477;}
#duck-panel .dk-floating>header {border-bottom-color:#526e50;background:#294132;}
#duck-panel .dk-field-tabs [aria-selected=true] {border-color:#c0bc78;background:#435137;color:#f2dda8;}
#duck-panel .dk-field-detail-shade {backdrop-filter:none!important;background:#071512c4!important;}
#duck-panel :is(.dk-inventory-cell,.dk-stash-cell,.dk-attachment-cell) {transition:none;}
body:has(#duck-panel:not([hidden]))>.dk-weapon-tooltip {border-color:#829568;border-radius:2px;background:#162d29fa;color:#e9e5c7;box-shadow:0 4px #06151299;}
body:has(#duck-panel:not([hidden]))>.dk-weapon-tooltip :is(.dk-weapon-facts>b,strong) {color:#eee5c3;}

@media(min-width:1050px) {
  #duck-panel .dk-shell-home.dk-prep-home {grid-template-columns:minmax(0,1.45fr) minmax(320px,.8fr);align-items:start;}
  #duck-panel .dk-shell-hero .dk-world-preview {height:clamp(320px,33vw,480px);}
}
@media(max-width:700px) {
  #duck-panel {padding:10px;border-radius:2px;}
  #duck-panel .dk-top {gap:8px;padding-bottom:9px;margin-bottom:10px;}
  #duck-panel .dk-shell-home.dk-prep-home {gap:10px;}
  #duck-panel .dk-shell-hero .dk-world-preview {height:clamp(230px,68vw,340px);}
  #duck-panel .dk-shell-hero .dk-preview-title {left:16px;top:15px;}
  #duck-panel .dk-shell-hero .dk-preview-title h1 {font-size:25px;margin:7px 0;}
  #duck-panel .dk-shell-hero .dk-preview-title p {font-size:11px;}
  #duck-panel .dk-shell-hero .dk-preview-badge {left:16px;bottom:14px;max-width:calc(100% - 32px);}
  #duck-panel .dk-shell-hero .dk-preview-caption {right:14px;bottom:14px;}
  #duck-panel .dk-shell-dock {padding:4px;gap:5px;}
  #duck-panel :is(.dk-shell-dock,.dk-shell-favorites)>button {height:52px;font-size:11px;}
  #duck-panel .dk-card {padding:12px;}
  #duck-panel .dk-shell-subnav {padding:6px;gap:5px;}
  #duck-panel .dk-shell-subnav>button {padding:6px 4px;font-size:11px;}
  #duck-panel .dk-shell-dialog,#duck-panel .dk-ux-dialog {border-width:1px;border-radius:2px;}
  #duck-panel #dk-loot-host[data-field-tabs=true]>.dk-floating,#duck-panel #dk-loot-host[data-field-tabs=true]>.dk-window-info {border-radius:2px;}
}
@media(prefers-reduced-motion:reduce) {
  #duck-panel :is(button,dialog,.dk-toast,.dk-world-label) {animation:none!important;transition:none!important;}
}
