.enhance-slots,.enhance-picker,.enhance-selection{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}.enhance-slots{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.enhance-slot,.enhance-formula,.enhance-confirm,.enhance-history,.enhance-result{padding:16px;border:1px solid #226c9f;border-radius:18px;background:linear-gradient(145deg,#071e3a,#080d24);margin:15px 0;min-width:0}.enhance-slot{margin:0;display:flex;flex-direction:column;gap:8px;text-align:center}.enhance-slot .cards-primary,.enhance-slot .cards-secondary{width:100%;min-width:0}.enhance-empty-icon{font-size:44px;color:#38dfff;margin:auto;padding:22px 0}.enhance-level{display:block;padding:8px;color:#ffe874;text-align:center;font-size:16px}.enhance-card-choice{min-width:0}.enhance-card-choice .zug-card-face{width:100%;margin:0}.enhance-card-choice>button{width:100%;margin-top:8px}.enhance-serial{overflow-wrap:anywhere;color:#a6c9e5;font-size:11px}.enhance-formula strong{display:block;color:#52f4ff;font-size:22px}.enhance-confirm{border-color:#f4c541;box-shadow:0 0 18px #bd792126}.enhance-confirm>.cards-primary,.enhance-confirm>.cards-secondary{margin-top:12px;width:100%}.enhance-confirm>.enhance-card-choice{max-width:230px;margin:12px auto}.enhance-result{text-align:center;border-color:#d75dfd;animation:enhance-enter .45s ease-out}.enhance-result.is-success{border-color:#ffe16c;box-shadow:0 0 30px #e4c23835}.enhance-result>span{display:block;font-size:54px;color:#ffe16c}.enhance-result>strong{font-size:32px;color:#6ffbff}.enhance-result.is-failure>span{color:#b2c9ef}.enhance-rates{width:100%;border-collapse:collapse}.enhance-rates td{padding:9px;border-bottom:1px solid #22445d}.enhance-history summary{cursor:pointer;font-weight:700}.enhance-history p{padding:8px 0;border-bottom:1px solid #22445d;overflow-wrap:anywhere}.enhance-legendary{margin-top:24px}.enhance-slot.rarity-legendary{border-color:#f6c843}.enhance-slot.rarity-epic{border-color:#d976ff}html[data-theme=clean] .enhance-slot,html[data-theme=clean] .enhance-formula,html[data-theme=clean] .enhance-confirm,html[data-theme=clean] .enhance-history,html[data-theme=clean] .enhance-result{background:#f1f7ff;color:#102b4e}html[data-theme=clean] .enhance-formula strong{color:#036aa5}@media(max-width:360px){.enhance-slots{grid-template-columns:repeat(2,minmax(0,1fr))}.enhance-slot{padding:9px}.enhance-level{font-size:13px}}@media(min-width:760px){.enhance-slots{grid-template-columns:repeat(3,minmax(0,1fr))}.enhance-picker{grid-template-columns:repeat(3,minmax(0,1fr))}}@keyframes enhance-enter{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.enhance-result{animation:none}}

html[data-theme=clean] .enhance-serial{color:#386082}html[data-theme=clean] .enhance-level{color:#835600}

.card-face-enhance{position:absolute;top:10px;right:10px;z-index:6;padding:4px 8px;border:1px solid #ffe078;border-radius:8px;background:#07152eee;color:#ffe078;font-size:13px;font-weight:800;line-height:1.3;box-shadow:0 0 12px #efbc3344}.is-sealed .card-face-enhance{visibility:hidden}

/* Target and material retain the same height with zero, one or two selected cards. */
.enhance-selection .enhance-slot{box-sizing:border-box;position:relative;height:300px;display:grid;grid-template-rows:38px minmax(0,1fr) 28px;gap:8px;padding:12px}
.enhance-selection h4{margin:0;align-self:center;font-size:14px;line-height:1.4}.enhance-selection-well{min-width:0;min-height:0;display:grid;place-items:center;overflow:hidden}.enhance-selection-well>.enhance-card-choice{width:100%;max-width:140px}.enhance-selection .enhance-card-choice .zug-card-face{height:160px;width:113px;aspect-ratio:auto;margin:0 auto}.enhance-selection .zug-card-front>.card-face-brand,.enhance-selection .zug-card-front>.card-face-name,.enhance-selection .zug-card-front>.card-face-edition,.enhance-selection .zug-card-front>.card-face-serial,.enhance-selection .zug-card-front>.card-face-rarity,.enhance-selection .zug-card-front>.card-face-stars,.enhance-selection .zug-card-front>.card-face-enhance{display:none}.enhance-selection .zug-card-front .card-face-picture{position:absolute;inset:0;margin:0;border-radius:0}.enhance-selection .enhance-level{font-size:12px;line-height:1.4;padding:6px 0;white-space:normal}.enhance-selection>.enhance-slot>.enhance-serial{margin:0;line-height:14px;font-size:10px;overflow:hidden;align-self:center}.enhance-selection>.enhance-slot>.enhance-slot-trigger{position:absolute;inset:0;z-index:8;width:100%;height:100%;padding:0;border:0;border-radius:18px;background:transparent;cursor:pointer}.enhance-slot-trigger:focus-visible{outline:3px solid #5eeaff;outline-offset:3px}.enhance-selection .enhance-slot:hover{border-color:#39dfff;box-shadow:0 0 18px #26ccf52b}.enhance-slot-trigger:disabled{cursor:wait}.enhance-selection .enhance-empty-icon{display:grid;place-items:center;width:76px;height:76px;border:1px solid #2bbbd5;border-radius:50%;background:#06315a;box-shadow:0 0 24px #00d9ff30}.enhance-selection .enhance-empty-icon{padding:0;margin:0}.enhance-sound{display:block;margin:12px 0 12px auto;font-size:12px;min-height:40px}.enhance-sound[aria-pressed=true]{border-color:#2bc9e6;color:#74e7ff}html[data-theme=clean] .enhance-sound[aria-pressed=true]{color:#04628d}
@media(max-width:350px){.enhance-selection{gap:9px}.enhance-selection .enhance-slot{padding:9px}.enhance-selection .enhance-card-choice .zug-card-face{width:100px;height:150px}}

/* Four-slot benefits: calculated output above cards, no privilege tables. */
.enhance-benefit-summary{padding:14px;border:1px solid #2487b7;border-radius:18px;background:linear-gradient(120deg,#071d35,#151033);margin-bottom:16px}
.enhance-benefit-summary h3{font-size:15px;margin:0 0 12px}
.enhance-point-calculator{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1.5fr);align-items:center;gap:9px}
.enhance-point-calculator label,.enhance-point-output{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:11px}
.enhance-base-input{box-sizing:border-box;width:100%;min-width:0;font-size:16px;padding:8px;color:#e8fbff;background:#07182c;border:1px solid #30769a;border-radius:9px}
.enhance-points-arrow{color:#66e8ff;font-size:20px}
.enhance-points-total{color:#6bf2ff;font-size:22px;line-height:1.25;overflow-wrap:anywhere}
.enhance-benefit-summary .cards-help{font-size:10px;margin:0}
.enhance-time-summary{margin-top:14px}
.enhance-time-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-bottom:8px}
.enhance-time-summary:empty{display:none}
.enhance-time-summary .legendary-zones{gap:7px;margin:0}
.enhance-time-summary .legendary-zone{padding:8px 5px;font-size:11px;min-height:54px}
.enhance-time-summary .legendary-zone strong{font-size:14px;margin-top:4px}
.enhance-time-summary .cards-primary{margin-top:10px;min-height:38px;padding:7px 12px;font-size:12px}
.enhance-time-summary .legendary-state{font-size:12px;margin-top:8px}
.enhance-time-summary small{display:block;font-size:10px}
html[data-theme="clean"] .enhance-benefit-summary{background:#f0f6ff;color:#102540}
html[data-theme="clean"] .enhance-base-input{background:white;color:#102540}
html[data-theme="clean"] .enhance-points-total{color:#00658c}
.enhance-slots:has(.enhance-equipment-slot){grid-template-columns:repeat(2,minmax(0,1fr))}html[data-theme=clean] .enhance-benefit-summary{background:#f0f6ff;color:#102540}html[data-theme=clean] .enhance-base-input{background:white;color:#102540}html[data-theme=clean] .enhance-points-total{color:#00658c}

/* Actual server receipts, no editable base or client-side financial formula. */
.enhance-actual-points{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:start;text-align:center;margin:12px 0 6px}
.enhance-actual-metric{min-width:0;display:flex;flex-direction:column;gap:5px}
.enhance-actual-metric small{font-size:11px;line-height:1.5;color:#bed9ef}
.enhance-actual-metric strong{color:#4ce5ff;font-size:clamp(16px,5vw,23px);overflow-wrap:anywhere;line-height:1.35}
.enhance-actual-metric.bonus strong{color:#ffd761}.enhance-actual-metric.total strong{color:#fff}
.enhance-actual-status{font-size:11px;line-height:1.65;color:#9fd6ef;margin:10px 0 0}
.enhance-point-sources{display:grid;gap:10px;margin:12px 0}.enhance-point-source{min-width:0;font-size:11px;line-height:1.6}.enhance-point-source-title{display:flex;justify-content:space-between;gap:8px;color:#bdecff}.enhance-point-source-title strong:last-child{color:#67eaff;overflow-wrap:anywhere;text-align:right}.enhance-point-source small{display:block;color:#b2cbe0;font-size:10px}.enhance-point-source+.enhance-point-source{border-top:1px solid #264464;padding-top:8px}
html[data-theme="clean"] .enhance-point-source-title,html[data-theme="clean"] .enhance-point-source-title strong:last-child{color:#005e83}html[data-theme="clean"] .enhance-point-source small{color:#36536c}
html[data-theme="clean"] .enhance-actual-metric strong{color:#005e83}html[data-theme="clean"] .enhance-actual-metric.bonus strong{color:#8c5400}html[data-theme="clean"] .enhance-actual-metric.total strong{color:#102744}

/* Active fixed-point policy; receipts above retain their original settlement. */
.enhance-play-points{margin-top:14px;padding-top:12px;border-top:1px solid #31506a}
.enhance-play-points h3{font-size:12px;margin:0 0 10px}
.enhance-play-milestones{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0 0 10px;text-align:center}
.enhance-play-milestone{min-width:0;display:flex;flex-direction:column;gap:4px;color:#bad5ed}
.enhance-play-milestone strong{font-size:clamp(13px,4vw,18px);line-height:1.4;overflow-wrap:anywhere;color:#55e9ff}
.enhance-play-milestone small{font-size:10px}
.enhance-slots .enhance-equipment-slot{grid-template-rows:22px minmax(0,1fr) 16px}
.enhance-card-choice>.enhance-level{white-space:pre-line}
.enhance-equipment-slot>*{min-width:0;max-width:100%;box-sizing:border-box}
.enhance-equipment-well .zug-card-face>.enhance-equipment-badge{display:block;position:absolute;top:5px;right:5px;z-index:7;box-sizing:border-box;min-width:27px;padding:4px 5px;border:1px solid #ffe28b;border-radius:7px;background:#07162ef2;color:#ffe878;font-size:11px;font-weight:800;line-height:1.2;text-align:center;box-shadow:0 0 9px #f6ba4340;pointer-events:none}
html[data-theme=clean] .enhance-play-milestone{color:#38536b}
html[data-theme=clean] .enhance-play-milestone strong{color:#00658c}

/* Read-only point guide uses the live policy, with drafts labelled separately. */
.enhance-point-guide-open{width:100%;margin-top:12px;min-height:40px;font-size:12px}
:root[data-theme] .neon-member dialog.enhance-point-guide{box-sizing:border-box;width:min(550px,calc(var(--zug-viewport-width,100vw) - 28px));max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid #46d9fa;border-radius:20px;background:linear-gradient(135deg,#081d36,#100d29);color:#e5f3ff;box-shadow:0 0 24px #29dfff35,0 0 40px #b844ff26}
.enhance-point-guide::backdrop{background:#000b;backdrop-filter:blur(4px)}
.enhance-point-guide-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px;border-bottom:1px solid #31506a;background:#081b32}
.enhance-point-guide-heading h3{margin:0;font-size:16px;line-height:1.5}
.enhance-point-guide-close{flex:0 0 40px;width:40px;min-height:40px;padding:0;font-size:24px;line-height:1}
.enhance-point-guide-body{padding:12px 14px 14px}
.enhance-point-guide-state{margin:0 0 8px;color:#65efc4;font-size:11px;font-weight:700}
.enhance-point-guide-state.is-draft,.enhance-point-guide-notice{color:#ffdb80}
.enhance-point-guide-notice{font-size:11px;margin:0 0 10px}
.enhance-point-guide .cards-help{margin:0;font-size:11px;line-height:1.7;color:#b9d3e8}
.enhance-point-guide-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:12px 0}
:root[data-theme] .neon-member .enhance-point-guide-tabs .enhance-point-guide-tab{min-width:0;min-height:40px;padding:7px 2px;font-size:9px;line-height:1.3;border-radius:10px;white-space:nowrap}
.enhance-point-guide-tab.rarity-legendary{color:#ffdb73}.enhance-point-guide-tab.rarity-epic{color:#ee9dff}.enhance-point-guide-tab.rarity-rare{color:#6de4ff}.enhance-point-guide-tab.rarity-common{color:#d4e1f6}
.enhance-point-guide-tab.is-selected{border-color:#56e3ff;background:linear-gradient(120deg,#07529b,#5529a0);box-shadow:0 0 10px #30cfff30;color:white}
:root[data-theme] .neon-member .enhance-point-guide-tabs .enhance-point-guide-tab.is-selected{border-color:#56e3ff;background:linear-gradient(120deg,#07529b,#5529a0);color:white}
.enhance-point-guide-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;font-variant-numeric:tabular-nums;margin-bottom:12px}
.enhance-point-guide-table caption{text-align:left;font-size:11px;color:#6ceaff;padding:0 0 9px;font-weight:700}
.enhance-point-guide-table th,.enhance-point-guide-table td{padding:9px 2px;text-align:center;overflow-wrap:anywhere;border-bottom:1px solid #29425d}
.enhance-point-guide-table thead th{font-size:11px;color:#bed5eb;background:#102a46}
.enhance-point-guide-table tbody th{color:#d9e6fa;font-weight:600}
.enhance-point-guide-table tbody td{color:#74eaff}
.enhance-point-guide-table .is-unset{color:#a7b9cf;font-size:10px}
.enhance-point-guide-table .is-current{background:#173c54;box-shadow:inset 3px 0 #5ce4ff}
.enhance-point-guide-table .is-current th{color:#ffdd7d}
.enhance-point-guide-table th small{display:block;font-size:9px;line-height:1.5}
:root[data-theme=clean] .neon-member dialog.enhance-point-guide{background:#f4f8ff;color:#132e4b}
html[data-theme=clean] .enhance-point-guide-heading,html[data-theme=clean] .enhance-point-guide-table thead th{background:#e2edfa;color:#243e58}
html[data-theme=clean] .enhance-point-guide .cards-help,html[data-theme=clean] .enhance-point-guide-table tbody th{color:#35516d}
html[data-theme=clean] .enhance-point-guide-state{color:#006747}
html[data-theme=clean] .enhance-point-guide-state.is-draft,html[data-theme=clean] .enhance-point-guide-notice{color:#855100}
html[data-theme=clean] .enhance-point-guide-table caption,html[data-theme=clean] .enhance-point-guide-table tbody td{color:#006187}
html[data-theme=clean] .enhance-point-guide-table .is-unset{color:#52677d}
html[data-theme=clean] .enhance-point-guide-table .is-current{background:#d7ecfa}
html[data-theme=clean] .enhance-point-guide-table .is-current th{color:#774600}
html[data-theme=clean] .enhance-point-guide-tab.rarity-legendary{color:#815300}html[data-theme=clean] .enhance-point-guide-tab.rarity-epic{color:#7720a3}html[data-theme=clean] .enhance-point-guide-tab.rarity-rare{color:#006187}html[data-theme=clean] .enhance-point-guide-tab.rarity-common{color:#334967}html[data-theme=clean] .enhance-point-guide-tab.is-selected{color:white}
