/* Borrelbuurt Vote — hero + ranglijst + rewards + sitekaarten */

.vote-page,
html:has(.vote-page){
  background:var(--bg-0);
  color:var(--ink);
}

.vote-page .sky{
  background:
    radial-gradient(ellipse 1000px 520px at 18% -10%, rgba(85,200,255,0.14), transparent 58%),
    radial-gradient(ellipse 800px 480px at 100% 8%, rgba(240,193,75,0.08), transparent 55%),
    radial-gradient(ellipse 700px 500px at 70% 100%, rgba(255,77,77,0.07), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 4px),
    var(--bg-0);
}

.vote-wrap{
  position:relative;
  z-index:2;
  width:min(1100px, 100%);
  margin:0 auto;
  padding:20px 18px 72px;
}

/* —— Top strip —— */
.vote-top{
  display:grid;
  grid-template-columns:minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap:22px;
  align-items:start;
  margin:6px 0 28px;
}

.vote-eyebrow{
  font-family:'Press Start 2P', monospace;
  font-size:9px;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:var(--pro);
  margin:0 0 14px;
}

.vote-hero-brand{
  text-align:left;
  margin:0 0 14px;
  font-size:clamp(18px, 2.6vw, 24px);
}

.vote-hero-title{
  font-family:'Press Start 2P', monospace;
  font-size:clamp(18px, 3.4vw, 28px);
  line-height:1.55;
  margin:0 0 14px;
  color:var(--ink);
  max-width:14em;
}
.vote-hero-title em{
  font-style:normal;
  color:var(--pro);
}

.vote-hero-lead{
  color:var(--ink-dim);
  font-size:20px;
  line-height:1.4;
  max-width:34em;
  margin:0 0 22px;
}
.vote-hero-lead code,
.vote-sites-lead code{
  font-family:'Press Start 2P', monospace;
  font-size:10px;
  color:var(--gold);
}

.vote-hero-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
}

.vote-cta{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:200px;
  padding:16px 22px;
  font-family:'Press Start 2P', monospace;
  font-size:11px;
  letter-spacing:0.4px;
  color:#0c1016;
  background:var(--pro);
  border:3px solid #2a9fc8;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.35),
    0 5px 0 rgba(0,0,0,0.35),
    0 0 24px rgba(85,200,255,0.25);
  cursor:pointer;
  transition:transform 0.12s ease, box-shadow 0.12s ease;
}
.vote-cta:hover,
.vote-cta:focus-visible{
  outline:none;
  transform:translateY(-2px);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.4),
    0 7px 0 rgba(0,0,0,0.35),
    0 0 32px rgba(85,200,255,0.4);
}
.vote-cta:active{
  transform:translateY(2px);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.2),
    0 2px 0 rgba(0,0,0,0.35);
}

.vote-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border:2px solid rgba(143,255,102,0.45);
  background:rgba(143,255,102,0.08);
  color:var(--ok);
  font-family:'Press Start 2P', monospace;
  font-size:8px;
  letter-spacing:0.5px;
  line-height:1.4;
}
.vote-pill-dot{
  width:8px;height:8px;
  border-radius:50%;
  background:var(--ok);
  box-shadow:0 0 8px rgba(143,255,102,0.7);
  animation:votePulse 1.6s ease-in-out infinite;
}

@keyframes votePulse{
  0%,100%{opacity:1; transform:scale(1);}
  50%{opacity:0.55; transform:scale(0.85);}
}

/* —— Leaderboard —— */
.vote-lb{
  border:3px solid var(--stone-dark);
  background:rgba(18,24,32,0.88);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.04),
    0 8px 0 rgba(0,0,0,0.28);
  padding:16px 16px 12px;
}

.vote-lb-header{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:8px;
  margin-bottom:8px;
}
.vote-lb-title{
  font-family:'Press Start 2P', monospace;
  font-size:11px;
  line-height:1.5;
  color:var(--ink);
  margin:0;
}
.vote-lb-days{
  font-family:'Press Start 2P', monospace;
  font-size:8px;
  color:var(--pro);
  letter-spacing:0.3px;
}

.vote-lb-updated{
  margin:0 0 10px;
  color:var(--ink-dim);
  font-size:14px;
  line-height:1.35;
}
.vote-lb-updated[hidden],
.vote-lb-note[hidden]{
  display:none !important;
}
.vote-lb-note{
  color:var(--ink-dim);
  font-size:16px;
  line-height:1.35;
  margin:0 0 4px;
}

