/* Fan vote on Power Rankings: a live panel and a ballot dialog. Scoped to .fv and .rk-fan-*. */
.fv { display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"head island" "board board"; align-items:center; gap:16px 36px; margin:22px 0 0; padding:18px 20px 16px; background:var(--paper); border:1px solid var(--rk-rule); border-top:3px solid var(--ink); }
.fv-head { grid-area:head; min-width:0; }
.fv-eyebrow { display:block; margin:0 0 6px; line-height:1.5; font-size:11px; font-weight:650; letter-spacing:.09em; text-transform:uppercase; color:var(--orange-dark); }
.fv.is-open .fv-eyebrow::before { content:""; display:inline-block; width:8px; height:8px; margin:0 8px 1px 0; border-radius:50%; background:var(--orange); animation:fv-pulse 2400ms ease-in-out infinite; }
.fv h2 { max-width:24ch; margin:2px 0 0; font-size:clamp(25px,2.7vw,38px); font-weight:750; letter-spacing:-.045em; line-height:1.08; text-wrap:balance; }
.fv-sub { margin:5px 0 0; font-size:13px; line-height:1.5; color:var(--rk-quiet); }
.fv-mine { display:inline-flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; margin:12px 0 0; font-size:14px; font-weight:600; }
.fv-mine span,.fv-pick span,.fv-last span { font-size:10px; font-weight:650; letter-spacing:.09em; text-transform:uppercase; color:var(--rk-quiet); }
/* The countdown and the vote button share one black capsule, like a phone's
   live timer: a ring runs down, thin orange digits roll, and a round-ended
   button sits at the end. */
