:root {
  --orange: #ff6b35;
  --orange-dark: #e2551f;
  --teal: #0ea5a0;
  --navy: #0f0e17;
  --ink: #1a1a1a;
  --muted: #6b6b76;
  --bg: #faf9f7;
  --card: #ffffff;
  --line: #ecebe8;
  --good: #16a34a;
  --bad: #dc2626;
  --radius: 16px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}
a { color: var(--orange-dark); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .brand {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.3px;
}
.topbar nav { display: flex; align-items: center; gap: 16px; }
.topbar nav a { color: #eee; text-decoration: none; font-weight: 600; font-size: 14px; }
.topbar nav a.btn-ghost {
  border: 1.5px solid var(--orange);
  color: #fff;
  background: var(--orange);
  padding: 8px 16px;
  border-radius: 999px;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 24px 18px 60px; }

.hero {
  text-align: center;
  padding: 32px 16px 8px;
}
.hero h1 { font-size: 34px; margin: 0 0 8px; letter-spacing: -0.5px; }
.hero p { color: var(--muted); font-size: 17px; max-width: 46ch; margin: 0 auto 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.flash-info { background: #e8f1ff; color: #1e4f9c; }
.flash-success { background: #e8f9ee; color: #147a3a; }
.flash-error { background: #fdeceb; color: #b3261e; }

label { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; }
label.first { margin-top: 0; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; min-height: 90px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 4px; }

.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
}
.btn:hover { background: var(--orange-dark); }
.btn.block { display: block; width: 100%; margin-top: 18px; }
.btn.secondary { background: var(--navy); }
.btn.big { font-size: 19px; padding: 18px 30px; }
.btn.yes { background: var(--good); }
.btn.no { background: var(--bad); }
.btn.small { padding: 8px 16px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.skill-options { display: grid; gap: 8px; }
.skill-option {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
}
.skill-option input { margin-top: 3px; }
.skill-option .lvl { font-weight: 800; margin-right: 4px; }
.skill-option:has(input:checked) { border-color: var(--orange); background: #fff6f2; }

.toggle-row { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.toggle-row input { width: 20px; height: 20px; }

.game-card { display: flex; flex-direction: column; gap: 4px; }
.game-card .when { font-size: 19px; font-weight: 800; }
.game-card .where { color: var(--muted); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.yes { background: #e8f9ee; color: var(--good); }
.pill.no { background: #fdeceb; color: var(--bad); }
.pill.pending { background: #fff5e6; color: #b5720b; }
.pill.status { background: #eef1ff; color: #33399c; }

.count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.roster { display: grid; gap: 6px; margin-top: 8px; }
.roster .row { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; background: #fafafa; }
.roster .row .tag { font-size: 11px; font-weight: 800; color: var(--teal); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .two-col { grid-template-columns: 1fr 1fr; } }

.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 30px 16px 50px; }
