:root {
  color-scheme:dark;
  --ink:#19161c;
  --panel:#211d24;
  --card:#29232d;
  --line:#443944;
  --paper:#faf4ec;
  --muted:#cabcc8;
  --amber:#ffc982;
  --berry:#412d3d;
  --dim:#aa9da8;
  --sans:"Segoe UI",Inter,Arial,sans-serif;
}
* {
  box-sizing:border-box;
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:18px;
}
body {
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font:16px/1.5 var(--sans);
  -webkit-text-size-adjust:100%;
}
button,input,a {
  font:inherit;
}
button,a {
  touch-action:manipulation;
}
button {
  cursor:pointer;
}
a {
  color:inherit;
}
button:focus-visible,a:focus-visible,.game:has(.radio:focus-visible) {
  outline:3px solid var(--amber);
  outline-offset:3px;
}
button:disabled {
  cursor:not-allowed;
}
.wrap {
  max-width:1196px;
  margin:auto;
  padding:0 36px;
}
.top {
  border-bottom:1px solid var(--line);
}
.top-in {
  height:65px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand {
  display:inline-flex;
  gap:11px;
  align-items:center;
  font-size:23px;
  font-weight:900;
  letter-spacing:-.085em;
  font-style:italic;
  line-height:1;
}
.brand i {
  width:18px;
  height:19px;
  display:block;
  transform:skewX(-22deg);
  border:5px solid var(--amber);
  border-right:0;
  border-bottom:0;
}
.brand b {
  color:var(--amber);
  font-weight:900;
}
.brand span {
  white-space:nowrap;
}
.channel {
  font-size:14px;
  font-weight:650;
  color:var(--muted);
  text-decoration:none;
  border-bottom:1px solid #746573;
}
.channel:hover {
  color:var(--paper);
  border-color:var(--paper);
}
.intro {
  padding:clamp(34px,5vw,67px) 0 30px;
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
}
.intro h1 {
  font-family:"Arial Black",var(--sans);
  font-size:clamp(39px,5.1vw,76px);
  line-height:.99;
  letter-spacing:-.065em;
  margin:0;
  max-width:850px;
  font-weight:900;
}
.intro p {
  margin:15px 0 0;
  color:var(--muted);
  font-size:clamp(16px,1.5vw,19px);
  line-height:1.45;
}
.jump {
  font-size:15px;
  color:var(--amber);
  font-weight:700;
  text-decoration:none;
  border-bottom:1px solid #8b6947;
  white-space:nowrap;
}
.jump:hover {
  border-color:var(--amber);
}
.columns {
  display:grid;
  grid-template-columns:minmax(0,1.62fr) minmax(280px,.91fr);
  gap:28px;
  align-items:start;
  margin:5px 0 30px;
}
.ballot,.chart {
  min-width:0;
}
.ballot-head,.chart-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
}
.ballot-head {
  margin-bottom:17px;
  flex-wrap:wrap;
}
.ballot h2,.chart h2 {
  font-size:25px;
  letter-spacing:-.046em;
  line-height:1.08;
  margin:0;
  font-weight:750;
}
.filters {
  display:flex;
  gap:3px;
  background:#211c24;
  border:1px solid var(--line);
  padding:3px;
  border-radius:7px;
}
.filters button {
  font-size:14px;
  line-height:1.05;
  min-height:35px;
  padding:6px 13px;
  border-radius:4px;
  background:transparent;
  color:var(--muted);
  font-weight:650;
  border:0;
}
.filters button[aria-pressed=true] {
  background:var(--paper);
  color:#211b24;
}
.filters button:hover:not([aria-pressed=true]) {
  background:var(--berry);
  color:white;
}
.options {
  margin:0;
  padding:0;
  border:0;
  min-width:0;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.sr {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.game {
  position:relative;
  overflow:visible;
  display:flex;
  align-items:center;
  min-width:0;
  gap:11px;
  min-height:67px;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:5px;
  padding:7px 10px 7px 7px;
  cursor:pointer;
  transition:background .12s,border-color .12s;
}
.game:hover {
  background:#312936;
  border-color:#736071;
}
.game:has(.radio:checked) {
  border-color:var(--amber);
  background:#392d32;
  box-shadow:inset 2px 0 0 var(--amber);
}
.radio {
  position:absolute;
  opacity:0;
  pointer-events:none;
  width:1px;
  height:1px;
}
.poster {
  position:relative;
  flex:none;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  isolation:isolate;
  overflow:hidden;
  background:linear-gradient(145deg,var(--a),var(--b));
  border-radius:2px;
  color:#fffdf6;
}
.poster::before {
  content:"";
  position:absolute;
  inset:0 50% 0 -21%;
  transform:skew(-24deg);
  background:#ffffff12;
}
.poster b {
  font-weight:850;
  letter-spacing:-.06em;
  font-size:17px;
}
.poster img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 36%;
  background:var(--card);
}
.poster-0 {
  --a:#6a4b30;
  --b:#352e38;
}
.poster-1 {
  --a:#79515a;
  --b:#422b42;
}
.poster-2 {
  --a:#526673;
  --b:#302e40;
}
.poster-3 {
  --a:#666639;
  --b:#383649;
}
.poster-4 {
  --a:#66446c;
  --b:#31273e;
}
.poster-5 {
  --a:#526357;
  --b:#2c3441;
}
.game-info {
  flex:1;
  min-width:0;
  display:grid;
  gap:2px;
}
.game-info strong {
  font-weight:710;
  font-size:16px;
  letter-spacing:-.016em;
  line-height:1.15;
  overflow-wrap:anywhere;
}
.game-info small {
  font-size:12px;
  color:var(--muted);
  line-height:1.25;
}
.choice {
  width:17px;
  height:17px;
  border:1.5px solid #776c7b;
  border-radius:50%;
  flex:none;
  position:relative;
}
.radio:checked~.choice {
  border-color:var(--amber);
  background:var(--amber);
}
.radio:checked~.choice:after {
  content:"";
  position:absolute;
  top:3px;
  left:5px;
  width:4px;
  height:7px;
  border:solid #2c2027;
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}
.actions {
  position:sticky;
  bottom:10px;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:#30252f;
  border:1px solid #745768;
  border-radius:6px;
  box-shadow:0 5px 18px #100b1490;
  padding:10px 12px;
  margin-top:12px;
}
.actions strong {
  display:block;
  font-size:15px;
  line-height:1.2;
}
.actions small {
  font-size:13px;
  color:var(--muted);
  display:block;
  margin-top:3px;
  font-variant-numeric:tabular-nums;
  line-height:1.2;
}
.submit {
  flex:none;
  min-height:44px;
  border-radius:4px;
  background:var(--amber);
  color:#261c22;
  border:0;
  padding:8px 19px;
  font-size:15px;
  font-weight:750;
}
.submit:disabled {
  background:#514651;
  color:#c4b8c3;
}
.submit:hover:enabled {
  background:#ffdcaa;
}
.msg {
  margin-top:10px;
  font-size:15px;
  color:var(--paper);
  line-height:1.4;
  scroll-margin:20px;
}
.msg:empty {
  display:none;
}
.chart {
  border-top:3px solid var(--amber);
  border-radius:2px 2px 5px 5px;
  background:var(--panel);
  padding:21px 20px 9px;
  border-left:1px solid var(--line);
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.chart-head {
  gap:8px;
  align-items:baseline;
  padding-bottom:10px;
}
.total {
  font-size:14px;
  font-variant-numeric:tabular-nums;
  color:var(--muted);
  white-space:nowrap;
}
.notice {
  font-size:15px;
  color:var(--muted);
  line-height:1.4;
  margin:6px 0 15px;
}
.notice:empty {
  display:none;
}
.refresh {
  border:1px solid var(--line);
  border-radius:4px;
  color:var(--paper);
  background:transparent;
  padding:6px 12px;
  font-size:14px;
  margin-bottom:12px;
}
.rows {
  list-style:none;
  padding:0;
  margin:0;
}
.rows li {
  padding:9px 0 10px;
  border-top:1px solid #ffffff10;
}
.rowtop {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  line-height:1.2;
}
.rowtop b {
  font-weight:650;
  font-size:14px;
  overflow-wrap:anywhere;
}
.rowtop span {
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.bar {
  height:3px;
  background:#3d3340;
  overflow:hidden;
  margin-top:7px;
  border-radius:2px;
}
.bar i {
  height:100%;
  display:block;
  background:#a77d98;
  border-radius:2px;
}
.lead .bar i {
  background:var(--amber);
}
.mine .rowtop b {
  color:var(--amber);
}
footer {
  border-top:1px solid var(--line);
  color:var(--dim);
  font-size:13px;
  padding:19px 0 36px;
}
footer a {
  text-underline-offset:3px;
}
.foot-in {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}
[hidden] {
  display:none!important;
}
@media(max-width:900px) {
  .wrap {
    padding:0 22px;
  }
  .columns {
    grid-template-columns:minmax(0,1.45fr) minmax(245px,.95fr);
    gap:15px;
  }
  .chart {
    padding:17px 14px 7px;
  }
  .game {
    gap:8px;
  }
  .poster {
    width:38px;
    height:44px;
  }
}
@media(max-width:720px) {
  .wrap {
    padding:0 16px;
  }
  .top-in {
    height:54px;
  }
  .brand {
    font-size:21px;
  }
  .intro {
    align-items:start;
    flex-direction:column;
    gap:12px;
    padding:30px 0 23px;
  }
  .intro h1 {
    max-width:540px;
  }
  .intro p {
    margin-top:10px;
  }
  .columns {
    display:block;
    margin-top:0;
  }
  .ballot-head {
    margin-bottom:12px;
    gap:8px;
  }
  .ballot h2,.chart h2 {
    font-size:22px;
  }
  .chart {
    margin-top:28px;
    padding:15px 16px 8px;
  }
  .actions {
    bottom:max(7px,env(safe-area-inset-bottom));
    padding:8px 10px;
  }
  .game {
    min-height:63px;
  }
  .poster {
    width:40px;
    height:45px;
  }
  .options {
    gap:7px;
  }
  .ballot-head {
    margin-top:4px;
  }
}
@media(max-width:470px) {
  .options {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .poster {
    width:28px;
    height:37px;
  }
  .poster b {
    font-size:12px;
  }
  .game {
    min-height:62px;
    padding:6px 7px;
    gap:6px;
  }
  .game-info strong {
    font-size:14px;
    line-height:1.12;
  }
  .game-info small {
    font-size:11px;
  }
  .choice {
    width:13px;
    height:13px;
  }
  .radio:checked~.choice:after {
    top:1px;
    left:3px;
  }
  .filters button {
    padding:5px 10px;
  }
  .actions>div {
    min-width:0;
  }
  .actions strong {
    overflow-wrap:anywhere;
  }
  .submit {
    padding:8px 13px;
  }
  .foot-in {
    display:block;
  }
  .foot-in span {
    display:block;
    margin-bottom:4px;
  }
}
@media(max-width:355px) {
  .options {
    grid-template-columns:1fr;
  }
  .poster {
    width:38px;
  }
  .ballot-head {
    align-items:start;
    flex-direction:column;
  }
  .actions {
    align-items:stretch;
    flex-direction:column;
  }
  .action-info small {
    display:none;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  .game {
    transition:none;
  }
}
