* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fff;
  color: #151515;
  font:
    1rem/1.5 system-ui,
    sans-serif;
}
header,
main {
  max-width: 48rem;
  margin: auto;
  padding: 1rem clamp(1rem, 4vw, 2rem);
}
header {
  border-bottom: 2px solid;
}
a {
  color: #ca0010;
  text-underline-offset: 0.18em;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.1em;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 900;
  color: inherit;
}
.brand img {
  margin-right: 0.3em;
}
.brand span { color: #ff0014; }
.phase {
  color: #e60012;
}
main {
  padding-block: 2rem 4rem;
}
h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: -0.06em;
  line-height: 1.02;
  margin: 0;
  overflow-wrap: anywhere;
}
p {
  max-width: 56ch;
}
.phase,
caption {
  font-weight: 750;
}
form,
section {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}
label {
  display: grid;
  gap: 0.3rem;
  font-weight: 650;
}
small {
  font-weight: 400;
}
input,
textarea {
  font: inherit;
  width: 100%;
  min-width: 0;
  background: white;
  border: 1px solid #808080;
  padding: 0.7rem;
  border-radius: 0.25rem;
}
button,
.action {
  justify-self: start;
  background: #e60012;
  color: white;
  font: inherit;
  font-weight: 700;
  border: 0;
  border-radius: 0.25rem;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
}
.action {
  display: inline-block;
  text-decoration: none;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
th,
td,
caption {
  text-align: left;
  padding: 0.65rem 0.25rem;
  border-bottom: 1px solid #ccc;
}
td:nth-child(2) {
  overflow-wrap: anywhere;
}
th:last-child,
td:last-child {
  text-align: right;
}
.selected,
[role='alert'] {
  background: #ffe8eb;
}
section {
  border-block: 1px solid;
  padding: 1rem 0;
}
h2 {
  margin: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #1657a8;
  outline-offset: 2px;
}
.card-preview { display:block; width:100%; height:auto; border:1px solid #ccc }
.share-links { display:flex; flex-wrap:wrap; gap:.5rem }
.share-links a { display:inline-flex; min-height:44px; align-items:center; padding:.5rem 1rem; font-weight:700; border:1px solid currentColor; text-decoration:none }
header { display:flex; align-items:center; justify-content:space-between; gap:1rem }
#race-create { display:grid; gap:.6rem }
.race-footer { max-width:48rem; margin:auto; padding:1rem clamp(1rem,4vw,2rem); border-top:1px solid #ccc; font-size:.875rem }
.race-footer details { margin-top:1rem; line-height:1.5 }
.race-footer summary { cursor:pointer; font-weight:700; color:#ca0010 }

.brand img { filter: saturate(2) brightness(1.3); }
