/*
 * web-taster/frame.css — the browser taster's desktop PHONE FRAME (ROUND-12 WP15.3: "desktop = a centred phone frame").
 * Used only when web-taster/boot.js decides the window is wide (`html.taster-desk`): the app runs in an iframe the size of
 * a phone, centred on a soft identity-violet backdrop. Light and dark follow the system. A phone-sized window never gets
 * the class, so nothing here touches it. (The final look is WP17's design brief, item (10).)
 */
html.taster-desk,
html.taster-desk body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}
html.taster-desk body {
  background:
    radial-gradient(900px 600px at 18% 8%, rgba(109, 40, 217, 0.18), transparent 60%),
    radial-gradient(800px 600px at 85% 92%, rgba(167, 139, 250, 0.20), transparent 60%),
    #FBFAF7;
}
.taster-stage {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.taster-phone {
  width: 402px;
  height: min(874px, calc(100vh - 48px));
  border-radius: 46px;
  padding: 12px;
  background: #0B1020;
  box-shadow: 0 40px 90px rgba(11, 16, 32, 0.28), 0 8px 24px rgba(11, 16, 32, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  box-sizing: border-box;
  animation: taster-rise 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.taster-phone iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 34px;
  background: #FBFAF7;
}
@keyframes taster-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .taster-phone { animation: none; }
}
@media (prefers-color-scheme: dark) {
  html.taster-desk body {
    background:
      radial-gradient(900px 600px at 18% 8%, rgba(109, 40, 217, 0.30), transparent 60%),
      radial-gradient(800px 600px at 85% 92%, rgba(59, 26, 120, 0.45), transparent 60%),
      #0E1117;
  }
  .taster-phone {
    background: #000000;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  }
  .taster-phone iframe { background: #0E1117; }
}