.vote-lb-list{
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:0 0 12px;
  padding:0;
}

.vote-lb-row{
  display:grid;
  grid-template-columns:36px 40px minmax(0, 1fr) auto;
  gap:10px;
  align-items:center;
  padding:8px 10px;
  border:2px solid rgba(255,255,255,0.06);
  background:rgba(0,0,0,0.22);
}
.vote-lb-row:nth-child(1){border-color:rgba(240,193,75,0.4);}
.vote-lb-row:nth-child(2){border-color:rgba(85,200,255,0.28);}
.vote-lb-row:nth-child(3){border-color:rgba(143,255,102,0.22);}

.vote-lb-rank{
  font-family:'Press Start 2P', monospace;
  font-size:10px;
  color:var(--ink-dim);
}
.vote-lb-row:nth-child(1) .vote-lb-rank{color:var(--gold);}

.vote-lb-avatar{
  image-rendering:pixelated;
  width:40px;
  height:40px;
  border:2px solid var(--stone);
  background:#1a222c;
}

.vote-lb-who{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.vote-lb-name{
  font-size:19px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.vote-lb-prize{
  font-size:14px;
  color:var(--ink-dim);
}
.vote-lb-votes{
  font-family:'Press Start 2P', monospace;
  font-size:8px;
  color:var(--gold);
  letter-spacing:0.3px;
  white-space:nowrap;
}

.vote-lb-empty{
  padding:18px 12px;
  text-align:center;
  color:var(--ink-dim);
  font-size:17px;
  border:2px dashed rgba(255,255,255,0.1);
  background:rgba(0,0,0,0.18);
}
.vote-lb-empty b{color:var(--pro); font-weight:normal;}

.vote-lb-more{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--ink-dim);
  font-size:16px;
  background:none;
  border:none;
  cursor:pointer;
  padding:4px 0;
  font:inherit;
}
.vote-lb-more:hover,
.vote-lb-more:focus-visible{
  color:var(--pro);
  outline:none;
}

/* —— Rewards —— */
.vote-rewards{
  border:3px solid var(--stone-dark);
  background:
    linear-gradient(180deg, rgba(26,34,44,0.92), rgba(14,18,24,0.94));
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.04),
    0 8px 0 rgba(0,0,0,0.28);
  padding:18px 18px 14px;
  margin-top:8px;
  margin-bottom:36px;
  scroll-margin-top:24px;
}

.vote-reward-row{
  display:grid;
  grid-template-columns:minmax(140px, 200px) minmax(0, 1fr);
  gap:14px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid rgba(255,255,255,0.06);
}
.vote-reward-row:last-of-type{border-bottom:none;}

.vote-reward-label{
  font-family:'Press Start 2P', monospace;
  font-size:9px;
  line-height:1.5;
  color:var(--ink);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  text-transform:uppercase;
}

.vote-reward-badge{
  display:inline-block;
  padding:4px 8px;
  border:1px solid rgba(240,193,75,0.55);
  color:var(--gold);
  font-size:7px;
  letter-spacing:0.4px;
  background:rgba(240,193,75,0.08);
}

.vote-reward-items{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
}

