/* Komplement till Tailwind. Gul bakgrund = fält som ska fyllas i (repo-regel).
   Här skedde en uppdatering 2026-09-26: hörnknappar och teknik-modal,
   samma mönster som Claude-kompassen. */
:root {
  --panel: #fff;
  --ink: #1f1d1b;
  --muted: #6b6560;
  --line: #e4ddd3;
  --accent: #b5502e;
  --accent-soft: #f4e3da;
}

body {
  padding-bottom: 4.5rem;
}
code {
  font-size: 0.9em;
  background: #f5f5f4;
  padding: 0.1rem 0.3rem;
  border-radius: 0.25rem;
}
/* Här skedde en uppdatering 2026-09-26: grön favorit, röd högst odds i tipprutorna. */
.horse-fav {
  background: #86efac;
}
.horse-long {
  background: #fca5a5;
}
.horse-hit {
  background: #bbf7d0;
}
.horse-miss {
  opacity: 0.55;
}
.coupon-slip {
  background: #fef9c3;
  border: 1px solid #eab308;
}

.corner-btn {
  position: fixed;
  bottom: 1.2rem;
  z-index: 20;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, color 0.15s;
}
.corner-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}
.tech-btn { right: 1.2rem; }
.github-btn { left: 1.2rem; }

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(31, 29, 27, 0.5);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 30;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--panel);
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 1.5rem 1.7rem;
  position: relative;
  color: var(--ink);
}
.modal h2 { margin-top: 0; }
.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.modal-lead {
  font-size: 0.9rem;
  color: var(--muted);
}
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}
.tech-card {
  background: var(--accent-soft);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}
.tech-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--accent);
}
.tech-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink);
  line-height: 1.5;
}
.modal-foot {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1.1rem;
}
