.frame-scroll-container { -webkit-overflow-scrolling: touch; }

/* BS (прев’ю + експорт): картки ~вдвічі вужчі за w-72; TW без змін */
.about-frame-strip--bs .frame-scroll-container > li:not([aria-hidden="true"]),
#section-preview-root.section-preview--bootstrap .frame-scroll-container > li:not([aria-hidden="true"]),
[data-preview-framework="bootstrap"] .frame-scroll-container > li:not([aria-hidden="true"]) {
    flex: 0 0 16rem !important;
    width: 16rem !important;
    max-width: min(16rem, 85vw) !important;
}

.frame-sq-12 { width: 3rem; height: 3rem; flex-shrink: 0; }

.frame-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.frame-card-hover:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--bs-box-shadow);
}

.frame-icon-hover {
    transition: transform 0.2s ease;
}

.frame-card-hover:hover .frame-icon-hover {
    transform: scale(1.05);
}

.frame-title-hover {
    transition: color 0.2s ease;
}

.frame-card-hover:hover .frame-title-hover {
    color: var(--bs-primary);
}

.stats__icon-dim {
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  min-height: 4rem;
}

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

.stats-group:hover .stats-icon-wrap-hover {
  transform: scale(1.05);
}

.stats-icon-inner-hover {
  transition: color 0.3s ease;
}

.stats-group:hover .stats-icon-inner-hover {
  color: rgb(29 78 216);
}

.stats-value-hover {
  transition: color 0.3s ease;
}

.stats-group:hover .stats-value-hover {
  color: rgb(30 41 59);
}

.stats__label {
  transition: color 0.3s ease;
}

.stats-group:hover .stats__label {
  color: rgb(51 65 85);
}

.stacked-shadow-deck__portrait {
    width: 7rem;
    height: 7rem;
}

@media (min-width: 768px) {
    .stacked-shadow-deck__portrait {
        width: 8rem;
        height: 8rem;
    }
}

.stacked-shadow-deck__beacon {
    width: 1.5rem;
    height: 1.5rem;
}

.stacked-shadow-deck__layer:nth-child(1) {
    z-index: 10;
}

.stacked-shadow-deck__layer:nth-child(2) {
    z-index: 9;
}

.stacked-shadow-deck__layer:nth-child(3) {
    z-index: 8;
}

.stacked-shadow-deck__layer:nth-child(4) {
    z-index: 7;
}

.stacked-shadow-deck__layer:nth-child(5) {
    z-index: 6;
}

.stacked-shadow-deck__layer:nth-child(6) {
    z-index: 5;
}

.pixel-retro-timeline__pixel-bg {
    background-image: repeating-linear-gradient(
            0deg,
            transparent,
            transparent 15px,
            currentColor 15px,
            currentColor 16px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 15px,
            currentColor 15px,
            currentColor 16px
        );
}

.pixel-retro-timeline__pixel-card {
    box-shadow:
        4px 0 0 0 currentColor,
        -4px 0 0 0 currentColor,
        0 4px 0 0 currentColor,
        0 -4px 0 0 currentColor;
    outline: 2px solid;
    outline-offset: 4px;
}

.pixel-retro-timeline__pixel-badge {
    clip-path: polygon(
        0 4px, 4px 4px, 4px 0,
        calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
        100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
        4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px)
    );
}

@keyframes pixel-retro-timeline__scan {
    from { width: 0; }
    to { width: 100%; }
}

.pixel-retro-timeline__progress-bar {
    animation: pixel-retro-timeline__scan 1s steps(20) forwards;
}

.pixel-retro-timeline__mono-font {
    font-family: monospace, 'Courier New';
}

.pixel-retro-timeline__grid-width {
    max-width: 48rem;
}

.pixel-retro-timeline__badge-size {
    width: 4rem;
    height: 4rem;
}

.pixel-retro-timeline__progress-height {
    height: 0.5rem;
}

.pixel-retro-timeline__progress-fill {
    width: var(--pixel-retro-timeline__progress, 0%);
}

.pixel-retro-timeline__spacer {
    width: 0.5rem;
    height: 1rem;
}

