:root {
  --bg-dark: #0b1110;
  --bg-soft: #121a18;
  --bg-card: rgba(22, 32, 29, 0.82);
  --bg-card-solid: #16201d;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(74, 174, 138, 0.28);
  --pit-green: #3d9a77;
  --pit-green-soft: #82d4b5;
  --pit-green-muted: #2f7560;
  --text-main: #eef4f1;
  --text-muted: #9db0a8;
  --text-faint: #6f827a;
  --amber: #d9b23a;
  --red: #c25a4d;
  --red-soft: #a94f45;
  --font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-pop: 0 14px 40px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---- Soft stadium background ---- */
.app-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(61, 154, 119, 0.16), transparent 60%),
    radial-gradient(800px 500px at 85% 110%, rgba(38, 90, 120, 0.12), transparent 60%),
    linear-gradient(180deg, #0d1412 0%, #0a100e 100%);
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.14;
  animation: drift 16s infinite alternate ease-in-out;
}

.orb-stadium { width: 480px; height: 480px; background: var(--pit-green); top: -140px; left: 18%; }
.orb-spotlight { width: 420px; height: 420px; background: #2d6a8a; bottom: -120px; right: -80px; animation-delay: 6s; }

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(26px, -18px) scale(1.06); }
}

/* ---- Layout ---- */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.25rem 1.1rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* ---- Header ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.15rem;
  background: rgba(18, 26, 24, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.brand { display: flex; align-items: center; gap: 0.7rem; }

.brand-text { display: flex; flex-direction: column; }

.brand-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-soccer {
  font-size: 0.6rem;
  font-weight: 800;
  padding: 2px 7px;
  background: var(--pit-green-soft);
  color: #0b1511;
  border-radius: 4px;
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--text-faint);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

/* SVG logo ball */
.logo-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-accent);
  border-radius: 50%;
  background: rgba(61, 154, 119, 0.12);
  color: var(--pit-green-soft);
}
.logo-icon svg { width: 18px; height: 18px; }

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}
.user-badge .label { display: none; }

.ip-indicator {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pit-green-soft);
  box-shadow: 0 0 6px rgba(130, 212, 181, 0.6);
}

/* ---- Hero / intro ---- */
.hero-section {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem 1.8rem;
  background: linear-gradient(180deg, rgba(61, 154, 119, 0.1), rgba(18, 26, 24, 0.55));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.stadium-banner {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--pit-green-soft);
  text-transform: uppercase;
}
.stadium-banner::before { content: "●  "; color: var(--pit-green-soft); }

.hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.25;
  max-width: 640px;
}

.hero-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 600px;
}

.highlight-text {
  color: var(--pit-green-soft);
  font-weight: 700;
}

.btn-create-tip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  padding: 0.6rem 1.3rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: #eafff5;
  background: var(--pit-green);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(61, 154, 119, 0.3);
  transition: all 0.2s ease;
}
.btn-create-tip svg { width: 15px; height: 15px; }
.btn-create-tip:hover {
  background: #46ab85;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(61, 154, 119, 0.38);
}
.btn-create-tip:active { transform: translateY(0); }

/* ---- Stats bar ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.stat-pill svg { width: 18px; height: 18px; color: var(--pit-green-soft); }
.stat-pill .stat-label { color: var(--text-faint); }

.stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ---- Sections ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--text-main);
}
.section-title svg { width: 18px; height: 18px; color: var(--pit-green-soft); }

.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pit-green-soft);
  animation: pulseDot 1.6s infinite alternate;
}
@keyframes pulseDot {
  0% { opacity: 0.35; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); }
}

.live-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--pit-green-soft);
  padding: 0.25rem 0.6rem;
  background: rgba(61, 154, 119, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.live-tag::before { content: "●  "; }

/* ---- Tips grid ---- */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.6rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-accent);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}
.empty-state h3 { font-size: 1.05rem; color: var(--text-main); margin-bottom: 0.3rem; }
.empty-state p { font-size: 0.9rem; }
.empty-state svg { width: 34px; height: 34px; color: var(--pit-green-muted); margin-bottom: 0.6rem; }

/* ---- Tip card ---- */
.tip-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.tip-card:hover { border-color: var(--border-accent); }

