/* Screen frame and gallery layout only. Screen content is styled with Tailwind in each file. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }

/* Phone surface: full viewport on small screens */
.screen {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* At least 500px wide: centered 390x844 phone frame */
@media (min-width: 500px) {
  body {
    background: #DDE1E8;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
  }
  .screen {
    width: 390px;
    height: 844px;
    border-radius: 36px;
    box-shadow: 0 30px 80px rgba(20, 24, 33, .28), 0 0 0 10px #141821, 0 0 0 11px #2a2f3a;
  }
}

@media (min-width: 500px) and (prefers-color-scheme: dark) {
  body { background: #0B0D12; }
}

/* Short viewports: zoom the phone frame */
@media (min-width: 500px) and (max-height: 900px) { .screen { zoom: .85; } }
@media (min-width: 500px) and (max-height: 760px) { .screen { zoom: .72; } }
