/* ================================================================
   CARD ORIGINALS — Blackjack · Hilo
================================================================ */

/* ── Shared table surface ─────────────────────────────────────── */
.bj-table,
.hilo-table {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 22px 22px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background:
        radial-gradient(120% 130% at 50% -10%, rgba(16, 88, 56, 0.55), rgba(8, 30, 22, 0.82) 55%, rgba(9, 12, 17, 0.96) 100%),
        #090c11;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px -34px rgba(0, 0, 0, 0.9);
    overflow: hidden;
}
.bj-table::before,
.hilo-table::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    border: 1px solid rgba(240, 192, 64, 0.14);
    pointer-events: none;
}

/* ── Cards ────────────────────────────────────────────────────── */
.bj-cards,
.hilo-cards {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    min-height: 108px;
    align-items: center;
}

.playing-card {
    position: relative;
    width: 74px;
    height: 104px;
    border-radius: 9px;
    background: linear-gradient(180deg, #fff, #eef1f6);
    color: #111827;
    box-shadow: 0 10px 22px -12px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 7px 8px;
    font-family: 'Inter', sans-serif;
    transform-origin: center bottom;
    animation: cardDeal 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes cardDeal {
    from { opacity: 0; transform: translateY(-14px) rotate(-4deg) scale(0.92); }
    to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
.playing-card .rank {
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}
.playing-card .suit {
    font-size: 26px;
    line-height: 1;
    align-self: flex-end;
}
.playing-card .corner {
    position: absolute;
    top: 6px;
    right: 7px;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.55;
}
.playing-card.red { color: #d81b3c; }
.playing-card.black { color: #111827; }

.playing-card.is-back {
    background: repeating-linear-gradient(45deg, #1e3a8a 0 6px, #1d4ed8 6px 12px);
    color: transparent;
    box-shadow: inset 0 0 0 3px #fff, 0 10px 22px -12px rgba(0, 0, 0, 0.9);
}
.playing-card.is-back::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), transparent 60%);
}
.playing-card.is-back .rank,
.playing-card.is-back .suit,
.playing-card.is-back .corner { display: none; }

.playing-card.hilo-big {
    width: 118px;
    height: 166px;
    padding: 12px 13px;
}
.playing-card.hilo-big .rank { font-size: 30px; }
.playing-card.hilo-big .suit { font-size: 44px; }

/* ── Table rows ───────────────────────────────────────────────── */
.bj-row { padding: 10px 4px 14px; }
.bj-row-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.bj-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(230, 237, 243, 0.62);
}
.bj-total {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #f0c040;
    font-variant-numeric: tabular-nums;
}
.bj-divider {
    height: 1px;
    margin: 6px 4px;
    background: linear-gradient(90deg, transparent, rgba(240, 192, 64, 0.28), transparent);
}

.bj-status {
    margin-top: 18px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(4, 8, 12, 0.42);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.bj-status.win { color: #4ade80; border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08); }
.bj-status.lose { color: #f87171; border-color: rgba(248, 113, 113, 0.32); background: rgba(248, 113, 113, 0.08); }
.bj-status.push { color: #fcd34d; border-color: rgba(250, 204, 21, 0.3); background: rgba(250, 204, 21, 0.07); }

.bj-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.bj-act {
    padding: 13px 8px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: #e6edf3;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.bj-act:hover:not(:disabled) { background: rgba(240, 192, 64, 0.14); border-color: rgba(240, 192, 64, 0.45); transform: translateY(-1px); }
.bj-act:disabled { opacity: 0.4; cursor: not-allowed; }
.bj-act.primary {
    background: linear-gradient(135deg, #f0c040, #f97316);
    border-color: transparent;
    color: #1a0e00;
}

.bj-meta,
.hilo-meta {
    margin-top: 14px;
    text-align: center;
    font-size: 11.5px;
    color: #6b7280;
}

/* ── Hilo ─────────────────────────────────────────────────────── */
.hilo-table {
    text-align: center;
    padding: 22px 22px 20px;
    background:
        radial-gradient(120% 130% at 50% -10%, rgba(38, 208, 196, 0.10), rgba(9, 14, 26, 0.9) 55%, rgba(7, 11, 36, 0.98) 100%),
        #070b24;
    border-color: rgba(38, 208, 196, 0.14);
}
.hilo-table::before { border-color: rgba(38, 208, 196, 0.12); }

.hilo-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.hilo-metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 8px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.025);
}
.hilo-metric span {
    font-size: 9.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
}
.hilo-metric b {
    font-size: 16px;
    font-weight: 800;
    color: #e6edf3;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.hilo-metric .hilo-mult {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: 19px;
    color: #7ff5ea;
}
.hilo-mult.win { color: #4ade80; }
.hilo-cash-value { color: #4ade80; }

.hilo-ladder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 30px;
    margin-bottom: 12px;
}
.hilo-ladder-step {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(38, 208, 196, 0.25);
    background: rgba(38, 208, 196, 0.08);
    color: #7ff5ea;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.hilo-ladder-step.current {
    border-color: transparent;
    background: linear-gradient(135deg, #26d0c4, #0e7490);
    color: #04121a;
    box-shadow: 0 8px 18px -10px rgba(38, 208, 196, 0.9);
}
.hilo-ladder-sep { font-style: normal; color: #3f4a63; font-size: 12px; }
.hilo-ladder-empty {
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4b5563;
}

.hilo-stage {
    position: relative;
    padding: 18px 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(90% 90% at 50% 0%, rgba(38, 208, 196, 0.10), transparent 65%),
        rgba(4, 8, 18, 0.42);
}
.hilo-card-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 190px;
}
.hilo-card-slot .playing-card.hilo-big {
    width: 132px;
    height: 186px;
    border-radius: 12px;
    box-shadow:
        0 22px 44px -22px rgba(0, 0, 0, 0.95),
        12px 10px 0 -5px rgba(255, 255, 255, 0.05),
        -12px 12px 0 -7px rgba(255, 255, 255, 0.03),
        inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.hilo-card-slot .playing-card.hilo-big .rank { font-size: 34px; }
.hilo-card-slot .playing-card.hilo-big .suit { font-size: 50px; }

.hilo-next {
    margin-top: 14px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7c8aa8;
}

.hilo-choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 14px;
}
.hilo-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 15px 12px 13px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    color: #e6edf3;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.16s, box-shadow 0.16s, filter 0.16s;
}
.hilo-choice .hc-arrow { font-size: 22px; line-height: 1; }
.hilo-choice .hc-label { font-size: 13px; font-weight: 800; letter-spacing: 0.02em; }
.hilo-choice small {
    font-size: 11px;
    font-weight: 700;
    color: #93a2c4;
    font-variant-numeric: tabular-nums;
}
.hilo-choice.higher {
    border-color: rgba(26, 208, 147, 0.3);
    background: linear-gradient(180deg, rgba(26, 208, 147, 0.14), rgba(26, 208, 147, 0.03));
}
.hilo-choice.higher .hc-arrow { color: #4ade80; }
.hilo-choice.lower {
    border-color: rgba(250, 48, 96, 0.3);
    background: linear-gradient(180deg, rgba(250, 48, 96, 0.14), rgba(250, 48, 96, 0.03));
}
.hilo-choice.lower .hc-arrow { color: #ff8fa8; }
.hilo-choice:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 32px -24px #000; }
.hilo-choice:disabled { opacity: 0.42; cursor: not-allowed; }

.hilo-cashout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin-top: 14px;
    padding: 13px 18px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #1ad093, #0f9f72);
    color: #022c1c;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}
.hilo-cashout b { font-size: 16px; }
.hilo-cashout:hover:not(:disabled) { filter: brightness(1.06); }
.hilo-cashout:disabled { filter: grayscale(0.55) brightness(0.7); cursor: not-allowed; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
    .bj-table, .hilo-table { padding: 18px 14px 16px; }
    .playing-card { width: 58px; height: 84px; padding: 6px; }
    .playing-card .rank { font-size: 15px; }
    .playing-card .suit { font-size: 20px; }
    .playing-card.hilo-big { width: 96px; height: 138px; }
    .playing-card.hilo-big .rank { font-size: 24px; }
    .playing-card.hilo-big .suit { font-size: 34px; }
    .bj-cards { gap: 7px; min-height: 92px; }
    .hilo-card-slot { min-height: 150px; }
    .hilo-card-slot .playing-card.hilo-big { width: 104px; height: 146px; }
    .hilo-metrics { gap: 6px; }
    .hilo-metric { padding: 8px 4px; }
    .hilo-metric b { font-size: 14px; }
    .hilo-metric .hilo-mult { font-size: 16px; }
}
