/* ============================================================
   AUZATA ONLINE — стили лендинга
   Фэнтезийный стиль: тёмный, золото, магия
   ============================================================ */

:root {
    --bg-dark: #080810;
    --bg-card: #0e0e1c;
    --gold: #c9a84c;
    --gold-bright: #f0cb6a;
    --gold-dim: #7a6430;
    --text: #d4c9a8;
    --text-muted: #7a7060;
    --border: rgba(201, 168, 76, 0.2);
    --border-bright: rgba(201, 168, 76, 0.5);
    --glow-gold: rgba(201, 168, 76, 0.15);
    --font-fantasy: 'Cinzel', serif;
    --font-body: 'Crimson Text', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.04) 0%, transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='rgba(201,168,76,0.04)' stroke-width='1'/%3E%3C/svg%3E");
}

/* ============================================================
   Топбар
   Левый блок прижат к левому краю
   Правый блок прижат к правому краю
   ============================================================ */
/* ============================================================
   ГЛАВНАЯ — фикс-вьюпорт: топбар сверху, футер снизу, средняя зона
   (шапка + новости) скролится МЕЖДУ ними. Низ всегда виден, всю
   страницу скролить не надо. Только для body.home-fixed —
   privacy/страница новости скролятся обычным образом.
   ============================================================ */
