/* ========================================================================
   Primal — /vote
   RuneScape-themed: heavy gold trim, skill-tier colours, scroll/parchment
   suggestions in the gradients, glowy hover effects.
   ======================================================================== */

/* -------- Local palette --------------------------------------------- */
:root {
  --vt-gold:        #d9a648;
  --vt-gold-bright: #f1c878;
  --vt-gold-deep:   #a47b30;
  --vt-gold-soft:   rgba(217, 166, 72, 0.12);
  --vt-gold-glow:   rgba(217, 166, 72, 0.55);

  --vt-blood:       #c0382f;
  --vt-blood-soft:  #ff6b66;
  --vt-rune:        #5fa6b8;
  --vt-rune-bright: #7bc0d2;
  --vt-emerald:     #6cd28d;
  --vt-emerald-deep:#3f8a4d;
  --vt-mithril:     #4988dd;
  --vt-amethyst:    #b489ed;
  --vt-bronze:      #cd7f32;
  --vt-silver:      #c0cad6;

  /* Tier ramp used by the streak grid (1 → 7). */
  --vt-tier-1: #cd7f32;   /* bronze */
  --vt-tier-2: #c0cad6;   /* silver */
  --vt-tier-3: #6cd28d;   /* emerald */
  --vt-tier-4: #4988dd;   /* sapphire */
  --vt-tier-5: #b489ed;   /* amethyst */
  --vt-tier-6: #ff6b66;   /* ruby */
  --vt-tier-7: #f1c878;   /* gold */
}

/* -------- Background tint ------------------------------------------- */
body { background:
  radial-gradient(ellipse 80% 50% at 50% 0%, rgba(217,166,72,0.06), transparent 60%),
  radial-gradient(ellipse 60% 40% at 50% 100%, rgba(95,166,184,0.05), transparent 60%),
  var(--bg);
}

/* -------- Hero ------------------------------------------------------- */
.vt-hero {
  padding: 88px 0 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.vt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 20%, rgba(217,166,72,0.14), transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(95,166,184,0.10), transparent 60%);
  pointer-events: none;
}
.vt-hero-inner { position: relative; }

.vt-eyebrow {
  margin: 0 0 10px;
  color: var(--vt-gold);
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(217,166,72,0.45);
}

.vt-title {
  font-size: clamp(40px, 7vw, 76px);
  text-transform: uppercase;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #fff2c2 0%, var(--vt-gold-bright) 30%, var(--vt-gold) 60%, var(--vt-gold-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 2px 0 rgba(0,0,0,0.6))
    drop-shadow(0 0 26px rgba(217,166,72,0.35));
  letter-spacing: 0.02em;
}

/* Decorative gold divider below the subtitle */
.vt-hero-rule {
  width: 220px;
  height: 14px;
  margin: 18px auto 0;
  color: var(--vt-gold);
  opacity: 0.85;
}
.vt-hero-rule svg { width: 100%; height: 100%; }

.vt-subtitle {
  color: var(--text);
  font-size: 16px;
  max-width: 640px;
  margin: 0 auto 0;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.vt-cmd {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  background: linear-gradient(180deg, rgba(95,166,184,0.22), rgba(95,166,184,0.10));
  color: var(--vt-rune-bright);
  padding: 2px 9px;
  border-radius: 4px;
  font-size: 0.9em;
  font-variant: normal;
  letter-spacing: 0;
  border: 1px solid rgba(95,166,184,0.30);
}
.vt-cmd-lg { padding: 4px 12px; font-size: 0.95em; }

/* -------- Section spacing ------------------------------------------- */
.vt-section { padding: 24px 0; }
.vt-section-tight { padding: 4px 0 40px; }

/* -------- Cards (shared) -------------------------------------------- */
.vt-card {
  background:
    linear-gradient(180deg, rgba(217,166,72,0.04), transparent 25%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 30px rgba(0,0,0,0.55), 0 0 0 1px rgba(217,166,72,0.05) inset;
  padding: 28px;
  position: relative;
}

/* Decorative gold corner accents -- pseudo elements on every panel */
.vt-panel::before,
.vt-panel::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--vt-gold);
  opacity: 0.55;
  pointer-events: none;
}
.vt-panel::before {
  top: 8px; left: 8px;
  border-right: 0; border-bottom: 0;
  border-top-left-radius: 6px;
}
.vt-panel::after {
  bottom: 8px; right: 8px;
  border-left: 0; border-top: 0;
  border-bottom-right-radius: 6px;
}

