
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.fullscreen-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background-color: #FF0000; /* Красный фон по умолчанию */
}

.text-display {
    font-family: Arial, sans-serif;
    text-align: center;
    word-wrap: break-word;
    padding: 20px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-indicator {
    text-align: center;
    color: white;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: pulse 1s infinite alternate;
}

.device-number-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vmin;
    font-weight: bold;
    color: white;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.8);
    z-index: 100;
    background: rgba(0,0,0,0.7);
    border-radius: 20px;
    padding: 40px 60px;
}

.story-word-display {
    font-size: 15vmin;
    font-weight: bold;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    animation: storyWordAppear 0.5s ease-in-out;
}

.ticker-word-display {
    font-size: 12vmin;
    font-weight: bold;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    animation: tickerWordMove 0.3s ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

@keyframes specialWordPulse {
    0% { opacity: 0; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes storyWordAppear {
    0% { opacity: 0; transform: scale(0.5) rotate(-5deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(0deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes tickerWordMove {
    0% { opacity: 0; transform: translateX(-100px) scale(0.8); }
    50% { opacity: 1; transform: translateX(0) scale(1.05); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

.debug-info {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px;
    font-size: 12px;
    border-radius: 5px;
    z-index: 1000;
    max-width: 300px;
}

.debug-info.hidden {
    display: none;
}