/* 웹 버전 전용: 로그인 화면 + PC 넓은 화면 배치 */

/* ---------- 로그인 화면 ---------- */
html.gated body > *:not(.web-gate) { visibility: hidden; }
.web-gate { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(1200px 600px at 15% 10%, #FDE9E2 0%, transparent 60%), radial-gradient(900px 500px at 90% 90%, #E4ECFB 0%, transparent 60%), var(--bg); }
.web-gate[hidden] { display: none; }
.wg-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 36px 32px 26px; box-shadow: 0 20px 60px rgba(30, 27, 24, .10); text-align: center; }
.wg-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 6px 18px rgba(242, 100, 61, .30); }
.wg-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 16px 0 6px; }
.wg-lead { color: var(--sub); font-size: 15px; line-height: 1.6; margin-bottom: 24px; }
.wg-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 700; font-size: 16px; transition: transform .1s, box-shadow .15s; }
.wg-google:hover { box-shadow: 0 8px 22px rgba(30, 27, 24, .22); }
.wg-google:active { transform: scale(.98); }
.wg-google .g { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #4285F4; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.wg-err { margin-top: 12px; color: var(--warn); font-size: 13.5px; }
.wg-points { list-style: none; text-align: left; margin: 22px 0 18px; padding: 16px 18px; background: var(--bg); border-radius: 14px; font-size: 13.5px; color: var(--sub); line-height: 1.6; }
.wg-points li { padding-left: 18px; position: relative; }
.wg-points li + li { margin-top: 6px; }
.wg-points li::before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.wg-points b { color: var(--ink); }
.wg-foot { font-size: 12.5px; color: var(--sub); }
.wg-foot a { color: var(--sub); }

/* 캡처 끌어다 놓기 */
.web-drop { position: fixed; inset: 0; z-index: 90; background: rgba(242, 100, 61, .10); border: 3px dashed var(--accent); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.web-drop[hidden] { display: none; }
.web-drop div { background: var(--card); padding: 18px 28px; border-radius: 16px; font-weight: 700; font-size: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }

/* ---------- PC 넓은 화면 ---------- */
@media (min-width: 960px) {
  :root { --side: 240px; --panel: min(580px, 44vw); }
  html, body { background: radial-gradient(1400px 700px at 100% 0%, #FBEFE9 0%, transparent 55%), var(--bg); background-attachment: fixed; }

  /* 아래 탭 → 왼쪽 메뉴 */
  nav { top: 0; bottom: 0; right: auto; width: var(--side); border-top: none; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .78); padding: 28px 16px; }
  nav .in, nav .in.five { display: flex; flex-direction: column; align-items: stretch; gap: 4px; max-width: none; }
  nav .in::before { order: -2; content: '체험단 매니저'; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--ink); padding: 0 12px 20px; }
  nav button { text-align: left; padding: 12px 14px; font-size: 15px; border-radius: 12px; transition: background .15s; }
  nav button:hover { background: #F1EDE8; }
  nav button.on { background: var(--accent-soft); color: var(--ink); }
  nav button.fab { order: -1; width: 100%; height: auto; border-radius: 12px; margin: 0 0 14px; padding: 12px 14px; font-size: 15px; font-weight: 700; justify-content: center; box-shadow: 0 6px 16px rgba(242, 100, 61, .28); }
  nav button.fab::after { content: ' 체험단 추가'; margin-left: 4px; }
  nav button.fab:hover { background: #E7552E; }

  /* 가운데 본문 */
  .wrap { max-width: 720px; margin: 0 0 0 calc(var(--side) + clamp(24px, (100vw - var(--side) - 720px) / 2, 80px)); padding: 40px 28px 60px; }
  header h1 { font-size: 28px; }
  .card { transition: box-shadow .15s, transform .15s; }
  .card:hover { box-shadow: 0 8px 24px rgba(30, 27, 24, .08); transform: translateY(-1px); }

  /* 상세: 아래에서 올라오는 시트 → 오른쪽 패널 */
  .sheet-bg { background: rgba(20, 16, 12, .16); }
  .sheet { left: auto; top: 0; bottom: 0; right: 0; width: var(--panel); max-height: none; border-radius: 0; border-left: 1px solid var(--line); box-shadow: -16px 0 48px rgba(30, 27, 24, .10); transform: translateX(105%); padding: 8px 28px 40px; }
  .sheet.show { transform: none; }
  .sheet .in { max-width: none; }
  .sheet-top { margin: -8px -28px 8px; padding: 16px 20px 10px; }
  .sheet-top .grab { display: none; }

  .toast { bottom: 32px; left: calc(50% + var(--side) / 2); }
  .tour .bub { left: calc(var(--side) + 24px); }
}

@media (min-width: 1440px) {
  .wrap { max-width: 760px; }
}
