:root {
  --ink: #15221e;
  --muted: #62716b;
  --paper: #f4f0e5;
  --paper-strong: #fffdf5;
  --court: #174f3f;
  --court-dark: #0d392e;
  --line: rgba(255, 255, 242, 0.82);
  --lime: #d8ff61;
  --orange: #ff8a4c;
  --cyan: #6ee6df;
  --red: #d95043;
  --border: #c8c5b9;
  --shadow: 0 18px 55px rgba(20, 41, 34, 0.13);
  color: var(--ink);
  font-family: Inter, "BIZ UDPGothic", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", sans-serif;
  font-synthesis: none;
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(23, 79, 63, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 79, 63, 0.035) 1px, transparent 1px), var(--paper);
  background-size: 24px 24px;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: white;
  border: 2px solid var(--ink);
  padding: 8px 14px;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  align-items: center;
  background: rgba(244, 240, 229, 0.92);
  border-bottom: 1px solid var(--border);
  display: flex;
  height: 70px;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - 1180px) / 2));
  position: relative;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 17px;
  font-weight: 900;
  gap: 10px;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.brand-court {
  background: var(--court);
  border-radius: 3px;
  display: block;
  height: 29px;
  overflow: hidden;
  position: relative;
  transform: rotate(-3deg);
  width: 42px;
}

.brand-court::after {
  border: 1px solid white;
  border-radius: 50%;
  content: "";
  height: 13px;
  left: 14px;
  opacity: 0.75;
  position: absolute;
  top: 7px;
  width: 13px;
}

.brand-court i {
  border-right: 1px solid white;
  height: 100%;
  left: 20px;
  opacity: 0.75;
  position: absolute;
}

.brand-court b {
  background: var(--lime);
  border-radius: 50%;
  bottom: 4px;
  height: 6px;
  position: absolute;
  right: 6px;
  width: 6px;
}

.site-header nav,
footer nav {
  align-items: center;
  display: flex;
  gap: 22px;
}

.site-header nav a,
footer a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-header .nav-action {
  border: 1px solid var(--ink);
  padding: 8px 13px;
}

main {
  min-height: calc(100vh - 150px);
}

footer {
  align-items: center;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 96px;
  padding: 28px max(22px, calc((100vw - 1180px) / 2));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.3;
}

h2 {
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.35;
}

