/* v315 hotfix — admin-only settings / grade score editor / exact hand-style enhancement preview */
.v315-grade-point-settings{margin-top:12px;padding:12px;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:rgba(0,0,0,.14)}
.v315-grade-point-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.v315-grade-point-head b{font-size:14px;color:#f2d28e}.v315-grade-point-head span{font-size:11px;opacity:.72}
.v315-grade-point-grid{display:grid;grid-template-columns:repeat(7,minmax(64px,1fr));gap:8px}.v315-grade-point-grid label{display:grid;gap:5px;text-align:center;font-size:11px;font-weight:900}.v315-grade-point-grid input{width:100%;box-sizing:border-box;text-align:center;padding:8px 5px;border-radius:7px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.25);color:inherit;font-weight:900}

/* 강화 우측 창: 카드가 버튼/설명을 덮지 않도록 콘텐츠 높이를 자연스럽게 확장 */
#v256EnhancementPanel .v256-enhance-layout{align-items:start;min-height:0!important}
#v256EnhancementPanel .v256-enhance-detail{overflow:visible!important;min-height:0!important;height:auto!important;max-height:none!important;display:grid!important;grid-template-rows:auto auto auto auto;align-content:start}
#v256EnhancementPanel .v256-enhance-detail-inner{flex:none!important;min-height:0!important;overflow:visible!important}
#v256EnhanceBtn,#v257EnhanceResetBtn,#v256EnhanceResult{position:relative;z-index:12}

/* 실제 게임 핸드 카드의 .card 레이아웃을 그대로 사용하고 강화 화면에서는 외곽선만 얇게 한다. */
.v315-enhance-card-stage{position:relative;display:grid;place-items:center;width:100%;min-height:calc(var(--hand-card-height,224px) + 34px);margin:0 0 10px;padding:16px;box-sizing:border-box;border-radius:12px;border:1px solid rgba(232,189,95,.25);background:radial-gradient(circle at 50% 45%,rgba(117,73,23,.28),rgba(8,10,14,.86) 70%);overflow:hidden;isolation:isolate}
.v315-enhance-hand-card.card{position:relative;z-index:3;width:var(--hand-card-width,168px)!important;height:var(--hand-card-height,224px)!important;min-width:var(--hand-card-width,168px)!important;min-height:var(--hand-card-height,224px)!important;max-width:none!important;max-height:none!important;flex:none!important;border-width:1px!important;box-shadow:0 6px 18px #000b!important;transform:none!important;margin:0!important}
.v315-enhance-hand-card.card:hover{transform:none!important}
.v315-enhance-hand-card.card::before,.v315-enhance-hand-card.card::after{border-width:1px!important}
.v315-card-missing{position:relative;z-index:3;padding:20px;font-size:12px;opacity:.8}

/* 기존 강화 연출은 카드 뒤에서만 보이게 유지 */
.v315-enhance-card-stage .v314-forge-aura,.v315-enhance-card-stage .v314-spark-field,.v315-enhance-card-stage .v314-hammer{z-index:1}

@media(max-width:700px){
  .v315-grade-point-grid{grid-template-columns:repeat(4,minmax(54px,1fr))}
  .v315-enhance-card-stage{padding:12px;min-height:calc(var(--hand-card-height,210px) + 28px)}
}
