/* what if · Polymarket-style light tokens (shared) */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f7f8fa;
  --bg-card:   #ffffff;
  --bg-hover:  #f3f4f6;
  --bg-elev:   #f5f6f8;
  --bg-input:  #ffffff;
  --border:    #e5e7eb;
  --border-2:  #d1d5db;
  --border-3:  #9ca3af;
  --text:      #0f172a;
  --text-2:    #4b5563;
  --text-3:    #6b7280;
  --text-4:    #9ca3af;
  --text-5:    #d1d5db;
  --green:     #16a34a;
  --green-h:   #15803d;
  --green-bg:  rgba(22, 163, 74, 0.10);
  --green-bg-h:rgba(22, 163, 74, 0.18);
  --red:       #dc2626;
  --red-h:     #b91c1c;
  --red-bg:    rgba(220, 38, 38, 0.10);
  --red-bg-h:  rgba(220, 38, 38, 0.18);
  --blue:      #2563eb;
  --blue-bg:   rgba(37, 99, 235, 0.10);
  --amber:     #d97706;
  --shadow-1:  0 1px 2px rgba(0,0,0,0.04);
  --shadow-2:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-3:  0 8px 24px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html { overflow-y: scroll; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01", "kern";
}

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea { font-family: inherit; }

::selection { background: var(--green); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-2); }

.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }

/* ── TOPBAR ── */
.topbar {
  height: 60px; padding: 0 20px;
  display: flex; align-items: center; gap: 20px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.logo .if { font-style: italic; color: var(--text-2); font-weight: 500; }
.search-wrap { width: 360px; flex: 0 0 360px; position: relative; }
.search-wrap input {
  width: 100%; height: 38px; padding: 0 14px 0 38px;
  background: var(--bg-elev); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; border-radius: 6px;
  outline: none;
}
.search-wrap::before {
  content: ""; position: absolute; left: 12px; top: 11px;
  width: 16px; height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>") no-repeat center;
}
.search-wrap .kbd {
  position: absolute; right: 10px; top: 9px;
  padding: 2px 6px; background: var(--bg); border-radius: 4px;
  font-size: 11px; color: var(--text-3); font-weight: 500;
  border: 1px solid var(--border);
}
.tnav { display: flex; gap: 2px; }
.tnav a {
  padding: 7px 12px; color: var(--text-2);
  font-size: 13.5px; font-weight: 500; border-radius: 6px;
}
.tnav a:hover { color: var(--text); }
.tnav a.active { color: var(--text); }
.cash { display: flex; align-items: center; gap: 12px; padding: 0 4px; margin-left: auto; }
.cash-block { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.cash-block .lbl { font-size: 11px; color: var(--text-3); }
.cash-block .v { font-size: 14px; font-weight: 700; }
.cash-block .v.green { color: var(--green); }
.btn-primary {
  height: 36px; padding: 0 16px;
  background: var(--green); color: #fff;
  border: none; border-radius: 6px;
  font-weight: 600; font-size: 13.5px;
}
.btn-primary:hover { background: var(--green-h); }
.btn-secondary {
  height: 36px; padding: 0 16px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border-2); border-radius: 6px;
  font-weight: 500; font-size: 13.5px;
}
.btn-secondary:hover { background: var(--bg-elev); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 600;
}

/* ── CHIP BAR ── */
.chip-bar {
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex; gap: 8px; overflow-x: auto;
  white-space: nowrap;
}
.chip-bar::-webkit-scrollbar { height: 0; }
.chip-bar .chip {
  display: inline-flex; align-items: center; gap: 6px;
  flex-shrink: 0;
  padding: 7px 14px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-2); font-size: 13px; font-weight: 500;
  border-radius: 100px;
}
.chip-bar .chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.chip-bar .chip:hover:not(.active) { color: var(--text); border-color: var(--border-2); }

/* ── BUTTONS ── */
.btn-yes {
  background: var(--green-bg); color: var(--green);
  border: none; border-radius: 6px;
  font-weight: 600; font-family: inherit;
}
.btn-yes:hover { background: var(--green-bg-h); }
.btn-no {
  background: var(--red-bg); color: var(--red);
  border: none; border-radius: 6px;
  font-weight: 600; font-family: inherit;
}
.btn-no:hover { background: var(--red-bg-h); }
.btn-yes-solid { background: var(--green); color: #fff; border: none; border-radius: 6px; font-weight: 600; }
.btn-no-solid { background: var(--red); color: #fff; border: none; border-radius: 6px; font-weight: 600; }

/* ── FOOTER ── */
footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  font-size: 13px; color: var(--text-3);
  background: var(--bg);
}
footer.site .links { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
footer.site .links a:hover { color: var(--text-2); }

/* ── animations ── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.5s infinite; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.blue { background: var(--blue-bg); color: var(--blue); }
.pill.gray { background: var(--bg-elev); color: var(--text-2); }
