:root {
  color-scheme: dark;
  --ll-page: #0b1020;
  --ll-surface: #121a2a;
  --ll-surface-raised: #192438;
  --ll-surface-soft: #222e43;
  --ll-border: #344258;
  --ll-text: #f1f5f9;
  --ll-text-secondary: #c2ccd6;
  --ll-text-muted: #a4b0bd;
  --ll-brand: #009c3b;
  --ll-brand-secondary: #01a84a;
  --ll-brand-solid: #08783a;
  --ll-header-start: #006d2c;
  --ll-header-end: #08783a;
  --ll-focus: #9de5b6;
}

html[data-theme="light"] {
  color-scheme: light;
  --ll-page: #f4f7f3;
  --ll-surface: #ffffff;
  --ll-surface-raised: #edf3ee;
  --ll-surface-soft: #e3ece5;
  --ll-border: #c4d2c8;
  --ll-text: #17251c;
  --ll-text-secondary: #34483a;
  --ll-text-muted: #4b5f50;
  --ll-brand-solid: #08783a;
  --ll-header-start: #08783a;
  --ll-header-end: #087b3c;
  --ll-focus: #075e30;
  --brand: #08783a;
  --brand2: #0a8b43;
}

html[data-theme="light"] body[data-game="megasena"] {
  --brand: #08783a;
  --brand2: #0a8b43;
}

html[data-theme="light"] body[data-game="quina"] {
  --brand: #165aa6;
  --brand2: #2675c4;
  --ll-brand-solid: #165aa6;
  --ll-header-start: #165aa6;
  --ll-header-end: #2675c4;
}

html[data-theme="light"] body[data-game="lotofacil"] {
  --brand: #6841b5;
  --brand2: #8055ca;
  --ll-brand-solid: #6841b5;
  --ll-header-start: #6841b5;
  --ll-header-end: #8055ca;
}

html[data-theme="light"] body[data-lottery="quina"] {
  --ll-brand-solid: #165aa6;
  --ll-header-start: #165aa6;
  --ll-header-end: #2675c4;
}

html[data-theme="light"] body[data-lottery="lotofacil"] {
  --ll-brand-solid: #6841b5;
  --ll-header-start: #6841b5;
  --ll-header-end: #8055ca;
}

html[data-theme="dark"] body[data-lottery="quina"] {
  --ll-brand-solid: #1e6ec7;
  --ll-header-start: #16589f;
  --ll-header-end: #1e6ec7;
}

html[data-theme="dark"] body[data-lottery="lotofacil"] {
  --ll-brand-solid: #6841b5;
  --ll-header-start: #58379c;
  --ll-header-end: #6841b5;
}

html[data-theme="dark"] body[data-game="quina"] {
  --brand: #70b1ff;
  --brand2: #1e6ec7;
  --ll-brand-solid: #1e6ec7;
  --ll-header-start: #16589f;
  --ll-header-end: #1e6ec7;
}

html[data-theme="dark"] body[data-game="lotofacil"] {
  --brand: #a987ff;
  --brand2: #6841b5;
  --ll-brand-solid: #6841b5;
  --ll-header-start: #58379c;
  --ll-header-end: #6841b5;
}

html,
body {
  background-color: var(--ll-page);
}

body {
  color: var(--ll-text);
  transition: background-color 180ms ease, color 180ms ease;
}

.glass {
  background: color-mix(in srgb, var(--ll-surface) 94%, transparent);
  border-color: var(--ll-border);
  backdrop-filter: none;
}

.topbar-inner {
  position: relative;
}

#topbar {
  background: linear-gradient(180deg, var(--ll-header-start) 0%, var(--ll-header-end) 100%) !important;
}

#mobileMenu {
  background-color: var(--ll-header-end) !important;
}

#topbar nav {
  flex-shrink: 0;
}

.topbar-link {
  min-height: 40px;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 12px;
  background: rgb(0 0 0 / 10%);
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: rgb(255 255 255 / 16%);
}

.theme-toggle:focus-visible,
.menu-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.theme-toggle svg,
.menu-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
}

#mobileMenu {
  z-index: 50;
}

