/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0d0d;
  --surface: #141414;
  --border: #222;
  --purple: #a855f7;
  --grey: #222222;
  --red: #FF4D6A;
  --text: #e5e5e5;
  --muted: #666;
  --font-mono: 'Space Mono', monospace;
  --font-head: 'Barlow Condensed', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  min-height: 100vh;
}

/* ── Toast notifications ── */
#toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 420px;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  animation: toast-in 0.25s ease;
  cursor: pointer;
}
.toast--error   { background: #2d1010; border: 1px solid var(--red);    color: #fca5a5; }
.toast--success { background: #0d2318; border: 1px solid #4ade80;        color: #86efac; }
.toast--info    { background: #1a1030; border: 1px solid var(--purple);  color: #d8b4fe; }
.toast--warning { background: #2a1e00; border: 1px solid #f59e0b;        color: #fcd34d; }
.toast-out { animation: toast-out 0.2s ease forwards; }
@keyframes toast-in  { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }
@keyframes toast-out { from { opacity:1; transform:translateY(0); }     to { opacity:0; transform:translateY(-8px); } }

/* ── Header ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.logo {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #e8f0fe;
}

.header-stats {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* #round-counter { color: var(--purple); font-weight: 700; }
#total-voters  { color: var(--red); font-weight: 700; } */

/* ── Main ── */
main { max-width: 900px; margin: 0 auto; padding: 1.5rem 1rem; }

/* ── Battle Card ── */
.battle-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 5px;
  padding: 1.5rem;
  margin-bottom: 0.75rem;
  background-clip: padding-box;
  position: relative;
}
.battle-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--red));
  z-index: -1;
}

.token-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.token-img-wrap { display: flex; align-items: center; justify-content: center; }
.token-img  { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.token-emoji {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
}

.token-ticker {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.left .token-ticker { color: var(--purple); }
.right .token-ticker { color: var(--red); }

.token-name { font-size: 0.75rem; color: var(--muted); }
.token-ca {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.1rem;
}
.token-ca-short {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.token-ca-copy {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
}
.token-ca-copy:hover { color: var(--text); }
.token-mc   { font-size: 0.8rem; color: var(--text); }

/* ── Vote Buttons ── */
.vote-btn {
  margin-top: 0.5rem;
  padding: 0.6rem 1.6rem;
  border: none;
  border-radius: 5px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  letter-spacing: 0.05em;
}

.vote-btn-left  { background: var(--purple); color: #fff; }
.vote-btn-right { background: var(--red); color: #fff; }

.vote-btn:hover  { opacity: 0.85; transform: scale(1.03); }
.vote-btn:active { transform: scale(0.98); }
.vote-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.vote-btn-guest { opacity: 0.4; cursor: not-allowed; }

.voted-check {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.5rem;
  color: #4ade80;
}

/* ── VS Column ── */
.vs-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-width: 100px;
}

.vs-label {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--muted);
}

.progress-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.progress-bar {
  height: 12px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--purple) var(--left-pct, 50%), var(--red) var(--left-pct, 50%));
  transition: --left-pct 0.5s ease;
  width: 100%;
}

.progress-pcts {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
}

#pct-left  { color: var(--purple); }
#pct-right { color: var(--red); }

.vote-counts {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── Ended Banner ── */
.ended-banner {
  background: linear-gradient(90deg, var(--purple), var(--red));
  color: #fff;
  text-align: center;
  padding: 0.75rem;
  border-radius: 5px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 1rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

/* ── Creator Accordion ── */
.creator-accordion {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 5px;
  /* margin-bottom: 0.75rem; */
  overflow: hidden;
}
.creator-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-align: left;
}
.creator-header:hover { background: var(--surface); }
.creator-label {
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}
.creator-summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}
.creator-avatar-wrap {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.creator-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.creator-name {
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}
.creator-wallet-short {
  color: var(--muted);
  font-size: 0.68rem;
  white-space: nowrap;
}
.creator-chevron {
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: auto;
  flex-shrink: 0;
}
.creator-body {
  padding: 0.6rem 0.9rem 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.creator-detail-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.creator-detail-label {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 52px;
}
.creator-detail-val {
  font-family: var(--font-mono);
  color: var(--text);
  word-break: break-all;
}
.creator-full-wallet {
  font-size: 0.65rem;
  color: var(--muted);
}
.creator-detail-link {
  color: var(--purple);
  text-decoration: none;
  font-family: var(--font-mono);
}
.creator-detail-link:hover { text-decoration: underline; }
.social-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.15s;
}
.creator-socials-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.creator-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.creator-social-btn:hover,
.creator-social-btn:hover .social-icon { color: var(--purple); border-color: var(--purple); }
.creator-wallet-short-inline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.65rem;
}
@media (max-width: 480px) {
  .creator-wallet-short-inline { display: none; }
}

/* ── Tabs ── */
.tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tab-btn {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--border);
  color: var(--text);
}

