/* ------------------------------------------------*/
/* Button Styles Start */
/* ------------------------------------------------*/
:root {
  --color-w9: rgb(255, 255, 255, 0.9);
  --color-w7: rgb(255, 255, 255, 0.7);
  --color-w5: rgb(255, 255, 255, 0.5);
  --color-w3: rgb(255, 255, 255, 0.3);
  --color-item-hover: rgb(254, 154, 68);
  --color-laluna: rgb(254, 154, 68);
}

*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

img {
  text-decoration: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  pointer-events: none;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  outline: 0;
  color: #fff;
}
a:hover,
a:active,
a:visited {
  text-decoration: none;
}

input::-moz-focus-inner {
  border: 0 !important;
}

::-moz-selection {
  background-color: #343434;
  color: #b6b6b6;
  text-shadow: none;
}

::selection {
  background-color: #343434;
  color: #b6b6b6;
  text-shadow: none;
}

html {
  font-size: 42.5%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-user-select: none;
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

@media only screen and (min-width: 1200px) {
  html {
    font-size: 58%;
  }
}

@media only screen and (min-width: 1400px) {
  html {
    font-size: 62.5%;
  }
}

body {
  min-width: 320px;
  overflow: hidden !important;
  font:
    normal 400 1.6rem/1.7 "Pretendard",
    sans-serif;
  background-color: #252525;
  color: #616161;
  line-height: 1;
}

/* ------------------------------------------------*/
/* Loading Screen Start */
/* ------------------------------------------------*/
#loading {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  inset: 0;
  z-index: 11;
  background: #0f1115; /* 다크톤 배경 */
  color: #dfe3ea;
  transition: opacity 0.5s ease;
}
#loading.close {
  opacity: 0;
  pointer-events: none;
}

.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

/* 1줄: 브랜드명 – 은은한 그라데이션 + 살짝 반짝임 */
.loader-title {
  font-family: "HeirofLight", sans-serif;
  font-size: min(5rem, 90vw);
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: transparent;
  background: linear-gradient(90deg, #a8b5ff, rgb(254, 154, 68));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 2줄: 타이핑처럼 한 글자씩 뜨고 사라지는 루프 */
.loader-typing {
  display: inline-flex;
  align-items: baseline;
}

.letters {
  display: inline-flex;
}

.letters span {
  font-size: 2rem;
  font-weight: 200;
  letter-spacing: 0.04em;
  color: #b9c2cf;
  opacity: 0;
  transform: translateY(6px);
  filter: blur(2px);
  /* 각 글자 애니메이션 – 순차 노출 후 사라짐 */
  animation: type 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.12s);
}

@keyframes type {
  0% {
    opacity: 0;
    transform: translateY(6px);
    filter: blur(2px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
    filter: blur(2px);
  }
}
/* ------------------------------------------------*/
/* Loading Screen End */
/* ------------------------------------------------*/
/* ------------------------------------------------*/
/*  Button Styles Start */
/* ------------------------------------------------*/
.btn-style {
  color: var(--color-w9);
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.07rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  gap: 0.3rem;
  border-radius: 0.5rem;
  box-shadow: 0.1rem 0.1rem 0.3rem rgba(0, 0, 0, 0.3);
  transform-origin: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: all 0.2s ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .btn-style:hover {
    scale: 1.03 !important;
  }
  .btn-style:hover .glass-filter {
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
  }
  .btn-style:hover .glass-specular::after {
    box-shadow:
      inset 1px 1px 5px rgba(0, 0, 0, 0.3),
      inset -1px -1px 1px rgba(255, 255, 255, 0.5);
  }
}

.glass-filter {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backdrop-filter: blur(1px) saturate(125%);
  -webkit-backdrop-filter: blur(1px) saturate(125%);
  filter: url(#glass-distortion);
  z-index: -10;
}
.glass-specular {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: -9;
  overflow: hidden;
}
.glass-specular::after {
  content: "";
  inset: 0;
  position: absolute;
  border-radius: inherit;
  background:
    radial-gradient(circle at 0% 0%, rgb(0, 0, 0, 0.1), rgba(0, 0, 0, 0) 70%),
    radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0) 50%);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.7),
    inset -1px -1px 2px rgba(255, 255, 255, 0.3);
  opacity: 1;
  transition: all 0.3s ease-in-out;
}

.btn-style .item {
  cursor: pointer;
  padding: 1rem 1.8rem;
  transition: all 0.2s ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .btn-style .item:hover {
    color: var(--color-item-hover);
    scale: 1.05 !important;
  }
}
.btn-style .item:active {
  scale: 0.95 !important;
}

