.tablet-showcase {
  container-type:inline-size;
  position:relative;
  display:grid;
  grid-template-rows:minmax(0,1fr) auto;
  width:100%;
  min-width:0;
  min-height:210px;
  aspect-ratio:1.82;
  margin:0;
  padding:0;
  border:0;
  border-radius:11px;
  overflow:hidden;
  background:#382a22;
}
.tablet-sr, .tablet-radio {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  clip-path:inset(50%); overflow:hidden; white-space:nowrap; border:0;
}
.tablet-stage {
  position:relative; isolation:isolate; min-height:0; overflow:hidden;
  perspective:850px; touch-action:pan-y pinch-zoom;
  --tablet-accent:139 203 231;
  background:radial-gradient(ellipse at 42% -27%,#81604a 0%,transparent 59%),
    radial-gradient(ellipse at 95% 105%,#594131 0%,transparent 53%),#251d1c;
}
#pill-cialis:checked ~ .tablet-stage { --tablet-accent:251 200 96; }
#pill-levitra:checked ~ .tablet-stage { --tablet-accent:255 168 101; }
#pill-priligy:checked ~ .tablet-stage { --tablet-accent:233 225 212; }
.tablet-stage::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(ellipse at 53% 53%,rgb(var(--tablet-accent) / .16),transparent 53%);
}
.tablet-plinth {
  position:absolute; z-index:1; bottom:7%; left:28%; width:44%; height:7%; border-radius:50%;
  pointer-events:none; background:radial-gradient(ellipse,#160e0dcc 8%,#21141070 44%,transparent 72%);
  transform:translateX(var(--shadow-x,0%)) scaleX(var(--shadow-width,1)); filter:blur(2px);
}
.tablet-model,.tablet-field {
  position:absolute; inset:0; display:block; width:100%; height:100%; pointer-events:none;
  visibility:hidden;
}
.tablet-field { z-index:0; }
.tablet-model { z-index:2; }
.tablet-showcase.is-3d :is(.tablet-field,.tablet-model) { visibility:visible; }
.tablet-showcase.is-3d .tablet-display { visibility:hidden; }
@media(hover:hover) and (pointer:fine) {
  .tablet-showcase.is-3d .tablet-stage { cursor:grab; }
  .tablet-showcase.is-dragging .tablet-stage { cursor:grabbing; }
}
.tablet-display {
  position:absolute; inset:0; display:flex; justify-content:center; align-items:center;
  pointer-events:none; opacity:0;
  transform:translateY(6%) rotateY(-23deg) scale(.84);
  transition:opacity .18s ease, transform .36s cubic-bezier(.2,.72,.25,1);
}
.tablet-picture {
  display:block; position:relative; flex:none; overflow:hidden; aspect-ratio:var(--ratio);
}
.tablet-picture.viagra { --ratio:447 / 337; --file-width:124.385%; --file-left:-12.975%; --file-top:-49.555%; }
.tablet-picture.cialis { --ratio:456 / 323; --file-width:121.930%; --file-left:-12.719%; --file-top:-52.941%; }
.tablet-picture.levitra { --ratio:351 / 341; --file-width:158.405%; --file-left:-24.786%; --file-top:-47.214%; }
.tablet-picture.priligy { --ratio:326 / 328; --file-width:170.552%; --file-left:-37.730%; --file-top:-57.012%; }
.tablet-picture img {
  position:absolute; display:block; max-width:none; width:var(--file-width); height:auto;
  left:var(--file-left); top:var(--file-top); pointer-events:none; user-select:none;
}
.tablet-display .tablet-picture {
  height:68%; width:auto;
}
#pill-viagra:checked ~ .tablet-stage [data-pill="viagra"],
#pill-cialis:checked ~ .tablet-stage [data-pill="cialis"],
#pill-levitra:checked ~ .tablet-stage [data-pill="levitra"],
#pill-priligy:checked ~ .tablet-stage [data-pill="priligy"] {
  opacity:1; transform:translateY(-2%) rotateY(0) scale(1); z-index:1;
}
.tablet-options {
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px;
  padding:6px; background:#39291f;
}
.tablet-options label {
  display:flex; align-items:center; justify-content:center; gap:7px; min-width:0; min-height:44px;
  padding:4px; border:1px solid transparent; border-radius:7px; cursor:pointer;
  color:#f4e5d6; font:650 .88rem/1.22 var(--sans);
}
.tablet-options .tablet-picture { height:22px; width:auto; }
.tablet-options label:hover { background:#524033; }
#pill-viagra:checked ~ .tablet-options label[for="pill-viagra"],
#pill-cialis:checked ~ .tablet-options label[for="pill-cialis"],
#pill-levitra:checked ~ .tablet-options label[for="pill-levitra"],
#pill-priligy:checked ~ .tablet-options label[for="pill-priligy"] {
  background:#f5e6d1; color:#382b22; border-color:#edce9f;
}
#pill-viagra:focus-visible ~ .tablet-options label[for="pill-viagra"],
#pill-cialis:focus-visible ~ .tablet-options label[for="pill-cialis"],
#pill-levitra:focus-visible ~ .tablet-options label[for="pill-levitra"],
#pill-priligy:focus-visible ~ .tablet-options label[for="pill-priligy"] {
  outline:2px solid #ffc67f; outline-offset:2px;
}
@container (max-width:410px) {
  .tablet-options { padding:4px; gap:2px; }
  .tablet-options label { flex-direction:column; gap:3px; min-height:47px; font-size:.81rem; }
  .tablet-options .tablet-picture { height:17px; }
}
@media(prefers-reduced-motion:reduce) {
  .tablet-showcase .tablet-display, .tablet-showcase .tablet-picture { transition:none; }
}
@media(max-width:680px) {
  .tablet-showcase { aspect-ratio:1.7; min-height:184px; border-radius:8px; }
}
