/* ===== Shared styles for vote.html & donate.html (loaded after style.css) ===== */

.sub main { gap: clamp(16px, 3vh, 30px); padding-bottom: calc(28px + 24px); }

/* ---------- top bar ---------- */
.topbar {
  width: min(1100px, 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  animation: dropIn 1s var(--out) both;
}
.mini-logo img {
  display: block; width: clamp(120px, 18vw, 190px); height: auto;
  filter: drop-shadow(0 6px 0 rgba(160, 105, 20, .22));
  animation: bob 5s var(--soft) infinite;
  transition: transform .4s var(--spring);
}
.mini-logo:hover img { transform: scale(1.08) rotate(-3deg); animation-play-state: paused; }

.back {
  font-family: "Silkscreen", monospace; font-weight: 700; font-size: 14px;
  color: var(--brown-dark); text-decoration: none;
  background: var(--gold-0);
  border: 4px solid var(--brown-dark); border-radius: 14px;
  padding: 8px 14px 9px;
  box-shadow: 0 5px 0 var(--gold-4), 0 5px 0 4px var(--brown-dark);
  transition: transform .35s var(--spring), box-shadow .2s ease;
  display: inline-flex; align-items: center; gap: 8px;
}
.back:hover { transform: translateY(-3px) rotate(-2deg); }
.back:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-4), 0 1px 0 4px var(--brown-dark); transition-duration: .08s; }
.back .arrow { display: inline-block; transition: transform .35s var(--spring); }
.back:hover .arrow { transform: translateX(-4px); }

/* ---------- hero ---------- */
.hero {
  display: flex; align-items: center; justify-content: center; gap: clamp(8px, 3vw, 32px);
  flex-wrap: wrap; text-align: center;
}
.hero-art {
  width: clamp(130px, 22vw, 220px); height: auto;
  filter: drop-shadow(0 10px 0 rgba(160, 105, 20, .2));
  animation: heroIn 1s var(--spring) both .15s, heroBob 3.4s var(--soft) infinite 1.2s;
  transform-origin: 50% 90%;
}
@keyframes heroIn {
  from { opacity: 0; transform: scale(.3) rotate(-25deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroBob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-10px) rotate(3deg) scale(1.03); }
}

.title {
  font-size: clamp(40px, 8vw, 84px);
  line-height: .95;
  color: #ffc93a;
  -webkit-text-stroke: 3px var(--brown-dark);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--brown-dark), 0 12px 20px rgba(150, 95, 10, .25);
  letter-spacing: 1px;
}
.title .ch {
  display: inline-block;
  animation: letterIn .6s var(--spring) both, hop 3s var(--soft) infinite;
  animation-delay: calc(.2s + var(--i) * 50ms), calc(1.2s + var(--i) * 80ms);
}
.title .sp { display: inline-block; width: .3em; }
@keyframes letterIn {
  from { opacity: 0; transform: translateY(-40px) scale(.4) rotate(-20deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes hop {
  0%, 20%, 100% { transform: translateY(0) rotate(0); }
  10%           { transform: translateY(-8px) rotate(-4deg); color: #fff0a8; }
}
.subtitle {
  margin-top: 10px;
  font-family: "Silkscreen", monospace; font-weight: 700;
  font-size: clamp(12px, 2vw, 16px);
  color: var(--brown);
  animation: enter .8s var(--out) both .7s;
}

/* ---------- reusable chunky panel ---------- */
.panel {
  position: relative;
  width: min(1100px, 100%);
  background: linear-gradient(180deg, #fffdf2 0%, var(--gold-0) 50%, var(--gold-1) 100%);
  border: 4px solid var(--brown-dark);
  border-radius: 24px;
  box-shadow:
    inset 0 -6px 0 var(--gold-2), inset 0 4px 0 #fff,
    0 8px 0 var(--gold-4), 0 8px 0 4px var(--brown-dark),
    0 20px 30px rgba(150, 95, 10, .25);
  padding: clamp(16px, 3vw, 26px);
  animation: enter .9s var(--out) both .5s;
}

.pixel-label {
  font-family: "Silkscreen", monospace; font-weight: 700; font-size: 13px; letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brown-dark); color: var(--gold-1);
  padding: 4px 12px 5px; border-radius: 999px;
}

/* striped animated progress bar */
.bar {
  position: relative; height: 30px; margin-top: 12px;
  background: #f3dc98;
  border: 4px solid var(--brown-dark); border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 4px 0 rgba(150, 95, 10, .2);
}
.bar-fill {
  position: absolute; inset: 0 auto 0 0; width: 0%;
  background:
    repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, #9be36f, #5fbf43);
  background-size: 28px 28px, 100% 100%;
  box-shadow: inset 0 -5px 0 rgba(0,0,0,.12), inset 0 4px 0 rgba(255,255,255,.4);
  border-right: 4px solid var(--brown-dark);
  transition: width 1.4s var(--spring);
  animation: stripes 1s linear infinite;
}
.bar-fill.empty { border-right: none; }
@keyframes stripes { to { background-position: 28px 0, 0 0; } }

/* footer tagline on subpages */
.sub .tagline { animation-delay: 1.2s; }

/* shake (locked / error) */
.shake { animation: shake .45s var(--soft) !important; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-2deg); }
  40% { transform: translateX(7px) rotate(2deg); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(3px); }
}

@media (max-width: 560px) {
  .back { font-size: 12px; padding: 6px 10px 7px; }
}
