/* ================================================================
   JOGO PAGE — V2
   Primary: #1FAE4E  Ink: #0E1B14  BG: #F4F6F1
   Fonts: Plus Jakarta Sans + JetBrains Mono
   Layout: sidebar 248px | content 1fr | cupom 380px
   ================================================================ */

/* Reset `.jogo-body` lives in components/sidebar.css (shared by all logged pages). */

/* ---- Content split ---- */

.jogo-split {
  display: grid;
  grid-template-columns: 1fr var(--jogo-cupom-w);
  flex: 1;
  overflow: hidden;
  min-height: 0;
  min-width: 0;
}

.jogo-content {
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--jogo-line) transparent;
  min-width: 0;
}

/* ================================================================
   HERO CARD
   ================================================================ */

.hero-card {
  border-radius: var(--jogo-r);
  background: linear-gradient(135deg, #0b1610 0%, #132219 50%, #0e1d14 100%);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-card[hidden] {
  display: none;
}

.hero-blur-decoration {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(31, 174, 78, 0.22) 0%, transparent 55%),
    radial-gradient(circle at 5% 80%, rgba(31, 174, 78, 0.07) 0%, transparent 45%);
  pointer-events: none;
}

.hero-left {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(31, 174, 78, 0.18);
  border: 1px solid rgba(31, 174, 78, 0.28);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5de08a;
  width: fit-content;
  margin-bottom: 10px;
}

.hero-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5de08a;
  animation: jogo-pulse 1.6s ease infinite;
  flex-shrink: 0;
}

.hero-lottery-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-deadline {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 3px;
}

.hero-time {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.90);
}

.hero-date {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.28);
}

.hero-timer {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 60px;
}

.timer-sep {
  font-family: var(--jogo-mono);
  font-size: 26px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.22);
  line-height: 1;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.timer-value {
  font-family: var(--jogo-mono);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: 2px;
  text-align: center;
}

.timer-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

/* ================================================================
   SECTION ROW
   ================================================================ */

.section-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.section-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jogo-ink-30);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Modality tabs ---- */

.modality-tabs-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.modality-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.modality-tabs::-webkit-scrollbar {
  display: none;
}

.modality-tabs-skeleton {
  display: flex;
  gap: 6px;
}

.modality-tabs-skeleton span {
  display: block;
  width: 80px;
  height: 36px;
  border-radius: 100px;
  background: var(--jogo-line);
  animation: jogo-skeleton 1.4s ease infinite;
  flex-shrink: 0;
}

@keyframes jogo-skeleton {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.modality-tab {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--jogo-line);
  background: var(--jogo-surface);
  cursor: pointer;
  font-family: var(--jogo-font);
  transition: all 0.14s;
  white-space: nowrap;
}

.modality-tab__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--jogo-ink-60);
  transition: color 0.14s;
}

.modality-tab__hint {
  font-size: 10px;
  color: var(--jogo-ink-30);
  font-weight: 500;
  transition: color 0.14s;
}

.modality-tab:hover {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary-soft);
}

.modality-tab:hover .modality-tab__label {
  color: var(--jogo-primary);
}

.modality-tab.active {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary);
}

.modality-tab.active .modality-tab__label {
  color: #fff;
}

.modality-tab.active .modality-tab__hint {
  color: rgba(255, 255, 255, 0.60);
}

/* ================================================================
   GAME CARD
   ================================================================ */

.game-card {
  background: var(--jogo-surface);
  border-radius: var(--jogo-r);
  border: 1px solid var(--jogo-line);
  overflow: hidden;
  flex-shrink: 0;
}

.game-card[hidden] {
  display: none;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 20px 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--jogo-ink);
  margin: 0;
  padding: 0;
}

.card-subtitle {
  font-size: 12px;
  color: var(--jogo-ink-60);
  margin: 2px 0 0;
  padding: 0;
}

.jogo-seo-section {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.card-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Filter tabs */

.filter-tabs {
  display: flex;
  background: var(--jogo-bg);
  border-radius: 100px;
  padding: 3px;
}

.filter-tab {
  padding: 4px 12px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-family: var(--jogo-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--jogo-ink-60);
  cursor: pointer;
  transition: all 0.14s;
}

.filter-tab--active,
.filter-tab.active {
  background: var(--jogo-surface);
  color: var(--jogo-ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.10);
}

/* Ghost button small */

.btn-ghost-sm {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--jogo-line);
  background: transparent;
  font-family: var(--jogo-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--jogo-ink-60);
  cursor: pointer;
  transition: all 0.14s;
  white-space: nowrap;
}

.btn-ghost-sm .icon {
  width: 12px;
  height: 12px;
}

.btn-ghost-sm:hover {
  border-color: var(--jogo-primary);
  color: var(--jogo-primary);
  background: var(--jogo-primary-soft);
}

/* Accent variant — used for "Salvar" (save favorites) so the action stands out
   among the header controls instead of reading as a passive ghost button. */
