/* Cavalobetti (joquei.js): pista, cavalos e moeda do ulgerb/Horse-race (Boost Software License 1.0), com moldura Vista */
.joq-placar{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin:0 0 14px}
.joq-lcd{border:1px solid #2d4a5c;border-radius:6px;padding:7px 10px;background:linear-gradient(#1c2a33,#0b1419);box-shadow:inset 0 1px 0 #ffffff30,inset 0 0 14px #000a,0 2px 5px #0003;color:#9df07a;font:12px 'Segoe UI',Tahoma,sans-serif;text-align:center}
.joq-lcd small{display:block;font-size:10px;letter-spacing:1.5px;color:#7fb5cc}
.joq-lcd b{display:block;font:700 24px/1.2 'Lucida Console',monospace;text-shadow:0 0 8px #6cff3a88}
.joq-lcd b img{width:22px;height:22px;vertical-align:-3px}

/* palco fixo de 1000×560, escalado para caber na janela */
.joq-pista-wrap{position:relative;width:100%;aspect-ratio:1000/560;border:3px solid #3a2a12;border-radius:8px;overflow:hidden;box-shadow:0 0 0 1px #fff8,0 6px 14px #0006}
.joq-pista{position:absolute;left:0;top:0;width:1000px;height:560px;transform-origin:0 0;overflow:hidden;background:linear-gradient(0deg,#4b3000,#b66400 60%,#7a4300);font-family:'Segoe UI',Tahoma,sans-serif}
.joq-mundo{position:absolute;left:0;top:0;height:560px;will-change:transform}
.joq-grama{position:absolute;left:0;top:0;height:120px;background:linear-gradient(#0b6e00,#085d00);box-shadow:inset 0 -6px 10px #0005}
.joq-arquibancada{position:absolute;top:8px;height:70px;border-radius:6px 6px 0 0;background:repeating-linear-gradient(90deg,#d9e9f5 0 14px,#b9cfe0 14px 16px);border:2px solid #fff;box-shadow:0 4px 0 #6b8aa0;opacity:.92}
.joq-arquibancada::before{content:"";position:absolute;left:0;right:0;top:-10px;height:12px;border-radius:6px 6px 0 0;background:linear-gradient(#ff8a8a,#c21d1d);border:1px solid #fff}
.joq-cerca{position:absolute;left:0;display:flex}
.joq-cerca.cima{top:118px}.joq-cerca.baixo{top:478px}
.hedge1{width:100px;height:10px;position:relative;top:20px;transform:matrix(1,0,-.2,1,0,0);background:linear-gradient(0deg,#4b2100,#9f4500,#cf5a00);box-shadow:0 20px 5px -2px #00000080}
.hedge2{width:8px;height:60px;position:relative;top:10px;margin-left:-2px;transform:matrix(1.08,0,-.2,.8,-4,0);background:linear-gradient(90deg,#4b2100,#9f4500,#cf5a00);box-shadow:0 3px 4px #000}
.joq-chegada{position:absolute;top:120px;width:14px;height:440px;background:repeating-conic-gradient(#fff 0 25%,#111 0 50%) 0 0/14px 14px;box-shadow:0 0 0 2px #fff8}
.joq-placa{position:absolute;top:84px;padding:2px 8px;font:700 13px 'Segoe UI',Tahoma,sans-serif;color:#fff;background:linear-gradient(#e53b3b,#9b0e0e);border:1px solid #fff;border-radius:4px;white-space:nowrap}
.joq-marco{position:absolute;top:96px;font:700 12px 'Lucida Console',monospace;color:#fff;text-shadow:0 1px 2px #000}
.joq-baia{position:absolute;width:40px;height:40px;background:#fff;box-shadow:0 2px 4px #0006;transition:transform .25s ease-in}
.joq-pista.largou .joq-baia{transform:scaleY(0)}

/* cavalos: SVG original, cores do Horse-race */
.joq-cavalo{position:absolute;left:0;width:50px;height:50px}
.joq-cavalo svg{width:250%;height:250%;transform:scale(-1,1)}
.joq-cavalo span{position:absolute;font-size:11px;font-weight:700;color:#fff;text-shadow:0 1px 3px #000,0 0 6px #000;transform:translate(70px,-12px);margin-top:55px;white-space:nowrap;z-index:1}
.joq-cavalo span i{font-style:normal;display:inline-block;min-width:15px;margin-right:3px;border-radius:3px;background:linear-gradient(#fffbe0,#f1c40f);color:#3d2a00;text-shadow:none;text-align:center}
.joq-cavalo.meu span{color:#ffe46b}
.horse_hind2{fill:#7f5639;animation:horsehind2 1s infinite cubic-bezier(.68,.62,.25,1) alternate}
.horse_hind1{fill:#aa734d;transform:skew(4deg);animation:horsehind1 1s infinite cubic-bezier(.68,.12,.25,1) alternate}
.horse_front2{fill:#7f5639;animation:horsefront2 1s infinite cubic-bezier(.68,.32,.45,1) alternate}
.horse_front1{fill:#aa734d;animation:horsefront2 1s infinite cubic-bezier(.48,.62,.55,1) alternate}
.horse_tail{fill:#2e221b;animation:horsehead 1s infinite cubic-bezier(.88,.22,.45,1) alternate-reverse}
.horse_body{fill:#aa734d;animation:horsebody 1s infinite cubic-bezier(.48,.62,.55,1) alternate-reverse}
.horse_head{fill:#aa734d;animation:horsehead 1s infinite cubic-bezier(.48,.62,.55,1) alternate-reverse}
.joq-pista:not(.correndo) .joq-cavalo g{animation:none}
.joq-pista.correndo .joq-cavalo g{animation-duration:.42s}
@keyframes horsehind2{100%{transform:matrix(1,.88,-.9,.32,450,-510)}}
@keyframes horsehind1{100%{transform:matrix(1,.9,-.95,.3,450,-550)}}
@keyframes horsefront2{100%{transform:matrix(1,.9,-.9,.32,450,-360)}}
@keyframes horsebody{100%{transform:matrix(1.08,0,.2,1.08,-150,-35)}}
@keyframes horsehead{100%{transform:matrix(1.05,-.1,.3,1.05,-160,55)}}
.c2 path:nth-child(2){fill:#965c28}.c2 path:nth-child(1){fill:#452306}.c2 path:nth-child(4),.c2 :nth-child(5),.c2 :nth-child(3),.c2 path:nth-child(6){fill:#190d02}
.c3 path:nth-child(2){fill:#eee}.c3 path:nth-child(1){fill:#cacaca}.c3 path:nth-child(4),.c3 :nth-child(5),.c3 :nth-child(3),.c3 path:nth-child(6){fill:#a0a0a0}
.c4 path:nth-child(2){fill:#d5552e}.c4 path:nth-child(1){fill:#922200}.c4 path:nth-child(4),.c4 :nth-child(5),.c4 :nth-child(3),.c4 path:nth-child(6){fill:#6b1900}
.c5 path:nth-child(2){fill:#d2944d}.c5 path:nth-child(1){fill:#854801}.c5 path:nth-child(4),.c5 :nth-child(5),.c5 :nth-child(3),.c5 path:nth-child(6){fill:#5e3200}
.c6 path:nth-child(2){fill:#d24d90c9}.c6 path:nth-child(1){fill:#85014a}.c6 path:nth-child(4),.c6 :nth-child(5),.c6 :nth-child(3),.c6 path:nth-child(6){fill:#5e002d}

/* faixa do vencedor por cima da pista */
.joq-faixa{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) rotate(-4deg);padding:14px 34px;border:3px solid #fff;border-radius:12px;background:linear-gradient(#fff6b0,#f3c11b 48%,#d99a00 52%,#ffe36a);box-shadow:0 0 0 4px #b46a00,0 10px 30px #000a;color:#4a2a00;font:900 40px/1.1 'Segoe UI',Tahoma,sans-serif;text-align:center;text-shadow:0 2px 0 #fff8;animation:joq-pisca .5s steps(2) 6;z-index:5}
.joq-faixa small{display:block;font-size:18px;font-weight:700}
@keyframes joq-pisca{50%{filter:brightness(1.4)}}

.joq-acoes{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 4px;font-size:13px}
.joq-acoes button img,.joq-aposta button img,.joq-entrar img{width:16px;height:16px;vertical-align:-3px;margin-right:5px}
.joq-h3{margin:18px 0 8px;font:700 16px 'Segoe UI',Tahoma,sans-serif;color:#1a5379}
.joq-cavalos{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.joq-cavalos li{position:relative;display:flex;gap:6px;align-items:center;padding:6px 8px 6px 4px;border:1px solid #8fb4c9;border-radius:6px;background:linear-gradient(#fdfeff,#e2f0f8);box-shadow:inset 0 1px 0 #fff;cursor:pointer;font:12px 'Segoe UI',Tahoma,sans-serif;color:#1d4258;transition:box-shadow .15s}
.joq-cavalos li:hover{border-color:#3c9ad6;background:linear-gradient(#f6fcff,#cfeafc)}
.joq-cavalos li.sel{border-color:#2a7fc0;background:linear-gradient(#e9f7ff,#b8e0fb);box-shadow:0 0 0 2px #7fc7f5,inset 0 1px 0 #fff}
.joq-cavalos .mini{flex:none;width:46px;height:40px;overflow:hidden;border-radius:4px;background:linear-gradient(#0b6e00 0 30%,#b66400 30%)}
.joq-cavalos .mini svg{width:54px;height:54px;margin:-6px 0 0 -4px;transform:scale(-1,1)}
.joq-cavalos b{display:block;font-size:13px;color:#0f4f78}
.joq-cavalos em{font-style:normal;color:#4b6b7f}
.joq-cavalos .paga{display:inline-block;margin-top:2px;padding:0 5px;border-radius:3px;background:linear-gradient(#e9ffd8,#9be06b);border:1px solid #5aa632;color:#245c0b;font-weight:700}
.joq-cavalos .meu-aposta{position:absolute;right:5px;top:4px;font-weight:700;color:#a35a00}
.joq-aposta{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0;padding:10px 12px;border:1px solid #8fb4c9;border-radius:6px;background:linear-gradient(#fffef3,#fdf1c4);font-size:13px}
.joq-aposta input{width:110px;padding:6px 8px;border:1px solid #7a9bb0;border-radius:3px;font:700 15px 'Segoe UI',Tahoma,sans-serif;box-shadow:inset 0 1px 2px #0002}
.joq-rapidos{display:inline-flex;gap:4px}
.fresh-window .joq-rapidos button{padding:4px 9px}
.fresh-window .joq-apostar{color:#3d2a00;border-color:#b58500;background:linear-gradient(#fffbe0,#ffe066 47%,#f4b900 48%,#ffd84a);font-size:14px}
.fresh-window .joq-apostar:hover{background:linear-gradient(#fffdf0,#fff08f 47%,#ffc928 48%,#ffe680)}
.joq-entrar{margin:12px 0;padding:8px 12px;border:1px solid #c9b25b;border-radius:5px;background:#fffbe3;font-size:13px}
.joq-colunas{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:14px}
.joq-caixa{border:1px solid #8fb4c9;border-radius:6px;background:linear-gradient(#fdfeff,#eef6fb);padding:10px 12px;font:13px 'Segoe UI',Tahoma,sans-serif;color:#1d4258;min-width:0}
.joq-caixa h3{margin:4px 0 8px;font-size:14px;color:#1a5379}
.joq-caixa h3 img{width:20px;height:20px;vertical-align:-5px;margin-right:5px}
.joq-tabela{width:100%;border-collapse:collapse;font-size:12px}
.joq-tabela th{text-align:left;font-weight:600;padding:3px 6px;border-bottom:1px solid #9fc0d3;background:linear-gradient(#fff,#e3eef5);color:#2b5570}
.joq-tabela td{padding:3px 6px;border-bottom:1px solid #e1ecf3;overflow-wrap:anywhere}
.joq-tabela tr.eu td{background:#fff6cf;font-weight:600}
.joq-tabela td:last-child{text-align:right;white-space:nowrap}
.joq-tabela img,.joq-ricos img,.joq-podio img,#joq-ganhadores img{width:14px;height:14px;vertical-align:-2px}
.joq-podio,.joq-ricos{margin:0 0 10px;padding-left:22px}
.joq-podio li:first-child{font-weight:700;color:#8a5a00}
#joq-ganhadores{margin:0 0 12px}
.joq-vazio{color:#6b8597;font-style:italic}
@media (max-width:560px){.joq-lcd b{font-size:19px}.fresh-window .joq-apostar{flex:1 1 100%}}
.joq-betti{float:right;margin:0 0 10px 16px;padding:6px 6px 4px;background:linear-gradient(#fff,#e9f3fa);border:1px solid #8fb4c9;border-radius:6px;box-shadow:0 3px 8px #18567533;transform:rotate(2deg);text-align:center}
.joq-betti img{display:block;width:110px;height:146px;object-fit:cover;object-position:50% 20%;border:1px solid #6a8ea3}
.joq-betti figcaption{margin-top:4px;font:italic 600 11px/1.25 'Segoe UI',Tahoma,sans-serif;color:#1a5379}
.joq-faixa img{display:block;width:64px;height:64px;margin:0 auto 6px;border-radius:50%;border:3px solid #fff;object-fit:cover;object-position:50% 25%;box-shadow:0 2px 6px #0006}
@media (max-width:560px){.joq-betti img{width:80px;height:106px}}
