html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.addrToggle {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: #2f6df6;
  color: #fff7e6;
  padding: 4px 16px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 140ms ease-out;
}
.addrToggle:hover {
  transform: translateY(-1px);
}
.addrToggle:active {
  transform: scale(0.95);
}
.addrToggle:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.phones {
  display: flex;
  gap: 16px;
}

.phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.phoneLabel {
  color: #fff7e6;
  font-size: 10px;
  font-weight: 600;
}

.screen {
  position: relative;
  width: 96px;
  height: 148px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 247, 230, 0.08);
  box-shadow: inset 0 0 0 2px rgba(255, 247, 230, 0.18);
}

.addressBar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background: #0a4fe8;
  transform: translateY(0);
  transition: transform 300ms ease-out;
  z-index: 2;
}

.is-collapsed .addressBar {
  transform: translateY(100%);
}

.anchor {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 4px 0;
  border: none;
  border-radius: 4px;
  background: #ff9ebb;
  color: #17141a;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.anchor.is-fixed {
  z-index: 1;
  transform: translateY(0);
}

.anchor.is-dvh {
  z-index: 2;
  transform: translateY(calc(-1 * var(--bar-h, 0px)));
  transition: transform 300ms ease-out;
  opacity: 0.5;
}

.anchor.is-dvh.is-settled {
  opacity: 1;
}

@media (max-width: 340px) {
  .wrap {
    gap: 4px;
  }
  .phones {
    gap: 8px;
  }
  .screen {
    width: 72px;
    height: 104px;
  }
  .addressBar {
    height: 20px;
  }
  .anchor {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .addressBar {
    transition: none;
  }
  .anchor.is-dvh {
    transition: none;
  }
  .addrToggle {
    transition: none;
  }
}