/* -------- Sign-in card ---------------------------------------------- */
.vt-signin-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 28px 32px;
  background:
    radial-gradient(ellipse 50% 60% at 50% 0%, rgba(217,166,72,0.18), transparent 60%),
    var(--bg-card);
}
.vt-signin-card::before,
.vt-signin-card::after { display: none; }  /* signin card has its own framing */

.vt-signin-card-frame {
  position: absolute;
  inset: 6px;
  border: 1px solid var(--vt-gold);
  border-radius: var(--radius-lg);
  opacity: 0.45;
  pointer-events: none;
}

.vt-lock-icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  color: var(--vt-gold);
  filter: drop-shadow(0 0 16px rgba(217,166,72,0.6));
}
.vt-lock-icon svg { width: 100%; height: 100%; }

.vt-signin-title {
  font-size: 28px;
  text-transform: uppercase;
  color: var(--vt-gold-bright);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.55), 0 0 18px rgba(217,166,72,0.45);
}
.vt-signin-sub {
  color: var(--text);
  margin: 0 0 22px;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  opacity: 0.85;
}
.vt-signin-help {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* -------- Welcome card ---------------------------------------------- */
.vt-welcome-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 28px;
  background:
    linear-gradient(90deg, rgba(217,166,72,0.10), transparent 60%),
    var(--bg-card);
  border-color: rgba(217,166,72,0.45);
}
.vt-welcome-card::before,
.vt-welcome-card::after { display: none; }
.vt-welcome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.vt-welcome-eyebrow {
  margin: 0;
  color: var(--vt-gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.vt-welcome-name {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--vt-gold-bright);
  margin: 4px 0 0;
  text-shadow: 0 0 12px rgba(217,166,72,0.4);
}

/* -------- Pills (buttons) ------------------------------------------- */
.vt-pill {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 13px 32px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.vt-pill:disabled,
.vt-pill[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.vt-pill-gold {
  background: linear-gradient(180deg, #fff0c0 0%, var(--vt-gold-bright) 25%, var(--vt-gold) 55%, var(--vt-gold-deep) 100%);
  color: #1a1208;
  box-shadow:
    0 4px 0 rgba(0,0,0,0.4),
    0 0 22px rgba(217,166,72,0.35),
    inset 0 1px 0 rgba(255,255,255,0.4);
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
  border: 1px solid var(--vt-gold-deep);
}
.vt-pill-gold:hover:not(:disabled):not([aria-disabled="true"]) {
  filter: brightness(1.08);
  box-shadow:
    0 5px 0 rgba(0,0,0,0.45),
    0 0 30px rgba(217,166,72,0.55),
    inset 0 1px 0 rgba(255,255,255,0.5);
  transform: translateY(-1px);
}
.vt-pill-dark {
  background: linear-gradient(180deg, #20283a, #161c2a);
  color: var(--text);
  border: 1px solid var(--vt-gold-deep);
  box-shadow: 0 2px 0 rgba(0,0,0,0.4);
}
.vt-pill-dark:hover {
  border-color: var(--vt-gold);
  color: var(--vt-gold-bright);
  box-shadow: 0 3px 0 rgba(0,0,0,0.4), 0 0 18px rgba(217,166,72,0.18);
}

/* -------- Two-column grid (main + sidebar) -------------------------- */
.vt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}
@media (max-width: 1020px) {
  .vt-grid { grid-template-columns: 1fr; }
}

.vt-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.vt-sidebar { display: flex; flex-direction: column; gap: 22px; }

/* -------- Panels (shared) ------------------------------------------- */
.vt-panel { padding: 24px 26px 22px; }

.vt-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(217, 166, 72, 0.30);
  position: relative;
}
.vt-panel-head::after {
  /* Gold underline glow */
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, var(--vt-gold), transparent);
  box-shadow: 0 0 12px var(--vt-gold-glow);
}
.vt-panel-head-split { justify-content: space-between; }
.vt-panel-head-left { display: flex; align-items: center; gap: 12px; }

.vt-panel-icon {
  font-size: 20px;
  filter: drop-shadow(0 0 8px rgba(217,166,72,0.55));
}
.vt-panel-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--vt-gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}

.vt-panel-sublabel {
  margin: 4px 0 12px;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--vt-rune);
  text-transform: uppercase;
  font-weight: 700;
}
.vt-panel-sublabel-divider {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed rgba(95,166,184,0.30);
}
.vt-panel-desc {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.85;
}
.vt-panel-desc-small {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* -------- Vote stats grid ------------------------------------------- */
.vt-stat-grid {
  display: grid;
  gap: 12px;
}
.vt-stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.vt-stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) {
  .vt-stat-grid-4, .vt-stat-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

.vt-stat {
  background:
    linear-gradient(180deg, rgba(217,166,72,0.06), transparent 70%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.vt-stat::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--vt-gold), transparent);
  opacity: 0.5;
}
.vt-stat:hover { border-color: var(--vt-gold); transform: translateY(-2px); }

