/* Token studio: genuine logo faces, layered silver edges, one slow 3D turn. */
.token-visual { position:relative; }
.token-stage {
  position:relative; width:100%; aspect-ratio:8/5; overflow:hidden;
  perspective:1100px;
  background:
    radial-gradient(ellipse at 50% 97%,rgba(55,129,244,.26),transparent 47%),
    radial-gradient(ellipse at 76% 18%,rgba(48,94,166,.24),transparent 48%),
    linear-gradient(140deg,#111e31,#080f1c 55%,#101b2c);
}
.token-stage::before {
  content:""; position:absolute; inset:7%; border-radius:50%;
  background:radial-gradient(ellipse,rgba(90,152,242,.1),transparent 64%);
  pointer-events:none;
}
.token-floor {
  position:absolute; left:15%; right:15%; bottom:5%; height:17%; border-radius:50%;
  background:radial-gradient(ellipse,rgba(89,152,255,.29),rgba(0,0,0,.5) 44%,transparent 70%);
}
.token-orbit {
  position:absolute; left:12%; top:16%; width:76%; height:68%; border-radius:50%;
  border:2px solid rgba(174,202,239,.57);
  box-shadow:0 -1px 0 rgba(233,243,255,.7),0 1px 7px rgba(77,139,235,.25),inset 0 1px 3px rgba(144,190,255,.2);
  transform:rotate(-26deg) rotateX(60deg);
  pointer-events:none;
}
.token-orbit-outer { width:88%; height:91%; left:6%; top:4.5%; transform:rotate(-28deg) rotateX(50deg); border-color:rgba(162,191,228,.28); }
.token-orbit-inner { transform:rotate(27deg) rotateX(57deg); }
.token-orbit-front { border-top-color:transparent; border-right-color:transparent; box-shadow:0 2px 4px rgba(78,143,244,.18); transform:rotate(-26deg) rotateX(60deg); }
.token-rotor-frame {
  position:absolute; left:50%; top:50%; width:54%; aspect-ratio:1;
  transform:translate(-50%,-50%) rotateX(-8deg) rotateZ(-9deg) rotateY(var(--token-drag-yaw,0deg));
  transform-style:preserve-3d;
}
.token-rotor {
  width:100%; height:100%; position:relative; transform-style:preserve-3d;
  transform:rotateY(-18deg); animation:ema-token-turn 36s linear infinite;
}
.token-rim-layer,.token-face { position:absolute; inset:0; border-radius:50%; }
.token-rim-layer {
  transform:translateZ(var(--edge-depth));
  background:conic-gradient(from 20deg,#edf5ff,#6f91be 12%,#dceaff 25%,#385574 40%,#c4dcff 55%,#637f9f 70%,#f2f6ff 87%,#edf5ff);
  border:1px solid rgba(196,220,255,.5);
}
.token-face {
  background:linear-gradient(135deg,#ecf4ff,#6685ad 30%,#e4efff 49%,#3d608b 78%,#c6ddff);
  padding:2.6%; backface-visibility:hidden; -webkit-backface-visibility:hidden;
  box-shadow:inset 0 0 0 1px rgba(222,237,255,.88);
}
.token-face-front { transform:translateZ(8px); }
.token-face-back { transform:rotateY(180deg) translateZ(8px); }
.token-stage .token-face img {
  display:block; width:100%; height:100%; aspect-ratio:1; object-fit:contain;
  background:transparent; border-radius:50%;
}
.token-face::after {
  content:""; position:absolute; inset:0; border-radius:50%; pointer-events:none;
  background:linear-gradient(120deg,rgba(231,241,255,.18),transparent 40%,rgba(8,21,43,.08) 65%,rgba(126,180,255,.16));
}
@keyframes ema-token-turn {
  from { transform:rotateY(-18deg); }
  to { transform:rotateY(342deg); }
}
.token-motion-toggle {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.token-motion-control {
  position:absolute; z-index:2; top:12px; right:12px; cursor:pointer;
  display:inline-flex; align-items:center; min-height:36px; padding:7px 11px;
  border:1px solid #466181; border-radius:8px; background:#101c2e; color:#d4e2f6;
  font:500 11px/1.4 var(--sans); letter-spacing:.01em;
}
.token-motion-control:hover { background:#1a2e49; border-color:#91baff; }
.token-motion-toggle:focus-visible + .token-motion-control { outline:3px solid #91baff; outline-offset:3px; }
.token-motion-resume { display:none; }
.token-motion-toggle:checked ~ .token-stage .token-rotor { animation-play-state:paused; }
.token-motion-toggle:checked + .token-motion-control .token-motion-pause { display:none; }
.token-motion-toggle:checked + .token-motion-control .token-motion-resume { display:inline; }
.token-interactive { cursor:grab; touch-action:pan-y pinch-zoom; user-select:none; -webkit-user-select:none; }
.token-interactive.is-dragging { cursor:grabbing; }
.token-interactive.is-dragging .token-rotor { animation-play-state:paused; }
.token-stage:focus-visible { outline-offset:-5px; }
.token-gesture-hint { display:none; }
.token-interactive .token-gesture-hint {
  display:block; position:absolute; left:12px; bottom:10px; pointer-events:none;
  color:#d4e2f6; background:#101c2e; border:1px solid #405875; border-radius:7px;
  padding:5px 8px; font:500 10px/1.4 var(--sans); letter-spacing:.02em;
}
.token-sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.token-turn-controls { display:none; gap:6px; }
.token-controls-ready .token-turn-controls { display:inline-flex; }
.token-controls-ready figcaption { align-items:center; padding-block:10px; }
.token-turn-button {
  display:inline-flex; justify-content:center; align-items:center; width:44px; height:44px; padding:0;
  border:1px solid #466181; border-radius:8px; background:#101c2e; color:#d4e2f6;
  font:400 21px/1 var(--sans); cursor:pointer;
}
.token-turn-button:hover { background:#1a2e49; border-color:#91baff; color:#fff; }
.token-turn-button:active { background:#25466f; }
@media(max-width:640px) {
  .token-visual { display:grid; grid-template-columns:minmax(0,1fr) auto; }
  .token-stage { grid-column:1/-1; grid-row:1; aspect-ratio:4/3; }
  .token-rotor-frame { width:64%; }
  .token-motion-control {
    position:static; grid-column:2; grid-row:2; justify-self:end; align-self:center;
    margin:8px 12px 8px 0; min-height:44px; padding:10px 12px; font-size:11px;
  }
  .token-visual figcaption { grid-column:1/-1; grid-row:2; min-height:60px; padding-right:140px; align-items:center; }
  .token-visual figcaption span { display:none; }
  .token-controls-ready figcaption { min-height:100px; padding:10px 14px; flex-direction:column; align-items:flex-start; justify-content:space-between; gap:8px; }
  .token-controls-ready .token-motion-control { align-self:end; margin:0 12px 10px 0; }
  .token-turn-button span { display:inline; }
  .token-orbit { border-width:1px; }
}
@media(prefers-reduced-motion:reduce) {
  .token-rotor { animation:none; }
  .token-motion-toggle,.token-motion-control { display:none; }
}
@media print {
  .token-rotor { animation:none; }
  .token-motion-toggle,.token-motion-control { display:none; }
}
