*{box-sizing:border-box}
:root{--blue:#163f68;--blue2:#235b8d;--green:#2f8f57;--red:#c94747;--gold:#c59a3b;--yellow:#ffba1f;--line:#dfe4e8;--text:#24313d;--muted:#697680;--bg:#f4f6f7}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:"Trebuchet MS",Arial,sans-serif}
body{min-height:100vh}
button,input{font:inherit}
a{text-decoration:none}
.topbar{min-height:72px;background:var(--yellow);border-bottom:1px solid #d99a08;display:flex;align-items:center;gap:18px;padding:8px 22px;position:sticky;top:0;z-index:20}
.brand{display:flex;align-items:center;gap:10px;color:#173e62;min-width:230px}
.brand-logo{width:42px;height:42px;object-fit:contain}
.brand strong{display:block;font-size:16px;letter-spacing:.3px}
.brand small{display:block;color:#5d4610;font-size:10px;margin-top:2px}
.next-game{margin-left:auto;display:flex;align-items:center;gap:9px;color:#5d4610;font-size:11px}
.next-game span{font-weight:700}
.next-game strong{font-size:19px;color:#173e62}
.next-game small{font-size:10px;color:#5d4610;font-weight:700;white-space:nowrap}
.next-game b{background:#fff;border-radius:6px;padding:6px 9px;color:#173e62;min-width:60px;text-align:center}
.whatsapp-btn{background:#fff;color:#173e62;border:1px solid rgba(79,54,0,.28);border-radius:6px;padding:9px 12px;font-weight:700;font-size:12px}
.wrap{max-width:1220px;margin:18px auto;padding:0 16px}
.banner-area{width:100%;height:260px;overflow:hidden;border-radius:10px;background:#172f48;position:relative;border:1px solid #cbd5db}
.banner-track{height:100%;display:flex;transition:transform .5s ease}
.banner{min-width:100%;height:100%;position:relative;overflow:hidden}
.banner img{width:100%;height:100%;object-fit:cover;display:block}
.banner-caption{position:absolute;left:24px;bottom:20px;background:rgba(0,0,0,.52);color:#fff;padding:9px 13px;border-radius:6px;font-size:14px}
.banner-dots{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);display:flex;gap:5px}
.banner-dots button{width:8px;height:8px;border:0;border-radius:50%;background:#fff;opacity:.5;padding:0}
.banner-dots button.active{opacity:1}
.ticker{height:42px;margin:12px 0;display:flex;background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.ticker-label{background:var(--blue);color:#fff;display:flex;align-items:center;padding:0 14px;font-size:10px;font-weight:700;white-space:nowrap}
.ticker-window{overflow:hidden;flex:1;display:flex;align-items:center}
.ticker-track{display:flex;gap:35px;white-space:nowrap;padding-left:25px;animation:ticker 28s linear infinite}
.ticker-item{font-size:12px;color:#45535d}
.ticker-item strong{color:var(--blue)}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.status-card{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1px solid #d9e2e7;border-left:5px solid var(--green);border-radius:8px;padding:13px 16px;margin-bottom:12px}
.status-card.closed{border-left-color:var(--red)}
.status-card strong{display:block;font-size:14px}
.status-card span{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.sync{font-size:10px;color:var(--green);white-space:nowrap}
.winner-message{display:flex;align-items:center;gap:12px;background:#fffdf3;border:1px solid #e6d58e;border-left:5px solid var(--gold);padding:12px 16px;border-radius:8px;margin-bottom:12px}
.winner-icon{font-size:28px}
.winner-message small{display:block;color:#80600c;font-size:9px;font-weight:700}
.winner-message strong{display:block;color:#233441;font-size:18px}
.winner-message span{display:block;color:#697680;font-size:11px;margin-top:2px}
.info-grid{display:grid;grid-template-columns:1fr 2fr;gap:12px;margin-bottom:14px}
.info-card{background:#fff;border:1px solid var(--line);border-radius:7px;padding:12px 15px}
.info-card span{display:block;color:var(--muted);font-size:11px}
.info-card strong,.info-card b{display:block;color:#233441;margin-top:4px}
.info-card strong{font-size:19px}
.info-card b{font-size:12px}
.payment strong{font-size:14px}
.payment-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.copy-payment{border:1px solid #cbd3d8;border-radius:4px;background:#f4f6f7;color:var(--blue);padding:4px 7px;font-size:9px;font-weight:700;cursor:pointer;white-space:nowrap}
.copy-payment:hover{background:#e6edf1}
.live-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:14px;align-items:start}
.live-main{min-width:0}
.history-panel{background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden;position:sticky;top:90px}
.history-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;padding:14px 15px;border-bottom:1px solid var(--line);background:#f8fafb}
.history-head span{display:block;color:var(--blue);font-size:9px;font-weight:700}
.history-head h2{margin:3px 0 0;font-size:15px;color:#263743}
.history-head>b{background:var(--blue);color:#fff;border-radius:12px;min-width:24px;padding:4px 7px;text-align:center;font-size:10px}
.history-list{max-height:520px;overflow:auto;padding:8px}
.history-item{display:grid;grid-template-columns:58px 1fr;gap:9px;align-items:center;padding:10px 7px;border-bottom:1px solid #edf0f2}
.history-item:last-child{border-bottom:0}
.history-time{font-weight:700;color:var(--blue);font-size:12px}
.history-animal{display:flex;align-items:center;gap:7px;font-size:11px;color:#34434e}
.history-animal img{width:28px;height:28px;object-fit:contain}
.history-animal strong{display:block}
.history-animal small{display:block;color:var(--muted);font-size:9px;margin-top:2px}
.history-empty{padding:20px 10px;color:var(--muted);font-size:11px;text-align:center}
.panel{background:#fff;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 16px;border-bottom:1px solid var(--line)}
.panel-head h1{font-size:17px;margin:0 0 3px;color:#263743}
.panel-head p{margin:0;color:var(--muted);font-size:11px}
#search{width:230px;border:1px solid #cbd3d8;border-radius:5px;padding:9px 10px;outline:none}
.animal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(70px,1fr));gap:8px;padding:15px}
.animal{min-height:112px;background:#fff;border:1px solid #d5dadd;border-radius:6px;text-align:center;padding:7px;position:relative;cursor:pointer;transition:.15s}
.animal:hover{border-color:#8ea6b8;transform:translateY(-2px);box-shadow:0 5px 12px rgba(31,55,72,.12)}
.animal.count-1{background:#f1faf4;border-color:#62ae7c}
.animal.count-2{background:#fff9e8;border-color:#e3b84e}
.animal.count-3{background:#fff0f0;border-color:#d86666}
.animal.winner{outline:3px solid var(--gold);background:#fff9dc}
.animal img{width:58px;height:58px;object-fit:contain;display:block;margin:0 auto 4px}
.animal-code{font-weight:700;font-size:12px;color:#34434e}
.animal-name{font-size:10px;color:#68757e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status{display:inline-block;font-size:9px;margin-top:5px;padding:2px 5px;border-radius:3px;background:#edf2f5;color:#61707a}
.count-1 .status{background:#d8f0df;color:#237443}.count-2 .status{background:#f9e7ad;color:#80600c}.count-3 .status{background:#f5cccc;color:#a52f2f}
.official{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:14px 0 28px;background:#fff;border:1px solid var(--line);border-radius:7px;padding:15px 16px}
.official span{display:block;font-size:9px;color:var(--blue);font-weight:700}
.official strong{display:block;font-size:15px;margin-top:3px}
.official p{margin:3px 0 0;color:var(--muted);font-size:11px}
.official a{background:var(--blue);color:#fff;border-radius:5px;padding:9px 12px;font-size:11px;font-weight:700;white-space:nowrap}
.modal{position:fixed;inset:0;background:rgba(14,31,44,.55);display:flex;align-items:center;justify-content:center;padding:18px;z-index:50}
.hidden{display:none!important}
.modal-box{width:min(480px,100%);max-height:88vh;overflow:auto;background:#fff;border-radius:10px;box-shadow:0 18px 60px rgba(0,0,0,.25);position:relative}
.close{position:absolute;right:12px;top:12px;width:31px;height:31px;border:0;border-radius:50%;background:#eef2f4;color:#52616b;font-size:21px}
.modal-animal{display:flex;align-items:center;gap:12px;padding:18px;background:#f7fafb;border-bottom:1px solid var(--line)}
.modal-animal img{width:66px;height:66px;object-fit:contain}
.modal-animal strong{display:block;font-size:17px}.modal-animal span{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.modal-body{padding:16px 18px}.modal-body h2{font-size:15px;margin:0}.modal-body p{font-size:11px;color:var(--muted)}
.player{padding:10px 0;border-bottom:1px solid #edf0f2}.player:last-child{border-bottom:0}.player strong{font-size:13px}.player span{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.toast{position:fixed;right:18px;bottom:18px;background:#fff;border:1px solid #d9e2e7;border-left:4px solid var(--green);border-radius:7px;padding:12px 14px;box-shadow:0 7px 24px rgba(20,42,57,.16);font-size:12px;z-index:100}
@media(max-width:1000px){.animal-grid{grid-template-columns:repeat(auto-fit,minmax(65px,1fr))}.banner-area{height:220px}}
@media(max-width:1000px){.live-layout{grid-template-columns:1fr}.history-panel{position:static}.history-list{max-height:320px}}
@media(max-width:700px){.topbar{padding:7px 10px;gap:8px}.brand{min-width:0}.brand-logo{width:36px;height:36px}.brand strong{font-size:13px}.brand small{display:none}.next-game{gap:5px}.next-game span{display:none}.next-game strong{font-size:16px}.next-game small{font-size:9px}.next-game b{min-width:54px;padding:5px}.whatsapp-btn{padding:8px;font-size:10px}.wrap{padding:0 9px;margin:10px auto}.banner-area{height:145px;border-radius:7px}.ticker{height:38px}.ticker-label{padding:0 9px;font-size:8px}.info-grid{grid-template-columns:1fr 1fr}.panel-head{display:block}.panel-head #search{margin-top:10px;width:100%}.animal-grid{grid-template-columns:repeat(5,1fr);gap:5px;padding:10px}.animal{min-height:92px;padding:5px}.animal img{width:44px;height:44px}.animal-name{font-size:9px}.official{display:block}.official a{display:inline-block;margin-top:10px}}
@media(max-width:390px){.animal-grid{grid-template-columns:repeat(4,1fr)}.info-grid{grid-template-columns:1fr}.brand{flex:1}}
.footer{color:#ffffff18;font-size:11px;text-align:center;padding:8px 0 28px}
.site-footer{grid-column:1/-1;grid-row:3;position:relative;z-index:2;background:#1a1a1a;border-top:2px solid #2a2a2a;color:#e0e0e0;padding:28px 18px 32px;box-shadow:0 -4px 20px rgba(0,0,0,0.08)}
.footer-inner{max-width:1200px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.footer-copy{font-size:13px;color:#aaaaaa;letter-spacing:0.3px}
.footer-copy strong{color:#e8e8e8;font-weight:600}
.footer-links{display:flex;gap:18px}
.footer-links a{color:#aaaaaa;text-decoration:none;font-size:12px;transition:color 0.2s}
.footer-links a:hover{color:#ffffff}
.footer-logos{display:flex;align-items:center;gap:28px}
.footer-logos img{width:auto;height:30px;max-width:120px;object-fit:contain;filter:grayscale(1) brightness(1.8);opacity:0.7;transition:all 0.3s ease}
.footer-logos img:hover{filter:grayscale(0) brightness(1);opacity:1}
.footer-logos img:first-child{height:38px;max-width:140px;filter:grayscale(1) brightness(1.8);opacity:0.7}
.footer-logos img:first-child:hover{filter:grayscale(0) brightness(1);opacity:1}
.footer-divider{width:100%;height:1px;background:linear-gradient(to right,transparent,#3a3a3a,transparent);margin:14px 0 10px}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;width:100%;padding-top:6px;flex-wrap:wrap;gap:10px}
.footer-bottom span{font-size:11px;color:#777777}
.footer-social{display:flex;gap:14px}
.footer-social a{color:#888888;font-size:13px;transition:color 0.2s}
.footer-social a:hover{color:#ffffff}
@media(max-width:700px){.footer-inner{flex-direction:column;align-items:center;text-align:center;gap:16px}.footer-copy{width:100%;text-align:center}.footer-links{order:3;width:100%;justify-content:center;flex-wrap:wrap;gap:12px}.footer-logos{gap:18px;flex-wrap:wrap;justify-content:center}.footer-logos img{height:26px}.footer-logos img:first-child{height:34px}.footer-bottom{flex-direction:column;gap:8px}}