/* ───────── $DOMINO · Holder vote: pick what the next domino does ───────── */

.votesec { display: grid; grid-template-columns: minmax(0, 700px) auto; justify-content: space-evenly; gap: clamp(24px, 4vw, 64px); align-items: center; }
.votesec__main { display: flex; flex-direction: column; gap: 12px; min-width: 0; max-width: 700px; }
.votesec .eyebrow { margin: 0 0 8px; }
.vote-title { max-width: 100%; text-wrap: balance; }
.vote-when { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: #463c33; }
.vote-when b { color: var(--ink); }

/* options: each one a card with a mini domino for its letter */
.ballot { display: grid; gap: 12px; margin: 0; }
.ballot__opts { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ballot__empty { margin: 0; padding: 16px 18px; border: 2.5px dashed #b9aa8e; border-radius: 14px; color: #6d6052; font-size: 14.5px; }
.opt {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px; row-gap: 7px;
  padding: 12px 16px 12px 12px; border: 2.5px solid var(--ink); border-radius: 14px; background: #fbf6ea; color: var(--ink);
  cursor: pointer; transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background .15s;
}
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.opt:has(input:focus-visible) { outline: 3px solid var(--ember); outline-offset: 3px; }
.opt:has(input:checked) { background: #fff3de; box-shadow: 4px 4px 0 var(--ember); transform: translate(-1px, -1px); }
.opt__key {
  grid-row: span 2; display: grid; place-items: center; width: 38px; height: 54px; border: 2.5px solid var(--ink); border-radius: 9px;
  background: #fff; font-family: var(--f-display); font-weight: 900; font-size: 24px; line-height: 1;
  box-shadow: 3px 3px 0 #e2d7c3; transition: transform .25s var(--ease-back), background .15s, color .15s;
}
.opt:has(input:checked) .opt__key { background: var(--ember); color: #fff; transform: rotate(9deg); }
.opt__main { min-width: 0; }
.opt__main b { display: block; font: 800 16.5px/1.2 var(--f-body); }
.opt__main span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.35; color: #463c33; }
.opt__pct { font-family: var(--f-display); font-weight: 900; font-size: 28px; line-height: 1; font-variant-numeric: tabular-nums; }
.opt__bar { grid-column: 2 / 4; height: 9px; border: 2px solid var(--ink); border-radius: 6px; background: #f4ebd8; overflow: hidden; }
.opt__bar i { display: block; height: 100%; width: var(--w, 0%); background: var(--ink); transition: width .9s var(--ease-out); }
.opt:has(input:checked) .opt__bar i, .opt.is-win .opt__bar i { background: linear-gradient(90deg, #f5a31a, #e24a12); }
.opt__meta { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 4px 12px; font: 600 11px/1.2 var(--f-mono); color: #6d6052; }
.opt__mine { color: #e25a18; }
.opt.is-win { border-color: #e25a18; box-shadow: 4px 4px 0 #e25a18; }
.opt.is-win .opt__key { background: #e25a18; color: #fff; transform: rotate(-8deg); }
.ballot.is-closed .opt, .ballot.is-soon .opt { cursor: default; }
/* waiting for the market cap: the options read like a menu, nothing to pick yet */
.opt--waiting { grid-template-columns: auto minmax(0, 1fr); cursor: default; }
.opt--waiting:hover { transform: none; box-shadow: none; }
.opt--waiting .opt__key { grid-row: auto; }
.ballot.is-closed .opt:hover { transform: none; box-shadow: none; }
.ballot.is-closed .opt.is-win:hover { box-shadow: 4px 4px 0 #e25a18; }
.ballot__sign .btn { min-width: 200px; }

/* the big domino on the right: status, clock, quorum */
.votebox { position: relative; flex: none; width: clamp(230px, 22vw, 300px); aspect-ratio: .74; color: var(--ink); }
.votebox__side {
  position: absolute; inset: 9px -12px -9px 9px; border: 3px solid var(--ink); border-radius: 20px;
  background: repeating-linear-gradient(-45deg, var(--ink) 0 1.4px, transparent 1.4px 6px), #e8dcc2;
}
.votebox__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px;
  padding: 16px 16px 14px; border: 3px solid var(--ink); border-radius: 20px; background: #fbf6ea; text-align: center;
}
.votebox.is-open .votebox__face { border-color: #e25a18; box-shadow: 0 0 0 4px rgba(226, 90, 24, .18); }
.votebox.is-open { transform: rotate(4deg); transform-origin: 100% 100%; }
.votebox .dmn__pill { font-size: 11px; padding: 5px 10px; }
.votebox .dmn__pill--next { background: #e25a18; border-color: #e25a18; color: #fff; }
.votebox .dmn__pill--done { border-color: #2b7a4b; color: #2b7a4b; background: #dcead6; }
.votebox__big { margin: 0; font-family: var(--f-display); font-weight: 900; font-size: clamp(44px, 5.8vh, 64px); line-height: .95; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.votebox__big small { display: block; font-size: .42em; letter-spacing: .02em; }
.votebox__sub { margin: 0; font: 600 11px/1.35 var(--f-mono); letter-spacing: .03em; text-transform: uppercase; color: #6d6052; }
.votebox__quorum { width: 100%; display: grid; gap: 6px; }
.votebox__bar { position: relative; display: block; height: 12px; border: 2px solid var(--ink); border-radius: 7px; background: #f4ebd8; overflow: hidden; }
.votebox__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w, 0%); background: linear-gradient(90deg, #f5a31a, #e24a12); transition: width .9s var(--ease-out); }
.votebox__bar b { position: absolute; top: -2px; bottom: -2px; left: var(--q, 50%); width: 3px; background: var(--ink); }
.votebox__qtext { font: 600 10.5px/1.35 var(--f-mono); color: #463c33; }
.votebox__qtext b { color: var(--ink); }
.votebox__foot { margin: 0; font: 600 10.5px/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }
.votebox__stamp {
  display: inline-block; margin-top: 4px; padding: 5px 9px 4px; border: 3px solid #e25a18; border-radius: 8px; transform: rotate(-7deg);
  font-family: var(--f-display); font-weight: 900; font-size: 20px; line-height: 1; text-transform: uppercase; color: #e25a18;
}

/* tile 04 in the hero: "Vote now" while a vote is open */
.dmn__cta--vote { padding: 5px 9px 4px; font-size: clamp(12px, 1.7vh, 15px); }

@media (max-width: 900px) {
  .votesec { grid-template-columns: 1fr; justify-items: stretch; }
  /* on a phone the big domino becomes a compact status strip above the title */
  .votebox { order: -1; width: auto; aspect-ratio: auto; margin: 0 12px 6px 0; }
  .votebox.is-open { transform: rotate(-1deg); }
  .votebox__face { position: relative; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 12px; padding: 12px 14px; text-align: left; }
  .votebox__big { font-size: 32px; }
  .votebox__big small { display: inline; margin-left: 8px; }
  .votebox__sub { flex: 1; min-width: 90px; }
  .votebox__quorum { flex-basis: 100%; }
  .votebox__foot { display: none; }
  .opt { padding: 10px 12px 10px 10px; column-gap: 12px; }
  .opt__pct { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .opt, .opt__key, .opt__bar i, .votebox__bar i { transition: none; }
}
