/* faucet.css — v2 (uses site tokens from style.css) */

.faucet-hero { margin-bottom: 2.4rem; }

.faucet-title {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-bottom: 1rem;
}
.faucet-title img {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 50%;
  background: var(--surface-2);
  flex-shrink: 0;
}
.faucet-title h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3.5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}
.faucet-hero p {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-muted);
}

.faucet-vote {
  margin: 0 0 3rem;
  padding: 2.4rem;
  background: var(--surface);
  border-radius: var(--r-lg);
}
html.color-scheme--dark .faucet-vote {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
}

.faucet-vote__head h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--title);
  letter-spacing: -.02em;
  margin: 0 0 .8rem;
}
.faucet-vote__head p {
  font-size: 1.45rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0 0 1.8rem;
}

.faucet-vote__buttons {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.faucet-vote__btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: 1.2rem 2rem;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.faucet-vote__btn:hover:not(:disabled) { background: var(--surface-3); }
.faucet-vote__btn:active:not(:disabled) { transform: scale(.98); }
.faucet-vote__btn:disabled { opacity: .55; cursor: default; }
.faucet-vote__btn--yes { color: var(--positive); }
.faucet-vote__btn--yes.is-voted { background: var(--positive-soft); }
.faucet-vote__btn--no { color: var(--negative); }
.faucet-vote__btn--no.is-voted { background: var(--negative-soft); }

.faucet-vote__count {
  min-width: 2.4rem;
  padding: .15rem .6rem;
  background: var(--surface);
  border-radius: var(--r-pill);
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.faucet-vote__progress {
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}
.faucet-vote__bar {
  height: 8px;
  background: var(--surface-2);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.faucet-vote__bar span {
  display: block;
  height: 100%;
  background: var(--positive);
  border-radius: var(--r-pill);
  transition: width .4s var(--ease);
}
.faucet-vote__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .8rem;
  font-size: 1.25rem;
  color: var(--text-dim);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.faucet-vote__msg {
  margin: .8rem 0 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--positive);
  opacity: 0;
  transition: opacity .2s ease;
}
.faucet-vote__msg.is-visible { opacity: 1; }
.faucet-vote__msg.is-error   { color: var(--negative); }

.faucet-status {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.faucet-status p { margin: 0; }
.faucet-status strong { color: var(--title); font-weight: 700; }

@media (max-width: 576px) {
  .faucet-title { gap: 1.2rem; }
  .faucet-title img { width: 4.8rem; height: 4.8rem; }
  .faucet-title h1 { font-size: 2.1rem; }
  .faucet-vote { padding: 1.8rem; }
  .faucet-vote__head h2 { font-size: 1.7rem; }
  .faucet-vote__btn { padding: 1rem 1.6rem; font-size: 1.3rem; }
}
.faucet-vote__msg {
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--positive);
  transition: max-height .2s var(--ease), margin .2s var(--ease), opacity .2s var(--ease);
}
.faucet-vote__msg.is-visible {
  max-height: 4rem;
  margin: .8rem 0 0;
  opacity: 1;
}
.faucet-vote__msg.is-error { color: var(--negative); }

.faucet-price {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 2rem 2.4rem;
  background: var(--surface);
  border-radius: var(--r-lg);
  margin: 0 0 3rem;
}
html.color-scheme--dark .faucet-price {
  background: linear-gradient(160deg, var(--surface) 0%, var(--surface-2) 100%);
}
.faucet-price__label {
  flex-basis: 100%;
  margin-bottom: -.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}
.faucet-price__value {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--title);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.faucet-price__change {
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.faucet-price__change.is-up   { color: var(--positive); }
.faucet-price__change.is-down { color: var(--negative); }

@media (max-width: 576px) {
  .faucet-price { padding: 1.6rem 1.8rem; }
  .faucet-price__value { font-size: 2.2rem; }
  .faucet-price__change { font-size: 1.25rem; }
}