/* Home page: WoW Forever class carousel (www/js/classes.js). Without JS it is a plain
   horizontal scroll list; .is-live turns it into the drag-and-snap coverflow. Colours come
   from JS through custom properties (the CSP forbids style attributes, not the CSSOM). */
@property --glow { syntax: "<color>"; inherits: true; initial-value: #efb54a; }

.cls-sec { position: relative; overflow: hidden; --glow: #efb54a; transition: --glow .6s ease; }
.cls-sec::before {
  content: ""; position: absolute; left: 50%; bottom: -30%; width: min(1100px, 130%); height: 110%;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 55%, color-mix(in srgb, var(--glow) 20%, transparent), transparent 72%);
}
.cls-sec .wrap { position: relative; }
.cls-sec .intro { margin-bottom: 8px; }

.cls-stage { position: relative; outline: none; }
.cls-stage:focus-visible .cls-card.is-active a { outline: 2px solid var(--c); outline-offset: 4px; }
.cls-rail {
  list-style: none; margin: 0; padding: 18px 24px 26px; display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.cls-rail::-webkit-scrollbar { display: none; }

.cls-card { --c: var(--gold); flex: 0 0 auto; width: 230px; scroll-snap-align: center; }
.cls-card a {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
  height: 312px; padding: 30px 20px 22px; border-radius: 20px; overflow: hidden;
  color: var(--text); text-decoration: none; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 16%, var(--panel)) 0%, var(--panel) 58%);
  border: 1px solid color-mix(in srgb, var(--c) 26%, var(--line));
  transition: box-shadow .35s ease, border-color .35s ease;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.cls-card a::before {                     /* soft light behind the icon */
  content: ""; position: absolute; top: -70px; left: 50%; width: 260px; height: 260px; transform: translateX(-50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 34%, transparent), transparent);
  opacity: .55; transition: opacity .35s ease; pointer-events: none;
}
.cls-card a::after {                      /* one slow sheen across the active card */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .13) 50%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0;
}
.cls-ring {
  position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  border: 2px solid var(--c); background: #0b0b09;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 12%, transparent), 0 0 34px -4px color-mix(in srgb, var(--c) 60%, transparent);
}
.cls-ring img { width: 68px; height: 68px; border-radius: 50%; pointer-events: none; }
.cls-name { position: relative; margin-top: 8px; font-size: 25px; line-height: 1.1; font-weight: 800; letter-spacing: -.01em; color: var(--c); }
.cls-trees { position: relative; color: var(--muted); font-size: 14px; line-height: 1.5; min-height: 4.5em; }
.cls-trees span { display: block; }
.cls-go {
  position: relative; margin-top: auto; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold-ink); background: var(--c); padding: 10px 14px; border-radius: 999px;
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s ease;
}
.cls-card:hover .cls-go, .cls-card.is-active .cls-go { opacity: 1; transform: none; }

/* ── live coverflow ── */
.cls-stage.is-live { touch-action: pan-y; cursor: grab; }
.cls-stage.is-live.is-drag { cursor: grabbing; }
.cls-stage.is-live .cls-rail { display: block; position: relative; height: 372px; padding: 0; overflow: visible; perspective: 1400px; }
.cls-stage.is-live .cls-card { position: absolute; top: 22px; left: 50%; margin-left: -115px; will-change: transform, opacity; }
.cls-stage.is-live .cls-card:not(.is-active):hover .cls-go { opacity: 0; transform: translateY(6px); }
.cls-card.is-active a {
  border-color: var(--c);
  box-shadow: 0 0 0 1px var(--c), 0 30px 80px -24px color-mix(in srgb, var(--c) 70%, transparent);
}
.cls-card.is-active a::before { opacity: 1; }
.cls-card.is-active a::after { opacity: 1; animation: cls-sheen 3.6s ease-in-out infinite; }
@keyframes cls-sheen { 0%, 55% { background-position: 130% 0; } 100% { background-position: -40% 0; } }

.cls-ctl { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 2px 0 6px; }
.cls-nav {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 24px; line-height: 1; padding: 0 0 3px; cursor: pointer;
  color: var(--text); background: var(--panel); border: 1px solid var(--line-2);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.cls-nav[hidden] { display: none; }
.cls-nav:hover { color: var(--glow); border-color: var(--glow); transform: scale(1.08); }
.cls-dots { display: flex; align-items: center; gap: 8px; }
.cls-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--line-2); transition: width .3s ease, background-color .3s ease;
}
.cls-dots button.on { width: 26px; background: var(--glow); }

@media (max-width: 560px) {
  .cls-card { width: 210px; }
  .cls-stage.is-live .cls-card { margin-left: -105px; }
}
