/* Dragon Ball Lamincards — 63 × 88 mm (630 × 880 px). */

.tpl-lamincards {
    --lc-glitter: #e0245e;
    --lc-aura: #7fe7ff;
    --lc-band: #5cc6c1;
    --lc-stats: #1f3f8f;
    --lc-stats-label: #fff;
    --lc-stats-value: #ffd23f;
    background: #f1f3f5;
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
}

/* ---- Fondi glitterati ---- */

.lc-bg {
    position: absolute;
    inset: 0;
}

.lc-series-gold .lc-bg {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.95) 0 1.3px, transparent 2.2px) 0 0 / 23px 29px,
        radial-gradient(circle at 60% 70%, rgba(255, 248, 205, 0.9) 0 1px, transparent 1.9px) 5px 3px / 17px 19px,
        radial-gradient(circle at 40% 50%, rgba(140, 92, 6, 0.55) 0 1.5px, transparent 2.4px) 9px 7px / 31px 23px,
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px) 3px 11px / 47px 53px,
        linear-gradient(125deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.5) 36%, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.35) 70%, rgba(255, 255, 255, 0) 82%),
        linear-gradient(160deg, #fbe7a1, #d6a531 38%, #f7dc85 60%, #b98a1f);
}

.lc-series-silver .lc-bg {
    background:
        radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 1) 0 1.2px, transparent 2px) 0 0 / 21px 25px,
        radial-gradient(circle at 65% 60%, rgba(150, 165, 178, 0.55) 0 1.3px, transparent 2.1px) 7px 4px / 27px 21px,
        linear-gradient(125deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.7) 38%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(165deg, #ffffff, #e4e9ed 40%, #fafbfc 60%, #cfd6dc);
}

