.camp-project {
  --proj-mist: #b5e4b0;
  --proj-accent: #ffd481;
  --proj-shade: rgba(12, 19, 26, .20);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: clamp(.75rem, 2vh, 1.5rem);
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  padding: clamp(1rem, 4vw, 4.25rem);
  color: #fff6df;
  background: #102822;
  font-family: system-ui, sans-serif;
}
.camp-project::before {
  content: "";
  z-index: -2;
  position: absolute;
  inset: 0;
  background: #1c372f url("/art/camp.webp") center 56% / cover no-repeat;
  transition: filter .75s ease;
}
.camp-project::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,12,16,.76), rgba(2,12,16,.56) 43%, rgba(2,12,16,.9)), var(--proj-shade);
  pointer-events: none;
}
.camp-project[data-phase="briefing"] { --proj-accent: #fbd69d; --proj-shade: rgba(54,40,21,.12); }
.camp-project[data-phase="night"] { --proj-accent: #bcdafe; --proj-mist: #c3d2ff; --proj-shade: rgba(10,15,58,.56); }
.camp-project[data-phase="night"]::before { filter: brightness(.67) hue-rotate(17deg); }
.camp-project[data-phase="dawn"] { --proj-accent: #ffbe93; --proj-shade: rgba(87,37,62,.15); }
.camp-project[data-phase="day"] { --proj-shade: rgba(24,53,24,.08); }
.camp-project[data-phase="vote"] { --proj-accent: #ffddb0; --proj-shade: rgba(66,32,19,.26); }
.proj-brand, .proj-footer { display: flex; justify-content: space-between; align-items: center; gap: .9rem; }
.proj-brand-name, .proj-code span, .proj-count, .proj-radio strong { color: var(--proj-mist); font-weight: 820; font-size: clamp(.75rem, 1.6vw, 1.3rem); letter-spacing: .17em; text-transform: uppercase; }
.proj-code { display: flex; flex-direction: column; align-items: flex-end; min-width: max-content; }
.proj-code strong { font-size: clamp(1.65rem, 4.5vw, 4.2rem); font-weight: 880; line-height: 1.1; letter-spacing: .16em; margin-right: -.16em; }
.proj-stage { display: grid; align-content: center; justify-items: center; flex: 1; text-align: center; gap: clamp(.6rem, 2vh, 1.25rem); }
.proj-heading { max-width: 76rem; }
.proj-emblem { display: grid; place-items: center; width: clamp(2.7rem, 7vw, 5.75rem); aspect-ratio: 1; margin: 0 auto clamp(.65rem, 2vh, 1.2rem); border: 1px solid var(--proj-accent); border-radius: 50%; background: #13241fe6; color: var(--proj-accent); font-size: clamp(1.6rem, 4vw, 3.3rem); line-height: 1; }
.proj-heading h1 { font: 850 clamp(2rem, 7vw, 7rem)/.99 Georgia, serif; letter-spacing: -.045em; text-wrap: balance; margin: 0; }
.proj-prompt { font-size: clamp(1rem, 2.4vw, 2rem); font-weight: 590; line-height: 1.4; margin: .75rem 0 0; text-wrap: balance; }
.proj-phrases, .proj-roster { display: flex; flex-wrap: wrap; list-style: none; gap: .45rem .65rem; padding: 0; margin: 0; }
.proj-phrases { justify-content: center; }
.proj-phrases li, .proj-roster li, .proj-outcome { background: #102521f2; border: 1px solid #bbd1ad70; border-radius: .7rem; padding: .45rem .65rem; font: 670 clamp(.85rem, 1.7vw, 1.5rem)/1.25 system-ui, sans-serif; margin: 0; max-width: min(100%, 28rem); overflow-wrap: anywhere; }
.proj-count { margin-left: auto; white-space: nowrap; }
.proj-radio { align-self: center; width: min(100%, 65rem); box-sizing: border-box; border-left: .28rem solid var(--proj-accent); background: #132720fa; border-radius: .5rem; padding: .65rem .85rem; }
.proj-radio p { margin: .2rem 0 0; font-size: clamp(1rem, 2.1vw, 1.8rem); line-height: 1.25; overflow-wrap: anywhere; }
.proj-connection { font-size: 1rem; margin: 0; color: var(--proj-accent); text-align: center; }
.proj-connection:empty, .camp-project [hidden] { display: none; }
@media (max-width: 37rem) {
  .proj-footer { flex-wrap: wrap; }
  .proj-count { margin-left: 0; }
}
@media (max-height: 580px) and (min-width: 640px) {
  .camp-project { padding-block: .9rem; gap: .6rem; }
  .proj-emblem { width: 3rem; font-size: 1.75rem; margin-bottom: .5rem; }
  .proj-heading h1 { font-size: clamp(2rem, 6vw, 4.75rem); }
}
@media (prefers-reduced-motion: reduce) { .camp-project::before { transition: none; } }

.proj-brand-info { display: flex; align-items: baseline; gap: .35rem 1.2rem; flex-wrap: wrap; }
.proj-language { color: #fff6df; font-size: clamp(.75rem,1.1vw,1rem); }
@media (max-width: 32rem) { .proj-brand-info { flex-direction: column; } }
.proj-dawn-art{position:absolute;inset:0;z-index:-3;background:#536069 url("/art/dawn.webp") center 56% / cover no-repeat;pointer-events:none;}
.camp-project::before{transition:opacity .85s ease,filter .75s ease;}
.camp-project:is([data-phase=dawn],[data-phase=day],[data-phase=vote],[data-phase=result],[data-phase=end])::before{opacity:0;}
@media(prefers-reduced-motion:reduce){.camp-project::before{transition:none;}}
.camp-project{--proj-mist:#b3e8dc;--proj-accent:#ffc2b8;background:#143137;color:#eefbf5;}
.camp-project::before{background-color:#1c4045;}
.proj-director{padding:.35rem .65rem;border:1px solid #9ed6c9;border-radius:.5rem;background:#1b373b;color:#e0fbec;font-weight:750;}
.proj-director{display:inline-flex;align-items:center;gap:.5rem;}.proj-director img{border-radius:.3rem;object-fit:cover;}

/* Distinguish the debate from the morning announcement. */
.camp-project[data-phase="day"]{--proj-accent:#ffcb86;--proj-shade:transparent}
.camp-project[data-phase="day"]::before{background-image:url("/art/discussion.webp");background-position:center 66%;opacity:1}
.camp-project[data-phase="day"]::after{background:linear-gradient(180deg,#060d18b0 0%,#08122494 37%,#09172338 73%,#07121899 100%)}
.proj-emblem svg{width:56%;height:56%}

/* Closed ballots: readable aggregate counts, including zero, with no named ballots. */
.camp-project[data-phase="result"] .proj-detail{width:min(100%,64rem)}
.camp-project[data-phase="result"] .proj-heading h1{font-size:clamp(1.9rem,5.6vw,4.8rem)}
.proj-vote-panel{background:#0e2728ed;border:1px solid #7cb7ab;border-radius:.85rem;padding:clamp(.65rem,1.8vw,1.15rem);text-align:start}
.proj-vote-heading{font-size:clamp(1.12rem,2.2vw,1.75rem);margin:0 0 .55rem;color:#fcd39f}
.proj-vote-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr));gap:.35rem .6rem;list-style:none;padding:0;margin:0}
.proj-vote-totals li{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:.55rem;padding:.35rem .55rem;background:#224448;border-radius:.42rem}
.proj-vote-name{overflow-wrap:anywhere}
.proj-vote-count{color:#ffe0ad;font-variant-numeric:tabular-nums;white-space:nowrap}
.proj-vote-note{margin:.55rem 0 0;font-size:.88rem;color:#d2e6df}

.proj-radio-recap{margin-top:.5rem}
.proj-radio-history{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));gap:.35rem .6rem;margin:0;padding:0}
.proj-radio-history li{display:flex;align-items:center;gap:.5rem;border-radius:.4rem;background:#224448;padding:.35rem .48rem;min-width:0}
.proj-radio-history img{border-radius:.28rem;object-fit:cover;flex:none}
.proj-radio-history li>div{display:grid;min-width:0;gap:.12rem}
.proj-radio-history li .proj-radio-name{letter-spacing:normal;text-transform:none;color:#f7fff7;font-size:1rem;overflow-wrap:anywhere}
.proj-radio-role,.proj-radio-initial{color:#ffe1b5;overflow-wrap:anywhere}
.proj-radio-initial{color:#c8e6dd}
.proj-brand{flex-wrap:wrap}
.proj-brand .camp-facilitator-level{margin-inline-start:auto}

.proj-narration:not([hidden]){display:grid;gap:.5rem;width:min(100%,60rem);margin-inline:auto;padding:.6rem .85rem;background:#111e24f7;border:1px solid #a3a47c;border-radius:.75rem}
.proj-narration-top{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}
.proj-narration-top h2{font-size:.94rem;color:#fce4b0}
.proj-narration-controls{display:flex;flex-wrap:wrap;gap:.32rem}
.proj-narration-controls button{border:1px solid #9bb1ab;border-radius:.42rem;background:#253f43;color:#fff6da;font:inherit;font-size:.84rem;font-weight:720;min-height:2.25rem;padding:.28rem .55rem;cursor:pointer}
.proj-narration-controls button:disabled{opacity:.55;cursor:default}
.proj-narration-controls button[aria-pressed=true]{color:#142929;background:#dfefce}
.proj-narration-controls button:focus-visible,.proj-transcript:focus-visible{outline:2px solid #ffdb89;outline-offset:3px}
.proj-transcript{position:relative;max-height:clamp(5rem,16vh,10rem);overflow:auto;overscroll-behavior:contain}
.proj-transcript ol{margin:0;padding:0;list-style:none}
.proj-transcript li{padding:.22rem .4rem;border-left:.22rem solid transparent;color:#dbeae3;font-size:clamp(.98rem,1.8vw,1.44rem);line-height:1.35}
.proj-transcript li[aria-current=true]{color:#171c1e;background:#ffdea0;border-color:#f5a74f;font-weight:770}
.proj-transcript:has(ol:empty),.proj-narration-status:empty{display:none}
.proj-narration-status{color:#e8e9d4;font-size:.88rem}

.proj-narration-controls button{display:inline-grid;place-items:center;min-width:2.5rem;min-height:2.5rem;padding:.42rem}
.proj-narration-controls button svg{width:1.25rem;height:1.25rem}
.proj-narration-controls .proj-muted{color:#142929;background:#dfefce}
.proj-narration-review:not([hidden]){display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;color:#fff0ca;background:#293141;padding:.4rem .6rem;border-radius:.4rem;font-size:.9rem}
.proj-narration-review button{padding:.28rem .55rem;min-height:2rem;background:#fce4b0;color:#201706;border:0;border-radius:.35rem;font:inherit;font-weight:700;cursor:pointer}
.proj-narration-review button:focus-visible,.proj-voice-seek:focus-visible{outline:2px solid #ffdb89;outline-offset:3px}
.proj-voice-seek{width:100%;accent-color:#fce4b0;margin:0;cursor:pointer}

.proj-glossary-word{display:inline;color:inherit;background:none;border:0;border-radius:.16rem;padding:0;font:inherit;text-align:start;text-decoration:underline dotted;text-underline-offset:.2em;cursor:help}
.proj-glossary-word:hover,.proj-glossary-word:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.proj-glossary-hint:not([hidden]){position:absolute;inset:auto 0 calc(100% + .35rem) auto;z-index:1;display:flex;align-items:center;gap:.65rem;width:max-content;max-width:min(100%,30rem);padding:.38rem .7rem;color:#172b27;background:#edf3d9;border-radius:.45rem;box-shadow:0 3px 12px #0008;font-size:clamp(.9rem,1.45vw,1.18rem);pointer-events:none}
.proj-glossary-emoji{font-size:1.6em;line-height:1.1}
.proj-narration{position:relative}
.proj-step-hint{margin:0;color:#d7ddcb;font-size:.78rem}
