:root {
  --navy: #0A1128;
  --navy-2: #1D2439;
  --blue: #0075BD;
  --pale: #E3F2FF;
  --green: #1a7f37;
  --red: #c0392b;
  --gray: #6b7280;
  --border: #d8dce3;
  --bg: #f7f8fa;
  --heading-font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body {
  font-family: var(--body-font);
  margin: 0;
  background: var(--bg);
  color: #1c1f26;
}
h1, h2, h3, .brand, .btn, button, input[type=submit] { font-family: var(--heading-font); }
header.site {
  background: var(--navy);
  color: white;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
header.site a { color: white; text-decoration: none; font-weight: 600; }
header.site a.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: 0.02em; }
header.site a.brand img { border-radius: 4px; }
header.site nav a { margin-left: 14px; opacity: 0.9; font-weight: 400; font-size: 0.95em; }
header.site nav { display: flex; align-items: center; }
.version-tag { margin-left: 14px; font-size: 0.75em; opacity: 0.55; font-family: monospace; }
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}
h1 { font-size: 1.4em; }
h2 { font-size: 1.15em; margin-top: 1.6em; }
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}
.name-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.btn, button, input[type=submit] {
  display: inline-block;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: white;
  font-weight: 600;
  font-size: 1em;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
.btn.secondary, button.secondary {
  background: white;
  color: var(--blue);
}
.btn.danger, button.danger { background: var(--red); border-color: var(--red); }
.btn.small, button.small { padding: 8px 12px; min-height: 36px; font-size: 0.9em; }
input[type=text], input[type=password], input[type=tel], input[type=number],
input[type=date], input[type=time], textarea, select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1em;
  margin-bottom: 10px;
}
label { font-weight: 600; font-size: 0.9em; display: block; margin-top: 8px; }
.role-CR { color: white; background: var(--navy); }
.role-AR { color: white; background: #3b5bab; }
.role-Duo { color: white; background: #8a5a1c; }
.role-Solo { color: white; background: #6b2d8a; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.85em; margin: 2px; }
.locked { color: var(--red); font-weight: 600; }
.error { color: var(--red); font-weight: 600; margin-bottom: 10px; }
.notice { background: #fff8e1; border: 1px solid #eab308; padding: 10px; border-radius: 8px; margin-bottom: 12px; }
.announcement { background: var(--pale); border: 1px solid var(--blue); color: #0a3a5c; padding: 14px; border-radius: 10px; margin-bottom: 16px; white-space: pre-wrap; }
.announcement strong { display: block; margin-bottom: 4px; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { border-bottom: 1px solid var(--border); padding: 8px; text-align: left; font-size: 0.92em; }
.muted { color: var(--gray); font-size: 0.9em; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }
.game-block { border: 1px solid var(--border); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.tabs { background: var(--navy-2); }
.tabs a { margin-right: 14px; color: white; opacity: 0.85; text-decoration: none; font-weight: 600; }
.tabs a:hover { opacity: 1; text-decoration: underline; }
