/* Results cards, filters and responsive layout come from the original CSS. */
/* No header: sticky result controls start at the top of the viewport. */
.rs-page{--rs-sticky-top:0px !important}
.rs-week-control{display:flex;flex-direction:column;gap:7px;min-width:220px;max-width:100%}
.rs-week-control label{font-size:13px;font-weight:700;color:#43564a}
.rs-week-select{width:100%;min-height:44px;padding:10px 36px 10px 12px;border:1px solid #cdd9d0;border-radius:8px;background:#fff;color:#162921;font:inherit;font-size:14px;cursor:pointer}
.rs-week-select:focus-visible{outline:3px solid #16805b;outline-offset:2px}
@media(max-width:640px){.rs-week-control{width:100%;min-width:0}}
.results-choice{max-width:960px;margin:0 auto;padding:clamp(32px,7vw,80px) 0 60px;color:#162921}
.results-choice h1{color:#116343;font-size:clamp(28px,4vw,40px);font-weight:800;letter-spacing:-.035em;margin:0 0 10px}
.results-choice-intro{font-size:16px;line-height:1.6;color:#58665f;margin-bottom:32px}
.results-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.results-type-card{--type-color:#16805b;--type-tint:#edf8f2;display:flex;flex-direction:column;align-items:center;text-align:center;padding:32px;border:1px solid #d9e0dc;border-top:4px solid var(--type-color);border-radius:14px;background:#fff;color:#162921;box-shadow:0 2px 4px #18382606;text-decoration:none;transition:box-shadow .2s,border-color .2s}
.results-type-caixa{--type-color:#2464a7;--type-tint:#edf4fb}
.results-type-card:hover{border-color:var(--type-color);box-shadow:0 8px 24px #18382612}
.results-type-card:focus-visible,.results-back:focus-visible{outline:3px solid #16805b;outline-offset:4px}
.results-type-mark{display:grid;place-items:center;min-width:64px;height:54px;padding:0 12px;border-radius:10px;background:var(--type-tint);color:var(--type-color);font-size:18px;font-weight:800;margin-bottom:24px}
.results-type-card h2{color:#162921;font-size:24px;line-height:1.3;font-weight:750;margin:0 0 12px;letter-spacing:-.02em}
.results-type-card p{font-size:16px;line-height:1.6;color:#65736b;margin:0 0 28px}
.results-type-action{display:flex;align-items:center;justify-content:center;min-height:46px;width:100%;padding:12px 16px;margin-top:auto;border-radius:8px;background:var(--type-color);color:#fff;font-size:14px;font-weight:750}
.results-back-wrap{max-width:1360px;margin:0 auto;padding-top:16px}
.results-back{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:650;color:#116343;text-decoration:underline;text-underline-offset:4px}
@media(max-width:640px){.results-choice-grid{grid-template-columns:1fr;gap:16px}.results-type-card{padding:24px}.results-type-card h2{font-size:22px}.results-type-mark{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.results-type-card{transition:none}}

.results-type-image{display:block;width:200px;max-width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;border-radius:10px;margin-bottom:24px}
@media(max-width:640px){.results-type-image{margin-bottom:18px}}
.caixa-page .rs-heading h1{color:#116343}
.caixa-page .rs-heading{margin-top:12px}
.caixa-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.caixa-toolbar .rs-name-search{flex:1;margin:0}
.caixa-toolbar .rs-refresh{padding:10px 16px;justify-content:center;flex-shrink:0}
.caixa-card{display:flex;flex-direction:column;height:100%}
.caixa-card .rs-card-header h2{color:#162921;font-size:18px;font-weight:750;line-height:1.25}
.caixa-mark{font-size:14px;font-weight:800;min-width:36px;justify-content:center}
.caixa-draws{padding:16px 14px}
.caixa-draw+.caixa-draw{margin-top:16px}
.caixa-ball-column{display:flex;flex-direction:column;align-items:center;gap:4px}
.caixa-ball-column small{font-size:12px;color:#65736b}
.caixa-balls{gap:6px}
.caixa-balls .rs-ball{width:34px;height:34px;font-size:16px}
.caixa-extra{margin-top:16px;font-size:14px;line-height:1.5}
.caixa-summary{padding:0 16px 16px;text-align:center;margin-top:auto}
.caixa-summary small{display:block;font-size:12px;color:#65736b;margin-top:12px}
.caixa-summary strong{display:block;color:var(--result-color);font-size:20px;font-weight:800;margin-top:3px}
.caixa-outcome{display:inline-flex;padding:4px 10px;border-radius:6px;background:var(--result-tint);color:var(--result-color);font-size:13px;font-weight:750}
.caixa-summary .caixa-updated{font-size:12px;line-height:1.5;color:#65736b;margin-top:12px}
.caixa-card .rs-choice-footer .rs-choice-button{width:100%;text-align:center}
.caixa-federal,.caixa-games{padding:16px}
.caixa-federal>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #edf0ee;font-size:14px}
.caixa-federal strong{font-size:18px;font-variant-numeric:tabular-nums;color:var(--result-color)}
.caixa-game{display:grid;grid-template-columns:18px 1fr auto 1fr;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #edf0ee;font-size:12px}
.caixa-game strong{font-size:14px;white-space:nowrap}
.caixa-game>span:last-child{text-align:right}
.caixa-note{font-size:13px;line-height:1.6;text-align:center;color:#65736b;padding:12px}
.caixa-saved-warning{font-size:14px;line-height:1.6;padding:12px 16px;border:1px solid #ead5a3;background:#fff9e9;color:#73551a;border-radius:9px;margin-bottom:20px}
.caixa-detail-grid{max-width:780px;margin:0 auto}
.caixa-card-detail .caixa-balls .rs-ball{width:40px;height:40px;font-size:19px}
.caixa-detail-content{padding:0 16px 16px}
.caixa-detail-content h3{font-size:18px;font-weight:750;margin:8px 0 12px;color:#162921}
.caixa-detail-content .rs-prizes-wrap{overflow-x:auto}
.caixa-detail-content .rs-prizes{min-width:400px}
.caixa-sources{margin-top:20px;border-top:1px solid #edf0ee;padding-top:14px;font-size:14px;line-height:1.6}
.caixa-sources summary{cursor:pointer;font-weight:700;min-height:32px}
.caixa-sources a{display:inline-block;margin:6px 12px 6px 0;text-decoration:underline;text-underline-offset:3px;color:#116343}
@media(max-width:640px){.caixa-toolbar{align-items:stretch;flex-direction:column}.caixa-card-detail .caixa-balls .rs-ball{width:34px;height:34px;font-size:16px}}

/* Federal uses the original Jogo do Bicho first-prize and table layout. */
.caixa-federal-card>.rs-prizes-wrap{overflow-x:auto}
.caixa-federal-card>.rs-prizes-wrap .rs-prizes{width:100%}
.caixa-federal-card .caixa-summary{padding-top:12px}
.results-recovery{min-height:100vh;padding:32px;text-align:center;background:#f4f6f5;color:#162921;font-size:16px;line-height:1.6}
.results-recovery h1{color:#116343;font-size:24px;font-weight:750}
.results-recovery button{margin-top:16px;padding:12px 20px;border-radius:8px;background:#16805b;color:#fff;font:inherit}
.results-site-home{background:#f4f6f5;color:#162921}
.results-home-footer{flex-shrink:0;margin-top:0;padding:30px 20px 24px;border-top:1px solid #d9e0dc;background:#edf2ee;text-align:center;color:#58665f;line-height:1.6}
.results-home-footer strong{display:block;color:#116343;font-size:18px;font-weight:750;letter-spacing:-.02em}
.results-home-footer p{margin:6px 0 14px;font-size:14px;color:#58665f}
.results-home-footer small{display:block;font-size:12px;color:#65736b}

.rs-week-below-search{margin:0 0 16px auto;width:280px;max-width:100%}
.rs-week-below-search .rs-week-control{width:100%;min-width:0}

.caixa-page .caixa-lottery-logo{display:block;width:32px;height:32px;object-fit:contain;flex-shrink:0}
.caixa-check-open{display:block;width:100%;min-height:44px;margin:18px 0 0;padding:11px 16px;background:#16805b;color:#fff;border:0;border-radius:9px;font:inherit;font-weight:750;cursor:pointer}
.gc-sheet{position:fixed;inset:auto 0 0;margin:0 auto;padding:0;border:0;width:min(100%,600px);max-width:100%;max-height:94dvh;background:transparent;overflow:visible;color:#162921}
.gc-sheet::backdrop{background:#091b16a8}
.gc-panel{display:flex;flex-direction:column;max-height:94dvh;background:#fff;border-radius:22px 22px 0 0;overflow:hidden;box-shadow:0 -8px 50px #0003;text-align:left}
.gc-header{position:relative;flex-shrink:0;padding:26px 56px 16px 22px;border-bottom:1px solid #e5ece8;touch-action:none;cursor:grab;user-select:none}
.gc-handle{position:absolute;top:9px;left:calc(50% - 22px);width:44px;height:5px;border-radius:8px;background:#b8c5bf}
.gc-header h2{margin:0;font-size:21px;font-weight:800;color:#163d2b}
.gc-header p{margin:7px 0 0;font-size:13px;color:#52655a}
.gc-close{position:absolute;top:23px;right:12px;width:40px;height:40px;border:0;border-radius:50%;background:#edf3ef;color:#163d2b;font-size:28px;line-height:1;cursor:pointer}
.gc-content{padding:20px 22px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.gc-field{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:700;color:#264c38}
.gc-field :is(input,select){width:100%;min-height:44px;padding:10px 12px;border:1px solid #c6d4cb;border-radius:8px;background:#fff;color:#162921;font:inherit}
.gc-counter{font-size:14px;color:#52655a;margin:12px 0}
.gc-number-grid{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:7px}
.gc-number{display:grid;place-items:center;min-width:0;min-height:40px;padding:5px 0;border:1px solid #cbd8cf;border-radius:8px;background:#f5f8f6;color:#294a36;font:inherit;font-size:14px;font-weight:750;cursor:pointer}
.gc-number.selected{background:#16805b;border-color:#16805b;color:#fff;box-shadow:0 2px 5px #16805b33}
.gc-number:disabled{opacity:.45;cursor:default}
.gc-extras{margin-top:24px}
.gc-column{margin-bottom:18px}
.gc-column>span{display:block;margin-bottom:8px;font-size:14px;font-weight:700}
.gc-column-options{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px}
.gc-column-options:has(>button:nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}
.gc-footer{flex-shrink:0;padding:14px 22px max(16px,env(safe-area-inset-bottom));border-top:1px solid #e5ece8;background:#fff}
.gc-submit{width:100%;min-height:48px;border:0;border-radius:10px;background:#16805b;color:#fff;font:inherit;font-weight:800;cursor:pointer}
.gc-submit:disabled{background:#dce7df;color:#6a7b70;cursor:default}
.gc-report{margin-top:22px;padding:16px;border:1px solid #b9dfcb;border-radius:12px;background:#eef8f2;color:#116343;font-size:19px;font-weight:800}
.gc-report p{margin:5px 0}
.gc-sheet button:focus-visible,.gc-sheet input:focus-visible,.gc-sheet select:focus-visible{outline:3px solid #2464a7;outline-offset:2px}
@media(max-width:420px){.gc-content{padding:16px}.gc-number-grid{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.gc-column-options{gap:4px}.gc-column-options .gc-number{font-size:12px;min-height:38px}}
.caixa-generate-open{display:block;width:100%;min-height:44px;margin:18px 0 0;padding:11px 16px;background:#edf8f2;color:#116343;border:1px solid #b4d9c5;border-radius:9px;font:inherit;font-weight:750;cursor:pointer}
.caixa-generate-open+.caixa-check-open{margin-top:9px}
.gg-result{margin-top:18px}.gg-balls{display:flex;flex-wrap:wrap;gap:8px}.gg-ball{display:grid;place-items:center;min-width:42px;min-height:42px;padding:6px 10px;border-radius:10px;background:#16805b;color:#fff;font-size:17px;font-weight:800}.gg-group{margin-bottom:18px}.gg-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.gg-extra{font-size:16px;font-weight:750;color:#116343;margin:16px 0}.gg-copy{width:100%;min-height:44px;margin-top:18px;border:1px solid #b4d9c5;border-radius:9px;background:#edf8f2;color:#116343;font:inherit;font-weight:750;cursor:pointer}

.gg-history{display:flex;flex-direction:column;gap:16px;margin-top:20px}.gg-history-card{padding:16px;border:1px solid #d5e5db;border-radius:12px;background:#fafffc}.gg-history-card h3{margin:0;color:#116343;font-size:17px;font-weight:800}.gg-history-card .gg-result{margin-top:10px}

.gg-history{gap:8px;margin-top:12px}
.gg-history-card{padding:10px 12px;border-radius:9px}
.gg-game-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.gg-history-card h3{font-size:14px;line-height:1.3}
.gg-game-heading .gg-copy{width:auto;min-height:30px;margin:0;padding:4px 12px;font-size:12px;border-radius:6px}
.gg-history-card .gg-result{margin:0}
.gg-history-card .gg-group{margin-bottom:0}
.gg-history-card .gg-group+.gg-group{margin-top:8px}
.gg-history-card .gc-counter{margin:0 0 5px;font-size:12px}
.gg-history-card .gg-balls{gap:5px}
.gg-history-card .gg-ball{min-width:32px;min-height:32px;padding:4px 7px;border-radius:7px;font-size:14px}
.gg-history-card .gg-extra{font-size:13px;margin:8px 0 0}
.gg-history-card .gg-columns{gap:8px 12px}
.gg-history-card .gg-columns .gg-group+.gg-group{margin-top:0}

.results-notification-bell{position:fixed;right:18px;bottom:max(20px,env(safe-area-inset-bottom));z-index:45;display:grid;place-items:center;width:54px;height:54px;padding:10px;border:1px solid #d5dfd8;border-radius:50%;background:#fff;box-shadow:0 3px 16px #123c3026;cursor:pointer}
.results-notification-bell img{display:block;width:32px;height:32px;object-fit:contain}
.results-notification-bell:hover{background:#f0f8f2}.results-notification-bell:focus-visible{outline:3px solid #16805b;outline-offset:3px}.results-notification-bell:disabled{opacity:.6;cursor:wait}
