/* Unit 1.4 reel — CSS-only animated graphics (ids u14-v1 … u14-v5) */

.ap-euro-u14v {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

/* v1 — sparkle + press + scroll */
.ap-euro-u14v--v1 .ap-euro-u14v__mesh {
    position: absolute;
    inset: -35%;
    transform-origin: 50% 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 180, 200, 0.35), transparent 45%),
        radial-gradient(circle at 70% 60%, rgba(120, 200, 255, 0.25), transparent 40%),
        conic-gradient(from 120deg, rgba(80, 40, 120, 0.3), rgba(200, 100, 80, 0.25), rgba(80, 40, 120, 0.3));
    animation: ap-u14-spin 22s linear infinite;
    opacity: 0.95;
}

.ap-euro-u14v--v1 .ap-euro-u14v__spark {
    position: absolute;
    top: 12%;
    right: 14%;
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    animation: ap-u14-spark-bob 2.4s ease-in-out infinite;
    filter: drop-shadow(0 0 12px rgba(255, 200, 220, 0.6));
}

.ap-euro-u14v--v1 .ap-euro-u14v__press {
    position: absolute;
    left: 50%;
    bottom: 14%;
    transform: translateX(-50%);
    width: 46%;
    height: 42%;
    border-radius: 8px;
    background: linear-gradient(165deg, rgba(60, 45, 35, 0.85), rgba(30, 22, 18, 0.95));
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.12),
        inset 0 -6px 0 rgba(0, 0, 0, 0.35),
        0 16px 28px rgba(0, 0, 0, 0.45);
    animation: ap-u14-press-stomp 2.8s ease-in-out infinite;
}

.ap-euro-u14v--v1 .ap-euro-u14v__press::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 18%;
    height: 28%;
    background: linear-gradient(180deg, rgba(200, 180, 140, 0.5), rgba(120, 100, 70, 0.4));
    border-radius: 4px;
    animation: ap-u14-plate 2.8s ease-in-out infinite;
}

.ap-euro-u14v--v1 .ap-euro-u14v__scroll {
    position: absolute;
    left: 10%;
    bottom: 22%;
    width: 22%;
    height: 32%;
    border-radius: 4px;
    background: linear-gradient(145deg, rgba(245, 230, 200, 0.5), rgba(160, 130, 90, 0.45));
    box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.35);
    animation: ap-u14-scroll-wobble 3s ease-in-out infinite;
}

.ap-euro-u14v--v1 .ap-euro-u14v__scroll::after {
    content: '';
    position: absolute;
    left: 14%;
    right: 14%;
    top: 22%;
    height: 2px;
    background: rgba(60, 40, 25, 0.4);
    box-shadow:
        0 10px 0 rgba(60, 40, 25, 0.32),
        0 20px 0 rgba(60, 40, 25, 0.26);
}

/* v2 — gate + spread */
.ap-euro-u14v--v2 .ap-euro-u14v__sky {
    position: absolute;
    inset: 0;
    background: linear-gradient(185deg, rgba(40, 35, 80, 0.9), rgba(90, 40, 70, 0.75), rgba(30, 25, 45, 0.95));
}

.ap-euro-u14v--v2 .ap-euro-u14v__gate {
    position: absolute;
    left: 50%;
    bottom: 18%;
    transform: translateX(-50%);
    width: 52%;
    height: 48%;
    border: 3px solid rgba(255, 220, 160, 0.35);
    border-radius: 10px 10px 0 0;
    background: rgba(0, 0, 0, 0.25);
    animation: ap-u14-gate-pulse 3s ease-in-out infinite;
}

.ap-euro-u14v--v2 .ap-euro-u14v__gate::before,
.ap-euro-u14v--v2 .ap-euro-u14v__gate::after {
    content: '';
    position: absolute;
    top: 12%;
    width: 42%;
    bottom: 12%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    animation: ap-u14-door 4s ease-in-out infinite;
}

.ap-euro-u14v--v2 .ap-euro-u14v__gate::before {
    left: 6%;
}
.ap-euro-u14v--v2 .ap-euro-u14v__gate::after {
    right: 6%;
    animation-delay: 0.2s;
}

.ap-euro-u14v--v2 .ap-euro-u14v__waves {
    position: absolute;
    inset: -20%;
    background: repeating-radial-gradient(circle at 50% 100%, transparent 0 28px, rgba(255, 200, 120, 0.06) 28px 32px);
    animation: ap-u14-wave-out 5s ease-out infinite;
}

.ap-euro-u14v--v2 .ap-euro-u14v__burst {
    position: absolute;
    left: 50%;
    top: 38%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 200, 100, 0.12), transparent);
    animation: ap-u14-burst-fade 4s ease-in-out infinite;
}

/* v3 — language bubbles */
.ap-euro-u14v--v3 .ap-euro-u14v__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(25, 45, 70, 0.95), rgba(50, 30, 60, 0.9));
}