body.home-fixed {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
body.home-fixed .topbar { flex-shrink: 0; }
body.home-fixed .page-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;   /* критично: иначе flex-элемент не сжимается и не скролится */
}
body.home-fixed .site-footer { flex-shrink: 0; margin-top: 0; }
body.home-fixed .page-scroll::-webkit-scrollbar { width: 10px; }
body.home-fixed .page-scroll::-webkit-scrollbar-track { background: rgba(255,255,255,0.04); }
body.home-fixed .page-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
body.home-fixed .page-scroll::-webkit-scrollbar-thumb:hover { background: var(--gold, #c9a84c); }

.topbar {
    background: linear-gradient(90deg, #0a0a16, #0d0d1f, #0a0a16);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Левый блок — кнопки и политика прижаты к левому краю */
.topbar-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    flex-shrink: 0;
}

.topbar-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.topbar-btn {
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-family: var(--font-fantasy);
    letter-spacing: 0.5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.topbar-btn.blue {
    background: #1a4a8a;
    color: #90c0ff;
    border: 1px solid #2a5aaa;
}

.topbar-btn.blue:hover {
    background: #2255aa;
    box-shadow: 0 0 12px rgba(74, 144, 217, 0.4);
}

.topbar-btn.vk {
    background: #2a5a8f;
    color: #cfe3ff;
    border: 1px solid #3a6db0;
}
.topbar-btn.vk:hover {
    background: #356fae;
    box-shadow: 0 0 12px rgba(70, 128, 194, 0.4);
}

/* Возрастная плашка 12+ */
.age-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 30px; height: 24px; padding: 0 6px;
    border-radius: 4px;
    background: #2a2a30;
    border: 1px solid #555;
    color: #e8e2d4;
    font-family: var(--font-fantasy);
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    flex-shrink: 0;
}

.topbar-btn.orange {
    background: #6b3a10;
    color: #ffb870;
    border: 1px solid #8a4a18;
}

.topbar-btn.orange:hover {
    background: #8a4a18;
    box-shadow: 0 0 12px rgba(217, 123, 42, 0.4);
}

/* Политика под кнопками — тоже прижата к левому краю */
.topbar-privacy {
    color: var(--text-muted);
    font-size: 11px;
    text-decoration: none;
    transition: color 0.2s;
    text-align: left;
}

.topbar-privacy:hover { color: var(--gold); }

/* Правый блок — прижат к правому краю */
.topbar-right {
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 20px;
}

/* ============================================================
   Кнопка "Играть бесплатно" — яркая золотая
   ============================================================ */
.btn-play {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #c9a84c, #f0cb6a, #c9a84c);
    background-size: 200% 100%;
    color: #0a0a10;
    font-family: var(--font-fantasy);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid var(--gold-bright);
    transition: all 0.3s;
    box-shadow: 0 0 16px rgba(201, 168, 76, 0.4), 0 4px 12px rgba(0,0,0,0.4);
    animation: playGlow 2s ease-in-out infinite;
    white-space: nowrap;
}

.btn-play:hover {
    box-shadow: 0 0 30px rgba(240, 203, 106, 0.7), 0 0 60px rgba(201, 168, 76, 0.3);
    transform: translateY(-1px);
    color: #000;
}

@keyframes playGlow {
    0%, 100% { box-shadow: 0 0 16px rgba(201, 168, 76, 0.4), 0 4px 12px rgba(0,0,0,0.4); }
    50% { box-shadow: 0 0 28px rgba(240, 203, 106, 0.7), 0 0 50px rgba(201, 168, 76, 0.2), 0 4px 12px rgba(0,0,0,0.4); }
}

/* ============================================================
   Шапка сайта
   ============================================================ */
.site-header {
    position: relative;
    padding: 60px 20px 50px;
    text-align: center;
    overflow: hidden;
}

.header-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(201, 168, 76, 0.08) 0%, transparent 70%),
        linear-gradient(180deg, rgba(201, 168, 76, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

.header-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.runes-left, .runes-right {
    flex-shrink: 0;
    width: 60px;
    height: 100px;
    opacity: 0.3;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='100'%3E%3Ctext y='20' font-size='16' fill='%23c9a84c'%3Eᚠ%3C/text%3E%3Ctext y='45' font-size='16' fill='%23c9a84c'%3Eᚢ%3C/text%3E%3Ctext y='70' font-size='16' fill='%23c9a84c'%3Eᚦ%3C/text%3E%3Ctext y='95' font-size='16' fill='%23c9a84c'%3Eᚨ%3C/text%3E%3C/svg%3E") no-repeat center;
}

.runes-right { transform: scaleX(-1); }
.title-block { flex: 1; }

.title-ornament {
    color: var(--gold-dim);
    font-size: 14px;
    letter-spacing: 8px;
    margin-bottom: 8px;
}

.game-title {
    font-family: var(--font-fantasy);
    font-size: clamp(36px, 7vw, 72px);
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 6px;
    text-shadow: 0 0 30px rgba(201, 168, 76, 0.4), 0 0 60px rgba(201, 168, 76, 0.2);
    line-height: 1.1;
    margin-bottom: 8px;
}

.game-title span {
    color: var(--text);
    font-size: 0.6em;
    letter-spacing: 12px;
    display: block;
}

.game-subtitle {
    font-style: italic;
    color: var(--text-muted);
    font-size: 18px;
    letter-spacing: 2px;
    margin-top: 6px;
}

/* ============================================================
   Заголовки секций
   ============================================================ */
.section-title-wrap { text-align: center; margin-bottom: 36px; }

.section-title {
    font-family: var(--font-fantasy);
    font-size: 28px;
    color: var(--gold);
    letter-spacing: 3px;
    display: inline-block;
    padding: 0 24px;
    position: relative;
}

.section-title::before, .section-title::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim));
}

.section-title::before { right: 100%; }
.section-title::after { left: 100%; transform: scaleX(-1); }

/* ============================================================
   Видео
   ============================================================ */
.video-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    border-top: 1px solid var(--border);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.video-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 0 20px var(--glow-gold);
}

.video-player { width: 100%; aspect-ratio: 16/9; display: block; background: #000; }
.video-title { padding: 12px 16px; font-family: var(--font-fantasy); font-size: 14px; color: var(--gold); letter-spacing: 1px; }

/* ============================================================
   Новости
   ============================================================ */
.news-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    border-top: 1px solid var(--border);
}

