/* ── 기본 + 폰 프레임 ── */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; background: #0b0b0d; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", Pretendard, "Noto Sans KR", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #000;
  user-select: none; -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}
input, button, textarea { font: inherit; color: inherit; }
input { user-select: text; -webkit-user-select: text; }
button { background: none; border: 0; cursor: pointer; text-align: inherit; }
[hidden] { display: none !important; }
svg { display: block; }

:root {
  --sb-h: 54px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --blue: #007AFF;
  --wall-fallback:
    radial-gradient(120% 70% at 80% 10%, rgba(120, 150, 190, .35), transparent 60%),
    radial-gradient(90% 60% at 10% 90%, rgba(60, 80, 110, .5), transparent 60%),
    linear-gradient(165deg, #1d2633 0%, #2a394c 45%, #121821 100%);
}

#stage {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 800px at 50% 0%, #26262b, #0b0b0d);
}
#phone {
  position: relative; flex: none;
  width: 417px; height: 876px; padding: 12px;
  border-radius: 68px;
  background: #0d0d0f;
  box-shadow: inset 0 0 0 2px #2b2b2f, 0 0 0 1.5px #4b4b50, 0 0 0 5px #1c1c1f, 0 40px 100px rgba(0, 0, 0, .55);
  transform: scale(var(--scale, 1));
}
#screen {
  position: relative; width: 393px; height: 852px;
  border-radius: 56px; overflow: hidden;
  background: #000;
  container-type: size;
  isolation: isolate;
}
.island {
  position: absolute; top: 23px; left: 50%;
  width: 125px; height: 37px; margin-left: -62.5px;
  background: #000; border-radius: 20px;
  z-index: 100; pointer-events: none;
}

/* 휴대폰에서는 프레임 없이 꽉 찬 화면 */
@media (max-width: 520px) {
  #phone { width: 100vw; height: 100vh; height: 100dvh; padding: 0; border-radius: 0; box-shadow: none; background: #000; transform: none; }
  #screen { width: 100%; height: 100%; border-radius: 0; }
  .island { display: none; }
}

.layer { position: absolute; inset: 0; }

/* ── 상태 표시줄 ── */
.statusbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 90;
  height: calc(var(--sb-h) + var(--safe-top)); padding-top: calc(var(--safe-top) + 4px);
  display: grid; grid-template-columns: 1fr 125px 1fr; align-items: center;
  font-size: 17px; font-weight: 600; letter-spacing: -.2px;
  pointer-events: none; transition: color .3s;
}
.sb-light { color: #fff; }
.sb-dark { color: #000; }
.sb-time { justify-self: center; padding-left: 10px; font-variant-numeric: tabular-nums; transition: opacity .25s; }
.sb-notime .sb-time { opacity: 0; }
.sb-icons { justify-self: center; display: flex; align-items: center; gap: 6px; padding-right: 6px; }

/* ── 홈 인디케이터 ── */
.home-ind {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px; z-index: 95;
  display: flex; justify-content: center; align-items: flex-end; padding-bottom: 8px;
  cursor: pointer;
}
.home-ind span { width: 36%; max-width: 140px; height: 5px; border-radius: 3px; background: #fff; transition: background .3s, transform .2s; }
.home-ind.dark span { background: #000; }
.home-ind:hover span { transform: scaleY(1.4); }
