/* The news illustration is a real DOM device, so its identity stays sharp. */
.fp-scene {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 560px;
  padding: 45px 32px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 40% 33%, #854cbb19, transparent 62%),
    linear-gradient(135deg, #151025, #171027);
  perspective: 1100px;
}
.fp-ambient {
  position: absolute;
  width: 370px;
  height: 370px;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 28% 30%, #d52bbf29, transparent 58%),
    radial-gradient(ellipse at 73% 72%, #4b61ed35, transparent 58%);
  filter: blur(12px);
  pointer-events: none;
}
.fp-ground {
  position: absolute;
  width: 215px;
  height: 26px;
  left: 50%;
  bottom: 27px;
  transform: translateX(-50%) rotate(-7deg);
  border-radius: 50%;
  background: #03010875;
  filter: blur(14px);
  pointer-events: none;
}
.fp-float {
  position: relative;
  width: 228px;
  max-width: 100%;
  transform: translateY(0) rotate(-7deg);
  animation: fp-hover 8s ease-in-out infinite paused;
}
.fp-device {
  position: relative;
  width: 100%;
  /* The full screenshot defines the device height without cropping. */
  padding: 7px;
  border: 1px solid #a8a8b2;
  border-radius: 39px;
  background: linear-gradient(112deg, #b0afb7, #34353c 8%, #111217 45%, #65646e 85%, #bab9c0);
  box-shadow:
    inset 0 0 0 2px #404148,
    inset 0 0 0 3px #111217,
    4px 3px 0 #212129,
    5px 3px 0 1px #777581,
    21px 30px 38px -9px #0301098c;
  transform: rotateY(-13deg) rotateX(4deg);
}
.fp-button {
  position: absolute;
  display: block;
  width: 3px;
  left: -4px;
  background: linear-gradient(90deg, #33343a, #aaa9b0 55%, #55545b);
  border-radius: 3px 0 0 3px;
}
.fp-action { top: 81px; height: 19px; }
.fp-volume-up { top: 117px; height: 33px; }
.fp-volume-down { top: 163px; height: 33px; }
.fp-power { left: auto; right: -5px; top: 135px; height: 52px; border-radius: 0 3px 3px 0; }
.fp-screen {
  position: relative;
  width: 100%;
  height: auto;
  border: 2px solid #030307;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  color: #fff;
}
.fp-profile-view {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.fp-screen .fp-profile {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}
.fp-island {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 18px;
  border-radius: 14px;
  background: #030305;
  box-shadow: 0 1px 0 #ffffff09;
}
.fp-island i {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 65% 30%, #435176, #111623 45%, #090a10 65%);
}
html[data-motion="on"] .fp-scene.is-logo-active .fp-float { animation-play-state: running; }
html[data-motion="off"] .fp-float { animation: none; }
html[data-theme="light"] .fp-scene {
  background:
    radial-gradient(ellipse at 36% 37%, #ba8bdf28, transparent 65%),
    linear-gradient(135deg, #eeebf6, #faf7fe);
}
html[data-theme="light"] .fp-ground { background: #49386c30; }
html[data-theme="light"] .fp-device {
  box-shadow:
    inset 0 0 0 2px #404148,
    inset 0 0 0 3px #111217,
    4px 3px 0 #212129,
    5px 3px 0 1px #777581,
    21px 30px 38px -9px #3a245550;
}
@keyframes fp-hover {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50% { transform: translateY(-10px) rotate(-4deg); }
}
@media (max-width: 900px) {
  .fp-scene { min-height: 530px; padding-block: 30px; }
  .fp-ground { bottom: 22px; }
}
@media (max-width: 480px) {
  .fp-scene { min-height: 465px; padding: 35px 24px; }
  .fp-float { width: 196px; }
  .fp-device { border-radius: 34px; padding: 6px; }
  .fp-screen { border-radius: 28px; }
  .fp-ground { bottom: 24px; width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-float { animation: none; }
}