/* ── Panels ── */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1rem;
}

/* ── Chat ── */
.chat-feed {
  background: var(--bg);
  border: 1px solid var(--border);
  height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  scroll-behavior: smooth;
}

.chat-msg {
  font-size: 0.8rem;
  line-height: 1.4;
}

.chat-username { font-weight: 700; }
.chat-username.left-side  { color: var(--purple); }
.chat-username.right-side { color: var(--red); }
.chat-username.no-side    { color: var(--muted); }

.chat-input-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chat-input-row input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}

#chat-username { width: 120px; }
#chat-message  { flex: 1; min-width: 0; }

/* .chat-input-row button {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.9rem;
} */

/* ── Ranking Table ── */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ranking-table th {
  text-align: left;
  color: var(--muted);
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}

.ranking-table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.ranking-table tr:last-child td { border-bottom: none; }

.rank-num { color: var(--muted); }
.rank-ticker { color: var(--purple); font-weight: 700; }
.rank-token-link { text-decoration: none; }
.rank-token-link:hover .rank-ticker { text-decoration: underline; }
.rank-wins   { color: #4ade80; }
.rank-losses { color: #f87171; }

/* ── Admin Panel ── */
.admin-panel {
  margin-top: 1rem;
  border-color: var(--red);
}

.admin-panel h2 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.admin-inputs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.admin-inputs input {
  flex: 1;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}

.admin-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.admin-buttons button {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-family: var(--font-head);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-danger { background: #dc2626 !important; }
#admin-msg  { font-size: 0.75rem; color: #4ade80; min-height: 1rem; }

/* ── Wallet Button ── */
#wallet-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.connect-btn1 {
  /* background: var(--red); */
  background: linear-gradient(90deg, var(--purple), var(--red));
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 5px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.1s;
}

.connect-btn1:hover  { opacity: 0.85; transform: scale(1.03); }
.connect-btn1:active { transform: scale(0.97); }
.connect-btn1:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.connect-btn2 {
  /* background: var(--purple); */
  background: linear-gradient(90deg, var(--red), var(--purple));
  
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 5px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.1s;
}

.connect-btn2:hover  { opacity: 0.85; transform: scale(1.03); }
.connect-btn2:active { transform: scale(0.97); }
.connect-btn2:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.connect-btn3 {
  /* background: var(--purple); */
  background: var(--grey);
  
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: 5px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.1s;
}

.connect-btn3:hover  { opacity: 0.85; transform: scale(1.03); }
.connect-btn3:active { transform: scale(0.97); }
.connect-btn3:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
/* ── Wallet Dropdown ── */
.wallet-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
}



.hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
}

.hamburger-icon span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 5px;
  transition: background 0.2s;
}

.wallet-menu-trigger:hover .hamburger-icon span {
  background: var(--purple);
}

