* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 더블 탭 줌 방지 */
    touch-action: manipulation;
    /* 모바일(특히 안드로이드) 탭 시 파란/회색 하이라이트 제거 */
    -webkit-tap-highlight-color: transparent;
}

/* 버튼·링크 포커스 시 파란 outline 제거 (input/textarea/select는 입력 피드백 유지) */
button,
a,
[role="button"] {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
button:focus,
button:active,
a:focus,
a:active,
[role="button"]:focus,
[role="button"]:active {
    outline: none;
}

/* 기본 설정 */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Pretendard', sans-serif;
    background: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    /* 더블 탭 및 핀치 줌 방지 */
    touch-action: pan-x pan-y;
    -webkit-user-select: none;
    user-select: none;
}

/* 배경 그라데이션 - 반응형 (부모 컨테이너) */
.bg-gradient {
    background: radial-gradient(55.49% 61.65% at 100% 30.93%, rgba(152, 99, 255, 0.50) 0%, rgba(152, 99, 255, 0.25) 33.17%, rgba(152, 99, 255, 0.00) 100%), radial-gradient(91.27% 99.54% at -5.09% 62.32%, var(--primary, rgba(55, 251, 255, 0.50)) 0%, rgba(83, 118, 255, 0.25) 24.7%, rgba(83, 118, 255, 0.00) 100%), var(--bg_solid, #0A0E18) !important;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none; /* 배경 클릭 방지 */
}

/* 콘텐츠 래퍼 */
.content-wrapper {
    width: 100%;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    position: relative;
    pointer-events: auto; /* 모든 콘텐츠 클릭 가능 */
}

/* 레거시 지원: app-container는 content-wrapper와 동일하게 처리 */
.app-container {
    width: 100%;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    position: relative;
    pointer-events: auto;
}

.bg-white {
    background: #ffffff;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 상태바 */
.status-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3.125rem; /* 50px */
    z-index: 1001;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem; /* 20px */
}

.status-bar-left {
    display: flex;
    align-items: center;
}

.status-bar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
}

.status-bar-time {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem; /* 16px */
    color: #ededed;
    letter-spacing: -0.02rem; /* -0.32px */
}

.status-bar-icon {
    width: 1.125rem; /* 18px */
    height: 1.125rem; /* 18px */
}

/* 헤더 */
.header {
    position: fixed; /* 스크롤해도 상단에 고정 */
    top: 3.125rem; /* 50px */
    left: 0;
    height: 2.625rem; /* 42px */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.375rem; /* 6px */
    z-index: 20; /* main-content 위로 올려 헤더 아이콘 클릭 가능하게 */
}

/* 고정 헤더 뒤로 스크롤 내용이 비쳐 보이지 않도록 상단 프로스트 배경
   (헤더 위 노치/상태바 영역 50px까지 함께 덮음) */
.header::before,
.detail-header::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -3.125rem; /* 위로 50px 확장 */
    bottom: 0;
    z-index: -1;
    background: rgba(20, 20, 40, 0.30); /* #141428 30% */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    pointer-events: none;
    opacity: 0; /* 맨 위에선 투명, 스크롤 시 나타남 */
    transition: opacity 0.25s ease;
}

/* 스크롤을 내리면 헤더 배경(+블러)이 나타남 */
.header.is-scrolled::before,
.detail-header.is-scrolled::before {
    opacity: 1;
}

.header-btn {
    width: 3rem; /* 48px - 전체 클릭영역 */
    height: 3rem; /* 48px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 0.5rem; /* 8px */
}

.header-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-btn img {
    min-width: 1.5rem; /* 24px */
    min-height: 1.5rem; /* 24px */
    width: 1.5rem !important; /* 24px */
    height: 1.5rem !important; /* 24px */
}

/* 아이콘 버튼 공통 클릭영역
   - 아이콘 26x26 + 상하좌우 패딩 11px = 전체 48x48 클릭(탭) 영역
   - box-sizing: content-box 이므로 26 + 11*2 = 48 */
