@font-face {
  font-family: 'Pretendard Variable';
  src: url('fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}
body {
  background-color: #19181D;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  font-family: 'Pretendard Variable', 'Noto Sans KR', sans-serif;
  overflow-x: auto;
}
html, body {
  overflow-x: hidden !important;
}
.frame-bg {
  width: 100%;
  max-width: auto;
  height: 3765px;
  background: #1A1A1A;
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
}
.fixbar {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: absolute;
  top: 0;
  left: 0;
  padding: 0 18px;
  box-sizing: border-box;
  z-index: 10;
}
.time {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
.right-side {
  display: flex;
  align-items: center;
  gap: 6px;
}
.signal-bar {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  width: 18px;
  height: 12px;
}
.signal-bar span {
  display: block;
  width: 2px;
  background: #fff;
  border-radius: 1px 1px 0 0;
}
.signal-bar .bar1 { height: 4px; }
.signal-bar .bar2 { height: 7px; }
.signal-bar .bar3 { height: 10px; }
.signal-bar .bar4 { height: 12px; }
.wifi-bar {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  width: 18px;
  height: 12px;
  position: relative;
}
.wifi-bar .arc1,
.wifi-bar .arc2,
.wifi-bar .arc3 {
  display: block;
  position: absolute;
  left: 50%;
  bottom: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  border-top: none;
  border-left: none;
  border-right: none;
  background: none;
}
.wifi-bar .arc1 {
  width: 8px;
  height: 4px;
  margin-left: -4px;
  z-index: 1;
}
.wifi-bar .arc2 {
  width: 12px;
  height: 7px;
  margin-left: -6px;
  z-index: 2;
}
.wifi-bar .arc3 {
  width: 16px;
  height: 10px;
  margin-left: -8px;
  z-index: 3;
}
.battery-bar {
  display: flex;
  align-items: center;
  position: relative;
  width: 22px;
  height: 12px;
  border: 1px solid #fff;
  border-radius: 2px;
  box-sizing: border-box;
  margin-left: 2px;
  background: transparent;
}
.battery-level {
  display: block;
  height: 6px;
  background: #fff;
  border-radius: 1px;
  margin-left: 2px;
  margin-right: 2px;
  margin-top: 2px;
  width: 14px;
}
.battery-cap {
  display: block;
  position: absolute;
  right: -3px;
  top: 3px;
  width: 2px;
  height: 6px;
  background: #fff;
  border-radius: 1px;
}
.gnb {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
   /* margin-top: 44px;
  margin-bottom: 16px;  */
  position: relative;
  background: #000;
}
.logo {
  width: 32px;
  height: 32px;
  /* background: #fff; */
  border-radius: 8px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gnb-menu {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
}

.music-video-slider {
  width: 100%;
  max-width: 375px;
  margin: 0 auto 32px auto;
  position: relative;
  padding: 0 0 24px 0;
}
.mv-title {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 16px 16px;
}
.mv-slider-track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
}
.mv-card {
  min-width: 150px;
  height: 150px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform 0.4s cubic-bezier(.4,1.3,.5,1), box-shadow 0.3s;
}
.mv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  color: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
  transition: background 0.2s;
}
.mv-arrow-left { left: 0; }
.mv-arrow-right { right: 0; }
.mv-arrow:hover { background: #eee; }

/* --- Dynamic Tab Animations --- */
.taeamate-tab-btn {
  transition: color 0.3s, font-weight 0.3s, transform 0.3s cubic-bezier(.4,0,.2,1);
  font-family: 'Pretendard Variable', sans-serif;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.taeamate-tab-btn.active {
  color: #fff;
  font-weight: 600;
  transform: scale(1.12);
  z-index: 1;
}
.taeamate-tab-btn:not(.active) {
  color: #5b5555;
  font-weight: 400;
  transform: scale(1);
}
#taemate-tab-indicator {
  transition: left 0.4s cubic-bezier(.4,0,.2,1), background 0.3s;
}
.taeamate-tab-content > div {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  pointer-events: none;
}
.taeamate-tab-content > div.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: static;
}
img, .component15-icons img, .kakao-channel-component img {
  max-width: 100%;
  height: auto;
  display: block;
}

.component15-tab {
  width: 327px;
  height: 406px;
  background: #000;
  border-radius: 12px;
  margin: 65px auto 0 auto;
  position: relative;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Make tab grid and todo list flexible */
.component15-icons {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  grid-template-rows: repeat(2,1fr);
  gap: 32px 0;
  width: 100%;
  padding: 40px 24px 0 24px;
  height: calc(100% - 40px);
  box-sizing: border-box;
}

/* Remove redundant inline margin styles from .component15-icons > div in HTML for both tabs, as the CSS selector now applies the spacing globally. */

@keyframes emoji-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.3); }
  50% { transform: scale(1); }
  70% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

@keyframes emoji-shake {
  0% { transform: scale(1) translateX(0); }
  10% { transform: scale(1.2) translateX(-2px); }
  20% { transform: scale(1.2) translateX(2px); }
  30% { transform: scale(1.2) translateX(-2px); }
  40% { transform: scale(1.2) translateX(2px); }
  50% { transform: scale(1.2) translateX(-2px); }
  60% { transform: scale(1.2) translateX(2px); }
  70% { transform: scale(1.2) translateX(-2px); }
  80% { transform: scale(1.2) translateX(2px); }
  90% { transform: scale(1.2) translateX(-2px); }
  100% { transform: scale(1) translateX(0); }
}

.animated-emoji {
  display: inline-block;
  animation: emoji-bounce 2s infinite;
  transition: transform 0.2s;
}

.shake-emoji {
  display: inline-block;
  animation: emoji-shake 2s infinite;
  transition: transform 0.2s;
}

.responsive-bg {
  min-height: 100vh;
  width: 100vw;
  background: #1A1A1A;
}

.nav-container {
  position: fixed;
  bottom: 0;
  width: 110%;
  height: 90px;
  background: transparent;
  pointer-events: none;
  max-width: 100vw;       /* 모바일 대응 */
  width: 375px;
}

.nav-ellipse {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 65px;
  background: #000;
  border-radius: 0;
  z-index: 0;
  pointer-events: auto;
}

.nav-indicator {
  position: absolute;
  top: -25px;
  left: calc(50% - 30px);
  width: 60px;
  height: 60px;
  background: #9c4dff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: left 0.3s ease, top 0.3s ease;
  pointer-events: auto;
}

.nav-indicator.animate {
  top: -30px;
}

.nav-indicator .nav-icon img {
  width: 26px;
  height: 26px;
}

.nav-items {
  display: flex;
  height: 90px;
  z-index: 3;
  position: relative;
  pointer-events: auto;
}

.nav-item {
  flex: 1;
  text-align: center;
  padding-top: 30px;
  font-size: 12px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s;
  position: relative;
}

.nav-item img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-item.active img {
  transform: translateY(-20px);
  opacity: 0;
}

.nav-item.active {
  color: white;
}

.global-nav-bg {
  width: 100vw;           /* 전체 화면 너비 */
  background: #000;       /* 검정색 배경 */
  position: fixed;        /* 하단에 고정 */
  bottom: 0;
  left: 0;
  z-index: 100;
  height: 65px;           /* nav-container와 동일하게 */
  display: flex;
  justify-content: center; /* nav-container를 중앙에 */
}

#global-gnb {
  width: 100vw;
  background: #000;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
}

