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

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0a;
    color: #d8d3c7;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
}

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

header {
    background: linear-gradient(135deg, #8b0000, #ffd700);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

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

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #2c1810;
}

.nav-play {
    background: linear-gradient(45deg, #ffffff, #ffe45c);
    border: 2px solid #2c1810;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(44, 24, 16, 0.35);
    color: #5a0000;
    padding: 0.65rem 1.15rem;
}

.nav-play:hover {
    background: #fff;
    color: #8b0000;
    transform: translateY(-1px);
}

.menu-toggle {
    align-items: center;
    background: rgba(44, 24, 16, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    cursor: pointer;
    display: none;
    height: 44px;
    justify-content: center;
    padding: 0;
    width: 44px;
}

.menu-toggle span {
    background: #fff;
    border-radius: 999px;
    display: block;
    height: 2px;
    position: absolute;
    transition: transform 0.25s ease, opacity 0.25s ease;
    width: 22px;
}

.menu-toggle span:nth-child(1) {
    transform: translateY(-7px);
}

.menu-toggle span:nth-child(3) {
    transform: translateY(7px);
}

.menu-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg);
}

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

.menu-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg);
}

.hero {
    align-items: center;
    background: linear-gradient(135deg, #8b0000 0%, #2c1810 50%, #8b0000 100%);
    display: flex;
    margin-top: 72px;
    min-height: calc(100vh - 72px);
    overflow: hidden;
    padding: 4rem 0;
    position: relative;
}

.hero::before {
    animation: pulse 4s ease-in-out infinite alternate;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.12) 0%, transparent 70%);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

@keyframes pulse {
    from { opacity: 0.35; }
    to { opacity: 0.75; }
}

.hero-content {
    align-items: center;
    display: grid;
    gap: 3rem;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 1;
}

