/* ---------- The values sort (/values) ----------
   Only what's new lives here. The page reuses the wheel of life's classes from styles.css (wheel-quiz, wheel-orb,
   wheel-q, scale, wheel-stage, wheel-now, wheel-step, wheel-send …), so it looks and moves like the wheel. */
.vs [hidden] { display: none !important; }
.vs-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.vs-paper { margin-top: 22px; line-height: 1.6; text-align: left; color: var(--sage-dark); }
.vs-paper:hover { color: var(--dark); }

/* the orb: a little smaller while sorting on a phone, so the card and its buttons fit on one screen */
.vs-quiz .wheel-orb { transition: width 0.5s var(--ease); }
.vs-layer { transition: opacity 0.8s var(--ease); }
.vs-star { fill: #FFFFFF; }
.vs-star-halo { fill: rgba(246, 231, 186, 0.55); }
.vs-edge { stroke: rgba(246, 231, 186, 0.62); stroke-width: 0.8; stroke-linecap: round; }
.vs-here { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 0.9; }

/* the value bubbles: glass spheres with warm light rising inside (in the orb while rating, and on the result) */
.vs-art { max-width: 760px; margin: 18px auto 0; }
.vs-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.vs-b { outline: none; -webkit-tap-highlight-color: transparent; }
.vs-art .vs-b { cursor: pointer; }
.vs-b-halo { opacity: 0.6; pointer-events: none; transition: opacity 0.5s var(--ease); }
.vs-b-rim { fill: none; stroke-width: 1.6; transition: stroke-width 0.4s var(--ease); }
.vs-b-light { opacity: 0.9; transition: opacity 0.5s var(--ease); }
.vs-b-back { opacity: 0.42; }
.vs-b-surface { fill: none; stroke: rgba(255, 252, 238, 0.95); stroke-width: 1.3; stroke-linecap: round; }
.vs-b-mote { fill: #FFFFFF; }
.vs-b-shine { pointer-events: none; }
.vs-b.is-on .vs-b-halo { opacity: 0.9; }
.vs-b.is-on .vs-b-rim { stroke-width: 2.6; }
.vs-b.is-on .vs-b-light { opacity: 1; }
/* the value chosen in "So, now what?" glows brightest */
.vs-b.is-chosen .vs-b-halo { opacity: 1; }
.vs-b.is-chosen .vs-b-rim { stroke-width: 3; }
.vs-b.is-chosen .vs-b-light { opacity: 1; }
.vs-b-label { pointer-events: none; }
.vs-b-chip { fill: rgba(255, 255, 255, 0.8); }
.vs-b-rank, .vs-b-score { font-family: var(--sans); font-weight: 600; fill: #55756A; }
.vs-b-name { font-family: var(--serif); fill: #2C3F3A; }
.vs-b-ring { fill: none; stroke: rgba(255, 255, 255, 0.95); stroke-width: 1.6; stroke-dasharray: 3 5; opacity: 0; transition: opacity 0.2s; }
.vs-b:focus-visible .vs-b-ring { opacity: 1; }
.vs-bubble-note { max-width: 560px; min-height: 3.4em; margin: 4px auto 0; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.9); }
.vs-bubble-note strong { font-weight: 600; color: var(--white); }

/* progress through the deck */
.vs-progress { width: 168px; height: 2px; margin: 10px auto 0; border-radius: 2px; background: rgba(46, 50, 49, 0.08); overflow: hidden; }
.vs-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--sage), #D9CF94); transition: width 0.45s var(--ease); }

/* the deck: one large card, with the rest of the pile peeking out behind it */
.vs-deck { position: relative; z-index: 2; max-width: 440px; margin: 26px auto 0; }
.vs-deck::before, .vs-deck::after {
  content: ''; position: absolute; inset: 0; border-radius: 22px; background: var(--white);
  box-shadow: 0 0 0 1px rgba(127, 166, 155, 0.16), 0 20px 40px -30px rgba(46, 50, 49, 0.3);
  transition: opacity 0.3s var(--ease);
}
.vs-deck::before { transform: translateY(16px) scale(0.9) rotate(-1.6deg); opacity: 0.5; }
.vs-deck::after { transform: translateY(8px) scale(0.95) rotate(1.1deg); opacity: 0.8; }
.vs-deck.is-two::before, .vs-deck.is-last::before, .vs-deck.is-last::after, .vs-deck.is-empty::before, .vs-deck.is-empty::after { opacity: 0; }
.vs-deck.is-empty .vs-card { visibility: hidden; }
.vs-card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; min-height: 216px;
  padding: 44px 32px 40px; border-radius: 22px; text-align: center;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(243, 226, 179, 0.5), rgba(243, 226, 179, 0) 62%),
    radial-gradient(80% 60% at 0% 100%, rgba(127, 166, 155, 0.15), rgba(127, 166, 155, 0) 62%),
    var(--white);
  box-shadow: 0 0 0 1px rgba(127, 166, 155, 0.18), 0 30px 60px -34px rgba(46, 50, 49, 0.4), 0 0 70px -18px rgba(243, 226, 179, 0.7);
  touch-action: pan-y; -webkit-user-select: none; user-select: none;
}
.vs-card.is-drag { cursor: grabbing; }
.vs-card-mark { position: absolute; top: 20px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--sage); opacity: 0.7; }
.vs-card-name { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 56px); line-height: 1.02; letter-spacing: -0.02em; color: var(--dark); outline: none; overflow-wrap: anywhere; }
.vs-card-def { margin: 14px auto 0; max-width: 320px; font-size: 16px; line-height: 1.6; color: var(--text); }
.vs-stamp {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  padding: 7px 13px 6px; border-radius: 999px; background: var(--sage); color: var(--white);
  font: 600 11px/1 var(--sans); letter-spacing: 0.11em; text-transform: uppercase; white-space: nowrap;
  opacity: 0; pointer-events: none;
}
.vs-ghost { position: absolute; left: 0; top: 0; z-index: 3; margin: 0; pointer-events: none; }