.btn-ghost-sm--accent {
  border-color: var(--jogo-primary);
  color: var(--jogo-primary);
  background: var(--jogo-primary-soft);
}

.btn-ghost-sm--accent:hover:not(:disabled) {
  color: #fff;
  background: var(--jogo-primary);
}

.btn-ghost-sm--accent:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.card-body {
  padding: 0 20px 20px;
}

/* ================================================================
   ANIMALS GRID
   ================================================================ */

.animals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  gap: 6px;
  padding: 0 16px 16px;
}

.animal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 4px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: var(--jogo-font);
  transition: background 0.12s, border-color 0.12s;
  position: relative;
}

.animal-card:hover {
  background: var(--jogo-ink-10);
}

.animal-card--selected {
  background: rgba(31, 174, 78, 0.10);
  border-color: var(--jogo-primary);
}

.animal-photo-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: visible;
  position: relative;
  flex-shrink: 0;
}

.animal-photo-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: var(--ox, 50%) var(--oy, 50%);
  display: block;
  background: var(--jogo-bg);
}

/* Per-animal crop window (object-position), derived from the measured face
   position in each no-bg asset: the cutouts have wildly different aspect
   ratios, so a uniform center crop cuts heads off. Portrait assets slide
   the window vertically (--oy), landscape assets horizontally (--ox). */
[data-animal-id="1"]  { --oy: 0%; }
[data-animal-id="2"]  { --oy: 97%; }
[data-animal-id="3"]  { --oy: 0%; }
[data-animal-id="4"]  { --oy: 37%; }
[data-animal-id="5"]  { --oy: 0%; }
[data-animal-id="6"]  { --oy: 0%; }
[data-animal-id="7"]  { --oy: 0%; }
[data-animal-id="8"]  { --ox: 100%; }
[data-animal-id="9"]  { --oy: 0%; }
[data-animal-id="10"] { --oy: 49%; }
[data-animal-id="11"] { --ox: 100%; }
[data-animal-id="12"] { --oy: 0%; }
[data-animal-id="13"] { --oy: 0%; }
[data-animal-id="15"] { --oy: 50%; }
[data-animal-id="16"] { --oy: 0%; }
[data-animal-id="17"] { --oy: 0%; }
[data-animal-id="19"] { --oy: 0%; }
[data-animal-id="20"] { --ox: 100%; }
[data-animal-id="21"] { --ox: 100%; }
[data-animal-id="22"] { --oy: 0%; }
[data-animal-id="23"] { --ox: 0%; }
[data-animal-id="24"] { --oy: 0%; }
[data-animal-id="25"] { --oy: 34%; }

.animal-badge {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--jogo-ink);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--jogo-surface);
  z-index: 1;
}

.animal-check {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--jogo-primary);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--jogo-surface);
  z-index: 1;
}

.animal-check .icon {
  width: 10px;
  height: 10px;
}

.animal-card--selected .animal-check {
  display: flex;
}

/* Multi-group modalities (quebras > 1): a group may repeat within a guess, so the
   check toggle gives way to a count badge plus a decrement control. Both are shown
   via JS only while the group sits in the buffer being built. */
.animal-card--multi .animal-check {
  display: none;
}

.animal-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--jogo-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--jogo-surface);
  z-index: 1;
}

.animal-decrement {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-danger);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--jogo-surface);
  cursor: pointer;
  z-index: 2;
}

.animal-decrement .icon {
  width: 12px;
  height: 12px;
}

.animal-name {
  font-size: 10px;
  font-weight: 500;
  color: var(--jogo-ink-60);
  text-align: center;
  line-height: 1.2;
}

.animal-card--selected .animal-name {
  color: var(--jogo-primary);
  font-weight: 600;
}

.animals-empty {
  padding: 20px;
  text-align: center;
  color: var(--jogo-ink-30);
  font-size: 13px;
}

/* Numeric keyboard (non-animal modalities) */

.numeric-keyboard {
  padding: 0 16px 16px;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}

/* ---- Combined quantity stepper ---- */

.combined-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 14px;
  padding: 10px 14px;
  background: var(--jogo-bg);
  border-radius: var(--jogo-r-xs);
  border: 1px solid var(--jogo-line);
}

.combined-count-row[hidden] {
  display: none;
}

.combined-count-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--jogo-ink-60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.combined-count-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.combined-count-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--jogo-line);
  background: var(--jogo-surface);
  color: var(--jogo-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--jogo-font);
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.combined-count-btn:hover:not(:disabled) {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary-soft);
  color: var(--jogo-primary);
}

.combined-count-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.combined-count-value {
  min-width: 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--jogo-ink);
  font-variant-numeric: tabular-nums;
}

/* ---- Digit display ---- */

.digit-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
  min-height: 46px;
  flex-wrap: nowrap;
}