/* ------------------------------------------------*/
/* Button Styles End */
/* ------------------------------------------------*/
/* ------------------------------------------------*/
/* landing page Section Start */
/* ------------------------------------------------*/

.splash-box {
  cursor: pointer;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100vw;
  height: 100dvh;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s ease-in-out;
}
.splash-box.open {
  opacity: 1;
  visibility: visible;
}
.splash-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.splash-click {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5rem;
}
@keyframes fadeInOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0.3;
  }
}
.splash-logo {
  width: 21rem;
  height: auto;
  object-fit: contain;
}
.splash-text-btn {
  margin-top: 3rem;
  font-size: 1.7rem;
  font-weight: 700;
  padding: 1.3rem 3rem;
  color: var(--color-main);
  transition: all 0.5s ease-in-out;
  animation: fadeInOut 1s linear infinite alternate;
}

#landing-first {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 10;
  transition:
    opacity 1s ease-in-out,
    visibility 1s ease-in-out;
}

#landing-first.close {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.landing-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.landing-video-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-ui-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 90%;
}

.landing-btn-style {
  cursor: pointer;
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-w7);
  transform-origin: center;
  transition: all 0.2s ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .landing-btn-style:hover {
    color: var(--color-item-hover);
    scale: 1.05 !important;
  }
}
.landing-btn-style:active {
  scale: 0.95 !important;
}

.landing-menu {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
  gap: 2rem;
}
@media only screen and (max-width: 690px) {
  .landing-menu {
    position: absolute;
    top: initial;
    right: initial;
    left: 50%;
    bottom: 13%;
    transform: translateX(-50%);
    gap: 0;
  }
}

.landing-menu-item {
  padding: 2rem;
  padding-right: 0;
}
.landing-menu-item span {
  position: absolute;
  transform: translateX(-4.6rem) translateY(50%);
  text-align: right;
  font-size: 1rem;
  color: var(--color-w5);
}

.landing-text-boxes {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  width: 30%;
}
@media only screen and (max-width: 690px) {
  .landing-text-boxes {
    top: auto;
    top: 12%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;
    display: flex;
    justify-content: center;
  }
}
.landing-text {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  transform: translateX(-5%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease,
    visibility 0.5s ease;
}
.landing-text.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
@media only screen and (max-width: 690px) {
  .landing-text {
    gap: 2rem;
  }
}
.landing-text h3 {
  font-size: 5rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.15rem;
  color: var(--color-w9);
}
.landing-text h3 span {
  position: absolute;
  left: 0;
  transform: translateY(-3rem);
  font-size: 2.4rem;
  color: var(--color-w5);
}
.landing-text p {
  font-size: 1.7rem;
  font-weight: 200;
  color: var(--color-w7);
  line-height: 1.5;
  text-align: justify;
  word-break: keep-all;
  letter-spacing: -0.05rem;
  text-transform: initial;
}
@media only screen and (max-width: 690px) {
  .landing-text h3 {
    white-space: initial;
  }
  .landing-text p {
    display: none;
  }
}

.landing-btn-container {
  cursor: pointer;
  position: absolute;
  bottom: 5%;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 2rem 4rem;
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 15% -100%, rgb(255, 255, 255, 0), rgba(0, 0, 0, 0) 45%),
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.15), rgba(0, 0, 0, 0) 30%);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.7),
    inset -1px -1px 2px rgba(255, 255, 255, 0.3);
  opacity: 0;
  visibility: hidden;
}
.landing-btn-container.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* ------------------------------------------------*/
/* landing page Section End */
/* ------------------------------------------------*/

/* ------------------------------------------------*/
/* Tour Section Start */
/* ------------------------------------------------*/
#tourSection {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s ease-in-out,
    visibility 1s ease-in-out;
}
#tourSection.open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.pano {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -999;
}
.ui-section {
  pointer-events: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  height: 90%;
  opacity: 0;
  visibility: hidden;
}
.ui-section.open {
  opacity: 1;
  visibility: visible;
}
.ui-section > * {
  pointer-events: auto;
}

.logo-box {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 9;
  opacity: 1;
  visibility: visible;
  transition:
    all 0.2s ease-in-out,
    transform 0.3s cubic-bezier(0.53, 0.25, 0.31, 1.39);
}
.logo-box.solo {
  top: 5%;
  left: 10%;
  z-index: 101;
}
.logo-box.close {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%);
}
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}
.logo img {
  width: auto;
  height: 3.2rem;
  object-fit: contain;
}

.langbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.flag {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 500px !important;
}
.flag.active {
  font-weight: 700;
  color: var(--color-laluna);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition:
    all 0.2s ease-in-out,
    transform 0.3s cubic-bezier(0.53, 0.25, 0.31, 1.39);
}
@media only screen and (max-width: 690px) {
  .top-bar {
    top: 8%;
  }
}
#topBar.close {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(50%);
}
#hall {
  position: relative;
}
#hall-combo {
  cursor: initial;
  position: absolute;
  top: 150%;
  left: 50%;
  transform-origin: top;
  transform: scaleY(0) translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.42, 0, 0, 1);
}
#hall-combo.open {
  transform: scaleY(1) translateX(-50%);
  opacity: 1;
  visibility: visible;
}
#hall-combo-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.2rem;
  overflow: hidden;
  font-size: 1rem;
}
#hall-combo-wrapper .line {
  user-select: none;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}

.profile-box {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.profile-box.open {
  opacity: 1;
  visibility: visible;
}
#profile-iframe {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  width: min(620px, 90vw);
  height: min(940px, 70vh);
  border: none;
  border-radius: 2rem;
  transition:
    transform 0.5s ease-in-out,
    left 0.5s ease-in-out;
  pointer-events: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
@media only screen and (orientation: portrait) {
  #profile-iframe {
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.walltext-box {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-in-out;
  touch-action: pan-y;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.walltext-box.open {
  opacity: 1;
  visibility: visible;
}
#walltext-iframe {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  width: min(580px, 90vw);
  height: min(300px, 46vh);
  background: none;
  transition:
    transform 0.5s ease-in-out,
    left 0.5s ease-in-out;
  pointer-events: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
@media only screen and (orientation: portrait) {
  #walltext-iframe {
    right: initial;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.arrow-bar {
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 105%;
  transition: all 0.2s ease-in-out;
  background: none;
}
.arrow-bar.close {
  opacity: 0;
  visibility: hidden;
}
.arrow-bar > * {
  pointer-events: auto;
}
.arrows span {
  cursor: pointer;
  font-size: 9rem;
  font-weight: 100;
  color: #fff;
  opacity: 0.7;
  text-shadow: 0.3rem 0.3rem 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .arrows span:hover {
    transform: scale(1.05);
    color: #fff;
    opacity: 1;
  }
}

.bottom-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  transition:
    all 0.2s ease-in-out,
    transform 0.3s cubic-bezier(0.53, 0.25, 0.31, 1.39);
}
#bottomBar.close {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(50%);
}
@media only screen and (max-width: 690px) {
  #bottomFs {
    opacity: 0;
    visibility: hidden;
    display: none;
  }
}

#bottomSnd {
  position: relative; /* ::after absolute 기준점 */
}

/* OFF 상태: music 위에 / 표시 */
#bottomSnd.is-muted {
  color: var(--color-w5);
}
#bottomSnd.is-muted::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  pointer-events: none;
  width: 100%;
  height: 1px;
  background-color: var(--color-w5);
}

.show_menu {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  transform-origin: center;
  transform: translateY(50%);
  opacity: 0;
  visibility: hidden;
  transition:
    all 0.2s ease-in-out,
    transform 0.3s cubic-bezier(0.53, 0.25, 0.31, 1.39);
}
.show_menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Guide box styles */
.guide-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
}
.guide-box.close {
  opacity: 0;
  visibility: hidden;
}
.guide-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  width: 90%;
  height: 90%;
}
.guide-header {
  font-size: 4rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}
.guide-header span {
  font-weight: 400;
  color: #e99f00;
}
.guide-content-box {
  position: relative;
  width: 90%;
}
.guide-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.guide-content div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  font-size: clamp(1.2rem, 1cqw, 2rem);
  font-weight: 200;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
}
.guide-content img {
  width: auto;
  height: 14rem;
}
.guide-content span {
  font-size: clamp(10rem, 7cqw, 13rem);
  color: #fff;
}
.guide-content.mobile {
  display: none;
  flex-direction: column;
  gap: 3vh;
}
.guide-content.mobile div {
  gap: 0.5rem;
}
.guide-content.mobile span {
  font-size: 11rem;
}
@media only screen and (orientation: portrait) {
  .guide-wrapper {
    width: 70%;
  }
  .guide-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 8rem 2rem;
  }
}
@media (hover: none), (pointer: coarse) {
  .guide-content {
    display: none;
  }
  .guide-content.mobile {
    display: flex;
  }
  @media only screen and (orientation: landscape) {
    .guide-content.mobile {
      flex-direction: row;
    }
  }
}

