/* Voting page. Same plain, large, high-contrast style as the home page. */
.vote{padding-bottom:56px}
.vote-intro{padding:28px 0 8px}
.h3{font-size:1.5rem;font-weight:900;margin:0 0 .4em;letter-spacing:-.01em}
.soft{color:var(--soft);margin:0 0 1em}
.block{margin-top:44px}

.voter{background:var(--bg2);border:1px solid var(--line);border-radius:16px;padding:22px;margin-top:20px;max-width:40em}
.voter .signup-row input{flex:1 1 240px;min-width:0;font:inherit;font-weight:700;color:var(--ink);background:#0a0d17;border:2px solid var(--line);border-radius:12px;padding:15px 16px}
.voter .signup-row input:focus{border-color:var(--cyan);outline:none;box-shadow:0 0 0 3px rgba(72,208,255,.3)}
.voter p{margin:.5em 0 0}
.voter-msg{min-height:1.5em;font-weight:700}
.voter-msg.ok{color:var(--ok)}
.voter-msg.err{color:var(--bad)}
/* (bkn-j7 K9) "Verify you're human" (Cloudflare Turnstile, vote.js): an empty box (0 px) until Cloudflare wants a tick
   (appearance interaction-only); then its tick box in the flow (69 px tall, the form's width; 150 x 144 where the form is
   under 300 px wide), pushing what follows down: never over a button */
.human{max-width:100%}
.human.ask{margin:12px 0 6px}
.votes-left{font-weight:900;color:var(--cyan)}

/* "Your team" (signed in): one slot per vote, each pick as its idle animation (sprite styles in style.css) */
.team{margin-top:18px}
.voter .team-h{font-size:.85rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:var(--cyan);margin:0 0 8px}
.team-slots{list-style:none;margin:0;padding:0;display:grid;gap:8px;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));max-width:calc(var(--slots,3) * 190px)}
.slot{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;background:#0a0d17;border:2px solid var(--line);border-radius:14px;padding:10px 6px 12px}
.slot .stage{height:112px}
.slot .face{align-self:center;width:80px;height:80px;border-radius:12px;background:var(--bg2)}
.slot .nm{position:relative;font-weight:900;font-size:.9rem;line-height:1.2;text-align:center;overflow-wrap:anywhere;-webkit-hyphens:auto;hyphens:auto}
.slot.open{justify-content:center;min-height:150px;padding:10px;border-style:dashed;background:transparent;color:var(--soft);font-weight:700;font-size:.9rem;line-height:1.3;text-align:center}
@media(max-width:520px){ .slot .stage{height:96px} }
.linkish{background:none;color:var(--cyan);padding:0 4px;border-radius:4px;font-weight:700;text-decoration:underline}
.linkish:hover{background:none;color:#fff}

/* portraits are 40x40 pixel art: scale up crisp */
.pix{image-rendering:pixelated;width:80px;height:80px}

.mini{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.mini li{display:flex;align-items:center;gap:8px;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:6px 14px 6px 6px;font-weight:900}
.mini .pix{width:56px;height:56px}

.top-list{list-style:none;margin:0;padding:0;display:grid;gap:8px;max-width:40em;counter-reset:rank}
.top-list li{display:grid;grid-template-columns:2.2em 80px minmax(0,1fr) auto;grid-template-areas:"rank pic nm ct" "rank pic bar bar";align-items:center;column-gap:12px;row-gap:6px;background:var(--bg2);border:1px solid var(--line);border-radius:12px;padding:8px 16px 8px 12px}
.top-list li::before{grid-area:rank;counter-increment:rank;content:counter(rank);font-weight:900;color:var(--cyan);font-size:1.2rem;text-align:center}
.top-list li > .pix,.top-list .pod{grid-area:pic}
.top-list .pix{width:56px;height:56px}
.top-list .nm{grid-area:nm;align-self:end;font-weight:900}
.top-list .ct{grid-area:ct;align-self:end;font-weight:900;color:var(--soft);white-space:nowrap}
/* every row: a bar for its votes as a share of #1's */
.top-list .bar{grid-area:bar;align-self:start;height:8px;border-radius:999px;background:#0a0d17;overflow:hidden}
.top-list .bar i{display:block;height:100%;border-radius:inherit;background:var(--cyan)}
/* podium: #1 gold, #2 silver, #3 bronze, bigger, each with its idle animation (whole-number scale, see vote.js fit) */
.top-list .p1{--medal:#ffd60a}
.top-list .p2{--medal:#d3dbea}
.top-list .p3{--medal:#e6a66a}
.top-list li.podium{grid-template-columns:2.4em 84px minmax(0,1fr) auto;border:2px solid var(--medal);padding:10px 18px 10px 12px}
.top-list li.podium::before{justify-self:center;width:1.9em;height:1.9em;line-height:1.9em;border-radius:50%;background:var(--medal);color:var(--bg)}
.top-list .podium .nm{font-size:1.2rem}
.top-list .p1 .nm{font-size:1.4rem}
.top-list .podium .ct{color:var(--ink)}
.top-list .podium .bar{height:10px}
.top-list .podium .bar i{background:var(--medal)}
.pod{display:flex;width:84px;height:84px;align-items:flex-end}
.pod .stage{height:84px}
.top-list .pod .face{align-self:center;width:72px;height:72px;border-radius:12px;background:#0a0d17}
/* #4 and down: the same idle animations instead of the square portraits, on an 80 px stage (9 in 10 sprites fit at a
   crisp 2x; vote.js caps these rows at 2x so they match); a Pokémon with no animation keeps its portrait, rounded */
.top-list li:not(.podium) .pod,.top-list li:not(.podium) .pod .stage{width:80px;height:80px}
.top-list li:not(.podium){padding-top:4px;padding-bottom:4px}
.top-list li:not(.podium) .pod .stage::before{width:64px;height:18px;bottom:-3px}
.top-list li:not(.podium) .pod .face{width:52px;height:52px;border-radius:10px}
/* while the leaderboard arena shows (vote.js sets #top.fo-on), #1, #2 and #3 are not shown again in the list: they are
   all in the arena (Brian, 2026-10-17: "it doesn't make sense to have him the extra #3 visible since he's visible in the
   top 3 battle"), so it starts at #4. The rows stay in the list for screen readers (visually hidden, like .sr-only), so
   it reads 1 to 20. */
#top.fo-on #top-list > li:nth-child(-n+3){position:absolute;width:1px;height:1px;margin:0;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}

.finder{display:flex;gap:16px;align-items:center;flex-wrap:wrap}
.finder input{flex:1 1 260px;min-width:0;max-width:30em;font:inherit;font-weight:700;color:var(--ink);background:#0a0d17;border:2px solid var(--line);border-radius:12px;padding:15px 16px}
.finder input:focus{border-color:var(--cyan);outline:none;box-shadow:0 0 0 3px rgba(72,208,255,.3)}
.count{margin:0;color:var(--soft);font-weight:700}

/* type filter + type symbols (round 64px PNGs cut from the type-symbol sheet) */
.types,.gens{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0 0}
.gens{margin-top:10px}
.types button,.gens button{display:inline-flex;align-items:center;gap:6px;padding:5px 12px 5px 6px;background:var(--bg2);color:var(--ink);border:2px solid var(--line);border-radius:999px;font-weight:900;font-size:.9rem}
.types button.wide,.gens button{padding:9px 16px}
.types button:hover,.gens button:hover{border-color:var(--cyan);background:var(--bg2);color:var(--cyan)}
.types button[aria-pressed=true],.gens button[aria-pressed=true]{background:var(--cyan);color:var(--bg);border-color:var(--cyan)}
.gens .gn{color:var(--soft);font-weight:700}
.gens button[aria-pressed=true] .gn{color:inherit}
/* the usual type colours: a soft tint on each type chip, solid when pressed (text colours checked for contrast,
   white only where navy on the solid colour is too dark). vote.js sets --tc / --tci / --tc2 from these. */
:root{--t-normal:#a8a77a;--t-fire:#ee8130;--t-water:#6390f0;--t-electric:#f7d02c;--t-grass:#7ac74c;--t-ice:#96d9d6;--t-fighting:#c22e28;--t-poison:#a33ea1;--t-ground:#e2bf65;
  --t-flying:#a98ff3;--t-psychic:#f95587;--t-bug:#a6b91a;--t-rock:#b6a136;--t-ghost:#735797;--t-dragon:#6f35fc;--t-dark:#705746;--t-steel:#b7b7ce;--t-fairy:#d685ad;
  --ti-fighting:#fff;--ti-poison:#fff;--ti-ghost:#fff;--ti-dragon:#fff;--ti-dark:#fff}
@supports (background:color-mix(in srgb,red 50%,blue)){
  .types button.tc{background:color-mix(in srgb,var(--tc) 22%,var(--bg2));border-color:color-mix(in srgb,var(--tc) 65%,var(--bg2))}
  .types button.tc:hover{background:color-mix(in srgb,var(--tc) 36%,var(--bg2));border-color:var(--tc);color:var(--ink)}
}
.types button.tc[aria-pressed=true]{background:var(--tc);border-color:var(--tc);color:var(--tci)}
.types button.tc[aria-pressed=true] .tico{box-shadow:0 0 0 2px rgba(255,255,255,.85)}
/* "My votes" (signed in, once there is a pick): shows only the voter's picks */
.mine-chip{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;background:var(--bg2);color:var(--cyan);border:2px solid var(--cyan);border-radius:999px;font-weight:900;font-size:.95rem}
.mine-chip:hover{background:var(--bg2);color:#fff;border-color:#fff}
.mine-chip[aria-pressed=true]{background:var(--cyan);color:var(--bg)}
.mine-n{min-width:1.6em;padding:0 6px;border-radius:999px;background:var(--cyan);color:var(--bg);text-align:center;font-size:.85em}
.mine-chip[aria-pressed=true] .mine-n{background:var(--bg);color:var(--cyan)}
.tico{display:block;border-radius:50%}
.ticos{display:inline-flex;gap:4px;margin-left:8px;vertical-align:middle}
.top-list .nm{display:inline-flex;align-items:center;flex-wrap:wrap}
.mini .ticos{margin-left:2px}
.numrow{display:flex;align-items:center;justify-content:center;gap:8px}
.card .numrow .ticos{margin-left:0}
.letters{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0 22px}
.letters button{padding:9px 0;min-width:2.6em;background:var(--bg2);color:var(--ink);border:2px solid var(--line);border-radius:10px;font-weight:900}
.letters button:hover{border-color:var(--cyan);background:var(--bg2);color:var(--cyan)}
.letters button[aria-pressed=true]{background:var(--cyan);color:var(--bg);border-color:var(--cyan)}
.letters button.wide{padding-inline:16px}

.grid{list-style:none;margin:0;padding:0;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
.card{background:linear-gradient(90deg,var(--tc,var(--line)),var(--tc2,var(--tc,var(--line)))) top/100% 4px no-repeat,var(--bg2);border:2px solid var(--line);border-radius:14px;padding:12px;display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;content-visibility:auto;contain-intrinsic-size:auto 230px}
.card .pix{border-radius:12px}   /* the portraits' light-green squares get round corners */
.card .num{font-size:.8rem;color:var(--soft);font-weight:700}
.card .name{font-weight:900;line-height:1.2;min-height:2.4em;display:flex;align-items:center}
.card button{width:100%;padding:11px 8px;border-radius:10px;font-size:.95rem}
.card.mine{border-color:var(--cyan);box-shadow:0 0 0 2px rgba(72,208,255,.25)}
.card.mine button{background:var(--ok);color:var(--bg)}
/* ballot full: the other cards' buttons step back (a click explains how to take a vote back) */
.card button.full{background:transparent;color:var(--soft);border:2px solid var(--line);padding:9px 6px}
.card button.full:hover{background:transparent;color:var(--ink);border-color:var(--soft)}
.card.in-beta{opacity:.9}
.badge{display:block;width:100%;padding:11px 8px;border-radius:10px;background:#0a0d17;border:1px solid var(--line);color:var(--ok);font-weight:900;font-size:.9rem}
.empty{grid-column:1/-1;color:var(--soft);padding:12px 0}

@media(max-width:520px){
  .grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
  /* phones: the same 80 px stage (sprites stay 2x), the name gets the whole top line, the count sits beside the bar */
  .top-list li,.top-list li.podium{grid-template-columns:1.7em 80px minmax(0,1fr) auto;grid-template-areas:"rank pic nm nm" "rank pic bar ct";column-gap:8px;row-gap:4px}
  .top-list li{padding:4px 12px 4px 6px}
  .top-list li.podium{padding:6px 12px 6px 6px}
  .top-list .ct{align-self:center;font-size:.95rem}
  .top-list .bar{align-self:center}
  .top-list .pix{width:48px;height:48px}
  .pod,.pod .stage,.top-list li:not(.podium) .pod,.top-list li:not(.podium) .pod .stage{width:80px;height:80px}
  .top-list .pod .face{width:56px;height:56px}
  .top-list .podium .nm{font-size:1.05rem}
  .top-list .p1 .nm{font-size:1.2rem}
  .gens button{padding:7px 11px;font-size:.85rem}
}

.limit-note{display:inline-block;font-weight:900;color:var(--bg);background:var(--cyan);border-radius:999px;padding:6px 14px;margin:0}
.limit-note:empty{display:none}

/* "Not out yet" line under the intro (same message as the home page notice and its Play here warning) */
.notout-line{display:flex;align-items:flex-start;gap:10px;margin:0 0 1em;max-width:40em;color:var(--soft);font-weight:700;font-size:.95rem;line-height:1.45}
.notout-line .dot{flex:none;margin-top:.45em}
/* (bkn-t T9, K6-16) "Find your Pokémon" under it: a quiet outlined pill that jumps to the list (#browse) */
.jump-line{margin:0 0 1em}
.jump{display:inline-block;font-weight:900;text-decoration:none;border:2px solid var(--line);border-radius:999px;padding:8px 18px;min-height:44px}
.jump:hover{border-color:var(--cyan)}
#browse{scroll-margin-top:12px}

/* "Share my picks" (signed in, once there is a pick) */
.voter .share-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:16px}
.share-btn{padding:11px 20px;font-size:1rem}
.share-msg{font-weight:700;color:var(--ok);overflow-wrap:anywhere}

/* votes-left bar: fixed to the bottom while the voter box is off screen; vote.js pads the page by its height */
.votebar{position:fixed;left:0;right:0;bottom:0;z-index:30;background:#0a0d17;border-top:2px solid var(--cyan);box-shadow:0 -12px 32px rgba(0,0,0,.5);padding:8px var(--gutter) calc(8px + env(safe-area-inset-bottom,0px))}
.vb-in{max-width:calc(1100px - 2 * var(--gutter));margin:0 auto;display:grid;grid-template-columns:auto minmax(0,1fr) auto;grid-template-areas:"picks left go" "msg msg msg";align-items:center;column-gap:14px}
.vb-picks{grid-area:picks;list-style:none;margin:0;padding:0;display:flex;gap:4px}
.vb-picks li{display:flex;width:40px;height:40px}
.vb-picks .stage{height:40px}
.vb-picks .stage::before{width:34px;height:12px;bottom:-3px}
.vb-picks .face{align-self:center;width:40px;height:40px;border-radius:8px}
.vb-picks .open{border:2px dashed var(--line);border-radius:10px}
.vb-left{grid-area:left;margin:0;font-weight:900;color:var(--cyan);line-height:1.25}
.vb-go{grid-area:go;padding:10px 18px;font-size:.95rem;border-radius:999px;white-space:nowrap}
.vb-msg{grid-area:msg;margin:6px 0 0;font-size:.9rem;font-weight:700;line-height:1.35;color:var(--soft)}
.vb-msg:empty{display:none}
.vb-msg.ok{color:var(--ok)}
.vb-msg.err{color:var(--bad)}
@media(max-width:560px){
  .vb-in{column-gap:10px}
  .vb-picks li,.vb-picks .stage{width:32px;height:32px}
  .vb-picks .face{width:32px;height:32px}
  .vb-left{font-size:.95rem}
  .vb-go{padding:9px 14px;font-size:.9rem}
}
@media(max-width:380px){
  .vb-in{grid-template-columns:auto minmax(0,1fr);grid-template-areas:"left left" "picks go" "msg msg";row-gap:6px}
  .vb-go{justify-self:end}
}

/* mini battle (battle/battle.css, panel mode; bkn-panel sitting 2): shut, its Battle! row sits under Your team, across the
   whole box; open, it has the box to itself (#voter.battling: the rest of the box steps aside, the heading stays for
   screen readers). The box is the battle's frame (battle.css: no card of its own). The status line stays, under the
   battle: a vote made from the cards while the battle is open says "Vote saved" (or why not) there, and screen readers
   hear it (the bar under the screen stays away while this box is on screen) */
.voter #battle{margin-top:18px}
.voter.battling #battle{margin-top:0}
.voter.battling > #voter-h{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.voter.battling > .closed-line,.voter.battling > .cd-mini,.voter.battling #voter-in > :not(#battle){display:none}
@media(max-width:360px){ .voter{padding:18px 12px} }

/* the voter box takes focus after signing in (so screen readers hear it); no ring round the whole box for that */
#voter-in:focus{outline:none}

/* ---------- Desktop, 1024 px and up (2026-10-16, Brian: "for web browser it might be better next to your vote box
   rather than directly under it. On mobile it makes sense") ----------
   The page is wider (header, main, footer and the votes-left bar all line up at 1480 px). Without a team (signed out,
   no picks) the intro and the vote box are centred, so nothing sits lopsided. Most wanted and Find a Pokémon follow
   below at full width, with more columns. */
@media (min-width:1024px){
  .page-wide .top,.page-wide main.wrap,.page-wide footer .wrap{max-width:1480px}
  .page-wide .vb-in{max-width:calc(1480px - 2 * var(--gutter))}
  .vote-intro{text-align:center}
  .vote-intro .lead{margin-left:auto;margin-right:auto}
  .vote-intro .notout-line{justify-content:center;margin-left:auto;margin-right:auto;text-align:left}
  .voter{margin-left:auto;margin-right:auto}

  /* Most wanted: the banner centred on top (wider than on phones, not so wide the two stand far apart), the list in
     two columns below it (numbers run down each column) */
  #top .fo{max-width:960px;margin-left:auto;margin-right:auto;margin-bottom:18px}
  .top-list{display:block;max-width:none;columns:2;column-gap:16px}
  .top-list li{break-inside:avoid;margin:0 0 8px}
  .finder input{max-width:36em}
}
@media (min-width:1700px){ .top-list{columns:3} }
/* ---------- One panel (bkn-panel sitting 2; Brian, 2026-10-17: "Couldnt the left one overlap the right one? because then
   once you've voted etc. It shows your three Pokemon with a BATTLE button underneath which switch to the little
   battlefield"; it replaces round 2's vote box | battle side by side). With a team the vote box is the whole width: your
   vote and your team, then Battle! across all of it; Battle! turns the box into the battle at the same width (about
   twice the room the battle had beside the vote box), "Back to your team" turns it back. On a computer the team view
   is two columns: the lines about your vote on the left, Your team on the right; Battle! and Share my picks across
   under both (the order the page reads in, as on a phone) */
.voter.has-battle{max-width:none}
@media (min-width:1024px){
  .voter.has-battle:not(.battling) #voter-in{display:grid;column-gap:32px;align-items:start;
    grid-template-columns:minmax(0,1fr) minmax(0,calc(var(--slots,3) * 190px))}
  .voter.has-battle:not(.battling) #voter-in > *{grid-column:1}
  .voter.has-battle:not(.battling) #voter-in > .team{grid-column:2;grid-row:1 / span 3;margin-top:0}
  .voter.has-battle:not(.battling) #voter-in > #battle,.voter.has-battle:not(.battling) #voter-in > .share-row{grid-column:1 / -1}
}
/* ---------- Signed out (2026-10-16, "join the list, confirm your email, then vote" made obvious) ----------
   The 3 steps first (style.css .steps), then the two paths: "New here?" + Join the list (/join), "Already joined? Enter
   your email". After a check, an answer box instead of a red line: not on the list (cyan) or almost there (yellow). */
.howto{margin:-4px -10px 12px;padding:4px 10px 6px;border-radius:14px}
@supports (background:color-mix(in srgb,red 50%,blue)){ .voter .steps{--now-bg:color-mix(in srgb,#ffd60a 9%,var(--bg2))} }
.howto:focus{outline:none}
.howto.flash{animation:howtoflash 2.4s ease-out 1}
@keyframes howtoflash{0%{background:transparent;box-shadow:0 0 0 2px rgba(255,214,10,0)}12%,55%{background:rgba(255,214,10,.22);box-shadow:0 0 0 2px #ffd60a}100%{background:transparent;box-shadow:0 0 0 2px rgba(255,214,10,0)}}
@media (prefers-reduced-motion:reduce){ .howto.flash{animation:none;box-shadow:0 0 0 2px #ffd60a} }
.voter .path-new{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0 0 12px}
.path-h{font-weight:900;color:var(--ink)}
.join-btn{padding:12px 22px;border-radius:12px}
.voter .path-old{display:block;margin:0 0 8px;padding-top:12px;border-top:1px solid var(--line)}
.vhelps{margin:0}
.vhelp{margin-top:14px;padding:14px 16px 16px;background:#0a0d17;border:2px solid var(--cyan);border-radius:14px;color:var(--soft);font-size:.98rem;line-height:1.45}
.vhelp.vh-unconf{border-color:#ffd60a}
.voter .vhelp p{margin:.55em 0 0}
.voter .vhelp .vhelp-h{margin:0;color:var(--ink);font-weight:900;font-size:1.08rem;line-height:1.3}
.vhelp strong{color:var(--ink)}
.vhelp-btn{padding:12px 22px;font-size:1rem}
.vh-unconf .vhelp-btn{background:#ffd60a}
.vh-unconf .vhelp-btn:hover{background:#fff}
.voter .vhelp-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin-top:.8em}
.vhelp-note{font-weight:700;color:var(--ink);font-size:.95rem}
.vhelp-note:empty{display:none}
.vhelp-alt{font-size:.92rem}
.vhelp .linkish{font-size:inherit}
@media (max-width:360px){ .vhelp{padding:12px 12px 14px} .howto{margin-left:-6px;margin-right:-6px;padding-left:6px;padding-right:6px} .voter .path-new{column-gap:10px} .join-btn{padding:11px 15px} .path-h{font-size:.95rem} }
/* signed out, nothing to say yet: no empty message line at the bottom of the box ("Checking…" adds it when needed) */
#voter-form:not([hidden]) ~ .voter-msg:empty{display:none}
/* the vote box, when a button brings it up (a vote click while signed out, "See my votes"), stops a little below the top edge */
#voter{scroll-margin-top:12px}
#top-note .nw{white-space:nowrap}         /* "1,230 Trainers", "3,443 votes", "Updated live." never break inside on a phone */
#top-note strong{color:var(--ink)}
/* "Sorry!" pop-up for a Pokémon with no 8-direction sprite sheet yet (the shared .modal look from style.css + its portrait) */
.nosprite .ns-face{display:block;width:80px;height:80px;border-radius:12px;image-rendering:pixelated;margin:0 0 12px}
/* Giants and Legendaries (2026-10-18; vote.js paintTag): "GIANT / all 3 votes" under the name, two short lines so it fits a
   320 px phone's card (the " · " between them is for screen readers and tests only); the same tag under the name in
   Your team. The swap pop-up: the team now (dimmed) -> the team after */
.cost{--kc:#ffb86b;display:flex;flex-direction:column;align-items:center;max-width:100%;padding:2px 10px 3px;border:1.5px solid var(--kc);border-radius:10px;
  background:rgba(5,7,14,.45);color:var(--kc);font-size:.75rem;font-weight:700;line-height:1.25;cursor:default}
.cost b{font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.cost .dot{display:none}
.cost[data-kind=legendary]{--kc:#d9bfff}
.cost[data-kind=mythical]{--kc:#ffa6dc}
.slot .cost{margin-top:-2px}
/* the tag makes a card 43 px taller: a card not yet drawn (content-visibility) must guess that too, or rows of them
   (Gen 9 is full of Legendaries) grow as they come on screen and a jump to the end of the page lands short */
.card:has(> .cost){contain-intrinsic-size:auto 273px}
.swap .sw-faces{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 12px}
.swap .sw-team{display:flex;flex-wrap:wrap;gap:4px}
.swap .sw-team img{width:56px;height:56px;border-radius:10px}
.swap .sw-from img{opacity:.5;filter:grayscale(.6)}
.swap .sw-arrow{font-size:1.5rem;font-weight:900;color:var(--cyan)}

/* ---------- Voting rounds (2026-10-17, Brian: "the Champion to be announced, Voting closed, expandable box to show the
   top 20 ... the #1 goes on to the wall of fame as confirmed for the Public Beta"). vote.js draws all of it. ---------- */
/* Brian's preview of a close (#preview=<key>): a plain dashed bar that only his tab shows */
.preview-bar{margin:16px 0 0;padding:10px 14px;border:2px dashed #ffd60a;border-radius:12px;background:rgba(255,214,10,.08);font-weight:700;line-height:1.4}
.preview-bar.bad{border-color:var(--bad);background:none}
/* the Champion announcement, at the top while a round is closed: gold, big sprite, the facts in large type */
.champ{position:relative;overflow:hidden;margin:20px auto 0;max-width:44em;padding:16px 20px 18px;border:2px solid #ffd60a;border-radius:18px;
  background:radial-gradient(ellipse at 50% 0%,rgba(255,214,10,.2),transparent 65%),var(--bg2);box-shadow:0 14px 44px rgba(255,214,10,.12)}
.champ-kicker{margin:0 0 6px;text-align:center;font-weight:900;font-size:.85rem;letter-spacing:.14em;text-transform:uppercase;color:#ffd60a}
.champ-card{display:grid;grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center;gap:6px}
.champ-art{position:relative;display:flex;align-items:flex-end;justify-content:center;width:180px;height:172px}
.champ-art .stage{height:172px;z-index:1}
.champ-art .stage::before{background:radial-gradient(closest-side,rgba(255,214,10,.5),rgba(255,214,10,.18) 55%,rgba(255,214,10,0))}
.champ-art .face{position:relative;z-index:1;align-self:center;width:120px;height:120px;border-radius:16px;image-rendering:pixelated;background:#0a0d17}
/* soft gold rays behind the sprite; they turn slowly only for visitors who haven't asked for less motion */
.champ-art::before{content:"";position:absolute;left:50%;top:50%;width:230px;height:230px;margin:-115px 0 0 -115px;border-radius:50%;
  background:repeating-conic-gradient(rgba(255,214,10,.16) 0 9deg,transparent 9deg 22deg);
  -webkit-mask:radial-gradient(closest-side,#000 35%,transparent);mask:radial-gradient(closest-side,#000 35%,transparent)}
@media (prefers-reduced-motion:no-preference){
  .champ-art::before{animation:champrays 24s linear infinite}
  .champ .champ-name{animation:champin .6s ease-out 1}
  @keyframes champrays{to{transform:rotate(360deg)}}
  @keyframes champin{from{transform:scale(.86);opacity:0}to{transform:none;opacity:1}}
}
.champ-text p{margin:0}
.champ-h{margin:0;font-size:1rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#ffd60a}
.champ-name{font-size:clamp(2rem,9vw,3rem);font-weight:900;line-height:1.05;letter-spacing:-.02em;color:var(--ink);overflow-wrap:anywhere}
.champ-votes{margin-top:4px!important;font-weight:900;font-size:1.08rem;color:var(--ink)}
.champ-2{margin-top:2px!important;color:var(--soft);font-weight:700;font-size:.92rem}
.champ-2[hidden]{display:none}
.champ-beta,.fame-b{display:inline-flex;align-items:center;gap:8px;margin-top:10px!important;padding:6px 14px;border-radius:999px;background:#ffd60a;color:#0f121e;font-weight:900;font-size:.95rem;line-height:1.25}
.tick{font-weight:900}
.champ-next{margin:14px 0 0;text-align:center;font-weight:700;color:var(--soft)}
@media (min-width:560px){
  .champ-card{grid-template-columns:auto minmax(0,1fr);justify-items:start;text-align:left;column-gap:22px;align-items:center}
}
/* co-Champions (a tie for #1, rounds part 2): their sprites side by side over the rays, the words centred under them */
.champ.co .champ-card{grid-template-columns:minmax(0,1fr);justify-items:center;text-align:center}
.champ-art.co{width:min(100%,calc(var(--n,2) * 150px));gap:4px}
.champ-art.co .stage{flex:1 1 0;min-width:0}
.champ-art.co::before{width:300px;height:230px;margin-left:-150px}
.fame-co{color:var(--ink);font-weight:700;font-size:.9rem}
/* "See the round N top 20": a real <details>, closed at first */
.champ-top,.fame-top{margin-top:14px;border:1px solid var(--line);border-radius:14px;background:#0a0d17}
.champ-top > summary,.fame-top > summary{cursor:pointer;padding:12px 16px;font-weight:900;color:var(--cyan);border-radius:14px;list-style-position:inside}
.champ-top > summary:hover,.fame-top > summary:hover{color:#fff}
.champ-top[open] > summary,.fame-top[open] > summary{border-bottom:1px solid var(--line);border-radius:14px 14px 0 0}
/* the top 20 rows: rank, sprite (80 px stage: 2x for most, as in Most wanted), name + type symbols, "412 votes · 18%",
   a bar against #1, and the best round when it was another one */
.rtop{list-style:none;margin:0;padding:8px;display:grid;gap:6px}
.rtop li{display:grid;grid-template-columns:1.8em 80px minmax(0,1fr);grid-template-areas:"rk pic nm" "rk pic ct" "rk pic bar" "rk pic rr";align-items:center;column-gap:10px;row-gap:2px;
  padding:4px 12px 6px 6px;border-radius:10px;background:var(--bg2);border:1px solid var(--line);text-align:left}
.rtop li.first{border-color:#ffd60a}
.rtop .rk{grid-area:rk;text-align:center;font-weight:900;color:var(--cyan)}
.rtop li.first .rk{color:#ffd60a}
.rtop .pod{grid-area:pic;display:flex;width:80px;height:80px;align-items:flex-end}
.rtop .pod .stage{height:80px}
.rtop .pod .stage::before{width:64px;height:18px;bottom:-3px}
.rtop .pod .face{align-self:center;width:52px;height:52px;border-radius:10px;background:#0a0d17;image-rendering:pixelated}
.rtop .nm{grid-area:nm;align-self:end;display:flex;align-items:center;flex-wrap:wrap;font-weight:900;line-height:1.2}
.rtop .ct{grid-area:ct;font-weight:900;color:var(--ink);font-size:.95rem;line-height:1.3}
.rtop .ct .pc{font-weight:700;color:var(--soft)}
.rtop .bar{grid-area:bar;height:8px;margin:3px 0 1px;border-radius:999px;background:#0a0d17;overflow:hidden}
.rtop .bar i{display:block;height:100%;border-radius:inherit;background:var(--cyan)}
.rtop li.first .bar i{background:#ffd60a}
.rtop .rr{grid-area:rr;align-self:start;font-size:.8rem;font-weight:700;color:var(--soft)}
.rtop .ticos{margin-left:6px}
@media (min-width:1024px){ .champ-top .rtop,.fame-top .rtop{grid-template-columns:1fr 1fr} }
@media (max-width:400px){ .champ{padding-left:12px;padding-right:12px} .rtop{padding:6px} .rtop li{grid-template-columns:1.4em 80px minmax(0,1fr);column-gap:6px;padding-right:8px} }

/* while a round is closed: the kind line at the top of the vote box */
.closed-line{margin:0 0 12px!important;padding:10px 14px;border-radius:12px;border:2px solid #ffd60a;background:rgba(255,214,10,.08);color:var(--ink);font-weight:900;line-height:1.35}

/* Wall of Fame: each round's Champion as a gold card, then "Confirmed by Big Kid Nation" (beta.json) */
.wall-list{list-style:none;margin:0;padding:0;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,330px),1fr))}
.fame{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;align-items:start;padding:14px;border:2px solid #ffd60a;border-radius:16px;background:var(--bg2)}
.fame-art{display:flex;width:96px;height:104px;align-items:flex-end}
.fame-art .stage{height:104px}
.fame-art .stage::before{background:radial-gradient(closest-side,rgba(255,214,10,.45),rgba(255,214,10,0))}
.fame-art .face{align-self:center;width:80px;height:80px;border-radius:12px;background:#0a0d17;image-rendering:pixelated}
.fame-text p{margin:0}
.fame-r{font-size:.8rem;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:#ffd60a}
.fame-n{display:flex;align-items:center;flex-wrap:wrap;font-size:1.35rem;font-weight:900;line-height:1.15;overflow-wrap:anywhere}
.fame-n .ticos{margin-left:8px}
.fame-v{font-weight:900;color:var(--ink)}
.fame-d{color:var(--soft);font-size:.9rem;font-weight:700}
.fame-b{font-size:.78rem;padding:4px 10px;margin-top:8px!important}
.fame-top{grid-column:1/-1}
.fame .fame-top{margin-top:12px}
@media (max-width:400px){ .fame{grid-template-columns:72px minmax(0,1fr);gap:10px;padding:12px} .fame-art,.fame-art .stage{width:72px;height:84px} .fame-art .face{width:64px;height:64px} }
/* "Most loved Champion" (Brian's review15 pick): one line over the entries, in the ❤️'s pink */
.wall-loved{margin:0 0 12px;padding:8px 14px;border:2px solid #ff5d8f;border-radius:12px;background:rgba(255,93,143,.08);font-weight:900;line-height:1.35;overflow-wrap:anywhere}
.wall-loved .lv-n{color:#ff8fb1}
.wall-beta{margin-top:18px}
.wall-sub{margin:0 0 .3em;font-size:1.1rem;font-weight:900}

/* a card's round record and a past Champion's "Already in!" stamp (instead of its vote button) */
.card .rec{font-size:.78rem;font-weight:700;line-height:1.3;color:var(--soft)}
.stamp{display:flex;flex-direction:column;align-items:center;width:100%;padding:7px 6px;border:3px double #ffd60a;border-radius:10px;color:#ffd60a;transform:rotate(-3deg);line-height:1.15}
.stamp b{font-size:1rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.stamp small{font-size:.75rem;font-weight:700;color:var(--ink)}
.card.won{border-color:#ffd60a}
/* the kind answer in a pressed card (e.g. "Voting is closed for now ...") */
.card-note{margin:0;font-size:.82rem;font-weight:700;line-height:1.35;color:var(--ink)}
.card-note:empty{display:none}
.card button[aria-disabled=true]{cursor:default}
.rtop .ct .pc{white-space:nowrap}
@media (max-width:400px){ .champ-beta{font-size:.85rem;padding:6px 12px} .champ-top > summary,.fame-top > summary{font-size:.95rem;padding:11px 12px} }

/* The countdown (vote.js; a round with a closing time): the gold pill near the top (.countdown, style.css), the time it
   closes under it, and a small line in the voter box */
.cd-at{margin:0 0 1em;color:var(--soft);font-weight:700;font-size:.9rem}
.cd-mini{display:flex;align-items:center;gap:8px;margin:0 0 12px!important;font-weight:900;color:var(--ink)}
.countdown[hidden],.cd-at[hidden],.cd-mini[hidden]{display:none}
/* closed, the Champion not known yet: "Counting the votes…" (no art, no pill, no top 20) */
.champ.counting .champ-art,.champ.counting .champ-beta,.champ.counting .champ-top,.champ.counting .champ-next:empty{display:none}

/* Rounds part 3 (2026-10-18): last round's ribbons (a SILVER rosette with the place on the cards of last round's top 20;
   the Champion keeps its gold "Already in!"), the "Last round's top 20" chip, the So close line, the head-start
   sentence, both numbers ("290 votes + 32 head start"), the top-20 line under Most wanted, and the voter's past picks */
.card{position:relative}
/* the ribbon: a silver pill "#2 last round" under the name (review11; it was a corner rosette in part 3) */
.ribbon{display:inline-flex;align-items:center;gap:5px;padding:3px 10px 3px 4px;border-radius:999px;cursor:default;
  background:linear-gradient(#f1f4f9,#bcc6d6);border:1px solid #7f8ca3;box-shadow:0 1px 3px rgba(0,0,0,.4);
  color:#0f121e;font-size:.75rem;font-weight:700;line-height:1.2;white-space:nowrap}
.ribbon::before{content:"";flex:none;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0,#d3dbea 45%,#7f8ca3 100%);box-shadow:0 0 0 1.5px #7f8ca3}
.ribbon b{font-weight:900}
/* rows stay even: each card stretches to its row's tallest, and the button (or stamp / badge) sits along the bottom */
.card > button,.card > .stamp,.card > .badge{margin-top:auto}
.top20-chip{color:#d3dbea;border-color:#a9b5c9}
.top20-chip:hover{color:#fff;border-color:#fff}
.top20-chip[aria-pressed=true]{background:#d3dbea;color:var(--bg);border-color:#d3dbea}
.top20-chip .rosette{display:inline-block;width:14px;height:14px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff 0,#d3dbea 45%,#7f8ca3 100%);box-shadow:0 0 0 1.5px #7f8ca3}
.so-close{display:inline-block;margin:0 0 .7em;padding:7px 14px;border:2px solid #7f8ca3;border-radius:12px;background:rgba(211,219,234,.08);font-weight:700;color:var(--ink);line-height:1.35}
.so-close strong{color:#d3dbea;font-weight:900}
.hs-line{margin:0 0 1em;color:var(--soft);font-weight:700;font-size:.95rem;max-width:36em;line-height:1.4}
.so-close[hidden],.hs-line[hidden],.top-cut[hidden]{display:none}
@media (min-width:1024px){ .vote-intro .hs-line{margin-left:auto;margin-right:auto} }
.top-list .ct .hs,.rtop .ct .hs{font-weight:700;color:var(--soft);white-space:nowrap}
.top-list .podium .ct .hs{color:var(--soft)}
/* (bkn-panel sitting 4) a 320 px phone: "5 votes + 1 head start" on one line made the row 17 px wider than the screen
   (sideways scroll); there the head start goes under the votes, right-aligned */
@media (max-width:359px){ .top-list li.has-hs .ct{white-space:normal;text-align:right} .top-list li.has-hs .ct .hs{display:block} }
.top-cut{max-width:40em;margin:12px 0 0;padding-top:8px;border-top:2px dashed #7f8ca3;color:#d3dbea;font-weight:900;font-size:.9rem;line-height:1.35;text-align:center}
@media (min-width:1024px){ .top-cut{max-width:none} }
/* Your voting history (bkn-panel sitting 4): a quiet fold where rounds part 3's one past-picks line was; shut until opened */
.hist{margin:0 0 12px;border:1px solid var(--line);border-radius:12px;background:#0a0d17}
.hist[hidden]{display:none}
.hist > summary{cursor:pointer;padding:9px 14px;font-weight:900;color:var(--cyan);border-radius:12px;list-style-position:inside;font-size:.95rem}
.hist > summary:hover{color:#fff}
.hist-count{color:var(--soft);font-weight:700;font-size:.85rem}
.hist[open] > summary{border-bottom:1px solid var(--line);border-radius:12px 12px 0 0}
.hist .hist-life{margin:0;padding:10px 14px 2px;font-weight:900;color:var(--ink);line-height:1.35}
.hist-list{list-style:none;margin:0;padding:0 14px 10px}
.hist-round{padding:10px 0 4px}
.hist-round + .hist-round{border-top:1px dashed var(--line)}
.hist-h{margin:0 0 6px;font-size:.95rem;font-weight:900;color:var(--ink)}
.hist-when{color:var(--soft);font-weight:700}
.hist .backed{margin:0 0 6px;color:#ffd60a;font-weight:900}
/* each pick: its portrait, the name, and under it where it finished ("#3 · 7 votes", "Champion · 15 votes", "#1 so far") */
.hist-picks{list-style:none;margin:0;padding:0;display:grid;gap:6px;grid-template-columns:repeat(auto-fill,minmax(min(100%,200px),1fr))}
.hist-picks li{display:grid;grid-template-columns:40px minmax(0,1fr);grid-template-areas:"pic nm" "pic at";align-items:center;column-gap:10px;min-width:0}
.hist-picks .pix{grid-area:pic;width:40px;height:40px;border-radius:8px}
.hist-picks .nm{grid-area:nm;align-self:end;font-weight:900;line-height:1.2;overflow-wrap:anywhere}
.hist-picks .at{grid-area:at;align-self:start;color:var(--soft);font-weight:700;font-size:.85rem;line-height:1.3}
.hist-champ{color:#ffd60a;font-weight:900}

/* Most wanted: This round / All time (bkn-panel sitting 4). The switch is small and quiet; All time swaps the list (and
   the face-off, the counter line, the top-20 line, #21-#23) for the all-time rows; each row is a fold with its round by
   round line */
.board-sw{display:inline-flex;margin:0 0 10px;border:1px solid var(--line);border-radius:999px;padding:2px;background:#0a0d17}
.board-sw[hidden]{display:none}
.board-sw button{padding:5px 12px;border:0;border-radius:999px;background:transparent;color:var(--soft);font-weight:900;font-size:.85rem}
.board-sw button:hover{color:var(--ink);background:transparent}
.board-sw button[aria-pressed=true]{background:var(--bg2);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
#top.all > #top-note,#top.all > #faceoff,#top.all > #top-list,#top.all > #top-cut,#top.all > #top-near{display:none}
.top-all[hidden]{display:none}
#top .all-note{max-width:40em;font-size:.92rem;margin:0 0 10px}
.all-list{list-style:none;margin:0;padding:0;display:grid;gap:8px;max-width:40em;align-items:start}
.all-list > li{min-width:0;background:var(--bg2);border:1px solid var(--line);border-radius:12px}
.all-list summary{display:grid;grid-template-columns:2.6em 48px minmax(0,1fr) auto;grid-template-areas:"pl pic nm ct" "pl pic bar bar" "pl pic rd rd";
  align-items:center;column-gap:10px;row-gap:3px;padding:6px 14px 6px 8px;cursor:pointer;list-style:none;border-radius:12px}
.all-list summary::-webkit-details-marker{display:none}
.all-list summary:hover .nm{color:#fff}
.all-list .pl{grid-area:pl;font-weight:900;color:var(--cyan);font-size:1.05rem;text-align:center}
.all-list .pix{grid-area:pic;width:48px;height:48px}
.all-list .nm{grid-area:nm;display:inline-flex;align-items:center;flex-wrap:wrap;gap:0 2px;font-weight:900;min-width:0;overflow-wrap:anywhere}
.all-list .ct{grid-area:ct;font-weight:900;color:var(--ink);white-space:nowrap}
.all-list .bar{grid-area:bar;height:6px;border-radius:999px;background:#0a0d17;overflow:hidden}
.all-list .bar i{display:block;height:100%;border-radius:inherit;background:var(--cyan)}
.all-list .rd{grid-area:rd;color:var(--soft);font-weight:700;font-size:.82rem}
.all-list .rd::after{content:" ▸";content:" ▸" / "";color:var(--cyan)}   /* (the arrow is drawn, never read out) */
.all-list details[open] .rd::after{content:" ▾";content:" ▾" / ""}
.all-badge{margin-left:6px;padding:1px 8px;border-radius:999px;background:#ffd60a;color:var(--bg);font-size:.72rem;font-weight:900;white-space:nowrap}
.all-badge.beta{background:var(--ok,#5ce08b)}
.all-list .all-per{margin:0;padding:6px 14px 10px calc(2.6em + 8px + 10px);border-top:1px solid var(--line);color:var(--ink);font-weight:700;font-size:.9rem;line-height:1.45}
@media (max-width:560px){
  .all-list summary{grid-template-columns:2.2em 40px minmax(0,1fr) auto;grid-template-areas:"pl pic nm nm" "pl pic ct ct" "pl pic bar bar" "pl pic rd rd";column-gap:8px;padding:6px 10px 6px 4px}
  .all-list .pix{width:40px;height:40px}
  .all-list .ct{font-size:.9rem}
  .all-list .all-per{padding:6px 10px 10px 12px}
}
@media (min-width:1024px){
  .all-list{max-width:none;grid-template-columns:1fr 1fr;grid-auto-flow:column;grid-template-rows:repeat(var(--rows,10),auto);column-gap:16px}
  #top .all-note{max-width:none}
}

/* Most wanted #21-#23 (Brian's review11 tick, 2026-10-18): under the top-20 line, dimmed, "Just outside"; numbered 21-23
   (the list's own counter starts at 20). Hover or focus brings a row back to full strength. */
.top-near{margin:10px 0 0}
.top-near[hidden]{display:none}
.top-near-h{margin:0 0 6px;color:var(--soft);font-weight:900;font-size:.8rem;letter-spacing:.1em;text-transform:uppercase;text-align:center;max-width:40em}
.top-out{counter-reset:rank 20}
.top-out li{opacity:.55;border-style:dashed;transition:opacity .2s}
.top-out li:hover{opacity:.85}
@media (min-width:1024px){ .top-near-h{max-width:none} }
/* the reactions on the Champion announcement follow its text: centred on phones and for co-Champions, left beside the art */
.champ-card .reacts{justify-content:center}
@media (min-width:560px){ .champ:not(.co) .champ-card .reacts{justify-content:flex-start} }

/* ---------- phase 3 Sitting 2: the trophy shelf, Top Trainers, the PIN (vote.js renderShelf / renderTT / pinAsk) ---------- */
.shelf .shelf-stats{margin:0;padding:10px 14px 4px;font-weight:900;color:var(--ink);line-height:1.4}
.shelf .shelf-stats .shelf-champ{color:#ffd60a}
/* (bkn-p3a-fix F1) the first Lv 100's day; a trophy that just landed glows for a moment (vote.js shelfAuto) */
.shelf .shelf-stats .shelf-100{color:#9dff7a}
.shelf-row li.shelf-new{border-color:#ffd60a;box-shadow:0 0 0 2px #ffd60a,0 0 16px 4px rgba(255,214,10,.45);animation:shelfNew 1.2s ease-in-out 3}
.shelf .shelf-stats .shelf-new{text-shadow:0 0 10px rgba(255,214,10,.9)}
@keyframes shelfNew{50%{box-shadow:0 0 0 2px #ffd60a,0 0 4px 1px rgba(255,214,10,.2)}}
@media (prefers-reduced-motion:reduce){.shelf-row li.shelf-new{animation:none}}
.shelf-part{padding:6px 14px 4px}
.shelf-part[hidden]{display:none}
.shelf-h{margin:6px 0 6px;font-size:.85rem;font-weight:900;color:var(--soft);text-transform:uppercase;letter-spacing:.04em}
.shelf-row{list-style:none;margin:0;padding:0;display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}
.shelf-row li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:2px;padding:8px 4px 6px;border:1px solid var(--line);border-radius:12px;background:#0f1424;min-width:0}
.shelf-row .art{width:64px;height:64px;display:flex;align-items:flex-end;justify-content:center}
.shelf-row canvas,.shelf-row img{image-rendering:pixelated;max-width:64px;max-height:64px}
.shelf-row .nm{font-weight:900;font-size:.85rem;line-height:1.2;overflow-wrap:anywhere;color:var(--ink)}
.shelf-row .at{font-size:.75rem;font-weight:700;color:var(--soft)}
.shelf-row .shiny{border-color:#ffd60a;background:radial-gradient(circle at 50% 35%,rgba(255,214,10,.18),rgba(15,20,36,0) 70%),#0f1424}
.shelf-row .shiny .nm::before{content:"✦ ";color:#ffd60a}
.shelf-me{border-top:1px dashed var(--line);margin-top:8px;padding-bottom:12px}
.shelf-name{margin:0 0 6px;font-weight:900;color:var(--ink);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.shelf-name img{width:32px;height:32px;border-radius:8px}
.shelf-name .none{color:var(--soft);font-weight:700}
.shelf-btns{margin:0 0 4px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.shelf-btns button{min-height:44px}
.shelf-msg{margin:0;min-height:1.2em;color:var(--soft);font-weight:700;font-size:.9rem}
.shelf-save{margin:0 0 6px;color:var(--soft);font-weight:700;line-height:1.4}
.shelf-save.warn{color:#ffb37a;font-weight:800}   /* ((bkn-box B2) kept on this device only: the warning (rules.js FEATURES.saveLine) */
.tt-tabs{margin:10px 14px 4px}
.tt-list{list-style:none;margin:0;padding:4px 14px 6px;counter-reset:tt}
.tt-list li{display:grid;grid-template-columns:2.2em 32px minmax(0,1fr) auto;align-items:center;gap:8px;padding:5px 0;border-bottom:1px dashed var(--line);counter-increment:tt}
.tt-list li::before{content:"#" counter(tt);font-weight:900;color:var(--soft);font-size:.85rem}
.tt-list li.me{color:#ffd60a}
.tt-list img{width:32px;height:32px;border-radius:8px}
.tt-list .nm{font-weight:900;overflow-wrap:break-word}
.tt-list .n{font-weight:900;color:var(--cyan)}
/* (the merge sitting, 2026-10-20) a narrow list puts the count under the name, so the name gets the row's width: beside
   "12 in a row" a phone's names took 3 lines at 390 and up to 11 at 320, broken mid-word */
.tt-list{container:ttl / inline-size}
@container ttl (max-width:420px){
  .tt-list li{grid-template-columns:2.2em 32px minmax(0,1fr);row-gap:0}
  .tt-list li::before,.tt-list img{grid-row:span 2}
  .tt-list .nm{align-self:end}
  .tt-list .n{grid-column:3;align-self:start;font-size:.9rem}
}
/* (bkn-p3a-fix F2) Report on another trainer's row: small, quiet, still a 44 px tap target on a phone; first press asks */
.tt-list li.has-rep{grid-template-columns:2.2em 32px minmax(0,1fr) auto auto}
.tt-rep{min-height:36px;padding:4px 10px;font-size:.78rem;font-weight:800;color:var(--soft);background:transparent;border:1px solid var(--line);border-radius:999px}
.tt-rep:hover,.tt-rep.ask{color:#ffd60a;border-color:#ffd60a;background:transparent}   /* ((bkn-t V14) background: style.css's button:hover white under yellow text) */
.tt-rep:disabled{opacity:.7;color:var(--soft);border-color:transparent}
@media (pointer:coarse){ .tt-rep{min-height:44px} }
/* a narrow list: the name keeps the whole row; Report sits under it, beside the count (beside the name it squeezed a
   long one-word name into a break mid-word at 390) */
@container ttl (max-width:420px){
  .tt-list li.has-rep{grid-template-columns:2.2em 32px minmax(0,1fr) auto}
  .tt-list li.has-rep .nm{grid-column:3 / span 2}
  .tt-list li.has-rep .n{grid-column:3;grid-row:2}
  .tt-list li.has-rep .tt-rep{grid-column:4;grid-row:2;align-self:center}
}
/* (bkn-t V14) Report opens the reasons under its row (vote.js ttOpen): the whole row's width, the three reasons and Cancel
   wrapping onto as many lines as they need (each word kept whole), never past the row at 320 */
.tt-list li.asking,.tts .tt-list li.asking.has-rep{border-color:#ffd60a}
.tt-why{grid-column:1 / -1;margin:6px 0 2px;padding:10px 10px 8px;border-radius:10px;background:var(--bg2);border:1px solid var(--line);min-width:0}
.tt-why-q{margin:0 0 8px;font-weight:800;font-size:.9rem;color:var(--ink);overflow-wrap:anywhere}
.tt-why-bs{display:flex;flex-wrap:wrap;gap:8px}
.tt-why-b,.tt-why-x{flex:1 1 auto;min-height:44px;max-width:100%;padding:6px 14px;font:inherit;font-size:.86rem;font-weight:800;line-height:1.25;white-space:normal;color:var(--ink);background:transparent;border:1px solid var(--line);border-radius:999px}
.tt-why-b:hover,.tt-why-b:focus-visible{color:#ffd60a;border-color:#ffd60a;background:transparent}
.tt-why-x{flex:0 1 auto;color:var(--soft);border-color:transparent;text-decoration:underline}
.tt-why-x:hover{color:var(--ink);background:transparent}
.tt-msg{margin:0;padding:0 14px;min-height:0;color:#ffd60a;font-weight:700;font-size:.9rem}
.tt-msg:empty{display:none}
/* (F2) the trainer name box: type one, or roll one */
.name-form{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.name-form input{flex:1 1 12em;min-width:0;min-height:44px;font:inherit;font-weight:700;color:var(--ink);background:#0a0d17;border:2px solid var(--line);border-radius:12px;padding:8px 12px}
.name-form input:focus{border-color:var(--cyan);outline:none}
.name-form button{min-height:44px}
/* (F4) the box only shows a roll (no 18+ answer): it reads as the name on offer, not a place to type */
.name-form[hidden],.name-age[hidden]{display:none}
.name-form input[readonly]{background:transparent;border-style:dashed}
.name-real{margin:-2px 0 8px;color:#ffd60a;font-weight:700;font-size:.9rem}
.name-age{margin:0 0 8px;padding:10px 12px;border:2px solid var(--line);border-radius:12px;background:#0a0d17}
.name-age p{margin:0 0 8px;font-weight:700;color:var(--ink);line-height:1.4}
.name-age .shelf-btns{margin:0}
.tt-note{margin:0;padding:4px 14px 12px;color:var(--soft);font-weight:700;font-size:.85rem;line-height:1.4}
.fame-tt{margin:6px 0 0;font-weight:700;color:var(--soft);line-height:1.5}
.fame-tt strong{display:block;color:#ffd60a}
.fame-tt img{display:inline-block;width:24px;height:24px;border-radius:6px;vertical-align:middle;margin:0 4px 0 0}
.fame-tt-who{white-space:nowrap}
/* (bkn-bling, Brian 2026-10-21: "make it shimmer a yellow sparkle lol ... Give me the bling") the official Big Kid Nation
   trainer's name (vote.js trainerName; the server's flag): the site's yellow, a slow light sweep across it once every 6 s
   and three small ✦ that twinkle in turn, then a 😎 kept on the name's last line. Calm: no blinking, nothing moves the
   layout (the sparkles sit on top, out of the flow). Reduced motion: no sweep, no sparkles; the yellow and the 😎 stay */
.bling-who{color:#ffd60a}
.bling{position:relative;color:#ffd60a;filter:drop-shadow(0 0 5px rgba(255,214,10,.35))}
@supports ((-webkit-background-clip:text) or (background-clip:text)){
  .bling-nm{background:linear-gradient(105deg,#ffd60a 0%,#ffd60a 42%,#fff8d6 50%,#ffd60a 58%,#ffd60a 100%) 100% 0 / 300% 100% no-repeat;
    -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:blingSweep 6s ease-in-out infinite}
}
.bling-sp{position:absolute;font-style:normal;font-size:.62em;line-height:1;color:#fff3b0;opacity:0;pointer-events:none;animation:blingTwinkle 6s ease-in-out infinite}
.bling-sp::before{content:"\2726"}
.bling-sp.s1{top:-.55em;left:-.35em}
.bling-sp.s2{top:-.45em;right:.1em;animation-delay:2s}
.bling-sp.s3{bottom:-.35em;left:46%;animation-delay:4s}
@keyframes blingSweep{0%{background-position:100% 0}35%,100%{background-position:0 0}}
@keyframes blingTwinkle{0%,100%{opacity:0;transform:scale(.4) rotate(0)}10%{opacity:1;transform:scale(1) rotate(25deg)}22%{opacity:0;transform:scale(.4) rotate(50deg)}}
/* the Wall of Fame keeps an icon and its name together (.fame-tt-who); the official name may still break between its
   words there (at 320 "Big Kid Nation 😎" ran 9 px past the card on one line); the 😎 stays with the last word */
.fame-tt-who .bling-who{white-space:normal;overflow-wrap:anywhere}
.shelf-name .bling-who{min-width:0;overflow-wrap:anywhere}   /* (a long name with no spaces: broken rather than past the edge) */
.tt-list li.official{background:linear-gradient(90deg,rgba(255,214,10,.09),rgba(255,214,10,0) 75%)}
@media (prefers-reduced-motion:reduce){
  .bling-nm{animation:none;background:none;-webkit-text-fill-color:#ffd60a;color:#ffd60a}
  .bling-sp{display:none}
}
.pin .pin-label{display:block;font-weight:900;margin:0 0 6px}
.pin .pin-in{font:inherit;font-size:2rem;font-weight:900;letter-spacing:.5em;width:7.5em;max-width:100%;padding:8px 12px;border-radius:12px;border:2px solid var(--line);background:#0a0d17;color:var(--ink);text-align:center}
.pin .pin-in:focus{border-color:var(--cyan);outline:none}
.pin .pin-msg{min-height:1.3em;margin:8px 0 0;font-weight:700}
.pin .pin-msg.err{color:#ff8a8a}
.pin .pin-help{margin:12px 0 0;color:var(--soft);font-weight:700;font-size:.9rem;line-height:1.4}
.pin .pin-help[hidden]{display:none}
/* (bkn-p3a-fix F1) the PIN typed twice when it is set or changed, and the note to remember it */
.pin .pin-again{margin:12px 0 0}
.pin .pin-again[hidden],.pin .pin-warn[hidden]{display:none}
.pin .pin-warn{margin:10px 0 0;padding:8px 12px;border-left:3px solid #ffd60a;border-radius:6px;background:rgba(255,214,10,.08);color:var(--ink);font-weight:700;font-size:.9rem;line-height:1.4}
.voter.has-battle:not(.battling) #voter-in > .shelf,.voter.has-battle:not(.battling) #voter-in > .tt{grid-column:1 / -1}
/* (phase 3 part 2, J1) the Kanto journey on the vote page: "You caught this Pokémon!" (a Poké Ball in the card's corner,
   x2 / x3 for more), and the shelf's Kanto adventure part (Gym badges, the Pokédex count) */
.card .caught{position:absolute;top:10px;right:8px;display:inline-flex;align-items:center;gap:3px;padding:2px;border-radius:999px;background:rgba(10,13,23,.8);line-height:1}
.card .caught i{display:block;width:18px;height:18px;border-radius:50%;border:2px solid #1c1e26;box-sizing:border-box;
  background:radial-gradient(circle,#fff 0 2.5px,#1c1e26 3px 4.5px,transparent 5px),linear-gradient(180deg,#e8443a 0 44%,#1c1e26 44% 56%,#f2f2f2 56%)}
.card .caught b{padding-right:5px;font-size:.85rem;font-weight:900;color:#fff}
.shelf-dex{margin:6px 0 4px;font-weight:900;color:var(--ink)}
/* the shelf's Gym badges: the eight Kanto badges at 48 px, the same shapes as battle.css's .jr-bigbadge (keep the two in
   step): drawn on ::before (--shape, --face, --mask) so the glow follows the shape. 1 Boulder (grey octagon) is the default */
.gym-badge{position:relative;display:block;width:48px;height:48px;filter:drop-shadow(0 0 6px rgba(255,214,10,.5));
  --shape:polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%);--face:radial-gradient(circle at 34% 28%,#fff 0 8%,#a9adb8 34%,#6a6f7c 72%,#3c404a 100%)}
.gym-badge::before{content:"";position:absolute;inset:0;clip-path:var(--shape);background:var(--face);-webkit-mask:var(--mask,none);mask:var(--mask,none)}
.gym-badge[data-n="2"]{--shape:polygon(50% 2%,50.8% 2.9%,53.3% 5.7%,57.4% 10.3%,62.8% 16.4%,68.9% 23.8%,75.2% 32.2%,80.9% 41.4%,85.5% 51%,88.4% 60.6%,89.2% 69.8%,87.7% 78.2%,83.7% 85.6%,77.5% 91.7%,69.5% 96.3%,60.1% 99.1%,50% 100%,39.9% 99.1%,30.5% 96.3%,22.5% 91.7%,16.3% 85.6%,12.3% 78.2%,10.8% 69.8%,11.6% 60.6%,14.5% 51%,19.1% 41.4%,24.8% 32.2%,31.1% 23.8%,37.2% 16.4%,42.6% 10.3%,46.7% 5.7%,49.2% 2.9%);--face:radial-gradient(circle at 40% 54%,#fff 0 7%,#a8dcff 22%,#3d9be8 50%,#1d5fb4 76%,#123a78 100%)}
.gym-badge[data-n="3"]{--shape:polygon(50% 0%,61.9% 21.4%,85.4% 14.6%,78.6% 38.1%,100% 50%,78.6% 61.9%,85.4% 85.4%,61.9% 78.6%,50% 100%,38.1% 78.6%,14.6% 85.4%,21.4% 61.9%,0% 50%,21.4% 38.1%,14.6% 14.6%,38.1% 21.4%);--face:radial-gradient(circle at 50% 50%,transparent 0 15%,rgba(140,60,0,.5) 18% 21%,transparent 24%),radial-gradient(circle at 36% 32%,#fff 0 7%,#ffe77a 22%,#ffb12b 48%,#e0700f 74%,#9a4306 100%)}
.gym-badge[data-n="4"]{--shape:polygon(61.1% 23.2%,71.7% 12.5%,79.5% 11.6%,85.4% 14.6%,88.4% 20.5%,87.5% 28.3%,76.8% 38.9%,91.9% 38.8%,98% 43.7%,100% 50%,98% 56.3%,91.9% 61.2%,76.8% 61.1%,87.5% 71.7%,88.4% 79.5%,85.4% 85.4%,79.5% 88.4%,71.7% 87.5%,61.1% 76.8%,61.2% 91.9%,56.3% 98%,50% 100%,43.7% 98%,38.8% 91.9%,38.9% 76.8%,28.3% 87.5%,20.5% 88.4%,14.6% 85.4%,11.6% 79.5%,12.5% 71.7%,23.2% 61.1%,8.1% 61.2%,2% 56.3%,0% 50%,2% 43.7%,8.1% 38.8%,23.2% 38.9%,12.5% 28.3%,11.6% 20.5%,14.6% 14.6%,20.5% 11.6%,28.3% 12.5%,38.9% 23.2%,38.8% 8.1%,43.7% 2%,50% 0%,56.3% 2%,61.2% 8.1%);--face:radial-gradient(circle at 34% 28%,rgba(255,255,255,.9) 0 5%,rgba(255,255,255,0) 24%),radial-gradient(circle closest-side,#fff6c4 0 14%,#f5c542 26%,#c07a14 33%,transparent 37%),radial-gradient(circle at 38% 34%,transparent 28%,rgba(0,0,0,.4) 100%),conic-gradient(from -22.5deg,#ff5a5a 0 45deg,#ffa53a 0 90deg,#ffe14a 0 135deg,#62d36b 0 180deg,#3fc6e8 0 225deg,#4a7dff 0 270deg,#a46bff 0 315deg,#ff6fc8 0)}
.gym-badge[data-n="5"]{--shape:polygon(50% 26.8%,50.3% 24.9%,51.9% 20%,56% 13.8%,62.7% 8.4%,71.6% 5.7%,81.2% 6.9%,89.8% 12%,95.8% 20.1%,98% 29.8%,95.8% 39.9%,89.8% 49.7%,81.2% 58.8%,71.6% 67.3%,62.7% 75.2%,56% 82.4%,51.9% 88.4%,50.3% 92.4%,50% 93.8%,49.7% 92.4%,48.1% 88.4%,44% 82.4%,37.3% 75.2%,28.4% 67.3%,18.8% 58.8%,10.2% 49.7%,4.2% 39.9%,2% 29.8%,4.2% 20.1%,10.2% 12%,18.8% 6.9%,28.4% 5.7%,37.3% 8.4%,44% 13.8%,48.1% 20%,49.7% 24.9%);--face:radial-gradient(circle at 30% 24%,#fff 0 5%,#ffaccd 14%,#f2589b 38%,#c42f72 68%,#7e1747 100%)}
.gym-badge[data-n="6"]{--shape:circle(50%);--mask:radial-gradient(closest-side,transparent 0 28%,#000 30% 54%,transparent 56% 68%,#000 70%);--face:radial-gradient(circle at 34% 28%,#fff 0 8%,#ffe28a 24%,#e3ac2e 52%,#a56c10 78%,#5e3d06 100%)}
.gym-badge[data-n="7"]{--shape:polygon(54% 0%,60% 8%,65% 16%,68% 24%,70% 33%,74% 25%,79% 16%,83% 10%,86% 19%,89% 30%,92% 42%,94% 55%,92% 69%,87% 80%,79% 89%,68% 95%,56% 98.5%,44% 98.5%,32% 95%,22% 89%,14% 80%,9% 69%,7% 57%,8% 45%,11% 33%,15% 22%,19% 29%,24% 37%,28% 27%,34% 17%,41% 9%,48% 3%);--face:radial-gradient(circle at 38% 44%,rgba(255,255,255,.6) 0 4%,rgba(255,255,255,0) 16%),radial-gradient(ellipse 62% 58% at 50% 72%,#fff6c0 0 10%,#ffd04a 30%,#ff7a1e 58%,#e0361a 84%,#a3170c 100%)}
.gym-badge[data-n="8"]{--shape:polygon(82.1% 11.7%,86.9% 21.6%,89.4% 32.2%,89.8% 43.2%,87.8% 53.9%,83.7% 64.1%,77.6% 73.1%,69.7% 80.8%,60.4% 86.6%,50.2% 90.4%,39.3% 91.9%,28.4% 91.2%,17.9% 88.3%,13.1% 78.4%,10.6% 67.8%,10.2% 56.8%,12.2% 46.1%,16.3% 35.9%,22.4% 26.9%,30.3% 19.2%,39.6% 13.4%,49.8% 9.6%,60.7% 8.1%,71.6% 8.8%);--face:linear-gradient(130deg,transparent 48%,rgba(14,70,30,.55) 49.3% 50.7%,transparent 52%),radial-gradient(circle at 36% 30%,#fff 0 7%,#b4f59a 22%,#4cbd57 50%,#228a3a 76%,#0f5223 100%)}
.shelf-row .badge-won .art{align-items:center}
.shelf-row[hidden]{display:none}
/* (J3) the Hall of Fame: one row a Champion team, the day over its six portraits (a shiny one ringed in gold) */
.shelf-fame{list-style:none;margin:0;padding:0;display:grid;gap:8px}
/* (J5) the Hall of Fame's keep rule, said where the list shows; the first team and the starred ones in solid gold; a legend's try */
.shelf-fame-line{margin:0 0 8px;color:#ffe27a;font-weight:800;font-size:.85rem;line-height:1.4}
.shelf-fame li.first,.shelf-fame li.starred{border-width:2px;background:radial-gradient(ellipse at 50% 0%,rgba(255,214,10,.3),rgba(15,20,36,0) 70%),#0f1424}
.shelf-row .legend{border-color:#ffd60a}
.shelf-row .legend .at{color:#ffd60a;font-weight:900}
.shelf-fame li{display:grid;gap:4px;padding:8px 10px;border:1px solid #ffd60a;border-radius:12px;background:radial-gradient(ellipse at 50% 0%,rgba(255,214,10,.16),rgba(15,20,36,0) 70%),#0f1424}
.shelf-fame .at{font-size:.8rem;font-weight:900;color:#ffd60a}
.shelf-fame .team{display:flex;flex-wrap:wrap;gap:4px}
.shelf-fame .mon{display:flex;flex-direction:column;align-items:center;font-size:.72rem;font-weight:800;color:var(--soft);min-width:40px}
.shelf-fame .mon img{image-rendering:pixelated;width:36px;height:36px;max-width:none;object-fit:contain}   /* (J3) small faces in a row (a wider rule drew them 64 px+) */
.shelf-fame .mon.shiny img{border-radius:50%;box-shadow:0 0 0 2px #ffd60a}
.catch-chip .ball{display:block;width:16px;height:16px;border-radius:50%;border:2px solid #1c1e26;box-sizing:border-box;
  background:radial-gradient(circle,#fff 0 2px,#1c1e26 2.5px 4px,transparent 4.5px),linear-gradient(180deg,#e8443a 0 44%,#1c1e26 44% 56%,#f2f2f2 56%)}

/* ---------- (bkn-access, Brian's approved mock-up) Top Trainers for everyone: a strip under the vote box. The top 3 as
   a podium (gold, silver, bronze), your own row under them when you're further down (signed in), "See all 20" opens the
   rest (#tt.all). The rows are the list's own (.tt-list: the narrow layout, Report, the official sparkle as built) ---------- */
.tts{max-width:40em;margin:20px auto 0;padding:16px 18px 14px;border:2px solid rgba(255,214,10,.55);border-radius:16px;background:radial-gradient(ellipse at 50% 0%,rgba(255,214,10,.1),transparent 65%),var(--bg2)}
@media (min-width:1024px){ .tts{max-width:52em} }
.tts-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 12px;margin:0 0 10px}
.tts-h{margin:0;font-size:1.3rem;font-weight:900;line-height:1.2}
.tts-h small{display:block;font-size:.82rem;color:var(--soft);font-weight:700;letter-spacing:0}
.tts .tt-tabs{margin:0}
.tts .tt-list{padding:0;display:grid;gap:8px}
.tts .tt-list li{border-bottom:0;padding:6px 10px 6px 6px;border-radius:12px;background:#0a0d17;border:2px solid var(--line)}
.tts .tt-list li:nth-child(-n+3){border-color:var(--medal)}
.tts .tt-list li:nth-child(1){--medal:#ffd60a}
.tts .tt-list li:nth-child(2){--medal:#d3dbea}
.tts .tt-list li:nth-child(3){--medal:#e6a66a}
.tts .tt-list li[data-rank]::before{content:"#" attr(data-rank)}
.tts .tt-list li:nth-child(-n+3)::before{content:attr(data-rank);justify-self:center;display:grid;place-items:center;width:1.9em;height:1.9em;border-radius:50%;background:var(--medal);color:var(--bg);font-size:.95rem}
.tts .tt-list li.me{border-color:var(--cyan);background:rgba(72,208,255,.08)}
.tts .tt-list li.me::before{color:var(--cyan)}
.tts:not(.all) .tt-list li:nth-child(n+4):not(.me){display:none}
/* (collapsed) your own row further down: a gap above it says the rows between are folded away */
.tts:not(.all) .tt-list li.me:nth-child(n+5){margin-top:14px;position:relative}
.tts:not(.all) .tt-list li.me:nth-child(n+5)::after{content:"···";position:absolute;left:0;right:0;top:-18px;text-align:center;color:var(--soft);font-weight:900;letter-spacing:.3em;line-height:1}
.tts .tt-msg,.tts .tt-note{padding-left:0;padding-right:0}
.tts-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 14px;margin:12px 0 0}
.tts-foot .tt-note{margin:0;padding:0;flex:1 1 16em;font-size:.92rem}
.tts-all{font:inherit;font-weight:900;color:var(--cyan);background:transparent;border:2px solid var(--cyan);border-radius:999px;padding:9px 18px;min-height:44px;white-space:nowrap}
.tts-all:hover{background:var(--cyan);color:var(--bg)}

/* (bkn-access) after a Quick battle win: where you stand on Most wins (vote.js rankLine, in the battle's win box) */
.rankline{display:flex;align-items:flex-start;gap:10px;margin:0 0 10px;padding:10px 14px;border-radius:12px;border:2px solid #ffd60a;background:rgba(255,214,10,.1);font-weight:900;line-height:1.35;color:var(--ink);text-align:left}
.rankline .cup{flex:none;font-size:1.25rem;line-height:1.1}
.rankline b{color:#ffd60a}
.rankline small{display:block;font-weight:700;color:var(--soft);font-size:.86rem;margin-top:2px}
.rankline.up b{color:var(--ok,#7ee787)}
.bb-rank[hidden]{display:none}
.bb-rank{flex:1 1 100%;min-width:0}
.bb-rank .rankline{margin:0}

/* ---------- (bkn-access) /play: the Kanto adventure on a page of its own (the guest taster; play.js) ---------- */
.play-page{padding-bottom:48px}
.play-head{padding:24px 0 14px;max-width:46em}
.play-head .eyebrow{margin-bottom:.4em}
.adv-h{margin:0 0 .3em;font-size:clamp(1.8rem,5vw,2.6rem);font-weight:900;line-height:1.15;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px}
.guest{padding:3px 12px;border-radius:999px;border:1px solid var(--line);background:#0a0d17;color:var(--soft);font-weight:900;font-size:.9rem;letter-spacing:0}
.play-lead{margin:0;color:var(--soft);font-weight:700;line-height:1.5}
.play-lead a{font-weight:900;white-space:nowrap}
.play-msg{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--bg2);font-weight:900;text-align:center}
/* the box: the adventure's frame alone (the frame has its own sound / speed / zoom / full screen); Quick battle's
   pieces never show here (no team on this page), only the adventure button's "resting" words if it doesn't answer */
.play-box.bb > .bb-top{display:none}
.play-box.bb > .bb-start > .bb-go,.play-box.bb > .bb-start > .bb-hint,.play-box.bb > .bb-start > .bb-note{display:none}
.play-box[hidden]{display:none}
/* ((bkn-qw 4a, play.html's switch "pl-hold") the box's room for the adventure's frame (100dvh, battle.css .bb-advf.on) plus the
   box's own edges (18 px padding x 2, the border, the frame's 4 px margin: 42 px; a short window's 12 px padding: 30) from the
   first paint, before battle.js has made it a box, and while the frame loads; resting (no frame) it shrinks to its button */
.play-box.pl-hold:not(.bb),.play-box.pl-hold.bb-advf-on{min-height:calc(100vh + 42px);min-height:calc(100dvh + 42px)}
.play-box.pl-hold:not(.bb){margin-top:18px}   /* (battle.css .bb's own margin, before it is one) */
@media (max-height:480px) and (min-width:480px){ .play-box.pl-hold:not(.bb),.play-box.pl-hold.bb-advf-on{min-height:calc(100vh + 30px);min-height:calc(100dvh + 30px)} }
/* the card at Viridian City */
.taster{position:relative;margin:6px 0 18px;padding:20px 18px 18px;border:2px solid #ffd60a;border-radius:18px;background:radial-gradient(ellipse at 50% 0%,rgba(255,214,10,.16),transparent 65%),#141824;text-align:center}
.taster[hidden]{display:none}
.taster .t-kick{margin:0 0 4px;font-weight:900;font-size:.85rem;letter-spacing:.14em;text-transform:uppercase;color:#ffd60a}
.taster h2{margin:0 0 .3em;font-size:clamp(1.6rem,6vw,2.3rem)}
.taster h2:focus{outline:none}
.taster .t-lead{margin:0 auto 14px;max-width:30em;color:var(--soft);font-weight:700;line-height:1.45}
.t-team{list-style:none;margin:0 auto 16px;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:14px 10px}
.t-team li{position:relative;width:132px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:12px 6px 10px;border:2px solid var(--line);border-radius:14px;background:#0a0d17}
.t-team li.new{border-color:#ffd60a}
.t-team .stage{height:86px}
.t-team .face{width:80px;height:80px;image-rendering:pixelated;align-self:center}
.t-team .nm{font-weight:900;line-height:1.2}
.t-team .lv{color:var(--soft);font-weight:700;font-size:.85rem}
.t-team .badge{position:absolute;top:-11px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:2px 9px;border-radius:999px;background:#ffd60a;color:#0f121e;font-weight:900;font-size:.75rem}
.t-stats{margin:0 0 16px;color:var(--ink);font-weight:900}
.t-stats span{color:var(--soft);font-weight:700}
.t-cta{max-width:30em;margin:0 auto;padding:16px;border-radius:14px;background:var(--bg2);border:1px solid var(--line);text-align:left}
.t-cta h3{margin:0 0 4px;font-size:1.3rem;line-height:1.25;font-weight:900}
.t-cta p{margin:0 0 10px;color:var(--soft);font-weight:700;font-size:.95rem;line-height:1.45}
.t-cta .signup-row button{background:#ffd60a;color:#0f121e}
.t-cta .signup-row button:hover{background:#fff}
.t-cta .fine{margin-top:8px}
.t-later{margin:14px 0 0;font-weight:700;color:var(--soft);font-size:.95rem}
.t-later button{margin-top:6px;min-height:48px;padding:10px 24px}
/* (bkn-j7 K5b) fix B, the grid in groups (vote.js GRID_GROUPS = 1): the group of whole rows is what the browser skips while
   off screen, not each card (K5a: ~3,600 things re-checked on every battle frame). Each group spans the grid and lays its
   cards out with the grid's own column rule at the same width (inherit: the same columns, 12 px gaps as between rows), so
   the cards sit exactly where they did; vote.js sets each group's size guess from its rows (230 / 273 px a row). The 4 px
   padding, taken back by the margin (the cards don't move), keeps a picked card's 2 px ring (.card.mine) inside what the
   group may paint (content-visibility clips to the group's box; Codex K5b #5) */
.grid-g > .grp{grid-column:1/-1;display:grid;gap:12px;grid-template-columns:inherit;margin:-4px;padding:4px;content-visibility:auto;contain-intrinsic-size:auto 2400px}
.grid-g .card{content-visibility:visible}

/* (bkn-t V1, Brian 10-29: signed out "its actually hard to see how to play") "Play while you wait": first on the page (a
   phone sees it above the Champion card), one slim row on a computer (the Champion card and the countdown stay on the
   first screen), two buttons side by side on a phone; hidden for a signed-in member (vote.js syncQ) */
.pww{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 18px;max-width:44em;margin:12px auto 0;padding:8px 14px;
  background:var(--bg2);border:1px solid var(--line);border-radius:16px}
.pww-h{margin:0;font-size:1.05rem;font-weight:900;letter-spacing:-.01em}
.pww-row{display:flex;gap:10px;flex:0 1 auto;justify-content:center;min-width:0}
.pww ~ .champ{margin-top:14px}
.pww .button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-height:46px;padding:6px 16px;border-radius:12px;
  line-height:1.2;text-align:center;color:var(--bg)}
.pww .pww-t{font-size:1rem}
.pww .pww-t .tri{font-size:.85em;margin-right:2px}
.pww small{font-size:.78rem;font-weight:700;opacity:.85}
.pww .pww-adv{background:var(--gold);color:var(--gold-ink)}
.pww .pww-adv:hover{background:#fff}
@media (max-width:620px){ .pww{padding:10px} .pww-h{flex-basis:100%;text-align:center} .pww-row{flex-basis:100%} .pww .button{flex:1 1 0;min-width:0;padding:7px 8px} }
@media (max-width:340px){ .pww .pww-t{font-size:.92rem} .pww small{font-size:.72rem} }
/* the Quick battle's members box (vote.js qmode, #voter.qmode): the vote steps, "New here? Join the list" and the closed
   round's notice step aside for its own steps and join field (one row, so a phone's first screen reaches the adventure);
   the sign-in form stays; "Almost there!" keeps only Check again / Join again (the box above says the rest); the
   adventure button last, big and gold */
.voter.qmode #howto,.voter.qmode #path-new,.voter.qmode > .closed-line{display:none}   /* (closed: "Round N starts in" stays) */
.voter.qmode #vhelp-unconf > .vhelp-h,.voter.qmode #vhelp-unconf > .vhelp-h + p{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}   /* (screen readers still hear them: the live region) */
.voter.qmode #vhelp-unconf > .vhelp-row{margin-top:0}
.qb{margin:0 0 6px;border-radius:14px}
.qb:focus{outline:none}
.voter .qb-lead{margin:0 0 10px;color:var(--soft)}
.voter .qb-unconf{margin:0 0 12px;padding:12px 14px;border:2px solid #ffd60a;border-radius:14px;background:#0a0d17;color:var(--soft);line-height:1.45}
.qb-unconf strong{color:var(--ink)}
.qb .steps{margin-bottom:14px}
.voter .qb-join{margin:0 0 4px}
.qb-join .path-h{display:block;margin:0 0 8px}
.qb-join .signup-row{display:flex;flex-wrap:wrap;gap:10px}
.voter .qb-join .signup-row input{flex:1 1 150px}
.qb-join .signup-row button{flex:0 0 auto;padding-left:18px;padding-right:18px}
.qb-join .signup-msg:empty{display:none}
.voter .qb-play{margin:16px 0 0;padding-top:14px;border-top:1px solid var(--line)}
.qb-play .button{display:block;width:100%;padding:16px 18px;border-radius:14px;background:var(--gold);color:var(--gold-ink);font-size:1.08rem;line-height:1.3;text-align:center}
.qb-play .button:hover{background:#fff}