.digit-slot {
  width: 36px;
  height: 42px;
  border-radius: var(--jogo-r-xs);
  border: 1.5px solid var(--jogo-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--jogo-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--jogo-ink-30);
  background: var(--jogo-bg);
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  flex-shrink: 0;
}

.digit-slot.filled {
  border-color: var(--jogo-primary);
  color: var(--jogo-ink);
  background: var(--jogo-primary-soft);
}

.digit-slot.current {
  border-color: var(--jogo-primary);
  box-shadow: 0 0 0 3px var(--jogo-primary-soft);
  animation: digit-pulse 1.1s ease infinite;
}

@keyframes digit-pulse {

  0%,
  100% {
    border-color: var(--jogo-primary);
  }

  50% {
    border-color: rgba(31, 174, 78, 0.35);
  }
}

/* Smaller slots for longer sequences */
.digit-display--md .digit-slot {
  width: 30px;
  height: 38px;
  font-size: 17px;
}

.digit-display--sm .digit-slot {
  width: 26px;
  height: 34px;
  font-size: 15px;
}

.digit-display--xs .digit-slot {
  width: 22px;
  height: 30px;
  font-size: 13px;
  border-radius: 5px;
}

.digit-sep {
  font-family: var(--jogo-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--jogo-ink-30);
  flex-shrink: 0;
  line-height: 1;
  margin: 0 1px;
}

/* ---- Keyboard keys ---- */

.keyboard-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.key-btn {
  padding: 14px 8px;
  border-radius: var(--jogo-r-xs);
  border: 1.5px solid var(--jogo-line);
  background: var(--jogo-surface);
  font-family: var(--jogo-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--jogo-ink);
  cursor: pointer;
  text-align: center;
  transition: background 0.12s, border-color 0.12s;
  user-select: none;
}

.key-btn:hover {
  background: var(--jogo-bg);
  border-color: var(--jogo-ink-30);
}

.key-btn:active {
  transform: scale(0.95);
}

.key-btn--random {
  color: var(--jogo-primary);
  border-color: var(--jogo-primary);
  background: var(--jogo-primary-soft);
}

.key-btn--backspace {
  color: var(--jogo-ink-60);
  font-size: 16px;
}

/* ================================================================
   GAME TWO-COL
   ================================================================ */

.game-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex-shrink: 0;
}

/* ---- Lottery chips ---- */

.lottery-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.lottery-tabs-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.lottery-tabs-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 100%;
  background: linear-gradient(to right, transparent, var(--jogo-surface));
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s;
}

.lottery-tabs-wrap.is-end::after {
  opacity: 0;
}

.lottery-chips {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 6px;
  padding-right: 32px;
}

.lottery-chips::-webkit-scrollbar {
  display: none;
}

.lottery-chip {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--jogo-line);
  background: transparent;
  font-family: var(--jogo-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--jogo-ink-60);
  cursor: pointer;
  transition: all 0.14s;
  white-space: nowrap;
}

.lottery-chip:hover {
  border-color: var(--jogo-primary);
  color: var(--jogo-primary);
  background: var(--jogo-primary-soft);
}

.lottery-chip--active {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary);
  color: #fff;
}

/* ---- Lottery group tabs ---- */

.lottery-tab {
  padding: 5px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--jogo-line);
  background: transparent;
  font-family: var(--jogo-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--jogo-ink-60);
  cursor: pointer;
  transition: all 0.14s;
  white-space: nowrap;
}

.lottery-tab:hover {
  border-color: var(--jogo-primary);
  color: var(--jogo-primary);
  background: var(--jogo-primary-soft);
}

.lottery-tab--active {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary);
  color: #fff;
}

.lottery-tab--instant {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
  font-weight: 700;
}

.lottery-tab--instant:hover {
  background: #fde68a;
  border-color: #b45309;
  color: #78350f;
}

.lottery-tab--instant.lottery-tab--active {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

/* Instant mode info panel */
.instant-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  border-radius: var(--jogo-r-xs);
  width: 100%;
}

.instant-info__title {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
}

.instant-info__desc {
  font-size: 12px;
  color: #a16207;
  line-height: 1.5;
}

/* ---- Horários panel (flat grid) ---- */

.horarios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.horario-btn {
  padding: 7px 10px;
  border-radius: var(--jogo-r-xs);
  border: 1.5px solid var(--jogo-line);
  background: transparent;
  font-family: var(--jogo-font);
  font-size: 12px;
  font-weight: 500;
  color: var(--jogo-ink-60);
  cursor: pointer;
  text-align: center;
  transition: all 0.14s;
  white-space: nowrap;
}

@media (hover: hover) {
  .horario-btn:hover {
    border-color: var(--jogo-primary);
    color: var(--jogo-primary);
    background: var(--jogo-primary-soft);
  }
}

.horario-btn--active {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary-soft);
  color: var(--jogo-primary);
  font-weight: 700;
}