#mobileMenu.open {
  display: block;
}

.mobile-auth-slot {
  padding: 12px 16px 16px;
  border-top: 1px solid rgb(255 255 255 / 16%);
}

.mobile-auth-slot #authBox {
  display: flex !important;
  margin: 0;
  justify-content: flex-start;
}

.mobile-auth-slot #authBox > * {
  margin-left: 0 !important;
}

.mobile-auth-slot #authBox > div {
  justify-content: flex-start;
}

.home-highlight {
  min-height: 176px;
}

.highlight-skeleton {
  display: flex;
  min-height: 132px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.highlight-skeleton-main,
.highlight-skeleton-next {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
}

.highlight-skeleton-next {
  align-items: flex-end;
  padding-top: 2px;
}

.game-tab-skeleton,
.game-actions-skeleton i,
.summary-skeleton-game,
.summary-skeleton-stats i,
.summary-skeleton-details,
.summary-skeleton-cost i,
.summary-skeleton-cost b,
.summary-skeleton-cost em {
  display: block;
  background: linear-gradient(100deg, var(--ll-surface-raised) 22%, var(--ll-surface-soft) 38%, var(--ll-surface-raised) 62%);
  background-size: 300% 100%;
  animation: ll-skeleton 1.6s ease-in-out infinite;
}

.game-tab-skeleton {
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--ll-border);
  border-radius: 12px;
}

.game-tab-skeleton-mega { width: 136px; }
.game-tab-skeleton-quina { width: 100px; }
.game-tab-skeleton-lotofacil { width: 116px; }

/* O esqueleto ja mostra o nome do jogo: em conexao ruim a home passa segundos
   antes de o JS montar as abas, e retangulos vazios parecem botoes quebrados. */
.skeleton-tab-label {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ll-text-muted);
  white-space: nowrap;
}

.game-actions-skeleton {
  display: grid;
  width: min(408px, 100%);
  flex: 1 1 320px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-left: auto;
}

.game-actions-skeleton i {
  height: 44px;
  border: 1px solid var(--ll-border);
  border-radius: 12px;
}

.skeleton-line,
.skeleton-balls i {
  display: block;
  background: linear-gradient(100deg, var(--ll-surface-raised) 22%, var(--ll-surface-soft) 38%, var(--ll-surface-raised) 62%);
  background-size: 300% 100%;
  animation: ll-skeleton 1.6s ease-in-out infinite;
}

.summary-skeleton {
  display: flex;
  min-height: 376px;
  flex: 1;
  flex-direction: column;
  gap: 12px;
}

.summary-skeleton-game {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--ll-border);
  border-radius: 12px;
}

.summary-skeleton-game > i {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: var(--ll-surface-soft);
}

.summary-skeleton-game > span {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.summary-skeleton-game b,
.summary-skeleton-game em,
.summary-skeleton-details,
.summary-skeleton-stats i,
.summary-skeleton-cost i,
.summary-skeleton-cost b,
.summary-skeleton-cost em { border-radius: 8px; }

.summary-skeleton-game b { width: 42%; height: 13px; }
.summary-skeleton-game em { width: 30%; height: 10px; }

.summary-skeleton-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.summary-skeleton-stats i { height: 74px; }
.summary-skeleton-details { height: 74px; }

.summary-skeleton-cost {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--ll-border);
}

.summary-skeleton-cost i { width: 46%; height: 12px; }
.summary-skeleton-cost b { width: 34%; height: 30px; }
.summary-skeleton-cost em { width: 52%; height: 10px; }

.skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.skeleton-label { width: 112px; height: 10px; }
.skeleton-title { width: min(260px, 66vw); height: 20px; }
.skeleton-link { width: 176px; height: 12px; margin-top: 4px; }
.skeleton-prize { width: 148px; }

.skeleton-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0;
}

.skeleton-balls i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

@keyframes ll-skeleton {
  to { background-position-x: -150%; }
}

.generator-title svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#stratBtns {
  min-height: 44px;
}

.summary-disclosure {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.summary-disclosure > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  border-radius: 9px;
}

