/* 공통: 창 전체를 쓰는 화면 + 상세 시트 */
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: "Pretendard Variable", Pretendard, system-ui, sans-serif;
  background: #1a1a1e; color: #fff; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.device { position: relative; width: 100vw; height: 100dvh; overflow: hidden; }

.sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 50; }
.sheet-scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 51;
  background: #16161a; color: #fff; border-radius: 24px 24px 0 0; padding: 14px 22px 30px;
  transform: translateY(105%); transition: transform .42s cubic-bezier(.2,.9,.2,1);
}
.sheet.on { transform: none; }
/* 넓은 창: 시트를 화면 아래 가운데 카드로(가로로 길게 늘어나지 않게) */
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; width: 460px; bottom: 28px; border-radius: 20px; translate: -50% 0; transform: translateY(calc(100% + 40px)); }
}
.sheet .grip { width: 40px; height: 4px; border-radius: 2px; background: #444; margin: 0 auto 18px; }
.sheet .meta { font-size: 12px; color: #999; letter-spacing: .04em; }
.sheet .meta b { color: var(--accent, #fff); margin-right: 8px; }
.sheet h2 { font-size: 24px; margin: 8px 0 8px; letter-spacing: -.02em; }
.sheet p { color: #bbb; font-size: 15px; line-height: 1.55; }
.sheet .cta {
  display: block; width: 100%; margin-top: 22px; padding: 16px; border: 0; border-radius: 14px;
  background: var(--accent, #fff); color: #111; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
}
.sheet .cta[disabled] { opacity: .4; }