.horario-btn--past {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.lottery-empty {
  font-size: 12px;
  color: var(--jogo-ink-30);
  text-align: center;
  padding: 12px 0;
}

/* ---- Placements grid ---- */

.placements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.placement-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--jogo-r-xs);
  border: 1.5px solid var(--jogo-line);
  background: transparent;
  font-family: var(--jogo-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--jogo-ink-60);
  cursor: pointer;
  text-align: left;
  transition: all 0.14s;
  width: 100%;
}

.placement-btn__radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--jogo-line);
  flex-shrink: 0;
  transition: all 0.14s;
}

.placement-btn:hover {
  border-color: var(--jogo-primary);
  color: var(--jogo-ink);
  background: var(--jogo-primary-soft);
}

.placement-btn:hover .placement-btn__radio {
  border-color: var(--jogo-primary);
}

.placement-btn--active {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary-soft);
  color: var(--jogo-primary);
  font-weight: 600;
}

.placement-btn--active .placement-btn__radio {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary);
  box-shadow: inset 0 0 0 3px var(--jogo-surface);
}

/* ---- Vale também ---- */

.vale-section {
  border-top: 1px solid var(--jogo-line);
  padding-top: 14px;
  margin-top: 10px;
}

.vale-section[hidden] {
  display: none;
}

.vale-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jogo-ink-30);
  margin-bottom: 8px;
}

.vale-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vale-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--jogo-ink-60);
  user-select: none;
}

.vale-check {
  accent-color: var(--jogo-primary);
  width: 15px;
  height: 15px;
  cursor: pointer;
  flex-shrink: 0;
}

.vale-cotacao {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--jogo-primary);
}

/* ================================================================
   CUPOM PANEL
   ================================================================ */

.jogo-cupom {
  background: var(--jogo-surface);
  border-left: 1px solid var(--jogo-line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

/* Pega de arraste — só aparece no sheet mobile */
.cupom-grab {
  display: none;
}

/* No desktop o wrapper do corpo é transparente (summary + palpites viram
   filhos diretos da coluna); no sheet mobile ele vira o scroller. */
.cupom-body {
  display: contents;
}

/* ---- Header ---- */

.cupom-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 14px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--jogo-line);
}

.cupom-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jogo-ink-30);
  margin-bottom: 2px;
}

.cupom-count {
  font-size: 15px;
  font-weight: 700;
  color: var(--jogo-ink);
}

.cupom-clear-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--jogo-bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jogo-ink-60);
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}

.cupom-clear-btn:hover {
  background: #fee2e2;
  color: #dc2626;
}

.cupom-clear-btn .icon {
  width: 15px;
  height: 15px;
}

.cupom-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Fechar o sheet (só mobile — no desktop o bilhete é fixo). Neutro, sem o
   vermelho do limpar, pra não parecer destrutivo. */
.cupom-close-sheet-btn {
  display: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--jogo-bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--jogo-ink-60);
  transition: background 0.12s, color 0.12s;
  flex-shrink: 0;
}

.cupom-close-sheet-btn:hover {
  background: var(--jogo-line);
  color: var(--jogo-ink);
}

.cupom-close-sheet-btn .icon {
  width: 16px;
  height: 16px;
}

/* ---- Summary rows ---- */

.cupom-summary {
  padding: 12px 20px;
  border-bottom: 1px solid var(--jogo-line);
  flex-shrink: 0;
}

.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 3px 0;
}

.summary-key {
  font-size: 12px;
  color: var(--jogo-ink-30);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.summary-val {
  font-size: 12px;
  color: var(--jogo-ink);
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Animals section ---- */

.cupom-animals-section {
  padding: 14px 20px;
  border-bottom: 1px solid var(--jogo-line);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cupom-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jogo-ink-30);
  margin-bottom: 10px;
  flex-shrink: 0;
}

.cupom-animals-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  flex: 1;
  min-height: 60px;
  scrollbar-width: thin;
  scrollbar-color: var(--jogo-line) transparent;
}

.cupom-animal-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--jogo-r-xs);
  background: var(--jogo-bg);
  border: 1px solid var(--jogo-line);
}

.cupom-animal-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--jogo-primary-soft);
}

.cupom-animal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ox, 50%) var(--oy, 50%);
}

.cupom-animal-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cupom-animal-thumb--placeholder .icon {
  width: 20px;
  height: 20px;
  color: var(--jogo-primary);
}

.cupom-animal-info {
  flex: 1;
  min-width: 0;
}

.cupom-animal-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--jogo-ink);
  line-height: 1.2;
  margin-bottom: 4px;
}

.cupom-animal-dezena {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.dezena-chip {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--jogo-ink-10);
  font-size: 10px;
  font-family: var(--jogo-mono);
  font-weight: 600;
  color: var(--jogo-ink-60);
}

.cupom-animal-remove {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jogo-ink-30);
  flex-shrink: 0;
  transition: all 0.12s;
}

