@import "flag-icon.min.css";
@import "fonts.css";

:root {
    --primary-color: #6a1b2d;
    --secondary-color: #2d1a26;
    --accent-color: #bfa16a;
    --text-color: #e6e1e8;
    --dark-bg: #23161c;
    --light-bg: #3a2532;
    --highlight: #3e1e4d;
    --table-bg: rgba(58, 37, 50, 0.92);
    --content-width: 800px;
    --wide-content-width: 1400px;
    --emerald: #3fa47a;
    --purple: #8b5cf6;
    --neon-pink: #ff2e9a;
    --neon-blue: #3fffc2;
    --neon-green: #3fffc2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gothic A1', sans-serif;
}

body {
    background: #421C1E;
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
    padding-top: 140px;
    box-shadow: 0 0 120px 0 #ff2e9a22 inset;
    /* SVG дым поверх градиента */
    background-image: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" xmlns="http://www.w3.org/2000/svg"><defs><radialGradient id="g1" cx="50%" cy="40%" r="80%"><stop stop-color="%233a003a" stop-opacity="0.18" offset="0%"/><stop stop-color="%230a0012" stop-opacity="0.0" offset="100%"/></radialGradient></defs><ellipse cx="60%" cy="20%" rx="60%" ry="30%" fill="url(%23g1)"/><ellipse cx="30%" cy="60%" rx="40%" ry="20%" fill="url(%23g1)"/><ellipse cx="80%" cy="80%" rx="30%" ry="15%" fill="url(%23g1)"/></svg>');
    background-repeat: no-repeat;
    background-size: cover;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #23161c 0%, #2d1a26 100%);
    box-shadow: 0 4px 24px #000a;
    border-bottom: 2px solid var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 0 1.5rem;
}

.logo-img {
    height: 180px !important;
    max-width: 90vw;
    width: auto;
    aspect-ratio: 350 / 180;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px #6a1b2d88);
    margin-right: 1rem;
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 6px 12px rgba(0, 255, 0, 0.5));
    transform: scale(1.05);
}

/* Navigation Menu */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(58, 37, 50, 0.15);
}

.nav-menu a:hover {
    color: var(--emerald);
    background: rgba(63, 164, 122, 0.12);
    box-shadow: 0 2px 8px 0 #3fa47a33;
}

/* Language Switcher */
.desktop-language-switcher {
    margin-left: 2.5rem !important;
}

.language-btn {
    background: #3a2532;
    color: var(--text-color);
    border: 1.5px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 6px #6a1b2d33;
    transition: all 0.3s;
    cursor: pointer;
    min-width: 120px;
}

.language-btn:hover {
    background: #2d1a26;
    color: var(--emerald);
}

.language-btn.active {
    background: var(--emerald);
    color: #23161c;
    border-color: var(--emerald);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fffbe8;
    color: #252316;
    border: 1.5px solid #e6e1e8;
    border-radius: 10px;
    min-width: 140px;
    box-shadow: 0 8px 32px #0005;
    z-index: 2000;
    display: block;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    margin-top: 0.3rem;
    padding: 0.2rem 0;
    transition: opacity 0.22s cubic-bezier(.4,0,.2,1);
}

.language-dropdown.open {
    opacity: 1;
    pointer-events: auto;
}

.language-switcher:not(:hover):not(:focus-within) .language-dropdown {
    opacity: 0;
    pointer-events: none;
}

.language-dropdown a {
    color: #252316;
    padding: 0.7rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
    font-weight: 500;
}

.language-dropdown a:hover {
    background: #ffe6b3;
    color: #ff3c6e;
}

/* Header Buttons */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 1.2rem !important;
}

