:root {
    --glow-color: rgba(100, 200, 255, 0.8);
    --glow-spread: 0px;
    --bg-color: #0a0a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    touch-action: none; /* Отключаем стандартные скроллы и зумы браузера на тач-устройствах */
}

/* Голографическая рамка */
.holo-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 191, 255, 0.05));
    box-shadow: 
        0 0 20px var(--glow-color),
        inset 0 0 40px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(100, 200, 255, 0.3);
}

/* Анимированная голографическая обводка */
.holo-frame::before {
    content: '';
    position: absolute;
    top: -2px; right: -2px; bottom: -2px; left: -2px;
    background: linear-gradient(45deg, 
        rgba(0, 255, 255, 0), 
        rgba(0, 212, 255, 0.6), 
        rgba(0, 255, 255, 0), 
        rgba(100, 200, 255, 0.6), 
        rgba(0, 255, 255, 0));
    z-index: 1;
    border-radius: 18px;
    pointer-events: none;
    animation: holo-shift 3s linear infinite;
}

.holo-frame::after {
    content: '';
    position: absolute;
    top: -2px; right: -2px; bottom: -2px; left: -2px;
    background: transparent;
    border-radius: 18px;
    filter: blur(10px);
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 0 30px 5px var(--glow-color);
}

@keyframes holo-shift {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Контейнеры */
#canvas-container {
    width: 25vw; /* 1/4 экрана */
    height: 25vw;
    aspect-ratio: 1 / 1;
    margin: auto;
    position: relative;
    perspective: 1000px;
    touch-action: none;
}

#holo-canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 16px;
}

/* Стили для развернутой страницы */
.page-wrapper {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-rows: 60px 1fr 60px;
    background: var(--bg-color);
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.nav-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.page-content {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    height: calc(100% - 40px);
    overflow-y: auto;
}

.page-content iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    background: white;
}