.vt-stat-num {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--vt-gold-bright);
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5), 0 0 18px rgba(217,166,72,0.4);
  letter-spacing: 0.02em;
}
.vt-stat-num-red {
  color: var(--vt-blood-soft);
  text-shadow: 0 2px 0 rgba(0,0,0,0.5), 0 0 16px rgba(255,107,102,0.45);
}
.vt-stat-num-cyan {
  color: var(--vt-rune-bright);
  text-shadow: 0 2px 0 rgba(0,0,0,0.5), 0 0 16px rgba(95,166,184,0.45);
}
.vt-stat-num-gold {
  color: var(--vt-gold-bright);
  font-size: 26px;
}
.vt-stat-label {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 600;
}

/* -------- Streak counter (panel header right side) ------------------ */
.vt-streak-counter { text-align: right; }
.vt-streak-counter-label {
  margin: 0;
  font-size: 11px;
  color: var(--vt-rune);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.vt-streak-counter-value {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--vt-blood-soft);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5), 0 0 14px rgba(255,107,102,0.45);
}
.vt-streak-counter-max { color: var(--text-muted); font-size: 18px; }

/* -------- Streak banner --------------------------------------------- */
.vt-streak-banner {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin: 0 0 18px;
  font-size: 13px;
  border: 1px solid transparent;
  position: relative;
  padding-left: 44px;
}
.vt-streak-banner::before {
  content: "⚠";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
}
.vt-streak-banner-warn {
  background: linear-gradient(90deg, rgba(217,166,72,0.18), rgba(217,166,72,0.04));
  border-color: rgba(217, 166, 72, 0.55);
  color: var(--vt-gold-bright);
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.vt-streak-banner-warn::before { color: var(--vt-gold); }
.vt-streak-banner-ok {
  background: linear-gradient(90deg, rgba(108,210,141,0.18), rgba(108,210,141,0.04));
  border-color: rgba(108, 210, 141, 0.55);
  color: var(--vt-emerald);
}
.vt-streak-banner-ok::before { content: "✓"; color: var(--vt-emerald); }

/* -------- Week tab strip (above the day grid) -----------------------
 * Four tabs (Week 1 .. Week 4) — one row of evenly-sized chips with
 * a small gold underline on the active tab.  The "current" tab (the
 * one that holds the player's running streak day) gets a subtle gold
 * dot in the corner so they can see at a glance which week they're on
 * without reading the day numbers.                                    */
.vt-streak-weeks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}
@media (max-width: 540px) {
  .vt-streak-weeks { grid-template-columns: repeat(2, 1fr); }
}

