:root {
  --navy: #0b1f33;
  --navy-2: #16324d;
  --ice: #f3f7f8;
  --paper: #f7f4ee;
  --card: #fffdf9;
  --ink: #1b242c;
  --muted: #5d6b76;
  --line: #d7e0e4;
  --red: #c8102e;
  --gold: #e6b15c;
  --light-team: #f4f1ea;
  --dark-team: #1c2834;
  --shadow: 0 10px 30px rgba(11, 31, 51, 0.08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 16, 46, 0.08), transparent 28%),
    linear-gradient(180deg, #e7eef2 0%, var(--paper) 220px);
  min-height: 100vh;
}
a { color: var(--navy-2); }
.site-header { background: var(--navy); color: white; }
.stripe { height: 6px; background: linear-gradient(90deg, var(--red) 0 18%, #f4f1ea 18% 22%, var(--navy) 22% 78%, #f4f1ea 78% 82%, var(--red) 82%); }
.header-inner, main, footer { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
.header-inner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.9rem 0 1rem; }
.brand { display: flex; gap: 0.75rem; align-items: center; color: white; text-decoration: none; }
.brand strong { display: block; font-size: 1.25rem; letter-spacing: 0.02em; }
.brand small { display: block; color: #c9d6df; font-family: "Segoe UI", sans-serif; font-size: 0.78rem; }
.logo { width: 42px; height: 42px; object-fit: contain; background: white; border-radius: 50%; }
nav { display: flex; gap: 0.9rem; align-items: center; font-family: "Segoe UI", sans-serif; }
nav a, .linkish { color: #f4f1ea; text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
nav a:hover, .linkish:hover { color: var(--gold); }
main { padding: 1.5rem 0 3rem; }
footer { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: 0.8rem; padding-bottom: 2rem; }
h1, h2, h3 { font-weight: 600; letter-spacing: 0.01em; }
h1 { margin: 0 0 0.4rem; font-size: 2rem; }
.lede { color: var(--muted); margin-top: 0; font-family: "Segoe UI", sans-serif; }
.card, .notice, .team, .person, .game {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.card, .team, .person { padding: 1rem 1.1rem; }
.banner {
  background: #fff8ea;
  border: 1px solid #efd7a4;
  border-top: 6px solid var(--red);
  border-radius: 14px;
  padding: 1rem 1.1rem 1rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}
.banner h2 { margin: 0 0 0.35rem; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: "Segoe UI", sans-serif; }
.meta, .muted { color: var(--muted); font-family: "Segoe UI", sans-serif; font-size: 0.86rem; }
.feed { max-height: 32rem; overflow: auto; display: grid; gap: 0.75rem; padding-right: 0.2rem; }
.notice { padding: 0.85rem 1rem; border-left: 5px solid #8eacbd; }
.notice.admin { border-left-color: var(--red); background: #fff8f6; }
.notice.admin .who { font-weight: 700; }
.who { font-family: "Segoe UI", sans-serif; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.team.light { background: var(--light-team); }
.team.dark { background: var(--dark-team); color: #f4f1ea; }
.team.dark .meta { color: #c5d0d8; }
.team ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.pill { display: inline-block; border-radius: 999px; padding: 0.1rem 0.5rem; font-family: "Segoe UI", sans-serif; font-size: 0.75rem; background: #e7eef2; }
.pill.admin { background: #f8d5dc; color: #8d1024; }
.pill.sub { background: #e7f0d8; }
.row { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.actions, form.stack, .stack { display: grid; gap: 0.7rem; }
label { display: grid; gap: 0.25rem; font-family: "Segoe UI", sans-serif; font-size: 0.92rem; }
input, select, textarea, button {
  font: inherit;
  font-family: "Segoe UI", sans-serif;
}
input, select, textarea {
  width: 100%;
  border: 1px solid #c5d0d6;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: white;
  color: var(--ink);
}
textarea { min-height: 7rem; resize: vertical; }
button, .button {
  background: var(--navy);
  color: white;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.95rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  font-family: "Segoe UI", sans-serif;
}
button.secondary, .button.secondary { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
button.warn { background: var(--red); }
.table { width: 100%; border-collapse: collapse; font-family: "Segoe UI", sans-serif; font-size: 0.92rem; }
.table th, .table td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.alert { background: #fdecef; border: 1px solid #f1c2cb; color: #8d1024; padding: 0.7rem 0.8rem; border-radius: 8px; }
.ok { background: #eef6e8; border: 1px solid #cfe3c4; padding: 0.7rem 0.8rem; border-radius: 8px; }
.inline { display: inline; }
.split { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: end; }
.person-list, .session-list { display: grid; gap: 0.7rem; }
.out { text-decoration: line-through; opacity: 0.75; }
@media (max-width: 800px) {
  .grid-2, .teams, .header-inner, footer { display: grid; }
  nav { flex-wrap: wrap; }
}