/* Artplacer button styles */
.ap_button {
  font-size: 1.2rem;
  font-weight: 300;
  text-align: center;
  color: white;
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
  border-radius: 500px;
  transition: background-color 0.2s ease-in-out;
}
@media (hover: hover) and (pointer: fine) {
  .ap_button:hover {
    background-color: rgba(254, 154, 68, 0.7);
  }
}

/* =========================
   Custom Thumb Panel
   ========================= */
.thumb-panel {
  position: fixed;
  left: 50%;
  bottom: 5%;
  transform-origin: bottom center;
  transform: translateX(-50%) scaleX(1) scaleY(1);
  width: min(620px, 90vw);
  padding: 0.8rem 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 10, 10, 0.15);
  overflow: hidden;
  transition: all 0.2s ease-in-out;
  z-index: 999;
}

.thumb-panel.close {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) scaleX(0.7) scaleY(0);
  pointer-events: none;
}

.thumb-grid {
  /* ✅ 스크롤바와 썸네일 간격(아래쪽 padding이 중요) */
  padding-bottom: 1rem;

  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;

  /* ✅ 모바일/터치 UX */
  touch-action: pan-x;
  overscroll-behavior-x: contain;

  /* ✅ JS scrollLeft/scrollIntoView 부드럽게 */
  scroll-behavior: auto;

  /* ✅ 드래그 중 텍스트 선택 방지 */
  user-select: none;

  /* (선택) 스냅 */
  scroll-snap-type: none;
}
.thumb-grid::-webkit-scrollbar {
  height: 3px;
}
.thumb-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}
.thumb-grid::-webkit-scrollbar-thumb {
  background: var(--color-item-hover);
  border-radius: 10px;
}

.thumb-grid.is-dragging {
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
}

.thumb-item {
  position: relative;
  border-radius: 0.8rem;
  flex: 0 0 auto; /* 줄바꿈 방지 */
  width: 12rem; /* ★ 썸네일 카드 가로폭 */
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.1);
  opacity: 1;
  scroll-snap-align: unset;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    opacity 0.16s ease;
}
@media (hover: hover) and (pointer: fine) {
  .thumb-item:hover {
    border-color: rgba(255, 255, 255, 0.5);
  }
}
.thumb-item.active {
  background: var(--color-item-hover);
}
.thumb-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.thumb-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.5rem 0;
  font-size: 1.2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------------------------*/
/* Tour Section Start */
/* ------------------------------------------------*/

/* YouTube Popup styles */
#yt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
#yt-modal,
video {
  position: relative;
  width: min(90vw, 150vh);
  aspect-ratio: 16/9;
  border-radius: 2rem;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}
#yt-framewrap {
  position: absolute;
  inset: 0;
}
#yt-modal iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 3rem;
}
#yt-close {
  cursor: pointer;
  position: absolute;
  top: 3%;
  right: 1.3%;
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
}
#yt-close span {
  font-size: 3rem;
  color: #fff;
  background-color: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
@media (hover: hover) and (pointer: fine) {
  #yt-close:hover {
    opacity: 1;
  }
}

/* ===== 터치 탭 하이라이트 제거(모바일 사파리/크롬) ===== */
:where(a, button, [role="button"], .btn-style, .flag, #hall-combo, .arrows, .guide-btn, .show_menu, .ap_button) {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; /* 길게 눌러도 검은 호출박스 방지 */
  outline: none;
  touch-action: manipulation; /* 불필요한 더블탭/줌 제스처 억제 */
}

/* 터치 리플 */
.touch-ripple {
  position: fixed;
  left: 0;
  top: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(175, 243, 49, 0.65);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(238, 118, 20, 0.6));
  animation: ripple 0.55s ease-out forwards;
}
@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(10);
    opacity: 0;
  }
}

/* ------------------------------------------------*/
/* Video Start */
/* ------------------------------------------------*/

#introSection {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 10;
  background-color: #000;
}

.video-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: #252525;
  overflow: hidden;
}

#videoContainer {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#videoTouch {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s ease-in-out;
}
#videoTouch.open {
  background: rgba(0, 0, 0, 0.3);
}

.ambient-v {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1.1);
  object-fit: cover;
  filter: blur(23px) saturate(1.5) brightness(0.6);
  pointer-events: none;
  z-index: 0;
}

.ambient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(37, 37, 37, 0.4);
  pointer-events: none;
  z-index: 0;
}

#video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

/* WebKit 계열(사파리, 크롬)에서 뜨는 기본 ▶ 아이콘 숨기기 */
video::-webkit-media-controls-start-playback-button,
video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  -webkit-appearance: none !important;
}
/* 표준 브라우저용 페일오버 (필요시) */
video::-ms-medialayer-element {
  display: none !important;
}

