/* ==========================================================================
   1. ИГРОВЫЕ ШРИФТЫ И ПЕРЕМЕННЫЕ GENO-DICE
   ========================================================================== */
@font-face {
    font-family: 'MV Boli';
    src: url("../fonts/MV-crooker.95b03e73a63b.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #0f111a;
    --card-bg: #161925;
    --neon-cyan: #00f0ff;
    --neon-orange: #ff6c00;
    --text-color: #e2e8f0;
    --text-muted: #718096;
}

/* ==========================================================================
   2. ГЛОБАЛЬНЫЕ СТИЛИ
   ========================================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Применение MV Boli ко всем заголовкам и элементам меню */
h1, h2, h3, h4, .tile-card h2, .tile-card h3, .tile-card-row h3, .site-logo-text,
.site-navigation .nav-btn {
    font-family: 'MV Boli', 'Segoe UI', sans-serif !important;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 2.4rem;
    color: var(--text-color);
    text-shadow: 0 0 10px var(--neon-cyan);
    margin-bottom: 30px;
    text-align: center;
}

a, a:visited {
    color: var(--neon-orange);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 8px rgba(255, 108, 0, 0.6);
}

.content-wrapper {
    flex: 1 0 auto;
    width: 100%;
    padding: 20px 0;
    box-sizing: border-box;
}

.tag-badge {
    display: inline-block;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan) !important;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-right: 8px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.tag-badge:hover {
    background: var(--neon-cyan);
    color: var(--bg-color) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    text-shadow: none;
}

/* ==========================================================================
   3. ШАПКА
   ========================================================================== */
.site-header {
    background: transparent;
    padding: 30px 50px 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-img {
    height: 80px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.header-logo-img:hover {
    transform: scale(1.03);
}

.header-right-panel {
    display: flex;
    align-items: center;
    gap: 40px;
}

.site-navigation {
    display: flex;
    gap: 35px;
}

.site-navigation .nav-btn {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.site-navigation .nav-btn:hover,
.site-navigation .nav-btn.active {
    color: var(--neon-cyan);
    border: none;
    background: transparent;
    box-shadow: none;
    text-shadow: 0 0 8px var(--neon-cyan);
}

.language-switcher {
    display: flex;
    border: 2px solid var(--neon-cyan);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.language-switcher .lang-btn {
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    padding: 4px 14px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.language-switcher a.lang-btn:hover {
    background: rgba(0, 240, 255, 0.15);
}

.language-switcher .lang-btn.active,
.language-switcher span.lang-btn.active {
    border: none;
    background: var(--neon-cyan);
    color: var(--bg-color);
    box-shadow: none;
}

/* ==========================================================================
   4. ДАШБОРД
   ========================================================================== */
.main-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Виджеты – сетка 3 колонки */
.widgets-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Вертикальные плитки (виджеты) */
.tile-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.03);
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.tile-bg-image {
    position: absolute;
    right: -15px;
    top: -15px;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1;
}
.green-glow { background: radial-gradient(circle, rgba(0,240,255,0.2) 0%, rgba(0,0,0,0) 70%); }
.blue-glow { background: radial-gradient(circle, rgba(176,86,255,0.2) 0%, rgba(0,0,0,0) 70%); }

.tile-bg-image img {
    max-width: 80px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.tile-card h2, .tile-card h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: normal;
    color: var(--text-color);
}

.tile-content {
    position: relative;
    z-index: 2;
}

.btn-donate {
    display: inline-block;
    color: var(--neon-orange);
    text-decoration: none;
    font-size: 0.8rem;
    line-height: 1.3;
    border: 1px solid rgba(255, 108, 0, 0.4);
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 15px;
    background: rgba(255, 108, 0, 0.03);
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-donate:hover {
    background: var(--neon-orange);
    color: #fff;
    box-shadow: 0 0 15px var(--neon-orange);
    text-shadow: none;
}

.fake-inputs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.fake-input-line {
    height: 26px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    width: 100%;
}

.fake-input-line-text {
    height: 32px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 0.85rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}

.fake-input-line-text.line-done {
    border: 1px solid rgba(0, 240, 255, 0.2);
}
.line-done .inline-dot {
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
}

.fake-input-line-text.line-todo {
    border: 1px solid rgba(255, 108, 0, 0.15);
    color: #a0aec0;
}
.line-todo .inline-dot {
    background: var(--neon-orange);
    box-shadow: 0 0 8px var(--neon-orange);
}

.fake-input-line-text .team-dot {
    background: var(--neon-orange);
    box-shadow: 0 0 6px var(--neon-orange);
}

.inline-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
    flex-shrink: 0;
}

.gallery-preview-container {
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-top: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.art-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fake-panel-art {
    width: 100%;
    height: 100%;
    background: transparent;
}

.tile-content-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dots-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

a.tile-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
}

/* --- НИЖНИЙ РЯД – КНОПКИ (сетка 3 колонки) --- */
.tiles-grid-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Кнопки – уменьшенные, без скругления */
.tile-card-row {
    display: block;
    height: 90px;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: #fff;
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
    transition: all 0.3s ease;
    background-color: var(--card-bg);
    background-size: cover;
    background-position: center;
}

.tile-card-row:hover {
    border-color: var(--neon-orange);
    box-shadow: 0 0 25px rgba(255, 108, 0, 0.35);
    transform: scale(1.02);
}

/* Контейнер текста – центрирован по центру кнопки */
.tile-card-row .row-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    z-index: 2;
    max-width: 90%;
}

/* Заголовок – увеличенный шрифт, фирменный, голубой неон */
.tile-card-row .row-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;   /* увеличено */
    font-weight: normal;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
    line-height: 1.2;
    font-family: 'MV Boli', 'Segoe UI', sans-serif !important;
}

/* Подзаголовок – увеличенный шрифт, белый с чёрным контуром */
.tile-card-row .row-text p {
    margin: 0;
    font-size: 0.9rem;   /* увеличено */
    color: #fff;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-shadow: -1px -1px 0 #000,
                  1px -1px 0 #000,
                 -1px  1px 0 #000,
                  1px  1px 0 #000;
}

/* Затемнение фона для читаемости */
.tile-card-row::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
    transition: background 0.3s ease;
}

.tile-card-row:hover::after {
    background: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   5. ПОДВАЛ
   ========================================================================== */
.site-footer {
    flex-shrink: 0;
    background-color: #090a10;
    border-top: 1px solid #1e2235;
    padding: 35px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.footer-centered-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-centered-container p {
    margin: 0 0 8px 0;
    color: var(--text-color);
    font-size: 0.95rem;
    text-align: center;
    width: 100%;
    text-shadow: 0 0 8px var(--neon-cyan), 0 0 15px var(--neon-cyan);
}

.footer-centered-container p strong {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan);
}

.footer-author {
    font-size: 0.85rem !important;
    margin-bottom: 15px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.footer-links a, .footer-links a:visited {
    color: var(--neon-orange) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    text-shadow: 0 0 8px var(--neon-orange), 0 0 18px var(--neon-orange);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    text-shadow: 0 0 14px var(--neon-orange), 0 0 25px var(--neon-orange);
}

.footer-divider {
    color: #2d3748;
    font-size: 1rem;
    user-select: none;
}

/* ==========================================================================
   6. ТОП-3 КОМАНДЫ
   ========================================================================== */
#ascension-timer {
    display: block;
    font-size: 1.2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan), 0 0 15px var(--neon-cyan);
    margin: 5px 0 10px 0;
    font-weight: bold;
    letter-spacing: 2px;
}

.elo-first {
    color: var(--neon-orange);
    text-shadow: 0 0 10px var(--neon-orange), 0 0 20px var(--neon-orange);
}

.elo-other {
    color: #ffffff;
    text-shadow: 0 0 8px #ffffff, 0 0 15px #ffffff;
}

.neon-dash {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan), 0 0 15px var(--neon-cyan);
    margin: 0 4px;
    font-weight: bold;
}

.team-name {
    color: #a0aec0;
}