.page {
    padding: 0;
    margin: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #efc7b8;
    background: #0d0d0d;
    position: fixed;
    top: 0;
    left: 0;
    user-select: none;
    touch-action: none;
}

.titleWrapper {
    padding: 20px;
    padding-top: 60px;
    text-align: center;
    z-index: 10;
}

.title {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(239, 199, 184, 0.3);
    margin: 0;
}

.touchArea {
    flex: 1;
    width: 100%;
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.fingerCircle {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid #efc7b8;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, border-color 0.3s;
    z-index: 100;
}

.fingerCircle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(239, 199, 184, 0.3);
    animation: pulseAnim 1.5s infinite;
}

.loadingRing {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    -webkit-mask-image: radial-gradient(transparent 55px, #000 56px);
    mask-image: radial-gradient(transparent 55px, #000 56px);
    z-index: 90;
    transition: background 0.3s;
}

.winnerRing {
    animation: winnerPulse 0.5s infinite alternate;
    box-shadow: 0 0 30px #efcd28;
}

@keyframes winnerPulse {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.selected {
    border-color: #efcd28;
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 40px rgba(239, 205, 40, 0.6);
    z-index: 200;
}

.eliminated {
    opacity: 0.2;
    transform: translate(-50%, -50%) scale(0.8);
    border-color: #333;
}

.instructions {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 80%;
    z-index: 10;
    pointer-events: none;
    color: rgba(239, 199, 184, 0.6);
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.timerAnnounce {
    color: #efcd28;
    font-size: 1.8rem;
    font-weight: 900;
    animation: pulseAnnouncement 1s infinite alternate;
}

@keyframes pulseAnnouncement {
    from {
        transform: scale(1);
        opacity: 0.8;
    }

    to {
        transform: scale(1.1);
        opacity: 1;
    }
}

.backLink {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(239, 199, 184, 0.5);
    text-decoration: none;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.backLink:hover {
    color: #efc7b8;
}

.resultOverlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 30px;
    border-radius: 30px;
    border: 2px solid #efc7b8;
    z-index: 300;
    text-align: center;
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.resultTitle {
    color: #efcd28;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.resultBtn {
    background: #efc7b8;
    color: #1a1a1a;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 900;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1rem;
    text-transform: uppercase;
    transition: transform 0.2s;
}

.resultBtn:hover {
    transform: scale(1.05);
}

@keyframes pulseAnim {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes popIn {
    from {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}