@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;600;700&display=swap');

:root {
    --bg: #000;
    --bg3: #111827;
    --accent: #fff;
    --text: #e8eaf0;
    --border: rgba(0,0,0,1)
}

body {
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: Rajdhani, sans-serif;
}

main {
    min-height: 100vh
}

section {
    padding: 100px 80px
}

#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px
}

.hero-content {
    max-width: 700px;
    text-align: center
}

@keyframes pulse {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .4
    }
}

h1 {
    font-family: Cursive;
    font-size: clamp(36px,5vw,64px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 24px
}

.hero-cta {
    display: flex;
    gap: 26px;
    flex-wrap: wrap
}

.btn {
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text)
}

    .btn:hover {
        border-color: var(--accent)
    }

.section-title {
    font-family: Cursive;
    font-size: clamp(24px,3vw,36px);
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center
}

.news-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px
}

.news-card {
    border-left: 4px solid var(--accent);
    padding: 28px 32px
}

.news-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px
}

.news-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite
}

.news-date {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600
}

.news-card-title {
    font-size: 15px;
    font-weight: 700;
}

.social-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 20px
}

.social-card {
    border: 2px solid var(--border);
    padding: 32px 24px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background-color: #0a0a0a
}

    .social-card:hover {
        border-color: #fff
    }

.social-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center
}

    .social-card-icon[data-bg="yt"] {
        background: #fff
    }

    .social-card-icon[data-bg="x"] {
        background: #0c0c0c
    }

    .social-card-icon[data-bg="dc"] {
        background: rgba(149,155,248,.541)
    }

    .social-card-icon[data-bg="itch"] {
        background: rgba(255,0,0,.11)
    }

.social-card-name {
    font-size: 14px;
    font-weight: 700
}

.productions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,350px));
    gap: 28px;
    justify-content: center
}

.game-card {
    border: 1px solid var(--border);
    overflow: hidden;
    text-decoration: none;
    background-color: #0a0a0a;
    color: var(--text);
    display: block
}

    .game-card:hover {
        border-color: var(--accent)
    }

.game-thumb {
    width: 100%;
    height: 100px;
    overflow: hidden;
    background: var(--bg3)
}

.game-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease
}

.game-card:hover .game-thumb-img {
    transform: scale(1.05)
}

.game-info {
    padding: 24px
}

.scan-intro {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    pointer-events: none;
}

.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    box-shadow: 0 0 20px 2px #fff, 0 0 40px 4px rgba(255,255,255,0.5);
    top: 0;
    animation: scan-move 1.1s ease-in-out forwards;
}

@keyframes scan-move {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.scan-intro.hide {
    animation: fade-out-overlay 0.4s ease forwards;
}

@keyframes fade-out-overlay {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

body.pre-load main {
    opacity: 0;
    transform: scale(0.96);
}

main {
    transition: opacity 0s ease, transform 0s ease;
}

.game-title {
    font-size: 20px;
    font-weight: 700;
}

.about-grid {
    display: grid;
    align-items: center;
    justify-items: center
}

.about-text {
    text-align: center;
    max-width: 1200px
}

.ddd {
    text-align: center;
    font-size:30px;
}

@media (max-width:900px) {
    section, #home {
        padding-left: 40px;
        padding-right: 40px
    }
}

@media (max-width:640px) {
    section, #home {
        padding: 40px 16px
    }

    .news-board {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

    .game-card {
        font-size: 10px;
    }

    .game-thumb {
        height: 60px;
    }

    .game-info {
        padding: 6px 4px;
    }

    .game-title {
        font-size: 10px;
        line-height: 1.1;
    }

    .game-desc {
        font-size: 8px;
        line-height: 1.3;
        margin-top: 4px;
    }

    .social-cards {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .social-card {
        padding: 12px 8px;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .social-card-icon {
        width: 36px;
        height: 36px;
    }

    .social-card-name {
        font-size: 11px;
    }

    h1 {
        font-size: 32px;
    }

    .about-text {
        padding: 0 8px;
        font-size: 11px;
        max-width: 310px
    }

    .ddd {
        text-align: center;
        font-size: 17px;
    }

    .hero-cta {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .btn {
        padding: 10px 12px;
        font-size: 11px;
        flex: 1;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
    }
    .news-card {
        padding: 16px 14px;
    }

    .news-card-title {
        font-size: 13px;
    }

    .news-card-desc {
        font-size: 11px;
    }

    .news-date {
        font-size: 10px;
    }
}