/* Atlas V5: opt-in visual core. No behavior, global reset or legacy selectors. */
.atlas-v5-page {
  --atlas-v5-background: #eef4fa;
  --atlas-v5-background-glow: #d9eafa;
  --atlas-v5-background-start: #f5f8fc;
  --atlas-v5-background-end: #e9f2fa;
  --atlas-v5-surface: #ffffffed;
  --atlas-v5-surface-solid: #ffffff;
  --atlas-v5-primary: #173d66;
  --atlas-v5-primary-end: #28588a;
  --atlas-v5-primary-hover: #214c78;
  --atlas-v5-on-primary: #ffffff;
  --atlas-v5-text: #203952;
  --atlas-v5-muted: #52667c;
  --atlas-v5-border: #d5e1ed;
  --atlas-v5-card-border: #e0e8f1;
  --atlas-v5-control-border: #71869c;
  --atlas-v5-control-surface: #f7faff;
  --atlas-v5-secondary-surface: #f3f7fc;
  --atlas-v5-hover-surface: #e5eef9;
  --atlas-v5-badge-surface: #eaf0f8;
  --atlas-v5-chip-surface: #e5f0fb;
  --atlas-v5-chip-text: #244e75;
  --atlas-v5-fixed-surface: #eee4f8;
  --atlas-v5-fixed-text: #62248f;
  --atlas-v5-fixed-border: #9467b8;
  --atlas-v5-notice-surface: #f3edf9;
  --atlas-v5-notice-text: #683093;
  --atlas-v5-notice-border: #9467b8;
  --atlas-v5-error-surface: #fff0ee;
  --atlas-v5-error-text: #862c23;
  --atlas-v5-error-border: #bc6f66;
  --atlas-v5-success-surface: #eaf5ef;
  --atlas-v5-success-text: #226044;
  --atlas-v5-success-border: #54856b;
  --atlas-v5-loading-surface: #edf5fc;
  --atlas-v5-loading-text: #173d66;
  --atlas-v5-loading-border: #71869c;
  --atlas-v5-disabled-surface: #e9eef4;
  --atlas-v5-disabled-text: #52667c;
  --atlas-v5-accent-lotofacil: #7736ac;
  --atlas-v5-accent-mega-sena: #188b55;
  --atlas-v5-accent-milionaria: #28588a;
  --atlas-v5-accent-quina: #4254a8;
  --atlas-v5-accent-dupla-sena: #a33d59;
  --atlas-v5-accent-dia-de-sorte: #946800;
  --atlas-v5-accent-timemania: #267468;
  --atlas-v5-accent-lotomania: #b85b18;
  --atlas-v5-accent-super-sete: #447a36;
  --atlas-v5-accent: var(--atlas-v5-accent-lotofacil);
  --atlas-v5-font-family: "Segoe UI", Arial, sans-serif;
  --atlas-v5-font-xs: .75rem;
  --atlas-v5-font-sm: .875rem;
  --atlas-v5-font-base: 1rem;
  --atlas-v5-font-section: 1.1875rem;
  --atlas-v5-font-title: clamp(1.625rem, 4vw, 2.25rem);
  --atlas-v5-font-metric: 1.5625rem;
  --atlas-v5-weight-medium: 500;
  --atlas-v5-weight-semibold: 650;
  --atlas-v5-weight-bold: 750;
  --atlas-v5-line-height: 1.55;
  --atlas-v5-line-height-heading: 1.3;
  --atlas-v5-tracking: .025em;
  --atlas-v5-tracking-eyebrow: .14em;
  --atlas-v5-space-1: 4px;
  --atlas-v5-space-2: 8px;
  --atlas-v5-space-3: 12px;
  --atlas-v5-space-4: 16px;
  --atlas-v5-space-5: 20px;
  --atlas-v5-space-6: 24px;
  --atlas-v5-space-7: 26px;
  --atlas-v5-space-8: 32px;
  --atlas-v5-radius-sm: 7px;
  --atlas-v5-radius-control: 11px;
  --atlas-v5-radius-group: 13px;
  --atlas-v5-radius-alert: 14px;
  --atlas-v5-radius-card: 19px;
  --atlas-v5-shadow-card: 0 8px 26px #2e578a09;
  --atlas-v5-shadow-button: 0 7px 16px #173d661c;
  --atlas-v5-shadow-selected: 0 3px 8px #173d6620;
  --atlas-v5-layout-content: 1120px;
  --atlas-v5-layout-header: 1200px;
  --atlas-v5-control-min-height: 44px;
  --atlas-v5-focus-color: #985017;
  --atlas-v5-focus-width: 3px;
  --atlas-v5-focus-offset: 3px;
  margin: 0;
  min-height: 100vh;
  color-scheme: light;
  color: var(--atlas-v5-text);
  font-family: var(--atlas-v5-font-family);
  font-size: var(--atlas-v5-font-base);
  line-height: var(--atlas-v5-line-height);
  background: radial-gradient(ellipse at 90% 0%, var(--atlas-v5-background-glow), transparent 55%), linear-gradient(145deg, var(--atlas-v5-background-start), var(--atlas-v5-background-end));
  background-color: var(--atlas-v5-background);
}
/* Resets require explicit component classes; never target all descendants. */
.atlas-v5-container, .atlas-v5-header, .atlas-v5-card, .atlas-v5-button,
.atlas-v5-input, .atlas-v5-select, .atlas-v5-segmented, .atlas-v5-segment,
.atlas-v5-status, .atlas-v5-metric, .atlas-v5-game-card, .atlas-v5-swatch,
.atlas-v5-skip-link { box-sizing: border-box; }
.atlas-v5-container { width: min(var(--atlas-v5-layout-content), calc(100% - var(--atlas-v5-space-8))); margin-inline: auto; padding-block: var(--atlas-v5-space-8); }
.atlas-v5-header { max-width: var(--atlas-v5-layout-header); margin-inline: auto; padding: var(--atlas-v5-space-5) var(--atlas-v5-space-6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--atlas-v5-space-3); border-bottom: 1px solid var(--atlas-v5-border); }
.atlas-v5-brand { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--atlas-v5-space-2); color: var(--atlas-v5-primary); font-size: 1.25rem; font-weight: var(--atlas-v5-weight-bold); text-decoration: none; letter-spacing: var(--atlas-v5-tracking); }
.atlas-v5-brand-secondary { color: var(--atlas-v5-muted); font-weight: var(--atlas-v5-weight-medium); }
.atlas-v5-eyebrow { display: block; color: var(--atlas-v5-muted); font-size: var(--atlas-v5-font-xs); font-weight: var(--atlas-v5-weight-bold); letter-spacing: var(--atlas-v5-tracking-eyebrow); }
.atlas-v5-title { margin: var(--atlas-v5-space-2) 0; color: var(--atlas-v5-primary); font-size: var(--atlas-v5-font-title); line-height: var(--atlas-v5-line-height-heading); letter-spacing: var(--atlas-v5-tracking); overflow-wrap: anywhere; }
.atlas-v5-subtitle { margin: 0; color: var(--atlas-v5-muted); font-size: var(--atlas-v5-font-sm); }
.atlas-v5-section-title { margin: 0; color: var(--atlas-v5-primary); font-size: var(--atlas-v5-font-section); line-height: var(--atlas-v5-line-height-heading); }
.atlas-v5-section-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--atlas-v5-space-2); margin-bottom: var(--atlas-v5-space-4); }
.atlas-v5-card { min-width: 0; padding: var(--atlas-v5-space-5); background: var(--atlas-v5-surface); border: 1px solid var(--atlas-v5-card-border); border-radius: var(--atlas-v5-radius-card); box-shadow: var(--atlas-v5-shadow-card); overflow-wrap: anywhere; }
.atlas-v5-stack { display: grid; gap: var(--atlas-v5-space-5); min-width: 0; }
.atlas-v5-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--atlas-v5-space-5); min-width: 0; }
.atlas-v5-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--atlas-v5-space-2); }
.atlas-v5-helper { margin: var(--atlas-v5-space-2) 0 0; color: var(--atlas-v5-muted); font-size: var(--atlas-v5-font-xs); }
.atlas-v5-copy { margin: 0; }
.atlas-v5-button { display: inline-flex; justify-content: center; align-items: center; min-height: var(--atlas-v5-control-min-height); max-width: 100%; padding: var(--atlas-v5-space-2) var(--atlas-v5-space-4); border: 1px solid var(--atlas-v5-control-border); border-radius: var(--atlas-v5-radius-control); background: var(--atlas-v5-secondary-surface); color: var(--atlas-v5-primary); font: inherit; font-size: var(--atlas-v5-font-sm); font-weight: var(--atlas-v5-weight-semibold); text-align: center; text-decoration: none; cursor: pointer; overflow-wrap: anywhere; }
.atlas-v5-button-primary { color: var(--atlas-v5-on-primary); background: linear-gradient(105deg, var(--atlas-v5-primary), var(--atlas-v5-primary-end)); border-color: var(--atlas-v5-primary); box-shadow: var(--atlas-v5-shadow-button); }
.atlas-v5-button-secondary { background: var(--atlas-v5-secondary-surface); }
.atlas-v5-button-quiet { background: var(--atlas-v5-surface-solid); }
.atlas-v5-button:hover:not(:disabled) { background: var(--atlas-v5-hover-surface); }
.atlas-v5-button-primary:hover:not(:disabled) { background: var(--atlas-v5-primary-hover); }
.atlas-v5-button:disabled, .atlas-v5-input:disabled, .atlas-v5-select:disabled, .atlas-v5-segment:disabled { background: var(--atlas-v5-disabled-surface); color: var(--atlas-v5-disabled-text); border-color: var(--atlas-v5-control-border); box-shadow: none; cursor: not-allowed; }
.atlas-v5-label { display: block; margin-bottom: var(--atlas-v5-space-2); font-size: var(--atlas-v5-font-sm); font-weight: var(--atlas-v5-weight-semibold); }
.atlas-v5-input, .atlas-v5-select { display: block; min-width: 0; width: 100%; min-height: var(--atlas-v5-control-min-height); padding: var(--atlas-v5-space-2) var(--atlas-v5-space-3); border: 1px solid var(--atlas-v5-control-border); border-radius: var(--atlas-v5-radius-control); background: var(--atlas-v5-control-surface); color: var(--atlas-v5-primary); font: inherit; }
.atlas-v5-input[aria-invalid="true"] { border-color: var(--atlas-v5-error-text); }
.atlas-v5-badge { display: inline-block; max-width: 100%; padding: var(--atlas-v5-space-1) var(--atlas-v5-space-2); border-radius: var(--atlas-v5-radius-sm); background: var(--atlas-v5-badge-surface); color: var(--atlas-v5-primary); font-size: var(--atlas-v5-font-xs); font-weight: var(--atlas-v5-weight-semibold); overflow-wrap: anywhere; }
.atlas-v5-chip, .atlas-v5-game-chip { display: inline-grid; place-items: center; min-width: 30px; min-height: 30px; padding-inline: var(--atlas-v5-space-1); border-radius: var(--atlas-v5-radius-sm); background: var(--atlas-v5-chip-surface); color: var(--atlas-v5-chip-text); font-size: var(--atlas-v5-font-xs); font-weight: var(--atlas-v5-weight-semibold); }
.atlas-v5-chip-fixed { background: var(--atlas-v5-fixed-surface); color: var(--atlas-v5-fixed-text); box-shadow: inset 0 -2px var(--atlas-v5-fixed-border); }
.atlas-v5-segmented { display: flex; flex-wrap: wrap; gap: var(--atlas-v5-space-1); margin: 0; padding: var(--atlas-v5-space-1); background: var(--atlas-v5-badge-surface); border: 1px solid var(--atlas-v5-control-border); border-radius: var(--atlas-v5-radius-group); }
.atlas-v5-segment { flex: 1 1 100px; min-height: var(--atlas-v5-control-min-height); padding: var(--atlas-v5-space-2); border: 1px solid transparent; border-radius: var(--atlas-v5-radius-control); background: transparent; color: var(--atlas-v5-primary); font: inherit; font-size: var(--atlas-v5-font-sm); font-weight: var(--atlas-v5-weight-semibold); cursor: pointer; }
.atlas-v5-segment[aria-pressed="true"] { background: var(--atlas-v5-primary); color: var(--atlas-v5-on-primary); box-shadow: var(--atlas-v5-shadow-selected); }
.atlas-v5-metrics-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--atlas-v5-space-3); margin: 0; }
.atlas-v5-metric { min-width: 0; padding: var(--atlas-v5-space-3); border-left: 2px solid var(--atlas-v5-border); background: var(--atlas-v5-control-surface); border-radius: var(--atlas-v5-radius-sm); }
.atlas-v5-metric-label { color: var(--atlas-v5-muted); font-size: var(--atlas-v5-font-xs); }
.atlas-v5-metric-value { margin: var(--atlas-v5-space-1) 0 0; color: var(--atlas-v5-primary); font-size: var(--atlas-v5-font-metric); font-weight: var(--atlas-v5-weight-bold); overflow-wrap: anywhere; }
.atlas-v5-status { margin: 0; padding: var(--atlas-v5-space-3); border: 1px solid var(--atlas-v5-border); border-radius: var(--atlas-v5-radius-alert); font-size: var(--atlas-v5-font-sm); }
.atlas-v5-notice { background: var(--atlas-v5-notice-surface); color: var(--atlas-v5-notice-text); border-color: var(--atlas-v5-notice-border); }
.atlas-v5-error { background: var(--atlas-v5-error-surface); color: var(--atlas-v5-error-text); border-color: var(--atlas-v5-error-border); }
.atlas-v5-success { background: var(--atlas-v5-success-surface); color: var(--atlas-v5-success-text); border-color: var(--atlas-v5-success-border); }
.atlas-v5-loading { background: var(--atlas-v5-loading-surface); color: var(--atlas-v5-loading-text); border-color: var(--atlas-v5-loading-border); }
.atlas-v5-game-card { min-width: 0; padding: var(--atlas-v5-space-4); border: 1px solid var(--atlas-v5-border); border-radius: var(--atlas-v5-radius-group); background: var(--atlas-v5-surface-solid); }
.atlas-v5-skip-link { position: absolute; left: var(--atlas-v5-space-3); top: -200px; z-index: 2; min-height: var(--atlas-v5-control-min-height); padding: var(--atlas-v5-space-3); background: var(--atlas-v5-surface-solid); color: var(--atlas-v5-primary); }
.atlas-v5-skip-link:focus { top: var(--atlas-v5-space-3); }
.atlas-v5-focus:focus-visible, .atlas-v5-button:focus-visible, .atlas-v5-input:focus-visible, .atlas-v5-select:focus-visible, .atlas-v5-segment:focus-visible, .atlas-v5-skip-link:focus-visible { outline: var(--atlas-v5-focus-width) solid var(--atlas-v5-focus-color); outline-offset: var(--atlas-v5-focus-offset); }
/* Accents decorate modality identity; never replace CTA or semantic colors. */
.atlas-v5-accent-lotofacil { --atlas-v5-accent: var(--atlas-v5-accent-lotofacil); }
.atlas-v5-accent-mega-sena { --atlas-v5-accent: var(--atlas-v5-accent-mega-sena); }
.atlas-v5-accent-milionaria { --atlas-v5-accent: var(--atlas-v5-accent-milionaria); }
.atlas-v5-accent-quina { --atlas-v5-accent: var(--atlas-v5-accent-quina); }
.atlas-v5-accent-dupla-sena { --atlas-v5-accent: var(--atlas-v5-accent-dupla-sena); }
.atlas-v5-accent-dia-de-sorte { --atlas-v5-accent: var(--atlas-v5-accent-dia-de-sorte); }
.atlas-v5-accent-timemania { --atlas-v5-accent: var(--atlas-v5-accent-timemania); }
.atlas-v5-accent-lotomania { --atlas-v5-accent: var(--atlas-v5-accent-lotomania); }
.atlas-v5-accent-super-sete { --atlas-v5-accent: var(--atlas-v5-accent-super-sete); }
.atlas-v5-accent-sample { border-left: 4px solid var(--atlas-v5-accent); }
.atlas-v5-swatch { min-height: 44px; border: 1px solid var(--atlas-v5-control-border); border-radius: var(--atlas-v5-radius-sm); margin-bottom: var(--atlas-v5-space-2); }
.atlas-v5-swatch-background { background: var(--atlas-v5-background); }
.atlas-v5-swatch-surface { background: var(--atlas-v5-surface); }
.atlas-v5-swatch-primary { background: var(--atlas-v5-primary); }
.atlas-v5-swatch-text { background: var(--atlas-v5-text); }
.atlas-v5-swatch-muted { background: var(--atlas-v5-muted); }
.atlas-v5-swatch-border { background: var(--atlas-v5-border); }
@media (min-width: 768px) {
  .atlas-v5-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-v5-card { padding: var(--atlas-v5-space-7); }
  .atlas-v5-metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 389px) {
  .atlas-v5-header { padding: var(--atlas-v5-space-4); }
  .atlas-v5-card { padding: var(--atlas-v5-space-4); }
  .atlas-v5-brand { font-size: var(--atlas-v5-font-base); }
}