/* the three choices, each with its pile right below it */
.vs-choices, .vs-piles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 440px; margin: 28px auto 0; }
.vs-choice {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 12px;
  border-radius: 18px; border: 1px solid rgba(46, 50, 49, 0.22); background: var(--white);
  font-family: var(--sans); font-weight: 500; font-size: 14px; line-height: 1.25; color: var(--text);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}
.vs-choice:hover, .vs-choice.is-hot { border-color: var(--sage); background: var(--sage); color: var(--white); }
.vs-choice:active { transform: scale(0.97); }
.vs-choice:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.vs-key { display: none; }
@media (hover: hover) and (pointer: fine) {
  .vs-key { display: inline-grid; place-items: center; flex: none; width: 19px; height: 19px; border-radius: 5px; box-shadow: inset 0 0 0 1px currentColor; font-size: 10px; font-weight: 600; opacity: 0.55; }
}
.vs-piles { margin-top: 14px; }
.vs-pile { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 46px; padding-bottom: 4px; }
.vs-pile-stack { position: relative; width: 28px; height: 20px; border-radius: 4px; background: var(--white); box-shadow: 0 0 0 1px rgba(46, 50, 49, 0.14); transition: box-shadow 0.3s var(--ease); }
.vs-pile[data-pile="very"] .vs-pile-stack { background: linear-gradient(160deg, #A9BCA9, #6E968B); }
.vs-pile[data-pile="very"].has .vs-pile-stack::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(243, 226, 179, 0.75), rgba(243, 226, 179, 0)); z-index: -1; }
.vs-pile[data-pile="imp"] .vs-pile-stack { background: #DCE8E4; }
.vs-pile-n { min-width: 1.3em; font-family: var(--serif); font-size: 24px; line-height: 0.8; color: var(--dark); text-align: left; }
.vs-pile[data-pile="not"] .vs-pile-n { color: var(--muted); }
.vs-tip { margin-top: 18px; font-size: 13px; }

/* adding a value of your own */
.vs-add { display: flex; align-items: flex-end; gap: 16px; max-width: 440px; margin: 30px auto 0; text-align: left; }
.vs-add .field { flex: 1; }
.vs-add .btn { flex: none; }
.vs-add-note { margin-top: 14px; min-height: 1.5em; font-size: 14px; line-height: 1.6; color: var(--sage-dark); }
.vs-own { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.vs-own li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--sage); color: var(--white); font-size: 14px; line-height: 1.3; }
.vs-own button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); color: var(--white); transition: background-color 0.25s; }
.vs-own button:hover { background: rgba(255, 255, 255, 0.34); }
.vs-own button:focus-visible { outline: 2px solid var(--white); outline-offset: 1px; }
.vs-own svg { width: 12px; height: 12px; }