video::-moz-media-controls-start-playback-button {
  display: none !important;
  -moz-appearance: none !important;
}

/* video controls */

.controls {
  gap: 1rem;
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
  bottom: 0;
  width: 95%;
  height: 8rem;
  background: none;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
  z-index: 1;
}
@media (hover: hover) and (pointer: fine) {
  .controls:hover {
    visibility: visible;
    opacity: 1;
  }
}

.controls.open {
  visibility: visible;
  opacity: 1;
}

.seek {
  cursor: pointer;
  width: 100%;
  margin: 0 auto;
  opacity: 1;
  touch-action: none;
}

.seek-tooltip {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-150%);
  top: -3.5rem;
  font-size: 1rem;
  padding: 1rem;
  content: attr(data-title);
  font-weight: bold;
  color: var(--color-main);
  background-color: rgba(0, 0, 0, 0.6);
}

.time {
  color: var(--color-main);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
}

@media (hover: hover) and (pointer: fine) {
  .seek:hover + .seek-tooltip {
    display: block;
    border-radius: 50px;
  }
}

#hover-area {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 10%;
  background-color: rgba(101, 181, 97, 0);
}
@media (hover: hover) and (pointer: fine) {
  #hover-area:hover + .controls {
    visibility: visible;
    opacity: 1;
    transition: all 0.3s ease-in-out;
  }
}

.play-btn {
  cursor: pointer;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7.7rem;
  height: 7.7rem;
  background: center/contain no-repeat url("../ui/play.png");
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}
.play-btn.open {
  visibility: visible;
  opacity: 0.5;
}
@media (hover: hover) and (pointer: fine) {
  .play-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
  }
}
.play-btn:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.skip-icon-container {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}
.skip-icon-container.open {
  visibility: visible;
  opacity: 0.7;
}
.skip-icon-layer {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42%;
  height: 120%;
  filter: blur(5px);
}
.skip-icon-layer.forward {
  right: -5%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7) 100%);
}
.skip-icon-layer.backward {
  left: -5%;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7) 100%);
}
.skip-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2.2rem;
  font-weight: 500;
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
  transition:
    opacity 0.25s ease-in-out,
    transform 0.25s ease-in-out;
}
.skip-icon.anim {
  transform: translateY(-50%) scale(1.05);
}
.skip-icon img {
  display: block;
  width: 3rem;
  height: auto;
}
.skip-icon span {
  display: inline-block;
  line-height: 1;
}
.skip-icon.backward {
  left: 15%;
}
.skip-icon.forward {
  right: 15%;
}
/* 화살표 이동 애니메이션 */
.skip-icon.backward.anim img {
  animation: arrowLeft 0.25s ease-out;
}

.skip-icon.forward.anim img {
  animation: arrowRight 0.25s ease-out;
}
@keyframes arrowLeft {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-2rem);
  }
  100% {
    transform: translateX(0);
  }
}
@keyframes arrowRight {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(2rem);
  }
  100% {
    transform: translateX(0);
  }
}

.skip-btn {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  text-transform: uppercase;
  font-size: 1.7rem;
  font-weight: 700;
  padding: 1.3rem 3rem;
  color: var(--color-main);
  transition: all 0.2s ease-in-out;
}
/* ------------------------------------------------*/
/* Video End */
/* ------------------------------------------------*/

/* Krpano Text & Artplacer button styles */
.caption_title {
  font-size: 1.65rem;
  color: #1c1c1c;
  font-weight: 600;
  line-height: 1.2;
}
.caption_title .w {
  color: #efefef;
}
.caption_title .caption_text {
  font-size: 1.4rem;
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: 0.06rem;
}

.buy {
  font-size: 1.45rem;
  color: #1c1c1c;
  font-weight: 600;
  white-space: nowrap;
  word-spacing: -3px;
}
.buy .w {
  color: #efefef;
}

.wt_title {
  font-size: 30px;
  color: #000;
  font-weight: 700;
  line-height: 0.3;
}
.wt_title_w {
  font-size: 19px;
  color: #fff;
  font-weight: 700;
  line-height: 0.8;
}

.ending_caption {
  font-family: "HeirofLight", sans-serif;
  font-size: 2rem;
  color: #fff;
  text-align: center;
  font-weight: 400;
}

.ap_button {
  font-size: 1.2rem;
  font-weight: 300;
  text-align: center;
  color: white;
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(3px);
  border-radius: 500px;
  transition: background-color 0.2s ease-in-out;
}
.ap_button:hover {
  background-color: rgba(254, 154, 68, 0.7);
}
