/* ===== 폰트 ===== */
@import url('https://fonts.googleapis.com/css2?family=Jua&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ===== 디자인 토큰 ===== */
:root {
  --bg-body:      #050810;
  --btn-green:    #6DFF96;
  --btn-sky:      #7CFCED;
  --btn-yellow:   #FFD157;
  --text-white:   #ffffff;
  --text-dim:     rgba(255,255,255,0.6);
  --text-faint:   rgba(255,255,255,0.32);
  --neon-cyan:    rgba(0,229,255,0.55);
  --neon-glow:    0 0 10px rgba(0,229,255,0.3), 0 0 25px rgba(0,229,255,0.1);
  --neon-glow-lg: 0 0 12px rgba(0,229,255,0.25), 0 0 30px rgba(0,229,255,0.1);
  --cell-bg:      rgba(5,8,16,0.78);
  --nav-h:        65px;
  --top-h:        52px;
  --font-hand:    'Jua', sans-serif;
  --font-label:   'Space Grotesk', sans-serif;
}

/* ===== 리셋 ===== */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html, body {
  min-height: 100%;
  overscroll-behavior: none;
}
body {
  background: transparent;
  color: var(--text-white);
  font-family: var(--font-hand);
  min-height: 100vh;
  overscroll-behavior: none;
}
#bg-fixed {
  position: fixed;
  inset: 0;
  background-image: url('../back.JPG');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  z-index: 0;
}
#app {
  position: relative;
  z-index: 1;
}

@keyframes musicThumbOrbitZoom {
  0%, 18% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  30% {
    transform: scale(0.92) translate3d(-2.5%, 0, 0);
  }
  46% {
    transform: scale(0.88) translate3d(2.5%, 0, 0);
  }
  62% {
    transform: scale(0.84) translate3d(0, 2.5%, 0);
  }
  78% {
    transform: scale(0.88) translate3d(-2.5%, 0, 0);
  }
  100% {
    transform: scale(1) translate3d(0, 0, 0);
  }
}

/* ===== 앱 컨테이너 ===== */
#app {
  max-width: 768px;
  margin: 0 auto;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background: transparent;
}

/* ===== 페이지 공통 ===== */
.page {
  display: none;
  min-height: 100vh;
  padding-bottom: var(--nav-h);
  position: relative;
}
.page.active { display: flex; flex-direction: column; }
.hidden { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================ */
/* === 고정 하단 네비게이션 (전역)             */
/* ============================================ */
.bottom-nav-fixed {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 768px;
  height: var(--nav-h);
  background: var(--bg-body);
  border-top: 1px solid rgba(0,229,255,0.3);
  display: flex;
  align-items: center;
  z-index: 200;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: all 0.18s;
}
.nav-icon-wrap {
  font-size: 22px;
  opacity: 0.9;
  transition: opacity 0.18s, transform 0.15s;
}
.nav-label {
  font-family: var(--font-hand);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  transition: color 0.18s;
}
.nav-item.active .nav-icon-wrap { opacity: 1; transform: scale(1.15); }
.nav-item.active .nav-label { color: var(--btn-sky); }
.nav-item.nav-locked .nav-icon-wrap { opacity: 0.5; }
.nav-item.nav-locked .nav-label { color: rgba(255,255,255,0.5); }
.nav-item.nav-locked {
  cursor: not-allowed;
}
.nav-item.nav-locked::after {
  content: '🔒';
  position: absolute;
  top: 5px;
  right: calc(50% - 18px);
  font-size: 9px;
  opacity: 0.55;
}
.nav-item:active .nav-icon-wrap {
  transform: scale(0.85);
  opacity: 1;
}
.nav-item:active .nav-label {
  color: var(--btn-sky);
}

/* ============================================ */
/* === 서브 페이지 공통 상단 바 ================ */
/* ============================================ */
.sub-top-bar {
  height: var(--top-h);
  background: rgba(5,8,16,0.9);
  border-bottom: 1px solid rgba(0,229,255,0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  flex-shrink: 0;
  z-index: 10;
}
.sub-page-title {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--text-white);
  letter-spacing: 0.5px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.btn-back {
  font-family: var(--font-hand);
  font-size: 17px;
  background: none;
  border: none;
  color: var(--btn-sky);
  cursor: pointer;
  padding: 4px 0;
  min-width: 64px;
  z-index: 2;
}
.btn-next {
  font-family: var(--font-hand);
  font-size: 17px;
  background: none;
  border: none;
  color: var(--btn-sky);
  cursor: pointer;
  padding: 4px 0;
  min-width: 64px;
  text-align: right;
  z-index: 2;
}

/* ============================================ */
/* === 메인 홈 ================================= */
#page-home {
}
/* ============================================ */

/* 최상단 헤더 */
.top-header {
  position: relative;
  z-index: 20;
  pointer-events: auto;
  background: rgba(5,8,16,0.92);
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 14px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(0,229,255,0.2);
}
.btn-header {
  font-family: var(--font-hand);
  font-size: 22px;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1.5px solid;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-login    { border-color: var(--btn-sky);   color: var(--btn-sky); }
.btn-admin    { border-color: var(--btn-green);  color: var(--btn-green); }
.btn-withdraw { border-color: rgba(255,77,109,0.7); color: rgba(255,77,109,0.9); font-size: 13px; }
.btn-login:hover    { background: rgba(124,252,237,0.12); }
.btn-admin:hover    { background: rgba(109,255,150,0.12); }
.btn-withdraw:hover { background: rgba(255,77,109,0.12); }

/* 타이틀 바 */
.home-title-bar {
  position: relative;
  z-index: 10;
  background: rgba(5,8,16,0.92);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  flex-shrink: 0;
}
.home-title {
  font-family: var(--font-hand);
  font-size: 32px;
  font-weight: 400;
  color: var(--text-white);
  letter-spacing: 0.5px;
  line-height: 1;
}

/* 메인 콘텐츠 영역 */
.home-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* 4-그리드 */
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
  padding: 5px;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* 개별 패널 공통 */
.grid-panel {
  background: rgba(5,8,16,0.72);
  border: 1px solid rgba(0,229,255,0.55);
  box-shadow: var(--neon-glow);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 7px;
  backdrop-filter: blur(4px);
  min-height: 0;
  min-width: 0;
}
.panel-title {
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--btn-sky);
  margin-bottom: 5px;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}
.title-dl { font-size: 14px; opacity: 0.7; }

/* 이미지 플레이스홀더 */
.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-faint);
  font-family: var(--font-hand);
  font-size: 16px;
  pointer-events: none;
}

/* === A: 오늘의 픽 === */
.panel-pick {
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.panel-pick:active { opacity: 0.85; }
.panel-pick .panel-title {
  position: absolute;
  top: 7px;
  left: 9px;
  z-index: 2;
  margin: 0;
  background: rgba(5,8,16,0.55);
  padding: 2px 7px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
}
.pic-img-wrap {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.35);
}
.pic-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* === 구독 패널 === */
.sub-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
}
.sub-preview-text {
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--text-white);
  line-height: 1.4;
}
.sub-desc-text {
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  flex: 1;
}
.sub-btn {
  padding: 7px 4px;
  border: 1.5px solid;
  border-radius: 8px;
  font-family: var(--font-hand);
  font-size: 13px;
  background: transparent;
  cursor: pointer;
  width: 100%;
  transition: opacity 0.18s;
}
.sub-btn:active { opacity: 0.75; }
.sub-btn-sky   { border-color: var(--btn-sky);   color: var(--btn-sky); }
.sub-btn-green { border-color: var(--btn-green);  color: var(--btn-green); }

/* === B: 오늘의 음악 === */
.music-vid-wrap {
  position: relative;
  background: rgba(0,0,0,0.5);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  border: 1px solid rgba(0,229,255,0.3);
}
.music-vid-wrap video,
.music-vid-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.vid-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--text-faint);
}
.free-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 2px 7px;
  border-radius: 10px;
  font-family: var(--font-label);
  font-size: 9px;
  font-weight: 700;
  background: rgba(109,255,150,0.8);
  color: #050810;
  z-index: 2;
}