.wallet-menu-header {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--purple);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  user-select: none;
}

.wallet-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 100;
}

.wallet-menu button {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.wallet-menu button:last-child { border-bottom: none; }

.wallet-menu button:hover { background: var(--border); }

.wallet-menu button:last-child:hover {
  background: rgba(248, 113, 113, 0.12);
  color: #f87171;
}

/* ── Promote Panel ── */
#panel-promote {
  margin-bottom: 0.75rem;
  border-color: rgba(168, 85, 247, 0.4);
}

#panel-promote h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--purple);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.promote-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.promote-buttons button {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

#btn-feature { border-color: rgba(168, 85, 247, 0.5); }
#btn-feature:hover { background: rgba(168, 85, 247, 0.15); border-color: var(--purple); }

#btn-promote { border-color: rgba(255, 77, 106, 0.5); }
#btn-promote:hover { background: rgba(255, 77, 106, 0.15); border-color: var(--red); }

#promote-msg { font-size: 0.75rem; color: #4ade80; min-height: 1rem; }

/* ── Chat Premium ── */
.chat-msg-premium {
  background: rgba(168, 85, 247, 0.06);
  border-left: 2px solid var(--purple);
  padding-left: 0.4rem;
  border-radius: 5px 4px 4px 0;
}

.holder-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 5px;
  padding: 0 0.3rem;
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* ── Profile Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
  padding: 1rem;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.04em;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}

.modal-close:hover { color: var(--text); background: var(--border); }

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Avatar */
.avatar-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  font-size: 2rem;
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.avatar-upload-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 0.4rem 0.85rem;
  border-radius: 5px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s;
}

.avatar-upload-btn:hover { opacity: 0.85; }

.avatar-remove-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.35rem 0.85rem;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.avatar-remove-btn:hover { color: #f87171; border-color: #f87171; }

/* Wallet info row */
.profile-wallet-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.profile-wallet-label {
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.profile-wallet-addr {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--muted);
  word-break: break-all;
  flex: 1;
}

/* Fields */
.profile-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.profile-fields label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.profile-fields label span {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.profile-fields input,
.profile-fields textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 0.15s;
  resize: none;
  width: 100%;
}

.profile-fields input:focus,
.profile-fields textarea:focus {
  border-color: var(--purple);
}

.input-prefix-wrap-unused {
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s;
}

.input-prefix-wrap:focus-within { border-color: var(--purple); }

.input-prefix {
  padding: 0.55rem 0.6rem 0.55rem 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  user-select: none;
}

.input-prefix-wrap input {
  border: none;
  border-radius: 0;
  padding-left: 0;
  flex: 1;
}

.input-prefix-wrap input:focus { border-color: transparent; }

/* Footer */
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}

.btn-cancel {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.btn-cancel:hover { color: var(--text); border-color: #444; }

.btn-save {
  background: var(--purple);
  border: none;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: opacity 0.2s;
}

.btn-save:hover { opacity: 0.85; }

/* ── Home Page ── */
.home-section-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem;
}
.live-label { color: var(--red); }

.home-battles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Home Battle Card */
.hbc {
  display: block;
  position: relative;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s;
}
.hbc:hover { border-color: var(--purple); transform: translateY(-2px); }
.hbc--active { border-color: var(--red); box-shadow: 0 0 12px rgba(255,77,106,.15); }
.hbc-index {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  padding: 0.2rem 0.42rem;
  border-radius: 5px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--muted);
  letter-spacing: 0.03em;
}
.hbc-index--1 {
  background: rgba(255,199,0,.12);
  border-color: rgba(255,199,0,.4);
  color: #ffd700;
}
.hbc-index--2 {
  background: rgba(180,180,190,.1);
  border-color: rgba(180,180,190,.35);
  color: #c0c0c0;
}
.hbc-index--3 {
  background: rgba(180,100,40,.12);
  border-color: rgba(205,127,50,.4);
  color: #cd7f32;
}
.hbc--active:hover { border-color: var(--red); }
.hbc--ended { border-color: var(--purple); box-shadow: 0 0 12px rgba(168,85,247,.1); }
.hbc--ended:hover { border-color: var(--purple); }