.icon-btn {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    box-sizing: content-box;
    padding: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.icon-btn img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.hidden {
    display: none !important;
}

.logo {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 1.25rem; /* 20px */
    color: #37fbff;
    text-align: center;
    letter-spacing: -0.02rem; /* -0.32px */
    line-height: 1.5rem; /* 24px */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    pointer-events: none;
}

.logo .logo-image {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* 헤더 좌/우 그룹 */
.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
    padding: 0 0.75rem; /* 좌우 여백 */
}

/* 오른쪽 벨-유저 간격: 아이콘 버튼(.icon-btn) 자체에 11px 패딩이 있으므로 gap은 0 */
.header-right {
    gap: 0;
}

/* 왼쪽 로고: D 마크 + DingDong 텍스트 */
.header-logo-icon {
    height: 1.75rem; /* 28px - D 마크 */
    width: auto;
    object-fit: contain;
}

.header-logo-text {
    height: 1.525rem;
    width: auto;
    object-fit: contain;
}

/* 헤더 페이지 제목 (예: My Events) */
.header-page-title {
    margin: 0;
    color: var(--gray_light, #EDEDED);
    text-align: center;
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 120% */
    letter-spacing: -0.32px;
}

/* 오른쪽 아이콘 (벨/유저) - 이미지별 여백이 달라 높이 개별 지정 */
.header-icon {
    width: auto;
    object-fit: contain;
    cursor: pointer;
}

.header-icon.bell {
    height: 1.375rem; /* 22px */
}

.header-icon.user {
    height: 1.875rem; /* 30px */
}

/* 아이콘 버튼(.icon-btn) 안의 헤더 아이콘은 26x26 고정 (패딩 11 → 48x48) */
.icon-btn .header-icon,
.icon-btn .header-icon.bell,
.icon-btn .header-icon.user {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

/* 티켓 입력 섹션 (헤더 아래 카드) */
.ticket-section {
    display: flex;
    width: 369px;
    max-width: 100%;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: var(--blueblack, #141428);
    box-sizing: border-box;
    padding: 15px 15px 15px 20px;
    margin: 0 auto 24px;
}

.ticket-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
}

.ticket-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.ticket-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 0.9375rem; /* 15px */
    outline: none;
}

.ticket-input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

.ticket-join-btn {
    flex-shrink: 0;
    display: flex;
    height: 32px;
    padding: 4px 12px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 9999px;
    background: var(--main_gradation, radial-gradient(733.69% 119.12% at 3.85% 19.32%, #F95C9B 0%, #9C1FB5 25%, #6815D4 50%, #5A70F6 75%, #4BB0FA 100%));
    box-shadow: 0 0 10px 0 #6C15D1, 0 1px 2px 0 rgba(255, 255, 255, 0.70) inset, 0 -1px 2px 0 rgba(108, 22, 210, 0.50) inset;
    color: #ffffff;
    font-size: 0.875rem; /* 14px */
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
}

/* My Events 섹션 제목 */
.my-events-title.featured-title {
    margin-top: 24px; /* My Events 섹션과 동일한 간격(티켓 마진·카드 gap 24px) */
}

.my-events-title {
    margin: 0 0 12px; /* 상단 여백은 티켓 입력창 마진(24px)만 적용 */
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* event.php 상단 탭 (세그먼트 토글: Winning Tickets / History) */
.ev-tabs {
    position: relative;
    display: flex;
    width: 100%;
    padding: 4px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
    margin-bottom: 24px;
}

/* 활성 알약(슬라이드되는 그라데이션 배경) */
.ev-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 9999px;
    background: var(--main_gradation, linear-gradient(90deg, #F95C9B 0%, #9C1FB5 25%, #6815D4 50%, #5A70F6 75%, #4BB0FA 100%));
    transition: transform 0.3s ease;
    z-index: 0;
}

.ev-tabs.right .ev-thumb {
    transform: translateX(100%);
}

.ev-tab {
    position: relative;
    z-index: 1;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: none;
    border-radius: 9999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.ev-tab.active {
    color: #ffffff;
}

.ev-tab-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ===== 이벤트 상세 페이지 (event_detail.php) ===== */
/* 메뉴가 없으므로 하단 여백 제거 + 화면 끝까지 채워 Cheer Up Feed를 맨 아래에 붙임 */
.main-content.event-main.detail-main {
    padding-bottom: calc(5rem + 90px); /* 하단 고정 메뉴(5rem) + 응원하기 피드에 가리지 않게 */
    min-height: calc(100vh - (50px + 42px + 20px));
    min-height: calc((var(--vh, 1vh) * 100) - (50px + 42px + 20px));
}
/* 상세 헤더 (뒤로 버튼) */
.detail-header {
    position: fixed; /* 스크롤해도 상단에 고정 */
    top: 3.125rem; /* 50px */
    left: 0;
    width: 100%;
    height: 2.625rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.5rem;
    z-index: 20;
}

.detail-back,
.detail-share {
    width: 48px; /* 전체 클릭영역 48x48 */
    height: 48px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.detail-back img {
    width: 26px; /* 아이콘 26x26 + 박스 48 → 패딩 11 */
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 흰색 아이콘 */
}

.detail-share img {
    width: 26px; /* 아이콘 26x26 + 박스 48 → 패딩 11 */
    height: 26px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* 흰색 아이콘 */
}

/* 헤더 가운데 제목 (Cheer Up 등) */
.detail-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* 헤더 페이지 제목(.header-page-title, 예: My Events)과 동일 스펙 */
    color: var(--gray_light, #EDEDED);
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px; /* 120% */
    letter-spacing: -0.32px;
    pointer-events: none;
}

/* ===== Cheer Up 페이지 (cheerup.php) ===== */
.main-content.cheer-main {
    display: block;
    height: auto;
    min-height: calc(100vh - (50px + 42px + 20px));
    min-height: calc((var(--vh, 1vh) * 100) - (50px + 42px + 20px));
    padding-bottom: 140px; /* 하단 고정 입력바 높이만큼 (하단 메뉴 없음) */
}

.cheer-artist {
    display: flex;
    justify-content: center;
    padding: 8px 0 20px;
}

.cheer-artist-logo {
    width: 80px;
    height: 80px;
    aspect-ratio: 1 / 1;
    border-radius: 120px;
    border: 1px solid var(--Disable_30, rgba(255, 255, 255, 0.30));
    object-fit: contain;
}

.cheer-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* 응원 메시지 없음 안내 */
.cheer-empty {
    color: var(--Disable_50, rgba(255, 255, 255, 0.50));
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
}

.cheer-msg {
    display: flex;
    padding: 12px 16px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    align-self: stretch;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(18, 18, 18, 0.70);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cheer-msg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
}

.cheer-user {
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px; /* 125% */
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cheer-msg-date {
    color: rgba(255, 255, 255, 0.40);
    font-size: 12px;
}

.cheer-msg-text {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

/* 응원 입력 바 (하단 메뉴 위 고정) */
.cheer-input-bar {
    position: fixed;
    left: 0;
    bottom: 0; /* 하단 메뉴 없는 팝업 — 화면 맨 아래 고정 */
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 24px 12px; /* 폰 하단 여백 확보(24) */
    border-top: 1px solid var(--Disable, rgba(255, 255, 255, 0.20)); /* 상단 라인 */
    background: linear-gradient(270deg, #0A0E18 0%, #172042 98.47%);
    z-index: 9;
}

/* 비참여자: 응원 작성 불가 안내 (보기는 가능) */
.cheer-input-bar--readonly {
    padding: 16px;
}
.cheer-readonly-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.cheer-input-label {
    display: flex;
    height: 24px;
    padding: 0 6px;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

/* 흰색 단색 아이콘(cheerup_feedback.png)에 브랜드 그라데이션 컬러를 입힘(mask 기법) */
.cheer-label-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: var(--main_gradation, radial-gradient(733.69% 119.12% at 3.85% 19.32%, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%));
    -webkit-mask: url('../assets/cheerup_feedback.png') center / contain no-repeat;
    mask: url('../assets/cheerup_feedback.png') center / contain no-repeat;
}

.cheer-input-row {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
    width: 100%;
}

.cheer-input {
    flex: 1;
    min-width: 0;
    padding: 12px 56px 12px 16px; /* 왼16(디자인), 오른쪽은 전송 버튼 공간 */
    border-radius: 30px;
    border: 1px solid var(--Disable_30, rgba(255, 255, 255, 0.30));
    background: var(--blueblack, #141428);
    color: #ffffff;
    font-size: 14px;
    outline: none;
}

.cheer-input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

.cheer-send {
    display: flex;
    height: 32px;
    padding: 4px 9px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    position: absolute;
    right: 8px;
    top: 8px;
    border: none;
    border-radius: 9999px;
    background: var(--main_gradation, radial-gradient(733.69% 119.12% at 3.85% 19.32%, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%));
    cursor: pointer;
}

.cheer-send img {
    height: 18px;
    width: auto;
    object-fit: contain;
}

/* 상세/이용안내 탭 (텍스트 탭 + 하단 밑줄) */
.detail-tabs {
    display: flex;
    gap: 24px;
    width: 100%;
    margin: 24px 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-tab {
    position: relative;
    padding: 10px 2px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.50);
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.detail-tab.active {
    color: #ffffff;
}

.detail-tab.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #ffffff;
}

/* 상세 패널 본문 */
.detail-panel {
    width: 100%;
    margin-bottom: 24px;
    scroll-margin-top: 16px; /* 상단 '이용안내' 앵커 이동 시 여백 */
}

.detail-section {
    margin-bottom: 20px;
}

.detail-h {
    margin: 0 0 6px;
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.detail-p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
}

/* 이용안내(긴 약관) */
.guide-text .detail-p {
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 13px;
}

.guide-h {
    margin: 20px 0 8px;
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.guide-text strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

/* event.php 한 항목: 카드 + 카드 밖 요소(유형/카운트다운/대기실) */
.ev-item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* (유형 라벨 + 카운트다운) 한 줄 컨테이너 */
.ev-meta {
    display: flex;
    padding: 12px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    border-radius: 12px;
}

/* ev-meta 숨김 (종료 후) */
.ev-meta[hidden] {
    display: none;
}

/* 라운지 오픈 후: 카운트다운/알약 숨기고 참여 유도 문구 표시 */
.lounge-pill[hidden],
.je-countdown[hidden],
.ev-live-msg[hidden] {
    display: none;
}

.ev-live-msg {
    flex: 1;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: left;
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45%, #A763FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* LOUNGE OPENS IN 알약 (라운지 오픈 전 표시) */
.lounge-pill {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 8px 18px;
    border-radius: 9999px;
    background: rgba(58, 58, 66, 0.92);
    flex-shrink: 0;
    line-height: 1.15;
    text-align: center;
}

.lounge-pill b {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.lounge-pill span {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45%, #A763FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* 이벤트 유형 라벨 (VIDEO CALL / FAN SIGN) */
.je-type {
    display: flex;
    padding: 6px 12px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid var(--Disable_30, rgba(255, 255, 255, 0.30));
    background: rgba(0, 0, 0, 0.20);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* 참여 이벤트 없음 안내 */
.ev-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 48px 0;
}

.ev-empty-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #37FBFF 0%, #4BB0FA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #37FBFF;
}

.ev-empty-msg {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.80);
}

.ev-empty-msg b {
    font-style: italic;
    font-weight: 800;
    background: linear-gradient(90deg, #FF72C0 0%, #A763FF 55%, #4BB0FA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #A763FF;
}

.ev-empty-img {
    width: 96px;
    height: auto;
    margin-top: 8px;
}

/* 이벤트 시작까지 남은 시간 카운트다운 */
.je-countdown {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    color: #ffffff;
}

.cd-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 30px;
}

.cd-seg b {
    font-family: 'Pretendard', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.cd-seg i {
    margin-top: 4px;
    font-size: 10px;
    font-style: normal;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.50);
}

.cd-colon {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 255, 255, 0.55);
}

/* WAITING ROOM 버튼 (그라데이션 알약 + 글로우 + 내부 하이라이트) */
.je-waitingroom {
    width: 208px;
    max-width: 100%;
    height: 45px;
    align-self: center;
    border: none;
    border-radius: 9999px;
    background: var(--main_gradation, radial-gradient(216% 330% at 4% 18%, #F95C9B 0%, #9C1FB5 25%, #6815D4 50%, #5A70F6 75%, #4BB0FA 100%));
    box-shadow:
        0 0 10px 0 rgba(108, 21, 209, 0.50),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.50),
        inset 0 -1px 2px 0 rgba(245, 245, 245, 0.30);
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* 바로가기 (라운지 오픈 시 노출) */
.je-enter {
    display: flex;
    height: 45px;
    padding: 4px 32px;
    align-self: center;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 9999px;
    border: none;
    background: radial-gradient(651.51% 138.83% at 12.5% 113.54%, #F95C9B 0%, #9C1FB5 25%, #6815D4 50%, #5A70F6 75%, #4BB0FA 100%);
    box-shadow: 0 0 10px 0 rgba(152, 99, 255, 0.70);
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.je-enter[hidden] {
    display: none;
}

/* WAITING ROOM 비활성 (시작 24시간 이전) */
.je-waitingroom:disabled {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    color: rgba(255, 255, 255, 0.40);
    cursor: not-allowed;
}

/* 이벤트 상세: 콜타입은 카드 안, 카운트다운(좌)/LOUNGE(우) 가로 배치 */
/* 시간 + 라운지 버튼 전체 레이아웃 */
.ev-meta--row {
    display: flex;
    padding: 12px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}
/* 시간(카운트다운) 레이아웃 + 스타일 */
.ev-meta--row .je-countdown {
    display: flex;
    padding: 0 12px;
    align-items: flex-start;
    gap: 6px;
    color: var(--white, #FFF);
    text-align: center;
    font-family: Roboto, sans-serif;
    font-size: 27px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    background: rgba(0, 0, 0, 0.00);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
/* 시간 숫자: 27px Roboto 600 */
.ev-meta--row .cd-seg b {
    font-family: Roboto, sans-serif;
    font-size: 27px;
    font-weight: 600;
    color: var(--white, #FFF);
}
.ev-meta--row .cd-colon {
    font-size: 27px;
    font-weight: 600;
    color: var(--white, #FFF);
}
/* 라운지 버튼 (기존 스타일 유지, 크기/그라데이션 지정) */
.ev-meta--row .je-waitingroom {
    display: flex;
    width: 115px;
    height: 48px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    background: linear-gradient(90deg, #F95C9B 0%, #9C1FB5 25%, #6815D4 50%, #5A70F6 75%, #4BB0FA 100%);
}

/* 참여(코드 입력) 이벤트 섹션 카드 */
.joined-events {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    padding-bottom: calc(5rem + 40px); /* 하단 고정 메뉴(5rem=80px)에 마지막 이벤트 LOUNGE 버튼이 가리지 않도록 여백 확보 */
}

.je-card {
    width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--blueblack, #141428);
}

.je-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.je-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.je-badge {
    display: flex;
    padding: 6px 12px;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 16px;
    top: 16px;
    border-radius: 9999px;
    background: var(--main_gradation, linear-gradient(90deg, #F95C9B 0%, #9C1FB5 25%, #6815D4 50%, #5A70F6 75%, #4BB0FA 100%));
    box-sizing: border-box;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.je-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

/* 예정 이벤트 배지 (UP COMING, 빨강) */
.je-badge--upcoming {
    border-radius: 9999px;
    background: var(--danger, #FF2F4A);
}

/* 종료 이벤트 배지 (회색) */
.je-badge--ended {
    background: rgba(110, 110, 122, 0.85);
}

.je-body {
    display: flex;
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

/* 제목 + 날짜(정보) 세로 묶음 */
.je-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

/* 하단 행: 태그(왼쪽) + 버튼(오른쪽) */
.je-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

/* FAN SIGN EVENT 등 태그 칩 */
.je-tag {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9999px;
    border: 1px solid var(--Disable_30, rgba(255, 255, 255, 0.30));
    background: rgba(0, 0, 0, 0.20);
    color: var(--gray_light, #EDEDED);
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.06px;
    white-space: nowrap;
}

.je-title {
    margin: 0;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 24px */
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.je-date {
    color: var(--Disable_50, rgba(255, 255, 255, 0.50));
    font-family: 'Pretendard', sans-serif;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px; /* 133.333% */
    letter-spacing: -0.32px;
}

.je-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    align-self: flex-end;
}

.je-action {
    width: 44px;
    height: 32px;
    border: none;
    border-radius: 9999px;
    background: var(--main_gradation, radial-gradient(733.69% 119.12% at 3.85% 19.32%, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.je-action img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* 비활성 액션 (예: 종료 이벤트의 응원하기) — 그라데이션 대신 다크 그레이 + 무채색 아이콘 */
.je-action:disabled {
    background: rgba(255, 255, 255, 0.10);
    cursor: not-allowed;
}

.je-action:disabled img {
    opacity: 0.45;
    filter: grayscale(1);
}

/* (홈 전용) Cheer Up Feed가 있는 컨테이너: 세로 flex + 마지막 항목 바닥 밀기 */
.card-list-container.has-feed {
    display: flex;
    flex-direction: column;
    padding-bottom: 9rem; /* 하단 메뉴(5rem) + 고정된 Cheer Up Feed 높이만큼 확보 → 마지막 콘텐츠 안 가림 */
}

/* (홈 전용) 자식들이 수축되어 잘리지 않도록 자연 높이 유지 */
.card-list-container.has-feed > * {
    flex-shrink: 0;
}

/* Featured Events 더보기 */
.featured-card.is-hidden {
    display: none;
}

.featured-more-btn {
    display: block;
    width: 100%;
    margin: 4px auto 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.featured-more-btn:active {
    background: rgba(255, 255, 255, 0.12);
}

/* DingDong 가이드 프로모 카드 */
.guide-card {
    position: relative;
    width: 100%;
    height: 340px; /* DingDong Guide 버튼 제거분(약 51px)만큼 축소 (폰 이미지 하단 ~325px, 본문 안 잘림) */
    border-radius: 16px;
    border: 1px solid var(--Disable_30, rgba(255, 255, 255, 0.30));
    background: var(--blueblack, #141428);
    box-sizing: border-box;
    margin: 24px auto 24px;
    padding: 22px;
    overflow: hidden;
    color: #ffffff;
}

.guide-logo {
    position: absolute;
    top: 18px;
    left: 20px;
    width: 46px;
    height: auto;
    z-index: 3;
}

.guide-phone {
    position: absolute;
    top: 6px;
    right: -8px;
    width: 200px;
    height: auto;
    z-index: 1;
    pointer-events: none;
}

.guide-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guide-heading {
    margin: 80px 0 0;
    color: #FFF;
    font-family: 'Paperlogy', 'Pretendard', sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 250;
    line-height: 120%; /* 36px */
    letter-spacing: -0.32px;
}

.guide-heading b {
    font-weight: 800;
}

.guide-wordmark {
    width: 132px;
    height: auto;
    margin-top: 6px;
    display: block;
}

.guide-desc {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

.guide-btn {
    margin-top: auto;
    align-self: center;
    display: inline-flex;
    height: 32px;
    padding: 4px 30px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 9999px;
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
}

/* Cheer Up Feed (응원 메시지 마키 슬라이드) */
.cheer-feed {
    display: flex;
    width: 100%;
    padding: 24px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(270deg, #0A0E18 -2.29%, #172042 100%);
    border-radius: 12px;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: auto; /* 남는 공백을 위(Featured와 사이)로 보내고 바닥에 밀착 */
}

/* (홈 전용) Cheer Up Feed를 하단 메뉴 바로 위에 고정 — 제목 없음 */
.cheer-feed--docked {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 5rem; /* 하단 메뉴(.bottom-menu) 높이만큼 위 */
    width: 100%;  /* 시안 393px → 반응형 프레임 폭(하단 메뉴와 동일) */
    z-index: 9;   /* 메뉴(z-index:10) 바로 아래 */
    margin: 0;
    padding: 16px 12px;
    gap: 12px;
    border-radius: 0;
    border-top: 1px solid var(--gray_dark, #323232);
    background: linear-gradient(270deg, #0A0E18 -2.29%, #172042 100%);
    box-shadow: 0 -4px 15px 0 rgba(0, 0, 0, 0.25);
}

.cheer-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cheer-head-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.cheer-head-title {
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.cheer-row {
    width: 100%;
    overflow: hidden;
}

/* 마키 트랙: 칩 세트를 2배로 복제해 -50%로 이동하면 끊김 없이 루프 */
.cheer-track {
    display: flex;
    width: max-content;
    animation: cheer-scroll 60s linear infinite;
}

/* (홈 전용) 고정 피드 마키 속도 높임 */
.cheer-feed--docked .cheer-track {
    animation-duration: 15s;
}

.cheer-track--slow {
    animation-duration: 32s;
}

/* (이벤트 상세) 홈 화면과 동일한 스타일: 1줄, 좌우 여백 없는 풀블리드, 제목 없음, 동일 속도
   - 상세는 스크롤 페이지라 고정(fixed)이 아닌 인플로우로, 부모 가로 패딩을 무시하고 화면 꽉 차게 */
.cheer-feed--detail {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 16px 12px;
    gap: 12px;
    border-radius: 0;
    border-top: 1px solid var(--gray_dark, #323232);
    background: linear-gradient(270deg, #0A0E18 -2.29%, #172042 100%);
}
.cheer-feed--detail .cheer-track {
    animation-duration: 15s;
}

@keyframes cheer-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.cheer-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-right: 12px; /* gap 대신 margin으로 균일 폭 → 이음매 자연스럽게 */
    padding: 6px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(18, 18, 18, 0.70);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    white-space: nowrap;
}

.cheer-chip b {
    font-weight: 700;
}

.cheer-chip .u1 { color: #FF72C0; }
.cheer-chip .u2 { color: #A763FF; }
.cheer-chip .u3 { color: #4BB0FA; }

/* 응원 피드 마키는 장식이 아니라 핵심 콘텐츠이므로 모션 최소화 설정과 무관하게 항상 흘러가야 함
   (기기의 Reduce Motion이 켜져 있어도 멈추지 않도록 정지 규칙 제거 — 모바일에서 안 흐르던 원인) */

/* 하단 메뉴 */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 5rem;
    width: 100%;
    z-index: 10;
    background: url('../assets/statusbar.png') center/cover no-repeat; /* 메뉴 배경 이미지 */
}

.menu-content {
    position: relative;
    height: 100%;
}

/* 메뉴 버튼 컨테이너 - 반응형 */
.menu-buttons {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(80px + (100vh - 667px) * 0.02); /* 높이 반응형 */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 30px 15px 30px;
    box-sizing: border-box;
}

/* 메뉴 아이템 — 클릭 영역 48x48, 아이콘 30x30 (padding 9px) */
.menu-item {
    width: 48px;
    height: 48px;
    padding: 9px;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-item.home {
    position: relative;
}

.menu-item.profile {
    position: relative;
    border: 0.125rem solid #323232; /* 2px */
    border-radius: 50%; /* 원형으로 변경 */
}

/* 메뉴 아이템 내 이미지 크기 고정 (30x30) */
.menu-item img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
}

/* 가운데(이벤트) 아이콘만 크게 */
.menu-item.event {
    width: 50px;
    height: 50px;
    padding: 0;
}

.menu-item.event img {
    width: 50px !important;
    height: 50px !important;
}

.profile-icon-container {
    width: 100%; /* 부모 크기에 맞춤 */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* hover 효과는 마우스 환경(데스크탑)에서만 — 모바일에서 sticky 잔상 방지 */
@media (hover: hover) and (pointer: fine) {
    .menu-item:hover {
        transform: scale(1.1);
    }
}

/* 홈 인디케이터 */
.home-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.125rem; /* 34px */
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-indicator-bar {
    width: 8.375rem; /* 134px */
    height: 0.3125rem; /* 5px */
    background: #323232;
    border-radius: 6.25rem; /* 100px */
}

/* 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(1.25rem); } /* 20px */
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ===== 라운지 페이지 (lounge.php) ===== */
.main-content.lounge-main {
    display: block;
    height: auto;
    min-height: calc(100vh - (50px + 42px));
    min-height: calc((var(--vh, 1vh) * 100) - (50px + 42px));
    /* 하단 고정 응원 dock(피드+입력창)에 콘텐츠가 가리지 않도록 하단 여백 확보 */
    padding: calc(50px + 42px + 12px) 16px 220px;
}

/* ===== 라운지: 흐르는 응원 피드 + 입력창을 하단 고정 스택으로 ===== */
.lounge-cheer-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 9;
    pointer-events: none; /* 빈 영역은 통과, 내부 요소만 클릭 */
}
.lounge-cheer-dock > * {
    pointer-events: auto;
}
/* dock 내부에서는 fixed 해제하고 자연 스택 배치 */
.lounge-cheer-dock .cheer-feed--lounge,
.lounge-cheer-dock .cheer-input-bar--lounge {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
}

.lounge-title {
    margin: 0;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45%, #A763FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.lounge-date {
    margin: 8px 0 16px;
    text-align: center;
    color: rgba(255, 255, 255, 0.70);
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
}

/* 카운트다운 (시작 전) — 가운데 정렬 */
.lounge-countdown {
    justify-content: center;
    margin: 0 auto 20px;
}
.lounge-countdown[hidden] { display: none; }

/* 모드 카드 (Test Call / READY FOR CALL 컨테이너) — 가로 나란히 */
.lounge-modes {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    align-self: stretch;
    gap: 10px;
    padding: 12px;
    margin: 0 0 24px;
    border-radius: 16px;
    border: 1px solid var(--Disable, rgba(255, 255, 255, 0.20));
}

.lounge-mode-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Inter', 'Pretendard', sans-serif;
}

/* Test Call 버튼 아이콘 */
.lounge-mode-icon {
    width: 36px;
    height: 36px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* Test Call 버튼 텍스트 */
.lounge-mode-label {
    display: flex;
    width: 108px;
    height: 32px;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--primary, #37FBFF);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: -0.14px;
    text-transform: uppercase;
}

/* READY FOR CALL 버튼 (테스트 콜 실행) */
.lounge-mode-ready {
    width: 108px;
    height: 48px;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    color: var(--white, #FFF);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    /* 채움(왼→오 90deg)과 테두리(위→아래 180deg) 그라데이션 방향을 달리해 가장자리에 입체감 부여 */
    background:
        linear-gradient(90deg, #F95C9B 0%, #9C1FB5 25%, #6815D4 50%, #5A70F6 75%, #4BB0FA 100%) padding-box,
        linear-gradient(180deg, #4BB0FA 0%, #5A70F6 25%, #6815D4 50%, #9C1FB5 75%, #F95C9B 100%) border-box;
}

/* 테스트 통과 → PASS */
.lounge-mode-ready.is-passed {
    cursor: default;
    color: #37FBFF;
    background: rgba(55, 251, 255, 0.10);
    border: 1px solid rgba(55, 251, 255, 0.6);
    box-shadow: none;
}

/* 테스트 콜 미개시(담당 아티스트 미접속) → NOT OPENED (아티스트 행 standby와 동일 톤) */
.lounge-mode-ready.is-standby {
    cursor: default;
    color: rgba(255, 255, 255, 0.70);
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: none;
    font-size: 12px;
}

/* 아티스트 목록 */
.lounge-artists {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lounge-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    padding: 30px 0;
}

.lounge-artist-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(20, 20, 40, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.lounge-artist-no {
    width: 22px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.45);
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.lounge-artist-avatar {
    width: 56px; /* 대기실(.room-artist-avatar)과 통일 */
    height: 56px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 120px;
    border: 1px solid var(--Disable_30, rgba(255, 255, 255, 0.30));
    object-fit: cover;
    background: #2a2a3a;
}

.lounge-artist-name {
    flex: 1;
    min-width: 0;
    /* 대기실(.room-artist-name)과 동일: 18px + 90deg 그라데이션 */
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: -0.18px;
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    white-space: normal; /* 길면 말줄임 대신 줄바꿈 */
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 상태 버튼 */
.lounge-status {
    flex-shrink: 0;
    min-width: 89px;
    height: 34px;
    padding: 0 14px;
    border-radius: 9999px;
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.30);
    color: rgba(255, 255, 255, 0.80);
}

/* STANDBY — 대기 (기본) */
.lounge-status--standby {
    color: rgba(255, 255, 255, 0.70);
}

/* READY FOR CALL — 준비됨 (클릭 가능)
   .lounge-mode-btn + .lounge-mode-ready 와 동일한 레이아웃 + 입체 그라데이션 */
.lounge-status--ready {
    display: flex;
    width: 89.6px; /* 모드 버튼이 flex-shrink로 실제 렌더되는 폭과 일치 */
    height: 48px;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 999px;
    color: var(--white, #FFF);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
    /* 채움(왼→오 90deg) + 테두리(위→아래 180deg) 방향을 달리해 입체감 */
    background:
        linear-gradient(90deg, #F95C9B 0%, #9C1FB5 25%, #6815D4 50%, #5A70F6 75%, #4BB0FA 100%) padding-box,
        linear-gradient(180deg, #4BB0FA 0%, #5A70F6 25%, #6815D4 50%, #9C1FB5 75%, #F95C9B 100%) border-box;
}

/* RECONNECT — 재전화 (클릭 가능) */
.lounge-status--reconnect {
    cursor: pointer;
    border: none;
    color: #ffffff;
    background: linear-gradient(90deg, #FF5C79 0%, #FF2D55 100%);
    box-shadow: 0 0 8px 0 rgba(255, 59, 92, 0.55);
}

/* ENDED / PASS — 종료/패스 */
.lounge-status--ended {
    color: rgba(255, 255, 255, 0.40);
    background: rgba(255, 255, 255, 0.06);
}

/* ===== 테스트 콜 페이지 (test_call.php) ===== */
.main-content.testcall-main {
    display: block;
    height: auto;
    min-height: calc(100vh - (50px + 42px));
    min-height: calc((var(--vh, 1vh) * 100) - (50px + 42px));
    padding: calc(50px + 42px + 12px) 16px 40px;
}

.testcall-desc {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    margin: 0 0 16px;
}

.testcall-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    max-height: 52vh;
    border-radius: 16px;
    overflow: hidden;
    background: #0c0c18;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0 auto 18px;
}

.testcall-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* 거울 모드 */
}

.testcall-preview-msg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}
.testcall-preview-msg[hidden] { display: none; }

.testcall-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.testcall-check {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(20, 20, 40, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.testcall-check-name {
    color: #ffffff;
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.testcall-check-state {
    margin-left: auto;
    font-family: 'Pretendard', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.testcall-check.is-ok .testcall-check-state { color: #37FBFF; }
.testcall-check.is-fail .testcall-check-state { color: #FF7A7A; }

/* 마이크 레벨 미터 */
.testcall-mic-meter {
    flex-basis: 100%;
    height: 6px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
}

.testcall-mic-level {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #4BB0FA 0%, #A763FF 100%);
    transition: width 0.08s linear;
}

/* 점검 완료 버튼 */
.testcall-done {
    display: flex;
    width: 100%;
    height: 52px;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 9999px;
    color: #ffffff;
    font-family: 'Inter', 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    background: radial-gradient(651.51% 138.83% at 12.5% 113.54%, #F95C9B 0%, #9C1FB5 25%, #6815D4 50%, #5A70F6 75%, #4BB0FA 100%);
    box-shadow: 0 0 10px 0 rgba(152, 99, 255, 0.6);
}

.testcall-done:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.testcall-hint {
    margin: 12px 0 0;
    text-align: center;
    color: #FF9A9A;
    font-size: 13px;
}
.testcall-hint[hidden] { display: none; }

/* ===== 팬 룸 — 아티스트 + 대기 순번 카드 (fan_room.php) ===== */
.room-artist-card {
    display: flex;
    width: 369px;
    max-width: 100%;
    margin: 0 auto;
    padding: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 16px;
    border: 1px solid var(--Disable, rgba(255, 255, 255, 0.20));
    background: rgba(0, 0, 0, 0.50);
}

.room-artist-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.room-artist-avatar {
    width: 56px;
    height: 56px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    border-radius: 120px;
    border: 1px solid var(--Disable_30, rgba(255, 255, 255, 0.30));
    object-fit: cover;
    background: lightgray 50% / cover no-repeat;
}

.room-artist-name {
    flex: 1;
    text-align: center;
    white-space: normal; /* 길면 말줄임 대신 줄바꿈 */
    overflow-wrap: break-word;
    word-break: break-word;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 27px */
    letter-spacing: -0.18px;
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.room-queue {
    display: flex;
    padding: 0 12px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    gap: 12px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.room-queue-label {
    display: flex;
    height: 56px;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    color: var(--gray_light, #EDEDED);
    font-family: 'Pretendard', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.06px;
}

.room-queue-count {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.room-queue-num {
    color: var(--white, #FFF);
    text-align: center;
    font-family: 'Roboto', 'Pretendard', sans-serif;
    font-size: 27px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.room-queue-unit {
    color: var(--Disable_30, rgba(255, 255, 255, 0.30));
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    line-height: 10px; /* 100% */
}

/* ===== 통화 시작(수신) 알럿 — image copy 15 ===== */
.modal-content.cheering-start {
    width: 360px; /* 이벤트 알럿(notification-popup--evstart)과 동일 폭 */
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.cheering-start .modal-body,
.cheering-start-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 24px 20px;
    border-radius: 24px;
    background: #ffffff;
}

/* 아이콘 + 제목 묶음 레이아웃 */
.cheering-start-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    align-self: stretch;
}

/* 이벤트 시작 알럿의 이벤트 제목(그라데이션, 여러 줄) — image copy 16 */
.cheering-start-event {
    align-self: stretch;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 150%; /* 27px */
    letter-spacing: -0.18px;
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    overflow-wrap: break-word;
    word-break: break-word;
}
.cheering-start-logo {
    width: 47px;
    height: 42px;
    aspect-ratio: 47 / 42;
    object-fit: contain;
}
.cheering-start-title {
    margin: 0;
    color: var(--Charcoal, #0A0E18);
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: normal;
    letter-spacing: -0.32px;
}
/* 이벤트명 줄 바로 뒤 안내문: 사이 여백(body gap 24px) 제거 */
.cheering-start-event + .cheering-start-sub {
    margin-top: -24px;
}
.cheering-start-sub {
    margin: 0;
    color: rgba(0, 0, 0, 0.70);
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px; /* 125% */
}
.cheering-start-name {
    font-weight: 700;
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.cheering-start-accept {
    display: flex;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%);
}
.cheering-start-accept:active {
    transform: scale(0.97);
}

/* ===== 공통 팝업 컴포넌트 DDPopup (js/dd-popup.js) =====
   cheering-start 룩을 그대로 옮겨온 통합 팝업. 수신/타임아웃/통화종료/
   이벤트시작 모달 + alert() 대체를 모두 이 스타일로 통일한다. */
.ddpop-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000; /* 토스트(99999)보다 낮게 — 토스트가 항상 최상단 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.ddpop-overlay.is-open {
    opacity: 1;
}
.ddpop-card {
    width: 360px;
    max-width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(8px) scale(0.98);
    transition: transform 0.2s ease;
}
.ddpop-overlay.is-open .ddpop-card {
    transform: none;
}
.ddpop-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    padding: 24px 20px;
    border-radius: 24px;
    background: #ffffff;
}
.ddpop-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    align-self: stretch;
}
.ddpop-logo {
    width: 47px;
    height: 42px;
    aspect-ratio: 47 / 42;
    object-fit: contain;
}
.ddpop-event {
    align-self: stretch;
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 150%;
    letter-spacing: -0.18px;
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    overflow-wrap: break-word;
    word-break: break-word;
}
.ddpop-title {
    margin: 0;
    color: var(--Charcoal, #0A0E18);
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: normal;
    letter-spacing: -0.32px;
}
.ddpop-sub {
    margin: 0;
    color: rgba(0, 0, 0, 0.70);
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    overflow-wrap: break-word;
    word-break: break-word;
}
.ddpop-hl {
    font-weight: 700;
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.ddpop-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
}
.ddpop-btn {
    font-family: 'Pretendard', sans-serif;
    cursor: pointer;
    border: none;
    transition: transform 0.1s ease;
}
.ddpop-btn:active {
    transform: scale(0.97);
}
.ddpop-btn--round {
    display: flex;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%);
}
.ddpop-btn--primary {
    flex: 1 1 0;
    padding: 14px 24px;
    border-radius: 9999px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(90deg, #FF9567 0%, #FF72C0 45.67%, #A763FF 100%);
}
.ddpop-btn--secondary {
    flex: 1 1 0;
    padding: 14px 24px;
    border-radius: 9999px;
    color: rgba(0, 0, 0, 0.60);
    font-size: 16px;
    font-weight: 700;
    background: #F1F1F4;
}

/* ===== 카메라 연결중/오류 플레이스홀더 (Hold on!) =====
   비디오 영역 위에 덮는 레이어. 화면별로 텍스트만 바꿔 재사용.
   표시할 때 JS에서 display: flex 로 전환 */
.camera-hold {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex: 1 0 0;
    align-self: stretch;
    background: var(--blueblack, #141428);
    z-index: 2; /* 비디오 위, 카메라 전환 버튼(z-index:5) 아래 */
}

/* 타이틀 (H3_strong) — 예: Hold on! */
.camera-hold-title {
    margin: 0;
    align-self: stretch;
    color: var(--primary, #37FBFF);
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
    letter-spacing: -0.32px;
}

/* 서브 문구 (H5_tab) — 예: Connecting camera... */
.camera-hold-sub {
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    align-self: stretch;
    color: var(--gray_light, #EDEDED);
    text-align: center;
    font-family: 'Pretendard', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px; /* 125% */
}

/* 대기 캐릭터 (connect_logo) — 배경 위에 작게 표시 */
.camera-hold-icon {
    width: 64px;
    height: auto;
    aspect-ratio: 81 / 92;
    object-fit: contain;
    margin-top: 10px;
}