.news-feed { display: flex; flex-direction: column; gap: 28px; }
.news-card { flex-shrink: 0; }   /* карточка не сжимается (не клипает заголовок) */

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    border-color: var(--border-bright);
    box-shadow: 0 4px 24px var(--glow-gold);
}

.news-cover { flex-shrink: 0; width: 220px; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-body { padding: 24px 28px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.news-date { font-size: 13px; color: var(--text-muted); font-family: var(--font-fantasy); letter-spacing: 1px; }
.news-tag { font-size: 11px; padding: 2px 8px; background: rgba(201, 168, 76, 0.08); border: 1px solid var(--border); border-radius: 3px; color: var(--gold-dim); font-family: var(--font-fantasy); }
.news-title { font-family: var(--font-fantasy); font-size: 20px; margin-bottom: 10px; line-height: 1.3; }
.news-title a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
.news-title a:hover { color: var(--gold-bright); }
.news-excerpt { color: var(--text-muted); font-size: 16px; margin-bottom: 16px; }
.news-read-more { color: var(--gold); text-decoration: none; font-family: var(--font-fantasy); font-size: 13px; letter-spacing: 1px; }
.news-read-more:hover { color: var(--gold-bright); }
.news-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); font-style: italic; font-size: 20px; }

/* ============================================================
   Теги SEO
   ============================================================ */
.tags-section { max-width: 1200px; margin: 0 auto; padding: 24px 20px 40px; border-top: 1px solid var(--border); }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; opacity: 0.5; }
.tag-item { font-size: 12px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 3px; color: var(--text-muted); font-family: var(--font-fantasy); }

/* ============================================================
   Футер
   ============================================================ */
.site-footer {
    background: #050508;
    border-top: 1px solid var(--border);
    padding: 32px 20px;
    text-align: center;
    margin-top: 40px;
}

.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-title { font-family: var(--font-fantasy); font-size: 20px; color: var(--gold); letter-spacing: 4px; margin-bottom: 8px; }
.footer-copy { color: var(--text-muted); font-size: 14px; margin-bottom: 6px; }

/* Контакт под копирайтом */
.footer-contact {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.footer-contact a {
    color: var(--gold-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover { color: var(--gold); }

.footer-privacy { color: var(--text-muted); font-size: 13px; text-decoration: none; transition: color 0.2s; display: block; }
.footer-privacy:hover { color: var(--gold); }

/* ============================================================
   Политика конфиденциальности
   ============================================================ */
.privacy-page { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.privacy-container { max-width: 860px; margin: 0 auto; }
.back-link { display: inline-block; color: var(--gold-dim); text-decoration: none; font-family: var(--font-fantasy); font-size: 14px; letter-spacing: 1px; margin-bottom: 24px; transition: color 0.2s; }
.back-link:hover { color: var(--gold); }
.privacy-title { font-family: var(--font-fantasy); font-size: 32px; color: var(--gold); letter-spacing: 2px; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.privacy-content h2 { font-family: var(--font-fantasy); font-size: 18px; color: var(--gold); margin: 28px 0 10px; letter-spacing: 1px; }
.privacy-content p { color: var(--text); margin-bottom: 14px; font-size: 17px; }
.privacy-content ul { color: var(--text); padding-left: 24px; margin-bottom: 14px; }
.privacy-content li { margin-bottom: 6px; }
.privacy-content a { color: var(--gold); transition: color 0.2s; }
.privacy-content a:hover { color: var(--gold-bright); }
.privacy-date { margin-top: 32px; color: var(--text-muted); font-style: italic; font-size: 14px; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 700px) {
    .news-card { flex-direction: column; }
    .news-cover { width: 100%; height: 200px; }
    .header-content { flex-direction: column; }
    .runes-left, .runes-right { display: none; }
    .topbar-inner { flex-wrap: wrap; gap: 10px; }
    .topbar-right { margin-left: 0; padding-left: 0; width: 100%; }
    .btn-play { width: 100%; text-align: center; }
}