.tip-card.is-voting {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 1px var(--border-accent), var(--shadow-card);
}

.tip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tip-creator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-faint);
  font-weight: 500;
}
.tip-creator .you-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--pit-green-soft);
  background: rgba(61, 154, 119, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
}
.creator-tag { font-weight: 700; color: var(--text-main); }

.sips-wager-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  background: rgba(217, 178, 58, 0.1);
  border: 1px solid rgba(217, 178, 58, 0.35);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber);
}
.sips-wager-pill svg { width: 13px; height: 13px; }

.tip-text {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  word-break: break-word;
}

/* ---- Timer ---- */
.timer-wrapper { display: flex; flex-direction: column; gap: 0.4rem; }

.timer-row { display: flex; align-items: center; justify-content: space-between; }
.timer-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.timer-label svg { width: 14px; height: 14px; }

.timer-digits {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: 'Outfit', monospace;
  color: var(--pit-green-soft);
  letter-spacing: 0.5px;
}
.timer-digits.urgent { color: var(--red); animation: flashUrgent 0.9s infinite alternate; }
@keyframes flashUrgent { 0% { opacity: 0.5; } 100% { opacity: 1; } }

.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pit-green-muted), var(--pit-green-soft));
  border-radius: 6px;
  transition: width 1s linear;
}

/* ---- Voting box ---- */
.voting-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.85rem;
  background: rgba(61, 154, 119, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
}

.voting-box-title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--pit-green-soft);
  letter-spacing: 0.3px;
}
.voting-box-title svg { width: 15px; height: 15px; }

.vote-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }

.btn-vote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.55rem 0.5rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: 1px solid;
  cursor: pointer;
  transition: all 0.18s ease;
  background: transparent;
}
.btn-vote .vote-count { font-size: 0.7rem; opacity: 0.75; font-weight: 600; }

.btn-vote-yes { border-color: rgba(61, 154, 119, 0.5); color: var(--pit-green-soft); }
.btn-vote-yes:hover { background: rgba(61, 154, 119, 0.16); }
.btn-vote-yes.selected { background: var(--pit-green); border-color: var(--pit-green); color: #eafff5; box-shadow: 0 2px 10px rgba(61, 154, 119, 0.3); }

.btn-vote-no { border-color: rgba(194, 90, 77, 0.5); color: var(--red); }
.btn-vote-no:hover { background: rgba(194, 90, 77, 0.14); }
.btn-vote-no.selected { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 2px 10px rgba(194, 90, 77, 0.3); }

/* ---- History ---- */
.history-list { display: flex; flex-direction: column; gap: 0.7rem; }

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.history-text { font-weight: 600; color: var(--text-main); }
.history-meta { font-size: 0.72rem; color: var(--text-faint); margin-top: 0.15rem; }

.history-outcome { font-size: 0.8rem; font-weight: 700; white-space: nowrap; }

.outcome-badge-yes {
  color: var(--pit-green-soft);
  background: rgba(61, 154, 119, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  border: 1px solid var(--border-accent);
}
.outcome-badge-no {
  color: var(--red);
  background: rgba(194, 90, 77, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  border: 1px solid rgba(194, 90, 77, 0.4);
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 10, 0.72);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal-card {
  width: 100%;
  max-width: 500px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-pop);
  transform: translateY(8px);
  transition: transform 0.22s ease;
}
.modal-overlay.open .modal-card { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.modal-header h3 { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.modal-header h3 svg { width: 18px; height: 18px; color: var(--pit-green-soft); }

.modal-close {
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.modal-close:hover { color: var(--text-main); background: rgba(255,255,255,0.06); }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.95rem; }
.form-group label { font-size: 0.84rem; font-weight: 600; color: var(--text-muted); }

.form-group input[type="text"] {
  width: 100%;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease;
}
.form-group input[type="text"]:focus { border-color: var(--pit-green); }

/* ---- Minutes slider ---- */
.value-row { display: flex; align-items: center; justify-content: space-between; }
.value-display { font-size: 0.95rem; font-weight: 800; color: var(--pit-green-soft); }

.range-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, var(--pit-green) 0%, var(--pit-green) var(--fill, 7%), rgba(255,255,255,0.08) var(--fill, 7%));
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--pit-green-soft);
  border: 3px solid var(--bg-card-solid);
  box-shadow: 0 1px 6px rgba(0,0,0,0.35);
  cursor: pointer;
}
.range-slider::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--pit-green-soft);
  border: 3px solid var(--bg-card-solid);
  cursor: pointer;
}

