/* ============================================================
   Retro Runner — стили пасхалки
   Все селекторы под .vf-runner чтобы не конфликтовать с сайтом
   ============================================================ */

.vf-runner {
    padding: 4rem 1rem 2rem;
    background-color: #1A1410;
    color: #FAF6EE;
    position: relative;
    z-index: 5;
}

.vf-runner__container {
    max-width: 640px;
    margin: 0 auto;
}

.vf-runner__title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 1.25rem;
    opacity: 0.55;
    text-transform: lowercase;
}

.vf-runner__frame {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(244, 234, 213, 0.12);
    background: #1e1410;
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Scanlines - тонкая CRT-текстура */
.vf-runner__frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0,
        transparent 2px,
        rgba(244, 234, 213, 0.06) 2px,
        rgba(244, 234, 213, 0.06) 3px
    );
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: overlay;
}

/* Виньетка по краям canvas */
.vf-runner__frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 55%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
    z-index: 2;
}

#vf-runner-canvas {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    cursor: pointer;
    touch-action: manipulation;
}

.vf-runner__hint {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    text-align: center;
    margin-top: 0.9rem;
    opacity: 0.45;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

/* Плашка разблокированной песни */
.vf-runner__unlock {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    background: rgba(26, 20, 16, 0.92);
    border: 1px solid rgba(168, 50, 30, 0.85);
    color: #f4ead5;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.72rem;
    padding: 0.55rem 0.95rem;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 5;
    opacity: 1;
    transition: opacity 1.5s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    max-width: calc(100% - 20px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.vf-runner__unlock b {
    color: #e8c89a;
    font-weight: 700;
}

.vf-runner__unlock:hover {
    background: rgba(168, 50, 30, 0.92);
}

.vf-runner__unlock--fade {
    opacity: 0;
}

@media (max-width: 480px) {
    .vf-runner {
        padding: 2.5rem 1rem 1.5rem;
    }
    .vf-runner__title {
        font-size: 0.78rem;
    }
    .vf-runner__hint {
        font-size: 0.68rem;
    }
    .vf-runner__unlock {
        font-size: 0.68rem;
        padding: 0.45rem 0.8rem;
    }
}
