/* ============================================================
   Banks Internal Surveys – Design System
   Dark Premium Theme · Gold/Violet Accents
   ============================================================ */

:root {
  /* Native Controls (Selects, Datepicker, Scrollbars) im Dark-Mode rendern */
  color-scheme: dark;
  --bg: #0a0d14;
  --bg-soft: #0e1220;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9edf5;
  --muted: #8d96ab;
  --accent: #e8b84b;
  --accent-2: #8b5cf6;
  --accent-grad: linear-gradient(135deg, #e8b84b 0%, #f5d68a 45%, #8b5cf6 130%);
  --danger: #f16a63;
  --success: #4ade80;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* [hidden] muss auch gegen display:flex-Klassen gewinnen */
[hidden] { display: none !important; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(900px 480px at -10% 0%, rgba(232, 184, 75, 0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

h1, h2, h3 { font-family: var(--font-head); letter-spacing: 0.01em; margin: 0 0 0.5em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.12rem; margin-bottom: 0.9em; }
a { color: var(--text); text-decoration: none; }
p { margin: 0 0 0.8em; }
code { font-size: 0.85em; }

.muted { color: var(--muted); }
.small { font-size: 0.83rem; }
.nowrap { white-space: nowrap; }
.ta-right { text-align: right; }
.center { text-align: center; }

/* ---------------------------------------------------------- Topbar */

.topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 26px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.2em;
}
.brand-sub {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-left: 2px;
}

.topnav { display: flex; gap: 4px; flex: 1; }
.topnav a {
  padding: 7px 14px;
  border-radius: 99px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.92rem;
}
.topnav a:hover { color: var(--text); background: var(--surface); }
.topnav a.is-active { color: var(--text); background: var(--surface-2); }

.topbar-user { display: flex; align-items: center; gap: 12px; }
.user-email { color: var(--muted); font-size: 0.85rem; }

/* ---------------------------------------------------------- Campaign hero */

.campaign-hero {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.07), transparent);
}
.campaign-hero-inner { max-width: 1280px; margin: 0 auto; padding: 22px 26px 0; }
.campaign-hero-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.campaign-hero-head h1 { margin: 0; font-size: 1.45rem; }

.subnav { display: flex; gap: 2px; margin-top: 14px; flex-wrap: wrap; }
.subnav a {
  padding: 10px 16px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.93rem;
  border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--text); }
.subnav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------- Layout */

.main { max-width: 1280px; margin: 0 auto; padding: 28px 26px 60px; }
.footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 26px 34px;
  color: var(--muted);
  font-size: 0.8rem;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.page-head h1 { margin: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}
.panel-highlight {
  border-color: rgba(232, 184, 75, 0.45);
  background: linear-gradient(160deg, rgba(232, 184, 75, 0.08), var(--surface));
}

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-sm { display: flex; flex-direction: column; gap: 9px; }

/* ---------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent-grad);
  border: none;
  color: #191203;
  box-shadow: 0 6px 22px rgba(232, 184, 75, 0.25);
}
/* background erneut setzen – sonst gewinnt .btn:hover (höhere Spezifität)
   und das Gold-Gradient verschwindet beim Hovern */
.btn-primary:hover {
  background: var(--accent-grad);
  filter: brightness(1.12) saturate(1.05);
  box-shadow: 0 8px 30px rgba(232, 184, 75, 0.45);
  transform: translateY(-1px);
}

.btn-danger { border-color: rgba(241, 106, 99, 0.5); color: #ffb0aa; }
.btn-danger:hover { background: rgba(241, 106, 99, 0.12); }

.btn-ghost { background: transparent; }
.btn-sm { padding: 5px 11px; font-size: 0.82rem; }
.btn-xl { padding: 15px 34px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row-right { justify-content: flex-end; }
.btn-row form { margin: 0; }
.form-actions { display: flex; gap: 10px; }

/* ---------------------------------------------------------- Badges & Flags */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}
.badge-draft    { background: rgba(141, 150, 171, 0.15); color: #aeb6c8; border-color: rgba(141, 150, 171, 0.3); }
.badge-active   { background: rgba(74, 222, 128, 0.13); color: #6ee7a0; border-color: rgba(74, 222, 128, 0.35); }
.badge-closed   { background: rgba(241, 106, 99, 0.13); color: #ff9d96; border-color: rgba(241, 106, 99, 0.35); }
.badge-open     { background: rgba(141, 150, 171, 0.15); color: #aeb6c8; }
.badge-progress { background: rgba(232, 184, 75, 0.14); color: #f0cd7c; border-color: rgba(232, 184, 75, 0.4); }
.badge-done     { background: rgba(74, 222, 128, 0.13); color: #6ee7a0; border-color: rgba(74, 222, 128, 0.35); }
.badge-locked   { background: rgba(241, 106, 99, 0.13); color: #ff9d96; border-color: rgba(241, 106, 99, 0.35); }
.badge-lockicon { background: rgba(139, 92, 246, 0.15); color: #c3aaff; border-color: rgba(139, 92, 246, 0.4); }

.flag { cursor: help; margin-right: 3px; }

/* ---------------------------------------------------------- Forms */

.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field > span { font-size: 0.83rem; font-weight: 600; color: var(--muted); }

input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="datetime-local"], input[type="file"], select, textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(0, 0, 0, 0.3);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.93rem;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.15);
}
input[readonly] { opacity: 0.55; }
select option { background: var(--bg-soft); }
textarea { resize: vertical; }

.field-row { display: flex; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 0.9rem; }
.check input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.check-sm { font-size: 0.82rem; }

/* ---------------------------------------------------------- Flash & Notices */

.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 500;
  border: 1px solid;
}
.flash-success { background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.35); color: #86efac; }
.flash-error   { background: rgba(241, 106, 99, 0.1); border-color: rgba(241, 106, 99, 0.4); color: #fca5a1; }

.notice {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.notice-lock { border-color: rgba(139, 92, 246, 0.45); background: rgba(139, 92, 246, 0.09); }
.notice-warn { border-color: rgba(232, 184, 75, 0.45); background: rgba(232, 184, 75, 0.07); }
.notice ul { margin: 6px 0 0; padding-left: 20px; }

/* ---------------------------------------------------------- Tables */

.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th {
  text-align: left;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-strong);
}
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.table-sm td, .table-sm th { padding: 6px 8px; font-size: 0.84rem; }
.table-scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }

.code-chip {
  background: rgba(139, 92, 246, 0.13);
  color: #c3aaff;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
}
.audit-details { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-details code { color: var(--muted); }

/* ---------------------------------------------------------- KPI & Cards */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kpi strong { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.2; }
.kpi span { color: var(--muted); font-size: 0.8rem; }
.kpi-accent { border-color: rgba(232, 184, 75, 0.5); background: linear-gradient(150deg, rgba(232, 184, 75, 0.12), var(--surface)); }
.kpi-accent strong { color: var(--accent); }
.kpi-compact .kpi, .kpi-compact { margin-bottom: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }

.campaign-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.18s ease;
}
.campaign-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 184, 75, 0.5);
  box-shadow: var(--shadow);
}
.campaign-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.campaign-card-head h2 { margin: 0; font-size: 1.1rem; }
.campaign-question { color: var(--muted); font-style: italic; font-size: 0.9rem; margin: 0; }
.campaign-card-foot { font-size: 0.78rem; }

.mini-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.mini-stats div { display: flex; flex-direction: column; }
.mini-stats strong { font-family: var(--font-head); font-size: 1.15rem; }
.mini-stats span { color: var(--muted); font-size: 0.74rem; }

.progress {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent-grad);
  border-radius: 99px;
  transition: width 0.4s ease;
}

.empty-state {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
}
.empty-icon { font-size: 3rem; margin-bottom: 10px; }

/* ---------------------------------------------------------- Designs */

.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }

.design-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.design-card.is-inactive { opacity: 0.55; }
.design-thumb { position: relative; aspect-ratio: 4 / 3; background: rgba(0, 0, 0, 0.35); }
.design-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.design-off {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 3px 10px; border-radius: 99px; font-size: 0.72rem;
}
.design-form { padding: 14px; }
.design-name { font-weight: 700; }
.design-meta { font-size: 0.76rem; }
.design-delete { padding: 0 14px 14px; }

.thumb { width: 58px; height: 44px; object-fit: contain; border-radius: 6px; background: rgba(0, 0, 0, 0.35); }
.thumb-xs { width: 34px; height: 26px; object-fit: contain; border-radius: 4px; background: rgba(0, 0, 0, 0.35); vertical-align: middle; }
.duel { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }

/* ---------------------------------------------------------- Voter links */

.link-row { display: flex; gap: 8px; align-items: center; }
.link-who { min-width: 130px; font-weight: 600; font-size: 0.88rem; }
.link-input {
  flex: 1;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem !important;
  color: var(--accent);
}

/* ---------------------------------------------------------- Analytics */

.filterbar {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 18px;
  margin-bottom: 20px;
}

.chart-box { position: relative; height: 320px; }
.chart-box-sm { height: 240px; }

.table-ranking .rank-cell { font-size: 1.15rem; width: 52px; text-align: center; }
.rank-top td { background: rgba(232, 184, 75, 0.045); }
.rank-1 td { background: rgba(232, 184, 75, 0.1); }
.elo { color: var(--accent); font-family: var(--font-head); }

.winrate-bar {
  display: inline-block;
  width: 64px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  margin-right: 8px;
  vertical-align: middle;
  overflow: hidden;
}
.winrate-bar span { display: block; height: 100%; background: var(--accent-grad); border-radius: 99px; }

.table-matrix { font-size: 0.8rem; }
.table-matrix td { text-align: center; min-width: 46px; }
.matrix-rowhead { font-size: 0.78rem; white-space: nowrap; }
.matrix-self, .matrix-empty { color: var(--muted); }

.h2h-controls { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.vs-chip {
  font-family: var(--font-head);
  font-weight: 700;
  background: var(--accent-grad);
  color: #191203;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.h2h-result { min-height: 90px; }
.h2h-duel { display: flex; flex-direction: column; gap: 10px; }
.h2h-names { display: flex; justify-content: space-between; font-weight: 600; gap: 10px; flex-wrap: wrap; }
.h2h-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.06); }
.h2h-bar-a { background: var(--accent-grad); display:flex; align-items:center; justify-content:center; color:#191203; font-weight:700; font-size:0.8rem; min-width: 0; transition: width .4s; }
.h2h-bar-b { background: rgba(139, 92, 246, 0.55); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:0.8rem; min-width: 0; transition: width .4s; }

.issue-list { margin: 0; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 0.9rem; }
.ok-state { color: var(--success); font-weight: 600; }

/* ---------------------------------------------------------- Auth */

.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.auth-glow, .vote-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 340px at 75% 15%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(600px 340px at 20% 85%, rgba(232, 184, 75, 0.12), transparent 55%);
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: rgba(14, 18, 32, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 38px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.auth-brand { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.06em; margin-bottom: 22px; font-size: 1.1rem; }
.status-icon { font-size: 3rem; margin-bottom: 12px; }

/* ---------------------------------------------------------- Voting UI */

.vote-body { overflow-x: hidden; }

.vote-intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}
.vote-intro-card {
  position: relative;
  max-width: 640px;
  width: 100%;
  background: rgba(14, 18, 32, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 44px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.vote-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}
.vote-intro-card h1 { font-size: 1.9rem; margin-bottom: 14px; }
.vote-desc { color: #c6cddc; font-size: 1.02rem; }

.vote-howto { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; }
.howto-item { display: flex; align-items: center; gap: 13px; color: #c6cddc; font-size: 0.95rem; }
.howto-num {
  width: 28px; height: 28px;
  border-radius: 99px;
  background: var(--accent-grad);
  color: #191203;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.complete-icon { font-size: 4rem; margin-bottom: 8px; animation: pop-in 0.6s cubic-bezier(0.2, 1.6, 0.4, 1); }

@keyframes pop-in {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Voting stage */

.vote-stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.vote-header { padding: 22px 24px 8px; text-align: center; }
.vote-question {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  font-weight: 600;
  margin-bottom: 14px;
}
.vote-progress { max-width: 460px; margin: 0 auto; }
.vote-progress-text { font-size: 0.83rem; color: var(--muted); margin-bottom: 7px; }

.vote-arena {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 22px;
  padding: 18px 26px;
  position: relative;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  min-height: 0;
}

.vote-card {
  flex: 1;
  max-width: 640px;
  border-radius: 18px;
  border: 2px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.25s ease;
  overflow: hidden;
  min-height: 0;
}
.vote-card img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  pointer-events: none;
}
.vote-card:hover, .vote-card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 18px 46px rgba(232, 184, 75, 0.18);
  outline: none;
}
.vote-card.is-chosen {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(232, 184, 75, 0.28), 0 22px 60px rgba(232, 184, 75, 0.3);
  transform: scale(1.03);
}
.vote-card.is-dimmed { opacity: 0.25; transform: scale(0.97); }
.vote-card.is-loading { pointer-events: none; }

.vote-arena.is-swapping .vote-card { opacity: 0; transform: scale(0.965); transition: opacity 0.18s, transform 0.18s; }

.vs-badge {
  align-self: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--accent-grad);
  color: #191203;
  border-radius: 99px;
  padding: 9px 15px;
  box-shadow: 0 8px 26px rgba(232, 184, 75, 0.35);
  flex-shrink: 0;
  z-index: 2;
}

.vote-footer { text-align: center; padding: 10px 20px 22px; }
.key-hint { color: var(--muted); font-size: 0.8rem; }
kbd {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 0.78rem;
  font-family: inherit;
}

/* ---------------------------------------------------------- Responsive */

@media (max-width: 960px) {
  .grid-2 { grid-template-columns: 1fr; }
  .topbar { padding: 12px 16px; gap: 14px; flex-wrap: wrap; }
  .topnav { order: 3; flex-basis: 100%; }
  .user-email { display: none; }
  .main { padding: 20px 16px 50px; }
  .campaign-hero-inner { padding: 18px 16px 0; }
  .field-row { flex-direction: column; gap: 14px; }
}

@media (max-width: 760px) {
  .vote-arena { flex-direction: column; align-items: center; gap: 12px; padding: 12px 16px; }
  .vote-card { width: 100%; max-width: 560px; flex: 1 1 0; }
  .vs-badge { margin: -6px 0; padding: 6px 12px; font-size: 0.8rem; }
  .vote-header { padding: 16px 16px 4px; }
  .key-hint { display: none; }
  .vote-footer { padding: 6px 16px 14px; }
  .vote-intro-card { padding: 30px 22px; }
  .link-row { flex-wrap: wrap; }
  .h2h-controls { flex-wrap: wrap; }
}