.cupom-animal-remove:hover {
  background: #fee2e2;
  color: #dc2626;
}

.cupom-animal-remove .icon {
  width: 13px;
  height: 13px;
}

.cupom-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 0;
  color: var(--jogo-ink-30);
  font-size: 12px;
  text-align: center;
}

.cupom-empty .icon {
  width: 28px;
  height: 28px;
  opacity: 0.25;
}

/* ---- Footer do cupom (valor + totais) ---- */

.cupom-footer {
  flex-shrink: 0;
}

/* ---- Valor section ---- */

.cupom-valor-section {
  padding: 14px 20px;
  border-bottom: 1px solid var(--jogo-line);
  flex-shrink: 0;
}

/* Pulso ao chegar via "Definir valor": guia o olho até o controle de valor. */
.cupom-valor-section--pulse {
  animation: valuePulse 1.1s ease;
}

@keyframes valuePulse {
  0%, 100% { background: transparent; }
  25%      { background: var(--jogo-primary-soft); }
}

.valor-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.stepper-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--jogo-line);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jogo-ink);
  transition: all 0.12s;
  flex-shrink: 0;
}

.stepper-btn:hover {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary-soft);
  color: var(--jogo-primary);
}

.valor-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--jogo-bg);
  border-radius: var(--jogo-r-xs);
  border: 1.5px solid var(--jogo-line);
  padding: 0 12px;
  height: 40px;
  transition: border-color 0.12s;
}

.valor-input-wrap:focus-within {
  border-color: var(--jogo-primary);
}

.valor-currency {
  font-size: 13px;
  font-weight: 600;
  color: var(--jogo-ink-60);
}

.valor-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--jogo-font);
  font-size: 15px;
  font-weight: 700;
  color: var(--jogo-ink);
  text-align: right;
  outline: none;
  min-width: 0;
}

.valor-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.preset-btn {
  padding: 7px 4px;
  border-radius: var(--jogo-r-xs);
  border: 1.5px solid var(--jogo-line);
  background: transparent;
  font-family: var(--jogo-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--jogo-ink-60);
  cursor: pointer;
  text-align: center;
  transition: all 0.12s;
}

.preset-btn:hover {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary-soft);
  color: var(--jogo-primary);
}

.preset-btn--active {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary);
  color: #fff;
}

/* ---- Dividir valor entre as apostas ---- */

.divide-stakes-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  cursor: pointer;
  font-size: 13px;
  color: var(--jogo-ink-60);
  user-select: none;
}

/* ---- Totals ---- */

.cupom-totals {
  padding: 16px 20px 20px;
  flex-shrink: 0;
}

.totals-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.totals-label {
  font-size: 13px;
  color: var(--jogo-ink-60);
}

.totals-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--jogo-ink);
}

.totals-row--prize .totals-label {
  font-weight: 600;
  color: var(--jogo-ink);
}

.totals-prize {
  font-size: 17px;
  font-weight: 800;
  color: var(--jogo-primary);
}

.btn-apostar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 100px;
  border: none;
  background: var(--jogo-primary);
  color: #fff;
  font-family: var(--jogo-font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, opacity 0.15s, transform 0.1s;
  margin-top: 12px;
}

.btn-apostar:hover:not(:disabled) {
  background: var(--jogo-primary-d);
}

.btn-apostar:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-apostar:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

/* Loading state — spinner enquanto a aposta é enviada */
.btn-apostar.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
  opacity: 1;
}

.btn-apostar.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: btn-apostar-spin 0.6s linear infinite;
}

@keyframes btn-apostar-spin {
  to { transform: rotate(360deg); }
}

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--jogo-line);
  background: transparent;
  color: var(--jogo-ink);
  font-family: var(--jogo-font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.14s;
  margin-top: 8px;
}

.btn-outline:hover {
  border-color: var(--jogo-ink-60);
}

.bet-helper {
  font-size: 11px;
  color: var(--jogo-ink-30);
  text-align: center;
  margin: 10px 0 0;
  line-height: 1.4;
}

/* ================================================================
   MOBILE DRAWER
   ================================================================ */

.cupom-drawer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--jogo-surface);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(14, 27, 20, 0.12);
  z-index: 50;
  flex-direction: column;
}

.drawer-handle {
  padding: 10px 20px 8px;
  cursor: pointer;
}

.drawer-handle-bar {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--jogo-line);
  margin: 0 auto 12px;
}

.drawer-handle-content {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.drawer-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.drawer-detail {
  font-size: 11px;
  color: var(--jogo-ink-30);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-animals-stack {
  display: flex;
}

.drawer-animals-stack .stack-thumb {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--jogo-surface);
  overflow: hidden;
  margin-right: -10px;
  background: var(--jogo-primary-soft);
  flex-shrink: 0;
}

.drawer-animals-stack .stack-thumb:last-child {
  margin-right: 0;
}

.drawer-animals-stack .stack-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--ox, 50%) var(--oy, 50%);
}