/* choosing five */
.vs-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 28px; text-align: left; }
.vs-pick {
  position: relative; display: flex; flex-direction: column; gap: 5px; min-height: 96px; padding: 16px 16px 15px;
  border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px rgba(46, 50, 49, 0.12);
  text-align: left; transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), opacity 0.25s var(--ease), transform 0.3s var(--spring);
}
.vs-pick:hover { box-shadow: 0 0 0 1px var(--sage); }
.vs-pick:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.vs-pick-name { padding-right: 26px; font-family: var(--serif); font-size: 23px; line-height: 1.08; letter-spacing: -0.01em; color: var(--dark); -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.vs-pick-name.is-long { font-size: 20px; }   /* Resourcefulness, Responsibility … */
.vs-pick-def { font-size: 13px; line-height: 1.5; color: var(--muted); }
.vs-pick-tag { margin-top: auto; padding-top: 4px; font-weight: 600; font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--sage); }
.vs-pick::before { content: ''; position: absolute; top: 15px; right: 15px; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(46, 50, 49, 0.25); transition: background-color 0.25s, box-shadow 0.25s; }
.vs-pick::after { content: ''; position: absolute; top: 19px; right: 22px; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) scale(0); transition: transform 0.25s var(--ease); }
.vs-pick[aria-pressed="true"] {
  background: radial-gradient(100% 80% at 100% 0%, rgba(243, 226, 179, 0.55), rgba(243, 226, 179, 0) 62%), #F2F7F5;
  box-shadow: 0 0 0 1.5px var(--sage), 0 18px 36px -24px rgba(62, 84, 80, 0.5);
  transform: translateY(-2px);
}
.vs-pick[aria-pressed="true"]::before { background: var(--sage); box-shadow: none; }
.vs-pick[aria-pressed="true"]::after { transform: rotate(45deg) scale(1); }
.vs-picks.is-full .vs-pick[aria-pressed="false"] { opacity: 0.45; }
.vs-tally { font-size: 13px; color: var(--muted); }
/* with a long pile, keep Back, the count and Next in reach at the bottom of the screen */
.vs-quiz[data-step="choose"] .wheel-nav {
  position: sticky; bottom: 0; z-index: 5;
  margin: 24px calc(-1 * var(--pad)) 0; padding: 30px var(--pad) 18px;
  background: linear-gradient(to bottom, rgba(250, 250, 250, 0), var(--off) 42%);
}

/* putting them in order */
.vs-ranks { display: grid; gap: 10px; max-width: 500px; margin: 28px auto 0; padding: 0; list-style: none; text-align: left; }
.vs-rank-row { display: flex; align-items: stretch; gap: 8px; }
.vs-rank-pick {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; min-height: 68px; padding: 12px 18px;
  border-radius: 16px; background: var(--white); box-shadow: 0 0 0 1px rgba(46, 50, 49, 0.12);
  text-align: left; transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.vs-rank-pick:hover { box-shadow: 0 0 0 1px var(--sage); }
.vs-rank-pick:focus-visible, .vs-move:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
.vs-rank-num {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px dashed rgba(46, 50, 49, 0.3); font: 600 14px/1 var(--sans); color: var(--sage-dark);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.vs-rank-text { min-width: 0; }
.vs-rank-name { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.1; color: var(--dark); overflow-wrap: anywhere; }
.vs-rank-def { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.is-ranked .vs-rank-pick { background: radial-gradient(100% 90% at 100% 0%, rgba(243, 226, 179, 0.45), rgba(243, 226, 179, 0) 60%), #F2F7F5; box-shadow: 0 0 0 1.5px var(--sage); }
.is-ranked .vs-rank-num { border: 1px solid var(--sage); background: var(--sage); color: var(--white); }
.vs-rank-move { display: flex; flex-direction: column; gap: 6px; }
.vs-move { flex: 1; display: grid; place-items: center; width: 44px; min-height: 30px; border-radius: 12px; background: var(--white); box-shadow: 0 0 0 1px rgba(46, 50, 49, 0.12); color: var(--sage-dark); transition: box-shadow 0.25s; }
.vs-move:hover:not(:disabled) { box-shadow: 0 0 0 1px var(--sage); }
.vs-move:disabled { opacity: 0.3; cursor: default; }
.vs-move svg { width: 14px; height: 14px; }

/* the one thing they'll do this week */
.vs-commit { margin-top: 36px; }
.vs-commit label { display: block; font-weight: 500; font-size: 17px; line-height: 1.5; color: var(--dark); }
.vs-commit textarea { margin-top: 8px; height: 96px; }

@media (max-width: 809px) {
  .vs-quiz[data-step="sort"] .wheel-orb, .vs-quiz[data-step="extra"] .wheel-orb { width: 118px; }
  .vs-deck { margin-top: 20px; }
  .vs-card { min-height: 184px; padding: 38px 22px 32px; }
  .vs-card-name { font-size: 42px; }
  .vs-card-def { font-size: 15px; }
  .vs-choices { gap: 8px; margin-top: 24px; }
  .vs-choice { min-height: 54px; padding: 8px 6px; font-size: 13.5px; }
  .vs-piles { gap: 8px; margin-top: 10px; }
  .vs-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vs-pick { min-height: 88px; padding: 14px 13px 13px; }
  .vs-pick-name { font-size: 21px; }
  .vs-pick-name.is-long { padding-right: 18px; font-size: 18px; }
  .vs-rank-pick { gap: 12px; padding: 12px 14px; }
  .vs-rank-name { font-size: 22px; }
  .vs-add { flex-direction: column; align-items: stretch; }
  .vs-add .btn { align-self: center; }
}