/* 미니 컨트롤 */
.mini-controls {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 4px 0;
  flex-shrink: 0;
}
.mini-btn {
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 13px;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.mini-btn:hover { background: rgba(0,229,255,0.18); }
.mini-btn.mini-play {
  background: rgba(109,255,150,0.18);
  color: var(--btn-green);
  border-color: var(--btn-green);
}

/* C: 가사 스크롤 */
.lyrics-box {
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(0,229,255,0.18);
  min-height: 0;
}
.lyrics-inner {
  padding: 5px 7px;
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.lyrics-inner::-webkit-scrollbar { display: none; }
.lyrics-line {
  font-family: var(--font-hand);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  text-align: center;
}

/* === D: 오늘의 만화 === */
.comic-scroll-wrap {
  flex: 1;
  overflow-y: auto;
  border-radius: 6px;
  position: relative;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,229,255,0.3);
  cursor: pointer;
  min-height: 0;
}
.comic-scroll-wrap::-webkit-scrollbar { width: 2px; }
.comic-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(0,229,255,0.3);
  border-radius: 2px;
}
.comic-scroll-wrap img { width: 100%; display: none; }
.comic-ph { position: absolute; inset: 0; }

/* ============================================ */
/* === 구독혜택 페이지 ========================= */
/* ============================================ */
.benefits-wrap {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.benefits-card {
  background: rgba(5,8,16,0.78);
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.benefits-card-highlight {
  border-color: var(--btn-sky);
  box-shadow: 0 0 14px rgba(124,252,237,0.25);
}
.benefits-card-special {
  border-color: var(--btn-yellow);
  box-shadow: 0 0 14px rgba(255,209,87,0.2);
}
.benefits-card-title {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--text-white);
}
.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.benefits-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--text-white);
}
.benefit-icon { font-size: 20px; }
.benefits-desc {
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ============================================ */
/* === 오늘의 픽 상세 페이지 =================== */
/* ============================================ */
#page-today-pick { }

.pick-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  gap: 20px;
}
.pick-img-container {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow-lg);
  background: rgba(0,0,0,0.4);
}
.pick-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pick-download-area {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pick-download-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 44px;
  background: rgba(5,8,16,0.85);
  border: 1.5px solid var(--btn-green);
  box-shadow: 0 0 14px rgba(109,255,150,0.25);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.pick-download-btn:hover {
  background: rgba(109,255,150,0.12);
  transform: translateY(-2px);
}
.pick-download-icon { font-size: 34px; line-height: 1; }
.pick-download-label {
  display: block;
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--btn-green);
  letter-spacing: 1px;
  text-align: center;
  line-height: 1.5;
}

/* ============================================ */
/* === 로그인 ================================== */
/* ============================================ */
#page-login { }
.password-help-btn {
  font-size: 14px;
  color: var(--btn-yellow);
  border-color: rgba(255,209,87,0.55);
}
.password-reset-panel {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(124,252,237,0.24);
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
}
.password-reset-panel p {
  margin: 0 0 10px;
  color: rgba(255,255,255,0.78);
  font-family: var(--font-hand);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
.password-reset-panel .input-field {
  margin-bottom: 8px;
}

.form-wrap {
  flex: 1;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.form-logo {
  text-align: center;
  margin-bottom: 14px;
}
.form-logo-img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow);
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  background: rgba(5,8,16,0.6);
}
.form-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow);
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,8,16,0.6);
  font-size: 36px;
}
.form-logo h2 {
  font-family: var(--font-hand);
  font-size: 26px;
  color: var(--btn-sky);
  letter-spacing: 0.5px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  background: rgba(5,8,16,0.7);
  border: 1px solid var(--neon-cyan);
  border-radius: 10px;
  color: var(--text-white);
  font-family: var(--font-hand);
  font-size: 18px;
  outline: none;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.input-field:focus {
  border-color: var(--btn-sky);
  box-shadow: 0 0 8px rgba(124,252,237,0.25);
}
.input-field::placeholder { color: var(--text-faint); }

textarea.input-field { resize: none; }

.form-divider {
  display: flex;
  align-items: center;
  gap: 10px;
}
.form-divider hr { flex: 1; border: none; height: 1px; background: rgba(0,229,255,0.2); }
.form-divider span { font-family: var(--font-hand); font-size: 14px; color: var(--text-dim); }

/* 공통 버튼 */
.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-family: var(--font-hand);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: rgba(5,8,16,0.7);
  border: 1.5px solid var(--btn-sky);
  color: var(--btn-sky);
  box-shadow: 0 0 10px rgba(124,252,237,0.2);
}
.btn-primary:hover { background: rgba(124,252,237,0.12); box-shadow: 0 0 16px rgba(124,252,237,0.35); }
.btn-green-solid {
  background: rgba(109,255,150,0.15);
  border: 1.5px solid var(--btn-green);
  color: var(--btn-green);
  box-shadow: 0 0 10px rgba(109,255,150,0.2);
}
.btn-green-solid:hover { background: rgba(109,255,150,0.25); }
.btn-yellow-solid {
  background: linear-gradient(135deg, rgba(255,209,87,0.35), rgba(255,160,30,0.25));
  border: 2px solid var(--btn-yellow);
  color: #ffe066;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  box-shadow: 0 0 18px rgba(255,209,87,0.5), 0 0 6px rgba(255,209,87,0.3);
  text-shadow: 0 0 8px rgba(255,209,87,0.6);
  animation: btn-pulse-gold 2s ease-in-out infinite;
}
.btn-yellow-solid:hover {
  background: linear-gradient(135deg, rgba(255,209,87,0.55), rgba(255,160,30,0.45));
  box-shadow: 0 0 28px rgba(255,209,87,0.8);
  animation: none;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--neon-cyan);
  color: var(--btn-sky);
}
.btn-outline:hover { background: rgba(0,229,255,0.08); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim);
}
.btn-ghost:hover { color: var(--text-white); }
.btn-gold {
  background: rgba(255,209,87,0.15);
  border: 1.5px solid var(--btn-yellow);
  color: var(--btn-yellow);
}