.vote-reward-item{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:2px solid rgba(255,255,255,0.08);
  background:rgba(0,0,0,0.22);
  font-size:17px;
  line-height:1.2;
  max-width:100%;
}
.vote-reward-copy{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.vote-reward-chance{
  font-family:'Press Start 2P', monospace;
  font-size:10px;
  letter-spacing:0.4px;
  line-height:1.35;
  color:var(--pro);
  text-transform:uppercase;
}
.vote-reward-ico{
  width:22px;height:22px;
  display:inline-flex;
  flex-shrink:0;
  color:var(--pro);
}
.vote-reward-ico svg{width:100%;height:100%;}
.vote-reward-item--key .vote-reward-ico{color:var(--ok);}
.vote-reward-item--shard .vote-reward-ico{color:var(--chorus);}
.vote-reward-item--money .vote-reward-ico,
.vote-reward-item--coin .vote-reward-ico{color:var(--gold);}
.vote-reward-item--token .vote-reward-ico{color:var(--gold);}
.vote-reward-item--chest .vote-reward-ico{color:var(--lava-hot);}
.vote-reward-item--diamond .vote-reward-ico{color:var(--pro);}
.vote-reward-item--emerald .vote-reward-ico{color:var(--ok);}
.vote-reward-item--gold .vote-reward-ico{color:var(--gold);}
.vote-reward-item--scrap .vote-reward-ico{color:#c9b3ff;}
.vote-reward-item--ingot .vote-reward-ico{color:#9a9aa8;}
.vote-hero-lead b{color:var(--ink);font-weight:normal;}

.vote-reward-totals{
  margin-top:6px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,0.06);
}
.vote-reward-totals p{
  margin:0 0 4px;
  color:var(--ink-dim);
  font-size:16px;
  line-height:1.35;
}

.vote-reward-disclaimer{
  margin:10px 0 0;
  color:rgba(139,150,163,0.85);
  font-size:14px;
  line-height:1.35;
}

/* —— Sites —— */
.vote-how,
.vote-sites-section{
  margin-bottom:28px;
  scroll-margin-top:24px;
}
.vote-how{
  border:3px solid var(--stone-dark);
  background:rgba(18,24,32,0.88);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.04),
    0 8px 0 rgba(0,0,0,0.28);
  padding:18px 18px 16px;
}
.vote-sites-title{
  font-family:'Press Start 2P', monospace;
  font-size:clamp(14px, 2.4vw, 18px);
  line-height:1.55;
  margin:0 0 8px;
  color:var(--ink);
}
.vote-sites-lead{
  color:var(--ink-dim);
  font-size:18px;
  margin:0 0 14px;
  max-width:40em;
}
.vote-sites-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px 16px;
  margin:0 0 16px;
}
.vote-open-all{
  appearance:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  font-family:'Press Start 2P', monospace;
  font-size:10px;
  letter-spacing:0.3px;
  color:#0c1016;
  background:var(--gold);
  border:3px solid #c9a032;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.3),
    0 4px 0 rgba(0,0,0,0.32),
    0 0 18px rgba(240,193,75,0.2);
  cursor:pointer;
  transition:transform 0.12s ease, box-shadow 0.12s ease;
}
.vote-open-all:hover,
.vote-open-all:focus-visible{
  outline:none;
  transform:translateY(-2px);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.35),
    0 6px 0 rgba(0,0,0,0.32),
    0 0 24px rgba(240,193,75,0.32);
}
.vote-open-all:active{
  transform:translateY(2px);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.2),
    0 2px 0 rgba(0,0,0,0.32);
}
.vote-open-all-hint{
  color:var(--ink-dim);
  font-size:15px;
  line-height:1.3;
}

.vote-popup-modal{
  position:fixed;
  inset:0;
  z-index:80;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(6,8,12,0.72);
}
.vote-popup-modal[hidden]{display:none !important;}
.vote-popup-dialog{
  width:min(520px, 100%);
  border:3px solid var(--stone-dark);
  background:rgba(18,24,32,0.97);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.05),
    0 12px 0 rgba(0,0,0,0.35),
    0 0 40px rgba(0,0,0,0.45);
  padding:20px 18px 16px;
}
.vote-popup-title{
  margin:0 0 10px;
  font-family:'Press Start 2P', monospace;
  font-size:clamp(12px, 2.2vw, 14px);
  line-height:1.5;
  color:var(--gold);
}
.vote-popup-lead{
  margin:0 0 12px;
  color:var(--ink);
  font-size:17px;
  line-height:1.4;
}
.vote-popup-steps{
  margin:0 0 14px;
  padding-left:1.25em;
  color:var(--ink-dim);
  font-size:16px;
  line-height:1.45;
}
.vote-popup-steps li{margin:0 0 8px;}
.vote-popup-steps b{color:var(--ink);}
.vote-popup-status{
  margin:0 0 12px;
  padding:10px 12px;
  border:2px solid rgba(255,120,90,0.45);
  background:rgba(255,90,60,0.08);
  color:#ffc2b0;
  font-size:15px;
  line-height:1.35;
}
.vote-popup-status[hidden]{display:none !important;}
.vote-popup-status.is-ok{
  border-color:rgba(143,255,102,0.4);
  background:rgba(143,255,102,0.08);
  color:#c8f5a8;
}
.vote-popup-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}
.vote-popup-cancel{
  appearance:none;
  padding:12px 14px;
  font-family:'Press Start 2P', monospace;
  font-size:9px;
  color:var(--ink-dim);
  background:transparent;
  border:2px solid var(--stone-dark);
  cursor:pointer;
}
.vote-popup-cancel:hover,
.vote-popup-cancel:focus-visible{
  outline:none;
  color:var(--ink);
  border-color:rgba(255,255,255,0.22);
}
.vote-how-steps{
  margin:0;
  padding-left:1.25em;
  color:var(--ink);
  font-size:19px;
  line-height:1.45;
}
.vote-how-steps li{margin:0 0 8px;}
.vote-how-steps code,
.vote-how .vote-sites-lead code{
  font-family:'Press Start 2P', monospace;
  font-size:10px;
  color:var(--gold);
}
.vote-rewards[hidden],
.vote-how[hidden],
.vote-sites-section[hidden],
.vote-lb-note[hidden],
.vote-lb-updated[hidden],
.vote-lb-more[hidden]{
  display:none !important;
}