.lc-series-platinum .lc-bg {
    background:
        radial-gradient(circle at 25% 35%, rgba(255, 255, 255, 1) 0 1.4px, transparent 2.3px) 0 0 / 19px 23px,
        radial-gradient(circle at 60% 65%, rgba(120, 140, 170, 0.6) 0 1.3px, transparent 2.2px) 6px 9px / 25px 19px,
        radial-gradient(circle at 45% 20%, rgba(255, 255, 255, 0.85) 0 2px, transparent 3px) 12px 2px / 41px 37px,
        linear-gradient(115deg, rgba(255, 120, 200, 0.2), rgba(120, 200, 255, 0.22) 30%, rgba(160, 255, 170, 0.18) 55%, rgba(255, 225, 120, 0.22) 80%),
        linear-gradient(160deg, #f6f7fb, #c5ccd6 40%, #f2f4f8 62%, #aeb8c4);
}

.lc-series-clear .lc-bg {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 16px),
        linear-gradient(125deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(170deg, #fbfdff, #e3ebf2 55%, #d3dde6);
}

.lc-series-color .lc-bg {
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.9) 0 1.3px, transparent 2.2px) 0 0 / 22px 27px,
        radial-gradient(circle at 60% 70%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.9px) 5px 3px / 16px 18px,
        radial-gradient(circle at 40% 50%, rgba(0, 0, 0, 0.3) 0 1.5px, transparent 2.4px) 9px 7px / 29px 23px,
        linear-gradient(125deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.4) 36%, rgba(255, 255, 255, 0) 50%),
        linear-gradient(160deg, color-mix(in srgb, var(--lc-glitter) 55%, #fff), var(--lc-glitter) 45%, color-mix(in srgb, var(--lc-glitter) 70%, #000));
}

/* ---- Aura ---- */

.lc-aura {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 42% 40% at 50% 46%, color-mix(in srgb, var(--lc-aura) 85%, #fff) 0%, color-mix(in srgb, var(--lc-aura) 55%, transparent) 55%, transparent 80%),
        repeating-conic-gradient(from 3deg at 50% 50%, color-mix(in srgb, var(--lc-aura) 70%, transparent) 0 5deg, transparent 5deg 13deg);
    -webkit-mask-image: radial-gradient(ellipse 55% 52% at 50% 48%, #000 35%, transparent 75%);
    mask-image: radial-gradient(ellipse 55% 52% at 50% 48%, #000 35%, transparent 75%);
}

/* ---- Personaggio ---- */

.lc-art {
    inset: 0;
    width: 630px;
    height: 880px;
}

.lc-art.is-empty { background: none; }

.is-editable .lc-art.is-empty .cg-art-hint {
    color: rgba(30, 30, 30, 0.7);
    text-shadow: none;
    padding-bottom: 30%;
}

/* ---- Logo ---- */

.lc-logo {
    position: absolute;
    right: 38px;
    top: 624px;
    width: 250px;
    height: 112px;
    z-index: 2;
}

.lc-logo .sym--dball {
    position: absolute;
    left: 86px;
    top: 16px;
    font-size: 86px;
}

.lc-logo-title,
.lc-logo-suffix {
    position: absolute;
    font-family: 'Bangers', Impact, cursive;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #ffd43b;
    -webkit-text-stroke: 7px #9b1c10;
    paint-order: stroke fill;
    text-shadow: 0 4px 0 rgba(60, 10, 0, 0.55);
    white-space: nowrap;
}

.lc-logo-title {
    left: 0;
    right: 50px;
    top: 34px;
    text-align: center;
    font-size: 40px;
}

.lc-logo-suffix {
    right: 0;
    top: 2px;
    font-size: 104px;
    color: #ff5a1f;
    transform: rotate(-8deg);
}

.lc-logo.is-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

/* ---- Numero ---- */

.lc-number {
    position: absolute;
    left: 40px;
    top: 700px;
    z-index: 3;
    min-width: 56px;
    height: 42px;
    padding: 0 10px;
    display: grid;
    place-items: center;
    border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, #3a3a3a, #111);
    color: #fff;
    font-family: 'Russo One', 'Arial Black', sans-serif;
    font-size: 26px;
    line-height: 1;
}

/* ---- Fascia nome e statistiche ---- */

.lc-band {
    position: absolute;
    left: 40px;
    right: 40px;
    top: 742px;
    height: 64px;
    z-index: 3;
    border-radius: 8px 8px 0 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.08)),
        var(--lc-band);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.lc-name {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Russo One', 'Arial Black', sans-serif;
    font-size: 48px;
    line-height: 1;
    color: #3a3a3a;
    -webkit-text-stroke: 7px #fff;
    paint-order: stroke fill;
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.3));
}

.lc-band.has-subtitle .lc-name { left: 150px; right: 150px; }

.lc-name sup {
    font-size: 0.34em;
    vertical-align: 1.6em;
    margin-left: 0.08em;
    -webkit-text-stroke: 3px #fff;
}

.lc-subtitle {
    position: absolute;
    right: 16px;
    top: 0;
    bottom: 0;
    max-width: 150px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-style: italic;
    font-weight: 700;
    font-size: 30px;
    color: #d8261d;
    -webkit-text-stroke: 4px #fff;
    paint-order: stroke fill;
}

.lc-stats {
    position: absolute;
    left: 40px;
    right: 40px;
    top: 806px;
    height: 48px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 44px;
    padding: 0 28px;
    border-radius: 0 0 8px 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.15)),
        var(--lc-stats);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
    color: var(--lc-stats-label);
    font-style: italic;
    font-weight: 700;
    font-size: 32px;
    line-height: 1;
    white-space: nowrap;
}

.lc-stats b {
    color: var(--lc-stats-value);
    font-weight: 800;
    margin-left: 4px;
}

/* ---- Lucido della plastificazione ---- */

.lc-gloss {
    position: absolute;
    inset: 0;
    z-index: 4;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(118deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.22) 42%, rgba(255, 255, 255, 0) 54%);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.6), inset 0 0 0 5px rgba(0, 0, 0, 0.08);
}
