.battle-wrap, .battle-wrap * { font-family:'Fredoka',sans-serif !important; }
.battle-wrap { max-width:960px; margin:40px auto; padding:0 20px; }

.battle-auth-card { max-width:480px; margin:auto; background:#fff; border-radius:20px; padding:35px; box-shadow:0 10px 30px rgba(0,0,0,0.1); border:2px solid #f0f0f0; }
.battle-auth-card h2 { text-align:center; color:#0073aa; margin:0 0 5px; font-size:1.5em; }
.battle-auth-card .battle-sub { text-align:center; color:#888; font-size:.9em; margin:0 0 25px; }

.battle-header { background:linear-gradient(135deg,#1a6fa8,#0073aa); border-radius:15px; padding:20px 25px; display:flex; justify-content:space-between; align-items:center; margin-bottom:25px; flex-wrap:wrap; gap:10px; border:2px solid rgba(99,179,237,0.3); }
.battle-header h2 { margin:0; color:#fff; font-size:1.3em; }
.battle-header .battle-logout { color:rgba(255,255,255,0.6); text-decoration:none; font-size:.85em; background:rgba(255,255,255,0.1); padding:6px 14px; border-radius:20px; transition:.2s; }
.battle-header .battle-logout:hover { background:rgba(255,255,255,0.2); color:#fff; }

.battle-section-title { font-size:1.1em; font-weight:700; color:#0073aa; margin:0 0 15px; padding-bottom:8px; border-bottom:2px solid #cce5ff; }

.battle-packs-grid { display:flex; gap:15px; flex-wrap:wrap; margin-bottom:20px; }
.battle-pack-card { flex:1; min-width:180px; border-radius:14px; padding:20px; text-align:center; cursor:pointer; transition:.25s; border:2px solid transparent; background:#f8f9fa; }
.battle-pack-card:hover { transform:translateY(-3px); }
.battle-pack-card.selected { border-color:#0073aa; background:rgba(0,115,170,0.06); }
.battle-pack-card input[type=radio] { display:none; }
.battle-pack-card .pack-emoji { font-size:2em; display:block; margin-bottom:8px; }
.battle-pack-card .pack-nom { font-weight:700; font-size:1em; color:#333; text-transform:uppercase; letter-spacing:1px; }
.battle-pack-card .pack-slots { font-size:.85em; color:#888; margin:4px 0 8px; }
.battle-pack-card .pack-prix { font-size:1.1em; font-weight:700; color:#0073aa; }

.battle-btn-stripe { width:100%; padding:14px; border:none; border-radius:10px; background:linear-gradient(135deg,#0073aa,#004d80); color:#fff; font-size:1.05em; font-weight:700; cursor:pointer; transition:.2s; font-family:'Fredoka',sans-serif; margin-top:15px; }
.battle-btn-stripe:hover { background:linear-gradient(135deg,#004d80,#003560); transform:translateY(-1px); }
.battle-stripe-note { text-align:center; font-size:.8em; color:#aaa; margin-top:8px; font-style:italic; }

.battle-pack-block { background:#fff; border-radius:14px; padding:22px; box-shadow:0 3px 12px rgba(0,0,0,0.07); margin-bottom:25px; border:1px solid #e0f0ff; }
.battle-pack-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; flex-wrap:wrap; gap:8px; }
.battle-pack-header h4 { margin:0; color:#0073aa; font-size:1.05em; }
.battle-badge-actif { background:#d4edda; color:#155724; padding:3px 12px; border-radius:20px; font-size:.8em; font-weight:700; }

.battle-slots-progress { background:#f0f7fb; border-radius:10px; padding:12px 15px; margin-bottom:18px; display:flex; align-items:center; gap:15px; flex-wrap:wrap; }
.battle-progress-bar-bg { flex:1; min-width:150px; height:10px; background:#dde; border-radius:10px; overflow:hidden; }
.battle-progress-bar-fill { height:100%; border-radius:10px; background:linear-gradient(90deg,#0073aa,#63b3ed); transition:width .4s ease; }
.battle-slots-text { font-size:.85em; color:#555; white-space:nowrap; }
.battle-slots-text strong { color:#0073aa; }

.battle-groupe-form { background:#f8f9fa; border-radius:12px; padding:18px; margin-bottom:20px; border:1px dashed #0073aa; }
.battle-groupe-form h5 { margin:0 0 12px; color:#0073aa; font-size:.95em; }
.battle-form-grid { display:flex; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.battle-form-grid .battle-field { flex:1; min-width:120px; }
.battle-form-grid label { font-size:.82em; color:#555; margin-bottom:3px; display:block; font-weight:600; }
.battle-input-sm { width:100%; padding:8px 10px; border-radius:8px; border:2px solid #e0e0e0; box-sizing:border-box; font-size:.9em; font-family:'Fredoka',sans-serif; transition:.2s; }
.battle-input-sm:focus { border-color:#0073aa; outline:none; }
.battle-btn-groupe { padding:9px 20px; border:none; border-radius:8px; background:#0073aa; color:#fff; font-weight:700; font-size:.9em; cursor:pointer; font-family:'Fredoka',sans-serif; transition:.2s; }
.battle-btn-groupe:hover { background:#005177; }

.battle-groupe-block { border:1px solid #e0f0ff; border-radius:10px; margin-bottom:15px; overflow:hidden; }
.battle-groupe-header { background:#f0f7fb; padding:12px 16px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; cursor:pointer; }
.battle-groupe-header h5 { margin:0; color:#0073aa; font-size:.95em; }
.battle-groupe-stats { display:flex; gap:10px; font-size:.82em; color:#555; }
.battle-groupe-body { display:none; padding:15px; background:#fff; }
.battle-groupe-body.open { display:block; }

.battle-codes-grid { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:10px; }
.battle-code-badge { padding:5px 11px; border-radius:8px; font-size:.82em; font-weight:700; letter-spacing:1px; cursor:pointer; transition:.2s; }
.battle-code-libre { background:#e8f4fd; color:#004085; border:1px solid #b8daff; }
.battle-code-libre:hover { background:#cce5ff; }
.battle-code-utilise { background:#f8f9fa; color:#aaa; border:1px solid #dee2e6; text-decoration:line-through; }

.battle-monitoring { background:#fff; border-radius:14px; padding:20px; box-shadow:0 3px 12px rgba(0,0,0,0.07); margin-bottom:20px; border:1px solid #e0f0ff; }
.battle-monitoring h4 { margin:0 0 15px; color:#0073aa; font-size:1.05em; border-bottom:2px solid #e0f0ff; padding-bottom:8px; }
.battle-monitor-table { width:100%; border-collapse:collapse; }
.battle-monitor-table th { background:#f0f7fb; padding:9px 12px; text-align:left; font-size:.82em; color:#555; }
.battle-monitor-table td { padding:9px 12px; border-bottom:1px solid #f5f5f5; font-size:.88em; }
.battle-monitor-table tr:hover td { background:#f8f9fa; }
.battle-avg-badge { background:#0073aa; color:#fff; padding:2px 10px; border-radius:12px; font-weight:700; font-size:.85em; }
.battle-top-badge { color:#f0ad00; font-weight:700; }

.battle-input { width:100%; padding:11px 14px; margin:5px 0 14px; border-radius:8px; border:2px solid #e0e0e0; box-sizing:border-box; font-size:1em; font-family:'Fredoka',sans-serif; transition:.2s; }
.battle-input:focus { border-color:#0073aa; outline:none; }
.battle-btn { width:100%; padding:13px; border:none; border-radius:10px; cursor:pointer; font-weight:700; color:#fff; font-size:1.05em; transition:.2s; font-family:'Fredoka',sans-serif; background:linear-gradient(135deg,#0073aa,#004d80); }
.battle-btn:hover { opacity:.9; transform:translateY(-1px); }
.battle-error   { background:#fdecea; color:#c0392b; padding:10px 14px; border-radius:8px; margin-bottom:15px; font-size:.9em; }
.battle-success { background:#d4edda; color:#155724; padding:10px 14px; border-radius:8px; margin-bottom:15px; font-size:.9em; }
.battle-sep  { text-align:center; color:#aaa; margin:15px 0; font-size:.85em; }
.battle-link { display:block; text-align:center; margin-top:15px; color:#0073aa; font-size:.88em; }
.battle-btn-copy { background:#0073aa; color:#fff; border:none; padding:7px 14px; border-radius:8px; cursor:pointer; font-size:.8em; font-weight:700; font-family:'Fredoka',sans-serif; transition:.2s; }
.battle-btn-copy:hover { background:#005177; }
.battle-toast { position:fixed; bottom:25px; left:50%; transform:translateX(-50%); background:#333; color:#fff; padding:10px 22px; border-radius:25px; font-size:.9em; font-weight:600; opacity:0; transition:opacity .3s; z-index:9999; pointer-events:none; font-family:'Fredoka',sans-serif; }
.battle-toast.show { opacity:1; }
label { display:block; margin-bottom:3px; font-weight:600; color:#333; font-size:.92em; }