/* 0.30 · SCP Workshop. Real controls, no pixel-art or new character artwork. */
.sc-coin{width:36px;height:36px;flex:0 0 auto;filter:drop-shadow(0 0 6px #eeac4638);vertical-align:middle}
.menu-wallet{display:flex;align-items:center;gap:9px;border:1px solid #bd883b77;background:linear-gradient(130deg,#372512,#191a19);padding:7px 13px;border-radius:9px;color:#ffdb87;min-height:47px}
.menu-wallet .sc-coin{width:28px;height:28px}.menu-wallet span{display:flex;flex-direction:column;text-align:left}.menu-wallet small{font-size:9px;font-weight:700;letter-spacing:1px;color:#dec18e}.menu-wallet b{font-size:21px;line-height:1.1;font-variant-numeric:tabular-nums}
#modal-root .modal.workshop-modal{width:min(1260px,100%);max-height:94dvh;padding:27px 30px 20px;background:radial-gradient(ellipse at 92% 6%,#193b4566,transparent 42%),linear-gradient(135deg,#171917,#10191c 55%,#101315);border:1px solid #5c614e;border-top:2px solid #c58c47;border-radius:20px;scrollbar-color:#99713c #0b1518;overscroll-behavior:contain}
.workshop-modal h2{font-family:Georgia,serif;font-size:33px;letter-spacing:0;color:#f7d3a0}.workshop-modal>.eyebrow{color:#70cad7;font-size:10px}.workshop-modal>p{color:#b7c8c9;font-size:13px}
.workshop-sticky{position:sticky;top:-27px;z-index:5;margin:19px -10px 17px;padding:13px 13px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#121b1afa;border:1px solid #645534;border-radius:12px;box-shadow:0 8px 22px #0005}
.workshop-wallet{display:flex;align-items:center;gap:15px}.workshop-wallet>.sc-coin{width:58px;height:58px}.workshop-wallet>div{display:flex;flex-direction:column}.workshop-wallet span{font-size:10px;letter-spacing:1.5px;color:#e5bd7d;font-weight:700}.workshop-wallet strong{font-size:38px;line-height:1.12;color:#ffe5a8;font-variant-numeric:tabular-nums;letter-spacing:.5px}.workshop-wallet small{font-size:10px;color:#b3bcae;margin-top:2px}.shop-close{color:#d6e5df;border:1px solid #547477;background:#12292f;padding:11px 16px;white-space:nowrap;font-size:12px}.shop-close span{color:#6ce1f1;margin-left:12px}
.workshop-character{display:flex;gap:19px;align-items:center;border-bottom:1px solid #46606555;padding:0 0 19px}.workshop-portrait{height:122px;width:103px;flex:0 0 103px;display:grid;place-items:center;border:1px solid #5f828355;border-radius:13px;background:radial-gradient(ellipse,#28505a77,transparent 70%),#102129;box-shadow:inset 0 0 28px #40cbd009;overflow:hidden}.workshop-portrait img{width:91%;height:112px;object-fit:contain;filter:drop-shadow(0 3px 10px #0009)}.workshop-identity{flex:1;min-width:0}.workshop-identity label{display:block;font-size:9px;letter-spacing:1.7px;color:#8bdce1;margin-bottom:7px}.workshop-identity select{width:100%;max-width:410px;background:#102229;color:#f1f5ef;border:1px solid #577271;border-radius:8px;padding:10px 28px 10px 12px;font:600 16px/1.4 'Segoe UI',Arial,sans-serif;outline-offset:3px}.workshop-identity p{font-size:11px;color:#b0c4c3;margin:7px 0}.workshop-milestones{display:flex;flex-wrap:wrap;align-items:center;gap:12px;font-size:11px;color:#a7bfbb}.workshop-milestones b{color:#e4dcc4}.workshop-milestones .sc-coin{width:17px;height:17px;margin-right:3px}.workshop-summary{border-left:1px solid #55727255;padding-left:19px;min-width:280px}.workshop-summary>small{font-size:9px;letter-spacing:1px;color:#a8b7ad}.workshop-summary>div{display:grid;grid-template-columns:1fr 1fr;gap:9px 22px;margin-top:10px}.workshop-summary span{display:flex;flex-direction:column;color:#b2c1c1;font-size:10px}.workshop-summary b{font-size:18px;color:#d7f7ef;font-weight:600;font-variant-numeric:tabular-nums}
.workshop-status{margin:13px 0;color:#b9d6d4;font-size:12px;min-height:20px;line-height:1.6;padding:6px 10px;border-left:2px solid #48cde2;background:#1a353832}
.workshop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.upgrade-card{padding:17px 16px 12px;background:linear-gradient(135deg,#16272e,#102025 75%);border:1px solid #3d5c61;border-radius:12px;position:relative;overflow:hidden;min-width:0}.upgrade-card:before{content:'';position:absolute;top:0;left:15px;width:35px;height:2px;background:#80cfdd;opacity:.7}.upgrade-card.is-affordable{border-color:#9d783d;background:linear-gradient(135deg,#1c2e31,#152320 75%)}.upgrade-card.is-max{border-color:#66917a}.upgrade-top{display:flex;gap:12px;align-items:center}.upgrade-icon{height:43px;width:43px;flex:0 0 43px;display:grid;place-items:center;background:#0b1a20;border:1px solid #3b6270;border-radius:10px;color:#88dfed}.upgrade-icon svg{height:27px;width:27px}.upgrade-top>div{flex:1;min-width:0}.upgrade-top small{font-size:9px;letter-spacing:1px;text-transform:uppercase;color:#96aaa8;display:block}.upgrade-top h3{font-size:16px;margin-top:3px;line-height:1.2;color:#f0f4ed;font-family:'Segoe UI',Arial,sans-serif}.upgrade-rank{font-size:24px;letter-spacing:-.5px;color:#f5dba5;white-space:nowrap;align-self:flex-start}.upgrade-rank small{display:inline;font-size:12px;letter-spacing:0}.upgrade-detail{font-size:11px;line-height:1.5;color:#bdcecd;margin:10px 0;min-height:17px}.upgrade-pips{display:flex;gap:4px;height:5px;margin-bottom:14px}.upgrade-pips i{flex:1;background:#345057;border-radius:2px}.upgrade-pips .filled{background:#f4c77d;box-shadow:0 0 5px #ed9e2c50}.upgrade-comparison{display:flex;align-items:center;gap:10px;border-top:1px solid #4460664d;border-bottom:1px solid #4460664d;padding:10px 0;margin-bottom:12px;font-size:12px;min-height:53px}.upgrade-comparison>span:not(.upgrade-arrow){flex:1;line-height:1.5;color:#d7e2d8}.upgrade-comparison>span:last-child{color:#95e5df}.upgrade-comparison small{display:block;font-size:8px;font-weight:600;letter-spacing:1px;color:#829b9b}.upgrade-arrow{color:#6b928f;font-size:17px}.upgrade-purchase{display:flex;gap:10px;justify-content:space-between;align-items:center}.upgrade-cost{display:flex;align-items:center;gap:7px;min-width:0}.upgrade-cost .sc-coin{width:30px;height:30px}.upgrade-cost small{display:block;font-size:8px;letter-spacing:1px;color:#d4b177}.upgrade-cost b{font-size:24px;line-height:1.15;color:#ffe1a0;font-variant-numeric:tabular-nums}.upgrade-purchase button{min-width:112px;min-height:47px;padding:8px 11px;border-radius:8px;background:linear-gradient(135deg,#ee9b4b,#d57832);border:1px solid #f1c180;color:#211609;font-size:10px;font-weight:800;letter-spacing:1px}.upgrade-purchase button small{display:block;font-size:8px;font-weight:500;color:inherit;letter-spacing:.4px;margin-top:3px}.upgrade-purchase button:disabled{opacity:1;border-color:#3d5156;background:#1a2b31;color:#8ea3a8}.upgrade-purchase button:focus-visible{outline:2px solid #8ce3f7;outline-offset:3px}.upgrade-affordability{margin-top:8px;min-height:17px;font-size:10px;line-height:1.4;color:#9db6b5}.upgrade-affordability b{font-weight:600;color:#e8c78d}.upgrade-special{margin-top:7px;font-size:10px;color:#9dafb7;line-height:1.5}.is-max .upgrade-pips i{background:#82c3a1}.is-max .upgrade-cost b{color:#9bd6b5}
.workshop-footer{display:flex;align-items:center;justify-content:space-between;gap:25px;border-top:1px solid #3d5a6055;padding-top:18px;margin-top:22px}.workshop-footer>div:first-child{max-width:65%}.workshop-footer b{color:#d3c1a3;letter-spacing:1px;font-size:10px}.workshop-footer p{font-size:11px;line-height:1.7;color:#9aafae;margin:5px 0}.workshop-backup{display:flex;flex-direction:column;gap:8px;flex:0 0 auto}.workshop-backup button{font-size:11px;padding:9px 13px;border-radius:7px}.workshop-disclaimer{font-size:10px!important;color:#849e9f!important;margin-top:16px!important;line-height:1.8}.import-review{margin-top:20px;padding:20px;background:#12282e;border-radius:12px}.import-review p{font-size:13px;line-height:1.6;margin-top:12px}.import-review .sc-coin{width:45px;height:45px;float:left;margin:0 14px 12px 0}
#hud .coin-hud{display:flex;align-items:center;gap:9px;border:1px solid #d8aa5b88;padding:10px 13px;min-width:142px;background:linear-gradient(130deg,#302619ee,#101d20ee)}#hud .coin-hud .sc-coin{width:33px;height:33px}#hud .coin-hud>div{display:flex;flex-direction:column}#hud .coin-hud small{font-size:8px;letter-spacing:.7px;color:#e9c995}#hud .coin-hud #coins{font-size:23px;line-height:1.1;color:#ffe9b1;font-variant-numeric:tabular-nums}#hud .coin-hud span{font-size:9px;color:#bdc5b6;margin-top:3px}#hud .coin-hud strong{color:#eed8a6;font-variant-numeric:tabular-nums}
.result-wallet{display:flex;align-items:center;gap:14px;border:1px solid #867149;border-radius:12px;padding:14px 20px;background:#33261966;margin-top:20px}.result-wallet b{display:block;color:#ffe1a0;font-size:32px}.result-wallet small{font-size:10px;color:#dbc48c}.result-wallet>span{margin-left:auto;font-size:13px;color:#beded1}.reroll-panel{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:13px 0 2px;border-top:1px solid #52777a66;margin-top:20px}.reroll-panel>span{font-size:13px;color:#d7e5de}.reroll-panel b{color:#f9d48e}.reroll-panel button{font-size:11px;padding:12px 16px;border-color:#709caf;color:#9ce3ef}.reroll-panel small{width:100%;font-size:11px;line-height:1.4;color:#9eb7b8}
@media(max-width:1000px){.workshop-summary{min-width:220px}.workshop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-summary>div{gap:9px 12px}.workshop-character{gap:12px}.workshop-identity select{font-size:14px}.menu-wallet small{font-size:8px}.menu-wallet b{font-size:18px}.scp-local{display:none!important}}
@media(max-width:600px){#modal-root{padding:8px}#modal-root .modal.workshop-modal{padding:19px 15px 16px;max-height:96dvh;border-radius:14px}.workshop-modal h2{font-size:27px}.workshop-modal>p{font-size:12px}.workshop-sticky{top:-19px;margin:14px -5px;padding:11px 10px;gap:8px}.workshop-wallet{gap:9px}.workshop-wallet>.sc-coin{height:43px;width:43px}.workshop-wallet strong{font-size:30px}.workshop-wallet span{font-size:8px;letter-spacing:1px}.workshop-wallet small{font-size:8px}.shop-close{font-size:10px;padding:9px;max-width:90px;white-space:normal}.shop-close span{display:none}.workshop-character{flex-wrap:wrap;gap:12px}.workshop-portrait{height:90px;width:72px;flex-basis:72px}.workshop-portrait img{height:86px}.workshop-identity select{font-size:13px;padding:8px 22px 8px 7px}.workshop-identity label{font-size:8px}.workshop-identity p{font-size:10px}.workshop-milestones{font-size:9px;gap:5px}.workshop-summary{border-left:0;border-top:1px solid #55727255;padding:10px 0 0;width:100%}.workshop-summary>div{grid-template-columns:repeat(4,1fr);gap:8px}.workshop-summary b{font-size:14px}.workshop-summary span{font-size:9px}.workshop-status{font-size:10px;line-height:1.6;margin:11px 0}.workshop-grid{grid-template-columns:1fr;gap:11px}.upgrade-card{padding:16px}.upgrade-top h3{font-size:17px}.upgrade-detail{font-size:12px}.upgrade-comparison{font-size:13px}.upgrade-purchase button{min-width:135px}.upgrade-cost b{font-size:26px}.upgrade-affordability{font-size:11px}.workshop-footer{flex-direction:column;gap:14px;align-items:stretch}.workshop-footer>div:first-child{max-width:100%}.workshop-backup{flex-direction:row}.workshop-backup button{flex:1}.menu-wallet{padding:6px 8px;gap:6px;min-height:38px}.menu-wallet .sc-coin{width:25px;height:25px}.menu-wallet small{font-size:7px}.menu-wallet b{font-size:17px}.scp-header-actions{gap:5px!important}.scp-header{padding:12px!important;gap:8px!important}.scp-brand{gap:7px!important}.scp-brand img{width:30px!important;height:34px!important}.scp-brand span{font-size:11px!important;letter-spacing:1px!important}.scp-brand small{font-size:7px!important}.scp-icon-btn{width:31px!important;height:34px!important}.scp-mobile-menu{width:31px!important}.right-hud{max-width:110px!important}#hud .coin-hud{min-width:103px;padding:6px 7px;gap:5px}#hud .coin-hud .sc-coin{width:23px;height:23px}#hud .coin-hud small{font-size:6px}#hud .coin-hud #coins{font-size:19px}#hud .coin-hud span{font-size:8px}.hud-top{gap:5px!important}.player-card{width:147px!important}.clock{min-width:75px!important;padding:8px!important}.clock b{font-size:21px!important}.result-wallet{padding:12px;gap:8px}.result-wallet>span{font-size:11px;max-width:100px}.reroll-panel button{width:100%}}
@media(prefers-reduced-motion:reduce){.upgrade-card,.menu-wallet{transition:none}}
/* Specificity matches the existing SCP modal skin. Keep purchase actions high-contrast. */
body.scp-menu-open #modal-root .workshop-modal .upgrade-purchase button:not(:disabled){background:linear-gradient(135deg,#f6b05d,#df8b3e);color:#211609;border:1px solid #f4c98c;border-radius:8px}
body.scp-menu-open #modal-root .workshop-modal .upgrade-purchase button:not(:disabled):hover{background:#ffd08a;border-color:#fff0bc}
body.scp-menu-open #modal-root .workshop-modal .upgrade-purchase button:disabled{background:#1a2b31;color:#b1c3c5;border-color:#476069;border-radius:8px}
body.scp-menu-open #modal-root .workshop-modal .shop-close{color:#d8eeec;border-radius:8px}
body.scp-menu-open #modal-root .workshop-modal .upgrade-purchase button{transition:border-color .15s,box-shadow .15s;transform:none}

.workshop-max,.reward-swap{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem 1rem;margin:1rem 0}
.workshop-max span,.reward-swap{font-size:.9rem;color:#c5d8d6}
.reward-swap{padding:1rem;border:1px solid #576c68;border-radius:10px;background:#132326}
.reward-swap p{flex-basis:100%;margin:0}
.reward-swap label{display:grid;gap:.3rem;max-width:100%}
.reward-swap select{max-width:100%;padding:.5rem;color:#ecf5ed;background:#102229;border:1px solid #718e89;border-radius:6px;font:inherit}
.reward-swap button{align-self:end}
