/* Pokattack GO BIG - poker roguelike run chrome. Layers on top of play.css
   (shared felt, cards, buttons, shark speech, Lingo feed). Only the run-specific
   bits live here: the ante/target HUD, the joker + deck-edit build, the poker
   hand + card selection, 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); }
.discard-pill span { color: var(--sky); }
.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); }

/* ---------------------------------------------------------- blind ladder */

.blind-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.55rem;
}
.blind-tag {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(77, 166, 255, 0.16);
    border: 1px solid rgba(77, 166, 255, 0.5);
    color: var(--sky);
}
.blind-tag.blind-big { background: rgba(255, 210, 63, 0.16); border-color: rgba(255, 210, 63, 0.55); color: var(--corn); }
.blind-tag.blind-boss { background: rgba(255, 71, 87, 0.18); border-color: var(--magenta); color: var(--magenta); }
.blind-dots { display: flex; gap: 0.3rem; }
.blind-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.blind-dot.on { background: var(--sky); box-shadow: 0 0 8px rgba(77, 166, 255, 0.6); }
.blind-dot.boss.on { background: var(--magenta); box-shadow: 0 0 8px rgba(255, 71, 87, 0.6); }

/* ---------------------------------------------------------- hand levels */

.hand-levels { display: flex; flex-direction: column; gap: 0.2rem; }
.hl-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    font-size: 0.8rem;
}
.hl-row.leveled { background: rgba(77, 255, 176, 0.1); }
.hl-name { color: var(--text-dim); font-weight: 700; }
.hl-lvl { color: var(--corn); font-weight: 800; font-size: 0.75rem; }
.hl-row.leveled .hl-lvl { color: var(--lime); }
.hl-stat { color: var(--sky); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- 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;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    text-align: center;
}
#score-pop .sp-total {
    font-family: 'Titan One', sans-serif;
    font-size: 2.4rem;
    color: var(--lime);
    text-shadow: 0 0 18px rgba(77, 255, 176, 0.7), 0 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1;
}
#score-pop .sp-break { font-size: 0.85rem; font-weight: 700; color: var(--corn); text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); }
#score-pop.go { animation: score-rise 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes score-rise {
    0% { transform: translateY(14px) scale(0.6); opacity: 0; }
    18% { transform: translateY(-4px) scale(1.15); opacity: 1; }
    72% { transform: translateY(-34px) scale(1); opacity: 1; }
    100% { transform: translateY(-66px) scale(0.95); opacity: 0; }
}

/* --------------------------------------------- poker hand + selection */

/* The evaluated-hand banner above the felt: shows the name of the currently
   selected poker hand as you pick cards, then the scored line on PLAY. */
#hand-eval {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    padding: 0.35rem 1.1rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    min-height: 2.1rem;
    justify-content: center;
}
#eval-name {
    font-family: 'Titan One', sans-serif;
    font-size: 1.1rem;
    color: var(--corn);
    text-shadow: 0 0 10px rgba(255, 210, 63, 0.4);
    letter-spacing: 0.02em;
}
#eval-score { font-size: 0.8rem; color: var(--text-dim); }

/* The 8-card hand: cards you can toggle-select. Selected cards lift up and glow.
   Overrides the shared .cards flex so the poker hand can wrap on small screens. */
.poker-hand {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 0.6rem;
}
.poker-hand .pcard {
    cursor: pointer;
    transition: transform 0.14s ease, filter 0.14s ease, box-shadow 0.14s ease;
    will-change: transform;
}
.poker-hand .pcard:hover { transform: translateY(-8px); }
.poker-hand .pcard.selected {
    transform: translateY(-22px) scale(1.04);
    filter: drop-shadow(0 0 10px rgba(77, 255, 176, 0.8));
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.5);
}
.hand-label .val-badge { color: var(--lime); }

/* ----------------------------------------------- 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); }
.shop-item.planet { border-color: rgba(77, 255, 176, 0.55); box-shadow: 0 0 14px -3px rgba(77, 255, 176, 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); }
.shop-item.planet .si-tag { color: var(--lime); }
.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;
}

.shop-actions { display: flex; gap: 0.7rem; align-items: center; justify-content: center; }
.btn.reroll {
    background: rgba(77, 166, 255, 0.16);
    border: 1px solid rgba(77, 166, 255, 0.55);
    color: var(--sky);
    font-weight: 800;
}
.btn.reroll:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.reroll span { font-weight: 900; }

#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; }
