/* Candy / glossy kid-game UI icons — Salinha da Tia Bel */
.screen { width: 100%; box-sizing: border-box; }
.games-grid {
  align-self: stretch;
  width: 100%;
  max-width: 840px;
  min-height: 160px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ico {
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
  color: #fff;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.15));
  pointer-events: none;
}
.ico-sm { width: 20px; height: 20px; }
.ico-tiny { width: 16px; height: 16px; display: inline-block; }
.ico-lg { width: 32px; height: 32px; }
.ico-gold { color: #FFD700; }

.candy {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  color: #fff;
  position: relative;
  box-shadow:
    0 5px 0 rgba(0,0,0,0.16),
    0 8px 16px rgba(0,0,0,0.18),
    inset 0 4px 0 rgba(255,255,255,0.45),
    inset 0 -3px 0 rgba(0,0,0,0.12);
  transition: transform 0.16s ease, filter 0.16s ease;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, #c9b6ff 0%, #8a6cf0 52%, #6b4ad4 100%);
}
.candy::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 10px;
  right: 16px;
  height: 14px;
  border-radius: 20px 20px 16px 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.7), rgba(255,255,255,0));
  pointer-events: none;
}
.candy:hover, .candy:active { transform: scale(1.08) translateY(-1px); }
.candy:active { box-shadow: 0 2px 0 rgba(0,0,0,0.16), 0 4px 10px rgba(0,0,0,0.18), inset 0 4px 0 rgba(255,255,255,0.4); }
.candy.on { box-shadow: 0 5px 0 rgba(0,0,0,0.16), 0 0 0 3px #FFD700, 0 8px 16px rgba(0,0,0,0.18), inset 0 4px 0 rgba(255,255,255,0.45); }

.candy-pink  { background: linear-gradient(180deg, #ffb3da 0%, #ff5aaa 52%, #e23088 100%); }
.candy-blue  { background: linear-gradient(180deg, #b4e0ff 0%, #3aa0ff 52%, #1d78de 100%); }
.candy-gold  { background: linear-gradient(180deg, #fff0a0 0%, #ffc107 52%, #f09800 100%); }
.candy-mint  { background: linear-gradient(180deg, #b6ffdc 0%, #2ed573 52%, #19a85a 100%); }
.candy-lilac { background: linear-gradient(180deg, #e0c8ff 0%, #a277ff 52%, #7a4ee0 100%); }
.candy-coral { background: linear-gradient(180deg, #ffc3b0 0%, #ff7b54 52%, #e85a36 100%); }
.candy-sky   { background: linear-gradient(180deg, #c8f1ff 0%, #4ec2f0 52%, #2a9fd6 100%); }

.candy-sm {
  width: 36px;
  height: 36px;
  border-width: 2px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.14), 0 5px 10px rgba(0,0,0,0.14), inset 0 3px 0 rgba(255,255,255,0.45);
}
.candy-sm .ico { width: 20px; height: 20px; }
.candy-sm::after { top: 4px; left: 7px; right: 11px; height: 10px; }

.stars-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #FFD700;
  font-size: 1rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  flex-shrink: 0;
  min-width: 44px;
}
.stars-counter .candy { margin-bottom: 0; }
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.22);
  color: #FFD700;
  padding: 4px 12px 4px 8px;
  border-radius: 22px;
  font-size: 1.1rem;
  white-space: nowrap;
  border: 2px solid rgba(255,255,255,0.35);
}
.score-badge .ico { width: 22px; height: 22px; color: #FFD700; }

.btn-back {
  gap: 8px;
  padding: 6px 16px 6px 6px;
  background: rgba(255,255,255,0.18);
  border: 3px solid rgba(255,255,255,0.55);
}
.btn-back .candy {
  width: 36px;
  height: 36px;
  border-width: 2px;
  box-shadow: 0 3px 0 rgba(0,0,0,0.14), inset 0 3px 0 rgba(255,255,255,0.45);
}
.btn-back .candy::after { top: 4px; height: 10px; }
.btn-back .candy .ico { width: 20px; height: 20px; }

.card-stars { display: flex; justify-content: center; gap: 1px; flex-wrap: wrap; min-height: 1.1em; margin-top: 4px; }
.card-stars .ico { color: #FFD700; }

.lv-stars { display: inline-flex; gap: 3px; align-items: center; margin-right: 8px; vertical-align: middle; }
.lv-stars .ico { width: 18px; height: 18px; color: #fff; }

.results-stars { display: flex; justify-content: center; gap: 6px; margin: 8px 0; }
.results-stars .ico { width: 36px; height: 36px; color: #FFD700; }

.mem-back-ico { width: 28px; height: 28px; color: #FFD700; }

#boot-error {
  display: none;
  width: 100%;
  max-width: 840px;
  background: #fff;
  color: #8a3d00;
  border-radius: 16px;
  padding: 10px 14px;
  margin: 8px 0;
  text-align: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
#boot-error.show { display: block; }

.btn-modal .ico, .btn-level .ico, .btn-modal svg.ico {
  display: inline-block;
  width: 22px;
  height: 22px;
  vertical-align: -5px;
  margin-right: 6px;
}
.btn-modal.inline-ico, .btn-with-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Inglês module chrome uses the same candy buttons */
.ik-root .icon-btn.candy,
.ik-root .candy.icon-btn {
  width: 48px;
  height: 48px;
}
.ik-root .stars-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ik-root .stars-mini .ico { width: 20px; height: 20px; color: #FFD700; }
.ik-root .speaker {
  background: none;
  border: none;
  box-shadow: none;
  width: 48px;
  height: 48px;
  padding: 0;
}
.ik-root .speaker.candy { width: 48px; height: 48px; }
.ik-root .speaker .ico { width: 24px; height: 24px; color: #fff; }
.ik-root button.btn-back { display: inline-flex; align-items: center; }
