:root {
  color-scheme: light;
  --ink: #17241f;
  --ink-soft: #34453d;
  --muted: #68776f;
  --canvas: #f3f5f2;
  --surface: #fff;
  --surface-soft: #f7f9f7;
  --line: #dce4df;
  --line-strong: #bdcac3;
  --forest: #102d23;
  --forest-soft: #194634;
  --green: #13734b;
  --green-dark: #0b5839;
  --green-pale: #e7f4ec;
  --lime: #d8e99b;
  --red: #ae2f26;
  --red-pale: #fff0ee;
  --gold: #d6aa43;
  --shadow-sm: 0 4px 14px rgb(15 45 34 / 6%);
  --shadow-lg: 0 20px 50px rgb(15 45 34 / 14%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 20rem;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgb(215 233 222 / 70%), transparent 24rem),
    radial-gradient(circle at 92% 18rem, rgb(238 225 177 / 28%), transparent 28rem),
    var(--canvas);
  font-size: 1rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select,
textarea,
summary,
a { -webkit-tap-highlight-color: transparent; }

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-dark);
  text-underline-offset: .18em;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

.wrap {
  width: min(100% - 1.5rem, 72rem);
  margin-inline: auto;
}

.page-shell {
  width: 100%;
  flex: 1;
  padding-block: 1.25rem 3.5rem;
}

.narrow { max-width: 42rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: .5rem;
  left: .5rem;
  padding: .65rem .9rem;
  border-radius: .55rem;
  color: white;
  background: var(--forest);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #e7bd4e;
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  color: white;
  background: rgb(16 45 35 / 96%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  box-shadow: 0 4px 20px rgb(5 26 18 / 12%);
  backdrop-filter: blur(12px);
}

.header-row {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: white;
  text-decoration: none;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: .75rem;
  color: var(--forest);
  background: var(--lime);
  font-size: .83rem;
  font-weight: 900;
  letter-spacing: -.03em;
  transform: rotate(-4deg);
}

.brand-copy {
  min-width: 0;
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: .98rem;
  letter-spacing: -.01em;
}

.brand-copy small {
  margin-top: .2rem;
  color: rgb(255 255 255 / 62%);
  font-size: .7rem;
}

.badge,
.header-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  padding: .4rem .7rem;
  color: rgb(255 255 255 / 78%);
  background: rgb(255 255 255 / 8%);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .03em;
}

.header-meta > span {
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 .2rem rgb(216 233 155 / 14%);
}

