/* Dasar: reset, variabel warna, panggung & bingkai ponsel, mode layar penuh di HP */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(70% 60% at 30% 20%, #d9dbe4 0%, transparent 70%),
    radial-gradient(60% 60% at 80% 90%, #c8ccd8 0%, transparent 70%), #e9eaef;
  color: #1d1d1f;
  overflow: hidden;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
input,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid #0a84ff;
  outline-offset: 2px;
}
svg {
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* Panggung & bingkai ponsel */
.stage {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.phone-wrap {
  --s: 1;
  width: calc(436px * var(--s));
  height: calc(868px * var(--s));
  flex: none;
}
.phone {
  position: relative;
  width: 414px;
  height: 868px;
  padding: 12px;
  margin-left: 11px;
  border-radius: 62px;
  transform: scale(var(--s));
  transform-origin: top left;
  background: linear-gradient(145deg, #2a2b30, #0b0b0d 40%, #1c1d21);
  box-shadow:
    0 0 0 2px #6b6d73,
    0 0 0 4px #2b2c30,
    0 40px 80px -20px rgba(20, 22, 40, 0.45),
    inset 0 0 0 2px #000;
}
.hw {
  position: absolute;
  width: 5px;
  background: linear-gradient(90deg, #4b4d53, #2a2b2f);
  border-radius: 2px;
}
.hw-silent {
  left: -6px;
  top: 140px;
  height: 32px;
  border-radius: 3px 0 0 3px;
}
.hw-silent.on {
  background: #ff9500;
}
.hw-volup {
  left: -6px;
  top: 200px;
  height: 62px;
  border-radius: 3px 0 0 3px;
}
.hw-voldown {
  left: -6px;
  top: 276px;
  height: 62px;
  border-radius: 3px 0 0 3px;
}
.hw-power {
  right: -6px;
  top: 236px;
  height: 96px;
  border-radius: 0 3px 3px 0;
}
.hw:hover {
  filter: brightness(1.4);
}
.screen {
  --bg: #fff;
  --grouped: #f2f2f7;
  --card: #fff;
  --text: #000;
  --sub: #8a8a8e;
  --sep: rgba(60, 60, 67, 0.16);
  --fill: #e9e9eb;
  --fill2: #f2f2f7;
  --blue: #007aff;
  --green: #34c759;
  --red: #ff3b30;
  --orange: #ff9500;
  --yellow: #e0a800;
  --bar: rgba(249, 249, 249, 0.9);
  position: relative;
  width: 390px;
  height: 844px;
  border-radius: 48px;
  overflow: hidden;
  background: #000;
  color: var(--text);
  font-size: 17px;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}
.screen.dark {
  --bg: #000;
  --grouped: #000;
  --card: #1c1c1e;
  --text: #fff;
  --sub: #98989f;
  --sep: rgba(84, 84, 88, 0.55);
  --fill: #2c2c2e;
  --fill2: #1c1c1e;
  --blue: #0a84ff;
  --green: #30d158;
  --red: #ff453a;
  --orange: #ff9f0a;
  --bar: rgba(28, 28, 30, 0.9);
}
.screen input,
.screen textarea {
  user-select: text;
  -webkit-user-select: text;
}
.wallpaper {
  position: absolute;
  inset: 0;
  background-size: cover;
  transition:
    filter 0.35s,
    transform 0.35s;
}
.layer {
  position: absolute;
  inset: 0;
}
/* Mode layar penuh di HP: tanpa bingkai, tombol fisik, dan notch tiruan */
html.full,
html.full body {
  background: #000;
  overscroll-behavior: none;
}
.full .stage {
  display: block;
  height: 100%;
  min-height: 0;
  padding: 0;
}
.full .phone-wrap,
.full .phone,
.full .screen {
  width: 100%;
  height: 100%;
}
.full .phone {
  margin: 0;
  padding: 0;
  border-radius: 0;
  transform: none;
  background: none;
  box-shadow: none;
}
.full .screen {
  border-radius: 0;
}
.full .hw,
.full .notch {
  display: none;
}
