/* THE TOON-UP — 3D console showcase styles */
.tu3d {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 78%, rgba(255, 122, 0, 0.16), rgba(255, 122, 0, 0) 70%),
    radial-gradient(ellipse 90% 80% at 50% 40%, #1d1c21 0%, #111013 60%, #0b0a0c 100%);
  aspect-ratio: 4 / 5;
  min-height: 320px;
  isolation: isolate;
}
.tu3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.8s ease;
  -webkit-tap-highlight-color: transparent;
}
.tu3d[data-dragging] .tu3d-canvas { cursor: grabbing; }
.tu3d[data-state="ready"] .tu3d-canvas { opacity: 1; }

/* Static fallback shown until the model is ready (or if WebGL/model fails). */
.tu3d-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.tu3d[data-state="ready"] .tu3d-fallback { opacity: 0; }
.tu3d-fallback__ring {
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-top-color: rgba(255, 122, 0, 0.75);
  animation: tu3d-spin 1.6s linear infinite;
}
.tu3d-fallback__label {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font: 600 12px/1.4 system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.tu3d[data-state="error"] .tu3d-fallback__ring { animation: none; border-top-color: rgba(255, 255, 255, 0.1); }
@keyframes tu3d-spin { to { transform: rotate(360deg); } }

.tu3d-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  font: 700 12px/1 system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 10px;
  border-radius: 999px;
  pointer-events: none;
}
.tu3d-hint {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 2;
  font: 500 12px/1 system-ui, sans-serif;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.tu3d[data-state="ready"] .tu3d-hint { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .tu3d-fallback__ring { animation: none; }
  .tu3d-canvas, .tu3d-fallback { transition: none; }
}

/* ---------- Card: 3D stage + booking link underneath ---------- */
.tu3d-card {
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: #0f0e11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.tu3d-card:hover { border-color: rgba(255, 122, 0, 0.45); }
.tu3d-card .tu3d { border-radius: 22px; }

.tu3d-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 14px 12px 16px;
  text-decoration: none;
  color: #fff;
  border-radius: 18px;
  min-height: 44px;
}
.tu3d-cta__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tu3d-cta__title { font: 700 20px/1.2 system-ui, -apple-system, sans-serif; letter-spacing: -0.01em; }
.tu3d-cta__sub { font: 500 14px/1.4 system-ui, -apple-system, sans-serif; color: rgba(255, 255, 255, 0.6); }
.tu3d-cta__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px 0 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff7a00, #e0136b);
  font: 700 15px/1 system-ui, -apple-system, sans-serif;
  white-space: nowrap;
  box-shadow: 0 10px 24px -12px rgba(255, 122, 0, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tu3d-cta__btn svg { transition: transform 0.2s ease; }
.tu3d-cta:hover .tu3d-cta__btn { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(255, 122, 0, 0.95); }
.tu3d-cta:hover .tu3d-cta__btn svg { transform: translateX(3px); }
.tu3d-cta:focus-visible { outline: 2px solid #ff7a00; outline-offset: 2px; }

@media (max-width: 420px) {
  .tu3d-cta { flex-direction: column; align-items: stretch; }
  .tu3d-cta__btn { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .tu3d-card, .tu3d-cta__btn, .tu3d-cta__btn svg { transition: none; }
}
