/* ========== SHARED: 섹션 타이틀 배지 ========== */
.section-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

.section-badge__bg {
    display: block;
    height: 60px;
    width: auto;
    min-width: 160px;
}

.section-badge__text {
    position: absolute;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.06em;
    white-space: nowrap;
    margin-top: 3px;
    margin-right: 12px;
}

/* ========== GAMES SECTION ========== */
.games {
    position: relative;
    padding: clamp(100px, 19.5vw, 250px) 0px clamp(200px, 39vw, 500px);
    background: var(--bg-page);
    overflow: hidden;
}

/* 섹션 배경: bg-1.png (오른쪽) */
.games__section-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/game/bg-1.png');
    background-repeat: no-repeat;
    background-size: 42vw;
    background-position: calc(8vw + 486px) calc(40%);
    pointer-events: none;
}

.games__section-bgTwo {
    position: absolute;
    inset: 0;
    background-image: url('../images/game/bg-2.png');
    background-repeat: no-repeat;
    background-size: 28vw;
    background-position: 0 calc(50% + 300px);
    pointer-events: none;
}

.games__inner {
    position: relative;
    z-index: 1;
    /*max-width: var(--max-width);*/
    height: auto;
    margin: 0 auto;
    padding: 0 32px;
    transform-origin: top center;
}

/* 섹션 배지: 중앙 정렬 */
.games__badge {
    margin-bottom: 72px;
    text-align: center;
}

/* ========== GAME CARD — 3행 레이아웃 ========== */
/* 캐릭터: position:absolute, 왼쪽 고정, z-index:3 (패널 위에 겹침)
  패널: 전체 너비, overflow:hidden
  패널 내부: [1행 태그+제목 우측정렬] | [2행 씬이미지 전폭] | [3행 설명+버튼 우측정렬] */
.game-card {
    position: relative;
    padding-bottom: 80px;
}

/* bg-2.png — 캐릭터 아래쪽 왼쪽 */
.game-card__glow {
    position: absolute;
    left: -40px;
    bottom: 0;
    width: clamp(280px, 36vw, 460px);
    height: clamp(280px, 36vw, 460px);
    pointer-events: none;
    z-index: 0;
}

.game-card__glow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.15;
}

/* 캐릭터: 왼쪽 절대 위치 — 패널 위에 겹침 */
.game-card__character {
    position: absolute;
    width: clamp(280px, 36vw, 460px);
    left: 0;
    bottom: 0;
    z-index: 3;
}

.game-card__character img {
    width: 100%;
    height: auto;
}

/* 패널: 전체 너비 (margin-left 없음 — 캐릭터가 외부에서 겹침) */
.game-card__panel {
    position: relative;
    z-index: 1;
    /*background: rgba(255, 255, 255, 0);*/
    border-radius: var(--r-lg);
    overflow: hidden;
    /*box-shadow: 0 4px 32px rgba(136, 147, 242, 0.14);*/
    /*backdrop-filter: blur(4px);*/
}

/* ── 1행: 태그 + 제목 (우측 정렬) ── */
.game-card__header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 20px 32px 16px clamp(220px, 28.1vw, 360px);
    gap: 8px;
}

/* 워터마크 — 제목 뒤 */
.game-card__watermark {
    position: absolute;
    top: 0;
    right: 200px;
    bottom: -70px;
    z-index: 0;
    display: flex;
    align-items: center;
    color: rgba(216, 227, 238, 0.4);
    pointer-events: none;
}

.game-card__watermark-text {
    font-size: clamp(20px, 2.8vw, 34px);
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* 태그 그룹 */
.game-card__tags {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.game-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 26px;
}

.game-tag__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 4px;
}

.game-tag__text {
    position: relative;
    z-index: 1;
    font-size: 11px;
    font-weight: 600;
    color: #5B8DEF;
    white-space: nowrap;
    padding: 0 10px;
}

/* 게임 제목 */
.game-card__title {
    position: relative;
    z-index: 1;
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.4;
    text-align: right;
}

/* ── 2행: 씬 이미지 (전체 너비) ── */
.game-card__scenes {
    position: relative;
    width: 100%;
    height: clamp(130px, 14.8vw, 190px);
    overflow: hidden;
}

.game-card__scenes-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

/* ── 3행: 설명 + 버튼 (우측 정렬) ── */
.game-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 16px 32px 20px 0;
}

.game-card__desc {
    font-size: 16px;
    font-weight: 400;
    color: var(--c-text-light);
    line-height: 1.75;
    margin-bottom: 0px;
    text-align: right;
}

/* 대사 밑줄 장식 */
.game-card__underline {
    display: block;
    width: 45%;
    height: auto;
    max-height: 8px;
    object-fit: fill;
    opacity: 1;
    margin-bottom: 10px;
}

/* CTA 버튼 */
.game-card__cta {
    display: flex;
    justify-content: flex-end;
}

.game-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-width: 140px;
    cursor: pointer;
    transition: transform var(--t-fast), opacity var(--t-fast);
}

.game-cta-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.game-cta-btn__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: var(--r-full);
}

.game-cta-btn__text {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    padding: 0 16px;
}

/* 발자국 배경 장식 */
.games__paw {
    position: absolute;
    pointer-events: none;
    opacity: 1;
    z-index: 5;
}

.games__paw--1 {
    bottom: 0px;
    right: 80px;
    width: 44px;
}

.games__paw--2 {
    bottom: 40px;
    right: 130px;
    width: 32px;
    transform: rotate(-20deg);
}
