.lotterydraws-root .hidden {
  display: none !important;
}

.lotterydraws-root .ld-search {
  margin-bottom: 1.25rem;
}

.lotterydraws-root .search-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
}

.lotterydraws-root .ld-search-hint {
  margin: 0 0 1.1rem;
  color: var(--px-ink-muted);
  font-size: 0.95rem;
}

.lotterydraws-root .ld-games,
.lotterydraws-root .ld-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.lotterydraws-root .ld-game-tab,
.lotterydraws-root .ld-mode {
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lotterydraws-root .ld-game-tab:hover,
.lotterydraws-root .ld-mode:hover {
  background: rgba(255, 255, 255, 0.16);
}

.lotterydraws-root .ld-game-tab.is-active,
.lotterydraws-root .ld-mode.is-active {
  background: var(--px-accent);
  border-color: var(--px-accent);
  color: #1b1408;
}

.lotterydraws-root .ld-criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-end;
}

.lotterydraws-root .ld-criteria .px-field {
  flex: 1 1 180px;
}

.lotterydraws-root .ld-criteria .px-field.is-hidden {
  display: none;
}

.lotterydraws-root .ld-criteria .px-field input {
  max-width: none;
}

.lotterydraws-root .ld-results-meta {
  margin: 0 0 0.85rem;
  color: var(--px-ink-muted);
  font-weight: 600;
}

#lotterydraw-results {
  display: grid;
  gap: 1rem;
}

.ld-card {
  background: rgba(7, 44, 40, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 6px solid var(--px-accent);
  border-radius: 14px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: var(--px-shadow);
}

.ld-game-tzoker {
  border-left-color: #3d7dff;
}

.ld-game-lotto {
  border-left-color: #ffee07;
}

.ld-game-kino {
  border-left-color: #ff7f00;
}

.ld-game-extra5 {
  border-left-color: #c060ff;
}

.ld-game-proto {
  border-left-color: #ff4d63;
}

.ld-game-super3 {
  border-left-color: #f15a21;
}

.ld-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.ld-game-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ld-game-logo {
  width: 132px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
  background: #072c46;
  padding: 0;
}

.ld-game-name {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.ld-draw-id {
  margin: 0.15rem 0 0;
  color: var(--px-ink-muted);
  font-size: 0.92rem;
}

.ld-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.ld-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  font-weight: 600;
}

.ld-jackpot {
  background: rgba(191, 147, 58, 0.28);
  border-color: rgba(191, 147, 58, 0.55);
  color: #ffe7b0;
}

.ld-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
}

.ld-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ld-balls.is-kino {
  display: grid;
  grid-template-columns: repeat(10, minmax(2.1rem, 1fr));
  max-width: 28rem;
}

.ld-ball {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f2433;
  background: radial-gradient(circle at 30% 28%, #fff 0%, #dce7f2 42%, #9bb4c9 100%);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 -3px 6px rgba(15, 36, 51, 0.18), 0 4px 10px rgba(0, 0, 0, 0.18);
}

.ld-ball.is-bonus {
  color: #1b1408;
  background: radial-gradient(circle at 30% 28%, #fff4d4 0%, #bf933a 55%, #8a6620 100%);
}

.ld-game-tzoker .ld-ball:not(.is-bonus) {
  color: #fff;
  background: radial-gradient(circle at 30% 28%, #6ea2ff 0%, #0c3fa5 62%, #07265f 100%);
}

.ld-game-lotto .ld-ball:not(.is-bonus) {
  background: radial-gradient(circle at 30% 28%, #fffce0 0%, #ffee07 55%, #c9b800 100%);
}

.ld-game-kino .ld-ball {
  width: 2.15rem;
  height: 2.15rem;
  font-size: 0.82rem;
  color: #fff;
  background: radial-gradient(circle at 30% 28%, #ffb56a 0%, #ff7f00 60%, #b35400 100%);
}

.ld-game-extra5 .ld-ball {
  color: #fff;
  background: radial-gradient(circle at 30% 28%, #d39bff 0%, #800080 60%, #4a004a 100%);
}

.ld-bonus {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.35rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.ld-bonus-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffe7b0;
}

.ld-digits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ld-digit {
  min-width: 2.6rem;
  height: 3.1rem;
  padding: 0 0.35rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ld-game-proto .ld-digit {
  background: linear-gradient(180deg, #ff6b7d 0%, #ff0022 100%);
}

.ld-game-super3 .ld-digit {
  min-width: 3.4rem;
  height: 3.8rem;
  font-size: 2rem;
  background: linear-gradient(180deg, #ff8a55 0%, #f15a21 100%);
}

#no-data-msg,
#error-msg {
  text-align: left;
  margin-top: 1rem;
}

.lotterydraws-root .ui-datepicker {
  background: #fff;
  color: #1b1408;
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

@media (max-width: 700px) {
  .ld-card-head {
    flex-direction: column;
  }

  .ld-meta {
    justify-content: flex-start;
  }

  .ld-balls.is-kino {
    grid-template-columns: repeat(5, minmax(2rem, 1fr));
  }

  .ld-bonus {
    border-left: none;
    padding-left: 0;
    width: 100%;
  }
}