.btn-login {
    background: linear-gradient(90deg, #ff3c6e 0%, #ffb347 100%);
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.7rem;
    box-shadow: 0 2px 12px #ff3c6e55;
    text-shadow: 0 2px 8px #000a;
    transition: all 0.3s;
}

.btn-login:hover {
    background: linear-gradient(90deg, #ffb347 0%, #ff3c6e 100%);
    color: #fff;
    box-shadow: 0 4px 16px #ff3c6e99;
}

.btn-register {
    background: linear-gradient(90deg, #3fffc2 0%, #00bfff 100%);
    color: #252316;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    padding: 0.7rem 1.7rem;
    box-shadow: 0 2px 12px #3fffc255;
    text-shadow: 0 2px 8px #000a;
    transition: all 0.3s;
}

.btn-register:hover {
    background: linear-gradient(90deg, #00bfff 0%, #3fffc2 100%);
    color: #fff;
    box-shadow: 0 4px 16px #00bfff99;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: rgba(30,30,30,0.7) !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px #0006 !important;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 1100;
    transition: background 0.2s, box-shadow 0.2s;
}

.mobile-menu-toggle span {
    display: block !important;
    width: 28px !important;
    height: 4px !important;
    background: #fff !important;
    border-radius: 2px !important;
    margin: 4px 0 !important;
    transition: 0.3s cubic-bezier(.4,0,.2,1) !important;
    z-index: 1200 !important;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Language Switcher */
.mobile-language-switcher {
    display: none;
}

/* Крупная и стильная кнопка Play Now */
.btn-play {
    width: 270px;
    min-width: 180px;
    max-width: 100%;
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%) !important;
    color: #fff !important;
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: 1.5px;
    box-shadow: 0 0 24px 2px #43e97b88, 0 0 12px 0 #38f9d755 inset;
    border: none;
    border-radius: 16px;
    text-shadow: 0 2px 12px #000a, 0 0 8px #43e97b99;
    transition: all 0.25s cubic-bezier(.4,0,.2,1);
    display: block;
    text-align: center;
    margin: 2rem auto 2rem auto;
    white-space: normal;
    padding: 1.2rem 0;
    animation: btn-glow-green 2.5s infinite;
}

.btn-play:hover {
    background: linear-gradient(90deg, #38f9d7 0%, #43e97b 100%) !important;
    color: #fff !important;
    box-shadow: 0 0 36px 8px #43e97bcc, 0 0 24px 0 #38f9d799 inset;
    transform: scale(1.06) rotate(-1deg);
    animation: none;
}

@keyframes btn-glow-green {
  0% {
    box-shadow: 0 0 8px 1px #43e97b55, 0 0 4px 0 #38f9d755 inset;
  }
  50% {
    box-shadow: 0 0 16px 4px #38f9d755, 0 0 8px 0 #43e97b55 inset;
  }
  100% {
    box-shadow: 0 0 8px 1px #43e97b55, 0 0 4px 0 #38f9d755 inset;
  }
}

/* Main Content */
main {
    padding: 1rem 0.5rem !important;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 0.5rem !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #fff !important;
    text-shadow: none;
}

h1 {
    font-size: 3rem;
    color: var(--emerald);
    text-shadow: 1px 1px 2px #00000080;
}

main > article > h1:first-child {
    margin-top: 0;
}

h1 *, h1 strong, h1 span { color: #fff !important; }

h2 {
    font-size: 2.2rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

em, strong {
    color: #fff !important;
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background-color: var(--table-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px #23161c55;
    border: 1.5px solid var(--primary-color);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--primary-color);
    color: var(--text-color);
}

th {
    background-color: #3a2532;
    color: var(--emerald);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background-color: rgba(138, 3, 3, 0.1);
}

/* Game Preview */
.game-preview {
    position: relative;
    margin: 2rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color) !important;
    box-shadow: 0 0 32px 0 var(--primary-color), 0 0 24px 0 var(--accent-color) inset, 0 0 32px 0 var(--emerald) inset;
    background: rgba(26, 0, 34, 0.85) !important;
    backdrop-filter: blur(2px);
}

.game-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(138, 3, 3, 0.2) 0%, rgba(58, 0, 0, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.game-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
footer {
    background: #000 !important;
    color: var(--text-color);
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.copyright {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Desktop - hide mobile menu toggle */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-language-switcher {
        display: none !important;
    }
    
    .nav-menu {
        flex: 1 1 auto;
        display: flex !important;
        justify-content: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .nav-menu ul {
        flex-direction: row !important;
        align-items: center !important;
        padding: 0 !important;
        gap: 0.7rem !important;
    }
    
    .nav-menu li {
        width: auto !important;
        border-bottom: none !important;
    }
    
    .nav-menu a {
        border: 1.5px solid rgba(255,255,255,0.25);
        border-radius: 50%;
        background: none;
        color: #fff;
        font-weight: 600;
        font-size: 0.89rem !important;
        transition: border-color 0.18s, color 0.18s, background 0.18s;
        box-shadow: none;
        position: relative;
        z-index: 1;
        padding: 0.38em 0.9em !important;
        min-width: 2.2em;
        min-height: 2.2em;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-menu a:hover {
        border-color: #3fffc2;
        color: #3fffc2;
        background: rgba(63,255,194,0.07);
    }
    
    h1 {
        margin-top: 0.7rem !important;
    }
    
    .header-desktop-buttons {
        display: flex !important;
        align-items: center;
        gap: 0.6rem;
        margin-left: auto;
        margin-right: 0;
    }
    .desktop-language-switcher {
        margin-left: 3.5rem !important;
    }
    .logo-img {
        height: 90px !important;
    }
    .header-container {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 0 1.5rem;
    }
    .logo {
        margin-right: 3.5rem !important;
    }
    .nav-menu {
        order: 2;
    }
    .header-desktop-buttons {
        order: 3;
    }
    .desktop-language-switcher {
        order: 5;
        margin-left: 0 !important;
    }
    .logo-img {
        margin: 0 !important;
    }
    .header-mobile-buttons {
        display: none !important;
    }
    header {
        min-height: 130px !important;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }

    .logo-img {
        height: 100px !important;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .header-mobile-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        min-height: 44px;
    }

    .nav-menu {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translateY(-20px) !important;
    }

    .nav-menu.active {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: #23161c !important;
        padding: 1rem 0 !important;
        box-shadow: 0 8px 16px #000a !important;
        z-index: 1200 !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .logo {
        flex-grow: 0;
        flex-shrink: 1;
    }
    .mobile-language-switcher,
    .header-mobile-buttons {
        display: flex;
        width: 100%;
        justify-content: center;
    }
    .header-container {
        min-height: 180px;
    }
    .logo {
        flex: 0 1 auto;
    }
    .logo-img {
        height: 85px !important;
        margin: 0 auto;
    }
    header {
        min-height: 56px !important;
        padding: 0.3rem 0.5rem 0.1rem 0.5rem !important;
    }
    body {
        padding-top: 180px;
    }
    
    .header-mobile-top-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin-bottom: 0.2rem;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 0.2rem !important;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .logo-img {
        height: 85px !important;
        margin: 0 auto;
    }
    .mobile-menu-toggle {
        margin: 0.2rem auto 0.2rem auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-language-switcher {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0.1rem 0 0.2rem 0;
        text-align: center;
    }
    .header-mobile-buttons {
        display: flex !important;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        margin: 0.2rem 0 0.5rem 0;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        height: 30px;
        width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, rgba(0, 255, 0, 0.1) 0%, rgba(0, 200, 0, 0.05) 100%);
        border: 1px solid rgba(0, 255, 0, 0.3);
        border-radius: 6px;
        color: var(--emerald);
        font-size: 1rem;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-toggle:hover {
        background: linear-gradient(135deg, rgba(0, 255, 0, 0.2) 0%, rgba(0, 200, 0, 0.1) 100%);
        transform: scale(1.05);
    }
    
    .mobile-language-switcher {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0;
    }
    
    .mobile-language-switcher .language-switcher {
        background: none !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0;
    }
    
    .mobile-language-switcher .language-btn {
        background: #222 !important;
        border: 2px solid #3fa47a !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        min-width: 70px;
        padding: 0.3rem 1.1rem;
    }
    
    .language-btn {
        height: 24px;
        min-width: 50px;
        padding: 0 0.4rem;
        font-size: 0.8rem;
        font-weight: 600;
        background: linear-gradient(135deg, rgba(0, 255, 0, 0.2) 0%, rgba(0, 200, 0, 0.1) 100%);
        border: 1px solid rgba(0, 255, 0, 0.3);
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .language-btn:hover {
        background: linear-gradient(135deg, rgba(0, 255, 0, 0.3) 0%, rgba(0, 200, 0, 0.2) 100%);
        transform: scale(1.05);
    }
    
    .language-btn.active {
        background: linear-gradient(135deg, var(--emerald) 0%, #00cc00 100%);
        color: #000;
    }
    
    .header-desktop-buttons {
        display: none !important;
    }
    
    .btn-login, .btn-register {
        background: none !important;
        box-shadow: none !important;
        color: inherit !important;
        min-width: unset;
        font-size: unset;
        padding: unset;
        border-radius: unset;
        border: unset;
        font-weight: unset;
        transition: unset;
        text-shadow: unset;
    }
    
    .header-mobile-buttons .btn-login {
        background: linear-gradient(90deg, #ff3c6e 0%, #ffb347 100%) !important;
        color: #fff !important;
        font-weight: 700;
        border: none;
        border-radius: 10px;
        min-width: unset;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        box-shadow: 0 2px 12px #ff3c6e55;
        text-shadow: 0 2px 8px #000a;
        transition: all 0.3s;
    }
    .header-mobile-buttons .btn-login:hover {
        background: linear-gradient(90deg, #ffb347 0%, #ff3c6e 100%) !important;
        color: #fff !important;
        box-shadow: 0 4px 16px #ff3c6e99;
    }
    .header-mobile-buttons .btn-register {
        background: linear-gradient(90deg, #3fffc2 0%, #00bfff 100%) !important;
        color: #252316 !important;
        font-weight: 700;
        border: none;
        border-radius: 10px;
        min-width: unset;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        box-shadow: 0 2px 12px #3fffc255;
        text-shadow: 0 2px 8px #000a;
        transition: all 0.3s;
    }
    .header-mobile-buttons .btn-register:hover {
        background: linear-gradient(90deg, #00bfff 0%, #3fffc2 100%) !important;
        color: #fff !important;
        box-shadow: 0 4px 16px #00bfff99;
    }
    
    .desktop-language-switcher {
        display: none !important;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        right: 0;
        background: #23161c;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        border-bottom: 2px solid var(--primary-color);
        box-shadow: 0 8px 16px #00000080;
        
        /* Hide off-screen */
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        
        /* Animate */
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 999; /* Below the header but above content */
    }

    .nav-menu.active {
        /* Show on-screen */
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        background: none;
        border-bottom: 1px solid #3a2532;
    }
    
    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .nav-menu a:hover {
        background: #3fffc233;
        color: var(--emerald);
    }

    h1, h2, h3 {
        margin-bottom: 0.8rem;
        line-height: 1.3;
    }

    main > .content-wrapper > h1:first-child,
    main > h1:first-child,
    main > article > h1:first-child {
    }

    .content-wrapper {
        padding-top: 3.5rem !important;
    }

    table, .content-wrapper table {
        display: block;
        width: 100% !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 8px;
    }
    .content-wrapper {
        overflow-x: hidden;
    }
    body {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .game-preview {
        margin: 2rem 0;
    }
    .btn-play {
        width: 140px;
        min-width: 90px;
        font-size: 0.98rem;
        padding: 0.7rem 0;
        border-radius: 10px;
    }
}

@media (max-width: 600px) {
  .content-wrapper {
    padding-top: 3.5rem !important;
    padding-right: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 0.5rem !important;
  }
  .content-wrapper > h1:first-child {
    margin-top: 4.2rem !important;
    margin-bottom: 1.2rem !important;
  }
}

@keyframes neon-glow {
    0% { text-shadow: 0 0 18px var(--neon-pink), 0 0 8px var(--neon-blue); }
    100% { text-shadow: 0 0 32px var(--neon-pink), 0 0 24px var(--neon-green), 0 0 12px var(--neon-blue); }
}

@keyframes btn-pulse {
    0% { box-shadow: 0 0 16px 2px var(--neon-pink), 0 0 8px 0 var(--neon-green) inset; }
    100% { box-shadow: 0 0 32px 8px var(--neon-green), 0 0 16px 0 var(--neon-pink) inset; }
}

body, p, li, td, th {
    color: #f8f8f8;
    font-size: 1.02rem;
}

.btn-login, .btn-register, .btn-play {
    color: #fff !important;
}

h1 { color: #fff !important; }
@keyframes neon-glow {
    0% { text-shadow: 0 0 18px var(--neon-pink), 0 0 8px var(--neon-blue); }
    100% { text-shadow: 0 0 32px var(--neon-pink), 0 0 24px var(--neon-green), 0 0 12px var(--neon-blue); }
}

@keyframes btn-pulse {
    0% { box-shadow: 0 0 16px 2px var(--neon-pink), 0 0 8px 0 var(--neon-green) inset; }
    100% { box-shadow: 0 0 32px 8px var(--neon-green), 0 0 16px 0 var(--neon-pink) inset; }
}

@keyframes btn-glow {
  0% {
    box-shadow: 0 0 8px 1px #ff3c6e55, 0 0 4px 0 #3fffc255 inset;
  }
  50% {
    box-shadow: 0 0 16px 4px #3fffc255, 0 0 8px 0 #ff3c6e55 inset;
  }
  100% {
    box-shadow: 0 0 8px 1px #ff3c6e55, 0 0 4px 0 #3fffc255 inset;
  }
}

/* --- Списки с рамкой --- */
main ul, main ol {
  border: 1.5px solid var(--primary-color);
  border-radius: 12px;
  padding: 1em 1.2em 1em 2em;
  margin: 1.2em 0;
  background: rgba(58, 37, 50, 0.10);
  list-style-type: disc;
  max-width: 100%;
  overflow-x: auto;
}
main ol {
  list-style-type: decimal;
}
main li {
  margin-bottom: 0.7em;
  color: #fff;
  font-size: 1.05em;
  word-break: break-word;
}
main li:last-child {
  margin-bottom: 0;
}
@media (max-width: 768px) {
  main ul, main ol {
    padding: 0.8em 0.7em 0.8em 1.3em;
    border-radius: 9px;
    font-size: 1em;
  }
  main li {
    font-size: 1em;
  }
}
@media (max-width: 480px) {
  main ul, main ol {
    padding: 0.6em 0.4em 0.6em 1em;
    border-radius: 7px;
    font-size: 0.98em;
  }
  main li {
    font-size: 0.98em;
  }
}

@media (min-width: 1024px) {
  .desktop-language-switcher {
    margin-left: 4.5rem !important;
    flex-shrink: 0;
  }
}

main a:not(.btn-play):not(.btn-login):not(.btn-register) {
  color: #bfa16a;
  text-decoration: none;
  border-bottom: 1px dotted #bfa16a33;
  transition: color 0.2s, border-bottom 0.2s;
  font-weight: 500;
}
main a:not(.btn-play):not(.btn-login):not(.btn-register):hover {
  color: #ffe6b3;
  border-bottom: 1px solid #ffe6b3;
  text-shadow: 0 0 6px #3fffc244;
}

@media (max-width: 768px) {
    .inline-img {
        width: 100%;
        height: auto;
    }

    main {
        padding: 1rem;
    }

    .content-wrapper {
        padding: 0;
    }
}

.main-picture {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.inline-img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3 {
    color: #fff !important;
    text-shadow: none;
}

h1 {
    font-size: 2.8rem;
    text-shadow: 0 4px 16px #6a1b2d88;
    color: #fff !important;
}

h1 *, h1 strong, h1 span { color: #fff !important; }

h2 {
    font-size: 2.2rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

em, strong {
    color: #fff !important;
}

article h1, section h1, nav h1, aside h1 {
    font-size: 2em; /* Or any other consistent size */
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
}

@media (min-width: 601px) {
  .content-wrapper > h1:first-child {
    margin-top: 1.2rem !important;
  }
}
@media (max-width: 600px) {
  .content-wrapper {
    padding-top: 1.2rem !important;
  }
}

.content-wrapper > h1:first-child {
  margin-top: 0.3rem !important;
  margin-bottom: 1.2rem !important;
}

@media (max-width: 600px) {
  .content-wrapper > h1:first-child {
    margin-top: 3.2rem !important;
    margin-bottom: 1.2rem !important;
  }
}