:root {
    --background-body: #1e1e1e;
    --background-header: rgba(40, 40, 40, 0.95);
    --background-hero: linear-gradient(135deg, #2c2c2c 0%, #1e1e1e 100%);
    --background-section-light: #2a2a2a;
    --background-section-dark: #1a1a1a;
    --background-footer: #0f0f0f;
    --background-card: #2c2c2c;
    --background-card-hover: #3a3a3a;
    --background-mobile-menu: rgba(30, 30, 30, 0.98);
    --background-game: #101010;
    --background-overlay: rgba(0, 0, 0, 0.7);

    --text-primary: #f5f5f5;
    --text-secondary: #d8d8d8;
    --text-tertiary: #bfbfbf;
    --text-muted: #9e9e9e;
    --text-light: #7e7e7e;
    --text-footer: #c8c8c8;
    --text-footer-muted: #999999;
    --text-white: #ffffff;

    --button-primary: #d4af37;
    --button-primary-hover: #b08a24;
    --button-secondary: #ff5252;
    --button-secondary-hover: #d43f3f;
    --button-tertiary: #ffd700;
    --button-close: #444444;
    --button-close-hover: #ffffff;

    --border-light: #3a3a3a;
    --border-medium: #505050;
    --border-footer: #2a2a2a;

    --accent-gold: #ffd700;

    --shadow-light: rgba(255, 255, 255, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-dark: rgba(0, 0, 0, 0.25);
    --shadow-darker: rgba(0, 0, 0, 0.35);
}



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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background-body);
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--background-header);
    box-shadow: 0 2px 10px var(--shadow-medium);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header>.container {
    position: relative;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    gap: 40px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.logo:hover {
    color: var(--text-primary);
    opacity: 0.8;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    gap: 30px;
    align-items: center;
    flex: 1;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--text-primary);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 40px;
    height: 40px;
    position: relative;
}

.burger span {
    width: 28px;
    height: 3px;
    background-color: var(--text-secondary);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: block;
    position: relative;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    margin-top: -1.5px;
}

.burger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    margin-top: -1.5px;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--background-mobile-menu);
    box-shadow: 0 4px 20px var(--shadow-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 999;
}

.mobile-menu.active {
    max-height: 400px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    color: var(--text-primary);
    background-color: var(--background-card);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--button-primary);
    color: var(--text-white);
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--button-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-darker);
}

.btn-primary {
    background-color: var(--button-secondary);
}

.btn-primary:hover {
    background-color: var(--button-secondary-hover);
}

.btn-large {
    padding: 10px 25px;
    font-size: 18px;
}

.btn-secondary {
    background-color: var(--button-tertiary);
}

.btn-secondary:hover {
    background-color: var(--button-secondary);
}

.btn-play {
    background-color: var(--button-primary);
    min-width: 200px;
}

.hero {
    padding: 30px 0;
    background: var(--background-hero);
}

.hero-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}

.hero-image-wrapper {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-image {
    width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    display: block;
}

.hero-image svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px var(--shadow-medium));
}

.hero-btn {
    width: 100%;
    text-align: center;
}

.hero-text {
    flex: 0 0 70%;
    padding-left: 0;
}

