/* style.css */
:root {
    --bg-main: #080808;
    --bg-panel: #141414;
    --accent: #00FF00;
    --text-main: #eeeeee;
    --text-dim: #666666;
    --border: 1px solid #333;
}

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

@font-face { font-family: 'Font1'; src: url('Fonts/font14.otf'); }
@font-face { font-family: 'Font2'; src: url('Fonts/font9.ttf'); }

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Chakra Petch', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Скроллбар */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000000; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* Эффект шума на фоне */
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
}

.container {
    max-width: 90%;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

/* --- HEADER --- */
header {
    border-bottom: var(--border);
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.brand-area img { height: 60px; display: block; }

.system-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 5px 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(242, 255, 0, 0.05);
}

.system-status::before { content: "● "; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* --- SOCIAL BUTTONS --- */
.social-dock { display: flex; gap: 2px; border: 1px solid #00ff00; padding: 2px; }

.social-btn {
    width: 45px; height: 45px;
    background: rgba(0,255,0,0.5);
    display: flex; justify-content: center; align-items: center;
    transition: 0.2s;
}
.social-btn img { width: 30px; }

.vk-expand {
    width: auto !important; min-width: 45px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0; text-decoration: none;
}

.social-text {
    font-family: 'Font2';
    max-width: 0; opacity: 0; white-space: nowrap; overflow: hidden;
    transition: all 0.3s ease;
    font-weight: 700; font-size: 1rem; color: #000;
}

.vk-expand:hover { padding-left: 5px; padding-right: 5px; background: #00ff00; }
.vk-expand:hover .social-text { max-width: 100px; opacity: 1; margin-left: 5px; }

/* --- ALERT BOX --- */
.alert-box {
    background: repeating-linear-gradient(45deg,rgba(26, 26, 26, 0.8),rgba(26, 26, 26, 0.8) 10px,rgba(34, 34, 34, 0.8) 10px,rgba(34, 34, 34, 0.8) 20px);
    border: var(--border);
    border-left: 4px solid #ff0000;
    padding: 20px; margin-bottom: 20px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 20px;
}
.alert-text { font-family: 'Font1'; font-size: 0.9rem; color: #ccc; max-width: 100%; }

.alert-link {
    font-family: 'Font2'; background: var(--accent); color: #000;
    font-weight: 700; text-align: center; font-size: 1.2rem;
    text-decoration: none; padding: 8px 0;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.2s; position: relative; overflow: hidden;
}
.alert-link:hover { background: #00ffff; }

/* --- LAYOUT --- */
.layout-grid { display: grid; grid-template-columns: 250px 1fr; gap: 30px; }
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.content-area { display: flex; flex-direction: column; gap: 40px; border: 5px solid var(--accent); border-radius: 10px;}

.stat-card {
    background: rgba(20, 20, 20, 0.6);
    border: 5px solid var(--accent);
    padding: 20px 20px 20px 20px;
}
.stat-title { font-family: 'Font2'; font-size: 0.7rem; color: var(--text-dim); margin-bottom: 10px; display: block; }

.platform-links { display: flex; flex-direction: column; gap: 10px; }

.plat-btn {
    font-family: 'Font2'; font-size: 15px;
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: #fff;
    padding: 5px; background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1); transition: 0.3s;
}
.plat-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(0, 255, 0, 0.1); }
.plat-btn img { width: 40px; border-radius: 20%; }

/* --- SECTIONS & CARDS --- */
.section-head { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.section-head h2 { font-family: 'Font2'; font-size: 1.5rem; text-transform: uppercase; font-weight: 700; }

.line { flex-grow: 1; height: 1px; background: var(--accent); position: relative; }
.line::after { content: ""; position: absolute; right: 0; top: -10px; width: 21px; height: 21px; background: var(--accent); }
.line2 { flex-grow: 1; height: 1px; background: var(--accent); position: relative; }
.line2::after { content: ""; position: absolute; left: 0; top: -10px; width: 21px; height: 21px; background: var(--accent); }

/* Общий wrapper для списка игр (Grid) */
.games-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, 150px);
    justify-content: center;
    gap: 0px;
    margin: 20px 0px;
}

/* Модификатор для страницы одной игры (Flex) */
.games-wrapper.single-game {
    display: flex;
    justify-content: center;
    grid-template-columns: none;
}

.tech-card {
    border: 2px solid rgba(0, 255, 0, 0.2);
    text-decoration: none; position: relative;
    transition: all 0.3s ease;
    display: flex; flex-direction: column; overflow: hidden;
    text-align: center;
    background: rgba(0, 45, 0, 0.5);
}

.tech-card::after {
    content: ""; position: absolute;
    top: -100%; left: -100%; width: 300%; height: 300%;
    background: linear-gradient(to bottom right,transparent,transparent 40%,rgba(255, 255, 255, 0.4) 48%,rgba(242, 255, 0, 0.4) 52%,transparent 60%,transparent);
    transform: rotate(0deg) translateY(-60%);
    transition: transform 0.6s cubic-bezier(0.3, 1, 0.2, 1);
    pointer-events: none; z-index: 3;
}

.img-box {
    width: 100%; aspect-ratio: 1/1;
    background: rgba(0,0,0,0.5); position: relative;
    overflow: hidden; border-bottom: 2px solid rgba(255,255,255,0.2);
}
.img-box img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }

.info-box { font-family: 'Font2'; padding: 5px; }
.info-box h3 { color: #fff; font-size: 1.2rem; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.info-box h4 { font-family: 'Font1'; color: #fff; text-align: center; font-size: 1.3rem; text-shadow: 0 0px 5px rgba(255,255,0,0.5); }

.tag { font-size: 0.9rem; color: var(--text-dim); font-family: 'Font2'; padding: 0px 5px 5px 5px; }
.tag2 { font-size: 0.8rem; font-family: 'Font2'; text-align: center; margin-top: 10px; font-weight: 700; }
.tag3 { background: rgba(0,0,0,0.5); position: absolute; top: 0; left: 0; font-family: 'Font2'; font-size: 0.8rem; color: #00ff00; font-weight: 700; border: 2px solid #00ff00; animation: blink2 1s infinite; }
@keyframes blink2 {50%{ color: #00ffff; border: 2px solid #00ffff; }}

.tech-card:hover {
    border-color: var(--accent); transform: translateY(-5px);
    box-shadow: 0 0 20px var(--accent)/*, inset 0 0 15px var(--accent)*/;
    //background: rgba(45, 45, 45, 0.5);
}
.tech-card:hover::after { transform: rotate(35deg) translateY(100%); }
.tech-card:hover .img-box img { transform: scale(1.05); }

/* --- ЭЛЕМЕНТЫ WAVE WORLD & iFRAME --- */
.main-logo { width: 45%; }
.game-logo { width: 8%; }

.link img { width: 200px; margin-top: 0px; transition: transform 0.2s ease; }
.link img:hover { transform: scale(1.1); }

iframe {
    margin-top: 0px; display: flex; justify-content: center;
    width: 95%; max-width: 640px; height: auto; aspect-ratio: 16 / 9;
}

/* --- FOOTER --- */
footer {
    font-family: 'Font2';
    margin-top: 60px;
    border-top: 1px solid #333; font-size: 1.2rem; color: var(--text-dim);
    display: flex; justify-content: center; align-items: center;
    padding-top: 5px;
    text-align: center;
}
.footer-col a { color: #fff; text-decoration: none; display: block; margin-bottom: 5px; transition: 0.2s;}
.footer-col b { display: block; margin-top: 20px; }
.footer-col c { color: var(--accent); }
.footer-col d { color: #fff; }
.footer-col e { color: #00ff00; }
.footer-col f { color: #ff0000; }
.footer-col g { color: #ac05f1; }
.footer-col a:hover { color: var(--accent); }

.no-trailer {
border-radius: 20px;
margin-top: 0px;
width: 95%;
max-width: 640px;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 880px) {
    .link img { width: 140px; }
    .alert-link { font-size: 1rem; }
    .layout-grid { grid-template-columns: 1fr; }
    .sidebar { flex-direction: row; overflow-x: auto; padding-bottom: 10px; }
    .stat-card { min-width: 250px; }
    header { flex-direction: column; align-items: center; text-align: center; }
    .games-wrapper { grid-template-columns: repeat(auto-fit, 100px); }
    .info-box h3 { font-size: 0.7rem; margin-bottom: 0px; }
    .info-box h4 { font-size: 1rem; }
    .info-box { padding: 5px; }
    .tag, .tag2 { font-size: 0.6rem; }
    footer { font-size: 0.8rem; }
    .tag, .tag2 { padding: 0px 5px 5px 5px; }
    .container { max-width: 100%; }
    
    /* Mobile for Wave World */
    .game-logo { width: 20%; }
    .main-logo { width: 200px; height: 100%; margin-top: 15px; }
}
