:root{--bg:#0c120e;--surface:#151e18;--surface2:#1c2820;--line:#29392d;--green:#8bea64;--green2:#4fbd5a;--white:#f3f7f3;--muted:#9aa99e;--red:#e4b66a}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 60% -15%,#24442c 0,transparent 38%),var(--bg);color:var(--white);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif}a{color:inherit;text-decoration:none}.shell{max-width:1150px;margin:auto;padding:24px 26px 42px}.top{display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{font-weight:900;font-size:21px;letter-spacing:.05em;display:flex;align-items:center;gap:9px}.brand span{color:var(--green)}.brand small{font-size:9px;color:#91a293;border:1px solid #304033;padding:4px 6px;border-radius:5px;margin-left:4px;letter-spacing:.1em}.logo{display:grid;place-items:center;width:34px;height:34px;background:var(--green);color:#122016!important;border-radius:10px}.top-right{display:flex;align-items:center;gap:13px}.status{font-size:10px;letter-spacing:.09em;color:#b9c8bc}.status i{display:inline-block;width:7px;height:7px;background:var(--green);border-radius:50%;margin-right:7px}.btn{padding:10px 13px;border-radius:10px;font-size:12px;font-weight:700}.ghost{border:1px solid var(--line);background:transparent;color:var(--white)}.hero{padding:64px 0 35px;max-width:730px}.kicker,.label{font-size:10px;letter-spacing:.13em;font-weight:800;color:var(--green)}.spark{font-size:18px;margin-right:5px}.hero h1{font-size:clamp(35px,5vw,58px);line-height:1.07;letter-spacing:-.045em;margin:18px 0 15px}.hero h1 em{color:var(--green);font-style:normal}.hero p{color:var(--muted);font-size:15px;line-height:1.65;max-width:600px}.notice{display:flex;flex-direction:column;gap:6px;padding:16px 18px;background:#2c2416;border:1px solid #72562b;border-radius:14px;margin:0 0 24px;color:#e8d4a4;font-size:13px;line-height:1.5}.notice strong{font-size:14px}.modes{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:15px}.mode{position:relative;display:flex;flex-direction:column;gap:8px;padding:17px;background:var(--surface);border:1px solid var(--line);border-radius:15px;cursor:pointer;transition:.2s}.mode:hover{transform:translateY(-2px);border-color:#5b8659}.mode.active{background:linear-gradient(145deg,#203127,#17221a);border-color:var(--green);box-shadow:0 0 0 1px #8bea6420}.mode input{position:absolute;opacity:0;pointer-events:none}.mode .ico{font-size:23px}.mode b{font-size:14px}.mode small{color:var(--muted);font-size:11px;line-height:1.5}.generator{padding:22px 24px 19px;background:linear-gradient(140deg,#17241b,#131a15);border:1px solid #324536;border-radius:18px}.gen-head{display:flex;justify-content:space-between;align-items:center}.balls{min-height:95px;display:flex;justify-content:center;align-items:center;gap:clamp(5px,1.5vw,15px);flex-wrap:wrap;padding:15px 0}.empty{color:#66766a;font-size:13px}.ball{display:flex;align-items:center;justify-content:center;width:clamp(42px,6vw,64px);height:clamp(42px,6vw,64px);border-radius:50%;background:radial-gradient(circle at 30% 22%,#d4ffb8,#91ed6a 40%,#4eae42 78%);color:#102016;box-shadow:0 5px 20px #74d74b27,inset 0 1px 2px #ffffff8a;font-size:clamp(15px,2vw,20px);font-weight:900;opacity:0;transform:scale(.5)}.ball.reveal{animation:pop .45s cubic-bezier(.2,.8,.2,1) forwards}.ball:not(.reveal){animation:pop .4s ease forwards}.draw{display:flex;align-items:center;justify-content:center;gap:13px;width:100%;border:0;border-radius:12px;background:var(--green);color:#102015;font-size:13px;font-weight:900;letter-spacing:.05em;padding:16px;cursor:pointer;box-shadow:0 9px 22px #5cc44a25}.draw:hover{filter:brightness(1.07)}.arrow{margin-left:auto}.copy{display:block;margin:11px auto 0;background:none;border:1px solid #324536;color:#bdc9bf;border-radius:9px;padding:9px 15px;font-size:12px;cursor:pointer}.copy:disabled{opacity:.45;cursor:not-allowed}.error{color:#ffbf99;text-align:center;margin:8px 0}.stats-section{padding-top:48px}.section-title,.chart-title{display:flex;align-items:center;justify-content:space-between;gap:20px}.section-title h2{font-size:27px;margin:8px 0 0;letter-spacing:-.025em}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.metrics>div{padding:17px;background:var(--surface);border:1px solid var(--line);border-radius:13px}.metrics small{display:block;color:var(--muted);font-size:11px}.metrics strong{display:block;font-size:24px;margin-top:9px}.chart-card,.rank-card,.full-ranking{background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:18px;margin-bottom:14px}.chart-title h3,.rank-card h3{font-size:16px;margin:0}.chart-title p,.sub{color:var(--muted);font-size:11px;margin:5px 0 0}.chart-actions{display:flex;gap:5px}.toggle{background:#1d2a21;border:1px solid #304233;color:#9eafa2;padding:7px 10px;border-radius:7px;font-size:10px;cursor:pointer}.toggle.active{background:#25412a;color:var(--green);border-color:#5e9b5c}.chart{height:205px;display:flex;align-items:flex-end;gap:2px;padding:14px 2px 0;overflow-x:auto;overflow-y:hidden}.chart-column{min-width:12px;flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px}.chart-bar{width:100%;min-height:2px;background:linear-gradient(0deg,#45a953,#9ce876);border-radius:4px 4px 0 0;transition:height .3s;max-width:18px}.chart-column span{font-size:9px;color:#a5b5a8}.chart-column small{font-size:8px;color:#68786b}.rank-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.rank-card ol{list-style:none;padding:0;margin:16px 0 0;display:flex;flex-direction:column;gap:9px}.rank-card li{display:flex;align-items:center;gap:9px;font-size:12px}.num{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#294c2d;color:var(--green);font-weight:800;font-size:11px}.num.late{background:#3b3020;color:#e4b66a}.bar{height:6px;flex:1;background:#26352a;border-radius:5px;overflow:hidden}.bar i{display:block;height:100%;background:linear-gradient(90deg,#4aab51,#9be66c);border-radius:5px}.rank-card li strong{width:42px;text-align:right;font-size:12px}.rank-card:nth-child(2) .bar i{background:linear-gradient(90deg,#a17a3c,#e8c26b)}.table-wrap{max-height:510px;overflow:auto;margin-top:15px}table{width:100%;border-collapse:collapse;font-size:12px}th,td{padding:9px 12px;text-align:left;border-bottom:1px solid #29372d}th{position:sticky;top:0;background:#1b271e;color:#a9b9ad;font-size:10px;letter-spacing:.07em;text-transform:uppercase}.table-ball{display:inline-grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#24472b;color:#a1ee78;font-weight:800}.footnote{color:var(--muted);font-size:11px;line-height:1.65;padding:14px 4px}footer{text-align:center;border-top:1px solid var(--line);padding-top:19px;color:#7d8d80;font-size:11px}footer span{color:#b4c2b6}.import-result{max-width:640px;margin:70px auto 30px;padding:35px;background:var(--surface);border:1px solid var(--line);border-radius:18px;text-align:center}.result-icon{display:grid;place-items:center;width:55px;height:55px;margin:0 auto 17px;background:#23412a;color:var(--green);font-size:24px;border-radius:50%}.import-result h1{font-size:28px}.import-result p{color:#b7c5ba;font-size:14px;line-height:1.65}.import-result .source{font-size:11px;color:#829487}.import-result .draw,.import-result .copy{margin-top:14px}.import-result .copy{display:block}.update-page{max-width:800px;margin:auto}@keyframes pop{to{opacity:1;transform:scale(1)}}@media(max-width:760px){.shell{padding:17px 14px 30px}.top{align-items:flex-start}.top-right{align-items:flex-end;flex-direction:column;gap:7px}.status{font-size:9px}.brand{font-size:17px}.brand small{display:none}.hero{padding:43px 0 24px}.modes{grid-template-columns:1fr}.mode{padding:13px;display:grid;grid-template-columns:32px 1fr;gap:4px 10px}.mode .ico{grid-row:span 2}.mode small{grid-column:2}.generator{padding:17px 14px}.gen-head .label:last-child{font-size:9px}.metrics{grid-template-columns:repeat(2,1fr)}.section-title{align-items:flex-start}.section-title h2{font-size:23px}.rank-grid{grid-template-columns:1fr}.chart-card,.rank-card,.full-ranking{padding:14px}.chart-title{align-items:flex-start}.chart-title h3{font-size:14px}.chart{height:175px}.chart-column{min-width:11px}.chart-column span{font-size:8px}.chart-column small{font-size:7px}.table-wrap{max-height:420px}.notice{font-size:12px}.import-result{margin:35px 0;padding:22px 17px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Ranking ordenado */
.rank-position{display:inline-block;min-width:43px;color:var(--green);font-weight:900;font-variant-numeric:tabular-nums}
/* City chart and illustrative map */
.cities-section,.quiz-section{margin-top:16px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:15px}
.demo-badge{padding:6px 9px;border:1px solid #72562b;border-radius:999px;color:#e4c17b;font-size:9px;font-weight:800;letter-spacing:.08em;white-space:nowrap}
.city-disclaimer{padding:11px 13px;background:#2c2416;border:1px solid #72562b;border-radius:10px;color:#e3d2ad;font-size:11px;line-height:1.55}
.city-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center}.city-chart{display:flex;flex-direction:column;gap:13px;padding:10px 4px}.city-row{display:grid;grid-template-columns:24px minmax(100px,145px) 1fr 28px;gap:9px;align-items:center;font-size:11px}.city-place{color:var(--green);font-weight:800}.city-name{color:#dce6de}.city-bar{height:8px;border-radius:8px;background:#26352a;overflow:hidden}.city-bar i{display:block;height:100%;background:linear-gradient(90deg,#45a953,#9ce876);border-radius:inherit}.city-row strong{text-align:right}.map-card{padding:13px;background:#111b14;border:1px solid var(--line);border-radius:12px}.map-heading{display:flex;justify-content:space-between;gap:8px;font-size:11px}.map-heading small,.map-note{color:var(--muted);font-size:9px}.brazil-map{position:relative;width:min(100%,300px);height:300px;margin:5px auto}.brazil-map svg{width:100%;height:100%}.brazil-shape{fill:#203b29;stroke:#5c8855;stroke-width:2}.city-pin{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);display:flex;align-items:center;gap:4px;padding:3px 5px;background:#0e1710eF;border:1px solid #648c52;border-radius:15px;color:var(--green);font-size:9px;white-space:nowrap;box-shadow:0 2px 10px #0008}.city-pin b{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--green);color:#112016}.city-pin small{font-size:8px;color:#e3eee4}.map-note{text-align:center;margin-bottom:0}
/* Quiz */
.quiz-section{margin-top:18px;padding:24px}.quiz-intro h2{margin:7px 0;font-size:27px}.quiz-intro p{margin:0 0 18px;color:var(--muted);font-size:12px}.quiz-card{padding:18px;background:#111b14;border:1px solid var(--line);border-radius:13px}.quiz-top{display:flex;justify-content:space-between;color:#c4d0c6;font-size:11px}.quiz-progress{height:6px;margin:12px 0 18px;border-radius:6px;background:#29372d;overflow:hidden}.quiz-progress i{display:block;height:100%;width:0;background:var(--green);transition:width .25s}.quiz-card h3{font-size:17px;line-height:1.5;margin:0 0 15px}.quiz-options{display:grid;gap:8px}.quiz-option{width:100%;padding:12px 13px;text-align:left;border:1px solid #304233;border-radius:9px;background:#19251c;color:var(--white);font-size:12px;cursor:pointer}.quiz-option:hover,.quiz-option.selected{border-color:#8bea64;background:#203127}.quiz-option.correct{border-color:#4fbd5a;background:#173920;color:#b5f4a0}.quiz-option.incorrect{border-color:#e35b5b;background:#3b2020;color:#ffbaba}.quiz-option:disabled{cursor:default}.quiz-next{margin-top:14px}.quiz-next:disabled{opacity:.48;cursor:not-allowed}.quiz-feedback{margin-top:11px;padding:10px 12px;border-radius:8px;font-size:12px}.quiz-feedback.is-correct{color:#b5f4a0;background:#173920}.quiz-feedback.is-wrong{color:#ffbaba;background:#3b2020}.quiz-result{text-align:center;padding:20px}.quiz-result h3{margin:8px 0;font-size:23px}.quiz-result p{color:var(--green)}.quiz-result strong{display:block;font-size:17px}.result-trophy{color:var(--green);font-size:30px}.quiz-restart{color:var(--green)}
@media(max-width:720px){.city-layout{grid-template-columns:1fr}.city-row{grid-template-columns:22px 120px 1fr 25px}.cities-section,.quiz-section{padding:15px}.brazil-map{height:260px;width:min(100%,260px)}.demo-badge{font-size:8px}}