.hbc-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
}

.hbc-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.hbc-side--right { align-items: center; }

.hbc-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}
.hbc-token-img  { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.hbc-trophy {
  font-size: 0.9em;
  line-height: 1;
  margin-right: 2px;
}
.hbc-token-emoji {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
}

.hbc-ticker {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 900;
}
.hbc-ticker--left  { color: var(--purple); }
.hbc-ticker--right { color: var(--red); }
.hbc-mc { font-size: 0.65rem; color: var(--muted); }

.hbc-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 80px;
}
.hbc-vs {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--muted);
}
.hbc-bar-wrap { width: 100%; }
.hbc-bar { height: 6px; border-radius: 3px; width: 100%; }
.hbc-pcts {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.7rem;
  font-weight: 700;
}

.hbc-badge {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
}
.hbc-badge--live   { background: var(--red);    color: #fff; animation: pulse 1.5s infinite; }
.hbc-badge--winner { background: #fbbf24;       color: #000; }
.hbc-badge--tie    { background: var(--border); color: var(--muted); }

.hbc-cta {
  text-align: center;
  padding: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--red);
  border-top: 1px solid var(--border);
}
.hbc-cta--ended {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--purple);
}

.home-empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 0;
  font-size: 0.9rem;
}

.hbc-timer {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.5rem;
}

/* ── Home Stats Bar ── */
.home-stats {
  display: flex;
  align-items: stretch;
  margin-bottom: 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  overflow: hidden;
}
.home-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0;
  gap: 0.2rem;
}
.home-stat + .home-stat {
  border-left: 1px solid var(--border);
}
.home-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple);
}
.home-stat-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.home-stat-sep {
  display: none;
}

