/* СБРОС И БАЗА */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background-color: #050505;
    color: #e0e0e0;
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    overflow-y: auto; /* Разрешаем скролл, если реклама uCoz займет место */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 0; /* Отступы сверху и снизу */
}

/* 3D КАНВАС */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a0a0a 0%, #000 80%);
}

/* ЭФФЕКТ СКАНЛАЙНОВ */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0),
        rgba(255,255,255,0) 50%,
        rgba(0,0,0,0.2) 50%,
        rgba(0,0,0,0.2)
    );
    background-size: 100% 4px;
    z-index: 100;
    pointer-events: none;
    opacity: 0.3;
}

/* ОСНОВНОЙ КОНТЕЙНЕР */
.content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
}

/* --- ГЛАВНЫЙ ЛОГОТИП --- */
.logo-container {
    position: relative;
    margin-bottom: 20px;
}

.rad-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25rem;
    color: rgba(230, 57, 70, 0.05);
    z-index: -1;
    animation: spin 20s linear infinite;
    pointer-events: none;
}

@keyframes spin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.main-title {
    font-family: 'Black Ops One', sans-serif;
    font-size: 8rem;
    line-height: 0.9;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 5px;
    position: relative;
    text-shadow: 
        0 0 10px rgba(230, 57, 70, 0.8),
        0 0 20px rgba(230, 57, 70, 0.5),
        0 0 40px rgba(230, 57, 70, 0.2);
    animation: glitch 3s infinite alternate;
}

.main-title::before, .main-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #050505;
}

.main-title::before {
    left: 3px;
    text-shadow: -3px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.main-title::after {
    left: -3px;
    text-shadow: -3px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 83px, 0); }
    20% { clip: rect(62px, 9999px, 15px, 0); }
    40% { clip: rect(33px, 9999px, 91px, 0); }
    60% { clip: rect(75px, 9999px, 48px, 0); }
    80% { clip: rect(12px, 9999px, 77px, 0); }
    100% { clip: rect(55px, 9999px, 22px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(15px, 9999px, 55px, 0); }
    40% { clip: rect(88px, 9999px, 12px, 0); }
    60% { clip: rect(45px, 9999px, 77px, 0); }
    80% { clip: rect(20px, 9999px, 90px, 0); }
    100% { clip: rect(70px, 9999px, 35px, 0); }
}

.subtitle {
    font-family: 'Black Ops One', sans-serif;
    font-size: 2rem;
    color: #e63946;
    letter-spacing: 15px;
    margin-top: -10px;
    text-shadow: 0 0 10px #e63946;
    position: relative;
    z-index: 2;
}

/* --- ПАНЕЛЬ ТЕРМИНАЛА (IP) --- */
.terminal-box {
    background: rgba(10, 10, 10, 0.8);
    border: 2px solid #333;
    border-left: 4px solid #e63946;
    padding: 25px 40px;
    margin-top: 30px;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.9), inset 0 0 20px rgba(230, 57, 70, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.terminal-box:hover {
    box-shadow: 0 0 40px rgba(230, 57, 70, 0.3), inset 0 0 30px rgba(230, 57, 70, 0.2);
    border-color: #e63946;
}

.terminal-box::before {
    content: '';
    position: absolute;
    top: -2px; right: -2px;
    width: 20px; height: 20px;
    border-top: 2px solid #e63946;
    border-right: 2px solid #e63946;
}
.terminal-box::after {
    content: '';
    position: absolute;
    bottom: -2px; left: -2px;
    width: 20px; height: 20px;
    border-bottom: 2px solid #e63946;
    border-left: 2px solid #e63946;
}

.term-header {
    font-size: 0.9rem;
    color: #666;
    text-align: left;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ip-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.ip-text {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 10px #e63946;
    letter-spacing: 3px;
    transition: color 0.2s;
}

.ip-text:hover {
    color: #e63946;
    cursor: pointer;
}

.copy-btn {
    background: #e63946;
    color: #000;
    border: none;
    padding: 10px 25px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.6);
}

.copy-btn:hover {
    background: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* --- НИЖНИЕ ТЕГИ --- */
.tags-container {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    padding: 8px 20px;
    color: #aaa;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(230, 57, 70, 0.3);
    color: #fff;
    border-color: #e63946;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}

.tag span {
    color: #e63946;
    font-size: 1.2rem;
}

/* --- КНОПКА DISCORD --- */
.discord-wrapper {
    margin-top: 35px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    font-family: 'Black Ops One', sans-serif;
    font-size: 1.3rem;
    padding: 15px 40px;
    letter-spacing: 2px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.discord-btn:hover {
    background: #4752C4;
    box-shadow: 0 0 35px rgba(88, 101, 242, 0.9);
    transform: translateY(-3px);
}

.discord-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* --- БЛОК РЕКЛАМЫ UCOZ ($POWERED_BY$) --- */
.powered-by-container {
    margin-top: 40px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #222;
    border-radius: 4px;
    display: inline-block;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.powered-by-container:hover {
    opacity: 1;
}

/* Стилизация ссылки/картинки, которую генерирует uCoz (чтобы она вписалась в темную тему) */
.powered-by-container a,
.powered-by-container img {
    display: block;
    margin: 0 auto;
    filter: grayscale(100%) brightness(0.7); /* Делаем логотип чуть приглушенным */
    transition: filter 0.3s ease;
}

.powered-by-container a:hover,
.powered-by-container img:hover {
    filter: grayscale(0%) brightness(1); /* Возвращаем цвета при наведении */
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* АДАПТИВНОСТЬ */
@media (max-width: 900px) {
    .main-title { font-size: 5rem; }
    .rad-symbol { font-size: 15rem; }
    .ip-text { font-size: 2rem; }
}

@media (max-width: 600px) {
    .main-title { font-size: 3.5rem; letter-spacing: 2px; }
    .subtitle { font-size: 1.2rem; letter-spacing: 8px; }
    .ip-row { flex-direction: column; gap: 15px; }
    .terminal-box { padding: 15px 20px; }
    .tags-container { flex-direction: column; width: 100%; }
    .tag { justify-content: center; }
    .discord-btn { font-size: 1rem; padding: 12px 25px; }
    .discord-btn svg { width: 22px; height: 22px; }
    .powered-by-container { margin-top: 30px; }
}