/* Phone frame — desktop / presentation */
.device-stage {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: var(--bg-muted);
}

.device-frame {
  position: relative;
  width: var(--device-width);
  height: min(var(--device-height), calc(100dvh - 48px));
  max-height: var(--device-height);
  display: flex;
  flex-direction: column;
  background: #1a1a1c;
  border-radius: 44px;
  border: 10px solid #3a3a3e;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.2),
    0 48px 96px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.device-bezel-top {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 20px 8px;
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.device-time {
  justify-self: start;
}

.device-dynamic-island {
  width: 96px;
  height: 28px;
  background: #1a1a1c;
  border-radius: 20px;
  justify-self: center;
}

.device-status-icons {
  justify-self: end;
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.device-home-indicator {
  flex-shrink: 0;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.device-home-indicator::after {
  content: "";
  width: 120px;
  height: 4px;
  background: var(--border-strong);
  border-radius: 4px;
}

.device-frame #app {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}

/* Real device: full screen, no frame */
@media (max-width: 480px) {
  .device-stage {
    padding: 0;
    background: var(--bg);
  }

  .device-frame {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg);
  }

  .device-bezel-top,
  .device-home-indicator {
    display: none;
  }

  .device-frame #app {
    min-height: 100dvh;
  }
}
