/* State labels remain explicit with reduced motion and keyboard navigation. */
#game #panel details>summary{cursor:pointer;min-height:34px;box-sizing:border-box;padding:8px 6px;border:1px solid #b9825755;border-radius:4px}
#game #panel details>summary::after{content:'▾ 펼치기';display:inline-block;margin-left:8px;color:#ffbd99;font-weight:900;font-size:12px;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
#game #panel details[open]>summary::after{content:'▴ 접기';color:#c5e9d5}
#game #panel details>summary:focus-visible{outline:2px solid #ffcb8e;outline-offset:2px}
.batchEnhance{min-width:0;border:1px solid #ac885a;padding:9px;border-radius:7px;background:#19362d}
.batchEnhance h3 small{color:#ffd093;float:right}.enhanceTray{min-height:52px;background:#071e18;padding:5px;border-radius:5px}
.enhanceTray article,.enhanceStock article{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:6px;padding:6px 0;border-bottom:1px solid #80958335}
.enhanceTray .artIcon,.enhanceStock .artIcon{width:30px;height:30px}.enhanceTray b,.enhanceStock b{display:block;font-size:12px;overflow-wrap:anywhere}.enhanceTray small,.enhanceStock small{display:block;font-size:11px;color:#c4d3bc}.enhanceStock{max-height:260px;overflow:auto;overscroll-behavior:contain}
.enhanceStock article>div:last-child{display:flex;gap:3px}.batchActions{display:flex;gap:6px}.batchActions>button:first-child{flex:1;background:#765021!important;color:#ffedbb!important}.mainEnhance{margin-top:14px}
.enhanceResultList{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:44vh;overflow:auto}.enhanceResultList article{display:flex;align-items:center;gap:7px;text-align:left;padding:8px;border:1px solid #b5c2a7;border-radius:5px;animation:rewardFace .5s both;animation-delay:var(--delay)}.enhanceResultList .artIcon{width:36px;height:36px;flex-shrink:0}.enhanceResultList b,.enhanceResultList span{display:block;font-size:12px;overflow-wrap:anywhere}.enhanceResultList .won{color:#ffe293;background:#67512166}.enhanceResultList .lost{color:#d6abab;background:#4c252566}.enhanceResultList span{margin-top:4px}
#rewardOverlay .highEnhancement .rewardAura{animation:enhanceRadiance 3.5s ease-out both;opacity:.45;border:2px solid #ffcf69;box-shadow:0 0 40px #ffcd7688,inset 0 0 50px #ffdf9a44}
#rewardOverlay .highEnhancement .rewardCard{animation-duration:1s;animation-delay:1.2s}#rewardOverlay .highEnhancement .rewardFace{animation-delay:1.6s}
@keyframes enhanceRadiance{0%{transform:translate(-50%,-30%) scale(.2);opacity:0}30%{opacity:.8}65%{transform:translate(-50%,-30%) scale(1.5);opacity:.5}100%{transform:translate(-50%,-30%) scale(1.8);opacity:.12}}
#jadeSpeech{position:absolute;z-index:22;pointer-events:none;left:50%;transform:translateX(-50%);top:23%;width:min(440px,calc(100% - 24px));box-sizing:border-box;text-align:center;padding:8px 12px;background:linear-gradient(90deg,transparent,#361117e8,transparent);border-block:1px solid #e1a25b88;text-shadow:0 2px 3px #000;color:#ffce9b}
#jadeSpeech[hidden]{display:none}#jadeSpeech b,#jadeSpeech strong,#jadeSpeech small{display:block}#jadeSpeech b{font-size:11px;color:#ed857c}#jadeSpeech strong{font:700 17px/1.4 var(--font-ui);margin:4px 0}#jadeSpeech small{color:#9effd5;font-size:12px}
@media(max-width:420px){.enhanceStock article{grid-template-columns:27px minmax(0,1fr)}.enhanceStock article>div:last-child{grid-column:2;justify-content:flex-end}.enhanceResultList{grid-template-columns:1fr}#jadeSpeech{top:27%}#jadeSpeech strong{font-size:14px}}
@media(prefers-reduced-motion:reduce){#rewardOverlay .highEnhancement *,.enhanceResultList article{animation:none!important}}
#rewardOverlay.revealAll .highEnhancement *{animation:none!important}

.batchCost{display:flex;flex-wrap:wrap;gap:6px 14px;padding:8px 0;font-size:12px}.batchCost span{white-space:nowrap}.batchCost b{color:#ffe4a1;margin-left:4px}

#game #panel #panelBody .enhanceModeTabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:0 0 8px}
#game #panel #panelBody .enhanceModeTabs button{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:3px 8px;min-width:0;min-height:44px!important;margin:0;padding:7px 6px!important;border:1px solid #637e6d!important;border-bottom:3px solid #637e6d!important;border-radius:6px;background:#173329!important;color:#c2d0c3!important;line-height:1.35}
#game #panel #panelBody .enhanceModeTabs button[aria-pressed=true]{background:#684b25!important;border-color:#e9c47c!important;color:#fff0c9!important}
#game #panel #panelBody .enhanceModeTabs b{font-size:14px;white-space:nowrap}#game #panel #panelBody .enhanceModeTabs small{font-size:11px;white-space:nowrap}
#game #panel #panelBody .enhanceModeTabs button:focus-visible{outline:2px solid #ffe098;outline-offset:2px}
#game #panel #panelBody .enhanceModeTabs button:disabled{opacity:.6;cursor:wait}
#game #panel .workshop>p[role=status]:empty{display:none}
#game #panel .workshop .workWallet{margin:5px 0 8px;font-size:12px}