/* ============================================ */
/* === 이메일 가입 이벤트 팝업 ================== */
/* ============================================ */
.event-popup {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 8px calc(18px + env(safe-area-inset-bottom, 0px));
  background: rgba(5,8,16,0.76);
  backdrop-filter: blur(12px);
}
.event-popup.hidden { display: none !important; }
.signup-success-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5,8,16,0.72);
  backdrop-filter: blur(10px);
}
.signup-success-modal.hidden { display: none !important; }
.signup-success-card {
  position: relative;
  width: min(100%, 360px);
  padding: 28px 22px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255,209,87,0.65);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,209,87,0.26), transparent 44%),
    linear-gradient(180deg, rgba(28,22,30,0.98), rgba(8,11,20,0.98));
  box-shadow: 0 22px 70px rgba(0,0,0,0.58), 0 0 28px rgba(255,209,87,0.2);
  text-align: center;
  animation: event-pop-in 0.24s ease-out;
}
.signup-success-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.76);
  font-size: 20px;
  cursor: pointer;
}
.signup-success-emoji {
  font-size: 42px;
  margin-bottom: 8px;
}
.signup-success-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-hand);
  font-size: 28px;
  line-height: 1.2;
}
.signup-success-copy {
  margin: 12px auto 18px;
  color: rgba(255,255,255,0.78);
  font-family: var(--font-hand);
  font-size: 16px;
  line-height: 1.55;
  word-break: keep-all;
}
.signup-success-cta {
  width: 100%;
  font-size: 18px;
}
.event-popup-card {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100vh - 34px - env(safe-area-inset-bottom, 0px));
  max-height: calc(100dvh - 34px - env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 18px 0;
  border-radius: 22px;
  border: 1px solid rgba(255,226,168,0.72);
  background:
    radial-gradient(circle at 18% 6%, rgba(255,226,168,0.28), transparent 34%),
    linear-gradient(180deg, rgba(36,25,26,0.98), rgba(9,12,20,0.98));
  box-shadow: 0 22px 70px rgba(0,0,0,0.62), 0 0 34px rgba(255,209,87,0.22);
  text-align: center;
  animation: event-pop-in 0.24s ease-out;
}
.event-popup-card::before,
.event-popup-card::after {
  content: "◆";
  position: absolute;
  top: 14px;
  color: rgba(255,209,87,0.7);
  font-size: 12px;
}
.event-popup-card::before { left: 16px; }
.event-popup-card::after { right: 16px; }
.event-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.76);
  font-family: var(--font-label);
  font-size: 20px;
  cursor: pointer;
}
.event-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0 auto 10px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
}
.event-lang-toggle button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.58);
  font-family: var(--font-hand);
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
}
.event-lang-toggle button.active {
  background: rgba(124,252,237,0.18);
  color: var(--btn-sky);
}
.event-popup-visual {
  position: relative;
  margin: 2px 0 14px;
  height: 150px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,226,168,0.4);
  background: rgba(255,255,255,0.05);
  box-shadow: inset 0 -42px 54px rgba(0,0,0,0.42);
}
.event-popup-visual::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(9,12,20,0.78));
}
.event-popup-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.event-popup-kicker {
  width: fit-content;
  max-width: calc(100% - 54px);
  margin: 0 auto 10px;
  padding: 5px 12px;
  border: 1px solid rgba(124,252,237,0.36);
  border-radius: 999px;
  color: var(--btn-sky);
  font-family: var(--font-hand);
  font-size: 13px;
  line-height: 1.35;
}
.event-popup-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-hand);
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: 0;
  word-break: keep-all;
}
.event-popup-prize {
  margin-top: 10px;
  color: var(--btn-yellow);
  font-family: var(--font-hand);
  font-size: 23px;
  line-height: 1.25;
  text-shadow: 0 0 14px rgba(255,209,87,0.36);
  word-break: keep-all;
}
.event-popup-copy {
  margin: 12px auto 0;
  max-width: 340px;
  color: rgba(255,255,255,0.78);
  font-family: var(--font-hand);
  font-size: 16px;
  line-height: 1.55;
  word-break: keep-all;
}
.event-popup-points {
  display: grid;
  gap: 7px;
  margin: 14px auto 0;
  padding: 0;
  max-width: 340px;
  list-style: none;
  text-align: left;
}
.event-popup-points li {
  position: relative;
  padding: 8px 11px 8px 30px;
  border: 1px solid rgba(255,226,168,0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.86);
  font-family: var(--font-hand);
  font-size: 15px;
  line-height: 1.35;
  word-break: keep-all;
}
.event-popup-points li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--btn-yellow);
  box-shadow: 0 0 12px rgba(255,209,87,0.55);
  transform: translateY(-50%);
}
.event-popup-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px auto 0;
  max-width: 310px;
}
.event-popup-input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid rgba(124,252,237,0.42);
  background: rgba(5,8,16,0.74);
  color: var(--text-white);
  font-family: var(--font-hand);
  font-size: 16px;
  outline: none;
}
.event-popup-input:focus {
  border-color: var(--btn-sky);
  box-shadow: 0 0 10px rgba(124,252,237,0.22);
}
.event-popup-input::placeholder {
  color: rgba(255,255,255,0.36);
}
.event-popup-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin: 14px 0 15px;
}
.event-popup-badges span {
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  font-family: var(--font-hand);
  font-size: 13px;
  white-space: nowrap;
}
.event-popup-cta {
  margin-top: 2px;
  font-size: 18px;
}
.event-popup-hero-cta {
  width: 100%;
  margin: 12px auto 8px;
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 22px;
  box-shadow: 0 0 0 rgba(255,209,87,0.35), 0 0 24px rgba(255,209,87,0.32);
  animation: signupCtaPulse 1.35s ease-in-out infinite;
}
.event-popup-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin: 12px -18px 0;
  padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px));
  background:
    linear-gradient(180deg, rgba(9,12,20,0), rgba(9,12,20,0.96) 18%),
    rgba(9,12,20,0.96);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.event-popup-close-btn {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 11px 16px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  font-family: var(--font-hand);
  font-size: 17px;
  cursor: pointer;
}
.event-popup-close-btn:hover {
  background: rgba(255,255,255,0.14);
}
.event-popup-later {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.54);
  font-family: var(--font-hand);
  font-size: 15px;
  cursor: pointer;
}
@keyframes event-pop-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes signupCtaPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255,209,87,0.35), 0 0 18px rgba(255,209,87,0.28);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 0 0 8px rgba(255,209,87,0), 0 0 32px rgba(255,209,87,0.5);
  }
}
@media (max-width: 420px) {
  .event-popup {
    padding-top: 6px;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }
  .event-popup-card {
    max-height: calc(100dvh - 44px - env(safe-area-inset-bottom, 0px));
    padding: 10px 14px 0;
  }
  .event-lang-toggle { margin-bottom: 6px; }
  .event-popup-visual { height: 86px; margin-bottom: 8px; }
  .event-popup-kicker { margin-bottom: 8px; font-size: 12px; }
  .event-popup-title { font-size: 20px; }
  .event-popup-hero-cta { font-size: 17px; padding-top: 11px; padding-bottom: 11px; margin-top: 8px; }
  .event-popup-prize { font-size: 18px; margin-top: 6px; }
  .event-popup-copy { font-size: 13px; line-height: 1.35; margin-top: 7px; }
  .event-popup-points { gap: 4px; margin-top: 8px; }
  .event-popup-points li { font-size: 12px; padding-top: 5px; padding-bottom: 5px; }
  .event-popup-badges { margin: 8px 0 6px; }
  .event-popup-badges span { font-size: 12px; padding: 4px 8px; }
  .event-popup-actions {
    margin-left: -14px;
    margin-right: -14px;
    padding: 7px 14px calc(30px + env(safe-area-inset-bottom, 0px));
  }
  .event-popup-cta { font-size: 15px; padding-top: 9px; padding-bottom: 9px; }
  .event-popup-close-btn { padding: 8px 14px; font-size: 15px; margin-top: 7px; }
  .event-popup-later { margin-top: 6px; font-size: 13px; padding-bottom: 4px; }
}

.philosophy-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.philosophy-panel-head .prem-section-label {
  min-width: 0;
}
.philosophy-signup-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(255,209,87,0.7);
  border-radius: 999px;
  background: rgba(255,209,87,0.22);
  color: #ffe27a;
  font-family: var(--font-hand);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  padding: 9px 14px;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255,209,87,0.3);
  animation: signupCtaPulse 1.45s ease-in-out infinite;
}
.philosophy-signup-btn:hover {
  background: rgba(255,209,87,0.24);
}

/* ============================================ */
/* === 관리자 인증 ============================= */
/* ============================================ */
#page-admin-verify {
  background: transparent;
}
.verify-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 24px;
}
.verify-title {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--text-white);
}
.hack-text {
  font-family: var(--font-label);
  font-size: 14px;
  color: var(--btn-green);
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(0,229,255,0.3);
  box-shadow: var(--neon-glow);
  border-radius: 10px;
  padding: 16px;
  width: 100%;
  line-height: 2;
  text-align: left;
}
.spin-circle {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(0,229,255,0.15);
  border-top-color: var(--btn-sky);
  border-radius: 50%;
  animation: spin-anim 0.9s linear infinite;
}
@keyframes spin-anim { to { transform: rotate(360deg); } }

/* ============================================ */
/* === 구독 플랜 ================================ */
/* ============================================ */
#page-plans { }

