/* Ticket card tweaks (v2) — static/css/ticket-card.css
 *
 * The card itself keeps the GAME's own look: it is a normal .card with the
 * game's rarity skin class (rarity-mythic, rarity-blackmarket, ...), so it
 * gets the same background, border and glow the inventory cards have.
 * This file only adds the small layout helpers the new markup uses.
 *
 * Reverting: set TICKET_CARD_V2=0 in the environment (or flip the flag in
 * app.py) and the previous markup is used instead.
 */

/* ---------------------------------------------------------- store card */
.tt-card {
    transition: transform .16s ease, box-shadow .16s ease;
}
.tt-card:hover {
    transform: translateY(-2px);
}
.tt-ticket-art {
    font-size: 1.7rem;
    line-height: 1;
    flex: 0 0 auto;
    display: inline-block;
}
.tt-ticket-img {
    max-height: 30px;
    width: auto;
    vertical-align: -4px;
}
.tt-ticket-name {
    font-size: 1.02rem;
    letter-spacing: .2px;
}
.tt-ticket-desc {
    max-width: 42ch;
    opacity: .85;
}

/* ------------------------------------------------------ reward rows */
.tt-reward-row {
    font-size: .8rem;
}
.tt-reward-label {
    flex: 0 0 38%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tt-reward-bar {
    height: 5px;
    background: rgba(127, 127, 127, .25);
}
.tt-reward-bar .progress-bar {
    border-radius: 0;
}
.tt-reward-pct {
    flex: 0 0 56px;
    text-align: right;
    color: var(--bs-secondary-color, #adb5bd);
    font-variant-numeric: tabular-nums;
}
.tt-more {
    font-size: .78rem;
    color: var(--bs-info, #0dcaf0);
    display: inline-block;
    margin-top: 2px;
}
.tt-foot {
    font-size: .78rem;
    border-top: 1px solid var(--bs-border-color, rgba(255, 255, 255, .12));
    padding-top: 8px;
}

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
    .tt-card, .tt-reward-bar .progress-bar { transition: none !important; }
    .tt-card:hover { transform: none; }
}
body.no-animations .tt-card,
body.no-animations .tt-reward-bar .progress-bar { transition: none !important; }
body.no-animations .tt-card:hover { transform: none; }