.vt-streak-week {
  background:
    linear-gradient(180deg, rgba(217,166,72,0.05), transparent 60%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px 9px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.vt-streak-week:hover {
  border-color: var(--vt-gold);
  color: var(--vt-gold-bright);
  transform: translateY(-1px);
}
/* Active tab — bright gold border + glow + gold sheen line at the top. */
.vt-streak-week.is-active {
  border-color: var(--vt-gold);
  color: var(--vt-gold-bright);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(217,166,72,0.18), transparent 70%),
    var(--bg-elevated);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.4),
    0 0 18px rgba(217,166,72,0.25);
}
.vt-streak-week.is-active::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--vt-gold-bright), transparent);
  box-shadow: 0 0 8px var(--vt-gold-glow);
}
/* "Current" indicator -- small gold dot in the top-right corner of the
 * week tab that contains the player's running streak day. */
.vt-streak-week.is-current::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vt-emerald);
  box-shadow: 0 0 8px color-mix(in srgb, var(--vt-emerald) 65%, transparent);
}

/* Sub-label on each tab — "Days 1–7" etc.  Smaller and muted so the
 * week number stays the primary read. */
.vt-streak-week-range {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.85;
}
.vt-streak-week.is-active .vt-streak-week-range {
  color: var(--vt-rune);
  opacity: 1;
}

/* -------- Streak day grid (skill-tier colours per day) -------------- */
.vt-streak-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}
@media (max-width: 720px) {
  .vt-streak-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 460px) {
  .vt-streak-grid { grid-template-columns: repeat(2, 1fr); }
}

.vt-streak-day {
  --tier: var(--vt-gold);
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255,255,255,0.06), transparent 70%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 8px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.vt-streak-day::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tier);
  opacity: 0.85;
  box-shadow: 0 0 10px var(--tier);
}
.vt-streak-day:nth-child(1) { --tier: var(--vt-tier-1); }
.vt-streak-day:nth-child(2) { --tier: var(--vt-tier-2); }
.vt-streak-day:nth-child(3) { --tier: var(--vt-tier-3); }
.vt-streak-day:nth-child(4) { --tier: var(--vt-tier-4); }
.vt-streak-day:nth-child(5) { --tier: var(--vt-tier-5); }
.vt-streak-day:nth-child(6) { --tier: var(--vt-tier-6); }
.vt-streak-day:nth-child(7) { --tier: var(--vt-tier-7); }
.vt-streak-day:hover {
  border-color: var(--tier);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4), 0 0 18px color-mix(in srgb, var(--tier) 35%, transparent);
}
.vt-streak-day.is-claimed {
  background:
    radial-gradient(ellipse 90% 80% at 50% 100%, color-mix(in srgb, var(--tier) 22%, transparent), transparent 70%),
    var(--bg-elevated);
  border-color: var(--tier);
}
.vt-streak-day.is-today {
  border-color: var(--tier);
  box-shadow:
    0 0 0 1px var(--tier) inset,
    0 0 18px color-mix(in srgb, var(--tier) 40%, transparent);
}
.vt-streak-icon {
  width: 44px; height: 44px;
  margin: 4px auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tier);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)) drop-shadow(0 0 8px color-mix(in srgb, var(--tier) 50%, transparent));
}
.vt-streak-icon svg { width: 100%; height: 100%; }
.vt-streak-icon .vt-streak-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.vt-streak-day-label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--tier);
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.vt-streak-day-reward {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--text);
  line-height: 1.3;
  opacity: 0.9;
}

