.usan-body {
    background: #ffffff;
    overflow-x: hidden;
}

.usan-responsive-layout {
    width: 100%;
    height: 100%;
}

.main-frame {
    width: 100%;
    height: 100%;
}














/* PC/모바일 공통 레이아웃 래퍼 */
.usan-layout {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: stretch;
}

/* PC 왼쪽 소개 영역 (모바일에서는 숨김) */
.pc-side-section {
    display: none;
}

/* 왼쪽 내부 정리용 */
.pc-side-inner {
    text-align: left;
    gap: 12px;
}

.pc-side-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pc-side-desc {
    font-size: 14px;
    color: #64748b;
}

.pc-side-image {
    margin-top: 24px;
    max-width: 80%;
}

/* ---------------- 모바일 프레임 쪽 ---------------- */

.mobile-frame-outer {
    width: 100vw;
    height: calc(var(--app-vh, 1vh) * 100);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.mobile-scale {
    transform-origin: top center;
}

/* 스케일 대상이 되는 "폰" 박스 */
.mobile-shell {
    width: 430px;
    height: calc(var(--app-vh, 1vh) * 100);
    background: #ffffff;
    display: flex;
    flex-direction: column; /* 헤더 / 본문 / 바텀 네비 수직 배치 */

    position: relative;
    overflow: hidden;
}

/* 헤더(안에 header fragment가 붙음) */
.mobile-header {
    flex: 0 0 64px;
    justify-content: space-between;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-bottom: 1px solid #f2f2f2;
    box-shadow: 0 4px 4px 0 #00000026;
    box-sizing: border-box;
    background: #ffffff;
    z-index: 1;
}

/* 실제 스크롤 되는 본문 영역 */
.mobile-frame {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;

    /*padding-bottom: calc(72px + env(safe-area-inset-bottom));*/
}
.mobile-frame::-webkit-scrollbar {
    display: none;
}

/* ---------------- 헤더 내부 요소들 ---------------- */

.header-left {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.header-logo {
    width: 70px;
    height: 40px;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-right__icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.header-right__icon::before {
    content: '';
    width: 24px;
    height: 24px;
    background-color: #0d0d0d;
}

.header-icon__magnifier::before {
    mask: url("../img/24x24-magnifier.svg") center/contain no-repeat;
    -webkit-mask: url("../img/24x24-magnifier.svg") center/contain no-repeat;
}

.header-icon__bell::before {
    mask: url("../img/24x24-bell.svg") center/contain no-repeat;
    -webkit-mask: url("../img/24x24-bell.svg") center/contain no-repeat;
}

.search-header__back {
    width: 48px;
    height: 48px;

    background: url("../img/24x24-arrow.svg") center/24px 24px no-repeat;
    cursor: pointer;
}

.search-header__input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #f2f2f2;
    border-radius: 12px;
}

.search-header__icon {
    position: absolute;
    right: 32px;
    width: 24px;
    height: 24px;
    mask: url("../img/24x24-magnifier.svg") center/contain no-repeat;
    -webkit-mask: url("../img/24x24-magnifier.svg") center/contain no-repeat;
    background: #d9d9d9;
}

.full-panel {
    position: absolute;
    left: 100%;
    top: 0;

    width: 100%;
    max-width: 430px;
    height: 100%;

    background: #ffffff;
    z-index: 101;

    display: flex;
    flex-direction: column;
    overflow-y: auto;

    transform: translateX(100%);
    transition: transform 0.35s ease-out;

    -ms-overflow-style: none;
}

.full-panel::-webkit-scrollbar {
    display: none;
}

.full-panel.is-open {
    transform: translateX(-100%);
}

.more-content {
    display: flex;
    flex-direction: column;
}

.more-content__recommend-outer {
    padding: 10px;
}

.more-content__recommend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 56px;
    border-radius: 16px;
    padding: 0 16px;
    background: #e7eafe;
}

.recommend__text {
    font-weight: 600;
    font-size: 16px;
    color: #6278e9;
}

.recommend__icon {
    width: 24px;
    height: 24px;
    background-color: #8c8c8c;
    mask: url("../img/24x24-delete.svg") center/contain no-repeat;
    -webkit-mask: url("../img/24x24-delete.svg") center/contain no-repeat;
}

.more-content__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f2f2f2;
}

