@font-face {
    font-family: 'Press Start 2P';
    src: url('./fonts/PressStart2P-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'VT323';
    src: url('./fonts/VT323-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

:root {
    --dayz-dark: #0a0a0a;
    --dayz-panel: #1a1a1a;
    --dayz-red: #991a1a;
    --dayz-green: #3a7a3a;
    --dayz-white: #f0f0f0;
    --dayz-gray: #555555;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    height: 100dvh;
    background-image: url('cover.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
}

body {
    min-height: 100dvh;
    background-color: var(--dayz-dark);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.header-area h1 {
    font-family: 'Press Start 2P', 'VT323', monospace !important;
    font-weight: 400 !important;
    letter-spacing: 0.1em !important;
    color: var(--dayz-white) !important;
    text-shadow: 2px 2px 0 var(--dayz-red) !important;
    font-size: clamp(1.2rem, 5vw, 2.5rem) !important;
    -webkit-font-smoothing: none;
    font-smooth: never;
}

@media (min-width: 768px) {
    .header-area h1 {
        text-shadow: 3px 3px 0 var(--dayz-red) !important;
    }
}

.content-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.header-area {
    margin-bottom: 1rem !important;
    text-align: center;
    width: 100%;
}

.main-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem !important;
    width: 100%;
    padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .main-area {
        gap: 4rem !important;
        grid-template-columns: 1fr 1fr;
    }
}

.footer-area {
    margin-top: 0.5rem !important;
    text-align: center;
    width: 100%;
}

.footer-area p {
    color: rgba(240, 240, 240, 0.7);
    font-size: 0.5rem;
}

.game-card {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(4px);
    border: 3px solid var(--dayz-dark);
    box-shadow: 4px 4px 0 0 var(--dayz-dark);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: fit-content;
    width: 100%;
}

@media (min-width: 768px) {
    .game-card {
        padding: 1.5rem;
    }
}

.game-card .card-header {
    text-align: center;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .game-card .card-header {
        margin-bottom: 1.5rem;
    }
}

.version-tag {
    background: var(--dayz-red);
    color: var(--dayz-white);
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    padding: 0.4rem 0.6rem;
    border: 3px solid var(--dayz-dark);
    box-shadow: 4px 4px 0 0 var(--dayz-dark);
    display: inline-block;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .version-tag {
        font-size: 1rem !important;
        padding: 0.5rem 0.75rem;
        margin-bottom: 1rem;
    }
}

.game-screenshot {
    width: 100%;
    height: auto;
    border: 3px solid var(--dayz-dark);
    margin-bottom: 0.75rem;
    object-fit: cover;
}

@media (min-width: 768px) {
    .game-screenshot {
        margin-bottom: 1.25rem;
    }
}

.feature-list {
    margin-bottom: 0.75rem;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .feature-list {
        margin-bottom: 1.25rem;
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--dayz-white);
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    word-wrap: break-word;
}

@media (min-width: 768px) {
    .feature-item {
        gap: 0.75rem;
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
}

.feature-item::before {
    content: "✅";
    color: var(--dayz-green);
    font-size: 0.65rem;
    margin-top: 0.1rem;
}

@media (min-width: 768px) {
    .feature-item::before {
        font-size: 0.75rem;
    }
}

.feature-item2 {
    padding: 16px 22px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(6px);
    border: 2px solid #2a2a2a;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.4);
    border-radius: 4px;
    margin: 10px 0;
    line-height: 1.75;
    color: #e0e0e0;
    font-size: 0.85rem;
    font-family: 'VT323', monospace !important;
    letter-spacing: 0.5px;
    white-space: pre-line;
    text-shadow: 1px 1px 2px #000;
    transition: all 0.2s ease;
}

.btn-container {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-play {
    width: 48%;
    background: var(--dayz-red);
    color: var(--dayz-white);
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 0.6rem 0;
    border: 3px solid var(--dayz-dark);
    box-shadow: 4px 4px 0 0 var(--dayz-dark);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-play:hover {
    background: var(--dayz-white);
    color: var(--dayz-red);
}

.btn-download {
    width: 48%;
    background: var(--dayz-red);
    color: var(--dayz-white);
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 0.6rem 0;
    border: 3px solid var(--dayz-dark);
    box-shadow: 4px 4px 0 0 var(--dayz-dark);
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: var(--dayz-white);
    color: var(--dayz-red);
}

@media (min-width: 768px) {
    .btn-play, .btn-download {
        font-size: 1.1rem !important;
        padding: 0.7rem 0;
    }
}

/* ====================== 弹窗样式 ====================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-card {
    max-width: 600px;
    width: 100%;
    margin: 0;
    position: relative;
}

/* 修复：弹窗内标题 鼠标恢复默认箭头，无点击样式 */
.modal-card .version-tag {
    cursor: default;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: var(--dayz-red);
    color: var(--dayz-white);
    border: 3px solid var(--dayz-dark);
    box-shadow: 4px 4px 0 0 var(--dayz-dark);
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-content {
    padding: 0.5rem 0;
}