/* Egyedi betűtípus betöltése */
@font-face {
    font-family: 'AgencyFB';
    src: url('assets/AgencyFB.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
}

/* Fő elrendezés */
.main-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Középső tartalom: reakciókép + alatta az alkalmazás ikon */
.center-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    transform: translateY(-20px);
}

/* Reakcióképek konténere (háttér nélkül, csak a körbevágott arcok) */
.reaction-box {
    position: relative;
    width: clamp(220px, 31vmin, 315px);
    aspect-ratio: 542 / 564;
    background-color: transparent;
    user-select: none;
    pointer-events: none;
}

.reaction-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    will-change: opacity;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;

    /* MANDATORY: Use vendor prefix for wider support in older browsers */
    -webkit-mask-image: url('assets/mr-incredible/face-mask.png?v=2');
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image: url('assets/mr-incredible/face-mask.png?v=2');
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

.reaction-layer[data-stage="5"] {
    -webkit-mask-image: url('assets/mr-incredible/face-mask-good2.png?v=2');
    mask-image: url('assets/mr-incredible/face-mask-good2.png?v=2');
}

.reaction-layer.is-base {
    opacity: 1;
}

/* Alkalmazás ikon link a kép alatt */
.app-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    border-radius: 22px;
    text-decoration: none;
    cursor: pointer;
    scale: 1;
    translate: 0 0;
    transition:
        scale 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        translate 0.25s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.25s ease;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.08));
    -webkit-tap-highlight-color: transparent;
}

.app-link:hover,
.app-link:focus-visible {
    scale: 1.08;
    translate: 0 -3px;
    filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.16));
    outline: none;
}

.app-link:active {
    scale: 0.96;
    translate: 0 0;
}

.app-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

@media (prefers-reduced-motion: reduce) {
    .app-link {
        transition: none;
    }
}

/* MOBILNÉZET */
@media (max-width: 768px) {
    .center-stage {
        gap: 28px;
        transform: translateY(-16px);
    }

    .reaction-box {
        width: clamp(200px, 60vw, 280px);
    }

    .app-link {
        width: 80px;
        height: 80px;
    }
}

/* Alsó copyright felirat az eredeti AgencyFB stílussal */
.footer-copyright {
    position: absolute;
    bottom: 20px;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    font-family: 'AgencyFB', -apple-system, sans-serif;
    font-size: 15px;
    color: #111111;
    letter-spacing: 0.8px;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}