.summary-disclosure > summary::-webkit-details-marker {
  display: none;
}

.summary-disclosure > summary:focus-visible {
  outline: 3px solid var(--ll-focus);
  outline-offset: 3px;
}

.summary-title {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--ll-text);
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.summary-title svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-disclosure-hint {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  color: var(--ll-text-muted);
  font-size: 12px;
  font-weight: 600;
}

.summary-disclosure-hint svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.summary-disclosure[open] .summary-disclosure-hint svg {
  transform: rotate(180deg);
}

html[data-theme="light"] body {
  background: var(--ll-page) !important;
  color: var(--ll-text) !important;
}

html[data-theme="light"] .text-slate-100 { color: var(--ll-text) !important; }
html[data-theme="light"] .text-slate-200 { color: #26372b !important; }
html[data-theme="light"] .text-slate-300 { color: #34483a !important; }
html[data-theme="light"] .text-slate-400 { color: #4b5f50 !important; }
html[data-theme="light"] .text-slate-500 { color: #56695b !important; }
html[data-theme="light"] .text-slate-600 { color: #647468 !important; }
html[data-theme="light"] [class*="bg-slate-950"] { background-color: #eaf0eb !important; }
html[data-theme="light"] [class*="bg-slate-900"] { background-color: var(--ll-surface) !important; }
html[data-theme="light"] [class*="bg-slate-800"] { background-color: var(--ll-surface-raised) !important; }
html[data-theme="light"] [class*="bg-slate-700"] { background-color: var(--ll-surface-soft) !important; }
html[data-theme] .seg-btn.active,
html[data-theme] .seg-btn-modo.active,
html[data-theme] .game-tab[style*="background"] {
  background: var(--ll-brand-solid) !important;
  border-color: var(--ll-brand-solid) !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgb(18 43 25 / 16%);
}
html[data-theme] [style*="background:var(--brand)"] {
  background-color: var(--ll-brand-solid) !important;
}
html[data-theme="light"] [class*="border-slate-700"],
html[data-theme="light"] [class*="border-slate-600"],
html[data-theme="light"] [class*="border-slate-500"] { border-color: var(--ll-border) !important; }
html[data-theme="light"] [class*="bg-white/"] { background-color: rgb(20 55 31 / 6%) !important; }
html[data-theme="light"] [class*="hover:bg-white/"]:hover { background-color: rgb(20 55 31 / 9%) !important; }
html[data-theme="light"] .bar-track { background: #dfe8e1; }
html[data-theme="light"] .glass { box-shadow: 0 1px 3px rgb(18 43 25 / 7%); }
html[data-theme="light"] #betSummaryPanel { background: var(--ll-surface); }
html[data-theme="light"] #highlight .accumulated-badge {
  background-color: #fff0c2 !important;
  border: 1px solid #e9cd80;
  color: #714b00 !important;
}
html[data-theme="light"] main p[class~="text-amber-100"] {
  background-color: #fff6de !important;
  border-color: #e9cd80 !important;
  color: #714b00 !important;
}
/* The Google sign-in button relies on the `bg-white` utility, which the
   compiled blog stylesheet does not ship. Without it the dark label sits on
   the green topbar and disappears, so the button keeps its white pill. */
html[data-theme] #btnLogin {
  background-color: #fff !important;
  color: #1f2937 !important;
}

html[data-theme="light"] #topbar { color: #fff; }
html[data-theme="light"] #topbar .theme-toggle,
html[data-theme="light"] #topbar .menu-toggle { color: #fff; }
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  color-scheme: light;
  color: var(--ll-text) !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #607165; opacity: 1; }
html[data-theme="light"] select { color: var(--ll-text) !important; }
html[data-theme="light"] input { color: var(--ll-text) !important; }
html[data-theme="light"] #resultSearchInput::placeholder { color: #607165 !important; opacity: 1; }

/* Shared Lotto Labs skin for every static page */
html[data-theme="light"] body {
  background: var(--ll-page) !important;
  color: var(--ll-text) !important;
}

html[data-theme="light"] main h1[class*="text-white"],
html[data-theme="light"] main h2[class*="text-white"],
html[data-theme="light"] main h3[class*="text-white"],
html[data-theme="light"] main h4[class*="text-white"],
html[data-theme="light"] main h5[class*="text-white"] {
  color: var(--ll-text) !important;
}

/* White text tokens inside the page body (post titles, FAQ summaries, bold
   terms in the article copy) are only legible on dark surfaces. On light
   surfaces they turn into invisible content, so they follow the body text
   color. Elements that carry their own background keep white on purpose
   (buttons, colored badges, the WhatsApp share button). */
html[data-theme="light"] main [class~="text-white"]:not([class*="bg-"]):not([style*="background"]) {
  color: var(--ll-text) !important;
}

html[data-theme="light"] main a[class*="text-emerald-"] {
  color: #08783a !important;
}

html[data-theme="light"] [class*="border-white/"] {
  border-color: var(--ll-border) !important;
}

html[data-theme="light"] .tag-mega {
  background: #e3f2e8;
  color: #176238;
}

html[data-theme="light"] .tag-quina {
  background: #e4eef9;
  color: #1c4f82;
}

html[data-theme="light"] .tag-loto {
  background: #eee8fa;
  color: #523889;
}

html[data-theme="light"] .chip {
  color: var(--ll-text-secondary) !important;
}

html[data-theme="light"] .chip.active {
  background: #dbe9df;
  color: #193b27;
}

/* Keep status, warning, and information colors readable on light surfaces. */
html[data-theme="light"] body [class*="text-amber-"],
html[data-theme="light"] body [class*="text-yellow-"],
html[data-theme="light"] body [class*="text-orange-"] { color: #714b00 !important; }
html[data-theme="light"] body [class*="text-emerald-"],
html[data-theme="light"] body [class*="text-green-"],
html[data-theme="light"] body [class*="text-lime-"] { color: #08783a !important; }
html[data-theme="light"] body [class*="text-red-"],
html[data-theme="light"] body [class*="text-rose-"],
html[data-theme="light"] body [class*="text-pink-"] { color: #a61b29 !important; }
html[data-theme="light"] body [class*="text-sky-"],
html[data-theme="light"] body [class*="text-blue-"],
html[data-theme="light"] body [class*="text-cyan-"],
html[data-theme="light"] body [class*="text-teal-"],
html[data-theme="light"] body [class*="text-indigo-"] { color: #075985 !important; }
html[data-theme="light"] body [class*="text-violet-"],
html[data-theme="light"] body [class*="text-purple-"],
html[data-theme="light"] body [class*="text-fuchsia-"] { color: #6b21a8 !important; }
html[data-theme="light"] body [class*="text-gray-"] { color: #4b5f50 !important; }

html[data-theme="light"] [class*="bg-emerald-900"],
html[data-theme="light"] [class*="bg-green-900"],
html[data-theme="light"] [class*="bg-lime-900"] { background-color: #e4f3e9 !important; }
html[data-theme="light"] [class*="bg-amber-900"],
html[data-theme="light"] [class*="bg-yellow-900"],
html[data-theme="light"] [class*="bg-orange-900"] { background-color: #fff4d6 !important; }
html[data-theme="light"] [class*="bg-red-900"],
html[data-theme="light"] [class*="bg-rose-900"],
html[data-theme="light"] [class*="bg-pink-900"] { background-color: #fdebed !important; }
html[data-theme="light"] [class*="bg-sky-900"],
html[data-theme="light"] [class*="bg-blue-900"],
html[data-theme="light"] [class*="bg-cyan-900"],
html[data-theme="light"] [class*="bg-teal-900"],
html[data-theme="light"] [class*="bg-indigo-900"] { background-color: #eaf2fc !important; }
html[data-theme="light"] [class*="bg-violet-900"],
html[data-theme="light"] [class*="bg-purple-900"],
html[data-theme="light"] [class*="bg-fuchsia-900"] { background-color: #f1eafd !important; }

html[data-theme="light"] [class~="text-amber-100"][class*="border-amber-"],
html[data-theme="light"] [class~="text-amber-200"][class*="border-amber-"],
html[data-theme="light"] [class~="text-amber-300"][class*="border-amber-"] {
  background-color: #fff6de !important;
  border-color: #e9cd80 !important;
  color: #714b00 !important;
}

html[data-theme="light"] [aria-label="Filtrar bolões"] [data-filter][aria-pressed="true"] {
  background-color: var(--ll-brand-solid) !important;
  border-color: var(--ll-brand-solid) !important;
  color: #fff !important;
}
html[data-theme="light"] [aria-label="Filtrar bolões"] [data-filter][aria-pressed="true"] span {
  color: #fff !important;
}

html[data-theme="light"] body.affiliate-page .card {
  background: var(--ll-surface) !important;
  border-color: var(--ll-border) !important;
}
html[data-theme="light"] body.affiliate-page .muted { color: var(--ll-text-secondary) !important; }

html[data-theme="light"] body[data-page="closure-landing"] {
  --bg: var(--ll-page);
  --surface: var(--ll-surface);
  --surface-raised: var(--ll-surface-raised);
  --border: var(--ll-border);
  --text: var(--ll-text);
  --muted: var(--ll-text-secondary);
  --soft: var(--ll-text-muted);
  --green: #08783a;
  --green-deep: #065e30;
  --blue: #165aa6;
  --pink: #963c78;
}

html[data-theme="light"] body[data-page="closure-landing"] .site-header {
  border-color: transparent;
  background: linear-gradient(180deg, var(--ll-header-start), var(--ll-header-end));
}

html[data-theme="light"] body[data-page="closure-landing"] .brand,
html[data-theme="light"] body[data-page="closure-landing"] .nav a {
  color: #fff;
}

html[data-theme="light"] body[data-page="closure-landing"] .eyebrow {
  color: #08783a;
}

html[data-theme="light"] body[data-page="closure-landing"] .button-primary {
  color: #fff;
}

html[data-theme="light"] body[data-page="closure-landing"] .metric {
  background: var(--ll-surface-raised);
}

html[data-theme="light"] body[data-page="closure-landing"] .metric.featured {
  background: color-mix(in srgb, var(--accent) 10%, #fff);
}

html[data-theme="light"] body[data-page="closure-landing"] .step::before {
  color: #08783a;
}

html[data-theme="light"] body[data-page="closure-landing"] .source-note a,
html[data-theme="light"] body[data-page="closure-landing"] .video-dialog-fallback {
  color: #075e30;
}

html[data-theme="light"] body[data-page="closure-landing"] .video-dialog-close {
  border-color: var(--ll-border);
  background: var(--ll-surface-raised);
  color: var(--ll-text);
}

html[data-theme="light"] body[data-page="closure-landing"] .plan-details {
  color: var(--ll-text-secondary);
}

.theme-toggle-floating {
  position: fixed;
  z-index: 60;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  border-color: var(--ll-border);
  background: var(--ll-surface);
  color: var(--ll-text);
  box-shadow: 0 4px 18px rgb(0 0 0 / 16%);
}

html[data-theme="light"] .theme-toggle-floating {
  border-color: var(--ll-border);
  background: var(--ll-surface);
  color: var(--ll-text);
}

#topbar nav > #themeToggle {
  flex: 0 0 44px;
}

#topbar nav > #menuBtn {
  display: none;
}

#mobileMenu a {
  min-height: 48px;
  align-items: center;
}

#mobileMenu a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

@media (max-width: 1100px) {
  #topbar .leading-tight > div { display: none !important; }
  #topbar .leading-tight > span { display: none !important; }
  #topbar nav > a:not([class~="sm:hidden"]) { display: none !important; }
  #topbar nav > #themeToggle,
  #topbar nav > #menuBtn { display: inline-flex !important; }
  #topbar nav > #menuBtn { flex: 0 0 44px; }
  #mobileMenu:not(.hidden) { display: block !important; }
}

@media (min-width: 1101px) {
  .topbar-link { display: inline-flex !important; }
}

@media (max-width: 1100px) {
  .brand-tagline { display: none; }
  #desktopNav .topbar-link { display: none !important; }
  #desktopNav #menuBtn { display: inline-flex !important; }
  #desktopNav > #authBox { display: none !important; }
  #mobileMenu.open { display: block !important; }
}

@media (max-width: 900px) {
  #homeMain {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  #homeMain > :not([hidden]) ~ :not([hidden]) { margin-top: 0 !important; }
  #homeMain > #homeIntro { order: 0; }
  #homeMain > #gerador { order: 1; }
  #homeMain > #highlight { order: 2; }
  #homeMain > #firstVisitGuide { order: 3; display: none !important; }
  #homeMain > :not(#homeIntro):not(#gerador):not(#highlight):not(#firstVisitGuide) { order: 4; }

  #gerador.glass {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #geradorGrid { gap: 16px; }
  #gameTabs { min-height: 96px; }
  .game-actions-skeleton {
    width: 100%;
    max-width: none;
    flex: 1 0 100%;
    margin-left: 0;
  }
  #generatorActions {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 8px;
    margin-left: 0;
  }

  #generatorActions > button,
  #generatorActions > a {
    min-width: 0;
    min-height: 44px;
    padding: 8px 4px;
    font-size: 12px;
    white-space: nowrap;
  }

  #stratBtns {
    display: grid !important;
    min-height: 96px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #stratBtns > button {
    min-height: 44px;
    min-width: 0;
    justify-content: center;
    padding-inline: 8px;
    white-space: normal;
    line-height: 1.25;
  }

  #btnGerar { min-width: min(100%, 15rem); }
  #betSummaryPanel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  #betSummaryDetails {
    padding: 12px;
    border: 1px solid var(--ll-border);
    border-radius: 14px;
    background: var(--ll-surface);
  }

  .summary-disclosure-hint { display: inline-flex; }

  #homeIntro { padding-inline: 0; }
  #homeIntroTitle { font-size: 22px; line-height: 1.2; }
  #homeIntro p { max-width: 58ch; font-size: 15px; line-height: 1.5; }

  .home-highlight { min-height: 250px; }
  .highlight-skeleton { min-height: 206px; flex-direction: column; gap: 24px; }
  .highlight-skeleton-next { align-items: flex-start; }
}

@media (max-width: 767px) {
  .topbar-inner { gap: 8px; padding-block: 8px; }
  .topbar-inner > a { min-width: 0; }
  .topbar-inner > a img { width: 34px; height: 34px; }
  .topbar-inner > a > div { white-space: nowrap; }
  #desktopNav { gap: 6px; }
  #homeMain { padding-top: 16px; }
  #gameTabs { gap: 8px; }

  #gameTabs .game-tab {
    min-height: 44px;
    font-size: 12px;
    padding-inline: 4px;
  }

  #tradicionalBox > .grid { gap: 14px; }
  #stratHint { min-height: 0; }
  #btnGerar { width: 100%; }
  #btnCopiarTodos,
  #btnReset { flex: 1 1 0; }
  #homeBlogHighlights,
  #fechamentos-videos,
  #analise,
  #planos { padding: 16px; }
}

@media (max-width: 639px) {
  .game-tab-skeleton { width: 100%; }
  .game-actions-skeleton { grid-column: 1 / -1; }

  #geradorForm > .space-y-2 > div[class~="sm:flex-row"] {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  #modoToggle {
    min-width: 0;
    max-width: none;
    flex: 1;
  }

  #modoToggle > button {
    padding-inline: 6px;
    font-size: 11px;
  }

  #closureHelpTrigger {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    overflow: hidden;
  }

  #closureHelpTrigger > span:last-child { display: none; }

  #tradicionalBox > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #tradicionalBox > .grid > div { min-width: 0; }
  #tradicionalBox label {
    display: block;
    min-height: 2.6em;
    line-height: 1.3;
  }
}

@media (max-width: 380px) {
  .topbar-inner > a img { width: 32px; height: 32px; }
  .topbar-inner > a span { font-size: 15px; }
  #themeToggle,
  #menuBtn { width: 42px; min-width: 42px; height: 42px; min-height: 42px; }
  #homeIntroTitle { font-size: 21px; }
  #highlight { min-height: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
