.app-showcase .tablet-stage {
  height: 580px;
  min-height: 580px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0;
  overflow: visible;
}

.app-showcase .tablet-stage::before {
  width: min(100%, 460px);
  height: min(100%, 540px);
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.app-showcase .tablet-shadow { display: none; }

.app-showcase .portrait-tablet {
  position: relative;
  display: flex;
  flex-direction: column;
  inset: auto;
  z-index: 1;
  width: min(100%, 320px);
  height: auto;
  padding: 5px;
  transform: none;
  border: 4px solid #30352a;
  border-radius: 25px;
  background: #30352a;
  box-shadow: 0 28px 60px rgba(44, 49, 36, .23), 0 7px 16px rgba(44, 49, 36, .18);
}

.app-showcase .carousel-screen {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 8;
  overflow: hidden;
  padding: 0;
  border-radius: 20px;
  background: #eeeedf;
}

.carousel-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.app-showcase .tablet-carousel-controls {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 0 0 34px;
  height: 34px;
  padding: 2px 6px 0;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  background: #30352a;
}

.tablet-carousel-controls button {
  display: inline-flex;
  width: 28px;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.tablet-carousel-controls button:focus-visible { outline: 3px solid #e6b85c; outline-offset: 2px; }
.tablet-carousel-controls button:disabled { opacity: .36; cursor: default; }
.tablet-carousel-controls .carousel-count { min-width: 45px; padding: 5px 8px; border-radius: 99px; background: rgba(48, 53, 42, .58); color: #fff; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
  .app-showcase .tablet-stage { height: 580px; min-height: 580px; gap: 0; padding: 0; }
  .app-showcase .portrait-tablet {
    width: min(100%, 340px);
    padding: 4px;
    border-width: 3px;
    border-radius: 22px;
  }
  .app-showcase .carousel-screen { border-radius: 14px; }
  .app-showcase .tablet-carousel-controls { flex-basis: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-showcase .portrait-tablet, .carousel-image { scroll-behavior: auto; }
}
