* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    min-height: 100vh;
    overflow: hidden;
    font-family: system-ui, sans-serif;
}

.info-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(255,255,255,0.95);
    padding: 20px 30px;
    border-radius: 30px;
    font-size: 14px;
    line-height: 2;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    border: 1px solid rgba(0,0,0,0.05);
    max-width: 400px;
}

.badge {
    display: inline-block;
    margin: 0 5px;
    padding: 4px 12px;
    border-radius: 20px;
}

.badge-tl { background: #e3f2fd; }
.badge-tr { background: #fff3e0; }
.badge-br { background: #e8f5e9; }
.badge-bl { background: #f3e5f5; }

.resolution-info {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 14px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    line-height: 1.8;
    border: 1px solid rgba(255,255,255,0.1);
}

.level-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.level-1 { background: #4CAF50; }
.level-2 { background: #2196F3; }
.level-3 { background: #FF9800; }
.level-4 { background: #9C27B0; }
.level-5 { background: #F44336; }

/* Контейнер страниц */
.pages-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

.page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    visibility: hidden;
    transition: none;
}

.page.active {
    opacity: 1;
    z-index: 2;
    visibility: visible;
}

/* Цвета страниц */
.page-1 { background-color: white; }
.page-2 { background-color: white; }
.page-3 { background-color: white; }
.page-4 { background-color: white; }

.page-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: system-ui, sans-serif;
    pointer-events: none;
    z-index: 10;
    
    padding: 20px; /* Базовый отступ */
    box-sizing: border-box;
}

/* Дополнительный отступ для контента, чтобы быть внутри рамки */
.page-content {
    padding: calc(0px + 0px); /* BASE_OFFSET + LINE_SPACING для level 1 */
}

.page-content h1 {
    font-size: 8rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    letter-spacing: -2px;
    max-width: 80%;
    word-wrap: break-word;
}

.page-content p {
    font-size: 1.8rem;
    margin: 1rem 0 0;
    opacity: 0.9;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    max-width: 95%; /* MAIN WIDTH */
    word-wrap: break-word;
}

/* Цвета текста для разных страниц */
#page1 .page-content h1,
#page1 .page-content p {
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

#page2 .page-content h1,
#page2 .page-content p {
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

#page3 .page-content h1,
#page3 .page-content p {
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

#page4 .page-content h1,
#page4 .page-content p {
    color: white;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}
/* ===== КОНЕЦ СТИЛЕЙ ДЛЯ КОНТЕНТА ===== */

/* Белая подложка - СРЕДНИЙ слой */
.white-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
}

.white-mask svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.white-mask path {
    fill: white;
}

/* Угловые линии - САМЫЙ ВЕРХНИЙ */
.corner {
    z-index: 3;
}

.corner-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.corner-path {
    stroke: #999;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

/* Маска по умолчанию скрыта */
.white-mask.hidden {
    display: none;
}

/* Белая рамка */
.white-frame {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.white-frame svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.white-frame path {
    fill: white;
    stroke: none;
}