:root {
    --bg-color: #121115;             --header-bg: rgba(24, 22, 27, 0.95);
    --btn-color: #ffc200;            --btn-hover-color: #ffd033;      --text-white: #ffffff;           --text-muted: #8e8d94;           --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: var(--font-family);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sticky-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container a {
    display: inline-block;
    transition: var(--transition-smooth);
}

.logo-container a:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    mix-blend-mode: screen; }

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 11px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-smooth);
    user-select: none;
}

.btn-auth {
    background: var(--btn-color);
    color: var(--text-white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    box-shadow: 0 4px 12px rgba(255, 194, 0, 0.2);
}
.btn-auth::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    animation: btn-shine 3.5s infinite ease-in-out;
}

@keyframes btn-shine {
    0% {
        left: -100%;
    }
    15% {
        left: 200%;
    }
    100% {
        left: 200%;
    }
}

.btn-auth:hover {
    background: var(--btn-hover-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 194, 0, 0.4);
}

.btn-auth:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 194, 0, 0.3);
}

.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-section {
    width: 100%;
    max-width: 1240px;
    margin: 40px auto;
    padding: 0 24px;
    display: flex;
    justify-content: center;
}

.hero-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-banner-link {
    display: block;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
    text-decoration: none;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-banner-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 194, 0, 0.1);
    border-color: rgba(255, 194, 0, 0.2);
}

.hero-banner-link:hover .hero-img {
    transform: scale(1.01);
}

.hero-banner-link:active {
    transform: translateY(-1px);
}

.games-section {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto 60px auto;
    padding: 0 24px;
}

.games-section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 24px;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.game-card {
    display: flex;
    flex-direction: column;
    background: #1e1d24;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.game-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.game-card-title {
    display: block;
    padding: 10px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #1e1d24;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 194, 0, 0.15);
    border-color: rgba(255, 194, 0, 0.3);
}

.game-card:hover img {
    transform: scale(1.08);
}

.game-card-img-wrap {
    position: relative;
    overflow: hidden;
}

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-card:hover .game-card-overlay {
    opacity: 1;
}

.play-icon {
    display: block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--btn-color), #ff9900);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px rgba(255, 194, 0, 0.5);
    transform: translateY(15px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover .play-icon {
    transform: translateY(0);
}

.play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid #111;
}

.show-more-container {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.btn-show-more {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 0;
    background: #2a2930;
    color: var(--text-white);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.btn-show-more:hover {
    background: #353440;
    border-color: rgba(255, 194, 0, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.content-section {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto 60px auto;
    padding: 0 24px;
}

.content-section h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-white);
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.content-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    margin-top: 28px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.content-section p {
    font-size: 15px;
    color: #c5c4ca;
    line-height: 1.75;
    margin-bottom: 16px;
}

.content-section ul,
.content-section ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.content-section li {
    font-size: 15px;
    color: #c5c4ca;
    line-height: 1.75;
    margin-bottom: 6px;
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
    border-radius: 10px;
}

.table-scroll table {
    margin-bottom: 0;
    min-width: 500px;
}

.content-section thead th {
    background: #2a2930;
    color: var(--text-white);
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section tbody td {
    padding: 10px 16px;
    color: #c5c4ca;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: #1e1d24;
}

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

.content-section tbody tr:hover td {
    background: #252430;
}

.faq-list {
    margin-top: 12px;
}

.faq-item {
    background: #1e1d24;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 48px 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
}

.faq-question:hover {
    background: #252430;
}

.faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 300;
    color: var(--btn-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: "\2212";
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 20px 16px 20px;
}

.faq-answer p {
    margin-bottom: 0;
}

.toc-wrap {
    background: #1e1d24;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.toc-toggle {
    padding: 14px 48px 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--btn-color);
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
}

.toc-toggle:hover {
    background: #252430;
}

.toc-toggle::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 300;
    color: var(--btn-color);
    transition: transform 0.3s ease;
}

.toc-wrap.active .toc-toggle::after {
    content: "\2212";
}

.toc-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.toc-wrap.active .toc-list {
    max-height: 600px;
    padding: 0 20px 14px 20px;
}

.toc-list a {
    color: #c5c4ca;
    text-decoration: none;
    font-size: 14px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.toc-list a:last-child {
    border-bottom: none;
}

.toc-list a:hover {
    color: var(--btn-color);
    padding-left: 6px;
}

.site-footer {
    background: #18161b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 40px;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    height: 32px;
    width: auto;
    display: block;
    mix-blend-mode: screen;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .sticky-header {
        padding: 12px 20px;
        border-bottom-width: 1px;
    }

    .logo-img {
        height: 38px;
    }

    .auth-buttons {
        gap: 10px;
    }

    .btn {
        padding: 9px 18px;
        font-size: 14px;
        border-radius: 6px;
    }

    .hero-section {
        margin: 20px auto;
        padding: 0 24px;
    }

    .hero-banner-link {
        border-radius: 12px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .games-section {
        padding: 0 20px;
        margin-bottom: 40px;
    }

    .games-section-title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .content-section {
        padding: 0 20px;
    }

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

    .content-section h2 {
        font-size: 21px;
    }

    .content-section h3 {
        font-size: 18px;
    }

    .content-section table {
        font-size: 13px;
    }

    .content-section thead th,
    .content-section tbody td {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .sticky-header {
        padding: 10px 14px;
    }

    .logo-img {
        height: 34px;
    }

    .auth-buttons {
        gap: 8px;
    }

    .btn {
        padding: 8px 14px;
        font-size: 13.5px;
        border-radius: 6px;
    }

    .hero-section {
        margin: 16px auto;
        padding: 0 20px;
    }

    .hero-banner-link {
        border-radius: 10px;
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .games-section {
        padding: 0 14px;
        margin-bottom: 30px;
    }

    .game-card {
        border-radius: 10px;
    }

    .game-card-title {
        font-size: 12px;
        padding: 8px 4px;
    }

    .btn-show-more {
        font-size: 13px;
        padding: 12px 0;
    }

    .content-section {
        padding: 0 14px;
    }

    .content-section h1 {
        font-size: 22px;
    }

    .content-section h2 {
        font-size: 19px;
    }

    .content-section h3 {
        font-size: 16px;
    }

    .content-section p,
    .content-section li {
        font-size: 14px;
    }

    .content-section table {
        font-size: 12px;
    }

    .content-section thead th,
    .content-section tbody td {
        padding: 8px 10px;
    }

    .faq-question {
        font-size: 14px;
        padding: 14px 40px 14px 16px;
    }
}
