:root {
  --bg: #0a0705;
  --card: #0f0b07;
  --border: #33271a;
  --border-hot: #5a4324;
  --amber: #e8a33d;
  --text: #e8dcc4;
  --muted: #b8a98c;
  --up: #8fc49a;
  --down: #d49585;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.board {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eye { display: block; flex: none; }

.wordmark {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 5px;
  color: var(--amber);
}

.header-meta {
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
}

.header-meta .date { color: var(--text); }
.header-meta .locked { color: var(--muted); }

/* Lede */
.lede {
  margin: 20px 0 28px;
  font-size: 17px;
  color: var(--text);
}

/* Sections */
.section { margin-bottom: 28px; }

.section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.section-label .settles { letter-spacing: 0.5px; }

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border-hot);
  border-radius: 12px;
  padding: 18px 16px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticker {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text);
}

.pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--border-hot);
  border-radius: 999px;
  padding: 4px 10px;
}

.thesis {
  margin: 10px 0 18px;
  font-size: 16px;
}

.dir-up { color: var(--up); }
.dir-down { color: var(--down); }

/* Progress track */
.track-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.price {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

.rail {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: var(--border);
  margin: 6px 0 12px;
}

.fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 5px;
  transition: width 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.track-up .fill { background: var(--up); }
.track-down .fill { background: var(--down); }

.tick {
  position: absolute;
  right: 0;
  top: -4px;
  bottom: -4px;
  width: 2px;
  background: var(--amber);
}

.marker {
  position: absolute;
  top: 50%;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  border: 3px solid var(--card);
  box-shadow: 0 0 0 1px var(--amber);
  transform: translate(-50%, -50%);
  transition: left 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Status row */
.status {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.move {
  font-family: var(--mono);
  font-size: 13px;
  margin-left: 4px;
}

.move-up { color: var(--up); }
.move-down { color: var(--down); }

.time-left {
  font-size: 13px;
  color: var(--muted);
}

/* Why */
.why { padding-top: 14px; }

.why-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reason {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text);
}

.reason::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.reason.against::before { background: var(--down); }

/* Confidence */
.confidence {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.conf-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.pips {
  display: inline-flex;
  gap: 4px;
}

.pip {
  width: 26px;
  height: 6px;
  border-radius: 2px;
  background: #241a10;
  border: 0;
}

.pip.on { background: var(--amber); }

.conf-note {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  text-align: right;
}

/* Quiet box */
.quiet {
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed var(--border-hot);
  border-radius: 12px;
}

.quiet-heading {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.quiet-text {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .fill, .marker { transition: none; }
}

/* Footer */
.footer {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--border-hot);
}

.footer a:hover { color: var(--amber); border-bottom-color: var(--amber); }

/* Login */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.login {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.login-eye { display: block; }

.login-wordmark {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 7px;
  color: var(--amber);
}

.login-tagline {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
}

.login-form {
  width: 100%;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--amber);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 3px;
  text-align: center;
  outline: none;
}

.login-input:focus { box-shadow: 0 0 0 1px var(--amber); }

.login-error {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--down);
}

.login-button {
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid var(--amber);
  border-radius: 8px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  cursor: pointer;
}

.login-button:hover,
.login-button:focus-visible { background: rgba(232, 163, 61, 0.08); outline: none; }
