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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #1a1d23;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

.page-header {
    text-align: center;
    padding: 110px 20px 90px;
    background: linear-gradient(to bottom, #1C1F25 0%, #1A1D23 100%);
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.page-header p {
    font-size: 1.1rem;
    color: #BFBFBF;
}

.games-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-bottom: 70px;
    background: #1A1D23;
}

.tab-btn {
    padding: 12px 35px;
    border-radius: 30px;
    border: 1px solid #333842;
    background: #252930;
    color: #e0e0e0;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.tab-btn:hover {
    border-color: #c9ff00;
}

.tab-btn.active {
    background: #c9ff00;
    color: #1a1d23;
    border-color: #c9ff00;
}

.games-content {
    background: #14171C;
    padding: 70px 0 100px 0;
    box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.4);
}

.games-wrapper {
    display: none;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeTab 0.3s ease;
}

.games-wrapper.active {
    display: block;
}

@keyframes fadeTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-card {
    background: #252930;
    border: 1px solid #333842;
    border-radius: 18px;
    padding: 35px;
    margin-bottom: 60px;
    transition: 0.3s ease;
}

.game-card:hover {
    border-color: #c9ff00;
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.game-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.game-logo {
    width: 85px;
    height: 85px;
    object-fit: contain;
}

.info-row {
    margin-bottom: 18px;
}

.info-row label {
    font-size: 0.8rem;
    color: #b0b0b0;
    margin-bottom: 6px;
    display: block;
    letter-spacing: 1px;
}

.copy-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1d23;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #333842;
    gap: 12px;
}

.copy-box span {
    font-weight: 600;
    letter-spacing: 1px;
    word-break: break-all;
}

.copy-btn {
    background: #c9ff00;
    border: none;
    padding: 6px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: 0.2s;
}

.copy-btn:hover {
    background: #b3e600;
    transform: scale(1.05);
}

.screenshot-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-top: 35px;
}

.screenshot-grid img {
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.screenshot-grid.landscape img {
    width: 280px;
    height: 160px;
    object-fit: cover;
}

.screenshot-grid.portrait img {
    width: 160px;
    height: 280px;
    object-fit: cover;
}

.screenshot-grid img:hover {
    transform: scale(1.05);
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
}

.image-modal.active {
    display: flex;
}

.image-modal img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 18px;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #c9ff00;
    border: none;
    font-size: 20px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
    z-index: 10000;
}

.modal-btn:hover {
    background: #b3e600;
}

.modal-btn.prev {
    left: 40px;
}

.modal-btn.next {
    right: 40px;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 38px;
    color: #ffffff;
    cursor: pointer;
    z-index: 10000;
}

.indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 1px;
}

body.menu-open {
    overflow: hidden;
}

#dim-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    visibility: hidden;
    transition: background 0.5s, visibility 0.5s;
    z-index: 14;
    pointer-events: none;
}

body.menu-open #dim-overlay {
    background: rgba(0, 0, 0, 0.4);
    visibility: visible;
    pointer-events: auto;
}

body.menu-open header,
body.menu-open main,
body.menu-open footer {
    transform: translateX(-300px);
}

header,
main,
footer {
    transition: transform 0.5s ease-in-out;
}

.menu-toggle {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 20;
}

.openbtn {
    position: fixed;
    top: 0;
    right: 0;
    height: 2.5rem;
    min-width: 2.5rem;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    background: #ffffff;
    color: #1a1d23;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.3s ease;
}

.openbtn:hover {
    background: #f7f7f7;
}

.openbtn:active {
    background: #e8e8e8;
}

body.menu-open .openbtn {
    opacity: 0;
    pointer-events: none;
}

.overlay {
    height: 100%;
    width: 300px;
    position: fixed;
    z-index: 15;
    top: 0;
    right: 0;
    background-color: rgba(26, 29, 35, 0.95);
    overflow-x: hidden;
    transition: transform 0.5s ease-in-out;
    transform: translateX(100%);
}

.overlay.open {
    transform: translateX(0);
}

.overlay-content {
    position: relative;
    top: 50px;
    width: 100%;
    padding: 0 40px;
    text-align: left;
}

.menu-title {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 900;
}

.overlay a {
    padding: 10px 0;
    text-decoration: none;
    font-size: 1.5rem;
    color: #e0e0e0;
    display: block;
    transition: 0.3s;
    font-weight: 600;
}

.overlay a:hover {
    color: #c9ff00;
}

.closebtn {
    position: absolute;
    top: -15px;
    right: 5px;
    font-size: 40px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
}

@media screen and (min-width: 48em) {
    .openbtn {
        top: 1rem;
        right: 1rem;
    }
}

footer {
    background-color: #111;
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
    border-top: 1px solid #333842;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.2rem;
    }

    .game-card {
        padding: 25px;
    }

    .game-logo {
        width: 65px;
        height: 65px;
    }

    .screenshot-grid.landscape img {
        width: 100%;
        height: auto;
    }

    .screenshot-grid.portrait img {
        width: 45%;
        height: auto;
    }

    .modal-btn {
        padding: 8px 12px;
        font-size: 18px;
    }

    .close-modal {
        font-size: 32px;
    }
}