/* ── Home banner slideshow ── */
.home-banner-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.home-banner-slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.home-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.home-slide--active { opacity: 1; }
.home-banner-dots {
  position: absolute;
  bottom: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.35rem;
  z-index: 2;
}
.home-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.home-dot--active { background: #fff; transform: scale(1.25); }
.home-banner-admin {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}
.home-banner-wrap:hover .home-banner-admin { opacity: 1; }
.home-banner-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.home-banner-btn:hover { background: rgba(255,255,255,.28); }
.home-banner-btn--remove { border-color: rgba(255,77,106,.5); color: #fca5a5; }
.home-banner-btn--remove:hover { background: rgba(255,77,106,.2); }
.home-banner-upload-zone {
  width: 100%;
  aspect-ratio: 5 / 1;
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.home-banner-upload-zone:hover { border-color: var(--purple); color: var(--text); }
.home-banner-manage-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .78rem;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.2s;
}
.home-banner-wrap:hover .home-banner-manage-btn { opacity: 1; }

/* ── Banner management modal rows ── */
.bm-empty { color: var(--muted); font-size: .9rem; text-align: center; padding: 1.5rem 0; }
.bm-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.bm-thumb {
  width: 120px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.bm-link-input {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: .82rem;
  padding: 0.4rem 0.7rem;
  outline: none;
  transition: border-color 0.15s;
}
.bm-link-input::placeholder { color: var(--muted); }
.bm-link-input:focus { border-color: var(--purple); }
.bm-del-btn {
  background: none;
  border: 1px solid rgba(255,77,106,.4);
  color: #fca5a5;
  font-size: .8rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.bm-del-btn:hover { background: rgba(255,77,106,.2); }

/* ── Home Top Bar ── */
.home-topbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.home-search-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.home-search-icon {
  position: absolute;
  left: 0.75rem;
  font-size: 0.85rem;
  pointer-events: none;
}
.home-search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 0.55rem 2.25rem 0.55rem 2.1rem;
  outline: none;
  transition: border-color 0.15s;
}
.home-search-input:focus { border-color: var(--purple); }
.home-search-input::placeholder { color: var(--muted); }
.home-search-clear {
  position: absolute;
  right: 0.6rem;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.75rem;
  padding: 2px 4px;
}
.home-search-clear:hover { color: var(--text); }

.home-create-btn {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  /* background: var(--purple); */
   background: linear-gradient(90deg, var(--purple), var(--red));
  border: none;
  border-radius: 5px;
  padding: 0.55rem 1.1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.home-create-btn:hover { opacity: 0.85; }

/* ── No-results state ── */
.home-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 1rem;
  text-align: center;
}
.home-no-results p { color: var(--muted); font-size: 0.9rem; }

/* ── Create Battle Page ── */
/* .cb-page { max-width: 560px; margin: 0 auto; } */
.cb-page { max-width: 700px; margin: 0 auto; }

.cb-back { margin-bottom: 1.25rem; }
.cb-back a { color: var(--muted); font-size: 0.8rem; text-decoration: none; }
.cb-back a:hover { color: var(--text); }

.cb-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cb-title {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.cb-title-row > .cb-title {
  margin-bottom: 0px !important;
}
.battle-timer {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(255,77,106,.35);
  border-radius: 20px;
  padding: 0.3rem 0.75rem;
  white-space: nowrap;
}

.cb-warning {
  background: rgba(255,77,106,.1);
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 5px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.cb-form { display: flex; flex-direction: column; gap: 1.25rem; }

.cb-field { display: flex; flex-direction: column; gap: 0.4rem; }
.cb-field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}
.cb-field input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.6rem 0.75rem;
  outline: none;
  transition: border-color 0.15s;
}
.cb-field input:focus        { border-color: var(--purple); }
.cb-field--left label        { color: var(--purple); }
.cb-field--left input        { border-color: color-mix(in srgb, var(--purple) 40%, var(--border)); }
.cb-field--left input:focus  { border-color: var(--purple); }
.cb-field--right label       { color: var(--red); }
.cb-field--right input       { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); }
.cb-field--right input:focus { border-color: var(--red); }

.cb-token-preview {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}
.cb-preview-img   { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.cb-preview-emoji { font-size: 1.4rem; }
.cb-preview-ticker { font-family: var(--font-head); font-size: 1rem; font-weight: 900; color: var(--purple); }
.cb-preview-name   { color: var(--muted); font-size: 0.75rem; }
.cb-preview-mc     { margin-left: auto; color: var(--muted); font-size: 0.7rem; }

.cb-vs-divider {
  text-align: center;
}
.cb-vs-text {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 900;
  display: inline-block;
  background: linear-gradient(90deg, var(--purple), var(--red));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Duration grid */
.cb-duration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.cb-dur-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 0.5rem;
  gap: 0.25rem;
  transition: border-color 0.15s;
}
.cb-dur-btn:hover  { border-color: var(--purple); }
.cb-dur-btn.active { border-color: var(--purple); background: rgba(168,85,247,.1); }
.cb-dur-h     { font-family: var(--font-head); font-size: 1.2rem; font-weight: 900; }
.cb-dur-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: #4ade80;
  color: #000;
  border-radius: 3px;
  padding: 1px 5px;
}
.cb-dur-price { font-size: 0.7rem; color: var(--muted); }

/* Price box */
.cb-price-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.75rem 1rem;
}
.cb-price-label { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.cb-price-value { font-family: var(--font-head); font-size: 1.5rem; font-weight: 900; color: var(--purple); }
.cb-price-note  { font-size: 0.7rem; color: #4ade80; }

.cb-offer-banner {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0.65rem 1rem;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(168,85,247,.15), rgba(255,77,106,.15));
  border: 1px solid var(--purple);
  color: #fff;
  animation: pulse 2s infinite;
  margin-bottom: 1rem;
}

.cb-dur-strike {
  color: var(--muted);
  font-size: 0.65rem;
  margin-right: 2px;
}

.cb-admin-note {
  font-size: 0.85rem;
  color: #4ade80;
  background: rgba(74,222,128,.08);
  border: 1px solid rgba(74,222,128,.3);
  border-radius: 5px;
  padding: 0.6rem 1rem;
}

/* ── Banner upload (create battle) ── */
.cb-optional {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
}
.cb-banner-upload {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 1;
  border: 1.5px dashed var(--border);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  transition: border-color 0.2s;
}
.cb-banner-upload:hover { border-color: var(--purple); }
.cb-banner-placeholder {
  font-size: 0.8rem;
  color: var(--muted);
  pointer-events: none;
}
.cb-banner-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cb-banner-clear {
  margin-top: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.cb-banner-clear:hover { border-color: var(--red); color: var(--red); }

/* ── Toggle switch ── */
.cb-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
  margin-bottom: 0.25rem;
}
.cb-toggle-wrap {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.cb-toggle-wrap input { opacity: 0; width: 0; height: 0; position: absolute; }
.cb-toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 22px;
  transition: background 0.2s;
}
.cb-toggle-slider::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.cb-toggle-wrap input:checked + .cb-toggle-slider { background: var(--purple); }
.cb-toggle-wrap input:checked + .cb-toggle-slider::before { transform: translateX(18px); }
.cb-toggle-label {
  font-size: 0.82rem;
  color: var(--muted);
}
.cb-banner-error {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--red);
  line-height: 1.4;
}

/* ── Share button ── */
.share-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}
.share-card-btn:hover { border-color: var(--purple); color: var(--purple); }