/* -------- Claim panel (::claimvotes) -------------------------------- */
.vt-claim-panel { padding: 28px 26px 22px; }

.vt-claim-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vt-gold-bright);
  margin: 0 0 22px;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5), 0 0 14px rgba(217,166,72,0.35);
}

.vt-field { display: block; margin-bottom: 14px; }
.vt-field-wide { max-width: 100%; }
.vt-field-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--vt-rune);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}
.vt-field-input {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.05)),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vt-field-input:focus {
  border-color: var(--vt-gold);
  box-shadow: 0 0 0 2px rgba(217,166,72,0.22), 0 0 12px rgba(217,166,72,0.20);
}
.vt-field-input-locked {
  cursor: default;
  color: var(--vt-gold-bright);
  opacity: 0.95;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.vt-claim-credits {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.vt-claim-credits strong {
  color: var(--vt-emerald);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(108,210,141,0.45);
}

/* -------- Vote site cards (inside claim panel) ---------------------- */
.vt-vote-sites {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 22px;
}
@media (max-width: 900px) { .vt-vote-sites { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vt-vote-sites { grid-template-columns: 1fr; } }

.vt-vote-site {
  --siteclr: var(--vt-gold);
  background:
    radial-gradient(ellipse 90% 50% at 50% 0%, color-mix(in srgb, var(--siteclr) 16%, transparent), transparent 70%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  min-height: 210px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.vt-vote-site::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--siteclr);
  box-shadow: 0 0 12px var(--siteclr);
  opacity: 0.9;
}
.vt-vote-site:hover {
  border-color: var(--siteclr);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45), 0 0 20px color-mix(in srgb, var(--siteclr) 30%, transparent);
}

.vt-vote-site-purple { --siteclr: #a47bff; }
.vt-vote-site-blue   { --siteclr: #3fa8ff; }
.vt-vote-site-red    { --siteclr: #ff6b66; }
.vt-vote-site-teal   { --siteclr: #5fc3d4; }
.vt-vote-site-gold   { --siteclr: var(--vt-gold-bright); }

.vt-vote-site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vt-vote-site-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0,0,0,0.5);
}
.vt-vote-site-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--vt-emerald);
  border: 1px solid rgba(108, 210, 141, 0.55);
  background: linear-gradient(180deg, rgba(108, 210, 141, 0.20), rgba(108, 210, 141, 0.05));
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(108,210,141,0.4);
}
.vt-vote-site-blurb {
  font-size: 13px;
  color: var(--text);
  margin: 4px 0 10px;
  line-height: 1.5;
  flex: 1;
  opacity: 0.78;
}
.vt-vote-site-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.3);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
  box-shadow:
    0 3px 0 rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.vt-vote-site-cta:hover:not(:disabled):not([aria-disabled="true"]) {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow:
    0 4px 0 rgba(0,0,0,0.4),
    0 0 22px color-mix(in srgb, var(--siteclr) 50%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.35);
}
.vt-vote-site-cta:disabled,
.vt-vote-site-cta[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.vt-vote-site-cta-purple { background: linear-gradient(180deg, #b58cff, #6d4bd6); }
.vt-vote-site-cta-blue   { background: linear-gradient(180deg, #5cb5ff, #1d6fc4); }
.vt-vote-site-cta-red    { background: linear-gradient(180deg, #ff7c75, #c0382f); }
.vt-vote-site-cta-teal   { background: linear-gradient(180deg, #6fc8d8, #2d7a8a); }
.vt-vote-site-cta-gold   {
  background: linear-gradient(180deg, var(--vt-gold-bright), var(--vt-gold-deep));
  color: #1a1208;
  text-shadow: 0 1px 0 rgba(255,255,255,0.3);
}

.vt-vote-site-cooldown {
  margin: 10px 0 0;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  line-height: 1.45;
}

.vt-vote-sites-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 13px;
}

/* -------- How to Vote (footer of claim panel) ----------------------- */
.vt-howto {
  border-top: 1px dashed rgba(217,166,72,0.35);
  padding-top: 16px;
  margin-top: 4px;
}
.vt-howto-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--vt-gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 10px rgba(217,166,72,0.3);
}
.vt-howto-list {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.85;
}
.vt-howto-list strong { color: var(--vt-gold-bright); font-weight: 700; }
.vt-howto-list li::marker { color: var(--vt-gold); font-weight: 800; }

/* -------- Sidebar panels ------------------------------------------- */
.vt-side-panel { padding: 18px 18px 14px; }

.vt-side-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
}
.vt-side-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(217,166,72,0.04), transparent 70%),
    var(--bg-elevated);
  margin-bottom: 6px;
  border: 1px solid var(--border);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.vt-side-list li:hover {
  border-color: var(--vt-gold);
  transform: translateX(2px);
}
.vt-side-list li.vt-side-empty {
  justify-content: center;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 13px;
  padding: 18px 8px;
  letter-spacing: 0.04em;
}
.vt-side-list li.vt-side-empty:hover { transform: none; border-color: var(--border); }

/* Top-3 medal tints in the leaderboard */
.vt-side-list[data-side="top-month"] li:nth-child(1) {
  background:
    linear-gradient(90deg, rgba(217,166,72,0.20), transparent 70%),
    var(--bg-elevated);
  border-color: rgba(217,166,72,0.55);
}
.vt-side-list[data-side="top-month"] li:nth-child(2) {
  background:
    linear-gradient(90deg, rgba(192,202,214,0.16), transparent 70%),
    var(--bg-elevated);
  border-color: rgba(192,202,214,0.40);
}
.vt-side-list[data-side="top-month"] li:nth-child(3) {
  background:
    linear-gradient(90deg, rgba(205,127,50,0.16), transparent 70%),
    var(--bg-elevated);
  border-color: rgba(205,127,50,0.40);
}

.vt-side-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  text-shadow: 0 1px 0 rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.vt-side-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 13px;
}
.vt-side-rank {
  color: var(--vt-gold);
  margin-right: 6px;
  font-size: 12px;
  font-weight: 800;
}
.vt-side-name {
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  letter-spacing: 0.02em;
}
.vt-side-sub {
  color: var(--text-muted);
  font-size: 11px;
  margin-top: 1px;
}
.vt-side-meta {
  color: var(--vt-gold-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(217,166,72,0.35);
}
.vt-side-meta-muted {
  color: var(--text-muted);
  font-weight: 500;
  text-shadow: none;
}

/* -------- Modal ------------------------------------------------------ */
.vt-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}
.vt-modal[hidden] { display: none; }

.vt-modal-card {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(217,166,72,0.15), transparent 60%),
    var(--bg-card);
  border: 1px solid rgba(217,166,72,0.45);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 30px rgba(217,166,72,0.15);
  width: 100%;
  max-width: 440px;
  padding: 32px 28px 24px;
  position: relative;
}
.vt-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}
.vt-modal-close:hover { color: var(--vt-gold-bright); }

.vt-modal-title {
  font-size: 24px;
  text-transform: uppercase;
  color: var(--vt-gold-bright);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 0 rgba(0,0,0,0.5), 0 0 14px rgba(217,166,72,0.4);
}
.vt-modal-sub {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.vt-modal-error {
  margin: 6px 0 12px;
  padding: 10px 12px;
  background: linear-gradient(90deg, rgba(224, 99, 90, 0.20), rgba(224, 99, 90, 0.05));
  border: 1px solid rgba(224, 99, 90, 0.5);
  border-radius: var(--radius);
  color: #ff8a82;
  font-size: 13px;
}

.vt-modal-submit { width: 100%; margin-top: 2px; }

.vt-modal-foot {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.03em;
}