.vote-sites{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:12px;
}

.vote-site{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  min-height:148px;
  padding:14px 14px 12px;
  border:3px solid var(--stone-dark);
  background:rgba(18,24,32,0.9);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.04),
    0 6px 0 rgba(0,0,0,0.3);
  overflow:hidden;
  transition:transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.vote-site:hover,
.vote-site:focus-visible{
  outline:none;
  transform:translateY(-3px);
  border-color:var(--pro);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.06),
    0 0 0 2px rgba(85,200,255,0.18),
    0 9px 0 rgba(0,0,0,0.3);
}
.vote-site.is-done{
  border-color:rgba(143,255,102,0.4);
}
.vote-site.is-done .vote-site-btn{
  color:var(--ok);
  border-color:rgba(143,255,102,0.4);
}

.vote-site-frac{
  font-family:'Press Start 2P', monospace;
  font-size:9px;
  color:var(--ink-dim);
}
.vote-site-name{
  font-family:'Press Start 2P', monospace;
  font-size:clamp(9px, 1.6vw, 11px);
  line-height:1.45;
  color:var(--ink);
  margin-top:4px;
  overflow-wrap:anywhere;
  word-break:break-word;
  hyphens:auto;
}
.vote-site-hint{
  color:var(--ink-dim);
  font-size:15px;
  line-height:1.3;
  flex:1;
}
.vote-site-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:auto;
  padding:10px 12px;
  border:2px solid rgba(85,200,255,0.45);
  color:var(--pro);
  font-family:'Press Start 2P', monospace;
  font-size:9px;
  letter-spacing:0.3px;
  background:rgba(85,200,255,0.06);
}
.vote-site:hover .vote-site-btn,
.vote-site:focus-visible .vote-site-btn{
  background:rgba(85,200,255,0.16);
  border-color:var(--pro);
}

.vote-foot-note{
  margin:8px 0 0;
  color:var(--ink-dim);
  font-size:16px;
  line-height:1.4;
}
.vote-foot-note code{
  font-family:'Press Start 2P', monospace;
  font-size:9px;
  color:var(--gold);
}

/* —— Motion prefs —— */
html.prefs-no-motion .vote-pill-dot,
html.prefs-no-motion .vote-cta,
html.prefs-no-motion .vote-open-all,
html.prefs-no-motion .vote-site{
  animation:none !important;
  transition:none !important;
}
html.prefs-no-motion .vote-cta:hover,
html.prefs-no-motion .vote-open-all:hover,
html.prefs-no-motion .vote-site:hover{
  transform:none;
}

/* —— Responsive —— */
@media (max-width:860px){
  .vote-top{grid-template-columns:1fr; gap:18px;}
  .vote-reward-row{grid-template-columns:1fr; gap:10px;}
  .vote-hero-title{max-width:none;}
}

@media (max-width:520px){
  .vote-wrap{padding:16px 12px 56px;}
  .vote-cta,
  .vote-open-all{width:100%;}
  .vote-lb-row{
    grid-template-columns:28px 32px minmax(0, 1fr);
    grid-template-rows:auto auto;
  }
  .vote-lb-votes{
    grid-column:3;
    justify-self:start;
  }
  .vote-lb-avatar{width:32px;height:32px;}
}
