:root{--green:#174A3A;--green2:#0f3328;--accent:#1fa36a;--accent2:#128a56;--bg:#fff;--soft:#f1f6f3;--line:#dde8e2;--ink:#12302a;--mute:#6b8179;--win:#1fa36a;--lose:#c0463f}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
[hidden]{display:none!important}
body{font-family:'Jost',system-ui,sans-serif;font-size:14px;line-height:1.35;background:var(--bg);color:var(--ink);min-height:100vh;padding-bottom:66px}
body.dark{background:radial-gradient(circle at 20% 0,#1f6a53 0,var(--green) 45%,var(--green2) 100%);padding-bottom:0}
body.lock{overflow:hidden}
a{color:inherit}
img{display:block}
.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ic.sm{width:16px;height:16px;opacity:.45}
.ic.big{width:44px;height:44px;opacity:.9;stroke-width:1.6}

/* Logo & auth */
.logo{font-weight:700;font-size:48px;letter-spacing:-5px;line-height:1;padding-right:5px;color:var(--green)}
.logo.sm{font-size:22px;letter-spacing:-2.5px;padding-right:3px}
.logo-img{height:26px;width:auto}
.auth{min-height:100vh;display:grid;place-items:center;padding:20px}
.card{width:100%;max-width:380px;background:#fff;color:var(--green);border-radius:20px;padding:30px 24px;box-shadow:0 25px 60px rgba(0,0,0,.35);text-align:center}
.card h1{font-size:20px;letter-spacing:.3em;font-weight:700;margin-top:6px}
.sub{color:var(--mute);margin:6px 0 18px}
form{display:flex;flex-direction:column;gap:10px}
input[type=text],input[type=email],input[type=password],input[type=number],input:not([type]){width:100%;padding:12px 14px;border-radius:10px;border:1.5px solid var(--line);background:#fff;font:inherit;color:var(--ink);outline:none;transition:border-color .2s,box-shadow .2s}
input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(31,163,106,.18)}
.btn{display:flex;align-items:center;justify-content:center;gap:10px;padding:12px;border-radius:10px;border:0;background:var(--green);color:#fff;font:600 15px 'Jost',sans-serif;cursor:pointer;text-decoration:none;transition:background .2s,transform .08s}
.btn:hover{background:var(--green2)}
.btn:active{transform:scale(.98)}
.btn:disabled{opacity:.6}
.btn.ghost{background:#fff;color:var(--green);border:1.5px solid var(--line)}
.btn.ghost:hover{background:var(--soft)}
.btn.sm{padding:9px 14px;font-size:13px}
.g{font-size:17px}
.or{display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--mute);font-size:13px}
.or:before,.or:after{content:"";flex:1;height:1px;background:var(--line)}
.alt{margin-top:12px;font-size:14px}.alt a{font-weight:600}
.alert{background:#fdeaea;color:#8a1f1f;padding:9px 12px;border-radius:10px;margin-bottom:14px;font-size:13px}

/* Header */
.top{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:6px;height:52px;padding:0 10px;background:#fff;border-bottom:1px solid var(--line)}
.ibtn{background:none;border:0;color:var(--green);width:38px;height:38px;display:grid;place-items:center;border-radius:10px;cursor:pointer;transition:background .15s}
.ibtn:active{background:var(--soft)}
.ibtn.light{color:#fff}
.brand{display:flex;align-items:center;gap:6px;text-decoration:none;color:var(--green);font-weight:700;letter-spacing:.14em;font-size:13px}
.who{margin-left:auto;display:flex;align-items:center;gap:6px}
.bal{background:var(--soft);color:var(--green);border:1px solid var(--line);padding:5px 10px;border-radius:99px;font-weight:700;font-size:12.5px;white-space:nowrap}
.btn-sm{background:var(--accent);color:#fff;padding:7px 12px;border-radius:8px;text-decoration:none;font-weight:600;font-size:13px;white-space:nowrap}
.btn-sm.dk{background:var(--green)}
.flash{background:var(--green);color:#fff;text-align:center;padding:8px 12px;font-size:13px}

/* Contenu */
.wrap{max-width:820px;margin:0 auto;padding:10px 10px 24px}
.hero{display:flex;justify-content:space-between;align-items:center;gap:10px;background:linear-gradient(120deg,var(--green),#1f7a5a);color:#fff;border-radius:12px;padding:12px 16px;margin-bottom:10px}
.hero h1{font-size:17px;font-weight:700}
.hero p{font-size:12px;opacity:.85}
.ttl{margin:16px 0 8px;font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--green)}
.empty{background:var(--soft);border:1px dashed var(--line);border-radius:12px;padding:18px;text-align:center;color:var(--mute)}
.empty a{font-weight:600;color:var(--green)}
.note{margin-top:12px;font-size:12px;color:var(--mute);text-align:center}

.chips{position:sticky;top:52px;z-index:15;display:flex;gap:6px;overflow-x:auto;margin:0 -10px 8px;padding:6px 10px;background:#fff;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.chips::-webkit-scrollbar{display:none}
.chips a{white-space:nowrap;padding:6px 12px;border-radius:99px;border:1px solid var(--line);background:#fff;text-decoration:none;font-weight:500;font-size:12.5px;transition:background .15s,color .15s}
.chips a.on{background:var(--green);color:#fff;border-color:var(--green)}

.league{border:1px solid var(--line);border-radius:12px;margin-bottom:10px;overflow:hidden;content-visibility:auto;contain-intrinsic-size:auto 240px}
.league h2{display:flex;align-items:center;gap:8px;background:var(--soft);color:var(--green);padding:8px 12px;font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:700}
.em{width:16px;height:16px;object-fit:contain;flex:none}
.mrow{padding:10px 12px;border-top:1px solid var(--line)}
.mhead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.teams2{display:flex;flex-direction:column;gap:3px;min-width:0}
.tm{display:flex;align-items:center;gap:8px;min-width:0}
.tm b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cr{width:18px;height:18px;object-fit:contain;flex:none}
.cr.ph{display:grid;place-items:center;border-radius:50%;background:var(--soft);color:var(--green);font-size:10px;font-weight:700}
.mt{text-align:right;flex:none}
.mt .d{display:block;font-size:11px;color:var(--mute);text-transform:capitalize}
.mt .h{display:block;font-weight:700;font-size:14px;color:var(--green)}
.odds3{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}
.odd{display:flex;align-items:stretch;height:34px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff;cursor:pointer;padding:0;font:inherit;transition:transform .08s,box-shadow .15s,border-color .15s}
.odd:active{transform:scale(.96)}
.ol{flex:1;display:grid;place-items:center;font-weight:700;font-size:13px;color:var(--green)}
.ov{min-width:56%;display:grid;place-items:center;background:var(--green);color:#fff;font-weight:700;font-size:13px;font-style:normal}
.odd.on{border-color:var(--accent);box-shadow:0 0 0 2px rgba(31,163,106,.25)}
.odd.on .ol{background:var(--accent);color:#fff}
.odd.on .ov{background:var(--accent2)}
.more{display:block;margin:10px auto 4px;padding:9px 22px;border:1px solid var(--green);border-radius:99px;background:#fff;color:var(--green);font:600 13px 'Jost',sans-serif;cursor:pointer}
.more:active{background:var(--soft)}
@media(min-width:720px){
  .mrow{display:grid;grid-template-columns:1fr 270px;align-items:center;gap:14px}
  .odds3{margin-top:0}
}

/* Live */
.lrow{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:8px}
.lt{font-size:11.5px;color:var(--mute);margin-bottom:6px;display:flex;align-items:center;gap:6px}
.lm{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center}
.tl2{display:flex;align-items:center;gap:6px;min-width:0}
.tl2 b{font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tl2.r{justify-content:flex-end;text-align:right}
.sc{background:var(--green);color:#fff;padding:3px 10px;border-radius:7px;font-size:15px}
.pulse{width:8px;height:8px;border-radius:50%;background:#d33;display:inline-block;animation:p 1.2s infinite}
@keyframes p{50%{opacity:.25}}

/* Mes paris */
.tk{background:#fff;border:1px solid var(--line);border-left:4px solid var(--green);border-radius:12px;padding:10px 12px;margin-bottom:10px}
.tk.won{border-left-color:var(--win)}.tk.lost{border-left-color:var(--lose)}
.tk-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font-weight:600}
.tag{padding:2px 9px;border-radius:99px;font-size:11.5px;background:var(--soft);color:var(--green)}
.tag.won{background:var(--win);color:#fff}.tag.lost{background:var(--lose);color:#fff}
.it{display:grid;grid-template-columns:1fr auto 10px;gap:10px;align-items:center;padding:7px 0;border-top:1px solid var(--line);font-size:13.5px}
.it small{display:block;color:var(--mute)}
.dot{width:9px;height:9px;border-radius:50%;background:#cbd8d1}
.dot.won{background:var(--win)}.dot.lost{background:var(--lose)}
.tk-f{display:flex;justify-content:space-between;gap:8px;padding-top:8px;border-top:1px solid var(--line);font-size:13px;flex-wrap:wrap}
.tk-f b{margin-left:3px}

/* Ticket */
.tk-fab{position:fixed;left:50%;transform:translateX(-50%);bottom:66px;z-index:30;display:flex;gap:6px;align-items:center;background:var(--accent);color:#fff;padding:10px 20px;border:0;border-radius:99px;font:600 14px 'Jost',sans-serif;box-shadow:0 8px 22px rgba(18,138,86,.45);cursor:pointer;animation:pop .25s ease}
@keyframes pop{from{transform:translateX(-50%) scale(.85);opacity:0}}
.sheet{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:40;display:flex;align-items:flex-end;justify-content:center}
.sheet-in{background:#fff;width:100%;max-width:520px;max-height:88vh;overflow:auto;border-radius:18px 18px 0 0;padding:16px 14px 20px;animation:up .25s ease}
@keyframes up{from{transform:translateY(40px);opacity:.4}}
.sheet-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.sheet-h h3{font-size:16px;color:var(--green)}
.x{background:none;border:0;color:var(--ink);cursor:pointer;padding:4px 8px;font-size:16px;display:grid;place-items:center}
.tk-it{display:flex;justify-content:space-between;align-items:center;gap:8px;background:var(--soft);border-radius:10px;padding:8px 12px;margin-bottom:6px;font-size:13.5px}
.tk-it small{display:block;color:var(--mute)}
.tk-stake{margin:10px 0}
.quick{display:flex;gap:6px;margin-top:6px}
.quick button{flex:1;padding:7px;border-radius:8px;border:1px solid var(--line);background:#fff;font:inherit;font-size:13px;cursor:pointer}
.tk-sum{display:flex;justify-content:space-between;padding:5px 2px;font-size:15px}
.tk-msg{color:#8a1f1f;min-height:18px;margin:4px 0;font-size:13px}

/* Navigation basse */
.bottom{position:fixed;left:0;right:0;bottom:0;z-index:25;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(3,1fr);padding:4px 0 max(4px,env(safe-area-inset-bottom))}
.bottom a{display:flex;flex-direction:column;align-items:center;gap:1px;text-decoration:none;font-size:11px;font-weight:500;color:var(--mute);padding:4px}
.bottom a.on{color:var(--accent);font-weight:700}

/* Menu latéral */
.dr-ov{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:59;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s}
.dr-ov.show{opacity:1;visibility:visible}
.drawer{position:fixed;top:0;bottom:0;left:0;width:84%;max-width:320px;background:#fff;z-index:60;transform:translateX(-102%);transition:transform .28s cubic-bezier(.2,.8,.2,1);overflow-y:auto;display:flex;flex-direction:column;box-shadow:6px 0 30px rgba(0,0,0,.2)}
.drawer.open{transform:none}
.dr-top{display:flex;justify-content:space-between;align-items:center;background:var(--green);color:#fff;padding:8px 8px 8px 14px}
.dr-brand{display:flex;align-items:center;gap:6px;font-weight:700;letter-spacing:.14em;font-size:13px}
.dr-brand .logo{color:#fff}
.dr-acc{display:flex;gap:8px;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line)}
.dr-acc b{display:block;font-size:14px}
.dr-acc small{color:var(--mute)}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 14px}
.tile{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 6px;border-radius:12px;background:var(--soft);color:var(--green);text-decoration:none;font-weight:600;font-size:12.5px;transition:transform .1s}
.tile:active{transform:scale(.96)}
.tile.on{background:var(--accent);color:#fff}
.tile .ic{width:24px;height:24px}
.dr-h{padding:8px 14px 4px;font-size:11px;letter-spacing:.1em;color:var(--mute);text-transform:uppercase;font-weight:700}
.dr-link{display:flex;align-items:center;gap:10px;padding:11px 14px;border-top:1px solid var(--line);text-decoration:none;font-size:14px}
.dr-link span{flex:1}
.dr-link:active{background:var(--soft)}
.dr-out{margin-top:auto;padding:12px 14px;border-top:1px solid var(--line)}
.dr-out button{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--lose);font:600 14px 'Jost',sans-serif;cursor:pointer}

/* Admin */
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-bottom:12px}
.stats div{background:var(--soft);border-radius:12px;padding:12px;display:flex;flex-direction:column}
.stats b{font-size:20px;color:var(--green)}
.stats span{font-size:12px;color:var(--mute)}
.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:8px}
.panel p{margin-bottom:8px;font-size:13px}
.arow{display:flex;flex-direction:column;gap:6px}
.ainfo small{display:block;color:var(--mute)}
.ainp{flex-direction:row;align-items:center}
.ainp input{padding:8px;min-width:0}
.lnk{background:none;border:0;color:var(--green);text-decoration:underline;cursor:pointer;font:inherit;font-size:12.5px;text-align:left}