.plans-wrap {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.plans-top-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.plans-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.plan-card {
  background: rgba(5,8,16,0.78);
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-card:hover { background: rgba(0,229,255,0.06); transform: translateY(-2px); }
.plan-card-featured { border-color: var(--btn-sky); box-shadow: 0 0 14px rgba(124,252,237,0.25); }
.plan-card-gold { border-color: var(--btn-yellow); box-shadow: 0 0 14px rgba(255,209,87,0.2); }
.plan-image-bg {
  border-radius: 14px;
  overflow: hidden;
  background-image: url('../back.JPG');
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 120px;
}
.plan-image-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5,8,16,0.65);
}
.plan-name {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--text-white);
}
.plan-price {
  font-family: var(--font-hand);
  font-size: 24px;
  color: var(--btn-sky);
}
.plan-period { font-size: 14px; color: var(--text-dim); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.plan-features li {
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--text-dim);
}
.plan-features li::before { content: '✓  '; color: var(--btn-green); }
.badge-best {
  position: absolute; top: 10px; right: 10px;
  font-family: var(--font-label); font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px;
  background: rgba(255,209,87,0.15); color: var(--btn-yellow);
  border: 1px solid rgba(255,209,87,0.4);
}
@keyframes btn-pulse-sky {
  0%, 100% { box-shadow: 0 0 6px rgba(124,252,237,0.4), 0 0 0 0 rgba(124,252,237,0.3); }
  50% { box-shadow: 0 0 14px rgba(124,252,237,0.7), 0 0 10px 4px rgba(124,252,237,0.15); }
}
@keyframes btn-pulse-gold {
  0%, 100% { box-shadow: 0 0 6px rgba(255,209,87,0.4), 0 0 0 0 rgba(255,209,87,0.3); }
  50% { box-shadow: 0 0 14px rgba(255,209,87,0.7), 0 0 10px 4px rgba(255,209,87,0.15); }
}
.btn-select {
  font-family: var(--font-hand);
  font-size: 16px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--btn-sky);
  background: transparent;
  color: var(--btn-sky);
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  width: 100%;
  margin-top: auto;
  animation: btn-pulse-sky 2s ease-in-out infinite;
}
.btn-select:hover {
  background: rgba(124,252,237,0.18);
  transform: scale(1.04);
  animation: none;
  box-shadow: 0 0 18px rgba(124,252,237,0.6);
}
.btn-select-gold {
  border-color: var(--btn-yellow);
  color: var(--btn-yellow);
  animation: btn-pulse-gold 2s ease-in-out infinite;
}
.btn-select-gold:hover {
  background: rgba(255,209,87,0.18);
  animation: none;
  box-shadow: 0 0 18px rgba(255,209,87,0.6);
}
.plans-cta {
  font-family: var(--font-hand);
  font-size: 18px;
  padding: 13px;
  border-radius: 12px;
  border: 1.5px solid var(--btn-sky);
  background: rgba(5,8,16,0.7);
  color: var(--btn-sky);
  cursor: pointer;
  width: 100%;
  box-shadow: 0 0 12px rgba(124,252,237,0.2);
  transition: all 0.18s;
}
.plans-cta:hover { background: rgba(124,252,237,0.1); }
.plans-login-link {
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--text-dim);
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}

/* ============================================ */
/* === 결제 ==================================== */
/* ============================================ */
#page-payment { }

.payment-wrap {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}
.payment-summary {
  background: rgba(5,8,16,0.8);
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.plan-label-sm {
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.payment-amount {
  font-family: var(--font-hand);
  font-size: 38px;
  color: var(--btn-sky);
}
.pay-methods-title {
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--text-dim);
  padding: 0 2px;
}
.payment-methods { display: flex; flex-direction: column; gap: 8px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(5,8,16,0.7);
  border: 1px solid var(--neon-cyan);
  border-radius: 12px;
  padding: 13px 16px;
  cursor: pointer;
  transition: all 0.18s;
}
.pay-method:hover { background: rgba(0,229,255,0.06); }
.pay-method.selected {
  border-color: var(--btn-sky);
  background: rgba(124,252,237,0.08);
  box-shadow: 0 0 10px rgba(124,252,237,0.2);
}
.pay-icon { font-size: 22px; }
.pay-name {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--text-white);
  flex: 1;
}
.pay-method input[type=radio] { accent-color: var(--btn-sky); }
.payment-note {
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--text-faint);
  text-align: center;
}

/* ============================================ */
/* === 환영 ==================================== */
/* ============================================ */
#page-welcome { }

.welcome-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  gap: 20px;
}
.welcome-title {
  font-family: var(--font-hand);
  font-size: 44px;
  color: var(--text-white);
  line-height: 1.2;
  font-weight: 400;
}
.welcome-name {
  font-family: var(--font-hand);
  font-size: 36px;
  color: var(--text-white);
  line-height: 1.2;
}
.welcome-mascot {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow-lg);
  background: rgba(5,8,16,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.welcome-sub {
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============================================ */
/* === 프리미엄 ================================ */
/* ============================================ */
#page-premium { }

.premium-wrap {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
.home-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.premium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  align-content: start;
}
.premium-col {
  display: contents;
}
.prem-section {
  background: rgba(5,8,16,0.78);
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
}
.prem-section-label {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--btn-sky);
}
.home-panel-title {
  font-family: var(--font-hand);
  font-size: clamp(22px, 5.8vw, 29px);
  line-height: 1.25;
  color: #fff;
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}
.home-pick-title {
  font-family: var(--font-hand);
  font-size: clamp(16px, 4vw, 22px);
  line-height: 1.25;
  color: rgba(255,255,255,0.92);
  text-align: center;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.home-clip-frame,
.home-asmr-frame {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0,229,255,0.3);
  background: rgba(0,0,0,0.48);
}
.home-clip-frame {
  aspect-ratio: 16/9;
}
.home-asmr-frame {
  aspect-ratio: 1/1;
  max-width: 520px;
  margin: 0 auto;
  touch-action: pan-y;
}
.home-clip-frame video,
.home-clip-frame img,
.home-asmr-frame video,
.home-asmr-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-media-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.42);
  font-family: var(--font-hand);
  font-size: 15px;
  background: rgba(0,0,0,0.28);
}
.home-asmr-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.home-study-btn {
  width: 100%;
  margin-top: 0;
}
.home-lyrics-hidden {
  display: none;
}

/* ===== Today's English (오늘의 영어) ===== */
.today-english-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 8px;
}
.te-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(0,229,255,0.22);
  border-radius: 10px;
  padding: 16px 10px;
}
.te-word {
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  word-break: break-word;
  line-height: 1.15;
  cursor: pointer;
}
.te-word::after {
  content: " 🔊";
  font-size: 0.55em;
  vertical-align: middle;
  opacity: 0.85;
}
.te-word:active { opacity: 0.7; }
.te-hint {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,255,255,0.72);
  font-style: italic;
  word-break: break-word;
}
.te-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.te-input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid rgba(0,229,255,0.35);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 15px;
}
.te-input::placeholder { color: rgba(255,255,255,0.4); }
.te-input:disabled { opacity: 0.75; }
.te-submit {
  padding: 9px 12px;
  border: none;
  border-radius: 9px;
  background: var(--btn-sky);
  color: #04121a;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.te-submit:disabled { opacity: 0.55; cursor: default; }
.te-feedback {
  min-height: 18px;
  font-size: 13px;
  text-align: center;
}
.te-feedback.ok { color: #39ff88; }
.te-feedback.bad { color: #ff6b6b; }
.te-game-btn {
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(247,37,133,0.7);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(247,37,133,0.25), rgba(76,201,240,0.18));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.te-game-btn:hover { background: linear-gradient(135deg, rgba(247,37,133,0.4), rgba(76,201,240,0.3)); }
.premium-col > .today-english-section .today-english-grid {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 4px;
}
.premium-col > .today-english-section .te-left {
  min-height: 92px;
  padding: 12px 10px;
}
.premium-col > .today-english-section .te-word {
  font-size: 26px;
}
.english-game-frame {
  width: 100%;
  height: calc(100vh - var(--top-h));
  height: calc(100dvh - var(--top-h));
  border: 0;
  display: block;
  background: #0b1026;
}
@keyframes tePop {
  0% { transform: scale(0.5); opacity: 0; }
  55% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.te-celebrate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  pointer-events: none;
  z-index: 9998;
  animation: tePop 0.6s ease;
}
@media (max-width: 520px) {
  .today-english-grid { grid-template-columns: 1fr; }
  .te-word { font-size: 26px; }
}

/* ===== 오답노트 복습 미니팝업 ===== */
.te-review-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.te-rev-card {
  position: relative;
  background: #141a2e;
  border: 1px solid rgba(0,229,255,0.4);
  border-radius: 16px;
  padding: 24px 18px 18px;
  width: 100%;
  max-width: 360px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  text-align: center;
}
.te-rev-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.te-rev-head {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.te-rev-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  margin-bottom: 14px;
}
.te-rev-celebrate {
  font-size: 56px;
  animation: tePop 0.6s ease;
}
.te-rev-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.te-rev-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: 10px;
  padding: 10px 12px;
}
.te-rev-word {
  font-size: 19px;
  font-weight: 800;
  color: #4cc9f0;
  cursor: pointer;
}
.te-rev-mean {
  font-size: 14px;
  color: #fff;
  margin-top: 3px;
}
.te-rev-ex {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  margin-top: 6px;
  cursor: pointer;
  font-style: italic;
}
.te-rev-exko {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.te-rev-ok {
  margin-top: 16px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 9px;
  background: var(--btn-sky);
  color: #04121a;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.prem-pick-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0,229,255,0.3);
  background: rgba(0,0,0,0.4);
  display: block;
}
.prem-pick-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 8px;
  border: 1px dashed rgba(0,229,255,0.3);
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 14px;
}
.prem-music-vid {
  width: 100%;
  margin: 0 auto;
  display: block;
  aspect-ratio: 1/1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(0,229,255,0.3);
  background: rgba(0,0,0,0.4);
  display: block;
}
#homeMusicVid {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
}
.prem-music-title {
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--text-white);
  text-align: center;
}
.prem-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.prem-ctrl-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-dim);
  padding: 2px;
  transition: color 0.18s;
}
.prem-ctrl-btn:hover { color: var(--text-white); }
.prem-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(5,8,16,0.7);
  border: 1.5px solid var(--btn-sky);
  color: var(--btn-sky);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.prem-progress {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  cursor: pointer;
}
.home-asmr-section .prem-progress {
  display: none;
}
.prem-progress-fill {
  height: 100%;
  background: var(--btn-sky);
  border-radius: 2px;
  width: 0%;
}
.prem-lyrics {
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  flex: 1 1 0;
  min-height: 50px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  line-height: 1.8;
}
.prem-lyrics::-webkit-scrollbar { display: none; }
.lyrics-scroll-btns {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 2px 0;
}
.lyrics-scroll-btn {
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 4px;
  color: var(--btn-sky);
  font-size: 10px;
  cursor: pointer;
  padding: 2px 10px;
  line-height: 1;
  transition: background 0.15s;
}
.lyrics-scroll-btn:hover { background: rgba(0,229,255,0.2); }

