/* New School 99: /vote/. The name box and the four toplist rows are laid out like the game's own Vote window.
   Tokens, the title band, fields and windows come from ns.css. */
.vote { --ptop-img: url("/media/site/sanctum.webp"); --ptop-at: 50% 40%; }
@media (min-width: 1100px) { .vote { --ptop-img: url("/media/site/sanctum-1080.webp"); } }

.vote-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px 48px; align-items: start; margin-top: 8px; }
.vote-in { padding: 18px 18px 20px; }
.vote-form { display: grid; gap: 7px; }
.vote-input { height: 54px; font-size: 20px; font-weight: 700; }
.vote-hint { color: var(--ink-2); font-size: 16px; min-height: 24px; }
.vote-hint.is-bad { color: var(--ember); }
.vote-keep { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 16px; cursor: pointer; width: max-content; max-width: 100%; }
.vote-keep input { width: 18px; height: 18px; margin: 0; accent-color: var(--gold); }

.vote-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.vote-link { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 68px; padding: 10px 12px 10px 16px;
  text-decoration: none; color: var(--ink); background: rgba(13,23,31,.75); border: 1px solid var(--frame); border-left: 3px solid var(--gold); border-radius: 4px; transition: border-color .15s, transform .15s, background-color .15s; }
.vote-what { display: grid; gap: 2px; min-width: 0; }
.vote-site { font-weight: 800; font-size: 22px; line-height: 1.15; }
.vote-state { color: var(--ink-2); font-size: 15px; line-height: 1.3; }
.vote-state:empty { display: none; }
.vote-go { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 6px; font-weight: 800; white-space: nowrap; color: #221604; background: linear-gradient(180deg, #f7d98f, #dba850 55%, #b47f33); box-shadow: 0 1px 0 #fff3c9 inset; }
.vote-go svg { width: 18px; height: 18px; }
.vote-link:not(.is-off):hover { border-color: var(--gold); transform: translateX(3px); background: rgba(24,39,47,.9); }
.vote-link.is-off { cursor: not-allowed; border-left-color: var(--frame-hi); }
.vote-link.is-off .vote-site { color: var(--ink-3); }
.vote-link.is-off .vote-go { background: var(--panel-2); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--frame); }
.vote-link.is-done { border-left-color: var(--frame-hi); }
.vote-link.is-done .vote-go { background: rgba(13,23,31,.72); color: var(--ink); box-shadow: inset 0 0 0 1px var(--frame-hi); }
.vote-tally { margin-top: 14px; padding: 10px 14px; border-left: 3px solid var(--gold); background: rgba(228,184,106,.08); color: var(--ink); font-size: 17px; border-radius: 0 4px 4px 0; }

.vote-side h2 { font-size: 32px; }
.vote-pays { list-style: none; margin: 16px 0 14px; padding: 0; display: grid; gap: 12px; color: var(--ink-2); }
.vote-pays li { position: relative; padding-left: 22px; }
.vote-pays li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); border-radius: 1px; }
.vote-pays b { color: var(--ink); }

/* the streak: seven days and the big one, like the track in the game's Vote window */
.streak { margin-top: clamp(44px, 6vw, 76px); }
.streak-head { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 32px; margin-bottom: 20px; }
.streak-head h2 { font-size: clamp(32px, 4vw, 48px); }
.streak-head p { color: var(--ink-2); max-width: 56ch; }
.streak-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 8px; }
.streak-track li { display: flex; flex-direction: column; gap: 4px; min-height: 136px; padding: 12px 12px 14px; background: linear-gradient(180deg, var(--panel), var(--deep)); border: 1px solid var(--frame); border-top: 3px solid var(--frame-hi); border-radius: 4px; }
.streak-day { font: 800 20px/1.1 var(--text); color: var(--ink-2); }
.streak-track b { font-size: 17px; line-height: 1.2; margin-top: auto; }
.streak-track small { color: var(--ink-2); font-size: 14px; line-height: 1.25; }
.streak-track li:nth-child(7) { border-top-color: var(--gold); }
.streak-big { border-color: var(--bronze) !important; border-top-color: var(--gold-hi) !important; background: linear-gradient(180deg, #2b2110, #17130c) !important; }
.streak-big .streak-day, .streak-big b { color: var(--gold-hi); }

.vote-how { margin-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(56px, 7vw, 96px); }
.vote-how h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 20px; }
.vote-rules { list-style: none; counter-reset: rule; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.vote-rules li { counter-increment: rule; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; color: var(--ink-2); }
.vote-rules li::before { content: counter(rule); font: 700 40px/.95 var(--numeral); color: var(--gold); }
.vote-rules b { color: var(--ink); }
.vote-ask { margin-top: 30px; padding: 18px 20px; max-width: 720px; }
.vote-ask h3 { margin-bottom: 6px; }
.vote-ask p { color: var(--ink-2); }

@media (max-width: 980px) {
  .vote-cols { grid-template-columns: minmax(0, 1fr); }
  .streak-track { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .streak-track li { min-height: 104px; }
  .streak-big { grid-column: span 1; }
  .vote-rules { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .vote-in { padding: 14px 12px 16px; }
  .vote-link { padding: 10px 10px 10px 12px; gap: 10px; }
  .vote-site { font-size: 20px; }
  .vote-go { padding: 10px 12px; }
  .streak-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vote .gwin-note { display: none; }
}
