/* Variant Wheel — page-specific styling on top of ../style.css */

.wheel-page { min-height: 100dvh; }

.wheel-topbar { width: min(100% - 36px, 1040px); }

.wheel-shell { display: grid; margin: 0 0 56px; }

.spin-screen {
  display: grid;
  gap: 44px;
  width: min(100% - 36px, 1040px);
  margin: 28px auto 0;
}

.wheel-hero {
  display: grid;
  gap: 14px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.wheel-hero h1 { max-width: 720px; font-size: clamp(34px, 6.5vw, 56px); line-height: 1.05; }

.spin-stage {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* ---------- the wheel ---------- */

.wheel-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  margin: 0 auto;
}

#wheel {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#wheel .wheel-disc {
  transform-origin: 0 0;
  transition: transform 4.2s cubic-bezier(.12, .72, .08, 1);
  will-change: transform;
}

#wheel .wheel-disc.instant { transition: none; }

#wheel .slice path {
  stroke: var(--bg);
  stroke-width: 1.6;
  transition: opacity .45s ease, filter .45s ease;
}

#wheel .slice text {
  fill: #101013;
  font: 600 9.2px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .02em;
  text-anchor: middle;
  pointer-events: none;
  transition: opacity .45s ease;
}

#wheel .slice.dim path { opacity: .16; filter: saturate(.2); }
#wheel .slice.dim text { opacity: .25; }
#wheel .slice.hit path { filter: brightness(1.12); }

#wheel .wheel-hub {
  fill: var(--raise);
  stroke: var(--line);
  stroke-width: 1.5;
}

#wheel .wheel-rim {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
}

.wheel-pointer {
  position: absolute;
  top: -6px;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 26px solid var(--ink);
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 2px #0009);
}

.wheel-wrap.spinning .wheel-pointer { animation: pointer-tick .09s linear infinite alternate; }

@keyframes pointer-tick {
  from { transform: translateX(-50%) rotate(-6deg); }
  to { transform: translateX(-50%) rotate(6deg); }
}

/* ---------- spin panel ---------- */

.spin-panel { display: grid; gap: 16px; align-content: start; }

.spin-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.spin-slot {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raise);
  transition: border-color .3s;
}

.spin-slot span { color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.spin-slot b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.spin-slot.active { border-color: #4a4a55; }
.spin-slot.filled { border-color: var(--slice, #4a4a55); }
.spin-slot.filled b { color: var(--slice, var(--ink)); }

#bSpin { padding: 12px 22px; font-size: 15px; }

.pick-combo { display: grid; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line-soft); }
.pick-combo > .note { margin: 0; }
.pick-row { display: flex; align-items: center; gap: 10px; }
.pick-row select { flex: 1; min-width: 0; }
.pick-row span { color: var(--faint); }
#pickNote { margin: 0; }
#pickNote.error { color: #e08d8d; }

.combo-card {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raise);
}

.combo-card h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; }

.combo-rules {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.combo-rules li::marker { color: var(--faint); }
.combo-rules b { color: var(--ink); font-weight: 600; }
.combo-rules.house li::marker { content: "↳ "; color: var(--jump); }

.combo-house { display: grid; gap: 6px; }
.combo-house-title { margin: 0; color: var(--jump); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.combo-house ul { display: grid; gap: 5px; margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.combo-balance { margin: 0; }
.combo-balance b { color: var(--ink); font-weight: 500; }

.combo-setup { display: grid; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.combo-sides { display: grid; gap: 8px; }

/* ---------- legend ---------- */

.wheel-legend { display: grid; gap: 14px; padding-top: 34px; border-top: 1px solid var(--line); }
.wheel-legend h2 { margin: 0; font-size: 19px; }

.legend-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend-list li {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--slice, var(--line));
  border-radius: 8px;
  background: var(--sunk);
}

.legend-list b { font-size: 13.5px; }
.legend-list p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.legend-list small { color: var(--faint); font-size: 11px; }

.watch-match {
  display: grid;
  gap: 1px;
  width: 100%;
  padding: 11px 13px;
  text-align: left;
  font-size: 14px;
}

.watch-match small { color: var(--faint); font-size: 11px; }

@media (max-width: 860px) {
  .spin-stage { grid-template-columns: 1fr; gap: 26px; }
  .wheel-wrap { max-width: 360px; }
}

@media (max-width: 560px) {
  .spin-screen { width: min(100% - 24px, 1040px); }
  .wheel-topbar { width: min(100% - 24px, 1040px); padding-top: 18px; }
  .spin-screen { gap: 30px; margin-top: 8px; }
  .wheel-hero h1 { font-size: 30px; }
  .spin-results { grid-template-columns: 1fr; }
  .combo-card { padding: 14px; }
}
