/* ============================================
   BLACKJACK OPS — Card Intelligence Training
   ============================================ */

:root {
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --bg-surface: #1a2236;
    --bg-elevated: #243049;
    --accent: #00f0ff;
    --accent-dim: #007a82;
    --accent-glow: rgba(0, 240, 255, 0.15);
    --gold: #ffd700;
    --gold-dim: #a08c00;
    --red: #ff3b5c;
    --green: #00e676;
    --green-dim: #00a854;
    --orange: #ff9100;
    --text: #e8eaf6;
    --text-dim: #7b8caa;
    --text-muted: #4a5568;
    --felt: #0d5a2d;
    --felt-dark: #0a4422;
    --felt-light: #0f6e36;
    --card-white: #fafafa;
    --card-shadow: rgba(0,0,0,0.5);
    --radius: 10px;
    --radius-sm: 6px;
    --transition: 0.25s ease;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── BOOT SCREEN ── */
#bootScreen {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.boot-content { text-align: center; }

.spade-icon {
    font-size: 4rem;
    color: var(--accent);
    text-shadow: 0 0 30px var(--accent), 0 0 60px rgba(0, 240, 255, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.boot-content h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: 4px;
    margin: 0.5rem 0 0.25rem;
    color: var(--text);
}

.accent { color: var(--accent); }

.boot-sub {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 3px;
    margin-bottom: 2rem;
}

.boot-progress { margin: 2rem 0; }

.boot-bar {
    width: 240px;
    height: 3px;
    background: var(--bg-surface);
    border-radius: 2px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.boot-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-dim));
    border-radius: 2px;
    transition: width 0.3s;
}

.boot-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.pulse-btn {
    animation: btn-pulse 2s ease-in-out infinite;
}

@keyframes btn-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
    50% { box-shadow: 0 0 0 12px rgba(0, 240, 255, 0); }
}

/* ── BUTTONS ── */
.btn-primary {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 14px 32px;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(0,240,255,0.15), rgba(0,240,255,0.05));
    color: var(--accent);
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(0,240,255,0.3), rgba(0,240,255,0.1));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
    transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 12px 24px;
    border: 1px solid var(--text-muted);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-secondary:hover {
    border-color: var(--text-dim);
    color: var(--text);
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--bg-elevated);
    background: var(--bg-surface);
    color: var(--text-dim);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    border-color: var(--accent-dim);
    color: var(--accent);
}

/* ── TOP BAR ── */
#topBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--bg-elevated);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-mini {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.top-right { display: flex; gap: 8px; }

/* Heat Meter */
.heat-meter { display: flex; align-items: center; gap: 6px; }

.heat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.heat-bar {
    width: 60px;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
}

.heat-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--green), var(--orange), var(--red));
    border-radius: 3px;
    transition: width 0.5s ease;
}

.heat-value {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    min-width: 28px;
}

/* ── BANKROLL BAR ── */
#bankrollBar {
    display: flex;
    justify-content: space-around;
    padding: 10px 16px;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--bg-elevated);
}

.bankroll-item { text-align: center; }

.bankroll-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    display: block;
}

.bankroll-value {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
}

/* ── INTEL PANEL ── */
#intelPanel {
    background: var(--bg-card);
    border-bottom: 1px solid var(--bg-elevated);
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#intelPanel.collapsed .intel-content {
    display: none;
}

.intel-toggle {
    width: 100%;
    padding: 8px 16px;
    background: none;
    border: none;
    color: var(--accent-dim);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}

.intel-toggle:hover { color: var(--accent); }

.toggle-arrow {
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 0.6rem;
}

#intelPanel:not(.collapsed) .toggle-arrow {
    transform: rotate(180deg);
}

.intel-content { padding: 0 16px 12px; }

.intel-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.intel-stat {
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    padding: 8px;
    text-align: center;
    border: 1px solid var(--bg-elevated);
}

.intel-label {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.intel-value {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
}

.intel-advice {
    font-size: 0.75rem;
    color: var(--text-dim);
    background: var(--bg-surface);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-dim);
    line-height: 1.4;
}

/* ── TABLE (Felt) ── */
#table {
    background: linear-gradient(180deg, var(--felt-dark), var(--felt), var(--felt-light));
    min-height: 320px;
    padding: 12px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 3px solid #0a3c1e;
    border-bottom: 3px solid #0a3c1e;
    box-shadow: inset 0 0 60px rgba(0,0,0,0.3);
}

.shoe-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 8px;
    right: 12px;
}

.shoe-bar {
    width: 50px;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}

.shoe-fill {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.5);
    transition: width 0.3s;
}

.shoe-label {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1px;
}

/* Zones */
#dealerZone, #playerZone {
    text-align: center;
    padding: 8px 0;
}

.zone-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.hand-display {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
    gap: 4px;
    flex-wrap: wrap;
    perspective: 800px;
}

.score-badge {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(0,0,0,0.4);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    margin-top: 6px;
    min-height: 26px;
    backdrop-filter: blur(4px);
}

