.page_header {
    background: var(--primary-bg-light);
    border-radius: var(--radius-lg);
    width: calc(100% - 40px);
    padding: 80px 0;
    margin: 0 auto;
}
.ph_inner {
    display: flex;
    align-items: end;
    gap: 40px;
    justify-content: space-between;
}
.ph_l {
    display: flex;
    gap: 40px;
}
.ph_logo {
    width: 86px;
    height: 86px;
}
.ph_title h1 {
    font-size: var(--ft32);
    font-weight: var(--semi-bold);
    color: var(--gray-700);
    margin-bottom: 20px;
}
.ph_title p {
    font-size: var(--ft16);
    color: var(--gray-500);
}
.ph_btns {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ph_btns a {
    width: 164px;
    height: 50px;
    border-radius: var(--radius-sm);
    color: white;
    font-size: var(--ft16);
    font-weight: var(--semi-bold);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ph_btns .sell_btn {
    background: var(--primary);
}
.ph_btns .guide_btn {
    background: var(--gray-500);
}

/* 아이템 마켓 */
.item_mark_info {
    width: 100%;
    margin-top: 30px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--dark-line);
    display: flex;
    align-items: center;
    gap: 16px;
}
.item_mark_l {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 16px;
    position: relative;
}
.item_mark_l::after {
    content: '';
    display: block;
    width: 1px;
    height: 13px;
    background-color: var(--dark-line);
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.item_mark_l p {
    font-size: var(--ft16);
    font-weight: var(--semi-bold);
}
.item_mark_icon {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: linear-gradient(142deg, var(--primary-gradient)), #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
}
.item_mark_icon img {
    width: 16px;
    height: 16px;
}
.item_mark_info > p {
    font-size: var(--ft16);
    color: var(--gray-500);
}

/* 게임목록 */
.sec_header {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}
.sec_title {
    font-size: var(--ft24);
    color: var(--gray-700);
    font-weight: var(--semi-bold);
}
.mygame_sec,
.allgame_sec {
    margin-top: var(--sec-gap);
}


/* 내가하는게임 */
.mygame_sec .sec_header {
    gap: 16px;
}

.game_list {
    display: grid;
    grid-template-columns: repeat(6, 130px);
    gap: 80px;
    justify-content: space-between;
}
.game_list a {
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: filter .4s ease;
}
.game_thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}
.game_thumb .item_mark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(142deg, var(--primary-gradient)), #FFF;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 8px;
    top: 8px;
    z-index: 1;
}
.game_thumb .item_mark img {
    width: 16px;
    height: 16px;
}
.game_thumb > img {
    scale: 1;
    transition: scale .4s ease;
}

.game_list a:hover {
    filter: drop-shadow(var(--shadow));
}
.game_list.small a:hover {
    filter: unset;
}
.game_list.small a:hover {
    filter: unset;
    box-shadow: var(--shadow);
}
.game_list a:hover .game_thumb > img {
    scale: 1.1;
}
.game_title {
    font-size: var(--ft18);
    color: var(--gray-700);
    font-weight: var(--medium);
    text-align: center;
    word-wrap: break-word;
    word-break: break-all;
}

/* 전체게임 */
.allgame_sec .sec_header {
    justify-content: space-between;
}
.allgame_sec .view_type {
    display: flex;
    align-items: center;
    gap: 20px;
}
.allgame_sec .view_type button {
    font-size: var(--ft16);
    color: var(--gray-400);
    font-weight: var(--semi-bold);
    transition: opacity .3s;
}
.allgame_sec .view_type button:hover {
    opacity: .8;
}
.allgame_sec .view_type button.active {
    color: var(--gray-700);
}
.allgame_filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
}
.allgame_filter button {
    padding: 8px 20px;
    border-radius: var(--radius-xs);
    background: var(--gray-100);
    font-size: var(--ft16);
    font-weight: var(--semi-bold);
    color: var(--gray-600);
    flex: 1 0 0;
    transition: filter .4s ease;
}

