/*
 * meow: every page that is not the home page (vote, guide, access, update, terms, privacy and the small ones).
 * It sits on top of home.css: the same dark sky, the same bar at the top, the same pills; this file is the reading
 * column, the form pieces and the vote.
 */

body.info, body.error { overflow: auto; }
body.info main, body.error main { position: relative; z-index: 2; }
.info main { padding: calc(var(--top) + 40px) clamp(22px, 4vw, 64px) 40px; }
.info .foot, .error .foot { position: relative; margin-top: 40px; }
.link.here { color: var(--ink); }

/* ------------------------------------------------------------------------- */
/* Reading                                                                   */
/* ------------------------------------------------------------------------- */

.content-asset-container { max-width: 680px; margin: 0 auto; animation: rise 0.7s var(--spring) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.content-asset-container h1 { margin: 0 0 18px; font: 300 clamp(36px, 4.4vw, 56px)/1.05 var(--font); letter-spacing: -0.045em; text-wrap: balance; }
.content-asset-container h2 { margin: 38px 0 8px; font: 600 17px/1.3 var(--font); letter-spacing: -0.02em; }
.content-asset-container p, .content-asset-container li { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
.content-asset-container p { margin: 0 0 14px; }
.content-asset-container ul { margin: 0 0 14px; padding-left: 20px; }
.content-asset-container li { margin-bottom: 8px; }
.content-asset-container strong, .content-asset-container b { color: var(--ink); font-weight: 600; }
.content-asset-container a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }
.content-asset-container code { padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font: 500 12.5px/1.5 var(--mono); color: var(--ink); }
.content-asset-container .cmd { margin: 14px 0 18px; }
.content-asset-container .cmd code { padding: 0; background: none; }

/* ------------------------------------------------------------------------- */
/* Forms and buttons                                                         */
/* ------------------------------------------------------------------------- */

.ch-label { display: block; margin: 24px 0 8px; color: var(--ink-3); font: 600 12px/1.3 var(--font); letter-spacing: 0.04em; text-transform: uppercase; }
.ch-input { display: block; width: 100%; height: 46px; padding: 0 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; transition: box-shadow 0.2s, background-color 0.2s; }
textarea.ch-input { height: auto; padding: 12px 16px; resize: vertical; }
select.ch-input { appearance: none; }
.ch-input::placeholder { color: var(--ink-3); }
.ch-input:focus { outline: none; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.ch-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; margin-top: 18px; padding: 0 22px; border-radius: 999px; background: #f4f4f6; color: #0a0a0b; font: 600 14.5px/1 var(--font); transition: transform 0.35s var(--spring), background-color 0.2s, opacity 0.2s; }
.ch-btn:hover { background: #fff; transform: translateY(-1px); }
.ch-btn:active { transform: scale(0.97); }
.ch-btn:disabled { opacity: 0.35; transform: none; cursor: default; }
.ch-btn--quiet { background: rgba(255, 255, 255, 0.08); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.ch-btn--quiet:hover { background: rgba(255, 255, 255, 0.14); }
label.ch-btn { cursor: pointer; }
.ch-check { display: flex; align-items: flex-start; gap: 12px; margin: 22px 0 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.ch-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: #f4f4f6; }
.req { color: #ff7a7a; }
.err { margin: 10px 0 0; color: #ff7a7a; font-size: 13.5px; }
.note { margin: 10px 0 0; color: var(--ink-3); font: 500 12px/1.5 var(--mono); text-transform: none; }
.live { min-height: 0; }
.bar { height: 6px; margin: 20px 0 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar i { display: block; width: 0; height: 100%; border-radius: 6px; background: #f4f4f6; transition: width 0.4s ease; }

/* the small pages: signing in, no access, not found */
.error main { display: grid; place-items: center; min-height: 100dvh; padding: var(--top) 24px; }
.middle { text-align: center; animation: rise 0.7s var(--spring) both; }
.middle p { margin: 0 0 8px; font: 300 clamp(28px, 4vw, 44px)/1.1 var(--font); letter-spacing: -0.04em; text-transform: none; }
.middle p + p { color: var(--ink-3); font-size: 15px; letter-spacing: 0; }

/* ------------------------------------------------------------------------- */
/* The vote                                                                  */
/* ------------------------------------------------------------------------- */

.vote-when { margin: 0 0 24px; color: var(--ink-3); font: 500 12.5px/1.5 var(--mono); }
.vote-options { display: grid; gap: 10px; margin-top: 8px; }
.vote-gate { display: grid; gap: 10px; justify-items: start; padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); }
.vote-gate b { font: 650 16px/1.3 var(--font); letter-spacing: -0.01em; }
.vote-gate .note { margin: 0; }
.vote-option { display: block; width: 100%; padding: 15px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: 600 16px/1.25 var(--font); letter-spacing: -0.01em; text-align: left; transition: background-color 0.2s, box-shadow 0.2s, transform 0.35s var(--spring); }
.vote-option:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }
.vote-option.is-on { background: #f4f4f6; color: #0a0a0b; box-shadow: none; }
.vote-results { display: grid; gap: 18px; margin-top: 22px; }
.vote-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.vote-name { overflow-wrap: anywhere; font: 600 15px/1.3 var(--font); }
.vote-name em { margin-left: 8px; color: var(--ink-3); font: 500 11px/1 var(--mono); font-style: normal; }
.vote-n { color: var(--ink-3); font: 500 12px/1.4 var(--mono); white-space: nowrap; }
.vote-bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.vote-bar i { display: block; height: 100%; border-radius: 8px; background: #f4f4f6; transition: width 0.6s var(--spring); }
.vote-row.is-mine .vote-bar { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55); }
.vote-winner { margin: 6px 0 8px; padding: 22px 24px; border-radius: 22px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line); }
.vote-winner small { display: block; color: var(--ink-3); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.vote-winner h2 { margin: 8px 0 0; font: 300 clamp(30px, 4vw, 42px)/1.1 var(--font); letter-spacing: -0.04em; overflow-wrap: anywhere; }
.vote-winner .note { margin-top: 10px; }

/* after voting: the clock */
.vote-count { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.vote-count small { display: block; margin-bottom: 8px; color: var(--ink-3); font: 500 11px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }
.vc-row { display: flex; align-items: flex-start; gap: 10px; }
.vc-cell { min-width: 0; text-align: center; }
.vc-cell b { display: block; font: 300 clamp(40px, 7vw, 58px)/1 var(--font); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.vc-cell span { display: block; margin-top: 6px; color: var(--ink-3); font: 500 10.5px/1 var(--mono); text-transform: uppercase; }
.vc-sep { padding-top: 2px; color: var(--ink-3); font-style: normal; font: 300 clamp(36px, 6vw, 50px)/1 var(--font); }
.vote-count.is-final .vc-cell:last-child b { animation: vc-pulse 1s ease-in-out infinite; }
@keyframes vc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* the last hour: a live podium for the top three, and the rest under it */
.pod .vote-count { margin: 0 0 26px; }
.pod-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: var(--ink-3); font: 500 11.5px/1 var(--mono); text-transform: uppercase; }
.pod-live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.pod-live i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5e; animation: pod-blink 1.3s ease-in-out infinite; }
@keyframes pod-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.pod-stage { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 330px; }
.pod-col { position: relative; flex: 1 1 0; min-width: 0; max-width: 33.4%; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; }
.pod-count { font: 300 46px/1 var(--font); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pod-r1 .pod-count { font-size: 68px; font-weight: 300; }
.pod-name { display: flex; align-items: flex-end; justify-content: center; min-height: 34px; margin: 6px 0 10px; font: 600 13px/1.2 var(--font); overflow-wrap: anywhere; }
.pod-name em { margin-left: 6px; color: var(--ink-3); font: 500 9.5px/1 var(--mono); font-style: normal; white-space: nowrap; }
.pod-r1 .pod-name { font-size: 15px; }
.pod-block { display: grid; justify-items: center; align-content: start; padding-top: 12px; border-radius: 16px 16px 0 0; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); transform-origin: 50% 100%; transition: height 0.9s var(--spring); }
.pod-r1 .pod-block { background: #f4f4f6; color: #0a0a0b; box-shadow: none; }
.pod-rank { font: 600 24px/1 var(--font); }
.pod-block.is-kicked { animation: pod-kick 0.55s var(--spring); }
@keyframes pod-kick { 0% { transform: scaleY(0.93); } 100% { transform: none; } }
.pod-col.is-swapped .pod-count, .pod-col.is-swapped .pod-name { animation: pod-swap 0.6s var(--spring); }
@keyframes pod-swap { 0% { opacity: 0; transform: translateY(14px); } 100% { opacity: 1; transform: none; } }
.pod-plus { position: absolute; left: 50%; top: 24px; pointer-events: none; font: 600 22px/1 var(--font); animation: pod-plus 1.4s var(--spring) forwards; }
@keyframes pod-plus { 0% { opacity: 0; transform: translate(-50%, 12px) scale(0.8); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -54px) scale(1.15); } }
.pod-rest { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pod-row { position: relative; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 4px 12px; padding: 14px 6px 12px; border-bottom: 1px solid var(--line); border-radius: 6px; }
.pod-pos { color: var(--ink-3); font: 500 13px/1 var(--mono); }
.pod-rname { font: 600 14.5px/1.3 var(--font); overflow-wrap: anywhere; }
.pod-rname em { margin-left: 6px; color: var(--ink-3); font: 500 10px/1 var(--mono); font-style: normal; }
.pod-rn { font: 300 24px/1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pod-rbar { grid-column: 2 / -1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.pod-rbar i { display: block; width: 0; height: 100%; border-radius: 6px; background: #f4f4f6; transition: width 0.85s var(--spring); }
.pod-row .pod-plus { left: auto; right: 48px; top: 10px; font-size: 16px; transform: none; animation-name: pod-plus-row; }
@keyframes pod-plus-row { 0% { opacity: 0; transform: translateY(8px); } 18% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px); } }
.pod-row.is-flash { animation: pod-flash 0.9s ease-out; }
@keyframes pod-flash { 0% { background: #f4f4f6; color: #0a0a0b; } 100% { background: transparent; color: inherit; } }
.pod-note { margin: 22px 0 0; color: var(--ink-3); font: 500 12px/1.5 var(--mono); }
#pod-vote .vote-options { margin-top: 12px; }

/* the owner's part */
#vote-owner { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
#vote-owner h2 { margin-bottom: 0; }
.vote-owner-list { list-style: none; margin: 20px 0 0; padding: 0; }
.vote-owner-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vote-owner-list li span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 560; }
.vote-owner-list li b { color: var(--ink-3); font: 500 12px/1 var(--mono); }
.vote-owner-list li .vote-count { flex: none; width: 78px; height: 34px; margin: 0; padding: 0 10px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-size: 13px; }
.vote-owner-list li .vote-count:focus { outline: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.vote-owner-list li button { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--ink-2); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.vote-owner-list li button:hover { background: rgba(255, 255, 255, 0.15); color: var(--ink); }

/* applying to be in the next vote */
#vote-apply { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.apply-form .ch-label:first-child { margin-top: 0; }
.apply-state { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.apply-state b { font: 600 15px/1.3 var(--font); }
.apply-state span { color: var(--ink-2); font-size: 14.5px; overflow-wrap: anywhere; }
.apply-state.is-yes { background: rgba(52, 210, 123, 0.1); box-shadow: inset 0 0 0 1px rgba(52, 210, 123, 0.35); }
#vote-apply .ch-btn + .note { margin-top: 12px; }

/* the owner: the order of the options, and the applications */
.content-asset-container .vote-owner-list, .content-asset-container .vote-apps { padding-left: 0; }
.vote-owner-list li span.vo-move { display: flex; flex: none; gap: 4px; }
.vote-owner-list li .vo-move button { display: grid; place-items: center; width: 30px; height: 34px; padding: 0; border-radius: 10px; font-size: 14px; }
.vote-apps-title { margin-top: 44px !important; }
.vote-apps { list-style: none; margin: 14px 0 0; padding: 0; }
.vote-apps li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vote-apps li.is-done { opacity: 0.6; }
.ap-who { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ap-who b { overflow-wrap: anywhere; font-weight: 600; }
.ap-who small { overflow-wrap: anywhere; color: var(--ink-3); font: 500 11.5px/1.4 var(--mono); }
.vote-apps li button { flex: none; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: var(--ink-2); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.vote-apps li button:hover { background: rgba(255, 255, 255, 0.15); color: var(--ink); }
.vote-apps li button.ap-yes { background: #f4f4f6; color: #0a0a0b; box-shadow: none; }
.ap-tag { flex: none; color: var(--ink-3); font: 500 11.5px/1 var(--mono); }
.ap-accepted { color: #34d27b; }

@media (max-width: 480px) {
  .pod-count { font-size: 34px; } .pod-r1 .pod-count { font-size: 50px; } .pod-stage { height: 290px; } .pod-name { font-size: 11px; }
  .vc-row { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .content-asset-container, .middle { animation: none; }
  .pod-live i, .pod-block.is-kicked, .pod-row.is-flash, .vote-count.is-final .vc-cell:last-child b, .pod-col.is-swapped .pod-count, .pod-col.is-swapped .pod-name { animation: none; }
  .pod-block, .pod-rbar i, .vote-bar i { transition: none; }
}