/* Table Divider */
.table-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.result-display {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 3px;
    min-height: 20px;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ── CARDS ── */
.card-el {
    width: 65px;
    height: 95px;
    border-radius: 8px;
    background: var(--card-white);
    box-shadow: 0 2px 8px var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 6px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: dealCard 0.35s ease-out;
    transform-origin: center;
    flex-shrink: 0;
}

@keyframes dealCard {
    0% { transform: translateY(-40px) scale(0.7) rotateY(90deg); opacity: 0; }
    60% { transform: translateY(4px) scale(1.02) rotateY(0deg); opacity: 1; }
    100% { transform: translateY(0) scale(1); }
}

.card-el:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px var(--card-shadow);
}

.card-el.red { color: #cc0000; }
.card-el.black { color: #1a1a1a; }

.card-corner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.card-corner-br {
    align-self: flex-end;
    transform: rotate(180deg);
}

.card-value {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
}

.card-suit-small {
    font-size: 0.65rem;
    line-height: 1;
}

.card-center {
    font-size: 1.6rem;
    text-align: center;
    line-height: 1;
}

/* Face-down card */
.card-el.face-down {
    background: linear-gradient(135deg, #1a3a6b, #0d2240);
    border: 2px solid #2a5a9b;
}

.card-back-pattern {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background:
        repeating-linear-gradient(45deg,
            transparent, transparent 3px,
            rgba(255,255,255,0.05) 3px,
            rgba(255,255,255,0.05) 6px
        );
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back-pattern::after {
    content: '?';
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: rgba(255,255,255,0.15);
}

/* Card overlap for many cards */
.hand-display .card-el:not(:first-child) {
    margin-left: -15px;
}

/* ── STRATEGY ADVISOR ── */
#strategyAdvisor {
    background: var(--bg-card);
    border-bottom: 1px solid var(--bg-elevated);
    padding: 10px 16px;
}

.advisor-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.advisor-icon { font-size: 1.2rem; flex-shrink: 0; }

.advisor-text {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.advisor-text.correct { color: var(--green); }
.advisor-text.wrong { color: var(--red); }
.advisor-text.hint { color: var(--accent); }

.advisor-reason {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-left: auto;
    text-align: right;
    flex-shrink: 0;
}

/* ── BETTING CONTROLS ── */
#bettingControls {
    padding: 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--bg-elevated);
}

.bet-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.chip {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    border: 3px dashed;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chip:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.chip:active { transform: scale(0.95); }

.chip-5 {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    border-color: #ef5350;
    color: white;
}

.chip-25 {
    background: linear-gradient(135deg, #388e3c, #1b5e20);
    border-color: #66bb6a;
    color: white;
}

.chip-100 {
    background: linear-gradient(135deg, #1a1a1a, #333);
    border-color: #666;
    color: white;
}

.chip-500 {
    background: linear-gradient(135deg, #6a1b9a, #4a148c);
    border-color: #ab47bc;
    color: white;
}

.bet-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.bet-actions .btn-primary,
.bet-actions .btn-secondary {
    flex: 1;
    max-width: 160px;
}

/* ── PLAY CONTROLS ── */
#playControls {
    display: flex;
    gap: 6px;
    padding: 12px 10px;
    background: var(--bg-card);
    border-top: 1px solid var(--bg-elevated);
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 12px 14px;
    border: 2px solid;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
    justify-content: center;
    max-width: 120px;
    min-width: 70px;
}

.action-icon {
    font-size: 0.9rem;
    font-style: normal;
}

.hit-btn {
    background: rgba(0, 230, 118, 0.1);
    border-color: var(--green);
    color: var(--green);
}
.hit-btn:hover { background: rgba(0, 230, 118, 0.25); }

.stand-btn {
    background: rgba(255, 145, 0, 0.1);
    border-color: var(--orange);
    color: var(--orange);
}
.stand-btn:hover { background: rgba(255, 145, 0, 0.25); }

.double-btn {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}
.double-btn:hover { background: rgba(0, 240, 255, 0.25); }

.split-btn {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}
.split-btn:hover:not(:disabled) { background: rgba(255, 215, 0, 0.25); }

.surrender-btn {
    background: rgba(255, 59, 92, 0.1);
    border-color: var(--red);
    color: var(--red);
}
.surrender-btn:hover { background: rgba(255, 59, 92, 0.25); }

.action-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ── CONTINUE ── */
#continueControls {
    padding: 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--bg-elevated);
    text-align: center;
}

.large-btn {
    width: 100%;
    max-width: 300px;
    padding: 16px 32px;
    font-size: 1rem;
}

/* ── MODALS ── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

.wide-modal { max-width: 95vw; }

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bg-elevated);
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 1;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

.modal-body { padding: 20px; }

/* Settings */
.setting-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-elevated);
}

.setting-group label {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.setting-group select {
    font-family: var(--font-body);
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--bg-elevated);
    background: var(--bg-surface);
    color: var(--text);
    cursor: pointer;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 14px;
    text-align: center;
    border: 1px solid var(--bg-elevated);
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 1px;
}

.strategy-mistakes {
    margin-top: 16px;
    background: var(--bg-surface);
    border-radius: var(--radius);
    padding: 14px;
}

.strategy-mistakes h3 {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--red);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.mistake-item {
    font-size: 0.75rem;
    color: var(--text-dim);
    padding: 6px 0;
    border-bottom: 1px solid var(--bg-elevated);
    line-height: 1.4;
}

.mistake-item:last-child { border-bottom: none; }

/* Strategy Chart */
.chart-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.chart-tab {
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 2px;
    padding: 8px 16px;
    border: 1px solid var(--bg-elevated);
    border-radius: var(--radius-sm);
    background: var(--bg-surface);
    color: var(--text-dim);
    cursor: pointer;
    flex: 1;
    transition: all var(--transition);
}

.chart-tab.active {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.chart-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}

.chart-container table {
    border-collapse: collapse;
    width: 100%;
    min-width: 400px;
    font-size: 0.6rem;
}

.chart-container th,
.chart-container td {
    padding: 4px 3px;
    text-align: center;
    border: 1px solid var(--bg-elevated);
    font-family: var(--font-mono);
    min-width: 26px;
}

.chart-container th {
    background: var(--bg-elevated);
    color: var(--text-dim);
    font-weight: 400;
    position: sticky;
    top: 0;
}

.chart-container .row-header {
    background: var(--bg-elevated);
    color: var(--text-dim);
    font-weight: 400;
    position: sticky;
    left: 0;
}

.chart-cell-H { background: #1b5e20; color: #a5d6a7; }
.chart-cell-S { background: #b71c1c; color: #ef9a9a; }
.chart-cell-D { background: #0d47a1; color: #90caf9; }
.chart-cell-P { background: #e65100; color: #ffcc80; }
.chart-cell-R { background: #4a148c; color: #ce93d8; }

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    color: var(--text-dim);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    display: inline-block;
}

.hit-color { background: #1b5e20; }
.stand-color { background: #b71c1c; }
.double-color { background: #0d47a1; }
.split-color { background: #e65100; }
.surrender-color { background: #4a148c; }

/* Highlight current cell */
.chart-highlight {
    outline: 2px solid var(--gold);
    outline-offset: -1px;
    animation: chart-blink 1s ease-in-out infinite;
}

@keyframes chart-blink {
    0%, 100% { outline-color: var(--gold); }
    50% { outline-color: transparent; }
}

/* ── HEAT WARNING ── */
#heatWarning {
    position: fixed;
    inset: 0;
    background: rgba(180, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heatFlash 0.5s;
}

@keyframes heatFlash {
    0%, 20%, 40% { opacity: 0; }
    10%, 30%, 50%, 100% { opacity: 1; }
}

.heat-warning-content {
    text-align: center;
    padding: 30px;
    max-width: 400px;
}

.warning-icon {
    font-size: 3rem;
    animation: shake 0.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.heat-warning-content h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin: 10px 0;
}

.heat-warning-content p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.heat-tips {
    text-align: left;
    background: rgba(0,0,0,0.3);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.heat-tips h3 {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--gold);
}

.heat-tips li {
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.9);
}

/* ── BOTTOM NAV ── */
#bottomNav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--bg-elevated);
    padding: 6px 0;
    padding-bottom: env(safe-area-inset-bottom, 6px);
    z-index: 100;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition);
}

.nav-btn:hover, .nav-btn:active { color: var(--accent); }

.nav-icon { font-size: 1.1rem; }

.nav-label {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 1px;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    #bottomNav { display: flex; }
    #topBar .top-right { display: none; }

    body { padding-bottom: 60px; }

    .chip { width: 52px; height: 52px; font-size: 0.6rem; }

    .intel-grid { grid-template-columns: repeat(2, 1fr); }

    .card-el { width: 55px; height: 80px; }
    .card-value { font-size: 0.75rem; }
    .card-suit-small { font-size: 0.55rem; }
    .card-center { font-size: 1.2rem; }
    .hand-display .card-el:not(:first-child) { margin-left: -20px; }

    .action-btn { padding: 10px 8px; font-size: 0.55rem; }
    .action-icon { font-size: 0.75rem; }

    .modal-content { border-radius: 12px 12px 0 0; }

    #table { min-height: 280px; }
}

@media (min-width: 601px) {
    #app {
        max-width: 500px;
        margin: 0 auto;
        min-height: 100vh;
        border-left: 1px solid var(--bg-elevated);
        border-right: 1px solid var(--bg-elevated);
    }
}

@media (min-width: 900px) {
    .modal-content {
        border-radius: 16px;
        margin-bottom: 40px;
    }

    .modal {
        align-items: center;
    }
}

/* ── UTILITY ── */
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.neutral { color: var(--text-dim) !important; }

.hidden { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 2px; }
