:root {
    --feedback-size: 0.6rem;
    --button-size: 0.6rem;
}

@media (min-width: 768px) {
    :root {
        --feedback-size: 1.3rem;
        --button-size: 0.8rem;
    }
}

@media (min-width: 1200px) {
    :root {
        --feedback-size: 2rem;
        --button-size: 1rem;
    }
}

body {
    font-family: "Unbounded",
        sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    margin: 0;
    background-color: #475653;
    overflow: hidden;
}

button,
input,
select,
textarea {
    font-family: inherit !important;
}

img {
    width: 100%;
    display: block;
}

[x-cloak] {
    display: none !important;
}

.logo-overlay {
    position: absolute;
    width: 10%;
    max-width: 200px;
    top: 10px;
    left: 10px;
}

.app-container {
    width: 100%;
}

.media-aspect-container {
    width: min(100%, 177.78vh);
    height: min(100vh, 56.25vw);

    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    margin: auto;
    background-color: #000;
    box-shadow: 0px 0px 14px 14px rgba(0, 0, 0, .26);
}

.video-container,
.choice-selector {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

video,
.bkg-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.intro-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(4px);
}

.intro-popup-content {
    background: #475653f0;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 85%;
    border: 2px solid #475653;
}

.intro-popup-content p {
    font-family: 'Unbounded', sans-serif;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.choice-button {
    position: absolute;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: block;
}

.checkmark-wrapper {
    position: absolute;
    bottom: -2vw;
    left: 50%;
    transform: translateX(-50%);
    width: 3vw;
    height: 3vw;
    z-index: 10;
    pointer-events: none;
}

.checkmark-wrapper svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2));
}

.result-trigger-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    padding: 15px 30px;
    background-color: #F2EDE4;
    color: #475653;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, background-color 0.2s;
}

.result-trigger-btn:hover {
    background-color: #F2EDE4;
    transform: translateX(-50%) scale(1.05);
}

.final-score-overlay {
    position: absolute;
    inset: 0;
    /* Copre tutto il contenitore 16:9 */
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.final-score-overlay .bkg-img {
    z-index: 1;
}

.result-content {
    position: absolute;
    z-index: 10;
    width: 60%;
    padding: 30px;
    background: #475653f0;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}


.feedback-text {
    font-size: var(--feedback-size);
    line-height: 1.5;
    margin-bottom: 25px;
}

button,
.result-trigger-btn {
    font-size: var(--button-size);
}

.retry-btn {
    padding: 12px 25px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.video-overlay-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 30;
}