.home-philosophy-section {
  aspect-ratio: auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
  justify-content: flex-start;
}
.home-philosophy-quote {
  width: 100%;
  flex: 0 0 auto;
  min-height: 0;
  font-family: var(--font-hand);
  font-size: clamp(22px, 5.8vw, 29px);
  font-weight: 800;
  line-height: 1.32;
  text-align: center;
  color: var(--text-white);
  background: rgba(0,0,0,0.72);
  border-left: 3px solid var(--btn-yellow);
  border-radius: 6px;
  padding: 10px 9px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: keep-all;
  text-wrap: balance;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-clip-section .home-philosophy-quote {
  font-size: clamp(22px, 5.8vw, 29px);
  line-height: 1.28;
  padding: 12px 10px;
}
.philosophy-arrow-cue {
  width: 100%;
  display: inline-flex; /* 위치 고정, 밝기만 천천히 변하는 시선유도 (사장님 선택) */
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--btn-yellow);
  line-height: 1;
  filter: drop-shadow(0 0 10px rgba(255,224,102,0.65));
  animation: philosophyArrowFlash 2.4s ease-in-out infinite;
}
.philosophy-arrow-symbol {
  display: inline-block;
  font-size: 26px;
  font-weight: 900;
  transform: scaleX(1.75) scaleY(0.72);
  text-shadow: 0 0 1px currentColor, 0 0 10px rgba(255,224,102,0.72);
}
.philosophy-arrow-label {
  font-family: var(--font-hand);
  font-size: 18px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
}
@keyframes philosophyArrowFlash {
  /* 위치 고정 — 밝기(opacity)만 천천히 변함. 위아래 움직임(translateY·scale) 제거. */
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}
.home-philosophy-story {
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  font-family: var(--font-hand);
  font-size: clamp(12px, 2vw, 15px);
  line-height: 1.45;
  text-align: left;
  color: rgba(255,255,255,0.78);
  background: rgba(0,0,0,0.42);
  border-radius: 6px;
  padding: 7px 8px;
  white-space: pre-wrap;
}
.home-philosophy-story p {
  margin: 0 0 6px;
}
.home-philosophy-story p:last-child {
  margin-bottom: 0;
}
.home-philosophy-quote::-webkit-scrollbar,
.home-philosophy-story::-webkit-scrollbar {
  width: 4px;
}
.home-philosophy-quote::-webkit-scrollbar-thumb,
.home-philosophy-story::-webkit-scrollbar-thumb {
  background: rgba(0,229,255,0.35);
  border-radius: 99px;
}

@media (max-width: 899px) {
  .premium-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }
  .premium-wrap {
    padding: 8px;
  }
  .prem-section {
    padding: 8px;
    gap: 6px;
  }
  .prem-section-label,
  .prem-comic-label {
    font-size: 12px;
  }
  .premium-col > .today-english-section .te-left {
    min-height: 76px;
    padding: 9px 7px;
  }
  .premium-col > .today-english-section .te-word {
    font-size: 21px;
  }
  .te-hint {
    font-size: 11px;
    line-height: 1.28;
  }
  .te-input,
  .te-submit,
  .te-game-btn {
    font-size: 12px;
    padding: 8px 9px;
  }
  .te-feedback {
    font-size: 11px;
    min-height: 15px;
  }
  .prem-lyrics {
    font-size: 11px;
    line-height: 1.45;
    min-height: 38px;
  }
  .home-philosophy-section {
    height: auto;
    min-height: 0;
  }
  .home-philosophy-quote {
    font-size: clamp(22px, 6vw, 28px);
    padding: 10px 8px;
  }
  .home-clip-section .home-philosophy-quote {
    font-size: clamp(22px, 5.8vw, 29px);
    line-height: 1.26;
    padding: 11px 8px;
  }
  .home-philosophy-story {
    min-height: 0;
    max-height: none;
    font-size: clamp(11px, 3vw, 13px);
    line-height: 1.36;
    padding: 7px;
  }
}

/* ============================================ */
/* === 철학 상세 페이지 ======================== */
/* ============================================ */
#page-philosophy-detail {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(0,229,255,0.14), transparent 34%),
    linear-gradient(180deg, rgba(5,8,16,0.96), rgba(8,9,18,0.98));
}
.philosophy-back-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  border: 1px solid rgba(0,229,255,0.45);
  border-radius: 999px;
  background: rgba(5,8,16,0.82);
  color: var(--btn-sky);
  font-family: var(--font-hand);
  font-size: 16px;
  padding: 7px 13px;
  cursor: pointer;
}
.philosophy-detail-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 62px 14px calc(var(--nav-h) + 18px);
  overflow-y: auto;
  gap: 14px;
}
.philosophy-detail-card {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(0,229,255,0.42);
  border-radius: 8px;
  padding: 22px 18px 24px;
  background:
    linear-gradient(180deg, rgba(8,13,24,0.94), rgba(5,8,16,0.92)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 12px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.philosophy-detail-kicker {
  font-family: var(--font-label);
  font-size: 12px;
  color: rgba(124,252,237,0.72);
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.philosophy-quote-row {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 8px;
}
.philosophy-ornament {
  color: rgba(255,224,102,0.72);
  font-size: 21px;
  text-align: center;
  filter: drop-shadow(0 0 8px rgba(255,224,102,0.24));
}
.philosophy-detail-quote {
  margin: 0;
  font-family: var(--font-hand);
  font-size: clamp(24px, 7vw, 34px);
  line-height: 1.34;
  color: #fff7d6;
  text-align: center;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: keep-all;
}
.philosophy-divider {
  height: 1px;
  margin: 20px 0 18px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.42), rgba(255,224,102,0.38), rgba(0,229,255,0.42), transparent);
  position: relative;
}
.philosophy-divider::before {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,224,102,0.72);
  background: rgba(5,8,16,0.96);
  padding: 0 10px;
}
.philosophy-detail-story {
  font-family: var(--font-hand);
  font-size: clamp(18px, 5.1vw, 22px);
  line-height: 1.68;
  color: rgba(255,255,255,0.88);
  text-align: center;
  white-space: pre-wrap;
}
.philosophy-detail-story p {
  margin: 0 0 0.82em;
}
.philosophy-comic-panel {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(0,229,255,0.36);
  border-radius: 8px;
  padding: 12px;
  background: rgba(5,8,16,0.82);
  box-shadow: 0 16px 36px rgba(0,0,0,0.35);
}
.photo-album-main {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px calc(var(--nav-h) + 14px);
}
/* 홈 환영 섹션 */
.home-welcome-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.home-welcome-badge {
  font-family: var(--font-hand);
  font-size: 13px;
  color: #050810;
  background: var(--btn-yellow);
  width: 100%;
  padding: 4px 0;
  border-radius: 6px;
  letter-spacing: 1px;
}
.home-welcome-msg {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--text-white);
  line-height: 1.4;
}
.home-welcome-body {
  background: rgba(0,0,0,0.82);
  border-radius: 6px;
  padding: 8px;
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--text-white);
  line-height: 1.6;
  width: 100%;
}