.fv-island { grid-area:island; display:inline-flex; align-items:center; gap:14px; justify-self:end; min-height:68px; padding:8px 8px 8px 10px; border-radius:999px; background:#000; color:var(--orange); box-shadow:0 10px 30px rgba(12,12,12,.18); transition:transform 520ms cubic-bezier(.3,1.35,.45,1),box-shadow 320ms ease; }
@media (hover:hover) { .fv-island:hover { transform:scale(1.03); box-shadow:0 16px 40px rgba(12,12,12,.26); } }
.fv-ring { flex:none; width:52px; height:52px; transform:rotate(-90deg); }
.fv-ring circle { fill:none; stroke-width:2.2; }
.fv-ring-track { stroke:rgba(255,107,0,.25); }
.fv-ring-fill { stroke:var(--orange); stroke-linecap:round; transition:stroke-dashoffset 900ms linear; }
.fv-clock { display:flex; align-items:baseline; gap:10px; padding-right:4px; }
.fv-clock > span { color:var(--orange); font-size:13px; font-weight:600; white-space:nowrap; }
.fv-count { font-variant-numeric:tabular-nums; }
.fv-clock .fv-count { font-size:38px; font-weight:300; line-height:1; letter-spacing:-.01em; }
.rk-shell .fv-island .fv-cta { min-height:52px; padding:0 24px; border:0; border-radius:999px; background:rgba(255,107,0,.24); color:var(--orange); font-size:15px; font-weight:650; transition:background 220ms ease,color 220ms ease,transform 380ms cubic-bezier(.3,1.4,.45,1); }
.rk-shell .fv-island .fv-cta::after { content:none; }
@media (hover:hover) { .rk-shell .fv-island .fv-cta:hover { background:var(--orange); color:#000; } }
.rk-shell .fv-island .fv-cta:active { transform:scale(.94); background:var(--orange); color:#000; }
.rk-shell .fv-island .fv-cta:focus-visible { outline:3px solid var(--orange); outline-offset:3px; }
.fv-ballot-clock > span { color:var(--rk-quiet); }
.fv-ballot-clock .fv-count { gap:5px; font-size:15px; color:var(--ink); }
.rk-shell .fv-cta,.rk-shell .fv-submit { position:relative; min-height:46px; padding:0 44px 0 22px; border:1px solid var(--ink); background:var(--ink); color:var(--paper); font-size:14px; font-weight:650; letter-spacing:-.01em; transition:background 200ms var(--ease-out),border-color 200ms var(--ease-out); }
.rk-shell .fv-cta::after,.rk-shell .fv-submit::after { content:"→"; position:absolute; right:18px; top:50%; transform:translate(0,-50%); transition:transform 260ms var(--ease-out); }
@media (hover:hover) {
  .rk-shell .fv-cta:hover,.rk-shell .fv-submit:not(:disabled):hover { background:var(--orange-dark); border-color:var(--orange-dark); }
  .rk-shell .fv-cta:hover::after,.rk-shell .fv-submit:not(:disabled):hover::after { transform:translate(4px,-50%); }
}
.rk-shell .fv-cta:focus-visible::after,.rk-shell .fv-submit:focus-visible::after { transform:translate(4px,-50%); }
/* Touch gets the design's own pressed state instead of the browser's grey flash. */
.fv,.fv-ballot { -webkit-tap-highlight-color:transparent; }
.rk-shell .fv-cta:active,.rk-shell .fv-submit:not(:disabled):active { background:var(--orange-dark); border-color:var(--orange-dark); }
.rk-shell .fv-submit:disabled { opacity:.42; cursor:not-allowed; }
.fv-board { grid-area:board; min-width:0; border-top:1px solid var(--rk-rule); padding-top:14px; }
.fv-board:empty { display:none; }
.fv-last { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; max-width:none !important; margin:0 0 12px; font-size:13px; }
.fv-last i { font-style:normal; opacity:.5; }
.fv-tables { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 36px; }
.fv-table h3 { margin:0 0 6px; font-size:10px; font-weight:650; letter-spacing:.09em; text-transform:uppercase; color:var(--rk-quiet); }
.fv-table ol { list-style:none; margin:0; padding:0; }
.fv-table li { display:grid; grid-template-columns:22px minmax(0,1fr) auto 44px; align-items:center; gap:10px; min-height:34px; padding:0 0 0 12px; border-bottom:1px solid var(--dk-ln-e4e4e4, #e4e4e4); box-shadow:inset 3px 0 0 var(--fv-team); font-size:14px; font-variant-numeric:tabular-nums; }
.fv-table-pos { font-weight:700; color:var(--rk-quiet); }
.fv-table-name { font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fv-table-pts { font-size:12px; color:var(--rk-quiet); }
.fv-table-bonus { font-weight:650; color:var(--orange-dark); text-align:right; }
.fv-status { grid-column:1/-1; margin:0; font-size:12px; color:var(--orange-dark); }
.fv-status:empty { display:none; }

/* Ballot */
.fv-ballot { width:min(780px,calc(100% - 32px)); max-width:none; max-height:min(900px,calc(100dvh - 48px)); padding:0; border:1px solid var(--rk-rule); border-top:3px solid var(--ink); border-radius:0; background:var(--paper); color:var(--ink); box-shadow:0 30px 90px rgba(12,12,12,.28); }
.fv-ballot[open] { display:flex; animation:fv-rise 420ms var(--ease-out); }
.fv-ballot::backdrop { background:rgba(12,12,12,.55); backdrop-filter:blur(4px); }
.fv-ballot-form { display:flex; flex-direction:column; width:100%; min-height:0; }
.fv-ballot-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:20px 24px 14px; border-bottom:1px solid var(--rk-rule); }
.fv-ballot-head h2 { margin:0; font-size:28px; font-weight:750; letter-spacing:-.045em; line-height:1.1; }
.fv-ballot-clock { display:flex; align-items:baseline; flex-wrap:wrap; gap:6px; margin:8px 0 0; font-size:12px; font-variant-numeric:tabular-nums; }
.rk-shell .fv-close { flex:none; min-height:40px; padding:6px 14px; font-size:13px; }
.fv-ballot-body { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:6px 24px 22px; }
.fv-group { margin:0; padding:0; border:0; min-width:0; }
/* A floated legend joins normal flow, so the hint sits directly beneath it. */
.fv-group legend { float:left; width:100%; display:flex; align-items:baseline; gap:10px; margin:20px 0 0; padding:0; font-size:17px; font-weight:700; letter-spacing:-.02em; }
.fv-group legend + * { clear:both; }
.fv-step { font-size:11px; font-weight:650; letter-spacing:.09em; color:var(--orange-dark); }
.fv-hint { margin:4px 0 12px; font-size:12px; color:var(--rk-quiet); }
.fv-choices { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:8px; }
.fv-choice { position:relative; display:flex; align-items:center; gap:10px; min-height:58px; padding:9px 12px 9px 17px; border:1px solid var(--rk-rule); background:var(--paper); box-shadow:inset 4px 0 0 var(--fv-team); cursor:pointer; -webkit-tap-highlight-color:transparent; transition:background 200ms var(--ease-out),color 200ms var(--ease-out),border-color 200ms var(--ease-out),transform 200ms var(--ease-out); }
.fv-choice input { position:absolute; width:1px; height:1px; margin:0; opacity:0; }
.fv-choice-copy { display:flex; flex:1; flex-direction:column; gap:2px; min-width:0; }
.fv-choice strong { font-size:15px; font-weight:650; letter-spacing:-.015em; line-height:1.25; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fv-choice small { font-size:11px; line-height:1.35; color:var(--rk-quiet); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fv-choice-code { flex:none; font-size:11px; font-weight:650; letter-spacing:.06em; color:var(--rk-quiet); }
@media (hover:hover) { .fv-choice:hover { background:var(--dk-bg-f1f1f1, #f1f1f1); } }
.fv-choice:has(input:checked) { background:var(--fv-team); color:var(--fv-ink); border-color:var(--fv-team); box-shadow:inset 0 0 0 2px var(--ink); }
.fv-choice:has(input:checked) small,.fv-choice:has(input:checked) .fv-choice-code { color:inherit; opacity:.82; }
.fv-choice:has(input:checked):active { transform:scale(.985); }
.fv-choice:has(input:focus-visible) { outline:3px solid #a33d00; outline-offset:2px; }
.fv-group:disabled .fv-choice { cursor:default; opacity:.55; }
.fv-ballot-foot { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:6px 18px; padding:14px 24px 18px; border-top:1px solid var(--rk-rule); background:var(--dk-bg-f4f4f4, #f4f4f4); }
.fv-pick { display:flex; flex-wrap:wrap; align-items:baseline; gap:3px 8px; max-width:none !important; margin:0; font-size:14px; font-weight:600; }
.fv-ballot-status { grid-column:1/-1; min-height:18px; max-width:none !important; margin:0; font-size:12px; color:var(--rk-quiet); }
.fv-ballot-status.is-error { color:var(--dk-fg-b3261e, #b3261e); }
.rankings-page:has(.fv-ballot[open]) { overflow:hidden; }

/* Fan bonus on the leaderboard */
.rk-power .rk-table small.rk-fan-delta { margin-top:1px; font-size:10px; font-weight:600; letter-spacing:.01em; color:var(--orange-dark); }
.rk-fan-detail { padding-left:12px; border-left:3px solid var(--orange); }

@keyframes fv-pulse { 50% { opacity:.3; } }
@keyframes fv-rise { from { opacity:0; transform:translateY(18px); } }

@media (max-width:860px) {
  .fv { grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "island" "board"; gap:16px; }
  .fv-island { justify-self:start; }
}
@media (max-width:700px) {
  .fv { padding:16px 14px 14px; }
  .fv-tables { grid-template-columns:minmax(0,1fr); gap:14px; }
  .fv-ballot { width:100%; max-height:calc(100dvh - 12px); margin:auto 0 0; }
  .fv-ballot-head { padding:16px 16px 12px; }
  .fv-ballot-head h2 { font-size:24px; }
  .fv-ballot-body { padding:4px 16px 18px; }
  .fv-choices { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .fv-choice { min-height:54px; padding:8px 8px 8px 13px; }
  .fv-choice strong { font-size:14px; }
  .fv-choice-code { display:none; }
  .fv-ballot-foot { grid-template-columns:minmax(0,1fr); padding:12px 16px max(14px,env(safe-area-inset-bottom)); }
  .rk-shell .fv-submit { width:100%; }
}
@media (max-width:520px) {
  .fv-island { justify-self:stretch; max-width:100%; flex-wrap:wrap; gap:10px 12px; padding:10px; border-radius:30px; }
  .fv-ring { width:44px; height:44px; }
  .fv-clock { flex-direction:column; gap:2px; }
  .fv-clock .fv-count { font-size:32px; }
  .rk-shell .fv-island .fv-cta { flex:1 0 100%; }
}
@media (prefers-reduced-motion:reduce) {
  .fv.is-open .fv-eyebrow::before { animation:none; }
  .fv-ballot[open] { animation:none; }
  .fv-island,.fv-ring-fill,.rk-shell .fv-island .fv-cta { transition:none; }
  .fv-choice,.rk-shell .fv-cta,.rk-shell .fv-submit,.rk-shell .fv-cta::after,.rk-shell .fv-submit::after { transition:none; }
}
