/* ============================= */
/* BLIND TRAINER MODULE */
/* ============================= */

.blind-trainer {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.blind-trainer h1 {
    text-align: center;
    margin-bottom: 24px;
}

/* Sections */

.blind-trainer .trainer-section {
    margin-bottom: 24px;
}

/* Scenario Row */

.blind-trainer #trainer-context {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.blind-trainer #trainer-context select {
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px 12px;
}

/* Deal Button */

.blind-trainer #new-hand {
    background: #2563eb;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    width: auto; /* override global full width */
}

/* Hand Display */

.blind-trainer #trainer-hand {
    text-align: center;
    margin-top: 20px;
}

.blind-trainer #trainer-hand h2 {
    font-size: 40px;
    margin: 8px 0;
}

/* Action Buttons (override global) */

.blind-trainer #trainer-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
}

.blind-trainer #trainer-actions button {
    width: auto; /* override global */
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
}

/* Feedback */

.blind-trainer .correct {
    color: #22c55e;
    margin-top: 10px;
}

.blind-trainer .wrong {
    color: #ef4444;
    margin-top: 10px;
}

/* ============================= */
/* RANGE GRID */
/* ============================= */

.blind-trainer #range-grid {
    margin-top: 32px;
}

.blind-trainer .range-table {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 4px;
    width: 100%;
}

.blind-trainer .range-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 6px;
    background: #1e293b;
    color: #e5e7eb;
}

.blind-trainer .range-cell:hover {
    transform: scale(1.05);
}

/* Solver colors */

.blind-trainer .range-cell.fold {
    background: #7f1d1d;
}

.blind-trainer .range-cell.call {
    background: #166534;
}

.blind-trainer .range-cell.threebet {
    background: #1d4ed8;
}

.blind-trainer .range-cell.current {
    outline: 2px solid #facc15;
}
.ev-panel {
    margin: 18px auto 10px;
    max-width: 900px;
}

.ev-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.ev-box {
    background: #0b1220;
    border: 1px solid #1e293b;
    border-radius: 12px;
    padding: 12px 14px;
    text-align: center;
}

.ev-label {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.ev-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e5e7eb;
}

.ev-box.best {
    border-color: #facc15;
    box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.15);
}

.ev-footnote {
    margin-top: 10px;
    text-align: center;
    font-size: 0.8rem;
    color: #64748b;
}

@media (max-width: 900px) {
    .ev-row { grid-template-columns: 1fr; }
}
.trainer-explainer {
    max-width: 800px;
    margin: 0 auto 24px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.trainer-explainer h2 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #e5e7eb;
}

.trainer-explainer ul {
    margin: 10px 0 10px 18px;
}

.trainer-explainer li {
    margin-bottom: 4px;
}

.trainer-note {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #64748b;
}
.range-legend {
    text-align: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #94a3b8;
}

.legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    margin: 0 6px 0 12px;
    vertical-align: middle;
}

.legend-box.threebet { background: #1d4ed8; }
.legend-box.call { background: #166534; }
.legend-box.fold { background: #7f1d1d; }

.tooltip-term {
    position: relative;
    border-bottom: 1px dotted #64748b;
    cursor: help;
}

.tooltip-term::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    border: 1px solid #334155;
    color: #e5e7eb;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1000;
}

.tooltip-term:hover::after {
    opacity: 1;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #e5e7eb;
    padding: 6px 0;
    border-bottom: 1px solid #1e293b;
}

.chevron {
    font-size: 1.1rem;
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.2s ease;
}

.collapsible-header:hover .chevron {
    color: #3b82f6;
}

.collapsible.open .chevron {
    transform: rotate(180deg);
}

.chevron-badge {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1220;
    transition: all 0.2s ease;
}

.chevron {
    font-size: 0.8rem;
    color: #94a3b8;
    transition: transform 0.25s ease, color 0.2s ease;
}

.collapsible-header:hover .chevron-badge {
    border-color: #3b82f6;
    background: #111827;
}

.collapsible-header:hover .chevron {
    color: #3b82f6;
}

.collapsible.open .chevron {
    transform: rotate(180deg);
}
.collapsible-header:active .chevron-badge {
    transform: scale(0.95);
}
.mini-hand {
    display: flex;
    gap: 3px;
}

.mini-card {
    width: 22px;
    height: 28px;
    background: #ffffff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.mini-card.red {
    color: #dc2626;
}

.mini-card.black {
    color: #111827;
}

.mini-rank {
    font-size: 10px;
}

.mini-suit {
    font-size: 10px;
}
.range-cell {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-hand {
    display: flex;
    justify-content: center;
    margin: 10px 0 18px;
}

.hero-hand-inner {
    display: flex;
    gap: 8px;
}

.hero-card {
    width: 46px;
    height: 64px;
    background: #ffffff;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.hero-card.red {
    color: #dc2626;
}

.hero-card.black {
    color: #111827;
}

.hero-rank {
    font-size: 20px;
    line-height: 1;
}

.hero-suit {
    font-size: 18px;
    line-height: 1;
}
.trainer-goal {
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 12px;
}