.drawer-animals-stack .stack-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-animals-stack .stack-thumb--placeholder .icon {
  width: 16px;
  height: 16px;
  color: var(--jogo-primary);
}

.stack-more {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--jogo-surface);
  background: var(--jogo-ink-10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--jogo-ink-60);
  flex-shrink: 0;
}

.btn-view-guesses {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--jogo-line);
  background: var(--jogo-bg);
  color: var(--jogo-ink-60);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: auto;
  transition: background 0.12s, color 0.12s;
}

.btn-view-guesses:hover {
  background: var(--jogo-primary-soft);
  color: var(--jogo-primary);
  border-color: var(--jogo-primary);
}

.btn-view-guesses .icon {
  width: 14px;
  height: 14px;
}

/* Guesses quick-view modal */

.guesses-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 27, 20, 0.55);
  z-index: 300;
  display: flex;
  align-items: flex-end;
}

.guesses-modal-backdrop[hidden] {
  display: none;
}

.guesses-modal {
  width: 100%;
  background: var(--jogo-surface);
  border-radius: 20px 20px 0 0;
  max-height: 60dvh;
  display: flex;
  flex-direction: column;
  animation: sheetSlideUp 0.22s ease;
}

.guesses-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--jogo-line);
  flex-shrink: 0;
}

.guesses-modal__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--jogo-ink);
}

.guesses-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--jogo-bg);
  color: var(--jogo-ink-60);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.guesses-modal__close .icon {
  width: 16px;
  height: 16px;
}

.guesses-modal__body {
  overflow-y: auto;
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
  align-content: start;
}

.guess-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px;
  border-radius: 10px;
  background: var(--jogo-bg);
  border: 1.5px solid var(--jogo-line);
  text-align: center;
}

.guess-card__img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: var(--ox, 50%) var(--oy, 50%);
  background: var(--jogo-primary-soft);
}

.guess-card__num {
  font-family: var(--jogo-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--jogo-ink);
  line-height: 1;
  padding: 4px 0;
}

.guess-card__name {
  font-size: 10px;
  font-weight: 600;
  color: var(--jogo-ink);
  line-height: 1.2;
}

.guess-card__dezena {
  font-size: 9px;
  color: var(--jogo-ink-30);
  font-family: var(--jogo-mono);
}

.drawer-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--jogo-ink);
}

.drawer-prize-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--jogo-ink-60);
  padding-left: 2px;
}

.drawer-prize-line strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--jogo-primary);
}

.drawer-bet-bar {
  padding: 6px 16px max(16px, env(safe-area-inset-bottom));
}

.btn-apostar--mobile {
  font-size: 14px;
  padding: 13px 20px;
  margin-top: 0;
}

/* Botão primário mobile em 2 etapas. No modo "Definir valor" some o separador
   e o total e aparece o chevron; no modo padrão mostra "Apostar · R$ X". */
.bet-btn__chevron {
  display: none;
  width: 18px;
  height: 18px;
}

.btn-apostar--define .bet-btn__sep,
.btn-apostar--define .bet-btn__total {
  display: none;
}

.btn-apostar--define .bet-btn__chevron {
  display: inline-block;
}

/* ================================================================
   RESPONSIVE — desktop estreito (1024-1199px)
   ================================================================ */

@media (max-width: 1199px) and (min-width: 1024px) {
  :root {
    --jogo-cupom-w: 320px;
  }
}

/* ================================================================
   RESPONSIVE — tablet / mobile (≤ 1023px)
   ================================================================ */