.hero-text h1 {
    font-size: 2.25em;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

.game-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.info-card {
    background-color: var(--background-card);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.info-card:hover {
    background-color: var(--background-card-hover);
    border-color: var(--border-medium);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

.info-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 700;
}

section {
    padding: 60px 0;
}

h1 {
    font-size: 2em;
    font-weight: bold;
}

h2 {
    font-size: 1.7em;
    font-weight: bold;
}

h3 {
    font-size: 1.375em;
    font-weight: 600;
}

section h2 {
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 50px;
}

section h3 {
    color: var(--text-primary);
    margin-bottom: 15px;
}

.content {
    padding: 20px 0;
}


.content h2 {
    margin-bottom: 20px;
}

.content p {
    color: var(--text-secondary);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.content p:last-child {
    margin-bottom: 0;
}

.content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content h3 {
    font-size: 1.375em;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.content ul,
.content ol {
    margin: 20px 0;
    padding-left: 40px;
}

.content ul li,
.content ol li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.content img {
    height: auto;
    max-width: 75%;
    display: block;
    margin: 10px auto;
    border-radius: 10px;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background-color: var(--background-card-hover);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.content table thead {
    background-color: var(--button-primary);
    color: var(--text-white);
}

.content table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.content table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.content table tbody tr:last-child td {
    border-bottom: none;
}

.content table tbody tr:hover {
    background-color: var(--background-card);
}

.content-cta {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.reviews {
    padding: 60px 0;
}

body>section:nth-child(2n) {
    background-color: var(--background-section-light);
}

body>section:nth-child(2n+1):not(.hero) {
    background-color: var(--background-section-dark);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.review-card {
    padding: 25px;
    background-color: var(--background-section-dark);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.review-card:hover {
    border-color: var(--border-medium);
    box-shadow: 0 6px 20px var(--shadow-medium);
    transform: translateY(-3px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.review-rating {
    color: var(--accent-gold);
    font-size: 16px;
}

.review-text {
    color: var(--text-tertiary);
    line-height: 1.7;
    font-size: 15px;
}

.faq {
    padding: 60px 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    background-color: var(--background-section-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow-light);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background-color: var(--background-section-light);
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--background-card);
}

.faq-icon {
    font-size: 24px;
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 25px 25px 20px 25px;
    color: var(--text-tertiary);
    line-height: 1.8;
}

.author-block {
    background-color: var(--background-body);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.author-content {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0 auto;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.3em;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.author-bio {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
}

.author-updated {
    font-size: 0.85em;
    color: var(--text-tertiary);
    margin: 0;
    font-style: italic;
}

.author-updated time {
    color: var(--text-secondary);
}

.footer {
    background-color: var(--background-footer);
    color: var(--text-footer);
    padding: 50px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-col p {
    color: var(--text-footer-muted);
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-footer-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--text-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-footer);
    color: var(--text-footer-muted);
    font-size: 14px;
}

.game-section {
    padding: 60px 0;
    background: var(--background-hero);
}

.game-section h1 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 40px;
}

.game-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 500px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow-dark);
    background-color: var(--background-game);
}

.game-image {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
    z-index: 1;
    object-fit: cover;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--background-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 2;
    backdrop-filter: blur(2px);
}

.game-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.overlay-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.game-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    background-color: var(--background-game);
    z-index: 3;
}

@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }

    .hero-image-wrapper {
        flex: 0 0 35%;
    }

    .hero-text {
        flex: 0 0 65%;
    }

    .hero-text h1 {
        font-size: 2em;
    }

    .game-info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .header-content {
        padding: 15px 0;
        gap: 15px;
    }

    .logo {
        font-size: 20px;
    }

    .logo-img {
        height: 60px;
    }

    .nav {
        display: none;
    }

    .header-btn {
        display: none;
    }

    .burger {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .btn-large {
        padding: 14px 30px;
        font-size: 16px;
    }

    .hero {
        padding: 45px 0;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-image-wrapper {
        flex: 0 0 auto;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }


    .hero-text {
        flex: 0 0 auto;
        width: 100%;
    }

    .hero-text h1 {
        font-size: 1.75em;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .game-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 40px 0;
    }

    h2 {
        font-size: 1.75em;
    }

    h3 {
        font-size: 1.25em;
    }

    section h2 {
        margin-bottom: 30px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .content p {
        font-size: 16px;
    }

    .content table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
    }

    .content table th,
    .content table td {
        padding: 10px 8px;
    }

    .game-section h1 {
        font-size: 32px;
    }

    .game-block {
        padding: 25px;
    }

    .game-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .game-buttons .btn {
        width: 100%;
    }

    #gameFrame {
        height: 400px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-logo {
        height: 70px;
    }

    .author-block {
        padding: 30px 0;
    }

    .author-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .author-avatar img {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.625em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.25em;
    }

    .hero-text h1 {
        font-size: 1.625em;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .game-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .info-card {
        padding: 12px 8px;
    }

    .info-label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .info-value {
        font-size: 16px;
    }


    .faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }

    .game-section h1 {
        font-size: 26px;
    }

    .game-block {
        padding: 20px;
    }

    #gameFrame {
        height: 300px;
    }

    .author-avatar img {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }

    .author-name {
        font-size: 1.1em;
    }

    .author-bio {
        font-size: 0.9em;
    }

    .author-updated {
        font-size: 0.8em;
    }
}

@media (min-width: 1920px) {
    body {
        font-size: 18px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.7em;
    }

    h3 {
        font-size: 1.3em;
    }

    .hero-text h1 {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .content p {
        font-size: 19px;
    }
}

/* Table of Contents Styles */
.toc-section {
    background: var(--background-section-light);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
}

.toc-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    background: var(--background-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.toc-toggle:hover {
    background: var(--background-card-hover);
    border-color: var(--border-medium);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-light);
}

.toc-toggle.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-color: transparent;
}

.toc-icon {
    font-size: 18px;
    margin-right: 10px;
}

.toc-text {
    flex: 1;
    text-align: left;
}

.toc-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.toc-toggle.active .toc-arrow {
    transform: rotate(180deg);
}

.toc-content {
    background: var(--background-card);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.toc-content.active {
    max-height: 700px;
    padding: 20px;
}

.toc-content h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list li:last-child {
    margin-bottom: 0;
}

.toc-list a {
    display: block;
    padding: 10px 15px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 15px;
    position: relative;
    padding-left: 35px;
}

.toc-list a::before {
    content: "→";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 12px;
    transition: all 0.2s ease;
}

.toc-list a:hover {
    background: var(--background-card-hover);
    color: var(--text-primary);
    transform: translateX(5px);
}

.toc-list a:hover::before {
    color: var(--accent-gold);
    transform: translateY(-50%) translateX(3px);
}

/* Mobile styles for TOC */
@media (max-width: 768px) {
    .toc-section {
        padding: 15px 0;
    }
    
    .toc-toggle {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .toc-content.active {
        padding: 15px;
    }
    
    .toc-content h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .toc-list a {
        padding: 8px 12px;
        font-size: 14px;
        padding-left: 30px;
    }
    
    .toc-list a::before {
        left: 12px;
        font-size: 11px;
    }
}