/* PIN+ Dual Ace 3D viewer. Everything is scoped under .t2-3d. */
.t2-3d {
  position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 640px; min-height: 320px;
  border-radius: 12px; overflow: hidden; user-select: none; -webkit-user-select: none;
  background: radial-gradient(120% 90% at 50% 30%, #f6f6f8 0%, #dcdde3 100%);
  touch-action: pan-y; cursor: grab;
}
.t2-3d.is-dragging { cursor: grabbing; }
.t2-3d > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.t2-3d.is-ready > img { display: none; }
.t2-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.t2-3d-floor {
  position: absolute; left: 50%; bottom: 8%; width: 44%; height: 30px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(20,20,30,.34), rgba(20,20,30,0));
  filter: blur(4px); pointer-events: none;
}
.t2-3d-hint {
  position: absolute; left: 14px; top: 12px; margin: 0; pointer-events: none;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #5b5e69;
}
.t2-3d-views {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: flex; gap: 4px; padding: 4px; border-radius: 999px; white-space: nowrap;
  background: rgba(255,255,255,.8); border: 1px solid rgba(20,20,30,.1);
}
.t2-3d-views button {
  font: 500 13px/1 inherit; font-family: inherit; color: #24262c; background: transparent; border: 0;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
}
.t2-3d-views button:hover { background: rgba(20,20,30,.08); }
.t2-3d-views button[aria-pressed="true"] { background: #17181c; color: #fff; }
.t2-3d-views button:focus-visible { outline: 2px solid #f23058; outline-offset: 2px; }
.t2-3d:not(.is-ready) .t2-3d-views, .t2-3d:not(.is-ready) .t2-3d-hint, .t2-3d:not(.is-ready) .t2-3d-floor { display: none; }
/* Bare mode (data-bare): just the key, on whatever is behind it. Size the element yourself. */
.t2-3d.t2-3d-bare { background: none; border-radius: 0; aspect-ratio: auto; max-height: none; min-height: 0; overflow: visible; }
.t2-3d.t2-3d-bare .t2-3d-views, .t2-3d.t2-3d-bare .t2-3d-hint, .t2-3d.t2-3d-bare .t2-3d-floor { display: none; }
.t2-3d.t2-3d-bare[data-href] { cursor: pointer; }
.t2-3d.t2-3d-bare.is-dragging { cursor: grabbing; }