.hero h1,
.hero h2 {
    color: #ffd700;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.hero p {
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-image img,
.game-image {
    aspect-ratio: 16 / 9;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.cta-button {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    color: #8b0000;
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-top: 1rem;
    padding: 15px 34px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cta-button:hover {
    background: linear-gradient(45deg, #ff8c00, #ffd700);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.toc {
    background: #1a1a1a;
    border-top: 3px solid #ffd700;
    padding: 3rem 0;
}

.toc h3 {
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.toc-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.toc-card {
    background: linear-gradient(135deg, #2a1810, #1a1a1a);
    border-left: 4px solid #ffd700;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.toc-card:hover {
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
}

.toc-card a {
    align-items: center;
    color: #fff;
    display: flex;
    gap: 10px;
    padding: 1.5rem;
    text-decoration: none;
}

.toc-icon {
    align-items: center;
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    border-radius: 50%;
    color: #8b0000;
    display: inline-flex;
    flex: 0 0 22px;
    font-size: 0.75rem;
    font-weight: 800;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.content-section {
    border-bottom: 1px solid #333;
    padding: 4rem 0;
}

.content-section:nth-child(even) {
    background: #1a1a1a;
}

.content-section:nth-child(odd) {
    background: #0f0f0f;
}

.section-title,
.article-content h1,
.article-content h2 {
    color: #ffd700;
    font-size: 2.3rem;
    line-height: 1.2;
    margin: 2.5rem 0 1.25rem;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.article-content h1 {
    font-size: 2.55rem;
}

.article-content h3 {
    color: #ffd700;
    font-size: 1.55rem;
    margin: 2rem 0 1rem;
}

.article-content p {
    color: #d8d3c7;
    margin: 0 0 1rem;
}

.article-content > p:first-child {
    color: #ffd700;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    text-align: center;
}

.article-content ul,
.article-content ol,
.styled-list {
    background: linear-gradient(135deg, #2a1810, #1a1a1a);
    border-radius: 15px;
    margin: 1.5rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
}

.article-content li,
.styled-list li {
    color: #d8d3c7;
    margin: 0.7rem 0;
}

.article-content table {
    background: linear-gradient(135deg, #2a1810, #1a1a1a);
    border-collapse: collapse;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 2rem 0;
    overflow: hidden;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.article-content tbody {
    display: table;
    min-width: 560px;
    width: 100%;
}

.article-content td,
td,
th {
    border-bottom: 1px solid #333;
    color: #d8d3c7;
    padding: 1rem;
    text-align: left;
}

.article-content tr:first-child td,
th {
    background: linear-gradient(135deg, #8b0000, #b78900);
    color: #fff;
    font-weight: 800;
}

.game-image {
    margin: 2rem 0;
}

.card-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 2rem 0;
}

.card,
.faq-item {
    background: linear-gradient(135deg, #2a1810, #1a1a1a);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 2rem;
}

.card h4 {
    color: #ffd700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.faq-item {
    margin: 1rem 0;
    padding: 0;
    overflow: hidden;
}

.faq-question {
    background: linear-gradient(135deg, #8b0000, #5a0000);
    color: #fff;
    font-weight: 800;
    padding: 1.35rem;
}

.faq-answer {
    color: #d8d3c7;
    padding: 1.35rem;
}

footer {
    background: linear-gradient(135deg, #8b0000, #2c1810);
    color: #fff;
    padding: 3rem 0 1rem;
    text-align: center;
}

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

.footer-section h4 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.footer-section a {
    color: #ddd;
    display: block;
    margin: 0.5rem 0;
    text-decoration: none;
}

.footer-section img {
    background: #333;
    border-radius: 10px;
    height: auto;
    margin: 10px 0;
    max-width: 150px;
    padding: 10px;
}

.footer-bottom {
    border-top: 1px solid #333;
    color: #bbb;
    padding-top: 1rem;
}

.catfish {
    align-items: center;
    background: linear-gradient(135deg, #2a1810, #111);
    border: 1px solid rgba(255, 215, 0, 0.45);
    border-radius: 14px;
    bottom: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr auto;
    left: 50%;
    max-width: 900px;
    opacity: 0;
    padding: 1rem 1.25rem;
    pointer-events: none;
    position: fixed;
    transform: translate(-50%, 120%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: calc(100% - 32px);
    z-index: 1100;
}

.catfish.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.catfish img {
    background: #333;
    border-radius: 8px;
    display: block;
    height: 46px;
    object-fit: contain;
    padding: 6px;
    width: 86px;
}

.catfish-content {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.catfish-content strong {
    color: #ffd700;
    font-size: 1rem;
    line-height: 1.2;
}

.catfish-content span {
    color: #eee;
    font-size: 0.92rem;
    line-height: 1.3;
}

.catfish-button {
    background: linear-gradient(45deg, #ffd700, #ff8c00);
    border-radius: 999px;
    color: #8b0000;
    font-size: 0.95rem;
    font-weight: 800;
    padding: 0.85rem 1.25rem;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.catfish-close {
    align-items: center;
    background: #8b0000;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.4rem;
    height: 30px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: -10px;
    top: -10px;
    width: 30px;
}

@media (max-width: 768px) {
    header {
        padding: 0.75rem 0;
    }

    .header-content {
        gap: 1rem;
    }

    .logo img {
        height: 34px;
    }

    .menu-toggle {
        display: inline-flex;
        flex: 0 0 44px;
        position: relative;
    }

    nav {
        background: linear-gradient(135deg, #2a1810, #111);
        border: 1px solid rgba(255, 215, 0, 0.3);
        border-radius: 12px;
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
        left: 15px;
        opacity: 0;
        pointer-events: none;
        position: absolute;
        right: 15px;
        top: calc(100% + 8px);
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    nav.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem;
    }

    nav a {
        border-radius: 8px;
        display: block;
        padding: 0.85rem 1rem;
    }

    nav a:hover {
        background: rgba(255, 215, 0, 0.12);
        color: #ffd700;
    }

    .nav-play {
        color: #8b0000;
        text-align: center;
    }

    .nav-play:hover {
        color: #5a0000;
    }

    .hero {
        margin-top: 58px;
        min-height: auto;
        padding: 2.5rem 0 3rem;
    }

    .hero-content {
        gap: 2rem;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1,
    .hero h2 {
        font-size: 2rem;
    }

    .section-title,
    .article-content h1,
    .article-content h2,
    .article-content > p:first-child {
        font-size: 1.8rem;
    }

    .toc,
    .content-section {
        padding: 2.5rem 0;
    }

    .toc-grid,
    .card-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .toc-card a {
        padding: 1rem;
    }

    .article-content ul,
    .article-content ol,
    .styled-list,
    .card {
        border-radius: 10px;
        padding: 1.25rem 1.25rem 1.25rem 2rem;
    }

    .catfish {
        bottom: 10px;
        grid-template-columns: auto 1fr;
        padding: 0.85rem;
        width: calc(100% - 20px);
    }

    .catfish img {
        height: 42px;
        width: 74px;
    }

    .catfish-button {
        grid-column: 1 / -1;
        padding: 0.8rem 1rem;
        width: 100%;
    }
}

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

    .cta-button {
        font-size: 0.95rem;
        padding: 13px 20px;
        white-space: normal;
        width: 100%;
    }

    .article-content td,
    td,
    th {
        padding: 0.75rem;
    }

    .hero h1,
    .hero h2 {
        font-size: 1.75rem;
    }

    .hero p,
    .article-content p,
    .article-content li {
        font-size: 0.98rem;
    }

    .article-content h3 {
        font-size: 1.3rem;
    }

    .section-title,
    .article-content h1,
    .article-content h2,
    .article-content > p:first-child {
        font-size: 1.55rem;
    }

    .game-image {
        margin: 1.25rem 0;
    }

    .catfish {
        gap: 0.75rem;
    }

    .catfish-content strong {
        font-size: 0.95rem;
    }

    .catfish-content span {
        font-size: 0.84rem;
    }
}
