:root {
  color-scheme: light;
  --ink: #1f252e;
  --muted: #687383;
  --line: #d7dde7;
  --paper: #ffffff;
  --wash: #f1f5f9;
  --accent: #047c91;
  --accent-soft: #e3f6f8;
  --value: #0f7b4f;
}

* {
  box-sizing: border-box;
}

button,
input {
  font: inherit;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #edf2f7;
}

.hidden {
  display: none !important;
}

.auth-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 20px;
}

.auth-box {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(31, 37, 46, 0.09);
}

.auth-box h1 {
  margin-bottom: 4px;
}

.password-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.password-field input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

button:hover,
button:focus-visible {
  background: #056a7c;
}

.auth-error {
  min-height: 1.4em;
  margin: 0;
  color: #b42336;
  font-weight: 800;
}

.shell {
  width: min(1280px, calc(100% - 28px));
  margin: 14px auto 28px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(420px, 1.4fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 12px;
}

.topbar,
.market {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 24px rgba(31, 37, 46, 0.07);
}

.topbar {
  padding: 20px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 2.4rem;
  line-height: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.stats > div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--wash);
}

.stats span,
.empty,
.odd-name {
  color: var(--muted);
}

.stats span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 800;
}

.stats strong {
  display: block;
  min-height: 1.45em;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.markets {
  display: grid;
  gap: 12px;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px dashed #b8c3d3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.market {
  overflow: hidden;
}

.market-header {
  padding: 13px 15px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--line);
}

.market-title {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
}

.odds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
}

.odd {
  min-width: 0;
  padding: 11px 12px;
  background: var(--paper);
}

.odd-name,
.odd-value {
  display: block;
  overflow-wrap: anywhere;
}

.odd-name {
  margin-bottom: 7px;
  font-size: 0.84rem;
  font-weight: 750;
}

.odd-value {
  color: var(--value);
  font-size: 1.22rem;
  font-weight: 900;
}

@media (max-width: 840px) {
  .topbar,
  .stats {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2rem;
  }
}
