/* =========================================================
   页面顶部标题
========================================================= */

.header-area {
    padding: 22px 15px 8px;
    text-align: center;
}

.header-area h1 {
    margin: 0 0 6px;

    font-size: 28px;
    line-height: 1.3;

    font-weight: 800;

    letter-spacing: 3px;

    text-shadow:
        2px 2px 0 rgba(0, 0, 0, 0.65),
        0 0 10px rgba(255, 255, 255, 0.08);
}


/* =========================================================
   顶部状态
========================================================= */

.platform-status {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 12px;

    margin: 0 0 15px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 10px;

    letter-spacing: 1px;
}


/* =========================================================
   搜索框
========================================================= */

.game-search {
    width: 100%;

    max-width: 520px;

    margin: 0 auto 22px;
}

.game-search input {
    width: 100%;

    height: 40px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid rgba(255, 255, 255, 0.14);

    border-radius: 5px;

    outline: none;

    background: rgba(0, 0, 0, 0.35);

    color: #fff;

    font-size: 13px;
}

.game-search input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.game-search input:focus {
    border-color: rgba(255, 255, 255, 0.28);

    background: rgba(0, 0, 0, 0.42);
}


/* =========================================================
   首页游戏卡片顶部按钮统一尺寸
========================================================= */

.main-area > .game-card .version-tag {
    width: 150px;

    height: 42px;

    box-sizing: border-box;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 0 12px;

    margin: 0;

    white-space: nowrap;
}


/* =========================================================
   Mikutap 暂无安卓版
========================================================= */

.btn-download:disabled {
    opacity: 0.45;

    cursor: not-allowed;

    filter: grayscale(1);
}


/* =========================================================
   搜索结果隐藏
========================================================= */

.main-area > .game-card.search-hidden {
    display: none;
}


/* =========================================================
   手机端顶部
========================================================= */

@media (max-width: 600px) {

    .header-area {
        padding-top: 18px;
    }

    .header-area h1 {
        font-size: 24px;

        letter-spacing: 2px;
    }

    .platform-status {
        gap: 8px;

        font-size: 9px;

        letter-spacing: 0.7px;
    }

    .game-search {
        margin-bottom: 18px;
    }

}


@media (max-width: 420px) {

    .platform-status {
        gap: 6px;

        font-size: 8px;
    }

}


/* =========================================================
   DoL 18+ 年龄验证弹窗
========================================================= */

.age-modal-overlay {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.82);

    display: none;

    justify-content: center;
    align-items: center;

    padding: 1rem;

    z-index: 10000;

    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}


.age-modal {
    position: relative;

    width: 100%;
    max-width: 460px;

    background: rgba(26, 26, 26, 0.96);

    border: 3px solid #0a0a0a;

    box-shadow: 6px 6px 0 #0a0a0a;

    padding: 1.5rem;

    color: #f0f0f0;

    animation: ageModalIn 0.18s ease-out;
}


@keyframes ageModalIn {

    from {
        opacity: 0;

        transform:
            translateY(-10px)
            scale(0.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}


.age-modal-title {
    display: inline-block;

    background: #991a1a;

    color: #f0f0f0;

    border: 3px solid #0a0a0a;

    box-shadow: 4px 4px 0 #0a0a0a;

    padding: 0.55rem 0.8rem;

    margin-bottom: 1.25rem;

    font-size: 1rem !important;

    font-weight: 700 !important;

    line-height: 1.4;
}


.age-modal-text {
    color: #f0f0f0;

    font-size: 0.85rem;

    line-height: 1.7;

    margin-bottom: 1.25rem;

    text-align: left;
}


.age-input-wrap {
    width: 100%;

    margin-bottom: 0.5rem;
}


#dol-age-input {
    width: 100%;

    height: 48px;

    display: block;

    background: #0f0f0f;

    color: #f0f0f0;

    border: 3px solid #0a0a0a;

    box-shadow:
        inset 3px 3px 0 rgba(0, 0, 0, 0.45);

    border-radius: 0;

    padding: 0 0.8rem;

    font-family: inherit !important;

    font-size: 1rem !important;

    font-weight: 700 !important;

    text-align: center;

    outline: none;

    appearance: none;
    -webkit-appearance: none;
}


#dol-age-input::placeholder {
    color: #777;
}


#dol-age-input:focus {
    border-color: #991a1a;

    box-shadow:
        inset 3px 3px 0 rgba(0, 0, 0, 0.45),
        0 0 0 2px rgba(153, 26, 26, 0.25);
}


#dol-age-input::-webkit-outer-spin-button,
#dol-age-input::-webkit-inner-spin-button {
    -webkit-appearance: none;

    margin: 0;
}


#dol-age-input[type="number"] {
    -moz-appearance: textfield;
}


.age-error {
    min-height: 1.4rem;

    color: #ff5b5b;

    font-size: 0.75rem;

    font-weight: 700;

    line-height: 1.4;

    margin-bottom: 0.5rem;

    text-align: center;
}


.age-modal-buttons {
    display: flex;

    justify-content: space-between;

    gap: 0.75rem;

    margin-top: 0.75rem;
}


.age-cancel,
.age-confirm {
    flex: 1;

    min-height: 46px;

    border: 3px solid #0a0a0a;

    border-radius: 0;

    box-shadow: 4px 4px 0 #0a0a0a;

    padding: 0.6rem 0;

    font-family: inherit !important;

    font-size: 0.9rem !important;

    font-weight: 700 !important;

    cursor: pointer;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    appearance: none;
    -webkit-appearance: none;

    transition: all 0.2s ease;
}


.age-cancel {
    background: #333;

    color: #f0f0f0;
}


.age-cancel:hover {
    background: #555;
}


.age-confirm {
    background: #991a1a;

    color: #f0f0f0;
}


.age-confirm:hover {
    background: #f0f0f0;

    color: #991a1a;
}


.age-cancel:active,
.age-confirm:active {
    transform: translate(2px, 2px);

    box-shadow: 2px 2px 0 #0a0a0a;
}


/* =========================================================
   年龄弹窗手机端
========================================================= */

@media (max-width: 420px) {

    .age-modal-overlay {
        padding: 0.75rem;
    }

    .age-modal {
        padding: 1rem;

        box-shadow:
            4px 4px 0 #0a0a0a;
    }

    .age-modal-title {
        font-size: 0.85rem !important;

        padding: 0.45rem 0.65rem;

        margin-bottom: 1rem;

        box-shadow:
            3px 3px 0 #0a0a0a;
    }

    .age-modal-text {
        font-size: 0.75rem;

        line-height: 1.65;

        margin-bottom: 1rem;
    }

    #dol-age-input {
        height: 44px;

        font-size: 0.9rem !important;
    }

    .age-modal-buttons {
        gap: 0.5rem;
    }

    .age-cancel,
    .age-confirm {
        min-height: 44px;

        font-size: 0.8rem !important;

        box-shadow:
            3px 3px 0 #0a0a0a;
    }

}


@media (max-width: 360px) {

    .age-modal-buttons {
        flex-direction: column;
    }

    .age-cancel,
    .age-confirm {
        width: 100%;
    }

}