/* 홈 구독 프로모션 */
.home-sub-promo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.home-sub-title {
  font-family: var(--font-hand);
  font-size: 15px;
  font-weight: 700;
  color: #050810;
  background: var(--btn-sky);
  width: 100%;
  padding: 4px 0;
  border-radius: 6px;
  letter-spacing: 1px;
  text-align: center;
}
.home-sub-body {
  background: rgba(0,0,0,0.82);
  border-radius: 6px;
  padding: 6px 8px;
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--text-white);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.home-sub-btn-gold {
  width: 100%;
  background: var(--btn-yellow);
  color: #050810;
  border: none;
  border-radius: 6px;
  font-family: var(--font-hand);
  font-size: 14px;
  font-weight: 700;
  padding: 5px 0;
  cursor: pointer;
}
.home-sub-btn-dark {
  width: 100%;
  background: rgba(5,8,16,0.85);
  color: var(--btn-yellow);
  border: 2px solid var(--btn-yellow);
  border-radius: 6px;
  font-family: var(--font-hand);
  font-size: 14px;
  font-weight: 700;
  padding: 5px 0;
  cursor: pointer;
}
/* Heart bars */
.heart-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.heart-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.heart-row-name {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--text-dim);
  min-width: 30px;
  flex-shrink: 0;
}
.heart-icon { font-size: 14px; color: rgba(255,255,255,0.5); transition: none; }
.heart-filled { color: #ff4d9e !important; filter: drop-shadow(0 0 6px rgba(255,77,158,0.9)); transform: none; }
.heart-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
}
.heart-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: none;
}
.heart-bar-1 { background: linear-gradient(90deg, #ff6b9d, #c026d3); }
.heart-bar-2 { background: linear-gradient(90deg, #f97316, #ff6b9d); }
.heart-bar-3 { background: linear-gradient(90deg, #22d3ee, #6366f1); }
.heart-bar-4 { background: linear-gradient(90deg, #84cc16, #22d3ee); }
.heart-bar-5 { background: linear-gradient(90deg, #fbbf24, #84cc16); }
.prem-heart-full { margin-top: 0; }
/* 프리미엄: 그리드를 내용 높이로 고정해 하트 섹션이 만화 위에 겹치지 않게 */
#page-premium .premium-grid { flex: 0 0 auto; min-height: auto; }
.heart-count-label {
  font-family: var(--font-hand);
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
  min-width: 32px;
  text-align: right;
}
.heart-up-label {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--text-faint);
  text-align: center;
}
.prem-comic-label {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--btn-sky);
}
.prem-comic-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-comic-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.prem-comic-scroll {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.prem-comic-scroll::-webkit-scrollbar { display: none; }
.prem-comic-img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(0,229,255,0.2);
}
.prem-comic-placeholder {
  width: 100%;
  aspect-ratio: 9/16;
  border-radius: 6px;
  border: 1px dashed rgba(0,229,255,0.25);
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 13px;
}

/* ============================================ */
/* === 4컷만화 풀스크린 뷰어 =================== */
/* ============================================ */
.comic-viewer-fullscreen {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 300;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 새 만화 페이지 레이아웃 */
#page-comics-window {
  height: 100vh;
  overflow: hidden;
}
.comic-img-wrap {
  width: 100%;
  background: #000;
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,229,255,0.65) rgba(255,255,255,0.08);
}
.comic-img-wrap::-webkit-scrollbar {
  width: 6px;
}
.comic-img-wrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.08);
}
.comic-img-wrap::-webkit-scrollbar-thumb {
  background: rgba(0,229,255,0.65);
  border-radius: 999px;
}
.comic-scrollbar-track {
  position: absolute;
  right: 6px;
  top: calc(var(--top-h) + 8px);
  bottom: calc(var(--nav-h) + 30px);
  width: 8px;
  z-index: 40;
  display: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 1px rgba(0,229,255,0.24), 0 8px 20px rgba(0,0,0,0.35);
  pointer-events: auto;
  cursor: pointer;
}
.comic-scrollbar-thumb {
  position: absolute;
  left: 1px;
  top: 0;
  width: 6px;
  min-height: 42px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(124,252,237,0.95), rgba(0,229,255,0.62));
  box-shadow: 0 0 12px rgba(0,229,255,0.62);
}
.comic-img-wrap > img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.comic-bottom-bar {
  height: 56px;
  background: rgba(5,8,16,0.92);
  border-top: 1px solid rgba(0,229,255,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  flex-shrink: 0;
}
.comic-ctrl-btn {
  background: none;
  border: none;
  color: var(--btn-sky);
  font-family: var(--font-hand);
  font-size: 16px;
  cursor: pointer;
  padding: 6px 12px;
  min-width: 72px;
  transition: opacity 0.2s;
}
.comic-ctrl-btn.nav-disabled,
.comic-ctrl-btn:disabled {
  opacity: 0.2;
  cursor: default;
}
.comic-bottom-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.comic-date-inline {
  font-family: var(--font-label);
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}
.comic-viewer-fullscreen > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.22s ease;
}
.comic-overlay-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--top-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: rgba(5,8,16,0.7);
  backdrop-filter: blur(10px);
  z-index: 20;
  border-bottom: 1px solid rgba(0,229,255,0.2);
}
.comic-next-top-btn {
  background: none;
  border: none;
  color: var(--btn-sky);
  font-family: var(--font-hand);
  font-size: 17px;
  cursor: pointer;
  padding: 4px 0;
  min-width: 64px;
  text-align: right;
}
.comic-back-btn {
  background: transparent;
  border: none;
  color: var(--btn-sky);
  font-family: var(--font-hand);
  font-size: 17px;
  cursor: pointer;
}
.comic-overlay-title {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--text-white);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.comic-page-indicator {
  font-family: var(--font-label);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.45);
  padding: 3px 10px;
  border-radius: 20px;
}
.comic-viewer-date {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-label);
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  background: rgba(0,0,0,0.5);
  padding: 3px 12px;
  border-radius: 20px;
  white-space: nowrap;
  z-index: 10;
}
.comic-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 80px;
  border: none;
  border-radius: 6px;
  background: rgba(0,229,255,0.15);
  backdrop-filter: blur(8px);
  color: var(--btn-sky);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.18s;
}
.comic-arrow:hover { background: rgba(0,229,255,0.28); }
.arrow-left  { left: 0;  border-radius: 0 6px 6px 0; }
.arrow-right { right: 0; border-radius: 6px 0 0 6px; }
.comic-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,8,16,0.9);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.comic-lock-box { text-align: center; padding: 32px 28px; }
.comic-lock-title {
  font-family: var(--font-hand);
  font-size: 28px;
  color: var(--text-white);
  margin-bottom: 10px;
}
.comic-lock-sub {
  font-family: var(--font-hand);
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ============================================ */
/* === 음악전용 페이지 ========================= */
/* ============================================ */
#page-music-window {
  min-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.music-full-wrap {
  padding: 10px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.music-video-area {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 70vh;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow-lg);
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.music-video-area video,
.music-video-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.music-lyrics-label {
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--text-dim);
  text-align: center;
  flex-shrink: 0;
}
.music-lyrics-full {
  flex: 1 0 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 200px;
  background: rgba(0,0,0,0.55);
  border-radius: 10px;
  padding: 10px 8px;
}
.music-lyrics-full p {
  font-family: var(--font-hand);
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 2;
  text-align: center;
  transition: all 0.4s;
}
.music-lyrics-full p.current {
  font-size: 26px;
  color: var(--btn-green);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(109,255,150,0.4);
}
/* LRC 타임스탬프 가사 하이라이트 */
.lrc-line {
  transition: color 0.3s, font-size 0.3s, font-weight 0.3s, text-shadow 0.3s;
}
.lrc-current {
  color: var(--btn-green) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-shadow: 0 0 12px rgba(109,255,150,0.45) !important;
}
.music-lyrics-full .lrc-current {
  font-size: 18px !important;
}

/* === 노트북/데스크탑 전용 (900px+) =================== */
@media (min-width: 900px) {
  #page-music-window {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    z-index: 50;
  }
  .music-full-wrap {
    display: grid;
    grid-template-columns: calc(100vh - 56px) 340px;
    grid-template-rows: 1fr auto;
    gap: 4px;
    padding: 4px;
    flex: unset;
    align-self: center;
    height: calc(100vh - 56px);
  }
  .music-left-col {
    display: contents;
  }
  .music-video-area {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100%;
    aspect-ratio: 1 / 1;
    align-self: center;
    min-height: 0;
  }
  .music-video-area video,
  .music-video-area img {
    object-fit: cover !important;
  }
  .music-full-controls {
    grid-column: 2;
    grid-row: 2;
  }
  .music-lyrics-full {
    grid-column: 2;
    grid-row: 1;
    min-height: 0;
    flex: unset;
  }
}
/* ===================================================== */
.music-full-controls {
  background: rgba(5,8,16,0.78);
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.music-song-title {
  font-family: var(--font-hand);
  font-size: 13px;
  color: var(--text-white);
  text-align: center;
}
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--btn-sky), var(--btn-green));
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s linear;
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--btn-sky);
  box-shadow: 0 0 6px rgba(124,252,237,0.5);
}
.time-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-label);
  font-size: 13px;
  color: var(--text-dim);
}
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}
.ctrl-btn {
  background: none;
  border: none;
  width: 34px;
  height: 34px;
  font-size: 14px;
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ctrl-btn:hover { color: var(--text-white); }
.ctrl-btn.play-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,229,255,0.16);
  border: 2px solid var(--btn-sky);
  color: var(--btn-sky);
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(124,252,237,0.42);
}
.ctrl-btn.next-btn {
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  box-shadow: none;
}
.ctrl-btn.next-btn:hover {
  color: var(--text-white);
}

