html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

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

body {
    background-color: #0f1219;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #ffffff;
}

.header-nav {
    background: linear-gradient(90deg, #ff4d00 0%, #ff6b35 100%);
    padding: 0 20px;
    position: relative;
}

.header-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-main-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-main-menu li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-main-menu li a:hover {
    opacity: 0.8;
}

.nav-right-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-icon-link {
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    transition: opacity 0.3s ease;
}

.nav-icon-link:hover {
    opacity: 0.8;
}

.nav-icon-link svg {
    width: 22px;
    height: 22px;
    fill: #ffffff;
}

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

.nav-btn {
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.nav-btn-register {
    background-color: transparent;
    color: #ffffff;
}

.nav-btn-register:hover {
    background-color: #ffffff;
    color: #ff4d00;
}

.nav-btn-login {
    background-color: #00d9ff;
    color: #ffffff;
    border-color: #00d9ff;
}

.nav-btn-login:hover {
    background-color: #00c3e6;
    border-color: #00c3e6;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-logo-mobile {
    display: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background-color: #ff4d00;
    padding: 30px 20px;
    z-index: 1000;
    overflow-y: auto;
}

.nav-mobile-menu.active {
    display: block;
}

.nav-mobile-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.nav-mobile-list li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-mobile-icons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-mobile-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-mobile-buttons .nav-btn {
    text-align: center;
    display: block;
}

/* Responsive */
@media (max-width: 1023px) {
    .nav-main-menu,
    .nav-icon-group,
    .nav-auth-buttons {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-logo-mobile {
        display: block;
    }
}

@media (min-width: 1024px) {
    .nav-hamburger,
    .nav-mobile-menu {
        display: none !important;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.title-section h2{
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
}

.title-section p {
    color: #8b92b0;
    font-size: 14px;
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-label {
    color: #8b92b0;
    font-size: 14px;
}

.sort-buttons {
    display: flex;
    gap: 8px;
}

.sort-button {
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.sort-button.active {
    background-color: #4a5568;
    color: #ffffff;
}

.sort-button:not(.active) {
    background-color: transparent;
    color: #8b92b0;
}

.sort-button:not(.active):hover {
    background-color: rgba(91, 110, 245, 0.1);
    color: #ffffff;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.game-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #1a1f2e;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(91, 110, 245, 0.3);
}

.game-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.game-title {
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .title-section h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .title-section h2 {
        font-size: 22px;
    }

    .sort-section {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .title-section h2 {
        font-size: 20px;
    }

    .game-title {
        font-size: 12px;
        padding: 10px 12px;
    }

    .sort-button {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .sort-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-buttons {
        width: 100%;
    }
}

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

/* Footer Styles */
.footer {
    margin-top: 40px;
    padding: 60px 0 40px;
    border-top: 1px solid #2a2f3e;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-column h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #8b92b0;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid #2a2f3e;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: #8b92b0;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-copyright {
    color: #8b92b0;
    font-size: 13px;
}

.payment-methods {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.payment-methods a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #1a1f2e;
    border-radius: 6px;
    color: #8b92b0;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.payment-methods a:hover {
    background-color: #2a2f3e;
    color: #ffffff;
}

/* Footer Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 40px 0 30px;
    }

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

    .footer-bottom-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 15px;
    }

    .payment-methods {
        gap: 10px;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.top-section {
    padding: 40px 0;
}

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

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #4a5568;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.view-all-btn:hover {
    background-color: #5a6578;
}

.view-all-btn::after {
    content: '›';
    font-size: 20px;
}

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

.game-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #1a1f2e;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(91, 110, 245, 0.3);
}

.game-card-inner {
    position: relative;
}

.rank-number {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 120px;
    font-weight: 900;
    color: #ffffff;
    text-shadow:
            -3px -3px 0 #1a1f2e,
            3px -3px 0 #1a1f2e,
            -3px 3px 0 #1a1f2e,
            3px 3px 0 #1a1f2e,
            0 0 20px rgba(0, 0, 0, 0.5);
    line-height: 1;
    z-index: 2;
    pointer-events: none;
}

.game-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.game-title {
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .rank-number {
        font-size: 100px;
    }
}

@media (max-width: 992px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .rank-number {
        font-size: 90px;
    }
}

@media (max-width: 768px) {


    .top-section {
        padding: 30px 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .games-grid {
        gap: 12px;
    }

    .rank-number {
        font-size: 70px;
    }

    .game-title {
        font-size: 13px;
        padding: 10px 12px;
    }
}

@media (max-width: 576px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .rank-number {
        font-size: 80px;
    }

    .view-all-btn {
        width: 100%;
        justify-content: center;
    }
}

.banner-hero {
    position: relative;
    width: 100%;
    min-height: 500px;
    overflow: hidden;
}

.banner-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.banner-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.banner-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}

.banner-hero-content h1 {
    font-size: 56px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 700px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.banner-hero-subtitle {
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 35px;
    max-width: 600px;
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.banner-hero-btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(90deg, #ff4d00 0%, #ff6b35 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.4);
    align-self: flex-start;
}

.banner-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.6);
    background: linear-gradient(90deg, #ff6b35 0%, #ff4d00 100%);
}

/* Responsive Design */
@media (max-width: 992px) {
    .banner-hero {
        min-height: 450px;
    }

    .banner-hero-content {
        min-height: 450px;
        padding: 60px 20px;
    }

    .banner-hero-content h1 {
        font-size: 44px;
    }

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

    .banner-hero-btn {
        padding: 14px 35px;
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .banner-hero {
        min-height: 400px;
    }

    .banner-hero-content {
        min-height: 400px;
        padding: 50px 20px;
    }

    .banner-hero-content h1 {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .banner-hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .banner-hero-btn {
        padding: 12px 30px;
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .banner-hero {
        min-height: 350px;
    }

    .banner-hero-content {
        min-height: 350px;
        padding: 40px 15px;
    }

    .banner-hero-content h1 {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .banner-hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .banner-hero-btn {
        padding: 12px 25px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}

text-content-area {
    background-color: #0f1219;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #e8eaed;
    line-height: 1.7;
}

.text-content-area .content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Headings */
.text-content-area h1 {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.3;
}

.text-content-area h2 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-top: 50px;
    margin-bottom: 25px;
    line-height: 1.3;
    border-left: 4px solid #ff4d00;
    padding-left: 20px;
}

.text-content-area h2:first-child {
    margin-top: 0;
}

.text-content-area h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 35px;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* Paragraphs */
.text-content-area p {
    font-size: 16px;
    color: #c7cad1;
    margin-bottom: 20px;
    line-height: 1.8;
}

.text-content-area p strong {
    color: #ffffff;
    font-weight: 600;
}

/* Lists */
.text-content-area ul,
.text-content-area ol {
    margin: 20px 0 30px 0;
    padding-left: 25px;
}

.text-content-area ul li,
.text-content-area ol li {
    font-size: 16px;
    color: #c7cad1;
    margin-bottom: 12px;
    line-height: 1.7;
    padding-left: 10px;
}

.text-content-area ul li::marker {
    color: #ff4d00;
}

.text-content-area ul li strong,
.text-content-area ol li strong {
    color: #ffffff;
}

/* Tables */
.text-content-area .table-container {
    width: 100%;
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 8px;
    background-color: #1a1f2e;
}

.text-content-area table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.text-content-area table thead tr {
    background-color: #2a2f3e;
}

.text-content-area table th {
    padding: 15px 20px;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid #ff4d00;
}

.text-content-area table td {
    padding: 15px 20px;
    font-size: 15px;
    color: #c7cad1;
    border-bottom: 1px solid #2a2f3e;
}

.text-content-area table tbody tr:hover {
    background-color: #22273a;
}

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

.text-content-area table td strong,
.text-content-area table th strong {
    color: #ffffff;
}

/* FAQ Section */
.text-content-area .faq-section {
    margin-top: 60px;
}

.text-content-area .faq-item {
    background-color: #1a1f2e;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 4px solid #ff4d00;
}

.text-content-area .faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.text-content-area .faq-answer {
    font-size: 16px;
    color: #c7cad1;
    line-height: 1.7;
    margin: 0;
}

/* Links */
.text-content-area a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s ease;
}

.text-content-area a:hover {
    color: #ff4d00;
    text-decoration: underline;
}

/* Highlighted Content */
.text-content-area .highlight-box {
    background: linear-gradient(135deg, #1a1f2e 0%, #2a2f3e 100%);
    border-left: 4px solid #ff4d00;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.text-content-area .highlight-box p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .text-content-area .content-wrapper {
        padding: 40px 20px;
    }

    .text-content-area h1 {
        font-size: 36px;
    }

    .text-content-area h2 {
        font-size: 28px;
        margin-top: 40px;
    }

    .text-content-area h3 {
        font-size: 22px;
    }

    .text-content-area p,
    .text-content-area ul li,
    .text-content-area ol li,
    .text-content-area table td {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .text-content-area .content-wrapper {
        padding: 30px 15px;
    }

    .text-content-area h1 {
        font-size: 30px;
        margin-bottom: 25px;
    }

    .text-content-area h2 {
        font-size: 24px;
        margin-top: 35px;
        margin-bottom: 20px;
        padding-left: 15px;
    }

    .text-content-area h3 {
        font-size: 20px;
        margin-top: 30px;
    }

    .text-content-area p,
    .text-content-area ul li,
    .text-content-area ol li {
        font-size: 15px;
    }

    .text-content-area .faq-item {
        padding: 20px;
    }

    .text-content-area .faq-question {
        font-size: 16px;
    }

    .text-content-area .faq-answer {
        font-size: 15px;
    }

    .text-content-area .highlight-box {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .text-content-area h1 {
        font-size: 26px;
    }

    .text-content-area h2 {
        font-size: 22px;
    }

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

    .text-content-area p,
    .text-content-area ul li,
    .text-content-area ol li {
        font-size: 14px;
    }

    .text-content-area table th,
    .text-content-area table td {
        padding: 12px 15px;
        font-size: 14px;
    }

    .text-content-area .table-container {
        margin: 20px -15px;
        border-radius: 0;
    }
}