.allgame_filter button.active {
    background: var(--primary);
    color: white;
}
.allgame_filter button:not(.active):hover {
    filter: brightness(.9);
}


/* 작게보기 */
.allgame_list.small {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.allgame_list.small li {
    width: 100%;
    min-width: 0;
}
.allgame_list.small a {
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
    border: 1px solid var(--dark-line);
    border-radius: var(--radius-md);   
    background: var(--bg);
    transition: filter .4s ease, background .4s ease;
    position: relative;
}
.allgame_list.small a:hover {
    background: var(--primary-bg-light);
}
.allgame_list.small .game_thumb {
    width: 40px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    position: static;
}
.allgame_list.small .game_thumb .item_mark {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.allgame_list.small p {
    padding-right: 40px;
}

@media all and (max-width: 1200px) {
    .ph_logo {
        width: 70px;
        height: 70px;
    }
    .ph_title h1 {
        font-size: var(--ft28);
    }
}

@media all and (max-width: 1024px) {
    .page_header {
        padding: 40px 0;
    }
    .ph_inner {
        flex-direction: column;
        align-items: center;
    }
    .ph_l {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .ph_logo {
        width: 60px;
        height: 60px;
    }
    .ph_title {
        text-align: center;
    }

    .game_list {
        gap: 32px;
        grid-template-columns: repeat(5, 130px);
    }
    .allgame_list.small {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media all and (max-width: 768px) {
    .page_header {
        padding: 24px 0;
        gap: 24px;
    }
    .ph_inner {
        gap: 24px;
    }
    .ph_logo {
        width: 40px;
        height: 40px;
    }
    .ph_title h1 {
        margin-bottom: 10px;
        font-size: var(--ft20);
    }
    .ph_r {
        width: 100%;
    }
    .ph_btns {
        justify-content: center;
    }
    .ph_btns a {
        width: 100%;
        max-width: 160px;
        height: 40px;
        font-size: var(--ft14);
    }

    .item_mark_info {
        margin-top: 16px;
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
    .item_mark_l {
        gap: 6px;
    }
    .item_mark_l::after {
        display: none;
    }
    .item_mark_icon {
        width: 20px;
        height: 20px;
    }
    .item_mark_icon img {
        width: 13px;
        height: 13px;
    }
    .game_thumb .item_mark {
        width: 20px;
        height: 20px;
        top: 5px;
        right: 5px;
    }
    .game_thumb .item_mark img {
        width: 13px;
        height: 13px;
    }
    .allgame_list.small .game_thumb .item_mark {
        right: 10px;
    }

    .mygame_sec .sec_header {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }
    .sec_title {
        font-size: var(--ft20);
    }

    .allgame_sec .sec_header {
        margin-bottom: 24px;
    }
    .allgame_sec .view_type {
        gap: 12px;
    }
    .allgame_sec .view_type button {
        font-size: var(--ft14);
    }
    .allgame_filter {
        gap: 6px;
        margin-bottom: 32px;
    }
    .allgame_filter button {
        flex: 0;
        padding: 6px 12px;
        font-size: var(--ft14);
    }


    .game_list {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .game_list a {
        gap: 12px;
    }
    .game_thumb {
        margin: 0 auto;
        max-width: 100px;
    }
    .game_title {
        font-size: var(--ft16);
    }
    .allgame_list.small {
        grid-template-columns: repeat(1, 1fr);
    }
    .allgame_list.small a {
        padding: 8px;
        gap: 10px;
    }
    .allgame_list.small .game_thumb {
        width: 28px;
        margin: 0;
    }
    .allgame_list.small .game_title {
        font-size: var(--ft16);
        text-align: start;
        word-wrap: break-word;
        word-break: break-all;
        max-width: none !important;
        width: auto;
        min-width: 100%;
    }
}