/* License-safe blank card faces */

.tcg-card .card-back-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    border: 2px solid rgba(255, 255, 255, 0.12);
}

.tcg-card .card-face {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(165deg, #1e293b 0%, #0f172a 55%, #1a1a2e 100%);
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
}

.tcg-card .card-face.color-red {
    border-color: rgba(239, 68, 68, 0.75);
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.35);
}

.tcg-card .card-face.color-green {
    border-color: rgba(34, 197, 94, 0.75);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.tcg-card .card-face.color-blue {
    border-color: rgba(59, 130, 246, 0.75);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.tcg-card .card-face.color-purple {
    border-color: rgba(168, 85, 247, 0.75);
    box-shadow: inset 0 0 0 1px rgba(168, 85, 247, 0.35);
}

.tcg-card .card-face.color-black {
    border-color: rgba(100, 116, 139, 0.85);
    box-shadow: inset 0 0 0 1px rgba(71, 85, 105, 0.5);
}

.tcg-card .card-face.color-yellow {
    border-color: rgba(234, 179, 8, 0.85);
    box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.45);
}

.tcg-card .card-face.color-neutral {
    border-color: rgba(148, 163, 184, 0.45);
}

.tcg-card .card-zone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 3px 4px 0;
    flex: 0 0 auto;
    min-height: 1.1em;
}

.tcg-card .card-stat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35em;
    min-height: 1.35em;
    padding: 0 0.2em;
    border-radius: 50%;
    font-weight: 700;
    line-height: 1;
    font-size: clamp(0.55rem, 1.4vmin, 0.78rem);
    border: 1px solid rgba(0, 0, 0, 0.35);
}

.tcg-card .card-cost {
    background: linear-gradient(180deg, #fef9c3, #fde047);
    color: #422006;
}

.tcg-card .card-power {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    color: #fff;
    border-radius: 4px;
    min-width: 2em;
    font-size: clamp(0.5rem, 1.2vmin, 0.72rem);
}

.tcg-card .card-zone-art {
    flex: 1 1 auto;
    margin: 2px 4px;
    padding: 3px 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    font-weight: 700;
    line-height: 1.15;
    font-size: clamp(0.48rem, 1.35vmin, 0.82rem);
    color: #f8fafc;
    overflow: hidden;
    word-break: break-word;
    hyphens: auto;
}

.tcg-card .card-zone-art--don {
    flex: 1;
    margin: 4px;
    font-family: 'Bangers', cursive;
    letter-spacing: 0.06em;
    font-size: clamp(0.55rem, 1.5vmin, 0.85rem);
    color: #fde047;
}

.tcg-card .card-zone-namebar {
    flex: 0 0 12%;
    min-height: 0.55em;
    margin: 0 4px 2px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 2px;
}

.tcg-card .card-zone-id {
    flex: 0 0 auto;
    padding: 0 5px 3px;
    text-align: right;
    font-size: clamp(0.42rem, 1vmin, 0.62rem);
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(148, 163, 184, 0.95);
}

.tcg-card.don .card-face {
    border-color: rgba(253, 224, 71, 0.55);
}

.pile .card-face,
.pile .card-back-img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.pile .tcg-card {
    width: 100%;
    height: 100%;
}

/* Inspect modal — larger blank face */
.inspect-art.card-inspect-face {
    width: clamp(100px, 28vw, 140px);
    height: auto;
    aspect-ratio: 1 / 1.39;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.6);
}

.inspect-art.card-inspect-face .card-face {
    border-radius: 8px;
    border-width: 2px;
}

.inspect-art.card-inspect-face .card-zone-art {
    font-size: clamp(0.65rem, 2.5vw, 0.9rem);
}

.inspect-art.card-inspect-face .card-back-img {
    border-radius: 8px;
}

/* Room deck preview — full single-card size (matches lobby slot) */
.deck-preview-face {
    width: var(--deck-preview-card-w, 88px);
    height: var(--deck-preview-card-h, calc(88px * 1.39));
    flex-shrink: 0;
}

.deck-preview-face.tcg-card,
.deck-preview-face.tcg-card.leader {
    width: var(--deck-preview-card-w, 88px);
    height: var(--deck-preview-card-h, calc(88px * 1.39));
    min-width: var(--deck-preview-card-w, 88px);
    min-height: var(--deck-preview-card-h, calc(88px * 1.39));
}

.deck-preview-face .card-face {
    border-radius: 6px;
}

.deck-preview-face .card-zone-art {
    font-size: clamp(0.55rem, 1.2vw, 0.72rem);
}

.deck-preview-face .card-zone-id {
    font-size: clamp(0.48rem, 1vw, 0.58rem);
}
