/* A card-forging table: the card is the object, supplies occupy real sockets. */
body[data-game-page=enhance]{background:radial-gradient(ellipse at 78% 25%,#eaf4d0 0,transparent 55%),#dce9e0}
body[data-game-page=enhance]>main{max-width:1400px;padding:12px 24px 24px}
body[data-game-page=enhance] .workspace{grid-template-columns:280px minmax(0,1fr);gap:18px}
body[data-game-page=enhance] #library-host{top:calc(var(--game-header-height) + 12px)}
body[data-game-page=enhance] .library{padding:12px;background:#f8f5df;border:1px solid #b6ae82;border-top:3px solid #9d874c;border-radius:5px;box-shadow:inset 0 0 0 3px #e9e7d0}
body[data-game-page=enhance] .library h2{font-size:16px}
body[data-game-page=enhance] .cards{max-height:calc(100dvh - var(--action-height) - 380px)}
body[data-game-page=enhance] .filters{grid-template-columns:1fr 1fr;gap:5px}
body[data-game-page=enhance] .filters label:last-child{grid-column:1/-1}
body[data-game-page=enhance] .card-search{margin-top:6px}
body[data-game-page=enhance] .workbench.detail{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.4fr);gap:14px 20px;padding:22px;border:2px solid #a5ad85;border-top:4px solid #b79950;border-radius:7px;background:linear-gradient(125deg,#edf0d8,#fff9e8 45%,#e8edda);box-shadow:inset 0 0 0 4px #fff8dc,0 6px 0 #b1b99b,0 12px 22px #3e625526}
body[data-game-page=enhance] .selected-card{position:relative;display:flex;flex-direction:column;justify-content:center;gap:12px;align-self:start;grid-row:1/3;min-height:340px;padding:14px 8px 25px;text-align:center;isolation:isolate}
body[data-game-page=enhance] .selected-card:before{content:"";position:absolute;z-index:-1;width:190px;height:190px;top:30px;left:50%;translate:-50% 0;border:1px solid #b9a86b88;border-radius:50%;background:radial-gradient(circle,#fff9c4 0,#e7e9bc77 48%,transparent 70%);box-shadow:0 0 0 10px #b5ba8720,0 0 0 11px #a19a6f44}
body[data-game-page=enhance] .selected-card:after{content:"";position:absolute;z-index:-1;top:215px;left:50%;translate:-50% 0;width:190px;height:29px;border:2px solid #a6a47b;border-radius:50%;background:linear-gradient(#f9efd1,#b6c1a2);box-shadow:0 7px 0 #7f967e,0 10px 0 #d2d1ae,0 15px 12px #2a554528}
body[data-game-page=enhance] .selected-card #detail-image{width:150px;height:200px;object-fit:cover;object-position:center 20%;border:3px solid #bfab64;border-radius:5px;box-shadow:0 4px 0 #8c804d,0 9px 20px #5b694c33;background:#e2e7cd}
body[data-game-page=enhance] [data-rarity=SSS] #detail-image{border-color:#ad83cd;box-shadow:0 4px 0 #7e609c,0 0 0 3px #e1c6ef77,0 8px 22px #9e69b94a}
body[data-game-page=enhance] [data-rarity=SS] #detail-image{border-color:#cf9c6b;box-shadow:0 4px 0 #ac7654,0 8px 20px #cf8e4c33}
body[data-game-page=enhance] [data-rarity=S] #detail-image{border-color:#d8b04c;box-shadow:0 4px 0 #a38532,0 8px 20px #cba24a33}
body[data-game-page=enhance] .selected-summary{flex:0;z-index:1}
body[data-game-page=enhance] .selected-card #detail-grade{font-size:12px;color:#6b7149}
body[data-game-page=enhance] .selected-card h2{font-size:27px;margin:4px 0;color:#2e5144}
body[data-game-page=enhance] .selected-card #detail-level{font-size:18px;color:#8d6928}
body[data-game-page=enhance] .selected-card #lock-card{position:absolute;right:0;top:0;align-self:auto;font-size:10px;min-height:44px;background:#f9f4dc;border-color:#b9b68a;box-shadow:none}
body[data-game-page=enhance] .preparation-grid{grid-column:2;grid-row:1;margin:0;gap:12px;align-self:start}
body[data-game-page=enhance] .growth-block{padding:12px;background:#fffdf0;border:1px solid #b7bc94;border-radius:5px;box-shadow:inset 0 0 0 3px #f1efd8}
body[data-game-page=enhance] .block-heading h3{font-size:15px;color:#3c6047}
body[data-game-page=enhance] .block-heading h3>span{display:none}
body[data-game-page=enhance] .block-heading>b{font-size:11px}
body[data-game-page=enhance] .growth-block select{min-height:44px;background:#f6f1d9;border-color:#b3b68c;color:#37574c}
body[data-game-page=enhance] .growth-block p{font-size:11px;margin:7px 0;line-height:1.5}
body[data-game-page=enhance] .potion-preview{min-height:0;background:#e6efda;color:#486440}
body[data-game-page=enhance] .potion-actions{grid-template-columns:1fr 1fr}
body[data-game-page=enhance] .potion-actions button{background:linear-gradient(#eff8df,#d5e4bd);border-color:#92a777;box-shadow:0 2px 0 #9faf88}
body[data-game-page=enhance] .material-cards{padding:8px;min-height:90px;background:repeating-linear-gradient(90deg,#e0e4ca 0,#e0e4ca 49px,#c9cfae 50px,#c9cfae 51px);border:1px solid #bbc19c;border-radius:4px;box-shadow:inset 0 3px 6px #526d4920}
body[data-game-page=enhance] .material-cards:empty:after{content:"재료 없음";margin:auto;font-size:12px;color:#7c8668}
body[data-game-page=enhance] .material-chip{width:48px}
body[data-game-page=enhance] .material-chip img{width:44px;height:59px}
body[data-game-page=enhance] .booster-block{grid-column:2;grid-row:2;margin:0}
body[data-game-page=enhance] .booster-options{gap:6px;margin-top:8px}
body[data-game-page=enhance] .booster-choice{position:relative;padding:10px 6px;min-height:68px;text-align:center;background:linear-gradient(#f6f3db,#e5e8cf);border:1px solid #aab48c;border-bottom:3px solid #a7b18b;border-radius:5px;box-shadow:inset 0 1px #fffdf0}
body[data-game-page=enhance] .booster-choice strong{font-size:11px}
body[data-game-page=enhance] .booster-choice[aria-pressed=true]{background:#365f4e;border-color:#b39953;color:#fff4bd;box-shadow:inset 0 0 0 2px #6b8860}
body[data-game-page=enhance] .booster-choice:disabled{background:#e8e9d9;color:#888f76;box-shadow:none;border-bottom-width:1px}
body[data-game-page=enhance] .secondary-panel,body[data-game-page=enhance] .workbench-links,body[data-game-page=enhance] .selection-note{grid-column:1/-1;margin-top:0}
body[data-game-page=enhance] .secondary-panel{border-top-color:#c4c6a4}
body[data-game-page=enhance] .secondary-panel>summary{min-height:44px;padding:12px 0;color:#536e52}
body[data-game-page=enhance] .action-dock{background:linear-gradient(#fff6d9,#e9e4c3);border:2px solid #a79256;border-bottom:0;box-shadow:inset 0 2px #fffde9,0 -4px 20px #39584222;backdrop-filter:none;grid-template-columns:minmax(0,1.3fr) 150px minmax(170px,.7fr);gap:16px;padding:12px 20px}
body[data-game-page=enhance] .action-dock #enhance{background:linear-gradient(#67905c,#355c42);border:2px solid #c3a45b;border-bottom:4px solid #a18340;border-radius:5px;color:#fff1b5;text-shadow:0 1px #254b35;box-shadow:inset 0 1px #a7be8d,0 2px 0 #d6c389}
body[data-game-page=enhance] .action-dock #enhance:disabled{background:#adb8a0;color:#e8ead6;border-color:#b9bea4;text-shadow:none;box-shadow:none}
body[data-game-page=enhance] .result-slot{min-height:65px}
body[data-game-page=enhance] .action-summary>strong{font-size:15px}
body[data-game-page=enhance] .action-summary #spend-preview,body[data-game-page=enhance] .action-summary .gate{font-size:10px}
body[data-game-page=enhance] .operation-result #outcome-title{font-size:20px}
@media(max-width:1100px){body[data-game-page=enhance] .workspace{grid-template-columns:250px minmax(0,1fr);gap:12px}body[data-game-page=enhance] .workbench.detail{grid-template-columns:150px minmax(0,1fr);gap:12px;padding:16px}body[data-game-page=enhance] .selected-card #detail-image{width:120px;height:160px}body[data-game-page=enhance] .selected-card:before{width:140px;height:140px}body[data-game-page=enhance] .selected-card:after{width:150px;top:175px}body[data-game-page=enhance] .selected-card{min-height:290px}.booster-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:740px),(max-width:1000px) and (max-height:540px) and (orientation:landscape){
 body[data-game-page=enhance] #library-host{display:none}
 body[data-game-page=enhance] .workspace{display:block}
 body[data-game-page=enhance] .selected-card #open-picker{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:7px 12px;background:#fff5cf;border-color:#ac985d;color:#4d6448;font-size:12px}
 body[data-game-page=enhance] .workbench.detail{grid-template-columns:150px minmax(0,1fr)}
 body[data-game-page=enhance] .preparation-grid{grid-template-columns:1fr}
 body[data-game-page=enhance] .selected-card #lock-card{position:static;order:3}
 body[data-game-page=enhance] .action-dock{width:100%;grid-template-columns:minmax(0,1fr) 110px;gap:5px 10px;padding:8px 12px max(8px,env(safe-area-inset-bottom))}
 body[data-game-page=enhance] .result-slot{grid-column:1/-1;border-left:0;min-height:0;padding:3px 0 0}
 body[data-game-page=enhance] .result-slot:has(#operation-result[hidden]){display:none}
 body[data-game-page=enhance] .action-summary>strong{font-size:12px}
 body[data-game-page=enhance] .action-summary #odds{font-size:10px}
 body[data-game-page=enhance] .action-dock #enhance{min-height:56px;font-size:15px}
 body[data-game-page=enhance] .booster-options{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-game-page=enhance] .workbench-links{gap:12px}
}
@media(max-width:480px){
 body[data-game-page=enhance]>main{padding:8px 10px 20px}
 body[data-game-page=enhance] .workbench.detail{grid-template-columns:120px minmax(0,1fr);gap:10px;padding:12px}
 body[data-game-page=enhance] .selected-card{padding-inline:0;min-height:285px}
 body[data-game-page=enhance] .selected-card #detail-image{width:102px;height:136px}
 body[data-game-page=enhance] .selected-card:before{width:120px;height:120px;top:30px}
 body[data-game-page=enhance] .selected-card:after{width:120px;top:160px;height:20px}
 body[data-game-page=enhance] .selected-card h2{font-size:22px}
 body[data-game-page=enhance] .selected-card #detail-level{font-size:15px}
 body[data-game-page=enhance] .preparation-grid{gap:10px}
 body[data-game-page=enhance] .growth-block{padding:9px}
 body[data-game-page=enhance] .potion-actions{grid-template-columns:1fr}
 body[data-game-page=enhance] .booster-block{grid-column:1/-1;grid-row:auto}
 body[data-game-page=enhance] .booster-options{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:1000px) and (max-height:540px) and (orientation:landscape){
 body[data-game-page=enhance]>main{padding:4px 10px 12px}
 body[data-game-page=enhance] .workbench-heading .account{padding:2px 8px;min-height:0}
 body[data-game-page=enhance] .workbench-heading .account>strong{font-size:18px;line-height:1.2}
 body[data-game-page=enhance] .workbench.detail{grid-template-columns:145px minmax(0,1fr);padding:10px;gap:8px 14px}
 body[data-game-page=enhance] .selected-card{min-height:0;gap:4px;padding:4px 0 14px;grid-row:1/3}
 body[data-game-page=enhance] .selected-card #detail-image{width:90px;height:120px}
 body[data-game-page=enhance] .selected-card:before{width:115px;height:115px;top:5px}
 body[data-game-page=enhance] .selected-card:after{top:123px;width:120px;height:16px;box-shadow:0 4px 0 #7f967e,0 7px 0 #d2d1ae}
 body[data-game-page=enhance] .selected-card h2{font-size:20px;margin:3px 0}
 body[data-game-page=enhance] .selected-card #detail-grade{font-size:10px}
 body[data-game-page=enhance] .selected-card #detail-level{font-size:13px}
 body[data-game-page=enhance] .selected-card #lock-card{position:static;min-height:44px;font-size:10px;padding:4px 8px;order:3}
 body[data-game-page=enhance] .selected-card #open-picker{position:absolute;top:84px;left:50%;translate:-50% 0;width:106px;min-height:44px;margin:0;padding:5px;background:#244f49ed;color:#fff4c6;border-color:#baa56a;font-size:11px;z-index:2}
 body[data-game-page=enhance] .preparation-grid{grid-template-columns:1.1fr 1fr;gap:10px}
 body[data-game-page=enhance] .growth-block{padding:6px 10px}
 body[data-game-page=enhance] .growth-block p{font-size:10px;margin:4px 0}
 body[data-game-page=enhance] .growth-block progress{margin:6px 0}
 body[data-game-page=enhance] .growth-block>label{margin:5px 0;font-size:10px}
 body[data-game-page=enhance] #exp-preparation>label{font-size:0;margin:0}
 body[data-game-page=enhance] #exp-preparation select{margin-top:0}
 body[data-game-page=enhance] #exp-preparation progress{margin:0}
 body[data-game-page=enhance] #exp-preparation p{margin:3px 0}
 body[data-game-page=enhance] .potion-preview{padding:2px;font-size:9px!important;line-height:1.3}
 body[data-game-page=enhance] .block-heading h3{font-size:13px}
 body[data-game-page=enhance] .booster-block{grid-column:2;grid-row:2}
 body[data-game-page=enhance] .booster-options{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:5px}
 body[data-game-page=enhance] .booster-choice{min-height:48px;padding:5px}
 body[data-game-page=enhance] .booster-choice strong{font-size:10px}
 body[data-game-page=enhance] .booster-choice small{font-size:9px}
 body[data-game-page=enhance] .action-dock{grid-template-columns:minmax(0,1.2fr) 120px minmax(150px,.8fr);padding:7px 12px;gap:10px}
 body[data-game-page=enhance] .result-slot{grid-column:auto;border-top:0;border-left:1px solid #c4bf9a;padding-left:10px}
 body[data-game-page=enhance] .action-summary .gate{margin:0}
 body[data-game-page=enhance] .action-dock #enhance{min-height:52px}
}