/* ── Share card modal ── */
.sc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 1rem;
}
.sc-modal {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  width: 100%;
  max-width: 680px;
  overflow: hidden;
}
.sc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #1e1e1e;
}
.sc-title { font-weight: 700; font-size: 1rem; }
.sc-close {
  background: none;
  border: none;
  color: #666;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.sc-close:hover { color: var(--text); background: #1e1e1e; }
.sc-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.sc-preview-wrap {
  position: relative;
  width: 100%;
  min-height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: #0d0d0d;
  border: 1px solid #1e1e1e;
}
.sc-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #666;
  background: #0d0d0d;
}
.sc-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.sc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.sc-btn:hover { opacity: 0.85; transform: translateY(-1px); }
.sc-btn--download { background: var(--purple); color: #fff; }
.sc-btn--x    { background: #000; border-color: #333; color: #fff; }
.sc-btn--tg   { background: #229ED9; color: #fff; }
.sc-btn--copy { background: #1e1e1e; border-color: #333; color: var(--text); }

/* ── Battle banner display ── */
.battle-banner-wrap {
  width: 100%;
  aspect-ratio: 5 / 1;
  border-radius: 5px;
  overflow: hidden;
  /* margin-bottom: 0.75rem; */
}
.battle-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cb-submit-btn {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 5px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cb-submit-btn:hover    { opacity: 0.85; }
.cb-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.cb-status {
  font-size: 0.85rem;
  min-height: 1.2rem;
  text-align: center;
}

/* ── Site Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.25rem 1rem;
  background: var(--bg);
}
.site-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.site-footer__logo { height: 22px; width: auto; }
.site-footer__socials { display: flex; gap: 0.5rem; }
.site-footer__social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.site-footer__social-btn:hover { color: var(--text); border-color: var(--purple); }
.site-footer__social-btn svg { width: 15px; height: 15px; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .battle-card { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .vs-column { flex-direction: row; min-width: unset; }
  .vs-label  { font-size: 1.4rem; }
  .progress-wrap { flex: 1; }
  .vote-counts   { display: none; }
  .logo { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .hide-mobile { display: none; }
}