.music-theme-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(128,216,255,0.14);
  border-radius: 12px;
  padding: 12px;
  margin-top: 14px;
  text-align: center;
}
.music-theme-title {
  font-size: clamp(13px, 3.5vw, 15px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 8px rgba(128,216,255,0.55);
  line-height: 1.35;
  margin-bottom: 10px;
}
.music-theme-title span {
  display: block;
}
.music-theme-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.music-theme-loading {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  padding: 8px 0;
}
.music-theme-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(128,216,255,0.26);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,229,255,0.12), rgba(57,255,20,0.07));
  color: var(--text-white);
  font-family: var(--font-hand);
  font-size: 14px;
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
}
.music-theme-btn strong {
  font-weight: 700;
}
.music-theme-btn span {
  color: rgba(255,255,255,0.58);
  font-size: 12px;
  text-align: right;
}
.music-theme-btn em,
.admin-theme-buttons button em {
  float: right;
  font-style: normal;
  color: var(--btn-green);
  font-size: 12px;
}
.music-theme-btn.active {
  border-color: var(--btn-sky);
  color: var(--btn-sky);
  box-shadow: 0 0 14px rgba(0,229,255,0.18);
}

.admin-music-theme-picker {
  border: 1px solid rgba(0,229,255,0.16);
  border-radius: 12px;
  background: rgba(0,229,255,0.05);
  padding: 10px;
}
.admin-theme-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--btn-sky);
  font-size: 13px;
  margin-bottom: 8px;
}
.admin-theme-label span {
  color: rgba(255,255,255,0.45);
  font-size: 11px;
}
.admin-theme-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}
.admin-theme-buttons button {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.045);
  color: rgba(255,255,255,0.82);
  font-family: var(--font-hand);
  font-size: 13px;
  padding: 9px 10px;
  text-align: left;
  cursor: pointer;
}
.admin-theme-buttons button span {
  color: rgba(255,255,255,0.48);
  font-size: 11px;
  margin-left: 4px;
}
.admin-theme-buttons button.active {
  border-color: var(--btn-green);
  color: var(--btn-green);
  background: rgba(57,255,20,0.12);
  box-shadow: 0 0 12px rgba(57,255,20,0.14);
}

/* ============================================ */
/* === 관리자 업로드 =========================== */
/* ============================================ */
#page-admin-upload {
  background: transparent;
}
.admin-wrap {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.admin-section {
  background: rgba(5,8,16,0.8);
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-section-title {
  font-family: var(--font-hand);
  font-size: 19px;
  color: var(--btn-sky);
  margin-bottom: 4px;
}
.admin-sub-title {
  font-family: var(--font-hand);
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
  padding: 4px 0;
}
.upload-zone {
  border: 2px dashed rgba(0,229,255,0.35);
  border-radius: 10px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s;
}
.upload-zone:hover { border-color: var(--btn-sky); }
.upload-icon { font-size: 26px; margin-bottom: 6px; }
.upload-zone p {
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--text-dim);
}
/* Admin upload slots grid */
.comic-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.comic-slot {
  aspect-ratio: 3/4;
  background: rgba(5,8,16,0.6);
  border: 1px dashed rgba(0,229,255,0.3);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  position: relative;
  overflow: hidden;
  gap: 3px;
  padding: 4px;
}
.comic-slot:hover { background: rgba(0,229,255,0.07); }
.slot-up-icon { font-size: 18px; color: var(--text-faint); }
.slot-up-text {
  font-family: var(--font-hand);
  font-size: 10px;
  color: var(--text-faint);
  text-align: center;
}
.slot-date {
  font-family: var(--font-label);
  font-size: 8px;
  color: rgba(255,255,255,0.2);
  text-align: center;
}
/* Pick slots (same style, 4 in a row) */
.pick-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.pick-slot {
  aspect-ratio: 1/1;
  background: rgba(5,8,16,0.6);
  border: 1px dashed rgba(0,229,255,0.3);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
  position: relative;
  overflow: hidden;
  gap: 3px;
  padding: 4px;
}
.pick-slot:hover { background: rgba(0,229,255,0.07); }
.admin-upload-btn {
  font-family: var(--font-hand);
  font-size: 18px;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px solid var(--btn-sky);
  background: rgba(5,8,16,0.7);
  color: var(--btn-sky);
  cursor: pointer;
  width: 100%;
  box-shadow: 0 0 10px rgba(124,252,237,0.18);
  transition: all 0.18s;
}
.admin-upload-btn:hover { background: rgba(124,252,237,0.1); }

/* 관리자 페이지 헤더 */
.admin-page-header {
  padding: 12px 16px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-header-title {
  font-family: var(--font-hand);
  font-size: 20px;
  font-weight: 700;
  color: var(--btn-sky);
  text-align: center;
  background: rgba(5,8,16,0.8);
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow);
  border-radius: 10px;
  padding: 10px 14px;
  letter-spacing: 0.5px;
}
.admin-header-hint {
  font-family: var(--font-hand);
  font-size: 13px;
  color: rgba(124,252,237,0.6);
  text-align: center;
  padding: 2px 0;
}

/* 관리자 메인 카드 */
.admin-main-card {
  background: rgba(5,8,16,0.85);
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow-lg);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-card-header {
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--text-white);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,229,255,0.2);
}

/* 단일 업로드 하기 버튼 */
.admin-upload-all-btn {
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 700;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid var(--btn-sky);
  background: linear-gradient(135deg, rgba(0,229,255,0.18) 0%, rgba(109,255,150,0.1) 100%);
  color: var(--btn-sky);
  cursor: pointer;
  width: 100%;
  box-shadow: 0 0 20px rgba(0,229,255,0.35), 0 0 40px rgba(0,229,255,0.1);
  transition: all 0.22s;
  letter-spacing: 2px;
}
.admin-upload-all-btn:hover {
  background: linear-gradient(135deg, rgba(0,229,255,0.28) 0%, rgba(109,255,150,0.18) 100%);
  box-shadow: 0 0 28px rgba(0,229,255,0.5), 0 0 55px rgba(0,229,255,0.15);
}

