/* ============================
   SECTION2 BASE
============================ */
#section2 {
  position: relative;
  overflow: hidden;
  height: 100vh;
}

/* ============================
   CRT FRAME
============================ */
#crt-frame{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1000; /* 가장 위 */
  pointer-events: none;
  transition: opacity .6s ease;
  opacity: 1;
}
#crt-frame.hidden{
  opacity: 0;
}

/* ============================
   INTRO SCREEN
============================ */
#intro-screen {
  position: absolute;
  inset: 0;
  z-index: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(3px);
}

.intro-box {
  width: 520px;
  padding: 36px 40px;
  text-align: center;
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 4px 30px rgba(0,0,0,0.45);
}

/* 타이틀 이미지 */
.intro-title-img {
  width: 480px;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 26px;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}


/* 버튼 스타일 */
.intro-btn {
  width: 100%;
  margin: 12px 0;
  padding: 14px;
  border-radius: 8px;
  font-size: 18px;
  color: white;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}

.intro-btn:hover {
  background: rgba(255,255,255,0.15);
}

.intro-btn:active {
  transform: scale(.97);
}

/* ============================
   Pixel overlay (CRT 느낌)
============================ */
.intro-pixel-overlay{
  position:absolute;
  inset:0;
  z-index:850;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 10px 10px;
  mix-blend-mode: soft-light;
  opacity:.9;
  pointer-events:none;
}

/* ============================
   CANVAS
============================ */
.canvas-wrap {
  width: 100%;
  height: 100vh;
  position: relative;
  background: #000;
}
#c{
  position:relative;
  width:100%;
  height:100%;
  display:block;
}

/* ============================
   HUD
============================ */
#section2 .hud{
  position:absolute;
  bottom:16px;
  left:16px;
  right:16px;
  z-index:100;
  color:#eaeaea;
  padding:12px 14px;
  border-radius:10px;
  background:rgba(160,104,154,0.2);
  backdrop-filter:blur(8px);
}
#section2 .s2-help{
  list-style:none;
  margin:0 0 10px;
  padding:0;
}
#section2 .s2-btn,
#section2 .next-sec{
  display:inline-block;
  padding:6px 10px;
  border:1px solid white;
  border-radius:6px;
  margin-top:10px;
  background:rgba(255,255,255,.08);
  color:white;
}

/* 모바일 HUD 숨김 */
@media (max-width: 840px){
  #section2 .hud{
    display:none !important;
  }
}