.ap-euro-u14v--v3 .ap-euro-u14v__bubbles {
    position: absolute;
    inset: 10%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.ap-euro-u14v--v3 .ap-euro-u14v__bubble {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: clamp(0.65rem, 2.8vw, 0.85rem);
    font-weight: 800;
    color: rgba(248, 250, 252, 0.95);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: ap-u14-bubble 2.6s ease-in-out infinite;
}

.ap-euro-u14v--v3 .ap-euro-u14v__bubble:nth-child(1) {
    animation-delay: 0s;
}
.ap-euro-u14v--v3 .ap-euro-u14v__bubble:nth-child(2) {
    animation-delay: 0.2s;
}
.ap-euro-u14v--v3 .ap-euro-u14v__bubble:nth-child(3) {
    animation-delay: 0.4s;
}
.ap-euro-u14v--v3 .ap-euro-u14v__bubble:nth-child(4) {
    animation-delay: 0.55s;
}
.ap-euro-u14v--v3 .ap-euro-u14v__bubble:nth-child(5) {
    animation-delay: 0.7s;
}

/* v4 — plot cards */
.ap-euro-u14v--v4 .ap-euro-u14v__panel {
    position: absolute;
    inset: 8%;
    border-radius: 12px;
    background: linear-gradient(160deg, rgba(20, 50, 40, 0.85), rgba(15, 35, 55, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ap-euro-u14v--v4 .ap-euro-u14v__grid {
    position: absolute;
    inset: 14% 12%;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.ap-euro-u14v--v4 .ap-euro-u14v__cell {
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.1rem, 5vw, 1.65rem);
    animation: ap-u14-cell 2.4s ease-in-out infinite;
}

.ap-euro-u14v--v4 .ap-euro-u14v__cell:nth-child(1) {
    animation-delay: 0s;
}
.ap-euro-u14v--v4 .ap-euro-u14v__cell:nth-child(2) {
    animation-delay: 0.15s;
}
.ap-euro-u14v--v4 .ap-euro-u14v__cell:nth-child(3) {
    animation-delay: 0.3s;
}
.ap-euro-u14v--v4 .ap-euro-u14v__cell:nth-child(4) {
    animation-delay: 0.45s;
}

/* v5 — glitch / early internet */
.ap-euro-u14v--v5 .ap-euro-u14v__void {
    position: absolute;
    inset: 0;
    background: #0a0a10;
}

.ap-euro-u14v--v5 .ap-euro-u14v__scan {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 200, 0.03) 2px,
        rgba(0, 255, 200, 0.03) 4px
    );
    animation: ap-u14-scan 6s linear infinite;
    pointer-events: none;
}

.ap-euro-u14v--v5 .ap-euro-u14v__glitch {
    position: absolute;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 36%;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255, 80, 120, 0.25), rgba(80, 200, 255, 0.2));
    mix-blend-mode: screen;
    animation: ap-u14-glitch 2.1s steps(2, end) infinite;
}

.ap-euro-u14v--v5 .ap-euro-u14v__tag {
    position: absolute;
    left: 50%;
    bottom: 18%;
    transform: translateX(-50%);
    font-family: ui-monospace, monospace;
    font-size: clamp(0.65rem, 2.5vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(180, 255, 220, 0.75);
    text-shadow: 0 0 12px rgba(0, 255, 200, 0.4);
    animation: ap-u14-flicker 3.5s steps(3, end) infinite;
}

@keyframes ap-u14-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ap-u14-spark-bob {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-6px) scale(1.06);
    }
}

@keyframes ap-u14-press-stomp {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(4px);
    }
}

@keyframes ap-u14-plate {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.75;
    }
}

@keyframes ap-u14-scroll-wobble {
    0%,
    100% {
        transform: rotate(-2deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

@keyframes ap-u14-gate-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 200, 120, 0.15);
    }
    50% {
        box-shadow: 0 0 24px 4px rgba(255, 200, 120, 0.2);
    }
}

@keyframes ap-u14-door {
    0%,
    100% {
        opacity: 0.85;
    }
    50% {
        opacity: 0.45;
    }
}

@keyframes ap-u14-wave-out {
    0% {
        transform: scale(0.92);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

@keyframes ap-u14-bubble {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes ap-u14-cell {
    0%,
    100% {
        transform: scale(1);
        background: rgba(255, 255, 255, 0.07);
    }
    50% {
        transform: scale(1.03);
        background: rgba(255, 255, 255, 0.12);
    }
}

@keyframes ap-u14-scan {
    to {
        transform: translateY(8px);
    }
}

@keyframes ap-u14-glitch {
    0% {
        clip-path: inset(0 0 0 0);
        transform: translate(-50%, -50%) translateX(0);
    }
    25% {
        clip-path: inset(10% 0 25% 0);
        transform: translate(-50%, -50%) translateX(-4px);
    }
    50% {
        clip-path: inset(30% 0 5% 0);
        transform: translate(-50%, -50%) translateX(3px);
    }
    75% {
        clip-path: inset(5% 0 15% 0);
        transform: translate(-50%, -50%) translateX(-2px);
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: translate(-50%, -50%) translateX(0);
    }
}

@keyframes ap-u14-flicker {
    0%,
    100% {
        opacity: 0.9;
    }
    40% {
        opacity: 0.45;
    }
    42% {
        opacity: 0.95;
    }
}

@keyframes ap-u14-burst-fade {
    0%,
    100% {
        opacity: 0.55;
    }
    50% {
        opacity: 0.95;
    }
}
