/* =========================
   Base
   ========================= */
*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;
  color: rgba(255,255,255,.92);
  background:#05070d;
  overflow-x:hidden;
}

/* =========================
   Stage
   ========================= */
.stage{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}


/* =========================
   Phone (모바일 기본)
   ========================= */
.phone{
  width:100%;
  max-width:460px;
  background: rgba(10,12,18,.72);
  border:1px solid rgba(255,255,255,.10);
  border-radius:28px;
  backdrop-filter: blur(18px);
  box-shadow:0 30px 90px rgba(0,0,0,.65);
  overflow:hidden;
  position:relative;
  z-index:10;
}

.phone__notch{ display:none; }

/* =========================
   Header / Drawer
   ========================= */
.header{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  background: rgba(10,12,18,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.logo{
  color:#fff;
  font-weight:800;
  text-decoration:none;
  letter-spacing:.2px;
}

.nav-toggle{ position:absolute; opacity:0; }

.hamburger{
  margin-left:auto;
  width:44px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  cursor:pointer;
}
.hamburger span{
  width:18px;
  height:2px;
  background:#fff;
  border-radius:2px;
  margin:2px 0;
}

.drawer{
  position:fixed;
  top:0;
  right:-290px;
  width:280px;
  height:100vh;
  padding:84px 16px 16px;
  background:rgba(0,0,0,.88);
  backdrop-filter: blur(18px);
  transition:right .22s ease;
  z-index:60;
}
.drawer a{
  display:block;
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  color:#fff;
  text-decoration:none;
  margin-bottom:8px;
}
.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity:0;
  pointer-events:none;
  transition:.2s;
  z-index:55;
}
#nav-toggle:checked ~ .drawer{ right:0; }
#nav-toggle:checked ~ .overlay{ opacity:1; pointer-events:auto; }

/* =========================
   Content
   ========================= */
.content{
  overflow: visible; /* 모바일 기본 */
}

/* =========================
   PC VIEW (✅ 스샷 사이즈로 고정: 471 x 893)
   ========================= */
/* PC 판단을 "폭"이 아니라 "마우스/트랙패드(hover)"로 */
@media (hover: hover) and (pointer: fine){
  body{ overflow:hidden; }

  .stage{ padding:0; }

  .phone{
    width:471px;
    height:893px;
    max-width:none;
    border-radius:44px;
  }

  .phone__notch{ display:none; }

  .content{
    height:100%;
    overflow-y:auto;
    padding-top:0; /* FIX: header gap 제거 */
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .content::-webkit-scrollbar{
    width:0;
    height:0;
  }
}

/* =========================
   GLOBAL CONTENT PADDING
   모든 페이지 좌우 여백 통일
========================= */

.phone .content{
  padding-left: 14px;
  padding-right: 14px;
  box-sizing: border-box;
}


/* =========================
   19+ AGE GATE (COMMON)
   ========================= */
body.no-scroll {
  overflow: hidden !important;
}

.site-wrap.locked {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

#ageGate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none; /* 기본은 숨김 → JS에서 필요할 때만 display:flex */
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#ageGate.show {
  display: flex;
}

.agegate-card {
  width: min(520px, 100%);
  border-radius: 18px;
  padding: 18px 16px 16px;
  background: rgba(20, 20, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

.agegate-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.agegate-badge {
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.agegate-title {
  margin: 6px 0 10px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.agegate-desc {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.92;
}

.agegate-desc b {
  font-weight: 800;
}

.agegate-list {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.9;
}

.agegate-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.agegate-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  border-radius: 12px;
  padding: 12px 10px;
  font-weight: 800;
  font-size: 14px;
}

.agegate-btn.leave {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.agegate-btn.enter {
  background: linear-gradient(135deg, rgba(190, 120, 255, 0.95), rgba(80, 170, 255, 0.95));
  color: #0b0b10;
}

.agegate-fineprint {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.45;
  opacity: 0.72;
}

@media (max-width: 420px) {
  .agegate-actions {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   NAV OVERRIDE (panel inside phone) — FINAL
   - Drawer uses absolute inside .phone (NOT viewport)
   - Full height top->bottom
   - Right ~ 1/3 width
   - No dimming (overlay transparent)
   - No visible scrollbar
   ========================================================= */

.phone{ position:relative !important; overflow:hidden !important; }

.header{ position:sticky !important; top:0 !important; z-index:90 !important; }

/* Drawer panel */
.drawer{
  position:absolute !important;
  top:0 !important;
  bottom:0 !important;
  right:-34% !important;
  width:34% !important;
  height:auto !important;
  padding:84px 14px 16px !important;
  background:#000 !important;
  border-top-left-radius:18px !important;
  border-bottom-left-radius:18px !important;
  z-index:80 !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch !important;

  /* hide scrollbar */
  scrollbar-width:none !important;        /* Firefox */
}
.drawer::-webkit-scrollbar{ width:0 !important; height:0 !important; }

/* Links readable & clickable */
.drawer a{
  display:block !important;
  padding:12px 12px !important;
  margin:10px 0 !important;
  border-radius:14px !important;
  background:rgba(255,255,255,.10) !important;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:800 !important;
}

/* Transparent overlay (click to close) */
.overlay{
  position:absolute !important;
  inset:0 !important;
  background:rgba(0,0,0,0) !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  opacity:0 !important;
  pointer-events:none !important;
  z-index:70 !important;
}

/* Open state */
#nav-toggle:checked ~ .drawer{ right:0 !important; }
#nav-toggle:checked ~ .overlay{ opacity:1 !important; pointer-events:auto !important; }

