.temple-construction-panel{position:fixed;z-index:1300;left:50%;top:50%;transform:translate(-50%,-50%);width:min(920px,calc(100vw - 28px));max-height:min(88dvh,820px);overflow:auto;padding:clamp(18px,3vw,32px);border:2px solid #c9a85e;border-radius:13px;background:radial-gradient(ellipse at 50% 0,rgba(82,119,76,.3),transparent 48%),linear-gradient(155deg,#12271e,#0b1915 74%);box-shadow:0 22px 80px #000c,inset 0 0 0 4px #192a20;color:#f0e4c3;scrollbar-color:#9a7b45 #122019}
.temple-construction-panel.hidden{display:none}
.temple-construction-close{position:absolute;right:16px;top:15px;width:38px;height:38px;border:1px solid #8b6746;border-radius:8px;background:#4b2922;color:#ffe4bd;font-size:25px;line-height:1;cursor:pointer;box-shadow:0 3px 0 #201b13}
.temple-construction-heading{display:flex;align-items:center;gap:15px;padding:3px 48px 18px 0;border-bottom:1px solid #786342}
.temple-construction-seal{display:grid;place-items:center;flex:0 0 54px;height:54px;border:2px solid #d4b45f;border-radius:50%;background:radial-gradient(circle,#e7c868,#68502c 70%);color:#fff1a4;font-size:28px;box-shadow:0 0 22px #e7be554d}
.temple-construction-heading small,.temple-donor-board-heading small{color:#c9ad68;font-size:10px;font-weight:800;letter-spacing:.11em}
.temple-construction-heading h2{margin:4px 0 2px;color:#ffdf8e;font-size:clamp(22px,4vw,31px);line-height:1.2}
.temple-construction-heading b{display:inline-block;padding:3px 9px;border:1px solid #af7649;border-radius:20px;background:#482d22;color:#f2b16e;font-size:12px}
#temple-construction-copy{max-width:760px;margin:17px 0 20px;color:#c7d1bd;line-height:1.8}
.temple-construction-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:20px}
.temple-construction-totals article{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 8px;padding:12px 14px;border:1px solid #445b46;border-radius:9px;background:linear-gradient(145deg,#1b382a,#10231b)}
.temple-construction-totals article small{grid-column:1/-1;color:#b9c9af;font-size:12px}.temple-construction-totals strong{color:#ffdc83;font-size:23px;font-variant-numeric:tabular-nums}.temple-construction-totals span{color:#aab6a4;font-size:11px}#temple-my-total{grid-column:1/-1}
.temple-construction-body{display:grid;grid-template-columns:minmax(250px,.82fr) minmax(0,1.18fr);gap:16px;align-items:start}
.temple-donation-form,.temple-donor-board{min-width:0;padding:16px;border:1px solid #4c6550;border-radius:10px;background:#0b1a15}
.temple-donation-form h3,.temple-donor-board h3{margin:0;color:#f4dfa7;font-size:17px}
.temple-donation-form>label{display:block;margin:14px 0 6px;color:#bdc9b9;font-size:12px}
#temple-resource-select,#temple-donation-quantity{width:100%;min-height:40px;padding:8px 10px;border:1px solid #637c5a;border-radius:6px;background:#172b20;color:#fff0cc;font:inherit}
.temple-available-row{display:flex;justify-content:space-between;margin:8px 2px 14px;color:#aebea9;font-size:12px}.temple-available-row b{color:#9de5b4;font-variant-numeric:tabular-nums}
.temple-quantity-row>label{display:block;margin-bottom:6px;color:#bdc9b9;font-size:12px}.temple-quantity-presets{display:flex;gap:6px;margin-top:7px}.temple-quantity-presets button{flex:1;min-height:30px;border:1px solid #56694e;border-radius:5px;background:#1a2c21;color:#d9c794;cursor:pointer}.temple-quantity-presets button:hover,.temple-quantity-presets button:focus-visible{border-color:#e6c96e;color:#fff0b4}
.temple-donate-button{width:100%;min-height:44px;margin-top:14px;border:1px solid #f5dc87;border-radius:7px;background:linear-gradient(#ffe9a2,#c39442);color:#2a2111;font:inherit;font-weight:800;font-size:15px;cursor:pointer;box-shadow:0 3px 0 #584524}.temple-donate-button:disabled{filter:grayscale(.8);opacity:.48;cursor:not-allowed}.temple-donation-status{min-height:34px;margin-top:10px;color:#b8c8b2;font-size:12px;line-height:1.5}.temple-donation-status.is-error{color:#ffa69b}.temple-donation-status.is-success{color:#9de5b4}
.temple-donor-board-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.temple-donor-board-heading h3{margin-top:4px}.temple-donor-board-heading>span{padding:4px 7px;border:1px solid #887245;border-radius:4px;color:#e8d18c;font:700 10px monospace}
#temple-donor-list{display:grid;gap:6px;max-height:285px;overflow:auto;margin:13px 0;padding:0;list-style:none;counter-reset:temple-rank}
#temple-donor-list li{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;min-height:37px;padding:5px 8px;border:1px solid #334a3a;border-radius:6px;background:#13251c;color:#e2dfc7;font-size:12px}#temple-donor-list li::before{counter-increment:temple-rank;content:counter(temple-rank,decimal-leading-zero);color:#9db28d;font:700 11px monospace}#temple-donor-list li[data-rank="1"]::before{color:#ffdf7c}#temple-donor-list li[data-rank="2"]::before{color:#d5e0dc}#temple-donor-list li[data-rank="3"]::before{color:#d69b6d}#temple-donor-list .temple-donor-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}#temple-donor-list .temple-donor-meta{color:#b6c3ad;font-variant-numeric:tabular-nums;white-space:nowrap}.temple-donor-empty{grid-template-columns:1fr!important;justify-items:center;padding:25px 12px!important;color:#a9b8a7!important;text-align:center}.temple-donor-empty::before{content:"✦"!important;color:#d8bd73!important;font-size:18px!important}
.temple-donor-board>p{margin:12px 0 0;padding-top:10px;border-top:1px solid #314738;color:#9eaf9e;font-size:11px;line-height:1.6}
@media(max-width:680px){.temple-construction-panel{width:calc(100vw - 16px);max-height:92dvh;padding:16px 13px}.temple-construction-heading{gap:10px}.temple-construction-seal{flex-basis:42px;height:42px;font-size:22px}.temple-construction-heading small{font-size:8px;letter-spacing:.06em}.temple-construction-totals{gap:6px}.temple-construction-totals article{padding:9px 7px}.temple-construction-totals article small{font-size:10px}.temple-construction-totals strong{font-size:18px}.temple-construction-body{grid-template-columns:1fr}.temple-donation-form,.temple-donor-board{padding:13px}#temple-donor-list{max-height:210px}}
@media(prefers-reduced-motion:reduce){.temple-construction-panel *{scroll-behavior:auto!important;transition:none!important}}