.countdown-container {
    position: relative;
    width: 375px;
    height: 375px;
    margin: 0 auto;
    overflow: hidden;
}

.countdown-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/images/permission_main.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Group 1707481754 - Countdown Content Group */
.countdown-content-group {
    position: absolute;
    bottom: 150px;
    left: 24px;
    right: 20px;
    width: 327px;
    height: 97px;
    z-index: 2;
}

/* Rectangle 33092 - Semi-transparent background */
/* .countdown-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    z-index: 1;
} */

.timer-display {
    position: absolute;
    top: 31px;
    left: 2px;
    width: 294px;
    height: 75px;
    z-index: 2;
}

.timer-text {
    font-family: "Bangers", system-ui;
    font-weight: 600;
    font-size: 28px;
    line-height: 30px;
    margin-bottom: 0;
    color: #ffffff;
    text-shadow:3px 3px 0 #000,6px 6px 0 rgba(0,0,0,0.35);
}

.timer-time {
    font-family: "Bangers", system-ui;
    font-weight: 500;
    font-size: 28px;
    line-height: 30px;
    color: #ffffff;
    text-shadow:3px 3px 0 #000,6px 6px 0 rgba(0,0,0,0.35);
}

.pre-save-button {
    position: absolute;
    top: 20px;
    right: 18px;
    width: 123px;
    height: 56px;
    cursor: pointer;
    z-index: 3;
}

.pre-save-button-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 100px;
}

.pre-save-button-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Pretendard Variable", sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 19.6px;
    letter-spacing: -0.35px;
    color: #111111;
    text-align: center;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .countdown-container {
        width: 100vw;
        height: 100vw;
    }
    
    .countdown-content-group {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
    }
}

.veil-counter-container {
    position: relative;
    width: 375px;
    height: 200px;
    margin:  65px auto 0 auto;
    overflow: hidden;
}

.veil-counter-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/images/permission_count.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.veil-counter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,1) 100%);
    opacity: 0.8;
}

.veil-counter-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
}

.veil-counter-title {
    font-family: "Pretendard Variable", sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 28.6px;
    color: #ffffff;
    width: 219px;
    margin-top: 50px;
}

.veil-counter-number {
    font-family: "Pretendard Variable", sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 28.8px;
    color: #ffffff;
    width: 110px;
    text-align: right;
    padding-right: 48px;
     margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 375px) {
    .veil-counter-container {
        width: 100vw;
        height: calc(100vw * 0.533);
    }
}