/* 🃏 황소 카드 대전 */
.cc-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.cc-tabs button { border: 0; border-radius: 999px; padding: 8px 14px; background: rgba(0,0,0,.06); cursor: pointer; font-weight: bold; }
.cc-tabs button.on { background: #f5a623; color: #fff; }
.cc-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.cc-panel { background: rgba(0,0,0,.035); border-radius: 14px; padding: 12px; margin: 10px 0; }
.cc-panel h3 { margin: 0 0 8px; }

/* ---- 카드 ---- */
.cc-card { position: relative; width: 118px; height: 168px; border-radius: 12px; background: linear-gradient(160deg, #fdf6e3, #ead7b0); border: 3px solid #8d8d8d;
  box-shadow: 0 3px 10px rgba(0,0,0,.25); overflow: hidden; cursor: pointer; user-select: none; transition: transform .15s, box-shadow .15s; color: #2b2116; font-family: inherit; }
.cc-card.rare { border-color: #3d8bfd; } .cc-card.epic { border-color: #a259ff; } .cc-card.legend { border-color: #f5b301; box-shadow: 0 0 12px rgba(245,179,1,.7), 0 3px 10px rgba(0,0,0,.25); }
.cc-card .art { position: absolute; left: 6px; right: 6px; top: 6px; height: 78px; border-radius: 50% 50% 12px 12px / 40% 40% 12px 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 35%, #fff8e1, #c8a46a); display: flex; align-items: center; justify-content: center; font-size: 46px; }
.cc-card .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-card .cost { position: absolute; left: -4px; top: -4px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8fd3ff, #1565c0);
  color: #fff; font-weight: 900; font-size: 17px; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; z-index: 2; text-shadow: 0 1px 2px #000; }
.cc-card .name { position: absolute; left: 4px; right: 4px; top: 86px; background: #6b4a2e; color: #fff; font-size: 11.5px; font-weight: bold; text-align: center; border-radius: 6px; padding: 2px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-card .text { position: absolute; left: 6px; right: 6px; top: 108px; bottom: 22px; font-size: 10.5px; line-height: 1.25; text-align: center; display: flex; align-items: center; justify-content: center; }
.cc-card .atk, .cc-card .hp, .cc-min .atk, .cc-min .hp { position: absolute; bottom: -3px; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 15px;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff; text-shadow: 0 1px 2px #000; z-index: 2; }
.cc-card .atk, .cc-min .atk { left: -3px; background: radial-gradient(circle at 35% 30%, #ffd166, #e08e0b); }
.cc-card .hp, .cc-min .hp { right: -3px; background: radial-gradient(circle at 35% 30%, #ff8a80, #c62828); }
.cc-card .tag { position: absolute; right: 4px; top: 4px; font-size: 10px; background: rgba(0,0,0,.55); color: #fff; border-radius: 6px; padding: 1px 4px; z-index: 2; }
.cc-card.dim { filter: grayscale(1) brightness(.75); }
.cc-card .cnt { position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); font-size: 11px; font-weight: bold; background: rgba(0,0,0,.6); color: #fff; border-radius: 8px; padding: 0 6px; z-index: 3; }
.cc-card.sm { width: 92px; height: 132px; } .cc-card.sm .art { height: 58px; font-size: 34px; } .cc-card.sm .name { top: 64px; font-size: 10px; } .cc-card.sm .text { top: 84px; font-size: 9px; bottom: 18px; }

/* ---- 대전 화면 ---- */
.cc-battle { position: fixed; inset: 0; z-index: 9000; background: radial-gradient(ellipse at 50% 50%, #6d4c2f 0%, #3b2716 70%, #24170c 100%); color: #fff; display: flex; flex-direction: column; overflow: hidden; touch-action: manipulation; }
.cc-battle[hidden] { display: none; }
.cc-side { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; }
.cc-hero { position: relative; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #fff3d6, #b88a4a); border: 4px solid #d4af37;
  display: flex; align-items: center; justify-content: center; font-size: 46px; overflow: hidden; flex: none; cursor: pointer; transition: transform .15s; }
.cc-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cc-hero .hp, .cc-hero .atk { position: absolute; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 15px;
  display: flex; align-items: center; justify-content: center; border: 2px solid #fff; text-shadow: 0 1px 2px #000; z-index: 2; }
.cc-hero .hp { right: -2px; background: radial-gradient(circle at 35% 30%, #ff8a80, #c62828); }
.cc-hero .atk { left: -2px; }
.cc-hero { overflow: visible; }
.cc-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }   /* (예전 화면 코드용) */
.cc-hero .face { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.cc-hero .face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transform: scale(1.4); transform-origin: 50% 28%; }
.cc-heroinfo { font-size: 12px; line-height: 1.35; min-width: 0; }
.cc-heroinfo b { font-size: 14px; }
.cc-mana { display: flex; gap: 2px; flex-wrap: wrap; max-width: 150px; }
.cc-mana i { width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); background: #1565c0; border: 1px solid #8fd3ff; display: inline-block; margin: 2px; }
.cc-mana i.off { background: #223; border-color: #556; }
.cc-board { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 4px; min-height: 104px; }
.cc-board.mine { border-top: 2px dashed rgba(255,255,255,.12); }
.cc-min { position: relative; width: 74px; height: 96px; border-radius: 40% 40% 14px 14px / 30% 30% 14px 14px; background: radial-gradient(circle at 50% 35%, #fff3d6, #b88a4a);
  border: 3px solid #9e9e9e; display: flex; align-items: center; justify-content: center; font-size: 40px; cursor: pointer; transition: transform .25s, opacity .3s, box-shadow .2s; overflow: visible; flex: none; }
.cc-min .art { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cc-min .art img { width: 100%; height: 100%; object-fit: cover; }
.cc-min.taunt { border: 5px solid #c0c0c0; box-shadow: inset 0 0 0 3px #6d6d6d; border-radius: 12px; }
.cc-min.shield::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 3px solid rgba(255,230,120,.95); box-shadow: 0 0 14px rgba(255,220,90,.9); pointer-events: none; }
.cc-min.ready { box-shadow: 0 0 0 3px #4cff6a, 0 0 16px #4cff6a; }
.cc-min .zz { position: absolute; top: -10px; right: -4px; font-size: 14px; }
.cc-min .kw { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); font-size: 13px; white-space: nowrap; }
.cc-target { box-shadow: 0 0 0 4px #ff5252, 0 0 18px #ff5252 !important; animation: ccPulse .8s infinite; }
.cc-selected { transform: translateY(-14px) scale(1.06) !important; box-shadow: 0 0 0 4px #ffd54f, 0 0 20px #ffd54f !important; }
@keyframes ccPulse { 50% { filter: brightness(1.25); } }
.cc-hand { display: flex; justify-content: center; align-items: flex-end; padding: 4px 8px 10px; gap: 0; min-height: 150px; overflow-x: auto; }
.cc-hand .cc-card { margin: 0 -10px; transform-origin: 50% 120%; }
.cc-hand .cc-card.ok { box-shadow: 0 0 0 3px #4cff6a, 0 3px 10px rgba(0,0,0,.4); }
.cc-hand .cc-card:hover { transform: translateY(-16px) scale(1.08); z-index: 5; }
.cc-ehand { display: flex; gap: 2px; } .cc-ehand i { width: 18px; height: 26px; border-radius: 4px; background: linear-gradient(135deg, #8b1d1d, #3d0b0b); border: 1px solid #d4af37; display: inline-block; }
.cc-btns { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.cc-btn { border: 0; border-radius: 12px; padding: 9px 14px; font-weight: 900; cursor: pointer; font-size: 14px; color: #3b2716; background: linear-gradient(#ffe082, #f5a623); box-shadow: 0 3px 0 #a86c00; }
.cc-btn:disabled { filter: grayscale(1); opacity: .6; cursor: default; }
.cc-btn.end { background: linear-gradient(#b9f6ca, #2ecc71); box-shadow: 0 3px 0 #1b7a43; }
.cc-btn.power { background: linear-gradient(#d1c4e9, #7e57c2); color: #fff; box-shadow: 0 3px 0 #4a2f8a; }
.cc-btn.ghost { background: rgba(255,255,255,.15); color: #fff; box-shadow: none; }
.cc-msg { text-align: center; font-size: 13px; min-height: 18px; padding: 0 8px; color: #ffe9b0; }
.cc-float { position: fixed; z-index: 9500; font-weight: 900; font-size: 26px; pointer-events: none; text-shadow: 0 2px 4px #000; animation: ccFloat 1s forwards; }
@keyframes ccFloat { from { transform: translate(-50%, 0); opacity: 1; } to { transform: translate(-50%, -46px); opacity: 0; } }
.cc-shake { animation: ccShake .35s; } @keyframes ccShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.cc-pop { animation: ccPop .4s; } @keyframes ccPop { from { transform: scale(.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.cc-banner { position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 9600; background: rgba(0,0,0,.75); color: #ffd54f; font-size: 30px; font-weight: 900; padding: 14px 30px; border-radius: 16px; animation: ccPop .3s; pointer-events: none; }
.cc-show { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(1.5); z-index: 9600; pointer-events: none; animation: ccPop .25s; }
.cc-timer { font-size: 12px; color: #ffcc80; }
.cc-modal { position: fixed; inset: 0; z-index: 9700; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cc-modal[hidden] { display: none; }
.cc-modal .box { background: #fffaf0; color: #2b2116; border-radius: 18px; padding: 18px; max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; text-align: center; }
.cc-reveal { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 12px 0; }
.cc-reveal .cc-card { animation: ccFlip .6s backwards; }
@keyframes ccFlip { from { transform: rotateY(90deg) scale(.6); opacity: 0; } to { transform: rotateY(0) scale(1); opacity: 1; } }
.cc-decklist { display: flex; flex-direction: column; gap: 3px; max-height: 420px; overflow: auto; }
.cc-decklist div { display: flex; align-items: center; gap: 6px; background: #6b4a2e; color: #fff; border-radius: 8px; padding: 4px 8px; font-size: 13px; cursor: pointer; }
.cc-decklist div b { background: #1565c0; border-radius: 50%; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.cc-decklist div.legend { box-shadow: inset 4px 0 0 #f5b301; } .cc-decklist div.epic { box-shadow: inset 4px 0 0 #a259ff; } .cc-decklist div.rare { box-shadow: inset 4px 0 0 #3d8bfd; }
@media (max-width: 640px) {
  .cc-card { width: 96px; height: 138px; } .cc-card .art { height: 60px; font-size: 36px; } .cc-card .name { top: 68px; font-size: 10px; } .cc-card .text { top: 88px; font-size: 9px; bottom: 18px; }
  .cc-min { width: 52px; height: 70px; font-size: 28px; } .cc-board { gap: 3px; min-height: 80px; }
  .cc-hero { width: 64px; height: 64px; font-size: 34px; } .cc-hand { min-height: 128px; } .cc-hand .cc-card { margin: 0 -18px; }
  .cc-min .atk, .cc-min .hp { width: 22px; height: 22px; font-size: 12px; }
}
