@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Oswald:wght@500;600;700&display=swap");
:root {
  --ink: #163c33;
  --forest: #153f36;
  --paper: #f7f5ed;
  --gold: #efc86c;
  --muted: #61726b;
  --line: #dedfd3;
  --white: #fffef9;
  --red: #9d302b;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
label {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: "Oswald", Impact, sans-serif;
  line-height: 1.13;
  letter-spacing: -0.025em;
}
h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  margin-bottom: 16px;
}
h2 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
p {
  margin-bottom: 18px;
}
small {
  font-size: 0.8rem;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #b67518;
  outline-offset: 4px;
}
.site-header {
  background: var(--forest);
  color: var(--white);
  padding: 22px 24px;
}
.header-inner {
  max-width: 1140px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  gap: 12px;
  text-decoration: none;
  font-size: 18px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  align-items: center;
}
.brand strong {
  display: block;
  font-size: 27px;
  letter-spacing: 0.11em;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  margin-top: 7px;
  color: #d8dfc9;
}
.brand-mark {
  border: 1px solid #d9b565;
  border-radius: 50%;
  height: 56px;
  width: 56px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font: 40px Georgia;
  transform: rotate(-10deg);
}
.identity {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.identity strong {
  display: block;
  font-size: 16px;
}
.identity a {
  display: block;
  color: #ebd394;
  font-size: 12px;
  min-height: 26px;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: 38px;
  border-bottom: 1px solid var(--line);
  background: #fffdf4;
  padding: 0 15px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 0;
}
.main-nav a:hover {
  color: #8b5d0c;
}
.badge {
  font-size: 11px;
  background: var(--gold);
  border-radius: 20px;
  padding: 2px 6px;
}
.container {
  max-width: 1188px;
  margin: auto;
  padding: 38px 24px 70px;
}
.page-heading {
  margin-bottom: 32px;
}
.page-heading > p:last-child {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 800;
  margin-bottom: 13px;
}
.panel {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 3px 0 #1c412a04;
}
.home-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 1.08fr 1fr;
  gap: 24px;
  margin-bottom: 0;
}
.home-grid > .panel {
  min-width: 0;
}
.hero {
  background: var(--forest);
  color: var(--white);
  padding: 34px;
  border-radius: 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(
    ellipse at 110% 100%,
    #6a7c4666 0,
    transparent 60%
  );
}
.hero h2 {
  font-size: 2.9rem;
  max-width: 430px;
}
.hero > .eyebrow {
  color: #e1c982;
}
.hero p {
  font-size: 15px;
}
.hero .status {
  font-size: 19px;
  margin: 24px 0 15px;
}
.hero-note {
  color: #d2ddcc;
  margin-top: 20px;
}
.hero .button {
  margin-bottom: 10px;
}
.text-light {
  color: var(--white);
}
.submission-status {
  border-top: 1px solid #ffffff33;
  padding-top: 20px;
  margin-top: 22px;
  font-size: 13px;
}
.submission-status span {
  display: block;
  color: #c7d4c6;
  font-size: 11px;
  margin-top: 4px;
}
.button,
input[type="submit"] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--forest);
  color: white;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 20px;
  min-height: 48px;
  cursor: pointer;
  line-height: 1.4;
  white-space: normal;
}
.button:hover,
input[type="submit"]:hover {
  filter: brightness(1.08);
}
.button.gold {
  background: var(--gold);
  color: var(--forest);
}
.button.secondary {
  background: transparent;
  border: 1px solid #b7c2b7;
  color: var(--ink);
}
.button.light {
  background: #ffffff17;
  color: white;
  border-color: #ffffff55;
}
.button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 8px;
}
.section-heading h2 {
  font-size: 1.7rem;
}
.section-heading > a {
  font-size: 12px;
  white-space: nowrap;
}
.jeff {
  border: 1px solid #d9be76;
  border-left: 5px solid #c49730;
  background: #f5edce;
  padding: 16px 22px;
  border-radius: 9px;
  margin-bottom: 25px;
}
.jeff p {
  margin: 4px 0 0;
}
.jeff.pinned {
  box-shadow: 0 0 0 3px #f0dba333;
}
.standing {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.standing:last-child {
  border-bottom: 0;
}
.standing.is-you {
  background: #f1f4e9;
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 8px;
}
.standing-name {
  flex: 1;
  min-width: 0;
}
.standing-name a {
  text-decoration: none;
  font-weight: 700;
}
.standing-name small,
.result-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.rank {
  width: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.movement {
  font-size: 12px;
  min-width: 30px;
  text-align: center;
}
.score {
  font-family: "Oswald", Impact, sans-serif;
  font-size: 28px;
  line-height: 1.1;
  text-align: right;
}
.score small {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 5px;
}
.portrait {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  background: #e6e9dc;
}
.portrait.fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #cbdac7, #ece8ce);
  color: #476b59;
  font:
    clamp(28px, 4vw, 50px) "Oswald",
    Impact,
    sans-serif;
}
.portrait.tiny {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  font-size: 16px;
}
.portrait.small {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  font-size: 24px;
}
.panel > .portrait {
  max-width: 160px;
  margin-bottom: 20px;
}
.winner,
.person-line {
  display: flex;
  gap: 14px;
  align-items: center;
}
.winner {
  background: #f4edda;
  padding: 16px;
  border-radius: 10px;
  margin: 20px 0;
}
.winner p {
  margin: 2px 0 0;
  font-size: 13px;
}
.person-line h2 {
  margin: 0;
}
.answer-summary {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.answer-summary > small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}
.answer-summary > span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.answer-summary + .button {
  margin-top: 22px;
}
.result-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.result-row > div {
  flex: 1;
}
.result-row > strong {
  white-space: nowrap;
}
.positive {
  color: #286746;
}
.negative,
.danger {
  color: var(--red);
}
.episode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 25px;
}
.episode-list > .panel {
  margin: 0;
}
.welcome {
  text-align: center;
  margin: 10px auto 35px;
}
.welcome p {
  color: var(--muted);
}
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 32px;
}
.person-choice {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  width: 100%;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.person-choice:hover {
  border-color: var(--forest);
  background: #eef2e6;
}
.person-choice .portrait {
  height: 80px;
  width: 80px;
  border-radius: 50%;
  font-size: 30px;
}
.person-choice > span:last-child {
  font-size: 12px;
  color: var(--muted);
}
.narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.centered {
  text-align: center;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
.inline-form {
  display: flex;
  gap: 12px;
}
.inline-form input[type="text"] {
  min-width: 0;
  margin: 0;
}
label:not(.choice) {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
input[type="text"],
input[type="number"],
input[type="datetime-local"],
input[type="color"],
input[type="file"],
textarea,
select {
  display: block;
  max-width: 100%;
  width: 100%;
  min-height: 48px;
  border: 1px solid #a8b7a9;
  border-radius: 7px;
  padding: 11px;
  background: white;
  color: var(--ink);
  margin-bottom: 18px;
  font-size: 16px;
}
input[type="file"] {
  padding: 9px;
}
input[type="checkbox"],
input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: var(--forest);
  flex-shrink: 0;
}
textarea {
  resize: vertical;
}
.check-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}
.check-label input {
  margin: 0;
}
.flash {
  padding: 16px 22px;
  background: #e4eddc;
  border: 1px solid #a8bda0;
  border-radius: 9px;
  margin-bottom: 24px;
}
.flash.alert {
  background: #fbede6;
  border-color: #c9947a;
}
.pick-section {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  position: relative;
  max-width: 850px;
  margin: auto;
}
.pick-section > h2 {
  display: inline-block;
  margin: 0 0 15px 10px;
}
.step-number {
  display: inline-grid;
  place-items: center;
  height: 32px;
  width: 32px;
  border: 1px solid #a8b7a9;
  border-radius: 50%;
  font-size: 14px;
  vertical-align: top;
}
.pick-section > p {
  color: var(--muted);
  font-size: 15px;
}
fieldset {
  border: 0;
  margin: 25px 0 12px;
  padding: 0;
  min-width: 0;
}
legend {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 16px;
  line-height: 1.4;
}
legend small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
}
.contestant-grid,
.option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  padding: 16px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  min-height: 75px;
  text-align: center;
  font-size: 15px;
}
.choice input {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  margin: 0;
  background: white;
}
.choice strong {
  line-height: 1.25;
}
.choice:has(input:checked) {
  border-color: var(--forest);
  background: #eaf1df;
  box-shadow: 0 0 0 2px var(--forest);
}
.choice:has(input:focus-visible) {
  outline: 3px solid #b67518;
  outline-offset: 4px;
}
.choice .selected-state {
  display: none;
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}
.choice:has(input:checked) .selected-state {
  display: block;
}
.choice:has(input:checked) .choice-state {
  display: none;
}
.choice.unavailable {
  opacity: 0.5;
  cursor: not-allowed;
  background: #eeeee7;
}
.choice-state {
  font-size: 11px;
  color: var(--muted);
}
.contestant-choice {
  border-top: 4px solid var(--tribe-color, var(--line));
  padding: 9px 9px 14px;
}
.contestant-choice .portrait {
  border-radius: 6px;
}
.point-pill {
  background: #f4e8c5;
  color: #694b0e;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
}
#review li {
  padding: 8px 0;
}
#review ul {
  padding-left: 22px;
}
.sticky-progress {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fffef9f5;
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  z-index: 5;
  font-size: 15px;
  font-weight: 700;
}
body:has(.sticky-progress) {
  padding-bottom: 80px;
}
.admin-banner {
  padding: 12px 16px;
  background: #efe2cb;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 24px;
}
.admin-banner a {
  float: right;
}
.admin-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 28px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.option-editor {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  background: #f5f5ed;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  align-items: center;
}
.option-editor:has(.portrait) {
  grid-template-columns: 64px 2fr 1fr 1fr auto;
}
.option-editor input {
  margin-bottom: 0;
}
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.outcome-card {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 10px;
}
.outcome-card > .portrait {
  width: 100px;
  margin-bottom: 14px;
}
.text-button {
  background: none;
  border: 0;
  text-decoration: underline;
  padding: 10px 0;
  color: inherit;
  font-size: 13px;
  min-height: 44px;
}
.moderation-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.chat-message {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  align-items: flex-start;
}
.chat-message > div {
  flex: 1;
  min-width: 0;
}
.chat-meta {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  align-items: baseline;
}
.chat-meta time {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.chat-message p {
  font-size: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0;
  line-height: 1.6;
}
.system-message {
  background: #f2edd9;
  padding: 14px;
  border-radius: 9px;
}
.jeff-icon {
  background: var(--gold);
  border-radius: 50%;
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  font-family: Georgia;
}
.message-actions {
  display: none;
  font-size: 12px;
  gap: 15px;
  align-items: center;
}
.message-actions.owned {
  display: flex;
}
.message-actions .text-button {
  min-height: 32px;
}
.chat-thread {
  max-width: 800px;
  margin: auto;
}
.chat-thread .chat-message {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
#composer {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 28px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 25px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
footer > span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 5px;
}
footer a {
  display: inline-block;
  padding: 10px;
  margin: 0 10px;
}
@media (max-width: 780px) {
  .home-grid,
  .episode-list {
    grid-template-columns: 1fr;
  }
  .container {
    padding: 28px 18px 45px;
  }
  .site-header {
    padding: 18px;
  }
  .brand {
    font-size: 12px;
    gap: 8px;
  }
  .brand strong {
    font-size: 19px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 0.08em;
  }
  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }
  .identity .portrait {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 12px;
  }
  .identity {
    font-size: 10px;
  }
  .identity strong {
    font-size: 13px;
  }
  .identity a {
    font-size: 11px;
  }
  .main-nav {
    gap: 22px;
    justify-content: space-around;
  }
  .main-nav a {
    font-size: 12px;
    padding: 15px 0;
  }
  .hero {
    padding: 27px;
  }
  .hero h2 {
    font-size: 2.5rem;
  }
  .panel {
    padding: 22px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 1.5rem;
  }
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .contestant-grid,
  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .option-editor,
  .option-editor:has(.portrait) {
    grid-template-columns: 1fr 1fr;
  }
  .option-editor > div:first-of-type {
    grid-column: 1/-1;
  }
  .pick-section > h2 {
    font-size: 1.6rem;
    max-width: calc(100% - 48px);
  }
  .sticky-progress {
    padding-left: 15px;
    padding-right: 15px;
    gap: 14px;
    font-size: 13px;
  }
  .sticky-progress .button {
    font-size: 13px;
    padding: 12px 15px;
  }
  .admin-banner a {
    float: none;
    display: block;
    margin-top: 6px;
  }
  .outcome-card {
    padding: 12px;
  }
  .outcome-card label {
    font-size: 12px;
  }
  .standing {
    gap: 10px;
  }
  .standing > .button {
    font-size: 12px;
    padding: 10px;
  }
  .inline-form {
    flex-direction: column;
  }
  .chat-meta {
    flex-wrap: wrap;
    gap: 0 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.portrait.fallback {
  position: relative;
}
.portrait.fallback > small {
  position: absolute;
  bottom: 9px;
  font:
    10px system-ui,
    sans-serif;
  letter-spacing: 0.02em;
}
.question-result {
  margin: 18px 0 0;
}
.outcomes-heading {
  margin-top: 24px;
}
.option-picker {
  margin: 20px 0;
}
.option-picker summary {
  padding: 14px 0;
  cursor: pointer;
  font-weight: 700;
}
.site-title {
  font:
    600 17px system-ui,
    sans-serif;
  text-decoration: none;
  letter-spacing: 0;
}
.site-header {
  padding-top: 16px;
  padding-bottom: 16px;
}
.home-grid:first-child {
  margin-top: 0;
}
.reward-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  text-align: left;
}
.reward-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.pending-label {
  color: var(--muted);
  font-size: 13px;
}
.question-note {
  font-size: 14px;
  color: var(--muted);
}
.placement-editor {
  grid-column: 1/-1;
}
.option-editor input[type="hidden"] {
  display: none;
}

/* Island colours with flat, quiet surfaces and condensed display type. */
:root {
  --ink: #20382d;
  --forest: #234d38;
  --paper: #f1eee3;
  --gold: #dcf07b;
  --muted: #697065;
  --line: #d9dccd;
  --white: #faf9f3;
  --red: #af4933;
}
body {
  background: var(--paper);
}
.site-header {
  background: #183c2b;
  padding: 26px 24px;
}
.site-title {
  font:
    600 clamp(25px, 3vw, 36px) / 1.1 "Oswald",
    Impact,
    sans-serif;
  letter-spacing: -0.02em;
  color: #e8efc8;
  text-shadow: none;
  transform: none;
}
.header-inner {
  max-width: 1140px;
}
.identity {
  color: #f6f7e9;
}
.identity a {
  color: #d3dfb8;
}
.main-nav {
  background: #183c2b;
  color: #d8e1ce;
  border: 0;
  border-bottom: 1px solid #ffffff20;
  gap: 42px;
}
.main-nav a {
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 14px 0;
}
.main-nav a:hover {
  color: var(--gold);
}
.badge {
  color: var(--ink);
}
.container {
  padding-top: 36px;
}
h1,
h2 {
  font-family: "Oswald", Impact, sans-serif;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: -0.015em;
}
h1 {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
}
h2 {
  font-size: 1.8rem;
}
.eyebrow {
  color: #8c4c36;
  letter-spacing: 0.12em;
}
.panel,
.person-choice,
.outcome-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: none;
}
.hero {
  background: #234d38;
  color: #f5f5e6;
  border: 0;
  border-radius: 10px;
  box-shadow: none;
}
.hero h2 {
  font:
    500 clamp(3rem, 5vw, 4.5rem) / 1 "Oswald",
    Impact,
    sans-serif;
  color: #e4efb6;
  letter-spacing: -0.035em;
  margin-bottom: 26px;
}
.hero .eyebrow {
  color: #d1dcbb;
}
.hero-note,
.submission-status span {
  color: #cbd5bf;
}
.hero .status {
  font-size: 17px;
}
.button,
input[type="submit"] {
  background: var(--forest);
  border: 1px solid transparent;
  border-radius: 6px;
  box-shadow: none;
  font-weight: 600;
}
.button.gold {
  background: var(--gold);
  color: #253b25;
}
.button.secondary {
  background: transparent;
  border-color: #bbc5ae;
}
.button.light {
  background: #ffffff0d;
  border-color: #ffffff40;
}
.button:hover,
input[type="submit"]:hover {
  filter: brightness(1.05);
}
input[type="text"],
input[type="number"],
input[type="datetime-local"],
input[type="color"],
input[type="file"],
textarea,
select {
  background: #fffef9;
  border-color: #b9c2ad;
  border-radius: 6px;
  box-shadow: none;
}
.choice {
  background: var(--white);
  border-radius: 8px;
  box-shadow: none;
}
.contestant-choice {
  border-top: 4px solid var(--tribe-color, var(--line));
}
.choice:has(input:checked) {
  border-color: #45633c;
  background: #edf2d8;
  box-shadow: 0 0 0 1px #45633c;
}
.choice.unavailable {
  background: #e8e8df;
}
.portrait {
  border-radius: 6px;
}
.portrait.fallback {
  background: #dce3c8;
  color: #4f6446;
}
.portrait.tiny {
  border-radius: 50%;
}
.point-pill {
  background: #e6eccd;
  color: #3a4d2b;
  border-radius: 5px;
}
.step-number {
  background: #dce5c7;
  border: 0;
  color: #315038;
  font-weight: 700;
}
.standing.is-you {
  background: #edf1de;
  border-radius: 6px;
}
.rank {
  font-family: "Oswald", sans-serif;
  font-size: 20px;
}
.score {
  color: #355333;
}
.winner {
  background: #edf0d8;
  border-radius: 6px;
}
.jeff,
.system-message {
  background: #eee5d0;
  border-color: #c8af83;
  border-radius: 6px;
}
.admin-banner {
  background: #e6e8d7;
  border-radius: 6px;
}
.option-editor {
  background: #efefe4;
  border-radius: 6px;
}
.sticky-progress {
  background: #faf9f3f5;
  border-top: 1px solid var(--line);
}
.flash {
  background: #e9efd9;
  border-color: #b9c4a4;
  border-radius: 6px;
}
footer {
  border-top: 1px solid var(--line);
  background: transparent;
}
@media (max-width: 780px) {
  .site-header {
    padding: 24px 18px 18px;
  }
  .site-title {
    max-width: 210px;
    font-size: 27px;
  }
  .identity {
    flex-shrink: 0;
  }
  .main-nav {
    gap: 18px;
  }
  .main-nav a {
    font-size: 12px;
    padding: 13px 0;
  }
  .container {
    padding-top: 24px;
  }
  .hero {
    padding: 26px;
  }
  .hero h2 {
    font-size: 3.4rem;
  }
}

