:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
  background: #f4f6f8;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; line-height: 1.5; }

a { color: #155e75; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem max(1rem, calc((100% - 880px) / 2));
  background: #fff;
  border-bottom: 1px solid #dfe5e9;
}

.brand { color: #15232d; font-size: 1.15rem; font-weight: 750; text-decoration: none; }
.container { width: min(100% - 2rem, 880px); margin: 2.5rem auto; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
h1 { margin: 0 0 .6rem; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; }
h2 { margin: 0 0 .5rem; font-size: 1.3rem; }
p { margin-top: .4rem; }
.eyebrow { margin: 0 0 .4rem; color: #52616b; font-size: .78rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.muted { color: #52616b; }
[data-notification-error] { color: #a01818; margin: 0; }
input[aria-invalid="true"] { border-color: #a01818; }
.card, .form-panel { margin: 1rem 0; padding: 1.35rem; background: #fff; border: 1px solid #dfe5e9; border-radius: 14px; box-shadow: 0 5px 20px rgb(22 34 44 / 4%); }
.game-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.game-card p { margin-bottom: 0; color: #52616b; }
.game-meta { display: grid; gap: .35rem; text-align: right; white-space: nowrap; }
.empty-state { padding: 2rem; text-align: center; }
.count-card { display: flex; align-items: center; gap: 1rem; }
.count-card strong { color: #155e75; font-size: 2rem; }
.stack { display: grid; gap: 1rem; }
label { display: grid; gap: .4rem; font-weight: 650; }
input, select { width: 100%; min-height: 2.8rem; padding: .65rem .75rem; color: inherit; background: #fff; border: 1px solid #b9c4cb; border-radius: 8px; font: inherit; }
button, .button { display: inline-block; width: fit-content; padding: .7rem 1rem; color: #fff; background: #155e75; border: 0; border-radius: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #104b5d; }
button.secondary { padding: .45rem .7rem; color: #155e75; background: #e7f2f5; }
.notice { padding: 1rem 1.2rem; background: #fff; border-left: 4px solid #95a4ad; border-radius: 8px; }
.success { background: #edf8f2; border-color: #24804a; }
.registration-list { margin: .5rem 0 0; padding: 0; list-style: none; }
.registration-list li, .attendance-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 0; border-top: 1px solid #e7ecef; }
.inline-form { display: flex; gap: .5rem; }

@media (max-width: 600px) {
  .container { margin-top: 1.5rem; }
  .page-heading, .game-card { align-items: stretch; flex-direction: column; }
  .game-meta { text-align: left; white-space: normal; }
  .page-heading .button { width: 100%; text-align: center; }
  .attendance-row { align-items: flex-start; flex-direction: column; }
  .site-header { padding: .9rem 1rem; }
}