.card__profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile__no-image {
    width: 120px;
    height: 120px;
    mask: url("../img/96x96-basic-profile.svg") center/contain no-repeat;
    -webkit-mask: url("../img/96x96-basic-profile.svg") center/contain no-repeat;
    background-color: #bfbfbf;
}

.profile__nickname {
    font-weight: 500;
    font-size: 28px;
    color: #0d0d0d;
}

.card__stats {
    display: flex;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 0 10px 0 #06114820;
    border-radius: 16px;
    width: 100%;
    height: 102px;
}

.stats-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
}

.stats-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    border-right: 0.67px solid #bfbfbf;
}

.stat-count {
    font-weight: 700;
    font-size: 20px;
    color: #3551e3;
}

.stat-text {
    font-weight: 400;
    font-size: 16px;
    color: #8c8c8c;
}

.more-content__links {
    display: flex;
    flex-direction: column;
}

.more-content__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    padding: 16px;
    border-bottom: 1px solid #f2f2f2;
    background: #ffffff;
    cursor: pointer;
}

.link__double-line {
    display: flex;
    flex-direction: column;
}

.link__text {
    font-weight: 600;
    font-size: 20px;
    color: #262626;
}

.link__caption {
    font-weight: 400;
    font-size: 16px;
    color: #8c8c8c;
}

.link__icon {
    width: 24px;
    height: 24px;
    mask: url("../img/24x24-link.svg") center/contain no-repeat;
    -webkit-mask: url("../img/24x24-link.svg") center/contain no-repeat;
    background-color: #8c8c8c;
}

/* ---------------- 바텀 네비 ---------------- */

.bottom-nav {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);

    width: 100%;
    max-width: 430px;
    height: 72px;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;

    display: flex;
    align-items: stretch;
    border-top: 1px solid #d9d9d9;
    background: #ffffff;
}

.bottom-nav__item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.bottom-nav__icon {
    display: block;
    width: 24px;
    height: 24px;
    background-color: #99a1af;
}

.bottom-nav__icon--home {
    mask: url("../img/24x24-home.svg") center/contain no-repeat;
    -webkit-mask: url("../img/24x24-home.svg") center/contain no-repeat;
}

.bottom-nav__icon--map {
    mask: url("../img/24x24-map.svg") center/contain no-repeat;
    -webkit-mask: url("../img/24x24-map.svg") center/contain no-repeat;
}

.bottom-nav__icon--more {
    mask: url("../img/24x24-more.svg") center/contain no-repeat;
    -webkit-mask: url("../img/24x24-more.svg") center/contain no-repeat;
}

.bottom-nav__item.on .bottom-nav__icon--home {
    mask: url("../img/24x24-home-navy.svg") center/contain no-repeat;
    -webkit-mask: url("../img/24x24-home-navy.svg") center/contain no-repeat;
    background-color: #091243;
}

.bottom-nav__item.on .bottom-nav__icon--map {
    mask: url("../img/24x24-home-navy.svg") center/contain no-repeat;
    -webkit-mask: url("../img/24x24-map-navy.svg") center/contain no-repeat;
    background-color: #091243;
}

.bottom-nav__label {
    font-weight: 400;
    font-size: 12px;
    color: #99a1af;
}

.bottom-nav__item.on .bottom-nav__label {
    color: #091243;
}

/* ---------------- 태블릿, pc 레이아웃 ---------------- */
/* PC */
@media (min-width: 768px) {
    .usan-layout {
        justify-content: center; /* 좌/우 묶음을 중앙 */
        gap: 40px;
    }

    .pc-side-section {
        display: block;      /* 또는 flex */
        flex: 1;
        min-width: 0;
    }

    .mobile-frame-outer {
        width: auto;
        flex: 0 0 430px;     /* 우측 폰 영역 고정 */
    }

    .mobile-shell {
        width: 430px;
    }
}