/* Consistent tactical controls; keep the battlefield and essential warnings unobstructed. */
#duck-panel{--dk-ui-scale:1;--dk-crosshair-size:40px;--dk-crosshair-color:#eaf4d9;--dk-ux-line:#7b96845c;--dk-ux-muted:#a9beb0;--dk-ux-surface:#172f33;--dk-ux-focus:#c6dba4}
#duck-panel .dk-ux-card,#duck-panel .dk-preferences,#duck-panel .dk-exit-helper{box-sizing:border-box;min-width:0;border:1px solid var(--dk-ux-line);border-radius:7px;padding:calc(16px * var(--dk-ui-scale));background:linear-gradient(140deg,#253c3df2,#152d32f5);color:#e8ebd5}
/* The arcade page styles every header; utility headers own their height and surface. */
#duck-panel :is(.dk-preferences,.dk-ux-card,.dk-ux-compare,.dk-exit-helper)>header{height:auto;min-height:0;padding:0 0 10px;background:transparent;color:#e8ebd5;border:0;border-bottom:1px solid var(--dk-ux-line);flex-wrap:wrap}
#duck-panel .dk-preferences>header{padding:12px;border:1px solid #829a7859;border-radius:5px;background:#263f3d;color:#f0efdc}
#duck-panel .dk-preferences>header h3{color:#f0efdc}#duck-panel .dk-preferences>header small{color:#bdd2bc}
#duck-panel .dk-ux-dialog>header{height:auto;min-height:0;color:#f0efdc;flex-shrink:0}
#duck-panel .dk-ux-card{margin-top:16px}.dk-ux-header,.dk-preferences>header,.dk-exit-helper>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.dk-ux-header>div,.dk-preferences>header>div{min-width:0}.dk-ux-header h3,.dk-preferences h3,.dk-exit-helper h3{margin:3px 0;font-size:calc(16px * var(--dk-ui-scale));line-height:1.45}.dk-ux-header small,.dk-preferences>header small,.dk-exit-helper header small{color:#b1c4aa;font-size:9px;letter-spacing:1.4px}.dk-ux-card p,.dk-preferences p,.dk-exit-helper p{font-size:calc(11px * var(--dk-ui-scale));line-height:1.75;color:var(--dk-ux-muted);margin:9px 0}
#duck-panel .dk-ux-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;align-items:center}#duck-panel .dk-ux-actions>button{flex:1 1 120px}#duck-panel .dk-ux-card button,#duck-panel .dk-ux-dialog button,#duck-panel .dk-preferences button,#duck-panel .dk-exit-helper button{min-height:calc(38px * var(--dk-ui-scale));font-size:calc(11px * var(--dk-ui-scale));padding:9px 12px;line-height:1.45;touch-action:manipulation}#duck-panel .dk-ux-card button:focus-visible,#duck-panel .dk-ux-dialog :is(button,input,select):focus-visible,#duck-panel .dk-preferences :is(button,input,select):focus-visible,#duck-panel .dk-exit-helper button:focus-visible{outline:2px solid #cfe5aa;outline-offset:3px}
.dk-ux-presets{display:flex;flex-direction:column;gap:8px}.dk-ux-preset-row{display:flex;align-items:center;gap:8px;border:1px solid #79917b40;border-radius:5px;padding:10px;background:#10282c66}.dk-ux-preset-row>span,.dk-ux-preset-row>div:first-child{flex:1;min-width:0}.dk-ux-preset-row strong{display:block;font-size:12px;overflow-wrap:anywhere}.dk-ux-preset-row small{display:block;font-size:10px;color:var(--dk-ux-muted)}.dk-ux-preset-row button{flex-shrink:0}.dk-ux-presets input,.dk-ux-card input{min-width:0;max-width:100%;box-sizing:border-box}.dk-ux-needs,.dk-ux-flags{display:flex;gap:6px;flex-wrap:wrap}.dk-ux-chip{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border:1px solid #94ac824d;border-radius:4px;color:#c8d7bb;background:#233c35;font-size:10px}.dk-ux-chip.is-warning,.dk-ux-chip[data-tone=warning]{border-color:#d4b56b77;background:#4c4225;color:#f2d9a1}.dk-ux-chip.is-danger,.dk-ux-chip[data-tone=danger]{border-color:#ce927b88;background:#53392f;color:#ffd3b8}.dk-ux-chip.is-ready,.dk-ux-chip[data-tone=ready]{border-color:#8fc8aa77;color:#bde9d2}
.dk-ux-compare{border:1px solid #9ab39255;border-radius:6px;padding:12px;margin:12px 0;background:#122b2d}.dk-ux-compare h4{margin:0 0 10px;font-size:12px}.dk-ux-compare-grid{display:grid;grid-template-columns:minmax(0,1fr) repeat(2,minmax(55px,.7fr));gap:6px 10px;align-items:center;font-size:11px}.dk-ux-compare-grid>div{min-width:0}.dk-ux-compare-grid :is(small,span){color:#aec2b2}.dk-ux-compare-grid b{font-variant-numeric:tabular-nums}.dk-ux-compare-grid .is-better,.dk-ux-compare-grid [data-change=better]{color:#a9e2bb}.dk-ux-compare-grid .is-worse,.dk-ux-compare-grid [data-change=worse]{color:#edba95}
.dk-ux-dialog{width:min(920px,calc(100vw - 32px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 40px);padding:0;border:1px solid #9ab08b;border-radius:9px;background:#152c31;color:#e8ebd5;box-shadow:0 24px 100px #061516cc;box-sizing:border-box;overflow:hidden}.dk-ux-dialog::backdrop{background:#08191bd9;backdrop-filter:blur(3px)}.dk-ux-dialog:not([open]){display:none}.dk-ux-dialog>.dk-ux-header{padding:16px 20px;margin:0;border-bottom:1px solid #80927855;background:#2d443c}.dk-ux-body{padding:18px 20px;overflow:auto;max-height:calc(100dvh - 140px);overscroll-behavior:contain;box-sizing:border-box}.dk-ux-dialog>.dk-ux-body>.dk-preferences{padding:0;background:none;border:0}.dk-ux-body>p:first-child{margin-top:0}.dk-ux-quote{border:1px solid #7d977b66;border-radius:6px;padding:14px;background:#1f3838}.dk-ux-quote-list{display:flex;flex-direction:column;gap:8px;margin:12px 0;padding:0;list-style:none}.dk-ux-quote-list>li,.dk-ux-quote-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px;border-bottom:1px solid #72846d33;font-size:12px}.dk-ux-quote-list strong{overflow-wrap:anywhere}.dk-ux-quote-list small{color:#adc1ae}.dk-ux-quote-warning{padding:12px;border:1px solid #bc9a5988;border-radius:5px;color:#f1d3a0!important;background:#403924;line-height:1.7;font-size:12px}.dk-ux-dlg{display:flex;flex-direction:column;gap:14px}.dk-ux-dlg :is(input,select){box-sizing:border-box;max-width:100%;min-height:38px}
.dk-pref-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.dk-pref-columns fieldset{box-sizing:border-box;min-width:0;margin:0;padding:14px;border:1px solid #7b968447;border-radius:5px}.dk-pref-columns fieldset:last-child{grid-column:1/-1}.dk-pref-columns legend{padding:0 6px;font-size:12px;color:#d7dcb9}.dk-pref-columns small{display:block;color:#a2b7a7;font-size:10px;line-height:1.8}.dk-pref-field{display:flex;flex-direction:column;gap:6px;margin-bottom:14px;min-width:0}.dk-pref-field>span{display:flex;justify-content:space-between;gap:10px;font-size:12px;line-height:1.5;color:#d6e1cd}.dk-pref-field output{font-variant-numeric:tabular-nums;color:#e3d29c}.dk-pref-field :is(select,input){width:100%;box-sizing:border-box;min-width:0;min-height:36px;background:#162b30;color:#e3e7d5;border:1px solid #7b96846b;border-radius:4px;padding:7px 9px}.dk-pref-field input[type=range]{padding:0;border:0;min-height:28px;accent-color:#b7cea2}.dk-pref-field input[type=color]{width:80px;padding:4px}.dk-pref-check{display:flex;align-items:center;gap:8px;font-size:12px;margin:10px 0 14px;color:#c6d7be}.dk-pref-check input{width:17px;height:17px;accent-color:#a4c093}.dk-key-settings{border-top:1px solid #728b7155;padding-top:14px;margin-top:14px}.dk-key-settings summary{cursor:pointer;color:#d0dec4;padding:8px 0;font-size:13px}.dk-key-settings>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 14px;margin-top:14px}.dk-pref-feedback:empty{display:none}.dk-pref-feedback{border-left:3px solid #cfbd81;padding:8px 12px;background:#344330;color:#eed7a7!important}
.dk-exit-helper>header span{font-size:10px;color:#b7c4a5}.dk-exit-helper>div{display:grid;gap:7px;grid-template-columns:repeat(2,minmax(0,1fr))}#duck-panel .dk-exit-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;padding:11px;background:#173034;border-color:#6e887467;color:#e1e4c9;min-width:0}#duck-panel .dk-exit-card b{font-size:12px;overflow-wrap:anywhere}.dk-exit-card span{font-size:11px;color:#c8b895}.dk-exit-card small{font-size:10px;color:#a4bba9}#duck-panel .dk-exit-card[data-open=true]{border-left:3px solid #a8c49a}.dk-exit-card[data-open=true] span{color:#c3dfb7}#duck-panel .dk-exit-card.is-selected{background:#354c40;outline:1px solid #c0d1a2;outline-offset:0}.dk-exit-card progress{height:5px;width:100%;accent-color:#c5d995}
#dk-exit-guide{position:absolute;pointer-events:none;z-index:5;max-width:190px;padding:8px 11px;border:1px solid #c1d39b88;border-radius:5px;background:#1a322ce8;color:#e7edc9;font-size:11px;line-height:1.6;box-shadow:0 3px 14px #10251b55}#dk-exit-guide[hidden]{display:none!important}#dk-exit-guide b{display:block;font-size:12px}#dk-exit-guide small{display:block;color:#bed1ae;font-size:9px}#dk-exit-guide .dk-exit-arrow{display:inline-block;transform:rotate(var(--dk-angle,0rad));transform-origin:center;font-size:20px;line-height:1}#dk-exit-guide[data-open=false]{border-color:#ccb28099}#dk-exit-guide[data-open=false] small{color:#e0c99e}
#duck-panel[data-compact-prompts=true] .dk-window-tip,#duck-panel[data-compact-prompts=true] .dk-map-footer,#duck-panel[data-compact-prompts=true] .dk-journey-guide>p{display:none}#duck-panel[data-compact-prompts=true] .dk-live-objective>p{font-size:9px;margin:4px 0}
#duck-panel .dk-floating{font-size:calc(12px * var(--dk-ui-scale))}#duck-panel .dk-floating>header h3{font-size:calc(17px * var(--dk-ui-scale))}#duck-panel .dk-floating :is(.dk-item-detail,.dk-window-tip,.dk-overlay-actions){padding:calc(12px * var(--dk-ui-scale))}#duck-panel .dk-floating button{font-size:calc(11px * var(--dk-ui-scale));min-height:calc(34px * var(--dk-ui-scale))}#duck-panel .dk-floating .dk-inventory-cell{min-height:calc(65px * var(--dk-ui-scale))}
#duck-panel .dk-item[data-tier]{position:relative;border-color:#7b96844d;background:linear-gradient(145deg,color-mix(in srgb,var(--grade,#8fa380) 9%,#1d3337),#142b30)}#duck-panel .dk-item[data-tier]::after{content:"";position:absolute;right:0;top:0;width:17px;height:17px;border-top:2px solid var(--grade,#90a687);border-right:2px solid var(--grade,#90a687);border-radius:0 4px 0 0;pointer-events:none}.dk-item[data-tier="4"]{--grade:#b6a5d2}.dk-item[data-tier="5"]{--grade:#d2b781}
.dk-ux-card>header,.dk-ux-compare>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.dk-ux-card>header h3{margin:3px 0;font-size:16px}.dk-ux-card>header small{font-size:9px;color:#b1c4aa;letter-spacing:1.2px}.dk-ux-card>form{display:flex;gap:8px;align-items:flex-end;flex-wrap:wrap;margin-top:14px}.dk-ux-card>form label{flex:1 1 140px;min-width:0;font-size:11px;color:#bfceba}.dk-ux-card>form input{display:block;width:100%;min-height:38px;margin-top:5px}.dk-ux-preset-row{flex-wrap:wrap}.dk-ux-preset-row>strong{flex:1 1 100%}.dk-ux-preset-row>small{flex:1 1 100%}.dk-ux-flags button{font-size:9px!important;min-height:30px!important;padding:5px 7px!important}.dk-ux-flags [aria-pressed=true]{border-color:#c7d29a!important;background:#475841!important;color:#eee4b5!important}.dk-ux-needs{margin:7px 0}.dk-ux-needs i{font-style:normal}.dk-ux-quote-list>p{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;margin:0;border-bottom:1px solid #72846d33;font-size:12px}.dk-ux-quote>label{display:block;margin:12px 0;font-size:12px}.dk-ux-quote select,.dk-ux-body form select{display:block;width:100%;box-sizing:border-box;min-height:38px;margin:6px 0 12px}.dk-ux-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 20px;border-bottom:1px solid #80927855;background:#2d443c}.dk-ux-dialog>header h2{font-size:18px;margin:0}.dk-ux-dialog>header button{min-width:36px;flex-shrink:0}.dk-ux-body [data-ux-room-form]>label{display:block;font-size:12px;margin-bottom:12px}
.dk-exit-list{flex:0 1 auto;max-height:43%;overflow:auto;overscroll-behavior:contain;margin-top:8px;text-align:left}.dk-exit-list[hidden]{display:none!important}#duck-panel .dk-exit-list .dk-exit-helper{padding:10px}.dk-exit-list .dk-exit-helper>div{grid-template-columns:repeat(3,minmax(0,1fr))}.dk-exit-list .dk-exit-helper>header{margin-bottom:7px}.dk-exit-list .dk-exit-helper h3{font-size:13px}.dk-exit-list .dk-exit-helper>p{font-size:9px;margin:7px 0 0}.dk-exit-list .dk-exit-card{padding:8px!important;gap:3px!important}.dk-exit-list .dk-exit-card b{font-size:10px!important}.dk-exit-list .dk-exit-card :is(span,small){font-size:9px!important}#dk-exit-guide{right:14px;top:51%;transform:translateY(-50%);display:flex;align-items:center;gap:9px}#dk-exit-guide>i{font-size:23px;font-style:normal;flex-shrink:0}#dk-exit-guide>span{min-width:0}#dk-exit-guide button{pointer-events:auto;align-self:flex-start;padding:0!important;min-height:24px!important;min-width:24px;border:0!important;background:transparent!important;font-size:19px!important;color:#d7dec0}
.dk-ux-layout{position:absolute;bottom:12px;right:12px;display:flex;gap:5px;flex-wrap:wrap;max-width:350px;z-index:28;pointer-events:auto}.dk-ux-layout button{font-size:9px!important;min-height:30px!important;padding:6px 8px!important;background:#17302eea!important}.dk-ux-layout:only-child{display:none}.dk-ping-replies,.dk-party-activities{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}.dk-ping-replies>span{font-size:9px;line-height:1.5;padding:2px 5px;color:var(--party,#d5e1bf);border:1px solid currentColor;border-radius:3px;background:#112c2ecc}.dk-party-activities{grid-column:1/-1}.dk-party-activities>span{font-size:8px;line-height:1.6;padding:1px 4px;border-radius:3px;background:#1b3736;color:#cbdabe}.dk-ping-response-actions{display:flex;gap:4px;margin-top:6px;pointer-events:auto}#duck-panel .dk-ping-response-actions button{font-size:9px;min-height:29px;padding:4px 6px;border:1px solid #94ad8d66;background:#213c35;color:#ccdbbb}#duck-panel .dk-ping-response-actions button[aria-pressed=true]{background:#53664a;border-color:#ccdaa6;color:#f1edc9}.dk-ping-message:has(.dk-ping-response-actions){display:block;pointer-events:auto;max-width:100%}
@media(max-width:900px){.dk-key-settings>div{grid-template-columns:repeat(2,minmax(0,1fr))}.dk-ux-dialog{max-height:calc(100dvh - 24px)}.dk-ux-body{max-height:calc(100dvh - 120px)}.dk-ux-preset-row{flex-wrap:wrap}.dk-exit-list .dk-exit-helper>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#duck-panel .dk-ux-card,#duck-panel .dk-preferences,#duck-panel .dk-exit-helper{padding:12px}.dk-pref-columns{grid-template-columns:1fr;gap:10px}.dk-pref-columns fieldset{padding:12px}.dk-ux-header,.dk-preferences>header,.dk-exit-helper>header{gap:8px;align-items:flex-start;flex-wrap:wrap}.dk-ux-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.dk-ux-dialog>.dk-ux-header{padding:12px}.dk-ux-body{padding:12px;max-height:calc(100dvh - 100px)}.dk-ux-preset-row{flex-wrap:wrap;padding:9px;gap:6px}.dk-ux-preset-row>span,.dk-ux-preset-row>div:first-child{flex-basis:100%}.dk-key-settings>div{gap:4px 10px}.dk-pref-field>span{font-size:11px}.dk-pref-field select{font-size:12px}.dk-exit-helper>div{grid-template-columns:1fr}.dk-ux-compare-grid{grid-template-columns:minmax(0,1fr) repeat(2,minmax(45px,.7fr));gap:6px;font-size:10px}.dk-ux-quote-list>li,.dk-ux-quote-list>div{flex-wrap:wrap;gap:6px;font-size:11px}#dk-exit-guide{max-width:145px;padding:6px 8px;font-size:10px}#dk-exit-guide b{font-size:10px}#dk-exit-guide small{font-size:8px}#duck-panel .dk-floating>header h3{font-size:calc(14px * var(--dk-ui-scale))}#duck-panel .dk-floating .dk-inventory-cell{min-height:calc(55px * var(--dk-ui-scale))}}
.dk-minimap.is-expanded .dk-exit-list{min-height:0;max-height:min(44%,280px);overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;touch-action:pan-y}
.dk-minimap.is-expanded>canvas{flex:1 1 0;min-height:120px;height:auto}
#duck-panel .dk-field:has(.dk-minimap.is-expanded){touch-action:pan-y}
@media(max-width:700px){.dk-minimap.is-expanded .dk-exit-list{max-height:min(46%,250px)}.dk-minimap.is-expanded>canvas{min-height:130px}#duck-panel .dk-exit-list .dk-exit-helper>header{padding-bottom:7px;gap:6px}.dk-exit-list .dk-exit-helper>header span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.dk-ux-card *,.dk-ux-dialog *,.dk-exit-helper *{scroll-behavior:auto!important;transition:none!important}}
@media(max-width:700px){.dk-ux-dialog>header{padding:11px 12px}.dk-ux-dialog>header h2{font-size:15px}.dk-ux-card>header{flex-wrap:wrap}.dk-ux-preset-row>strong{flex-basis:100%}.dk-ux-preset-row>small{flex-basis:100%}.dk-exit-list{max-height:48%}.dk-exit-list .dk-exit-helper>div{grid-template-columns:repeat(2,minmax(0,1fr))}.dk-exit-list .dk-exit-helper>p{display:none}#dk-exit-guide{left:12px;right:auto;top:190px;transform:none;max-width:153px;gap:6px}.dk-ux-layout{left:8px;right:8px;bottom:9px;max-width:none;gap:4px}.dk-ux-layout button{font-size:8px!important;padding:5px 6px!important;min-height:29px!important}.dk-party-activities>span{font-size:7px}.dk-ping-response-actions{gap:3px}#duck-panel .dk-ping-response-actions button{font-size:8px;padding:4px 5px}.dk-ping-replies>span{font-size:8px}}