/* A few camp details, kept out of the way of picks and results. */
.hero::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 24px;
  width: 40px;
  height: 128px;
  background: url("/assets/tiki-torch-5151cb34.svg") center / contain no-repeat;
  transform: rotate(8deg);
  pointer-events: none;
}
.hero h2 {
  padding-right: 66px;
}
.hero > .eyebrow {
  padding-right: 66px;
}
.hero {
  background:
    radial-gradient(
      circle at calc(100% - 45px) 65px,
      #efab431a,
      transparent 145px
    ),
    #234d38;
}
.contestant-choice {
  border-top-width: 5px;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.contestant-choice:has(input:checked) .selected-state {
  background: #dce986;
  color: #304529;
  padding: 3px 10px;
  border-radius: 3px;
  transform: rotate(-3deg);
  letter-spacing: 0.04em;
}
.standing:first-child .rank {
  color: #a55b2d;
  font-weight: 700;
}
.jeff {
  border-left: 4px solid #c77846;
}
.main-nav a {
  position: relative;
}
.main-nav a:hover::after {
  content: "";
  height: 3px;
  background: #dcf07b;
  border-radius: 2px;
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  transform: rotate(-3deg);
}
@media (max-width: 780px) {
  .hero::after {
    width: 32px;
    height: 102px;
    right: 20px;
    top: 20px;
  }
  .hero h2 {
    padding-right: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .contestant-choice {
    transition: none;
  }
}

/* Season 51: ocean blues, challenge flags, and a torchlit game board. */
:root {
  --ink: #173643;
  --forest: #096d70;
  --paper: #f5eacb;
  --gold: #ffcb45;
  --muted: #626d68;
  --line: #d5c49a;
  --white: #fff8e6;
}
body {
  background: #0f5661;
}
.site-header {
  background: #103c49;
  background-image: repeating-radial-gradient(
    ellipse at 80% 140%,
    transparent 0 30px,
    #25a1a51a 31px 33px,
    transparent 34px 65px
  );
  padding: 22px 24px;
  border-bottom: 3px solid #0a2934;
}
.header-inner {
  max-width: 1140px;
}
.season-brand {
  display: flex;
  align-items: center;
  gap: 24px;
  text-decoration: none;
}
.season-logo {
  width: 220px;
  height: auto;
  display: block;
  mix-blend-mode: screen;
  transform: rotate(-4deg);
}
.season-brand > span {
  max-width: 140px;
  color: #ffd15a;
  font:
    600 30px/1.1 "Oswald",
    Impact,
    sans-serif;
  letter-spacing: 0.025em;
}
.identity {
  background: #0b2b37;
  padding: 12px 16px;
  border-radius: 10px;
  transform: rotate(2deg);
  border: 1px solid #3d7174;
}
.identity .portrait {
  background: #ffc94d;
  color: #273b42;
}
.identity a {
  color: #ffe19b;
}
.main-nav {
  background: #0b2b37;
  color: #ffe8b3;
  border-bottom: 4px solid #efae39;
  gap: 48px;
}
.main-nav a {
  font:
    500 18px/1.4 "Oswald",
    sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 15px 0;
}
.main-nav a:hover {
  color: #ffc94d;
}
.main-nav a:hover::after {
  background: #ff9753;
}
.container {
  background: #f5eacb;
  min-height: 65vh;
  border-left: 1px solid #e5ca8e;
  border-right: 1px solid #e5ca8e;
  padding-top: 32px;
}
h1 {
  color: #0b656a;
}
h1,
h2 {
  font-weight: 600;
}
.panel {
  background: #fff8e6;
  border: 2px solid #173643;
  border-radius: 12px;
  box-shadow: 5px 5px 0 #173643;
}
.hero {
  background:
    radial-gradient(circle at 88% 20%, #ffd56b 0 80px, transparent 81px),
    #f4a64e;
  color: #183846;
  border: 3px solid #173643;
  border-radius: 13px;
  box-shadow: 6px 6px 0 #173643;
  padding: 34px;
}
.hero::after {
  width: 58px;
  height: 185px;
  right: 20px;
  top: 12px;
  transform: rotate(12deg);
  filter: drop-shadow(3px 3px 0 #82472933);
}
.hero h2 {
  color: #103c49;
  font-size: clamp(3.7rem, 6vw, 5.3rem);
  text-shadow: 2px 3px #ffe39c;
  padding-right: 54px;
  transform: rotate(-2deg);
  transform-origin: left;
}
.hero .eyebrow {
  display: inline-block;
  color: #fff4c9;
  background: #0f6470;
  padding: 5px 14px;
  transform: rotate(-3deg);
  margin-bottom: 20px;
}
.hero > p:not(.eyebrow) {
  position: relative;
  z-index: 1;
}
.hero-note,
.submission-status span {
  color: #384936;
}
.submission-status {
  border-color: #89542255;
}
.hero .text-light {
  color: #183846;
}
.hero .button.gold {
  background: #113e4a;
  color: #fff3bc;
  border-color: #092d37;
  box-shadow: 3px 3px 0 #a5642b;
}
.hero .button.light {
  color: #173643;
  border-color: #173643;
}
.button,
input[type="submit"] {
  background: #08777a;
  border: 2px solid #173643;
  box-shadow: 2px 3px 0 #173643;
  border-radius: 6px;
}
.button.secondary {
  border: 1px solid #b6a879;
  box-shadow: none;
  background: #f3e8c8;
}
.button:active,
input[type="submit"]:active {
  transform: translateY(2px);
  box-shadow: none;
}
.standing.is-you {
  background: #e5ecbf;
  border-left: 3px solid #849b42;
}
.standing:first-child .rank {
  background: #ffcf51;
  color: #173643;
  border-radius: 5px;
  transform: rotate(-8deg);
  min-width: 24px;
}
.score {
  color: #0b777b;
}
.eyebrow {
  color: #985032;
}
.person-choice {
  border: 2px solid #173643;
  box-shadow: 3px 4px 0 #173643;
}
.person-choice:nth-child(3n + 1) {
  border-top: 6px solid #dd9253;
}
.person-choice:nth-child(3n + 2) {
  border-top: 6px solid #9672b4;
}
.person-choice:nth-child(3n) {
  border-top: 6px solid #4d9d9b;
}
.choice {
  border-color: #cbbb92;
}
.contestant-choice {
  border-top-color: var(--tribe-color, #07888c);
}
.choice:has(input:checked) {
  background: #e6efbf;
  border-color: #173643;
  box-shadow: 3px 3px 0 #173643;
}
.contestant-choice:has(input:checked) .selected-state {
  background: #ffcf51;
  color: #173643;
}
.point-pill {
  background: #fbd971;
  color: #503b15;
}
.step-number {
  background: #137d7f;
  color: #fff8d6;
  transform: rotate(-6deg);
  border-radius: 7px;
}
.jeff {
  background: #ffedaa;
  border-color: #d09a35;
}
.admin-banner {
  background: #dfe8d1;
  border-left: 4px solid #0b777b;
}
footer {
  max-width: 1188px;
  margin: auto;
  background: #0b2b37;
  color: #edd6a0;
  border-top: 3px solid #efae39;
}
@media (max-width: 780px) {
  .site-header {
    padding: 17px 18px;
  }
  .season-brand {
    display: block;
  }
  .season-logo {
    width: 155px;
  }
  .season-brand > span {
    display: block;
    max-width: none;
    font-size: 14px;
    letter-spacing: 0.1em;
    margin-top: 10px;
    text-align: center;
  }
  .identity {
    padding: 10px;
    gap: 7px;
  }
  .main-nav {
    gap: 16px;
  }
  .main-nav a {
    font-size: 16px;
  }
  .container {
    padding: 25px 18px 45px;
    border: 0;
  }
  .hero {
    padding: 25px;
  }
  .hero h2 {
    font-size: 3.6rem;
    padding-right: 42px;
  }
  .hero::after {
    width: 39px;
    height: 124px;
    right: 17px;
    top: 17px;
  }
  .hero {
    background:
      radial-gradient(circle at 95% 12%, #ffd56b 0 75px, transparent 76px),
      #f4a64e;
  }
  .panel {
    box-shadow: 4px 4px 0 #173643;
  }
}

/* Start the scenery below the header so its flames are never covered. */
.island-stage {
  background: #0f5661 url("/assets/island-night-2ee91179.svg") center top / 1700px auto no-repeat;
  min-height: 70vh;
}

/* Reserve the feedback row so selecting never moves the next row of cards. */
.choice-feedback {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 28px;
  width: 100%;
}
.choice-feedback > .choice-state,
.choice-feedback > .selected-state,
.choice:has(input:checked) .choice-feedback > .choice-state,
.choice:has(input:checked) .choice-feedback > .selected-state {
  display: block;
  grid-area: 1 / 1;
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  padding: 3px 10px;
}
.choice-feedback > .selected-state {
  visibility: hidden;
}
.choice:has(input:checked) .choice-feedback > .selected-state {
  visibility: visible;
}
.choice:has(input:checked) .choice-feedback > .choice-state {
  visibility: hidden;
}
#review,
#composer {
  scroll-margin-block: 20px 110px;
}
.container:has(.sticky-progress) {
  padding-bottom: 120px;
}

/* Laptop chrome is a single compact row, leaving room for the actual page. */
@media (min-width: 781px) and (max-width: 1500px),
  (min-width: 781px) and (max-height: 850px) {
  .site-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 24px;
    background: #103c49;
    border-bottom: 3px solid #efae39;
  }
  .site-header {
    padding: 6px 0;
    border: 0;
    background: none;
    flex: 1;
    min-width: 0;
  }
  .header-inner {
    max-width: none;
    gap: 18px;
  }
  .season-brand {
    gap: 12px;
  }
  .season-logo {
    width: 70px;
    transform: none;
  }
  .season-brand > span {
    font-size: 17px;
    max-width: none;
    white-space: nowrap;
  }
  .identity {
    padding: 3px 9px;
    transform: none;
    background: none;
    border: 0;
    font-size: 10px;
    gap: 7px;
  }
  .identity strong {
    display: inline;
    font-size: 12px;
  }
  .identity a {
    font-size: 11px;
    min-height: 24px;
  }
  .identity .portrait {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    font-size: 13px;
  }
  .main-nav {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    gap: 24px;
    flex-shrink: 0;
  }
  .main-nav a {
    padding: 13px 0;
    font-size: 15px;
    min-height: 44px;
  }
}
@media (max-width: 780px) {
  .site-header {
    padding: 12px 18px;
  }
  .season-brand {
    display: flex;
    gap: 10px;
  }
  .season-logo {
    width: 84px;
    transform: none;
  }
  .season-brand > span {
    max-width: 75px;
    font-size: 13px;
    margin: 0;
    text-align: left;
  }
  .identity {
    padding: 5px;
    transform: none;
  }
}

.home-column {
  display: grid;
  gap: 24px;
  align-content: start;
  min-width: 0;
}
.home-column > .hero, .home-column > .panel { margin-bottom: 0; }
.standings-preview-note { margin: 16px 0 0; }
@media (max-width: 780px) {
  .home-column { display: contents; }
  .home-dashboard > .home-column > .hero { order: 0; }
  .home-standings { order: 1; }
  .home-pending { order: 2; }
  .home-results { order: 3; }
  .home-chat { order: 4; }
}

.welcome h1 { text-transform: none; }
.join-person {
  margin-bottom: 24px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}
.join-person > summary {
  padding: 13px 20px;
  background: #ffcf51;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  min-height: 48px;
}
.join-person > summary:focus-visible { outline: 3px solid #096d70; outline-offset: -4px; }
.join-person-form { padding: 20px; }
.join-person-form input[type="submit"] { flex-shrink: 0; }

/* Written answers read like options, not vertically centered photo cards. */
.option-grid:not(:has(.contestant-choice)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choice.text-choice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: start;
  justify-items: start;
  gap: 16px 12px;
  padding: 20px;
  text-align: left;
}
.text-choice > input {
  position: static;
  grid-column: 1;
  grid-row: 1;
  margin: 1px 0 0;
}
.text-choice > strong {
  grid-column: 2;
  grid-row: 1;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.text-choice > .point-pill { grid-column: 2; grid-row: 2; align-self: center; }
.text-choice > .choice-feedback {
  grid-column: 2;
  grid-row: 2;
  width: auto;
  justify-self: end;
  padding-left: 70px;
}
.text-choice > .reward-list { grid-column: 2; grid-row: 3; }
@media (max-width: 600px) {
  .option-grid:not(:has(.contestant-choice)) { grid-template-columns: 1fr; }
}

.reveal-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #dfeaaa;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 28px;
}
.reveal-banner h2 { margin-bottom: 8px; }
.reveal-banner p { margin-bottom: 0; }
.reveal-banner .eyebrow { margin-bottom: 8px; }
.reveal-banner .button { flex-shrink: 0; }
.comparison-section { margin: 28px 0; scroll-margin-top: 20px; }
.comparison-scroll { overflow: auto; max-height: 70vh; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); overscroll-behavior-x: contain; }
.comparison-scroll:focus-visible { outline: 3px solid #b67518; outline-offset: 4px; }
.picks-matrix { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.picks-matrix th, .picks-matrix td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px; vertical-align: top; min-width: 185px; max-width: 240px; overflow-wrap: anywhere; }
.picks-matrix thead th { position: sticky; top: 0; z-index: 2; background: #103c49; color: #fff0c5; text-align: left; }
.picks-matrix th:first-child { position: sticky; left: 0; z-index: 1; min-width: 140px; max-width: 170px; background: #f1e5c2; }
.picks-matrix thead th:first-child { z-index: 3; background: #103c49; }
.picks-matrix .matrix-you > th { background: #e0eaaa; }
.picks-matrix small { display: block; font-size: 12px; font-weight: 400; margin-top: 5px; }
.matrix-player { display: flex; gap: 9px; align-items: center; text-align: left; }
.matrix-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 12px; }
.matrix-pick:last-child { margin-bottom: 0; }
.matrix-pick small { margin-top: 0; }
.matrix-points { font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 780px) {
  .reveal-banner { flex-direction: column; align-items: stretch; padding: 20px; }
  .picks-matrix th, .picks-matrix td { min-width: 160px; padding: 12px; }
  .picks-matrix th:first-child { min-width: 115px; max-width: 115px; }
  .matrix-player { flex-direction: column; align-items: flex-start; }
}
.preview-controls { background: #fff1aa; padding: 16px; border: 2px dashed #8c6332; margin-bottom: 24px; border-radius: 8px; }
.preview-controls > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.preview-controls .button { font-size: 12px; padding: 8px 10px; }

/* Blood Moon is an episode-scoped event; historical scoring never uses this class. */
body.blood-moon {
  --ink: #4b111b;
  --forest: #651522;
  --paper: #f5e7c6;
  --gold: #ffb84d;
  --muted: #78534b;
  --line: #cfac8b;
  --white: #fff4d9;
  --red: #b62220;
  background: #390b15;
}
.blood-moon .site-chrome,
.blood-moon .site-header,
.blood-moon .main-nav,
.blood-moon footer {
  background: #480e18;
  color: #fff0cc;
  border-color: #c9392c;
}
.blood-moon .season-brand > span { color: #fff0cc; }
.blood-moon .identity { background: #390b15; border-color: #8d3541; }
.blood-moon .island-stage {
  background: #390b15;
  position: relative;
}
.blood-moon-banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 32px 20px;
  overflow: hidden;
  background: #641222 url("/assets/blood-moon-island-1e4dd82b.png") center 39% / cover no-repeat;
  border-bottom: 5px solid #b52e25;
}
.blood-moon-banner span {
  color: #fff0cc;
  font: italic 700 clamp(3.6rem, 8vw, 6.5rem)/1 "Oswald", Impact, sans-serif;
  text-transform: uppercase;
  letter-spacing: -.035em;
  text-shadow: 3px 4px 0 #601018, 0 0 24px #390b15;
  transform: rotate(-2deg);
}
.blood-moon .container {
  background: var(--paper);
  border-color: #b7553e;
}
.blood-moon h1, .blood-moon .score { color: #941f23; }
.blood-moon .eyebrow { color: #9a3222; }
.blood-moon .panel, .blood-moon .person-choice {
  background: var(--white);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.blood-moon .hero {
  background: #f5ca91;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.blood-moon .hero h2, .blood-moon .hero .text-light,
.blood-moon .hero-note, .blood-moon .submission-status span { color: var(--ink); }
.blood-moon .hero .eyebrow { background: #801923; color: var(--white); }
.blood-moon .button, .blood-moon input[type="submit"],
.blood-moon .hero .button.gold {
  background: #ad241f;
  color: #fff6dd;
  border-color: #59101a;
  box-shadow: 2px 3px 0 #59101a;
}
.blood-moon .button.secondary, .blood-moon .button.light {
  background: #fff0ce;
  color: var(--ink);
  border-color: #b38165;
  box-shadow: none;
}
.blood-moon .choice { background: var(--white); border-color: #bd9675; }
.blood-moon .choice:has(input:checked) {
  background: #ffe3ba;
  border-color: #c52c23;
  box-shadow: 0 0 0 2px #c52c23;
}
.blood-moon .choice input { accent-color: #ad241f; }
.blood-moon .contestant-choice:has(input:checked) .selected-state,
.blood-moon .step-number { background: #ad241f; color: #fff4d9; }
.blood-moon .choice.unavailable { background: #e5d8c5; }
.blood-moon .point-pill, .blood-moon .join-person > summary,
.blood-moon .standing:first-child .rank { background: #ffd18a; color: var(--ink); }
.blood-moon .standing.is-you, .blood-moon .winner,
.blood-moon .flash, .blood-moon .admin-banner {
  background: #f5d6ae;
  border-color: #ae422f;
}
.blood-moon .jeff, .blood-moon .system-message,
.blood-moon .option-editor { background: #f5dfba; border-color: #ad5135; }
.blood-moon .sticky-progress { background: #fff2dbf5; border-color: #a32d26; }
.blood-moon .portrait.fallback { background: #eec8a8; color: var(--ink); }
.blood-moon .reveal-banner { background: #651522; color: #fff0cc; border-color: #c94d32; }
.blood-moon .picks-matrix thead th, .blood-moon .picks-matrix thead th:first-child { background: #651522; }
.blood-moon .picks-matrix tbody th { background: #fff0d4; }
.blood-moon .picks-matrix .matrix-you > th { background: #f5d6ae; }
@media (min-width: 781px) {
  .blood-moon .island-stage::before, .blood-moon .island-stage::after {
    content: "";
    position: absolute;
    top: 225px;
    width: clamp(32px, 5vw, 75px);
    height: 280px;
    background: url("/assets/tiki-torch-5151cb34.svg") top center / contain no-repeat;
    pointer-events: none;
  }
  .blood-moon .island-stage::before { left: max(8px, calc(50% - 690px)); }
  .blood-moon .island-stage::after { right: max(8px, calc(50% - 690px)); }
  .blood-moon .container { position: relative; z-index: 1; }
}
@media (max-width: 780px) {
  .blood-moon-banner { min-height: 128px; padding: 24px 16px; background-size: auto 360px; }
  .blood-moon-banner span { font-size: clamp(2.8rem, 12vw, 4.6rem); }
  .blood-moon .sticky-progress { gap: 8px; }
}
