/* UINDO — responsive rounded rectangular hero shortcuts, v6. Only applies to a row marked by the companion JS. */
.uindo-first-tiles-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  align-items: center !important;
  gap: clamp(6px, .85vw, 12px) !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  padding: 8px 3px 16px !important;
  scroll-padding-inline: 3px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(248,202,130,.55) transparent;
}
.uindo-first-tiles-row > .uindo-first-tile {
  flex: 1 0 clamp(126px, 12vw, 175px) !important;
  width: auto !important;
  min-width: clamp(126px, 12vw, 175px) !important;
  max-width: 185px !important;
  box-sizing: border-box !important;
  aspect-ratio: 1.85 / 1 !important;
  height: auto !important;
  min-height: 74px !important;
  border-radius: 14px !important;
  border-top-left-radius: 18px !important;
  border-top-right-radius: 18px !important;
  border-bottom-left-radius: 18px !important;
  border-bottom-right-radius: 18px !important;
  padding: clamp(6px, .75vw, 12px) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  line-height: 1.2 !important;
  font-size: clamp(11px, 1vw, 15px) !important;
  letter-spacing: normal !important;
  scroll-snap-align: start;
  position: relative;
  isolation: isolate;
  transition: font-size .2s ease, padding .2s ease;
}
.uindo-first-tiles-row > .uindo-first-tile > a {
  width: 100%;
  min-width: 0;
  text-align: center;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  font-size: inherit !important;
}
.uindo-first-tiles-row > .uindo-first-tile span,
.uindo-first-tiles-row > .uindo-first-tile svg,
.uindo-first-tiles-row > .uindo-first-tile i {
  font-size: clamp(12px, 1.1vw, 16px) !important;
  max-width: 100%;
}
.uindo-first-tiles-row > .uindo-contest-tile {
  animation: uindo-contest-glow 3.5s ease-in-out infinite;
}
.uindo-first-tiles-row > .uindo-contest-tile:nth-child(2n) { animation-delay: -1.15s; }
.uindo-first-tiles-row > .uindo-contest-tile:nth-child(3n) { animation-delay: -2.3s; }
@keyframes uindo-contest-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255,205,116,0); filter: brightness(1); }
  50% { box-shadow: 0 0 22px rgba(255,205,116,.48); filter: brightness(1.12); }
}
.uindo-first-tiles-row > .uindo-first-tile:focus-visible {
  outline: 2px solid #ffda91;
  outline-offset: 3px;
}
.uindo-tiles-swipe-hint { display: none; }
/* Narrow laptop: reduce rectangular cards and typography before sideways scrolling is necessary. */
@media (max-width: 1100px) {
  .uindo-first-tiles-row > .uindo-first-tile {
    flex-basis: clamp(120px, 12vw, 154px) !important;
    min-width: clamp(120px, 12vw, 154px) !important;
    font-size: clamp(11px, 1.15vw, 14px) !important;
  }
}
/* Always show hint on phone, even when the row initially fits or was already scrolled. */
@media (max-width: 800px) {
  .uindo-tiles-swipe-hint {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin: 2px 0 6px;
    color: #f7d69b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
  }
  .uindo-tiles-swipe-hint::after {
    content: '⇆';
    font-size: 20px;
    animation: uindo-tiles-hint-shift 2.2s ease-in-out infinite;
  }
  .uindo-first-tiles-row {
    gap: 9px !important;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px !important;
  }
  .uindo-first-tiles-row > .uindo-first-tile {
    flex: 0 0 clamp(148px, 55vw, 205px) !important;
    min-width: clamp(148px, 55vw, 205px) !important;
    max-width: clamp(148px, 55vw, 205px) !important;
    font-size: clamp(11px, 3.1vw, 14px) !important;
    min-height: 82px !important;
    border-radius: 12px !important;
  }
  .uindo-first-tiles-row > .uindo-first-tile span,
  .uindo-first-tiles-row > .uindo-first-tile svg,
  .uindo-first-tiles-row > .uindo-first-tile i {
    font-size: clamp(12px, 3.4vw, 16px) !important;
  }
}
@keyframes uindo-tiles-hint-shift {
  0%,100% { transform: translateX(0); opacity: .7; }
  50% { transform: translateX(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .uindo-first-tiles-row > .uindo-contest-tile,
  .uindo-tiles-swipe-hint::after { animation: none !important; }
}

/* Defeat circular styles defined by older site stylesheets. */
.uindo-first-tiles-row > .uindo-first-tile,
.uindo-first-tiles-row > .uindo-first-tile > a {
  border-radius: 14px !important;
}
.uindo-first-tiles-row > .uindo-first-tile::before,
.uindo-first-tiles-row > .uindo-first-tile::after {
  border-radius: inherit !important;
}
@media (max-width: 800px) {
  .uindo-first-tiles-row > .uindo-first-tile,
  .uindo-first-tiles-row > .uindo-first-tile > a { border-radius: 12px !important; }
}

/* v7: only smartphones: two stacked cards per horizontally scrolling column.
   The desktop and tablet rules above are left unchanged. */
@media (max-width: 600px) {
  .uindo-first-tiles-row {
    display: grid !important;
    grid-template-rows: repeat(2, minmax(82px, auto)) !important;
    grid-template-columns: none !important;
    grid-auto-flow: column !important;
    grid-auto-columns: clamp(142px, 43vw, 195px) !important;
    align-items: stretch !important;
    align-content: start !important;
    justify-content: start !important;
    gap: 9px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x proximity !important;
    padding: 8px 3px 15px !important;
    -webkit-overflow-scrolling: touch;
  }
  .uindo-first-tiles-row > .uindo-first-tile {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 82px !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    box-sizing: border-box !important;
    padding: 7px !important;
    font-size: clamp(11px, 3vw, 13px) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    scroll-snap-align: start;
  }
  .uindo-first-tiles-row > .uindo-first-tile span,
  .uindo-first-tiles-row > .uindo-first-tile svg,
  .uindo-first-tiles-row > .uindo-first-tile i {
    font-size: clamp(12px, 3.3vw, 15px) !important;
  }
  .uindo-tiles-swipe-hint { display: flex !important; }
}
