/* Scoped to the About page 3D slot. Does not change global theme. */

.about-img-wrap .about-3d-viewer {
  position: relative;
  width: 100%;
  height: 580px;
  border-radius: 22px;
  border: 1px solid rgba(201, 162, 39, 0.28);
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(201, 162, 39, 0.10), transparent 62%),
    radial-gradient(ellipse 90% 80% at 50% 100%, rgba(28, 28, 30, 0.9), transparent 55%),
    linear-gradient(180deg, #141416 0%, #0b0b0c 100%);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 24px 60px rgba(0, 0, 0, 0.45);
}

.about-3d-halo,
.about-3d-rings,
.about-3d-grid {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.about-3d-halo {
  left: 50%;
  top: 46%;
  width: 78%;
  height: 72%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse at center,
    rgba(201, 162, 39, 0.16) 0%,
    rgba(201, 162, 39, 0.06) 36%,
    transparent 70%
  );
  filter: blur(10px);
  animation: about3dHalo 14s ease-in-out infinite;
}

.about-3d-rings {
  left: 50%;
  top: 48%;
  width: min(78%, 520px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(201, 162, 39, 0.10);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 18px rgba(201, 162, 39, 0.015),
    0 0 0 42px rgba(201, 162, 39, 0.03);
  animation: about3dSpin 80s linear infinite;
}

.about-3d-grid {
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(201, 162, 39, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 48%, black 20%, transparent 78%);
}

@keyframes about3dHalo {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}
@keyframes about3dSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.about-3d-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  background: transparent;
}
.about-3d-canvas.is-dragging { cursor: grabbing; }

.about-3d-connector {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.about-3d-connector line {
  stroke: rgba(201, 162, 39, 0.55);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.about-3d-connector circle {
  fill: #c9a227;
  opacity: 0.85;
}
.about-3d-connector.is-off {
  opacity: 0;
}

.about-3d-hotspots {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.about-3d-hot {
  position: absolute;
  width: 11px;
  height: 11px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  border: 1px solid rgba(247, 231, 161, 0.85);
  background: rgba(201, 162, 39, 0.55);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.08), 0 0 12px rgba(201, 162, 39, 0.35);
  pointer-events: auto;
  cursor: pointer;
  animation: about3dPulse 2.8s ease-in-out infinite;
}
.about-3d-hot.is-on {
  background: #f3e0a0;
  box-shadow: 0 0 0 5px rgba(201, 162, 39, 0.16), 0 0 16px rgba(201, 162, 39, 0.55);
}
@keyframes about3dPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.18); opacity: 1; }
}

.about-3d-label {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  text-align: center;
  pointer-events: none;
  max-width: calc(100% - 120px);
}
.about-3d-label strong {
  display: block;
  color: #f4e7b2;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.about-3d-label span {
  display: block;
  margin-top: 4px;
  color: rgba(210, 210, 214, 0.62);
  font-size: 0.68rem;
}

.about-3d-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  color: var(--gold-light);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  background: rgba(11, 11, 12, 0.55);
  pointer-events: none;
  z-index: 8;
}
.about-3d-status.is-ready {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.about-3d-status.is-error {
  color: #e8d48a;
  background: rgba(13, 13, 13, 0.78);
  pointer-events: auto;
  flex-direction: column;
  gap: 14px;
}

.about-3d-retry,
.about-3d-play,
.about-3d-reset {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}
.about-3d-retry {
  border: 1px solid var(--gold-border);
  background: rgba(13, 13, 13, 0.88);
  color: var(--gold-light);
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
}
.about-3d-retry:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.16);
}
.about-3d-retry[hidden],
.about-3d-play[hidden],
.about-3d-reset[hidden] { display: none; }

.about-3d-toolbar {
  position: absolute;
  left: 14px;
  bottom: 38px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-3d-play,
.about-3d-reset {
  border: 1px solid rgba(201, 162, 39, 0.38);
  background: rgba(16, 16, 18, 0.82);
  color: #e8d48a;
  backdrop-filter: blur(10px);
}
.about-3d-play {
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 999px;
}
.about-3d-reset {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.95rem;
  line-height: 1;
}
.about-3d-play:hover,
.about-3d-play.is-on,
.about-3d-reset:hover {
  border-color: #c9a227;
  background: rgba(201, 162, 39, 0.16);
}

.about-3d-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 5;
  margin: 0;
  text-align: center;
  color: rgba(196, 196, 200, 0.48);
  font-size: 0.68rem;
  pointer-events: none;
}

.about-3d-tip {
  position: absolute;
  z-index: 7;
  transform: translate(-50%, -130%);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.92);
  border: 1px solid rgba(201, 162, 39, 0.7);
  color: #f7e7a1;
  font-size: 0.72rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
.about-3d-tip.is-on { opacity: 1; }

.about-3d-panel {
  position: absolute;
  left: 14px;
  top: 58px;
  z-index: 7;
  width: min(250px, calc(100% - 28px));
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: rgba(14, 14, 16, 0.82);
  border: 1px solid rgba(201, 162, 39, 0.32);
  color: var(--text-primary);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.about-3d-panel[hidden] { display: none; }
.about-3d-panel-kicker {
  display: block;
  color: rgba(201, 162, 39, 0.7);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.about-3d-panel strong {
  display: block;
  color: #f4e7b2;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.about-3d-panel p {
  margin: 0;
  color: rgba(210, 210, 214, 0.78);
  font-size: 0.78rem;
  line-height: 1.75;
}
.about-3d-panel-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: rgba(196, 196, 200, 0.7);
  cursor: pointer;
  font-size: 1rem;
}

.about-3d-badge {
  position: absolute;
  right: 14px;
  bottom: 38px;
  z-index: 6;
  min-width: 92px;
  padding: 10px 12px 9px;
  border-radius: 12px;
  text-align: center;
  background: rgba(14, 14, 16, 0.82);
  border: 1px solid rgba(201, 162, 39, 0.38);
  box-shadow: 0 0 18px rgba(201, 162, 39, 0.08);
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.about-3d-badge .num {
  display: block;
  color: #c9a227;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}
.about-3d-badge .label {
  display: block;
  margin-top: 5px;
  color: rgba(232, 212, 138, 0.78);
  font-size: 0.64rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-img-wrap .about-3d-viewer { height: 400px; }
  .about-3d-label { max-width: calc(100% - 28px); }
  .about-3d-panel { top: auto; bottom: 86px; left: 12px; }
}
@media (max-width: 480px) {
  .about-img-wrap .about-3d-viewer { height: 340px; }
  .about-3d-panel { width: calc(100% - 24px); }
  .about-3d-hint { font-size: 0.62rem; padding: 0 48px; }
}
