* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f3f5f7;
  color: #1c2530;
}
.card {
  max-width: 360px;
  margin: 12vh auto 0;
  padding: 2rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
h1 { margin-top: 0; font-size: 1.5rem; }
label { display: block; margin: 1rem 0 0.25rem; font-weight: 600; font-size: 0.9rem; }
input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid #c3ccd5;
  border-radius: 6px;
  font-size: 1rem;
}
button {
  margin-top: 1.25rem;
  width: 100%;
  padding: 0.7rem;
  border: 0;
  border-radius: 6px;
  background: #0b6e4f;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: progress; }
.error { margin: 1rem 0 0; color: #b3261e; font-size: 0.9rem; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.2rem;
  background: #0b6e4f;
  color: #fff;
}
button.link { width: auto; margin: 0 0 0 0.75rem; padding: 0.3rem 0.7rem; background: rgba(255, 255, 255, 0.2); }
.content { max-width: 800px; margin: 1.5rem auto; padding: 0 1rem; }
.games { list-style: none; padding: 0; }
.games li { padding: 0.7rem 1rem; margin-bottom: 0.5rem; background: #fff; border-radius: 6px; }
.weeknav { display: flex; align-items: center; justify-content: space-between; }
.weeknav h2 { margin: 0; }
.weeknav button { background: #0b6e4f; margin: 0; }
.notice { padding: 0.7rem 1rem; background: #fff; border-radius: 6px; }
.game { background: #fff; border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 0.6rem; }
.game.locked { opacity: 0.65; }
.meta { color: #5b6773; font-size: 0.85rem; margin-bottom: 0.5rem; }
.matchup { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.side { display: inline-flex; align-items: center; gap: 0.5rem; flex: 1 1 260px; }
.team { flex: 1; font-weight: 600; }
.vs { color: #5b6773; font-weight: 600; }
.matchup input { width: 3.4rem; height: 2.4rem; padding: 0.3rem; text-align: center; }
.matchup input.score { font-weight: 700; font-size: 1.1rem; }
.yc { color: #8a6d00; }
.fld { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; color: #5b6773; }
.fld input { margin: 0; }
.yc input { border: 2px solid #e0b400; }
.save-bar { position: sticky; bottom: 0; display: flex; align-items: center; gap: 1rem; padding: 0.8rem 0; background: #f3f5f7; }
.save-bar button { width: auto; margin: 0; padding: 0.7rem 1.6rem; }
.status.ok { color: #0b6e4f; }
.status.bad { color: #b3261e; }
.brand { display: flex; align-items: center; gap: 1.5rem; }
.brand nav a { color: #fff; text-decoration: none; margin-right: 1rem; opacity: 0.75; padding-bottom: 2px; }
.brand nav a.active { opacity: 1; border-bottom: 2px solid #fff; }
.result-line { display: flex; align-items: center; gap: 0.8rem; margin: 0.2rem 0; }
.result-line .team { flex: 1; font-size: 1.05rem; }
.result-line .team.home { text-align: right; }
.final { min-width: 4.5rem; text-align: center; font-size: 1.4rem; font-weight: 700; }
.final.pending { color: #5b6773; font-weight: 400; }
.detail { text-align: center; color: #8a6d00; font-size: 0.85rem; }
.mine { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid #e6eaee; text-align: center; font-size: 0.9rem; color: #1c2530; }
.mine.none { color: #8a939c; }
.refresh-bar { display: flex; align-items: center; gap: 1rem; margin: 0.8rem 0; }
.refresh-bar button { width: auto; margin: 0; padding: 0.5rem 1.2rem; }
.content.wide { max-width: 1100px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 8px; }
table.scores { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
table.scores th, table.scores td { padding: 0.55rem 0.8rem; text-align: left; border-bottom: 1px solid #e6eaee; white-space: nowrap; }
table.scores .num { text-align: right; }
table.scores .total { font-weight: 700; }
table.scores tr.me { background: #eaf4ff; }
.hint { color: #5b6773; font-size: 0.9rem; }
.user-form { max-width: 420px; margin-top: 1.5rem; padding: 1rem 1.2rem; background: #fff; border-radius: 8px; }
.user-form h3 { margin: 0 0 0.5rem; }
.user-form label.check { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.user-form label.check input { width: auto; }
.form-actions { display: flex; align-items: center; gap: 0.8rem; }
.form-actions button { width: auto; padding: 0.6rem 1.4rem; }
button.secondary { background: #e6eaee; color: #1c2530; }
button.link-btn { width: auto; margin: 0; padding: 0.3rem 0.8rem; background: #e6eaee; color: #1c2530; }
select { width: 100%; max-width: 320px; padding: 0.6rem 0.7rem; border: 1px solid #c3ccd5; border-radius: 6px; font-size: 1rem; background: #fff; }
.summary { background: #fff; border-radius: 8px; padding: 0.8rem 1rem; margin-bottom: 1rem; }
.summary-total { font-size: 1.1rem; margin-bottom: 0.5rem; }
.summary-weeks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
button.chip { width: auto; margin: 0; padding: 0.4rem 0.8rem; display: flex; flex-direction: column; align-items: center; background: #e6eaee; color: #1c2530; font-size: 0.85rem; }
button.chip.active { background: #0b6e4f; color: #fff; }
.chip-week { font-weight: 600; }
.meta { display: flex; justify-content: space-between; gap: 1rem; }
.pts { color: #0b6e4f; font-weight: 700; white-space: nowrap; }
