/* ---------- Concept wheel: drag to spin ----------
   Built by wheel.js from the .concept cards. Only transform/opacity change while it spins. */
.has-wheel .concept-list { display: none; }

.wheel-stage {
  position: relative; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  cursor: grab; outline: none; margin-top: 8px;
  /* neighbours fade away towards the bottom and sides */
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%), linear-gradient(90deg, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.wheel-stage.dragging { cursor: grabbing; }
.wheel-stage:focus-visible { box-shadow: inset 0 0 0 2px rgba(212,255,58,.5); border-radius: 28px; }

.wheel { position: absolute; left: 50%; width: 0; height: 0; will-change: transform; }
.wheel-rim {
  position: absolute; border-radius: 50%; border: 1px dashed rgba(242,240,235,.16);
  left: calc(var(--R) * -1); top: calc(var(--R) * -1); width: calc(var(--R) * 2); height: calc(var(--R) * 2);
}
.wheel-rim.inner { border-style: solid; border-color: rgba(242,240,235,.06);
  left: calc(var(--R) * -.86); top: calc(var(--R) * -.86); width: calc(var(--R) * 1.72); height: calc(var(--R) * 1.72); }
.wheel-slot { position: absolute; left: 0; top: 0; width: 0; height: 0; }

.wheel-card {
  position: absolute; left: 0; top: 0; width: var(--cw); display: block; text-decoration: none; color: inherit;
  background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 16px;
  will-change: transform, opacity; -webkit-user-drag: none;
  transition: border-color .4s;
}
.wheel-card.is-active { border-color: rgba(212,255,58,.4); }
.wheel-card .shots { pointer-events: none; }
.wheel-card img { -webkit-user-drag: none; }
.wheel-stage:not(.dragging) .wheel-card.is-active:hover .shot-a { transform: translate(-6px, -6px) rotate(-1.5deg); }
.wheel-stage:not(.dragging) .wheel-card.is-active:hover .shot-b { transform: translate(6px, 6px) rotate(1.5deg); }

/* the little pointer at the top, like a roulette marker */
.wheel-pointer {
  position: absolute; left: 50%; top: 4px; width: 14px; height: 14px; margin-left: -7px; z-index: 2;
  background: var(--accent); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.wheel-controls { position: relative; }
.wheel-hint {
  position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translateX(-50%);
  color: var(--muted); display: flex; gap: 10px; align-items: center; white-space: nowrap; margin: 0;
  transition: opacity .5s;
}
.wheel-hint .hand { display: inline-block; animation: nudge-x 1.8s var(--ease) infinite; color: var(--accent); }
@keyframes nudge-x { 0%, 100% { transform: translateX(-6px); } 50% { transform: translateX(6px); } }
.wheel-used .wheel-hint { opacity: 0; }

/* details of the card at the top */
.wheel-info { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; align-items: end; max-width: 900px; margin: 6px auto 0; }
.wheel-text { transition: opacity .25s, transform .35s var(--ease); }
.wheel-text.swap { opacity: 0; transform: translateY(8px); }
.wheel-info .concept-tag { margin-bottom: 10px; }
.wheel-info h3 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 10px; }
.wheel-info p.wheel-desc { color: var(--muted); font-size: 15px; margin-bottom: 16px; max-width: 560px; }
.wheel-info .concept-link { color: var(--text); text-decoration: none; }
.wheel-controls { display: flex; align-items: center; gap: 14px; }
.wheel-count { color: var(--muted); min-width: 64px; text-align: center; }
.wheel-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--card);
  color: var(--text); font-size: 18px; cursor: pointer; transition: border-color .3s, background .3s, color .3s;
}
.wheel-btn:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 720px) {
  .wheel-info { grid-template-columns: 1fr; text-align: center; }
  .wheel-info p.wheel-desc { margin-inline: auto; }
  .wheel-controls { justify-content: center; order: -1; }
  .wheel-card { padding: 12px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .wheel-hint .hand { animation: none; } }