/* ============================================ */
/* === 로딩 오버레이 & 토스트 ================== */
/* ============================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,8,16,0.9);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  gap: 16px;
}
.loading-overlay.hidden { display: none !important; }
.loading-text {
  font-family: var(--font-hand);
  font-size: 20px;
  color: var(--text-dim);
}

.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5,8,16,0.95);
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--neon-glow);
  border-radius: 10px;
  padding: 10px 22px;
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--text-white);
  z-index: 9999;
  white-space: nowrap;
  animation: toast-in 0.3s ease, toast-out 0.3s ease 2.5s forwards;
}
@keyframes toast-in {
  from { opacity:0; transform:translateX(-50%) translateY(8px); }
  to   { opacity:1; transform:translateX(-50%) translateY(0); }
}
@keyframes toast-out { to { opacity:0; } }

@keyframes tvZoomPulse {
  0%   { transform: scale(1); }
  100% { transform: scale(2); }
}
@keyframes tvPickKenBurns {
  0%   { transform: scale(1)    translate(0%,    0%);   }
  25%  { transform: scale(1.06) translate(-2%,  -1%);  }
  50%  { transform: scale(1.1)  translate( 2%,   1%);  }
  75%  { transform: scale(1.06) translate(-1%,   2%);  }
  100% { transform: scale(1)    translate(0%,    0%);   }
}

/* ===== 오늘의 작품 ===== */
.today-work-wrap {
  padding: 12px 14px 100px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tw-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.tw-tab {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 20px;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-hand);
  font-size: 13px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.tw-tab.active {
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  color: #000;
  font-weight: 700;
}
.tw-section {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
}
.tw-label {
  font-family: var(--font-hand);
  font-size: 13px;
  font-weight: 700;
  color: var(--neon-cyan);
  padding: 10px 14px 6px;
  letter-spacing: 1px;
}
.tw-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 14px 14px;
}
.tw-img {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 10px;
}
.tw-cartoon {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: 10px;
}
.tw-video {
  width: 100%;
  border-radius: 0 0 10px 10px;
  background: #000;
  display: block;
}
.tw-placeholder {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-family: var(--font-hand);
  font-size: 13px;
  margin: 0 14px 14px;
}
.tw-lyrics {
  padding: 8px 16px 16px;
  font-family: var(--font-hand);
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
}

/* ========== 4일째 가입 유도 모달 ========== */
.signup-prompt-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.signup-prompt-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.signup-prompt-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  background: #fffaf0;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
  color: #2c1a0d;
  animation: signupPromptIn 0.25s ease-out;
}

@keyframes signupPromptIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.signup-prompt-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 22px;
  color: rgba(60, 35, 15, 0.5);
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
}

.signup-prompt-close:hover {
  background: rgba(60, 35, 15, 0.08);
  color: rgba(60, 35, 15, 0.9);
}

.signup-prompt-emoji {
  font-size: 40px;
  margin-bottom: 8px;
}

.signup-prompt-title {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
}

.signup-prompt-lead {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.55;
  color: #5a4530;
}

.signup-prompt-lead strong {
  color: #9e3f21;
  font-weight: 700;
}

.signup-prompt-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: rgba(244, 234, 215, 0.55);
  border-radius: 12px;
  text-align: left;
  font-size: 13px;
  line-height: 1.7;
}

.signup-prompt-list li { margin: 0; }

.signup-prompt-email {
  width: 100%;
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid rgba(158, 63, 33, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #2c1a0d;
  font-size: 14px;
  outline: none;
}

.signup-prompt-email:focus {
  border-color: #9e3f21;
  box-shadow: 0 0 0 3px rgba(158, 63, 33, 0.12);
}

.signup-prompt-email::placeholder {
  color: rgba(60, 35, 15, 0.42);
}

.signup-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.signup-prompt-primary {
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: #9e3f21;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(158, 63, 33, 0.28);
}

.signup-prompt-primary:hover { background: #7a2f18; }

.signup-prompt-later {
  padding: 10px 16px;
  border: 1px solid rgba(60, 35, 15, 0.2);
  border-radius: 999px;
  background: transparent;
  color: rgba(60, 35, 15, 0.7);
  font-size: 13px;
  cursor: pointer;
}

.signup-prompt-later:hover {
  background: rgba(60, 35, 15, 0.05);
  color: rgba(60, 35, 15, 0.9);
}

/* ===== 오둥이 다섯 친구 ===== */
.character-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.character-card { display: flex; flex-direction: column; cursor: pointer; }
.character-card-img { position: relative; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background-size: cover; background-position: center; background-color: #0a0e16; border: 1px solid rgba(0,229,255,0.35); transition: border-color 0.2s, transform 0.1s; }
.character-card:active .character-card-img { transform: scale(0.96); border-color: var(--neon-cyan); }
.character-card-name { display: flex; flex-direction: column; align-items: center; padding: 4px 2px 2px; }
.character-ko { color: #fff; font-family: var(--font-hand); font-size: 14px; font-weight: bold; line-height: 1.15; }
.character-en { color: rgba(255,255,255,0.75); font-size: 9px; line-height: 1.2; text-align: center; letter-spacing: 0.3px; }
.character-page-main { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.character-page-name { text-align: center; font-family: var(--font-hand); font-size: 24px; color: #fff; font-weight: bold; margin: 8px 0 16px; line-height: 1.25; }
.character-slider { display: flex; align-items: center; gap: 8px; justify-content: center; }
.char-nav-btn { background: rgba(0,229,255,0.22); border: 2px solid var(--neon-cyan); color: #fff; font-size: 22px; font-weight: 900; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 0 12px rgba(0,229,255,0.55); text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.char-nav-btn:active { background: rgba(0,229,255,0.4); }
.btn-signup-top {
  font-size: 13px;
  padding: 6px 14px;
  background: linear-gradient(90deg, #ffd166, #ff9f1c);
  border: none;
  border-radius: 999px;
  color: #1a1200;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(255,159,28,0.4);
}
.btn-signup-top:active { transform: scale(0.96); }

/* ===== 오둥이 SNS (관리자 전용) ===== */
.sns-char-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.sns-char-tab {
  flex: 1 1 auto; min-width: 60px; padding: 7px 6px; border-radius: 10px;
  border: 1px solid rgba(0,229,255,0.25); background: rgba(0,0,0,0.25);
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; text-align: center;
}
.sns-char-tab.active { background: linear-gradient(135deg,#ff9f1c,#f72585); border-color: transparent; }
.sns-chat-log {
  height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px;
  padding: 10px; background: rgba(0,0,0,0.32); border-radius: 10px; border: 1px solid rgba(255,255,255,0.08);
}
.sns-msg { max-width: 84%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.sns-msg.user { align-self: flex-end; background: #2563eb; color: #fff; border-bottom-right-radius: 4px; }
.sns-msg.assistant { align-self: flex-start; background: rgba(255,255,255,0.1); color: #fff; border-bottom-left-radius: 4px; }
.sns-msg-name { font-size: 11px; color: var(--btn-sky); margin: 0 0 2px 4px; }
.sns-status { min-height: 16px; font-size: 12px; color: rgba(255,255,255,0.55); text-align: center; padding: 3px 0; }
.sns-status.err { color: #ff6b6b; }
.sns-input-bar { display: flex; gap: 6px; margin-top: 8px; }
.sns-input-bar input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 9px;
  border: 1px solid rgba(0,229,255,0.35); background: rgba(255,255,255,0.06); color: #fff; font-size: 14px;
}
.sns-input-bar button {
  flex: 0 0 auto; padding: 10px 16px; border: none; border-radius: 9px;
  background: var(--btn-sky); color: #04121a; font-weight: 700; cursor: pointer;
}
.sns-input-bar button:disabled { opacity: 0.5; }
.character-img-frame { flex: 1; max-width: 440px; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden; border: 1px solid var(--neon-cyan); box-shadow: var(--neon-glow); background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; }
.character-img-frame img { width: 100%; height: 100%; object-fit: cover; }
.character-img-ph { color: rgba(255,255,255,0.4); font-size: 14px; }
