/* Grid + gap: @sem may obfuscate Tailwind grid/gap */
.badge-tower-grid {
    display: grid;
    width: 100%;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 1024px) {
    .badge-tower-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Badge anchor: stable vertical offset (bs had top-0; tw -top-8 was too low vs 5rem circle) */
.philosophy-v3-badge-decor {
    top: -4.25rem;
}

.philosophy-large-badge {
    width: 5rem;
    height: 5rem;
}

.philosophy-bg__img {
    object-fit: cover;
}

.polaroid-cork-timeline__cork-bg {
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 20px,
            currentColor 20px,
            currentColor 21px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            currentColor 20px,
            currentColor 21px
        );
}

.polaroid-cork-timeline__polaroid {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.polaroid-cork-timeline__polaroid:hover {
    z-index: 10;
}

.polaroid-cork-timeline__polaroid--r0 { transform: rotate(-3deg); }
.polaroid-cork-timeline__polaroid--r1 { transform: rotate(2deg); }
.polaroid-cork-timeline__polaroid--r2 { transform: rotate(-1.5deg); }
.polaroid-cork-timeline__polaroid--r3 { transform: rotate(3.5deg); }
.polaroid-cork-timeline__polaroid--r4 { transform: rotate(-2.5deg); }
.polaroid-cork-timeline__polaroid--r5 { transform: rotate(1.5deg); }

.polaroid-cork-timeline__pin {
    width: 1rem;
    height: 1rem;
}

.polaroid-cork-timeline__pin--tl { top: 1.5rem; left: 1.5rem; }
.polaroid-cork-timeline__pin--tr { top: 1.5rem; right: 1.5rem; }
.polaroid-cork-timeline__pin--bl { bottom: 1.5rem; left: 1.5rem; }
.polaroid-cork-timeline__pin--br { bottom: 1.5rem; right: 1.5rem; }
.polaroid-cork-timeline__pin--center {
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
}

.polaroid-cork-timeline__title-card {
    transform: rotate(-1deg);
}

.polaroid-cork-timeline__photo {
    width: 12rem;
}

@media (min-width: 768px) {
    .polaroid-cork-timeline__photo {
        width: 13rem;
    }
}

.polaroid-cork-timeline__caption-text {
    font-family: 'Courier New', monospace;
}

/* team v22 — grid with click-to-expand detail overlay */
.team-flipcard__card {
  cursor: pointer;
  height: 100%;
  min-height: 24rem;
}

.team-flipcard__card-face {
  position: relative;
  display: block;
  width: 100%;
  min-height: 24rem;
  height: 100%;
  overflow: hidden;
}

.team-flipcard__card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 200ms ease;
  z-index: 0;
}

.team-flipcard__card:hover .team-flipcard__card-img {
  transform: scale(1.08);
}

.team-flipcard__card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 200ms ease;
}

.team-flipcard__card:hover .team-flipcard__card-overlay {
  opacity: 0.75;
}

.team-flipcard__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 1.5rem;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.team-flipcard__card:hover .team-flipcard__label {
  opacity: 0;
}

.team-flipcard__detail {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.team-flipcard__detail.show {
  opacity: 1;
  pointer-events: auto;
}

.team-flipcard__detail-panel {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
}

/* Bootstrap: blur-орби (TW — у @sem); без номера варіанту в іменах */
.stats__decor-blur-tl {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 16rem;
  height: 16rem;
  filter: blur(64px);
}

.stats__decor-blur-br {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 20rem;
  height: 20rem;
  filter: blur(64px);
}

.stats__rank-badge {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
}

/* Висота смуги; TW — градієнт у @sem, BS — bg у @sem */
.stats__bottom-line-bar {
  height: 0.25rem;
}

/* Hover та градієнти — розміри/позиції в @sem */
.stats-card-hover {
  transition:
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    transform 0.5s ease;
}

.stats-card-hover:hover {
  box-shadow:
    0 25px 50px -12px rgb(0 0 0 / 0.25);
  transform: scale(1.05);
}

.stats-gradient-overlay-hover {
  transition: opacity 0.5s ease;
  opacity: 0;
}

.stats-card-hover:hover .stats-gradient-overlay-hover {
  opacity: 1;
}

.stats-media-hover {
  transition: transform 0.3s ease;
}

.stats-card-hover:hover .stats-media-hover {
  transform: scale(1.1);
}

.stats-bottom-bar-hover {
  transition: opacity 0.5s ease;
  opacity: 0;
}

.stats-card-hover:hover .stats-bottom-bar-hover {
  opacity: 1;
}