.range-hint {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-faint);
}

/* Sips slider */
.sips-badge { font-size: 0.9rem; font-weight: 800; color: var(--amber); display: flex; align-items: center; gap: 0.4rem; }
.sips-badge svg { width: 14px; height: 14px; }

.modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.btn-cancel {
  padding: 0.55rem 1.15rem;
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 50px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.btn-cancel:hover { color: var(--text-main); border-color: var(--border-accent); }

.btn-submit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.3rem;
  background: var(--pit-green);
  border: none;
  border-radius: 50px;
  color: #eafff5;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 4px 12px rgba(61, 154, 119, 0.25);
}
.btn-submit svg { width: 15px; height: 15px; }
.btn-submit:hover { background: #46ab85; transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

/* ---- Toasts ---- */
.toast-container {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 400px;
}

.toast {
  display: flex;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  animation: slideInToast 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
}
.toast-icon svg { width: 15px; height: 15px; }
.toast.yes .toast-icon { background: rgba(61, 154, 119, 0.15); color: var(--pit-green-soft); }
.toast.no .toast-icon { background: rgba(194, 90, 77, 0.15); color: var(--red); }
.toast.voting .toast-icon { background: rgba(217, 178, 58, 0.15); color: var(--amber); }

.toast-body-text { display: flex; flex-direction: column; gap: 0.15rem; }
.toast-title { font-size: 0.95rem; font-weight: 800; }
.toast-body { font-size: 0.84rem; color: var(--text-muted); }

@keyframes slideInToast {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---- Footer ---- */
.app-footer {
  text-align: center;
  padding-top: 1.5rem;
  color: var(--text-faint);
  font-size: 0.78rem;
  border-top: 1px solid var(--border-soft);
}
.app-footer a { color: var(--pit-green-soft); text-decoration: none; }
.app-footer a:hover { text-decoration: underline; }

/* =========================================================
   Round-based betting UI
   ========================================================= */

/* Header balance */
.user-badge .bal-val { color: var(--pit-green-soft); font-weight: 800; font-size: 1rem; }
.user-badge .bal-unit { color: var(--text-faint); font-size: 0.72rem; }

/* Panel */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-card);
}
.panel-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.8rem; gap: 0.6rem; }
.panel-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 800; color: var(--text-main); }
.panel-title svg { color: var(--pit-green-soft); }
.panel-sub { font-size: 0.72rem; color: var(--text-faint); }

