/* Blajacko GO BIG - roguelike run chrome. Layers on top of play.css (shared
   felt, cards, buttons, dealer speech, Lingo feed). Only the run-specific bits
   live here: the ante/target HUD, the joker + deck-edit build, the floating
   score pop, and the shop / run-over overlays. Palette tokens come from play.css. */

.play-head .mode-tag {
    font-family: 'Bungee', 'Arial Black', sans-serif;
    font-size: 0.55em;
    color: var(--lime);
    letter-spacing: 0.08em;
    padding: 0.1em 0.5em;
    border-radius: 8px;
    background: rgba(77, 255, 176, 0.14);
    border: 1px solid rgba(77, 255, 176, 0.5);
    text-shadow: 0 0 12px rgba(77, 255, 176, 0.5);
    vertical-align: 0.25em;
}

/* ---------------------------------------------------------- run status */

#run-status .ante-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.55rem;
}
#run-status .ante-label {
    font-family: 'Titan One', sans-serif;
    font-size: 1.05rem;
    color: var(--corn);
    text-shadow: 0 0 10px rgba(255, 210, 63, 0.4);
}
#run-status .hands-left { font-size: 0.85rem; color: var(--text-dim); }
#run-status .hands-left span { color: var(--sky); font-weight: 800; }

.target-row { margin-bottom: 0.6rem; }
.target-bar {
    height: 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.22);
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}
#target-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tangerine), var(--corn));
    box-shadow: 0 0 10px rgba(255, 210, 63, 0.6);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#target-fill.full { background: linear-gradient(90deg, var(--lime), #7dffce); box-shadow: 0 0 12px rgba(77, 255, 176, 0.7); }
.target-nums {
    margin-top: 0.3rem;
    text-align: right;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dim);
}
.target-nums span:first-child { color: var(--corn); }

.run-meta { display: flex; gap: 0.5rem; }
.run-meta span {
    flex: 1;
    padding: 0.35rem 0.5rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
}
.run-meta span span { font-weight: 800; }
.money-pill span { color: var(--lime); }
.score-pill span { color: var(--berry); }

#boss-banner {
    margin-top: 0.7rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255, 71, 87, 0.22), rgba(163, 17, 44, 0.28));
    border: 1px solid var(--magenta);
    box-shadow: 0 0 14px rgba(255, 71, 87, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
#boss-banner .boss-name {
    font-family: 'Titan One', sans-serif;
    color: var(--magenta);
    font-size: 0.95rem;
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.5);
}
#boss-banner .boss-text { font-size: 0.8rem; color: var(--text-dim); }

/* ---------------------------------------------------------- the build */

.slot-count { color: var(--text-dim); font-weight: 700; letter-spacing: 0; }
.jokers { display: flex; flex-direction: column; gap: 0.4rem; }
.build-empty { font-size: 0.85rem; color: var(--text-dim); font-style: italic; }
.joker {
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(179, 79, 255, 0.16), rgba(0, 0, 0, 0.28));
    border: 1px solid rgba(179, 79, 255, 0.5);
    box-shadow: 0 0 10px -3px rgba(179, 79, 255, 0.5);
}
.joker-name { font-weight: 800; color: var(--berry); font-size: 0.9rem; }
.joker-desc { font-size: 0.78rem; color: var(--text-dim); line-height: 1.3; }
.deck-edits { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.deck-edit {
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(77, 166, 255, 0.16);
    border: 1px solid rgba(77, 166, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--sky);
    cursor: default;
}

/* ------------------------------------------------------- score pop */

#score-pop {
    position: absolute;
    font-family: 'Titan One', sans-serif;
    font-size: 2.1rem;
    color: var(--lime);
    text-shadow: 0 0 18px rgba(77, 255, 176, 0.7), 0 2px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    opacity: 0;
}
#score-pop.go { animation: score-rise 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes score-rise {
    0% { transform: translateY(10px) scale(0.6); opacity: 0; }
    20% { transform: translateY(-4px) scale(1.15); opacity: 1; }
    70% { transform: translateY(-30px) scale(1); opacity: 1; }
    100% { transform: translateY(-56px) scale(0.95); opacity: 0; }
}

/* --------------------------------------------- result overlay score */

#overlay-score { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
#overlay-score .sc-total {
    font-family: 'Titan One', sans-serif;
    font-size: 2.4rem;
    color: var(--lime);
    text-shadow: 0 0 16px rgba(77, 255, 176, 0.6);
}
#overlay-score .sc-total.zero { color: var(--text-dim); text-shadow: none; }
#overlay-score .sc-break { font-size: 0.9rem; color: var(--text-dim); }

/* ----------------------------------------------- shop + run overlays */

/* Reuse the #overlay look for the two extra full-table overlays. */
#shop-overlay, #run-overlay {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.2rem;
    border-radius: 26px;
    background: rgba(6, 16, 10, 0.9);
    z-index: 6;
    text-align: center;
    overflow-y: auto;
}
#shop-overlay.show, #run-overlay.show { display: flex; }
#shop-overlay h2, #run-overlay h2 {
    font-family: 'Titan One', 'Arial Black', sans-serif;
    color: var(--corn);
    font-size: 1.7rem;
}
#run-overlay h2.win { color: var(--lime); }
#run-overlay h2.loss { color: var(--magenta); }
.shop-sub { color: var(--text-dim); font-size: 0.9rem; }
.shop-money {
    font-family: 'Titan One', sans-serif;
    color: var(--lime);
    font-size: 1.1rem;
}
.shop-money span { font-weight: 800; }

.shop-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    width: 100%;
    max-width: 620px;
}
.shop-sold { color: var(--text-dim); font-style: italic; }
.shop-item {
    flex: 1 1 170px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 0.7rem;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.shop-item.joker { border-color: rgba(179, 79, 255, 0.55); box-shadow: 0 0 14px -3px rgba(179, 79, 255, 0.5); }
.shop-item.deck { border-color: rgba(77, 166, 255, 0.55); box-shadow: 0 0 14px -3px rgba(77, 166, 255, 0.5); }
.si-tag {
    align-self: center;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-dim);
}
.shop-item.joker .si-tag { color: var(--berry); }
.shop-item.deck .si-tag { color: var(--sky); }
.si-name { font-family: 'Titan One', sans-serif; font-size: 1rem; color: var(--corn); }
.si-desc { font-size: 0.82rem; color: var(--text-dim); line-height: 1.35; flex: 1; }
.si-buy { margin-top: 0.3rem; }
.shop-item .si-buy {
    border-width: 14px 18px 18px 16px;
    font-size: 0.85rem;
}

#run-score { display: flex; flex-direction: column; align-items: center; }
#run-score .rs-label { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
#run-score .rs-total {
    font-family: 'Titan One', sans-serif;
    font-size: 3rem;
    color: var(--berry);
    text-shadow: 0 0 20px rgba(179, 79, 255, 0.6);
    line-height: 1;
}
#run-overlay p, #shop-overlay p { color: var(--text-dim); max-width: 360px; }
