:root { --bg: #0f0f1a; --card: #1a1a2e; --gold: #FFD700; --text: #fff; }
body { 
    background: var(--bg); color: var(--text); 
    font-family: -apple-system, system-ui, sans-serif; 
    padding: 10px; margin: 0; -webkit-tap-highlight-color: transparent;
}
.app-container { max-width: 100%; margin: auto; }
.logo { text-align: center; color: var(--gold); text-transform: uppercase; font-size: 1.4em; margin: 10px 0 20px 0; }

.mode-switch { display: flex; gap: 8px; margin-bottom: 15px; }
.mode-switch button { 
    flex: 1; padding: 14px; border: none; border-radius: 12px; 
    background: #252545; color: white; font-weight: bold; font-size: 0.9em;
}
.mode-switch button.active { background: var(--gold); color: black; box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2); }

.card-info, .result-card, .card-lock { 
    background: var(--card); padding: 15px; border-radius: 18px; 
    border: 1px solid #333; margin-bottom: 15px; 
}

.score-line { display: flex; justify-content: space-between; gap: 5px; }
.s-in { 
    width: 18%; height: 45px; text-align: center; border-radius: 8px; 
    border: 1px solid #444; background: #2d2d44; color: white; 
    font-weight: bold; font-size: 1em;
}

.s-in-total {
    width: 18%; height: 35px; text-align: center; border-radius: 8px;
    background: rgba(255, 215, 0, 0.1); border: 1px dashed var(--gold);
    color: var(--gold); font-weight: bold; font-size: 0.9em;
    display: flex; align-items: center; justify-content: center;
}

.s-in-pro { 
    width: 100%; padding: 15px; margin-bottom: 10px; border-radius: 10px; 
    border: 1px solid #444; background: #2d2d44; color: white; box-sizing: border-box; 
}

.btn-analyze-main { 
    width: 100%; padding: 16px; background: var(--gold); border: none; 
    border-radius: 12px; font-weight: bold; font-size: 1em; color: #000;
}

.tableau-pronos, .tableau-history { width: 100%; border-collapse: collapse; }
.tableau-pronos th, .tableau-history th { font-size: 0.65em; color: #888; padding: 10px 0; }
.tableau-pronos td, .tableau-history td { padding: 12px 2px; text-align: center; border-bottom: 1px solid #222; font-size: 0.8em; }
.tableau-pronos tfoot td { padding: 15px 2px; border: none; font-size: 0.9em; font-weight: bold; }
