/* Specific counting sheeps variables */
:root {
    --cycle-y: 62vh;
    --hint-y: 70vh;
}

#canvas {
    display: block;
    width: 100vw;
    height: 100vh;
}

/* Step list used in modals */
.step-list {
    text-align: left;
    margin: 22px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.step-num {
    font-family: var(--font-head);
    font-size: 22px;
    min-width: 38px;
    color: rgba(255, 255, 255, 0.22);
    font-weight: 700;
}

/* Onboarding Specifics */
.onboarding-step h2 {
    font-family: var(--font-head);
    font-size: 30px;
    font-weight: 300;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.93);
}

.onboarding-step p {
    color: rgba(255, 255, 255, 0.52);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.onboarding-next,
#onboarding-finish {
    padding: 14px 38px;
    font-family: var(--font-head);
    font-size: 15px;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    cursor: pointer;
    transition: all .25s;
}

.onboarding-next:hover,
#onboarding-finish:hover {
    background: rgba(255, 255, 255, 0.15);
}

#onboarding-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

#onboarding-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background .25s;
}

#onboarding-dots .dot.active {
    background: rgba(255, 255, 255, 0.72);
}

/* HUD elements */
#phase-indicator {
    position: fixed;
    width: 100%;
    top: 23%;
    text-align: center;
    z-index: 5;
    pointer-events: none;
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 300;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.11);
    text-transform: uppercase;
    transition: opacity .8s, color .8s;
}

#cycle-counter {
    position: fixed;
    top: var(--cycle-y);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: rgba(255, 255, 255, 0.34);
    font-family: var(--font-head);
    font-size: 14px;
    letter-spacing: 2px;
    pointer-events: none;
    text-transform: uppercase;
}

#count-big {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 40px));
    z-index: 5;
    font-family: var(--font-head);
    font-size: clamp(54px, 11vw, 110px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    pointer-events: none;
    opacity: 0;
}

#count-hint {
    position: fixed;
    top: var(--hint-y);
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    color: rgba(255, 255, 255, 0.22);
    font-size: 12px;
    letter-spacing: .8px;
    pointer-events: none;
    text-align: center;
    width: min(90vw, 580px);
}



/* Hide standard elements not handled globally */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

#end-icon {
    font-size: 68px;
    animation: float 3s ease-in-out infinite;
}

/* Responsiveness specific to app */
@media (max-width: 600px) {
    #controls {
        width: 100%;
        bottom: 0;
        border-radius: 20px 20px 0 0;
        padding: 10px;
    }

    .controls-row-actions button {
        padding: 10px;
        font-size: 12px;
    }
}