@media (max-width: 1023px) {

  /* Hide desktop cupom, show drawer */
  .jogo-split {
    grid-template-columns: 1fr;
  }

  .jogo-cupom {
    display: none;
  }

  .cupom-drawer {
    display: flex;
  }

  /* Content — bottom clears the fixed drawer (~85px handle + ~68px bet-bar + buffer) */
  .jogo-content {
    padding: 12px 12px 180px;
  }

  /* Hero: compact */
  .hero-card {
    padding: 16px 18px;
    gap: 14px;
  }

  .timer-unit {
    padding: 8px 10px;
    min-width: 50px;
  }

  .timer-value {
    font-size: 22px;
  }

  .timer-sep {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .hero-lottery-name {
    font-size: 17px;
  }

  /* Animals grid: minmax ensures at least 46px per column */
  .animals-grid {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 5px;
    padding: 0 12px 12px;
  }

  .animal-photo-wrap {
    width: 46px;
    height: 46px;
  }

  /* Two-col: stack */
  .game-two-col {
    grid-template-columns: 1fr;
  }

  /* Card header */
  .card-header-actions {
    flex-wrap: wrap;
  }

  /* Cupom como bottom-sheet arrastável.
     Layout fixo: grab + header no topo (não encolhem), corpo rolável no meio,
     footer (valor + totais) embaixo. Funciona em qualquer altura — os palpites
     nunca somem (rolam no corpo) e o valor fica sempre visível no footer. */
  .jogo-cupom.is-mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    height: 90dvh;
    max-height: 100dvh;
    z-index: 100;
    border-left: none;
    border-top: 1px solid var(--jogo-line);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -4px 24px rgba(14, 27, 20, 0.15);
    overflow: hidden;
    animation: sheetSlideUp 0.25s ease;
    /* Anima só transform/border-radius. Antes transicionava `height`
       (90dvh→100dvh no expand), que força reflow a cada frame e trava. */
    transition: transform 0.28s var(--modal-ease, ease),
                border-radius 0.28s ease;
  }

  /* Expandido — tela cheia */
  .jogo-cupom.is-mobile-open.is-expanded {
    height: 100dvh;
    border-radius: 0;
  }

  /* Pega de arraste */
  .jogo-cupom.is-mobile-open .cupom-grab {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 100%;
    height: 22px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: grab;
    touch-action: none;
  }

  .jogo-cupom.is-mobile-open .cupom-grab__bar {
    width: 40px;
    height: 4px;
    border-radius: 100px;
    background: var(--jogo-line);
  }

  /* Header e footer não encolhem; o corpo é o único scroller */
  .jogo-cupom.is-mobile-open .cupom-header,
  .jogo-cupom.is-mobile-open .cupom-footer {
    flex-shrink: 0;
  }

  /* O botão de fechar só existe no sheet mobile */
  .jogo-cupom.is-mobile-open .cupom-close-sheet-btn {
    display: flex;
  }

  .jogo-cupom.is-mobile-open .cupom-footer {
    box-shadow: 0 -6px 16px rgba(14, 27, 20, 0.05);
  }

  .jogo-cupom.is-mobile-open .cupom-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }

  /* No corpo rolável, a lista cresce naturalmente (sem scroll interno) */
  .jogo-cupom.is-mobile-open .cupom-animals-section {
    flex: 0 0 auto;
    overflow: visible;
  }

  .jogo-cupom.is-mobile-open .cupom-animals-list {
    flex: none;
    min-height: 0;
    overflow: visible;
  }

  .cupom-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14, 27, 20, 0.50);
    z-index: 99;
  }

  .cupom-sheet-overlay.is-open {
    display: block;
  }
}

@keyframes sheetSlideUp {
  from {
    transform: translateY(40%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================================================================
   RESPONSIVE — mobile (≤ 599px)
   ================================================================ */

@media (max-width: 599px) {

  /* Animals: menor */
  .animals-grid {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 4px;
    padding: 0 8px 12px;
  }

  .animal-photo-wrap {
    width: 42px;
    height: 42px;
  }

  .animal-badge {
    width: 16px;
    height: 16px;
    font-size: 7px;
  }

  .animal-name {
    font-size: 9px;
  }

  /* Hero: stack vertically */
  .hero-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
    gap: 12px;
  }

  .hero-lottery-name {
    font-size: 15px;
  }

  .hero-timer {
    align-self: stretch;
    justify-content: center;
    gap: 4px;
  }

  .timer-unit {
    flex: 1;
    min-width: 0;
    padding: 8px 6px;
  }

  .timer-value {
    font-size: 22px;
    letter-spacing: 1px;
  }

  .timer-sep {
    font-size: 18px;
    margin-bottom: 14px;
  }

  /* Horários: 2-col */
  .horarios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Valor presets: 2 por linha em telas muito pequenas */
  .valor-presets {
    grid-template-columns: repeat(6, 1fr);
  }

  /* Surpresinha hidden — saves header space */
  #btnSurpresinha {
    display: none;
  }

  /* Modalidade: eyebrow on its own line, pills + picker get full width */
  .modality-row {
    flex-wrap: wrap;
    gap: 8px;
  }

  .modality-row .section-eyebrow {
    flex-basis: 100%;
  }

  /* Right-edge fade hints the pills scroll horizontally */
  .modality-tabs-wrap {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent 100%);
  }

  /* "Ver todas as modalidades" reads as a clear action */
  .modality-row .scroll-more-btn {
    width: 34px;
    height: 34px;
    border-color: var(--jogo-primary);
    color: var(--jogo-primary);
    background: var(--jogo-primary-soft);
  }

  /* Hero: trim height — drop low-value date line, tighten spacing */
  .jogo-content {
    gap: 10px;
  }

  .hero-date {
    display: none;
  }

  .hero-pill {
    margin-bottom: 6px;
  }

  .hero-lottery-name {
    margin-bottom: 4px;
  }
}

/* ================================================================
   RESPONSIVE — muito pequeno (≤ 374px)
   ================================================================ */

@media (max-width: 374px) {
  .animals-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
  }

  .animal-photo-wrap {
    width: 38px;
    height: 38px;
  }
}

/* ================================================================
   DATE NAV (injected by jogo.js into #lotteryCard)
   ================================================================ */

