/* How players pay the creators · components/creators-vote.html, inside the site's
   features-section. Steps on the left, a static PlaytilesOS voting panel on the right.
   The token (.cv-coin) is the OS one, from GamingCards/software/os/components/coin.css,
   with its container-query units turned into a fixed size. */
.cv-content {
  width: 100%;
}
.cv-lede {
  max-width: 800px;
  margin: 0 auto var(--spacing-8);
  text-align: center;
}
.cv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--spacing-10);
  align-items: center;
  width: 100%;
  max-width: 1000px; /* the column every other section on the page holds */
  margin: 0 auto;
}

/* Proof under the panel: the full list lives on developers.html#creators */
.cv-meet {
  margin: var(--spacing-8) 0 0;
  text-align: center;
  font: var(--font-lead);
}
/* developers.html: the creators list sits right above, the link would point back up */
.cv-no-meet .cv-meet {
  display: none;
}
.cv-meet a {
  color: var(--color-midnight);
  font-weight: 600;
  text-decoration: underline;
}

/* Steps */
.cv-steps {
  display: grid;
  gap: var(--spacing-6);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: cv;
}
.cv-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: var(--spacing-4);
  row-gap: var(--spacing-1);
  counter-increment: cv;
}
.cv-steps li::before {
  content: counter(cv);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-midnight);
  color: var(--color-sunglow);
  font-weight: 800;
  font-size: 20px;
}
.cv-steps strong {
  font-size: 20px;
  color: var(--color-midnight);
}
.cv-steps span {
  font-size: 17px;
  line-height: 1.45;
  color: var(--color-dark);
}

/* The OS panel */
.cv-panel {
  --coin: 34px;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: var(--spacing-5);
  border-radius: 24px;
  background: var(--color-midnight);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.cv-wallet {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--color-light);
  color: var(--color-midnight);
}
.cv-wallet-count {
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
}
.cv-wallet-label {
  font-size: 16px;
  color: rgba(37, 38, 39, 0.6);
}
.cv-purse {
  display: flex;
  margin-left: auto;
}
.cv-game {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
}
.cv-game img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
}
.cv-game-info {
  display: grid;
  min-width: 0;
  color: var(--color-white);
}
.cv-game-info b {
  font-size: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cv-game-info small {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}
.cv-stack {
  display: flex;
  justify-content: flex-end;
  padding-right: 4px;
}
.cv-purse .cv-coin + .cv-coin,
.cv-stack .cv-coin + .cv-coin {
  margin-left: calc(var(--coin) * -0.54);
}
.cv-ghost {
  width: var(--coin);
  height: var(--coin);
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.25);
}

/* The token: lagoon, notched rim, sunglow star */
.cv-coin {
  --tok-ridge: #a6f2f1;
  --tok-body: var(--color-lagoon);
  --tok-face: var(--color-lagoon);
  --tok-edge: #1c7a78;
  --tok-mark: var(--color-sunglow);
  position: relative;
  flex-shrink: 0;
  width: var(--coin);
  height: var(--coin);
  border-radius: 50%;
  background: repeating-conic-gradient(from 15deg, var(--tok-ridge) 0 30deg, var(--tok-body) 30deg 60deg);
  box-shadow: 0 0 0 1.5px var(--tok-edge);
}
.cv-coin::before {
  content: "";
  position: absolute;
  inset: 19%;
  border-radius: 50%;
  background: var(--tok-face);
  box-shadow: 0 0 0 1.5px var(--tok-edge);
}
.cv-coin::after {
  content: "";
  position: absolute;
  inset: 32%;
  background: var(--tok-mark);
  -webkit-mask: var(--cv-star) center / contain no-repeat;
  mask: var(--cv-star) center / contain no-repeat;
  --cv-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 1.6l3.1 6.9 7.5.8-5.6 5 1.6 7.4L12 17.9 5.4 21.7 7 14.3 1.4 9.3l7.5-.8z'/%3E%3C/svg%3E");
}
/* A full stack (5) turns sunglow, as in the OS */
.cv-stack--full .cv-coin {
  --tok-ridge: #ffedc2;
  --tok-body: var(--color-sunglow);
  --tok-face: var(--color-sunglow);
  --tok-edge: #b07a12;
  --tok-mark: #6b4a06;
}
/* The OS idle bob, one wave across the stack */
.cv-stack .cv-coin {
  animation: cv-bob 1.6s ease-in-out infinite;
  animation-delay: calc(1.6s * var(--d, 0) * -0.16);
}
@keyframes cv-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-4px) rotate(2.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cv-stack .cv-coin { animation: none; }
}

@media (max-width: 992px) {
  .cv-layout { grid-template-columns: 1fr; }
  .cv-panel { max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 576px) {
  .cv-panel { --coin: 28px; padding: var(--spacing-4); }
  .cv-game { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; }
  .cv-game img { width: 52px; height: 52px; }
}
