:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #111214;
  color: #f8f7f3;
  line-height: 1.55;
  --accent: #f0c66f;
  --muted: #c6c6c3;
  --border: #54565b;
}

* { box-sizing: border-box; }
body { margin: 0; }
.page { max-width: 41rem; padding: clamp(1.25rem, 7vw, 4rem); margin: 0 auto; }
.staff-page { max-width: 58rem; }
.brand { color: var(--accent); font-weight: 750; font-size: 1.125rem; margin: 0 0 1.5rem; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.05; margin: 0; overflow-wrap: anywhere; }
h2 { font-size: 1.35rem; line-height: 1.2; margin: 0 0 0.65rem; }
p { margin: 0.6rem 0; }
.fixture-date { margin-top: 1rem; color: var(--muted); }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 0.15em; }
:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

button, .button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: #202226;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
button:hover, .button:hover { border-color: var(--accent); }
.primary { background: var(--accent); border-color: var(--accent); color: #14110a; }
.primary:hover { background: #ffda8d; }
button:disabled { color: #a3a3a1; background: #252628; border-color: var(--border); cursor: default; }
.purchase { margin: 2rem 0; }
.purchase .primary { width: 100%; justify-content: center; }
.consent { margin-bottom: 1.2rem; }
.consent label { display: flex; align-items: start; gap: 0.6rem; cursor: pointer; }
.consent input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0.2rem 0 0; accent-color: var(--accent); }
.consent p { font-size: 0.95rem; color: var(--muted); margin-left: 1.85rem; }
.returning, .staff-page section { padding-top: 1.4rem; margin-top: 1.8rem; border-top: 1px solid var(--border); }
.returning p { color: var(--muted); }
.staff-heading, .actions { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: start; justify-content: space-between; }
.actions { justify-content: start; align-items: center; }
.target { margin-top: 1.25rem; }
.target label { display: block; margin-bottom: 0.4rem; }
input[type=number] { color: inherit; background: #202226; border: 1px solid var(--border); border-radius: 0.375rem; font: inherit; min-height: 2.75rem; padding: 0.5rem; max-width: 8rem; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 0.65rem; }
.metrics div, .notice { background: #202226; border: 1px solid var(--border); padding: 0.65rem 0.85rem; border-radius: 0.375rem; }
.metrics dd { margin: 0; color: var(--accent); font-size: 1.35rem; font-weight: 700; }
.notice.error { border-color: #ed927b; }
.notice.success { border-color: #86c59d; }
.audit { margin: 0; padding-left: 1.4rem; }
.audit li { margin-bottom: 0.6rem; overflow-wrap: anywhere; }

.match-page { max-width: 73rem; padding: clamp(1.25rem, 5vw, 3.5rem); }
.match-brand { border-bottom: 1px solid var(--border); padding-bottom: 1.15rem; margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.match-brand img { display: block; width: clamp(5.25rem, 10vw, 7rem); height: auto; }
.match-layout { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.match-details { min-width: 0; max-width: 38rem; }
.match-category { margin: 0 0 0.65rem; color: var(--accent); font-weight: 750; }
.match-intro { margin-top: 1.25rem; color: var(--muted); }
.match-page .purchase { margin: 1.25rem 0 0; }
.match-page .consent { margin-bottom: 0.5rem; }
.cookie-note { margin: 0 0 0.85rem; font-size: 0.9rem; color: var(--muted); }
.match-art { display: block; width: 100%; max-width: 34rem; height: auto; border-radius: 0.75rem; }

@media (min-width: 48rem) {
  .match-layout-with-art { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