.lottery-date-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.date-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--jogo-r-xs);
  border: 1px solid var(--jogo-line);
  background: var(--jogo-surface);
  color: var(--jogo-ink);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}

.date-nav-btn:hover:not(:disabled) {
  background: var(--jogo-primary-soft);
  border-color: var(--jogo-primary);
  color: var(--jogo-primary);
}

.date-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.date-nav-label {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--jogo-ink);
}

/* Future-date alert — warns when the chosen lottery day isn't today.
   Amber tones (no warning token exists in the theme yet). */
.future-date-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: var(--jogo-r-xs);
  background: #fff4de;
  border: 1px solid #f2c879;
  color: #8a5800;
  font-family: var(--jogo-font);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}

.future-date-alert[hidden] {
  display: none;
}

.future-date-alert .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.future-date-alert strong {
  font-weight: 800;
}

/* ================================================================
   SKELETON / LOADING STATES
   ================================================================ */

@keyframes skeleton-shimmer {
  0% {
    background-position: -600px 0;
  }

  100% {
    background-position: 600px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg,
      var(--jogo-ink-10) 25%,
      var(--jogo-surface) 50%,
      var(--jogo-ink-10) 75%);
  background-size: 1200px 100%;
  animation: skeleton-shimmer 1.6s infinite linear;
  border-radius: var(--jogo-r-xs);
}

/* Animal card skeleton — mirrors .animal-card dimensions */
.animal-card--skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 7px 4px;
  pointer-events: none;
}

.skeleton-animal-img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.skeleton-animal-label {
  height: 10px;
  border-radius: 4px;
}

/* Lottery skeleton */
.skeleton-tab {
  height: 28px;
  border-radius: 100px;
  flex-shrink: 0;
}

.skeleton-horario {
  height: 34px;
  border-radius: var(--jogo-r-xs);
  flex-shrink: 0;
}

/* Button loading spinner — currentColor matches whatever button it sits in. */
.btn-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
  vertical-align: -2px;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================================================
   SCROLL MORE BUTTON
   ================================================================ */

.scroll-more-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--jogo-line);
  background: var(--jogo-surface);
  color: var(--jogo-ink-60);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.14s, color 0.14s, background 0.14s;
}

.scroll-more-btn:hover {
  border-color: var(--jogo-primary);
  color: var(--jogo-primary);
  background: var(--jogo-primary-soft);
}

.scroll-more-btn .icon {
  width: 14px;
  height: 14px;
}

/* ================================================================
   PICKER PANEL (bottom sheet)
   ================================================================ */

.picker-panel {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 600;
  align-items: flex-end;
  justify-content: center;
}

.picker-panel.is-open {
  display: flex;
}

.picker-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 27, 20, 0.55);
}

.picker-panel__sheet {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--jogo-surface);
  border-radius: 20px 20px 0 0;
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  animation: picker-slide-up 0.26s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes picker-slide-up {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.picker-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--jogo-line);
  flex-shrink: 0;
}

.picker-panel__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--jogo-ink);
}

.picker-panel__close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--jogo-ink-10);
  color: var(--jogo-ink-60);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}

.picker-panel__close:hover {
  background: var(--jogo-line);
  color: var(--jogo-ink);
}

.picker-panel__close .icon {
  width: 14px;
  height: 14px;
}

.picker-panel__body {
  overflow-y: auto;
  padding: 16px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- Picker options ---- */

.picker-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--jogo-r-xs);
  border: 1.5px solid var(--jogo-line);
  background: transparent;
  font-family: var(--jogo-font);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--jogo-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s, background 0.14s, color 0.14s;
}

.picker-option:hover {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary-soft);
  color: var(--jogo-primary);
}

.picker-option--active {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary);
  color: #fff;
}

.picker-option--instant {
  border-color: #d97706;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
}

.picker-option--instant:hover {
  background: #fde68a;
  border-color: #b45309;
  color: #78350f;
}

.picker-option--instant.picker-option--active {
  background: #d97706;
  border-color: #d97706;
  color: #fff;
}

/* ---- Picker sections ---- */

.picker-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.picker-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--jogo-ink-30);
}

.picker-group-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---- Picker horário grid ---- */

.picker-horario-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.picker-horario-btn {
  padding: 7px 12px;
  border-radius: var(--jogo-r-xs);
  border: 1.5px solid var(--jogo-line);
  background: transparent;
  font-family: var(--jogo-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--jogo-ink-60);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.14s, background 0.14s, color 0.14s;
}

@media (hover: hover) {
  .picker-horario-btn:hover:not(:disabled) {
    border-color: var(--jogo-primary);
    color: var(--jogo-primary);
    background: var(--jogo-primary-soft);
  }
}

.picker-horario-btn--active {
  border-color: var(--jogo-primary);
  background: var(--jogo-primary);
  color: #fff;
}

.picker-horario-btn--past,
.picker-horario-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}