.eyebrow {
  color: var(--court);
  display: block;
  font-family: ui-monospace, "Cascadia Mono", monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.button {
  align-items: center;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  text-decoration: none;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.button:hover:not(:disabled) {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.accent {
  background: var(--lime);
}

.button.danger {
  border-color: var(--red);
  color: #9e3028;
}

.court-stage {
  background: var(--court);
  box-shadow: var(--shadow);
  height: 390px;
  margin: 36px auto 0;
  max-width: 1180px;
  overflow: hidden;
  position: relative;
}

.court-stage::before {
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 12.4%,
    rgba(255, 255, 255, 0.035) 12.5%,
    rgba(255, 255, 255, 0.035) 25%
  );
  content: "";
  inset: 0;
  position: absolute;
}

.court-lines {
  border: 2px solid var(--line);
  inset: 30px;
  position: absolute;
}

.court-lines::before {
  border-left: 2px solid var(--line);
  content: "";
  height: 100%;
  left: 50%;
  position: absolute;
}

.center-circle {
  border: 2px solid var(--line);
  border-radius: 50%;
  height: 100px;
  left: calc(50% - 50px);
  position: absolute;
  top: calc(50% - 50px);
  width: 100px;
}

.goal {
  border: 2px solid var(--line);
  height: 140px;
  position: absolute;
  top: calc(50% - 70px);
  width: 74px;
}

.goal.left {
  border-left: 0;
  left: 0;
}

.goal.right {
  border-right: 0;
  right: 0;
}

.ball {
  background:
    radial-gradient(circle at 50% 30%, var(--ink) 0 10%, transparent 11%),
    radial-gradient(circle at 22% 63%, var(--ink) 0 9%, transparent 10%),
    radial-gradient(circle at 78% 63%, var(--ink) 0 9%, transparent 10%), white;
  border: 3px solid var(--ink);
  border-radius: 50%;
  bottom: 48px;
  height: 30px;
  left: calc(50% - 15px);
  position: absolute;
  transform: rotate(14deg);
  width: 30px;
}

.vacancy-board {
  background: #f4f0db;
  border: 3px solid var(--ink);
  box-shadow: 11px 11px 0 rgba(8, 40, 32, 0.6);
  left: 9%;
  padding: 18px 20px;
  position: absolute;
  top: 60px;
  transform: rotate(-2deg);
  width: 280px;
}

.vacancy-board small {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  margin-bottom: 12px;
}

.vacancy-board > div {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
}

.vacancy-board strong {
  font-family: ui-monospace, monospace;
  font-size: 24px;
}

.vacancy-board p {
  border-top: 2px solid var(--ink);
  display: flex;
  font-size: 11px;
  font-weight: 800;
  justify-content: space-between;
  margin: 6px 0 0;
  padding-top: 10px;
}

.vacancy-board p i {
  display: none;
}

.bib {
  align-items: center;
  clip-path: polygon(
    18% 0,
    35% 10%,
    65% 10%,
    82% 0,
    100% 22%,
    86% 39%,
    86% 100%,
    14% 100%,
    14% 39%,
    0 22%
  );
  display: inline-flex;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  font-weight: 900;
  height: 35px;
  justify-content: center;
  padding-top: 3px;
  width: 43px;
}

.bib.field {
  background: var(--lime);
}

.bib.keeper {
  background: var(--orange);
}

.entry-lane {
  align-items: center;
  bottom: 49px;
  display: flex;
  gap: 12px;
  left: 16%;
  position: absolute;
}

.entry-lane > i {
  border-top: 2px dashed rgba(255, 255, 255, 0.65);
  display: block;
  width: 22px;
}

.cone {
  border-bottom: 35px solid var(--orange);
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  height: 0;
  width: 0;
}

.helper-pair {
  display: flex;
  gap: 20px;
  position: absolute;
  right: 9%;
  top: 78px;
}

.helper-pair article {
  align-items: center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.helper-pair article > span {
  align-items: center;
  background: var(--lime);
  clip-path: polygon(
    18% 0,
    35% 10%,
    65% 10%,
    82% 0,
    100% 22%,
    86% 39%,
    86% 100%,
    14% 100%,
    14% 39%,
    0 22%
  );
  display: flex;
  font-family: ui-monospace, monospace;
  font-size: 24px;
  font-weight: 900;
  height: 126px;
  justify-content: center;
  width: 104px;
}

.helper-pair article:nth-child(2) > span {
  background: var(--orange);
  margin-top: 35px;
}

.helper-pair article i {
  background: var(--ink);
  border-radius: 4px 4px 0 0;
  height: 28px;
  position: absolute;
  top: 112px;
  width: 42px;
  z-index: -1;
}

.helper-pair article b {
  background: white;
  border: 2px solid var(--ink);
  font-size: 11px;
  margin-top: 17px;
  padding: 4px 8px;
  transform: rotate(2deg);
}

.directory-shell,
.recruit-shell,
.game-shell,
.manage-shell,
.status-shell,
.guide-board,
.prose,
.not-found {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.directory-shell {
  padding: 68px 22px 20px;
}

.directory-heading,
.game-heading,
.manage-heading {
  align-items: end;
  display: flex;
  gap: 36px;
  justify-content: space-between;
}

.directory-heading > div,
.game-heading > div,
.manage-heading > div {
  max-width: 720px;
}

.directory-heading h1,
.game-heading h1,
.manage-heading h1 {
  margin-bottom: 10px;
}

.directory-heading p,
.game-heading p,
.manage-heading p {
  color: var(--muted);
  margin-bottom: 0;
}

.directory-filter {
  align-items: end;
  background: var(--paper-strong);
  border: 1px solid var(--border);
  display: flex;
  gap: 12px;
  margin: 28px 0;
  padding: 14px;
}

.directory-filter label {
  display: grid;
  gap: 3px;
}

.directory-filter label span {
  font-size: 10px;
  font-weight: 800;
}

.directory-filter input,
.directory-filter select {
  background: white;
  border: 1px solid var(--border);
  border-radius: 0;
  min-height: 42px;
  padding: 7px 10px;
}

.directory-filter input {
  width: min(240px, 34vw);
}

.directory-filter button {
  background: var(--ink);
  border: 0;
  color: white;
  cursor: pointer;
  min-height: 42px;
  padding: 7px 18px;
}

.directory-filter > a {
  font-size: 12px;
  margin: auto 4px 10px;
}

.listing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.listing-card {
  background: var(--paper-strong);
  border: 1px solid var(--border);
  box-shadow: 0 5px 0 rgba(19, 59, 48, 0.06);
  min-width: 0;
  position: relative;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.listing-card::before {
  background: var(--lime);
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.listing-card[data-style="competitive"]::before {
  background: var(--orange);
}

.listing-card[data-style="mix"]::before {
  background: var(--cyan);
}

.listing-card:hover {
  box-shadow: 7px 9px 0 rgba(19, 59, 48, 0.16);
  transform: translate(-2px, -3px);
}

.listing-card > a {
  display: block;
  height: 100%;
  padding: 21px;
  text-decoration: none;
}

.listing-card header {
  align-items: start;
  display: flex;
  justify-content: space-between;
}

.listing-card time {
  display: grid;
  line-height: 1.35;
}

.listing-card time strong {
  font-size: 15px;
}

.listing-card time span {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.freshness {
  background: var(--lime);
  border: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 3px 8px;
}

.freshness.full {
  background: #d8d7d0;
}

.listing-place {
  border-bottom: 1px dashed var(--border);
  display: grid;
  gap: 2px;
  margin: 17px 0 14px;
  padding-bottom: 13px;
}

.listing-place span {
  color: var(--muted);
  font-size: 11px;
}

.listing-place strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-card h3 {
  font-size: 17px;
  line-height: 1.45;
  margin-bottom: 5px;
}

.listing-card h3 + p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 13px;
}

.slot-row,
.fact-row,
.big-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.slot {
  align-items: center;
  border: 1px solid var(--ink);
  display: inline-flex;
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 900;
  gap: 8px;
  padding: 5px 9px;
}

.slot.field {
  background: var(--lime);
}

.slot.keeper {
  background: var(--orange);
}

.slot b {
  font-size: 18px;
  line-height: 1;
}

.fee {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  margin-left: auto;
}

.fact-row {
  margin-top: 10px;
}

.fact-row span {
  background: #ece8dd;
  color: #3f4c48;
  font-size: 10px;
  padding: 3px 7px;
}

.empty-directory,
.empty-applicants {
  align-items: center;
  background: rgba(255, 253, 245, 0.66);
  border: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  padding: 46px 20px;
  text-align: center;
}

.empty-directory p,
.empty-applicants {
  color: var(--muted);
  font-size: 13px;
}

.empty-goal {
  border: 3px solid var(--court);
  border-bottom: 0;
  display: block;
  height: 38px;
  margin-bottom: 18px;
  opacity: 0.5;
  position: relative;
  width: 70px;
}

.empty-goal::after {
  background:
    linear-gradient(45deg, transparent 46%, var(--court) 47% 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--court) 47% 53%, transparent 54%);
  background-size: 14px 14px;
  content: "";
  inset: 0;
  opacity: 0.35;
  position: absolute;
}

.recruit-shell {
  align-items: start;
  display: grid;
  gap: 60px;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.5fr);
  padding: 110px 22px 40px;
}

.recruit-intro {
  position: sticky;
  top: 36px;
}

.recruit-intro ol {
  list-style: none;
  margin: 30px 0;
  padding: 0;
}

.recruit-intro li {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 14px;
  padding: 14px 0;
}

.recruit-intro li span {
  color: var(--court);
  font-family: ui-monospace, monospace;
}

.privacy-bibs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.privacy-bibs span {
  background: var(--court);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 8px;
}

.recruit-form,
.apply-form {
  background: var(--paper-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: clamp(22px, 5vw, 48px);
}

.recruit-form > header,
.apply-form > header {
  align-items: center;
  border-bottom: 2px solid var(--ink);
  display: flex;
  gap: 17px;
  margin-bottom: 4px;
  padding-bottom: 18px;
}

.recruit-form header h2,
.apply-form header h2 {
  margin-bottom: 0;
}

.form-ball {
  background: var(--lime);
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: block;
  height: 44px;
  position: relative;
  width: 44px;
}

.form-ball::before,
.form-ball::after {
  background: var(--ink);
  content: "";
  height: 9px;
  position: absolute;
  transform: rotate(45deg);
  width: 9px;
}

.form-ball::before {
  left: 7px;
  top: 15px;
}

.form-ball::after {
  right: 7px;
  top: 9px;
}

.field {
  display: grid;
  gap: 6px;
}

.field > span {
  font-size: 12px;
  font-weight: 850;
}

.field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  background: white;
  border: 1px solid #aaa99f;
  border-radius: 0;
  min-width: 0;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}

.field input,
.field select {
  min-height: 46px;
}

.field textarea {
  line-height: 1.6;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.field-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-grid.three {
  align-items: end;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-field {
  align-items: center;
  background: #eeeee5;
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  min-height: 46px;
  padding: 10px;
}

.check-field input {
  accent-color: var(--court);
  height: 18px;
  width: 18px;
}

.private-field {
  background: #e7f1ec;
  border-left: 4px solid var(--court);
  margin-top: 4px;
  padding: 16px;
}

.recruit-form .button.primary,
.apply-form .button.primary {
  margin-top: 5px;
  min-height: 52px;
}

.honeypot {
  left: -10000px;
  position: absolute;
}

.action-status {
  font-size: 12px;
  margin: 0;
  min-height: 1.65em;
}

.action-status[data-kind="error"] {
  color: #a8332b;
  font-weight: 700;
}

.action-status[data-kind="success"] {
  color: var(--court);
}

.private-page main {
  background:
    linear-gradient(135deg, rgba(23, 79, 63, 0.04) 25%, transparent 25%) 0 0 / 28px 28px,
    var(--paper);
}

.game-shell,
.manage-shell,
.status-shell {
  padding: 68px 22px 20px;
}

.game-grid {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  margin-top: 32px;
}

.game-board {
  background: var(--paper-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mini-court {
  background: var(--court);
  height: 180px;
  position: relative;
}

.mini-court::before {
  border: 2px solid var(--line);
  content: "";
  inset: 18px;
  position: absolute;
}

.mini-court::after {
  border: 2px solid var(--line);
  border-radius: 50%;
  content: "";
  height: 66px;
  left: calc(50% - 33px);
  position: absolute;
  top: calc(50% - 33px);
  width: 66px;
}

.mini-court i {
  border-right: 2px solid var(--line);
  height: calc(100% - 36px);
  left: 50%;
  position: absolute;
  top: 18px;
}

.mini-court b,
.mini-court em {
  border: 2px solid var(--line);
  height: 80px;
  position: absolute;
  top: 50px;
  width: 42px;
}

.mini-court b {
  border-left: 0;
  left: 18px;
}

.mini-court em {
  border-right: 0;
  right: 18px;
}

.game-board dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.game-board dl div {
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  min-width: 0;
  padding: 15px 18px;
}

.game-board dt {
  color: var(--muted);
  font-size: 10px;
}

.game-board dd {
  font-size: 13px;
  font-weight: 800;
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-board .big-slots {
  border-bottom: 1px solid var(--border);
  padding: 22px;
}

.big-slots .slot {
  font-size: 13px;
  padding: 10px 14px;
}

.big-slots .slot b {
  font-size: 25px;
}

.game-notes {
  display: grid;
  gap: 0;
  padding: 5px 22px 22px;
}

.game-notes section {
  border-bottom: 1px dashed var(--border);
  padding: 16px 0 10px;
}

.game-notes h3 {
  font-size: 11px;
  margin-bottom: 4px;
}

.game-notes p {
  color: #3d4945;
  font-size: 13px;
  margin-bottom: 0;
  white-space: pre-wrap;
}

.apply-form {
  padding: 28px;
  position: sticky;
  top: 20px;
}

.apply-form > header {
  align-items: start;
  display: block;
}

.apply-form header p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}

.report-link {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: block;
  font-size: 11px;
  margin: 24px 0 0 auto;
  text-decoration: underline;
}

.status-shell {
  max-width: 820px;
}

.status-shell > header {
  align-items: center;
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
}

.status-shell > header h1,
.status-shell > header p {
  margin-bottom: 4px;
}

.status-shell > header p {
  color: var(--muted);
  font-size: 13px;
}

.status-bib {
  background: var(--lime);
  clip-path: polygon(
    18% 0,
    35% 10%,
    65% 10%,
    82% 0,
    100% 22%,
    86% 39%,
    86% 100%,
    14% 100%,
    14% 39%,
    0 22%
  );
  display: block;
  height: 92px;
  width: 76px;
}

.status-card {
  align-items: center;
  background: var(--paper-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  gap: 22px;
  min-height: 180px;
  padding: 28px;
}

.status-card small {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

.status-card h2 {
  margin: 3px 0 6px;
}

.status-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.status-light {
  background: #b7b8b2;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink);
  flex: 0 0 auto;
  height: 52px;
  width: 52px;
}

.status-light.accepted {
  background: var(--lime);
}

.status-light.declined,
.status-light.withdrawn {
  background: #9d9e99;
}

.status-light.waitlist {
  background: var(--orange);
}

.accepted-note {
  background: #e6f1b5;
  border: 1px solid var(--ink);
  margin-top: 20px;
  padding: 25px 28px;
}

.accepted-note p {
  white-space: pre-wrap;
}

.status-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.status-actions .action-status {
  flex-basis: 100%;
}

.manage-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(240px, 0.65fr) minmax(360px, 1.35fr);
  margin-top: 32px;
}

.slot-control,
.applicant-panel,
.share-panel,
.danger-zone {
  background: var(--paper-strong);
  border: 1px solid var(--border);
  padding: 24px;
}

.slot-control .big-slots {
  display: grid;
  margin-top: 17px;
}

.listing-controls {
  display: grid;
  gap: 8px;
  margin-top: 23px;
}

.applicant-panel {
  grid-row: span 2;
}

.applicant-panel > header {
  align-items: center;
  border-bottom: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  padding-bottom: 14px;
}

.applicant-panel h2,
.share-panel h2 {
  margin-bottom: 0;
}

.applicant-panel > header > strong {
  align-items: center;
  background: var(--ink);
  border-radius: 50%;
  color: white;
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.applicant-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.applicant-card {
  background: #f5f3e9;
  border: 1px solid var(--border);
  padding: 15px;
}

.applicant-card header {
  align-items: center;
  display: flex;
  gap: 12px;
}

.applicant-card header > span {
  color: var(--court);
  font-family: ui-monospace, monospace;
  font-size: 18px;
  font-weight: 900;
}

.applicant-card header div {
  display: grid;
}

.applicant-card header strong {
  font-size: 12px;
}

.applicant-card header small {
  color: var(--muted);
  font-size: 10px;
}

.applicant-card header small[data-state="accepted"] {
  color: var(--court);
  font-weight: 900;
}

.applicant-card p {
  border-left: 2px solid var(--border);
  font-size: 12px;
  margin: 12px 0;
  padding-left: 10px;
  white-space: pre-wrap;
}

.applicant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mini-action {
  background: white;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  padding: 6px 8px;
}

.mini-action.field {
  background: var(--lime);
}

.mini-action.keeper {
  background: var(--orange);
}

.mini-action.muted {
  border-color: var(--border);
  color: var(--muted);
}

.share-panel {
  align-self: start;
}

.share-panel textarea {
  background: white;
  border: 1px solid var(--border);
  font-size: 11px;
  margin: 12px 0;
  padding: 10px;
  resize: none;
  width: 100%;
}

.danger-zone {
  align-items: center;
  border-color: #d8aaa5;
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}

.danger-zone p {
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 0;
}

.guide-board,
.prose {
  padding: 76px 22px 30px;
}

.guide-board > header,
.prose > header {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 20px;
}

.guide-steps {
  display: grid;
  gap: 0;
  list-style: none;
  margin: 38px 0;
  padding: 0;
}

.guide-steps li {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 28px;
  grid-template-columns: 110px 1fr;
  padding: 24px;
}

.guide-steps small {
  color: var(--court);
  font-family: ui-monospace, monospace;
}

.guide-steps strong {
  display: block;
  font-size: 18px;
  margin: 3px 0 4px;
}

.guide-steps p,
.guide-note p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.guide-icon {
  display: block;
  height: 74px;
  margin: auto;
  position: relative;
  width: 82px;
}

.guide-icon.board {
  background: var(--court);
  border: 4px solid var(--ink);
}

.guide-icon.board::after {
  border: 2px solid white;
  content: "";
  inset: 11px;
  position: absolute;
}

.guide-icon.bib {
  background: var(--lime);
  clip-path: polygon(
    18% 0,
    35% 10%,
    65% 10%,
    82% 0,
    100% 22%,
    86% 39%,
    86% 100%,
    14% 100%,
    14% 39%,
    0 22%
  );
}

.guide-icon.whistle {
  border: 14px solid var(--orange);
  border-radius: 50%;
  height: 65px;
  transform: rotate(-17deg);
  width: 65px;
}

.guide-icon.whistle::after {
  background: var(--orange);
  content: "";
  height: 18px;
  position: absolute;
  right: -28px;
  top: 10px;
  width: 30px;
}

.guide-note {
  background: var(--court);
  color: white;
  padding: 24px;
}

.guide-note p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 7px;
}

.prose {
  max-width: 820px;
}

.prose section {
  border-bottom: 1px solid var(--border);
  padding: 26px 0 14px;
}

.prose h2 {
  font-size: 18px;
}

.prose p {
  color: #45514d;
  font-size: 14px;
}

.not-found {
  align-items: center;
  display: flex;
  flex-direction: column;
  padding: 120px 22px;
  text-align: center;
}

@media (max-width: 850px) {
  .court-stage {
    height: 350px;
    margin-top: 0;
  }

  .vacancy-board {
    left: 7%;
    top: 52px;
    width: 250px;
  }

  .helper-pair {
    right: 7%;
  }

  .helper-pair article > span {
    height: 105px;
    width: 86px;
  }

  .listing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .recruit-shell {
    gap: 30px;
    grid-template-columns: 1fr;
    padding-top: 76px;
  }

  .recruit-intro {
    position: static;
  }

  .game-grid,
  .manage-grid {
    grid-template-columns: 1fr;
  }

  .apply-form {
    position: static;
  }

  .applicant-panel {
    grid-row: auto;
  }
}

@media (max-width: 600px) {
  .site-header {
    height: 62px;
    padding: 0 14px;
  }

  .site-header nav {
    gap: 10px;
  }

  .site-header nav > a:first-child {
    display: none;
  }

  .site-header .nav-action {
    font-size: 11px;
    padding: 7px 9px;
  }

  .court-stage {
    height: 360px;
  }

  .court-lines {
    inset: 18px;
  }

  .vacancy-board {
    left: 8%;
    top: 34px;
    width: 230px;
  }

  .helper-pair {
    bottom: 23px;
    right: 7%;
    top: auto;
  }

  .helper-pair article > span {
    font-size: 18px;
    height: 88px;
    width: 70px;
  }

  .helper-pair article:nth-child(2) > span {
    margin-top: 18px;
  }

  .helper-pair article i {
    display: none;
  }

  .helper-pair article b {
    margin-top: 6px;
  }

  .entry-lane {
    bottom: 44px;
    left: 9%;
  }

  .directory-shell,
  .game-shell,
  .manage-shell,
  .status-shell {
    padding-top: 44px;
  }

  .directory-heading,
  .game-heading,
  .manage-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .directory-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .directory-filter input {
    width: 100%;
  }

  .directory-filter > a {
    margin: 2px 0;
  }

  .listing-grid {
    grid-template-columns: 1fr;
  }

  .field-grid.two,
  .field-grid.three {
    grid-template-columns: 1fr;
  }

  .recruit-form,
  .apply-form {
    padding: 20px;
  }

  .game-board dl {
    grid-template-columns: 1fr;
  }

  .game-board dl div {
    border-right: 0;
  }

  .status-shell > header {
    align-items: start;
  }

  .status-bib {
    height: 70px;
    width: 57px;
  }

  .status-card {
    align-items: start;
    flex-direction: column;
  }

  .guide-steps li {
    gap: 16px;
    grid-template-columns: 76px 1fr;
    padding: 20px 0;
  }

  .guide-icon {
    transform: scale(0.72);
  }

  .danger-zone {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }

  footer {
    align-items: start;
    flex-direction: column;
    gap: 14px;
    margin-top: 60px;
  }

  footer nav {
    flex-wrap: wrap;
    gap: 12px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
