/* Reward overlay cards and the Hearthstone-style deck editor */
/* 獎勵與藍圖組編輯 */
.overlay .card.wide { max-width: 1300px; max-height: 860px; overflow: auto; }
.overlay .card .sub { font-size: 13px; letter-spacing: .12em; color: var(--muted); }
.overlay .picks { display: flex; gap: 18px; }
.overlay .picks .cas, .overlay .grid .cas { position: relative; width: 150px; height: 250px; border-radius: 8px; background: linear-gradient(180deg, #1B2236, #12182A); border: 1px solid rgba(139,148,174,.35); box-shadow: 0 4px 14px rgba(0,0,0,.45); overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.overlay .cas .tipband { height: 8px; background: var(--tip); flex: none; }
.overlay .cas .hd { display: flex; align-items: center; gap: 8px; padding: 9px 10px 6px; flex: none; }
.overlay .cas .hd .cost { width: 28px; height: 28px; border-radius: 50%; background: var(--brass); color: #2A1E08; font-family: var(--hud); font-weight: 700; font-size: 17px; display: grid; place-items: center; flex: none; }
.overlay .cas .hd .nm { font-size: 15px; font-weight: 700; color: var(--text); }
.overlay .cas .art { height: 40px; margin: 0 10px 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(0,0,0,.15)); position: relative; flex: none; }
.overlay .cas .art::after { content: ""; position: absolute; left: 50%; top: 50%; width: 52px; height: 14px; transform: translate(-50%, -50%); border-radius: 7px; background: linear-gradient(90deg, #A97C2E 0 55%, var(--tip) 55%); box-shadow: 0 0 8px rgba(230,176,75,.4); }
.overlay .cas.skill .art::after { width: 20px; height: 20px; border-radius: 3px; transform: translate(-50%, -50%) rotate(45deg); background: var(--tip); }
.overlay .cas .fx-text { padding: 0 10px 8px; font-size: 12px; line-height: 1.4; color: var(--text); display: flex; flex-direction: column; gap: 5px; }
.overlay .cas .fx-text p { margin: 0; }
.overlay .cas .fx-text em { font-style: normal; font-weight: 700; color: var(--brass); }
.overlay .cas .fx-text p.dis { color: var(--muted); border-top: 1px dashed rgba(139,148,174,.3); padding-top: 5px; }
.overlay .cas .fx-text p.dis em { color: var(--muted); }
.overlay .cas .fx-text p.dis.none { color: rgba(139,148,174,.5); }
.overlay .cas .fx-text p.dis.trk, .overlay .cas .fx-text p.dis.trk em { color: #FF7AC6; }
.overlay .cas.pick-card { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.overlay .cas.pick-card:hover { transform: translateY(-8px); border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass), 0 0 30px rgba(230,176,75,.5); }
.overlay .card button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.overlay .card button:disabled { opacity: .35; cursor: not-allowed; }
.overlay .editor .grid { display: grid; grid-template-columns: repeat(7, 150px); gap: 12px 12px; }
.overlay .editor .grid .cas { width: 150px; height: 232px; }
.overlay .editor .grid .cas .fx-text { font-size: 11px; }
.overlay .editor .slot-ed { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.overlay .editor .ctl { display: flex; align-items: center; gap: 10px; }
.overlay .editor .ctl button { width: 34px; height: 30px; padding: 0; background: var(--ink-2); color: var(--text); border: 1px solid var(--line); border-radius: 4px; font-size: 16px; font-weight: 700; }
.overlay .editor .ctl span { font-family: var(--hud); font-size: 15px; color: var(--muted); min-width: 4em; text-align: center; }
.overlay .editor .ctl span b { color: var(--brass); font-size: 18px; }
.overlay .editor p b.ok { color: var(--green); } .overlay .editor p b.bad { color: var(--crimson); }
.overlay .row-btn { display: flex; gap: 12px; }
/* 爐石式編輯器 */
.overlay .card.editor { background: #0F1424; width: 1360px; max-width: 96%; height: 820px; max-height: 94%; padding: 18px 24px 20px; gap: 12px; align-items: stretch; }
.overlay .editor .ed-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.overlay .editor .ed-head .big { text-align: left; padding-left: 0; letter-spacing: .2em; font-size: 30px; }
.overlay .editor .tabs { display: flex; gap: 6px; }
.overlay .editor .tab { background: var(--ink-2); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 6px 14px; font-size: 13px; font-weight: 500; letter-spacing: .1em; white-space: nowrap; }
.overlay .editor .tab.on { color: var(--text); border-color: var(--brass); background: var(--brass-dim); }
.overlay .editor .ed-body { display: grid; grid-template-columns: 1fr 340px; gap: 16px; min-height: 0; flex: 1; }
.overlay .editor .collection { display: grid; grid-template-columns: repeat(auto-fill, 150px); gap: 10px 10px; align-content: start; overflow-y: auto; padding: 6px 4px 6px 0; }
.overlay .editor .col-item { display: flex; flex-direction: column; gap: 5px; align-items: center; cursor: pointer; }
.overlay .editor .col-item .cas { width: 150px; height: 232px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.overlay .editor .col-item .cas .fx-text { font-size: 11px; }
.overlay .editor .col-item:hover .cas { transform: translateY(-4px); border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass), 0 0 22px rgba(230,176,75,.4); }
.overlay .editor .col-item.out, .overlay .editor .col-item.full { cursor: not-allowed; }
.overlay .editor .col-item.out .cas, .overlay .editor .col-item.full .cas { opacity: .35; filter: grayscale(.7); }
.overlay .editor .col-item.out:hover .cas, .overlay .editor .col-item.full:hover .cas { transform: none; border-color: rgba(139,148,174,.35); box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.overlay .editor .col-item .cnt { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.overlay .editor .col-item .cnt b { color: var(--brass); font-family: var(--hud); font-size: 13px; }
.overlay .editor .empty { color: var(--muted); font-size: 13px; padding: 20px; }
.overlay .editor .decklist { display: flex; flex-direction: column; background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 6px; min-height: 0; }
.overlay .editor .dl-head { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; letter-spacing: .14em; color: var(--muted); }
.overlay .editor .dl-head b { font-family: var(--hud); font-size: 22px; }
.overlay .editor .dl-head b.ok { color: var(--green); } .overlay .editor .dl-head b.bad { color: var(--brass); } .overlay .editor .dl-head b.over { color: var(--crimson); text-shadow: 0 0 12px rgba(229,72,77,.6); }
.overlay .editor .dl-rows { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 8px; min-height: 0; }
.overlay .editor .dl-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 0 10px 0 0; height: 36px; border: 1px solid rgba(139,148,174,.25); border-left: 5px solid var(--tip); border-radius: 4px; background: linear-gradient(90deg, rgba(20,26,43,.9), rgba(20,26,43,.6)); color: var(--text); text-align: left; font-size: 14px; }
.overlay .editor .dl-row:hover { border-color: var(--crimson); background: rgba(229,72,77,.15); }
.overlay .editor .dl-row .c { font-family: var(--hud); font-weight: 700; font-size: 16px; color: var(--brass); text-align: center; }
.overlay .editor .dl-row .n { font-weight: 700; letter-spacing: .06em; }
.overlay .editor .dl-row .x { font-family: var(--hud); font-weight: 700; color: var(--muted); }
.overlay .editor .dl-foot { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.overlay .editor .dl-foot .row-btn { display: flex; gap: 8px; }
.overlay .editor .dl-foot .row-btn button { flex: 1; padding: 7px 0; font-size: 13px; }
.overlay .editor .dl-foot #btnNext { width: 100%; }