/* Round banner */
.round-banner {
  background: linear-gradient(180deg, rgba(61,154,119,0.12), rgba(18,26,24,0.55));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.round-topline { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.phase-pill {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 50px; border: 1px solid var(--border-soft);
  color: var(--text-muted); background: rgba(255,255,255,0.04);
}
.phase-pill.open { color: var(--pit-green-soft); border-color: var(--border-accent); background: rgba(61,154,119,0.1); }
.phase-pill.voting { color: var(--amber); border-color: rgba(217,178,58,0.4); background: rgba(217,178,58,0.1); }
.phase-pill.resolved { color: var(--text-faint); }
.round-rule-low { font-size: 0.72rem; color: var(--text-faint); }
.round-main { display: flex; align-items: center; gap: 1rem; }
.round-countdown { display: flex; flex-direction: column; min-width: 76px; }
.round-timer { font-size: 1.7rem; font-weight: 800; font-family: 'Outfit', monospace; color: var(--pit-green-soft); line-height: 1; }
.round-timer.urgent { color: var(--red); }
.round-timer-label { font-size: 0.68rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.3px; }
.round-progress { flex: 1; height: 8px; background: rgba(255,255,255,0.07); border-radius: 8px; overflow: hidden; }
.round-progress-bar { height: 100%; background: linear-gradient(90deg, var(--pit-green-soft), var(--pit-green)); transition: width 1s linear; }

/* Alias bar */
.alias-bar { display: flex; gap: 0.5rem; align-items: center; }
.alias-bar input {
  flex: 1; padding: 0.6rem 0.85rem; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm); color: var(--text-main);
  font-family: inherit; font-size: 0.9rem; outline: none;
}
.alias-bar input:focus { border-color: var(--pit-green); }

/* Buttons */
.btn-small {
  padding: 0.5rem 1rem; background: var(--pit-green); border: none; border-radius: 50px;
  color: #eafff5; font-family: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer;
}
.btn-small:hover { background: #46ab85; }
.btn-small:disabled, .btn-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-submit { display: flex; align-items: center; gap: 0.4rem; }
.bet-actions { margin-top: 0.2rem; }

/* My bet */
.my-bet-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.my-bet-text { font-weight: 600; color: var(--text-main); }
.my-bet-stake { font-size: 0.8rem; color: var(--amber); font-weight: 700; white-space: nowrap; }

/* Bets list */
.bets-list { display: flex; flex-direction: column; gap: 0.6rem; }
.empty-inline { color: var(--text-faint); font-size: 0.85rem; padding: 0.3rem 0; }
.bet-row {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 0.7rem 0.85rem; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft); border-radius: var(--radius-md);
}
.bet-creator { font-size: 0.72rem; color: var(--text-faint); }
.creator-tag { color: var(--text-main); font-weight: 700; }
.you-tag { font-size: 0.6rem; font-weight: 700; color: var(--pit-green-soft); background: rgba(61,154,119,0.12); padding: 1px 6px; border-radius: 4px; }
.bet-main { display: flex; flex-direction: column; gap: 0.4rem; }
.bet-text { font-size: 1rem; font-weight: 700; color: var(--text-main); word-break: break-word; }
.bet-stake { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.bet-stake .sips-badge { font-size: 0.78rem; }
.bet-right { display: flex; align-items: center; gap: 0.5rem; }

/* Mini vote (during voting) */
.mini-vote { display: flex; gap: 0.4rem; }
.vote-mini {
  display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.3rem 0.6rem;
  background: transparent; border: 1px solid; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.75rem; font-weight: 700; cursor: pointer;
}
.vote-mini svg { width: 13px; height: 13px; }
.vote-mini.yes { border-color: rgba(61,154,119,0.5); color: var(--pit-green-soft); }
.vote-mini.yes.selected { background: var(--pit-green); color: #eafff5; }
.vote-mini.no { border-color: rgba(194,90,77,0.5); color: var(--red); }
.vote-mini.no.selected { background: var(--red); color: #fff; }

.awaiting { font-size: 0.72rem; color: var(--text-faint); }

/* Outcome tags */
.outcome-happened, .outcome-not { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; font-weight: 700; }
.outcome-happened { color: var(--pit-green-soft); }
.outcome-not { color: var(--red); }
.dot-ok, .dot-no { width: 8px; height: 8px; border-radius: 50%; }
.dot-ok { background: var(--pit-green-soft); }
.dot-no { background: var(--red); }

/* Board / leaderboard */
.board { display: flex; flex-direction: column; gap: 0.4rem; }
.board-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 0.75rem; background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
}
.board-row.leader { border-color: rgba(217,178,58,0.4); background: rgba(217,178,58,0.08); }
.board-row.me { border-color: var(--border-accent); }
.board-rank { width: 22px; text-align: center; font-weight: 800; color: var(--amber); }
.board-name { flex: 1; font-weight: 600; color: var(--text-main); display: flex; align-items: center; gap: 0.4rem; }
.board-bal { font-weight: 800; color: var(--pit-green-soft); white-space: nowrap; }

.voting-hint { margin-top: 0.7rem; font-size: 0.78rem; color: var(--amber); padding: 0.5rem 0.7rem; background: rgba(217,178,58,0.08); border: 1px solid rgba(217,178,58,0.3); border-radius: var(--radius-sm); }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .round-main { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .round-countdown { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .round-timer { font-size: 1.4rem; }
  .bet-stake { flex-wrap: wrap; }
  .bet-right { margin-left: auto; }
}
