:root {
        --bg-color: #0a0a0a;
        --text-main: #f0f0f0;
        --text-sub: #a0a0a0;
        --primary-red: #e50914;
        --primary-red-hover: #f6121d;
        --btn-yellow: #ffd700;
        --btn-yellow-hover: #ffea00;
        --card-bg: #1a1a1a;
        --border-color: #333;
    }

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

    body {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        background-color: var(--bg-color);
        color: var(--text-main);
        line-height: 1.6;
        overflow-x: hidden;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    img {
        max-width: 100%;
        display: block;
    }

    /* Header & Nav */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        z-index: 1000;
        border-bottom: 1px solid var(--border-color);
    }

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

    .logo-area {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 20px;
        font-weight: bold;
        color: var(--primary-red);
    }

    .logo-area img {
        height: 32px;
        border-radius: 4px;
    }

    .nav-toggle {
        background: none;
        border: 1px solid var(--border-color);
        color: var(--text-main);
        padding: 8px 12px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--card-bg);
        flex-direction: column;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 12px 20px;
        color: var(--text-main);
        border-bottom: 1px solid var(--border-color);
    }

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

    /* Hero Section */
    .hero {
        padding: 100px 20px 40px;
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 32px;
        margin-bottom: 20px;
        color: var(--text-main);
    }

    .hero h1 span {
        color: var(--primary-red);
    }

    .hero p {
        font-size: 16px;
        color: var(--text-sub);
        margin-bottom: 30px;
    }

    .download-btn {
        display: inline-block;
        background-color: var(--btn-yellow);
        color: #000;
        font-size: 18px;
        font-weight: bold;
        padding: 15px 40px;
        border-radius: 30px;
        transition: transform 0.2s, background-color 0.2s;
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
        animation: bounce 2s infinite;
    }

    .download-btn:hover {
        background-color: var(--btn-yellow-hover);
        transform: scale(1.05);
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
        40% { transform: translateY(-10px); }
        60% { transform: translateY(-5px); }
    }

    /* Marquee Banner */
    .marquee-banner {
        background-color: var(--primary-red);
        color: white;
        padding: 10px 0;
        overflow: hidden;
        white-space: nowrap;
        font-weight: bold;
        font-size: 14px;
    }

    .marquee-content {
        display: inline-block;
        animation: marquee 15s linear infinite;
    }

    .marquee-content span {
        margin: 0 20px;
    }

    @keyframes marquee {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    /* Common Section Styles */
    section {
        padding: 60px 20px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .section-title {
        text-align: center;
        font-size: 28px;
        margin-bottom: 40px;
        color: var(--primary-red);
    }

    /* Poker Carousel */
    .carousel-container {
        position: relative;
        width: 100%;
        height: 400px;
        display: flex;
        justify-content: center;
        align-items: center;
        perspective: 1000px;
        overflow: hidden;
    }

    .carousel-card {
        position: absolute;
        width: 220px;
        height: 320px;
        border-radius: 12px;
        background-color: var(--card-bg);
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        transition: transform 0.5s ease, opacity 0.5s ease, z-index 0.5s ease;
        cursor: pointer;
        overflow: hidden;
    }

    .carousel-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .carousel-card .play-btn {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50px;
        height: 50px;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        backdrop-filter: blur(5px);
        transition: background-color 0.3s;
    }

    .carousel-card .play-btn::after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
        border-left: 16px solid white;
        margin-left: 4px;
    }

    .carousel-card:hover .play-btn {
        background-color: var(--primary-red);
    }

    /* Grid Layouts */
    .grid-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }

    .grid-item {
        background-color: var(--card-bg);
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        transition: transform 0.3s;
    }

    .grid-item:hover {
        transform: translateY(-5px);
    }

    .grid-item .img-wrapper {
        position: relative;
        padding-top: 140%; /* Aspect ratio */
    }

    .grid-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .grid-item .info {
        padding: 12px;
    }

    .grid-item .title {
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .grid-item .desc {
        font-size: 12px;
        color: var(--text-sub);
    }

    .grid-item .rank-badge {
        position: absolute;
        top: 8px;
        left: 8px;
        background-color: var(--primary-red);
        color: white;
        font-size: 12px;
        font-weight: bold;
        padding: 2px 8px;
        border-radius: 4px;
        z-index: 2;
    }

    .play-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.4);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transition: opacity 0.3s;
    }

    .grid-item:hover .play-overlay {
        opacity: 1;
    }

    .play-overlay .play-icon {
        width: 40px;
        height: 40px;
        border: 2px solid white;
        border-radius: 50%;
        position: relative;
    }

    .play-overlay .play-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-30%, -50%);
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 10px solid white;
    }

    /* Features Section */
    .feature-text {
        background-color: var(--card-bg);
        padding: 30px;
        border-radius: 12px;
        border-left: 4px solid var(--primary-red);
        font-size: 15px;
        line-height: 1.8;
        color: var(--text-main);
    }

    /* Danmaku Section */
    .danmaku-container {
        position: relative;
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
        border-radius: 12px;
        overflow: hidden;
        background-color: #000;
        aspect-ratio: 16 / 9;
    }

    .danmaku-container > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.6;
    }

    .danmaku-layer {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
    }

    .danmaku-item {
        position: absolute;
        white-space: nowrap;
        color: white;
        font-weight: bold;
        text-shadow: 1px 1px 2px black;
        animation: danmaku-move linear forwards;
    }

    @keyframes danmaku-move {
        from { transform: translateX(100vw); }
        to { transform: translateX(-100%); }
    }

    /* History Section */
    .history-content {
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
        color: var(--text-sub);
    }
    
    .history-content p {
        margin-bottom: 15px;
    }

    /* FAQ Section */
    .faq-list {
        max-width: 800px;
        margin: 0 auto;
    }

    .faq-item {
        background-color: var(--card-bg);
        margin-bottom: 10px;
        border-radius: 8px;
        overflow: hidden;
    }

    .faq-item summary {
        padding: 15px 20px;
        font-weight: bold;
        cursor: pointer;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .faq-item summary::-webkit-details-marker {
        display: none;
    }

    .faq-item summary::after {
        content: '+';
        font-size: 20px;
        color: var(--primary-red);
    }

    .faq-item[open] summary::after {
        content: '-';
    }

    .faq-item p {
        padding: 0 20px 15px;
        color: var(--text-sub);
        font-size: 14px;
    }

    /* Comments Section */
    .comment-section {
        max-width: 800px;
        margin: 0 auto;
    }

    .comment-form {
        display: flex;
        gap: 10px;
        margin-bottom: 30px;
    }

    .comment-form input {
        flex: 1;
        padding: 12px;
        border: 1px solid var(--border-color);
        background-color: var(--card-bg);
        color: var(--text-main);
        border-radius: 6px;
        outline: none;
    }

    .comment-form button {
        padding: 12px 24px;
        background-color: var(--primary-red);
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
    }

    .comment-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .comment-item {
        display: flex;
        gap: 15px;
        padding: 15px;
        background-color: var(--card-bg);
        border-radius: 8px;
    }

    .comment-item img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .comment-content {
        flex: 1;
    }

    .comment-user {
        font-weight: bold;
        color: var(--primary-red);
        margin-bottom: 5px;
    }

    .comment-text {
        font-size: 14px;
        color: var(--text-sub);
    }

    /* Screenshot Wall */
    .screenshot-wall {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 15px;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-red) var(--bg-color);
    }

    .screenshot-wall::-webkit-scrollbar {
        height: 8px;
    }

    .screenshot-wall::-webkit-scrollbar-thumb {
        background-color: var(--primary-red);
        border-radius: 4px;
    }

    .screenshot-wall img {
        height: 250px;
        border-radius: 8px;
        flex-shrink: 0;
    }

    /* Modal */
    .modal {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.8);
        z-index: 2000;
        justify-content: center;
        align-items: center;
    }

    .modal.active {
        display: flex;
    }

    .modal-content {
        background-color: var(--card-bg);
        padding: 30px;
        border-radius: 12px;
        text-align: center;
        max-width: 90%;
        width: 400px;
    }

    .modal-content h3 {
        margin-bottom: 15px;
        color: var(--primary-red);
    }

    .modal-content p {
        margin-bottom: 20px;
        color: var(--text-sub);
    }

    .modal-content .close-btn {
        background-color: var(--btn-yellow);
        color: #000;
        padding: 10px 24px;
        border: none;
        border-radius: 20px;
        font-weight: bold;
        cursor: pointer;
    }

    /* Footer */
    footer {
        background-color: #050505;
        padding: 30px 20px;
        text-align: center;
        border-top: 1px solid var(--border-color);
    }

    .footer-content {
        max-width: 1200px;
        margin: 0 auto;
        font-size: 12px;
        color: var(--text-sub);
    }

    .footer-content p {
        margin-bottom: 10px;
    }

    .footer-content a {
        color: var(--text-sub);
        transition: color 0.3s;
    }

    .footer-content a:hover {
        color: var(--primary-red);
    }

    .about-details {
        margin-top: 15px;
        text-align: left;
        display: inline-block;
    }

    .about-details summary {
        cursor: pointer;
        list-style: none;
        font-size: 12px;
        color: var(--text-sub);
    }

    .about-details summary::-webkit-details-marker {
        display: none;
    }

    .about-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
        padding: 10px;
        background-color: var(--card-bg);
        border-radius: 6px;
    }

    .about-links a {
        font-size: 12px;
        color: var(--text-sub);
    }

    /* Responsive */
    @media (min-width: 768px) {
        .nav-toggle {
            display: none;
        }

        .nav-menu {
            display: flex;
            position: static;
            flex-direction: row;
            width: auto;
            background: none;
            border: none;
            padding: 0;
            gap: 20px;
        }

        .nav-menu a {
            padding: 0;
            border: none;
            font-size: 14px;
            color: var(--text-sub);
        }

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

        .hero h1 {
            font-size: 48px;
        }

        .carousel-container {
            height: 500px;
        }

        .carousel-card {
            width: 280px;
            height: 400px;
        }

        .grid-container {
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        }
    }

    @media (min-width: 1024px) {
        .grid-container {
            grid-template-columns: repeat(3, 1fr);
        }
        
        .grid-container.rank-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }