/* ==========================================================================
   Pi Scroller Module Styles
   ========================================================================== */

html, 
body.pi-scroller-page {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #121212;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
}

#title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #f2f2f2;
    font-size: clamp(18px, 3vh, 32px);
    letter-spacing: 2px;
    padding: 20px 0 0 0;
    margin: 0;
    z-index: 10;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

#stage {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    background: #1a1a1a;
}

#pi-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
    padding-left: 40px;
}

.digit {
    display: inline-block;
    flex-shrink: 0; /* CRUCIAL: Evita que Flexbox comprima los 8.000 dígitos */
    text-align: center;
    line-height: 1;
    font-weight: bold;
    color: #f2f2f2;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    user-select: none;
}

@media (orientation: landscape) {
    .digit {
        font-size: 50vh;
        width: 28vh;
    }
}

@media (orientation: portrait) {
    .digit {
        font-size: 35vh;
        width: 19.6vh;
    }
}

.decimal {
    color: #4dd0e1;
}

#hint {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    color: #666666;
    font-size: clamp(11px, 1.6vh, 14px);
    letter-spacing: 1px;
}