/* card.css v1.0 (2026-11-13) — shared summon card styles (phone + board). Markup: /js/card.js renderCard(). */
.summon-card { border-radius: 10px; border: 2px solid; cursor: pointer; transition: all 120ms; overflow: hidden; position: relative; flex-shrink: 0; user-select: none; }
.summon-card:hover { filter: brightness(1.12); }
.summon-card.selected { box-shadow: 0 0 0 2px white, 0 0 16px var(--accent-glow, rgba(145,132,217,.6)) !important; filter: brightness(1.15); }
.summon-card.unaffordable { opacity: .45; cursor: default; }
.summon-card.type-advantage { border-color: #d4a843 !important; box-shadow: 0 0 0 2px #d4a84388, 0 0 18px #d4a84366, 0 0 32px #d4a84333 !important; animation: adv-pulse 2s ease-in-out infinite; }
.summon-card.type-advantage.selected { box-shadow: 0 0 0 2px white, 0 0 0 4px #d4a843, 0 0 24px #d4a84388 !important; animation: none; }
@keyframes adv-pulse { 0%,100% { box-shadow: 0 0 0 2px #d4a84388, 0 0 18px #d4a84366, 0 0 32px #d4a84333; } 50% { box-shadow: 0 0 0 2px #d4a843cc, 0 0 26px #d4a84399, 0 0 44px #d4a84355; } }
.adv-badge { position: absolute; top: 34%; left: 50%; transform: translateX(-50%) rotate(-6deg); z-index: 6; background: linear-gradient(180deg,#f2c94c,#c08a1e); border: 1.5px solid #fff0b0; border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 800; color: #2a1800; letter-spacing: .06em; white-space: nowrap; pointer-events: none; line-height: 1.3; box-shadow: 0 2px 10px rgba(242,201,76,.55); text-shadow: 0 1px 0 rgba(255,255,255,.35); }
/* v0.5.09: weak matchup — red tint + ribbon */
.summon-card.type-weak { border-color: #c0392b !important; box-shadow: 0 0 0 2px #c0392b66, 0 0 14px #c0392b44 !important; }
.summon-card.type-weak::after { content:''; position:absolute; inset:0; border-radius:inherit; background: linear-gradient(180deg, rgba(150,30,30,.38), rgba(90,10,10,.48)); pointer-events:none; z-index:4; }
.weak-badge { position: absolute; top: 34%; left: 50%; transform: translateX(-50%) rotate(-6deg); z-index: 6; background: linear-gradient(180deg,#d9534f,#8e1f1f); border: 1.5px solid #ffb3b0; border-radius: 6px; padding: 3px 9px; font-size: 12px; font-weight: 800; color: #fff; letter-spacing: .06em; white-space: nowrap; pointer-events: none; line-height: 1.3; box-shadow: 0 2px 10px rgba(217,83,79,.5); }
.summon-card.mini .adv-badge, .summon-card.mini .weak-badge { font-size: 8px; padding: 1px 4px; }
/* matchup banner inside the battle detail sheet */
.mu-banner { display:flex; align-items:center; justify-content:center; gap:10px; margin:0 0 14px; padding:10px 12px; border-radius:12px; font-family:'Cinzel',serif; font-weight:800; letter-spacing:.08em; }
.mu-banner .mu-big { font-size:20px; white-space:nowrap; }
.mu-banner .mu-sub { font-family:inherit; font-weight:600; font-size:11px; letter-spacing:.04em; opacity:.9; text-transform:none; }
.mu-banner.strong { background:linear-gradient(180deg,#f2c94c,#b07a14); color:#2a1800; box-shadow:0 0 22px rgba(242,201,76,.45); animation: adv-pulse 2s ease-in-out infinite; }
.mu-banner.weak { background:linear-gradient(180deg,#c0392b,#6e1414); color:#fff; box-shadow:0 0 18px rgba(192,57,43,.4); }
.mu-banner.neutral { background:var(--surface2); color:var(--text-dim, #b8b4cc); border:1px solid var(--border2); }
.summon-card.full { width: 130px; height: 186px; }
.mc-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.mc-art svg { display: block; width: 100%; height: 100%; }
.mc-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 5px 6px 4px; background: linear-gradient(to top, rgba(6,5,20,.97) 0%, rgba(6,5,20,.82) 58%, transparent 100%); z-index: 1; }
.mc-ov-name { font-family: 'Cinzel', serif; font-size: 9px; margin-bottom: 3px; display: flex; justify-content: space-between; align-items: center; line-height: 1.2; }
.mc-ov-eldot { width: 9px; height: 9px; border-radius: 50%; opacity: .75; flex-shrink: 0; margin-left: 3px; }
.mc-ov-hp-row { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.mc-hp-track { flex: 1; height: 3.5px; border-radius: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.mc-hp-fill { height: 100%; border-radius: 2px; transition: width .3s; }
.mc-hp-num { font-size: 7px; color: #dde; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-ov-stats { display: flex; gap: 0; }
.mc-ov-sc { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.mc-ov-si { font-size: 7px; color: #8880aa; line-height: 1; }
.mc-ov-sv { font-size: 10px; font-weight: 600; color: #ede8ff; font-variant-numeric: tabular-nums; }
.mc-cost-strip { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: flex-end; padding: 4px 7px; background: linear-gradient(to bottom, rgba(6,5,20,.78) 0%, transparent 100%); z-index: 1; }
.mc-cost-val { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mc-cost-lbl { font-size: 12px; color: rgba(200,190,255,.75); margin-left: 3px; }   /* v0.5.64: ✦ instead of "MANA" */
.special-badge { display: block; font-size: 7px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-family: 'Cinzel', serif; color: var(--gold-glow, #e8c26e); background: rgba(169,123,64,.22); border: 1px solid rgba(169,123,64,.45); border-radius: 4px; padding: 1px 4px; line-height: 1.4; z-index: 3; width: fit-content; margin-bottom: 3px; }
.special-lock-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.72); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; z-index: 4; padding: 8px; }
.special-lock-icon { font-size: 22px; line-height: 1; }
.special-lock-text { font-size: 9px; font-family: 'Cinzel', serif; color: #b8a070; text-align: center; line-height: 1.4; letter-spacing: .04em; }
.rare-badge { display: block; font-size: 7px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-family: 'Cinzel', serif; color: #e8c870; background: rgba(201,160,90,.22); border: 1px solid rgba(201,160,90,.55); border-radius: 4px; padding: 1px 4px; line-height: 1.4; width: fit-content; margin-bottom: 3px; }
.support-card { /* support card base styling — border/shadow applied inline */ }
.dual-type-dots { display: flex; align-items: center; gap: 3px; }
.summon-card.mini { width: 70px; height: 100px; }
.summon-card.mini .mc-overlay { display: none; }
.summon-card.mini .mc-cost-strip { display: none; }
.mc-mini-strip { position: absolute; bottom: 0; left: 0; right: 0; height: 9px; z-index: 1; }
.charm-badge      { position: absolute; top: 3px; right: 3px; z-index: 4; filter: drop-shadow(0 0 5px #d4a84399) drop-shadow(0 0 2px #d4a84366); pointer-events: none; }
.charm-badge-mini { position: absolute; top: 2px; right: 2px; z-index: 4; filter: drop-shadow(0 0 4px #d4a84399); pointer-events: none; }
.mc-element-badge { position: absolute; top: 5px; left: 6px; padding: 2px 6px; border-radius: 8px; font-size: 8px; font-weight: 800; color: #fff; font-family: 'Cinzel', serif; letter-spacing: 0.06em; text-transform: uppercase; z-index: 2; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* v0.5.61: Parry / Aegis / Disarm markers on cards */
.mc-wc-marks { position:absolute; left:4px; top:22px; z-index:6; display:flex; flex-direction:column; gap:2px; pointer-events:none; }
.mc-wc-marks.mini { top:2px; left:2px; }
.mc-wc-mark { font-size:9px; font-weight:700; padding:1px 5px; border-radius:8px; background:rgba(10,10,20,.85); border:1px solid #8fa0b8; color:#d8e2f0; white-space:nowrap; line-height:1.4; }
.mc-wc-mark.aegis { border-color:#ffd77a; color:#ffe6a8; box-shadow:0 0 6px rgba(255,215,122,.5); }
.mc-wc-mark.disarm { border-color:#c05050; color:#f0a0a0; }
.mc-wc-marks.mini .mc-wc-mark { padding:0 3px; font-size:8px; }

/* Board: cards are display-only */
.board-summon-card { cursor: default; flex-shrink: 0; position: relative; overflow: hidden; }
.board-summon-card:hover { filter: none; }