.badge {
  color: var(--forest);
  background: var(--lime);
  border-color: transparent;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-footer {
  padding: 1.4rem 0;
  color: #718079;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  text-align: center;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 1rem;
  padding: clamp(1.5rem, 5vw, 3.25rem);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: 1.5rem;
  color: white;
  background:
    radial-gradient(circle at 88% 20%, rgb(216 233 155 / 18%), transparent 15rem),
    linear-gradient(135deg, var(--forest), #164633 72%, #1c523c);
  box-shadow: var(--shadow-lg);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 20rem;
  height: 20rem;
  right: -9rem;
  bottom: -12rem;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50%;
  box-shadow:
    0 0 0 2.5rem rgb(255 255 255 / 2%),
    0 0 0 5rem rgb(255 255 255 / 2%);
}

.hero h1 {
  max-width: 13ch;
  margin: .35rem 0 .85rem;
  font-size: clamp(2.15rem, 8vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero .eyebrow {
  margin: 0;
  color: var(--lime);
}

.eyebrow,
.section-kicker {
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-lede {
  max-width: 44rem;
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-size: clamp(.98rem, 2vw, 1.08rem);
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
}

.access-note {
  max-width: 31rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.5rem;
  padding: .75rem;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: .9rem;
  background: rgb(255 255 255 / 7%);
}

.access-note > span:last-child {
  display: grid;
  gap: .08rem;
}

.access-note small {
  color: rgb(255 255 255 / 62%);
  font-size: .76rem;
}

.access-icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--forest);
  background: var(--lime);
  font-weight: 900;
}

.match-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 1.15rem;
  background: rgb(255 255 255 / 8%);
  box-shadow: inset 0 1px rgb(255 255 255 / 7%);
}

.match-card p {
  margin: 0;
  color: rgb(255 255 255 / 62%);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.match-card-date {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.match-card-date strong {
  font-size: 3.2rem;
  line-height: .8;
  letter-spacing: -.08em;
}

.match-card-date span {
  color: rgb(255 255 255 / 68%);
  font-size: .78rem;
  line-height: 1.25;
}

.pitch-line {
  height: 1px;
  position: relative;
  margin-block: .25rem;
  background: rgb(255 255 255 / 16%);
}

.pitch-line span {
  width: 1rem;
  height: 1rem;
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.match-card .match-card-label { color: var(--lime); }

.participant-hero {
  display: grid;
  gap: 1.5rem;
}

.participant-intro {
  display: grid;
  justify-items: start;
}

.participant-hero h1 { max-width: 15ch; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: 1.25rem;
  border-radius: 999px;
  padding: .35rem .65rem;
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.status::before {
  content: "";
  width: .38rem;
  height: .38rem;
  border-radius: 50%;
  background: currentColor;
}

.status.setup {
  color: #45544d;
  background: #e9eeeb;
}

.status.open {
  color: #0b5f3d;
  background: #dff4e7;
}

.status.closed {
  color: #7e3a18;
  background: #ffead8;
}

.hero .status {
  border: 1px solid rgb(255 255 255 / 12%);
  color: var(--lime);
  background: rgb(255 255 255 / 9%);
}

.progress-card {
  align-self: end;
  padding: 1.1rem;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 1.1rem;
  background: rgb(255 255 255 / 8%);
}

.progress-copy {
  display: grid;
  gap: .15rem;
  margin-bottom: .8rem;
}

.progress-copy span { font-weight: 700; }

.progress-copy strong {
  color: var(--lime);
  font-size: 1.55rem;
}

.progress-copy small {
  color: rgb(255 255 255 / 58%);
  font-size: .76rem;
}

.prediction-progress {
  width: 100%;
  height: .48rem;
  display: block;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
  appearance: none;
}

.prediction-progress::-webkit-progress-bar {
  border-radius: 999px;
  background: rgb(255 255 255 / 12%);
}

.prediction-progress::-webkit-progress-value {
  border-radius: 999px;
  background: var(--lime);
}

.prediction-progress::-moz-progress-bar {
  border-radius: 999px;
  background: var(--lime);
}

.card {
  min-width: 0;
  margin-bottom: 1rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow-sm);
}

.stack {
  display: grid;
  gap: 1rem;
}

.compact {
  gap: .75rem;
  margin-top: .8rem;
}

.question {
  position: relative;
  min-width: 0;
  margin: 0;
}

.question > .question-heading {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1rem;
}

.question-heading h2 {
  max-width: 35rem;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 3.5vw, 1.3rem);
  line-height: 1.3;
  letter-spacing: -.02em;
}

.question-index,
.question-number {
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid #cce1d5;
  border-radius: .72rem;
  color: var(--green-dark);
  background: var(--green-pale);
  font-size: .72rem;
  font-weight: 850;
}

.points {
  display: inline-flex;
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 650;
}

.choice-grid {
  display: grid;
  gap: .65rem;
}

.choice-grid.has-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.choice {
  position: relative;
  min-width: 0;
  display: block;
  cursor: pointer;
}

.choice > input {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  box-shadow: none;
  cursor: inherit;
}

.choice-content {
  min-height: 3.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  overflow: hidden;
  padding: .75rem;
  border: 1.5px solid var(--line);
  border-radius: .9rem;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(18 45 34 / 3%);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.choice:hover .choice-content {
  border-color: #aabdb3;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgb(18 45 34 / 8%);
}

.choice:has(input:checked) .choice-content {
  border-color: var(--green);
  background: #f5fbf7;
  box-shadow: 0 0 0 3px rgb(19 115 75 / 10%);
}

.choice:has(input:focus-visible) .choice-content {
  outline: 3px solid #e7bd4e;
  outline-offset: 2px;
}

.choice:has(input:disabled) {
  cursor: default;
  opacity: .72;
}

.choice:has(input:disabled) .choice-content { transform: none; }

.choice-visual {
  grid-column: 1 / -1;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  margin: -.35rem -.35rem .05rem;
  border: 1px solid rgb(13 50 37 / 9%);
  border-radius: .68rem;
  background: #edf1ef;
}

.choice-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.choice-label {
  min-width: 0;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 750;
}

.choice-indicator {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1.5px solid #a9b7af;
  border-radius: 50%;
  background: white;
}

.choice:has(input:checked) .choice-indicator,
.image-choice:has(input:checked) .choice-indicator {
  border-color: var(--green);
  background: var(--green);
}

.choice:has(input:checked) .choice-indicator::after,
.image-choice:has(input:checked) .choice-indicator::after {
  content: "";
  width: .35rem;
  height: .2rem;
  margin-top: -.08rem;
  border-bottom: 2px solid white;
  border-left: 2px solid white;
  transform: rotate(-45deg);
}

.field {
  display: grid;
  gap: .4rem;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 720;
}

.field > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}

.field small,
.image-choice-fieldset small {
  color: var(--muted);
  font-weight: 550;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid var(--line-strong);
  border-radius: .72rem;
  padding: .68rem .8rem;
  color: var(--ink);
  background: white;
  box-shadow: inset 0 1px 1px rgb(14 42 31 / 3%);
}

input:hover,
select:hover,
textarea:hover { border-color: #98aaa0; }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgb(19 115 75 / 11%);
}

input:disabled,
select:disabled,
textarea:disabled {
  color: #748179;
  background: #f1f3f2;
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

.answer-field {
  max-width: 22rem;
  padding-top: .1rem;
}

.answer-field input {
  min-height: 3.35rem;
  font-size: 1.05rem;
}

button {
  min-height: 2.75rem;
  border: 1px solid #9fafa6;
  border-radius: .72rem;
  padding: .62rem .9rem;
  color: var(--ink);
  background: white;
  font-weight: 760;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

button:hover {
  border-color: #869990;
  background: #f2f5f3;
}

button:active { transform: translateY(1px); }

button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  border-color: var(--green);
  color: white;
  background: var(--green);
  box-shadow: 0 7px 18px rgb(19 115 75 / 20%);
}

button.primary:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
  box-shadow: 0 9px 22px rgb(11 88 57 / 24%);
}

button.danger {
  border-color: #e7b0aa;
  color: var(--red);
  background: #fffafa;
}

button.danger:hover { background: var(--red-pale); }

button:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-actions {
  position: sticky;
  z-index: 10;
  bottom: .65rem;
  display: grid;
  gap: .75rem;
  margin: .15rem 0 .35rem;
  padding: .85rem;
  border: 1px solid rgb(187 203 194 / 85%);
  border-radius: 1rem;
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 12px 35px rgb(15 45 34 / 18%);
  backdrop-filter: blur(14px);
}

.form-actions > span {
  display: none;
  line-height: 1.3;
}

.form-actions > span small {
  color: var(--muted);
  font-size: .74rem;
}

.form-actions button { width: 100%; }

.notice {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: 1rem;
  padding: .85rem 1rem;
  border: 1px solid transparent;
  border-radius: .9rem;
}

.notice > span {
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.notice > div { display: grid; }

.notice small { opacity: .78; }

.notice.success {
  border-color: #b7dfc6;
  color: #0b5839;
  background: #e5f6eb;
}

.notice.success > span {
  color: white;
  background: var(--green);
}

.notice.error {
  border-color: #efc0bb;
  color: #90251e;
  background: var(--red-pale);
}

.content-section { margin-top: 1rem; }

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: .1rem 0 0;
  font-size: 1.35rem;
  letter-spacing: -.025em;
}

.section-kicker {
  margin: 0;
  color: var(--green);
}

.participant-count {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .35rem .6rem;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: .72rem;
  font-weight: 700;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 2rem 1rem;
  color: var(--muted);
  text-align: center;
}

.empty-state p { margin: 0; }

.compact-empty { padding: 1.15rem .75rem; }

.empty-icon {
  min-width: 2.2rem;
  height: 2.2rem;
  display: inline-grid;
  place-items: center;
  margin-bottom: .6rem;
  border-radius: .7rem;
  padding-inline: .4rem;
  color: var(--green-dark);
  background: var(--green-pale);
  font-size: .7rem;
  font-weight: 850;
}

.page-message {
  margin-top: clamp(2rem, 10vw, 6rem);
  margin-inline: auto;
}

.page-message h1 {
  margin: 0 0 .5rem;
  color: var(--ink);
  font-size: 1.7rem;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: .85rem;
}

table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
}

th,
td {
  padding: .75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

tbody tr:last-child td { border-bottom: 0; }

tbody tr:hover { background: #f8faf8; }

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.number { text-align: right; }

.rank-chip {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-grid;
  place-items: center;
  border-radius: .55rem;
  color: var(--green-dark);
  background: var(--green-pale);
  font-size: .72rem;
  font-weight: 800;
}

details {
  border-top: 1px solid var(--line);
  padding: .75rem 0;
}

summary {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  list-style: none;
  cursor: pointer;
  font-weight: 720;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--green-pale);
  font-size: 1rem;
}

details[open] > summary::after { content: "−"; }

details ol {
  margin: .5rem 0 .25rem;
  padding-left: 1.3rem;
}

details li { margin-block: .45rem; }

.muted { color: var(--muted); }

.status-row,
.button-row,
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
}

.page-admin .hero h1 {
  max-width: 18ch;
  font-size: clamp(2rem, 7vw, 3.5rem);
}

.page-admin .hero .status-row {
  margin-top: 1.2rem;
  color: rgb(255 255 255 / 64%);
  font-size: .78rem;
}

.page-admin .hero .status { margin-top: 0; }

.page-admin .card > h2 {
  margin: 0 0 .65rem;
  font-size: 1.3rem;
  letter-spacing: -.02em;
}

.page-admin .card > h2 + p {
  margin-top: 0;
  color: var(--muted);
}

.inline-form { margin-top: .8rem; }

.manage-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.manage-row {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
}

.manage-row:last-child { border-bottom: 0; }

.manage-row > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.link-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.link-actions button {
  min-height: 2.1rem;
  padding: .3rem .55rem;
  font-size: .78rem;
}

.manage-row.inactive { opacity: .62; }

.code {
  border-radius: .45rem;
  padding: .22rem .45rem;
  color: var(--green-dark);
  background: var(--green-pale);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.manage-row details form {
  display: grid;
  gap: .6rem;
  margin-top: .7rem;
  padding: .8rem;
  border-radius: .75rem;
  background: var(--surface-soft);
}

.add-panel {
  margin-bottom: 1rem;
  border: 1px solid #cbe1d4;
  border-radius: .85rem;
  padding: .2rem .85rem;
  background: var(--green-pale);
}

.question-admin {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.question-admin:first-child { border-top: 0; }

.question-admin > .question-heading {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
}

.question-heading h3,
.question-heading p { margin: 0 0 .25rem; }

.question-heading h3 {
  font-size: 1rem;
  line-height: 1.35;
}

.question-heading p {
  color: var(--muted);
  font-size: .76rem;
}

.button-row {
  justify-content: space-between;
  margin-block: .6rem;
}

.button-row form {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

[data-choice-settings] {
  display: grid;
  gap: .85rem;
}

.image-choice-fieldset {
  min-width: 0;
  margin: 0;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: var(--surface-soft);
}

.image-choice-fieldset legend {
  padding-inline: .3rem;
  color: var(--ink-soft);
  font-size: .82rem;
  font-weight: 750;
}

.image-choice-fieldset > p {
  margin: 0 0 .7rem;
  color: var(--muted);
  font-size: .75rem;
}

.image-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}

.image-choice {
  min-width: 0;
  position: relative;
  cursor: pointer;
}

.image-choice > input {
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  position: absolute;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  box-shadow: none;
  cursor: inherit;
}

.image-choice > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  overflow: hidden;
  padding: .5rem;
  border: 1.5px solid var(--line);
  border-radius: .75rem;
  background: white;
}

.image-choice:has(input:checked) > span {
  border-color: var(--green);
  background: #f5fbf7;
  box-shadow: 0 0 0 3px rgb(19 115 75 / 9%);
}

.image-choice:has(input:focus-visible) > span {
  outline: 3px solid #e7bd4e;
  outline-offset: 2px;
}

.image-choice img {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: .5rem;
}

.image-choice > span > span:not(.choice-indicator) {
  min-width: 0;
  display: grid;
  line-height: 1.2;
}

.image-choice strong { font-size: .78rem; }

.image-choice small { font-size: .65rem; }

.result-form {
  display: grid;
  gap: .65rem;
  margin-top: .75rem;
  padding: .85rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--surface-soft);
}

.confirm {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: .8rem 0;
}

.confirm input {
  width: 1.1rem;
  min-height: 1.1rem;
  margin-top: .25rem;
}

.result {
  display: inline-flex;
  margin: .8rem 0 0;
  border-radius: .5rem;
  padding: .3rem .5rem;
  color: var(--green-dark);
  background: var(--green-pale);
  font-size: .75rem;
  font-weight: 750;
}

.result.cancelled {
  color: var(--muted);
  background: #edf0ee;
}

@media (min-width: 35rem) {
  .wrap { width: min(100% - 2rem, 72rem); }

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

  .inline-form input {
    width: auto;
    flex: 1;
  }

  .form-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: .8rem .9rem .8rem 1rem;
  }

  .form-actions > span { display: grid; }

  .form-actions button { width: auto; }
}

@media (min-width: 44rem) {
  .page-shell { padding-block: 1.75rem 4.5rem; }

  .card { padding: 1.5rem; }

  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(12rem, .38fr); }

  .participant-hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(13rem, .55fr);
    align-items: end;
  }

  .progress-card { min-width: 13rem; }

  .question > .question-heading { margin-bottom: 1.2rem; }

  .choice-content { padding: .85rem; }

  .choice-label { font-size: .95rem; }

  .result-form {
    grid-template-columns: 1fr 2fr auto;
    align-items: end;
  }
}

@media (max-width: 34.99rem) {
  .header-row { min-height: 4.15rem; }

  .header-meta { display: none; }

  .hero {
    padding: 1.4rem;
    border-radius: 1.2rem;
  }

  .landing-hero h1 { font-size: clamp(2.35rem, 13vw, 3.4rem); }

  .match-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .match-card .pitch-line { display: none; }

  .match-card .match-card-label { text-align: right; }

  .question-index,
  .question-number {
    width: 1.9rem;
    height: 1.9rem;
  }

  .manage-row > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .link-actions {
    width: 100%;
    justify-content: space-between;
  }

  .inline-form > * { width: 100%; }

  .button-row { align-items: stretch; }

  .button-row > form:last-child { margin-left: auto; }
}

@media (max-width: 22rem) {
  .choice-grid.has-images,
  .image-choice-grid { grid-template-columns: 1fr; }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
