/*
 * decision.css — Hit / Stand / Double / Split action panel.
 *
 * Hit is the visual primary (gold). Stand is the secondary (dark).
 * Double / Split sit on a second row; either may be hidden when not allowed.
 * No Insurance — never rendered.
 */

#bj-decision-panel {
    /* Mounted into #bj-slot-actions — flow as a normal flex child. */
    position: relative;
    width: 100%;
    padding: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bj-decision-btn {
    pointer-events: auto;
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--r-md);
    font-family: var(--font-ui);
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.4px;
    border: 1px solid var(--hairline);
    background: rgba(0, 0, 0, 0.55);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background var(--t-fast),
                border-color var(--t-fast),
                box-shadow var(--t-fast),
                color var(--t-fast);
}

.bj-decision-btn:hover,
.bj-decision-btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.bj-decision-btn[disabled] {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.bj-decision-btn__title {
    display: block;
}

.bj-decision-btn__sub {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-top: 2px;
    letter-spacing: 0;
}

/* HIT — primary, gold gradient */
.bj-decision-btn--hit {
    background: linear-gradient(180deg,
        rgba(201, 165, 106, 0.22),
        rgba(201, 165, 106, 0.12));
    border-color: var(--gold-soft);
    color: var(--gold-strong);
}

.bj-decision-btn--hit:hover,
.bj-decision-btn--hit:focus-visible {
    background: linear-gradient(180deg,
        rgba(201, 165, 106, 0.34),
        rgba(201, 165, 106, 0.20));
    color: #fff8e6;
    box-shadow: 0 0 0 1px var(--gold);
}

/* Second row.
 * auto-fit, NOT `1fr 1fr`: chips.js hides SPLIT with style.display='none'
 * when the server disallows it, and a fixed two-column grid left DOUBLE at
 * half width with a dead gap beside it. auto-fit drops the empty track so a
 * lone DOUBLE spans the full row. */
.bj-decision-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 5px;
}

.bj-decision-row .bj-decision-btn {
    padding: 8px 10px;
    font-size: 13px;
}
