.camp-screen{--app-card:#172326;--app-border:#657268;--app-ink:#fff4d5;width:min(72rem,100%);margin:auto;padding:clamp(.75rem,2.75vw,2rem);color:var(--app-ink)}
.camp-screen h1,.camp-screen h2,.camp-screen p{margin-block:.25rem .65rem}.camp-screen h1{font-size:clamp(2rem,5vw,4rem);line-height:.98}.camp-screen h2{font-size:clamp(1.15rem,2.65vw,1.7rem)}.camp-back{font-size:.85rem;color:#cfdbcc;display:inline-block;margin-bottom:.5rem}.camp-screen .camp-kicker{color:#f0c77d;font-weight:800;letter-spacing:.14em;text-transform:uppercase;font-size:.74rem}
.camp-privacy{color:#ffde9e;font-weight:800}.camp-lead,.camp-screen small{color:#ccd8c8}.camp-card{padding:clamp(.85rem,1.85vw,1.4rem);border:1px solid var(--app-border);border-radius:.88rem;background:linear-gradient(150deg,#263431,var(--app-card) 60%);min-width:0}
.camp-setup{max-width:39rem;margin-top:1rem}.camp-screen form{display:grid;gap:.65rem}.camp-screen label{display:grid;gap:.3rem;font-weight:700}.camp-screen input:not([type=checkbox]),.camp-screen select{font:inherit;color:#fef2db;background:#111a20;border:1px solid #879682;border-radius:.4rem;min-height:2.65rem;padding:.38rem .55rem;width:100%;min-width:0}
.camp-button{display:inline-flex;justify-content:center;align-items:center;width:fit-content;min-height:2.6rem;font:inherit;font-weight:750;line-height:1.15;text-align:center;text-decoration:none;padding:.46rem .78rem;color:#fff1cc;background:#30403b;border:1px solid #98a78b;border-radius:.46rem;cursor:pointer}.camp-button:disabled{opacity:.55;cursor:not-allowed}.camp-screen .camp-primary{background:#f1ca78;color:#1d2119;border-color:#fff0ad}.camp-screen :is(button,a,input,select,summary):focus-visible{outline:2px solid #f5d782;outline-offset:3px}
.camp-columns{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:.75rem;align-items:start}.camp-fields,.camp-role-mix{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.camp-role-mix{margin-top:.65rem}.camp-actions{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem}.camp-share{display:flex;align-items:center;flex-wrap:wrap;gap:.3rem .8rem;margin-bottom:.75rem}.camp-share p{flex-basis:100%;margin-bottom:0}.camp-share .camp-code{display:block;font:850 1.55rem ui-monospace,monospace;letter-spacing:.12em}
.camp-roster,.camp-tally{list-style:none;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8rem),1fr));gap:.4rem}.camp-roster li,.camp-tally li{padding:.44rem .5rem;background:#121f22;border-radius:.42rem;overflow-wrap:anywhere}.camp-roster li small{display:block}.camp-captain{color:#f6d58b;font-size:.7rem}
.camp-script,.camp-announcement{font-size:clamp(.98rem,1.75vw,1.18rem);padding:.65rem .7rem;border-inline-start:.2rem solid #ebbf6b;background:#192329;border-radius:.4rem}.camp-cue-actors,.camp-side{color:#ffdb8b;font-weight:800}.camp-screen details summary{cursor:pointer;color:#f5d995;font-weight:800}
.camp-role-card{border-color:#d7ac60;background:radial-gradient(ellipse at 60% 20%,#38483b,#182621 58%);text-align:center}.camp-card-mark{font-size:clamp(3rem,12vw,7.6rem);line-height:.9;color:#ffe0a0}.camp-role-art{width:min(13rem,70%);height:auto;display:block;margin:.25rem auto .7rem;border-radius:.55rem;aspect-ratio:1;object-fit:cover}.camp-role-card .camp-button{margin-top:.55rem}.camp-starters{margin-top:.6rem}.camp-starters ul{padding-left:1.2rem;margin:.4rem 0;display:grid;gap:.32rem}.camp-alert{color:#ffe8ac}.camp-alert:empty{display:none}
.camp-screen [hidden]{display:none!important}
@media(max-width:700px){.camp-columns,.camp-fields{grid-template-columns:minmax(0,1fr)}.camp-screen h1{font-size:clamp(1.85rem,8vw,2.65rem)}.camp-setup{margin-top:.65rem}}
@media(prefers-reduced-motion:reduce){.camp-screen *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.camp-screen{--app-card:#19343c;--app-border:#729390;--app-ink:#eefbf5;}
.camp-screen .camp-kicker,.camp-cue-actors,.camp-side,.camp-screen details summary{color:#a6e9d6;}
.camp-card{background:linear-gradient(150deg,#315052,#19343c 62%);}
.camp-role-card{border-color:#87cdbb;background:radial-gradient(ellipse at 65% 10%,#365d58,#18383f 65%);}
.camp-card-mark{color:#c7f1e1;}
.camp-screen .camp-primary{background:#a6ead8;color:#102b30;border-color:#d0f9ee;}
.camp-privacy,.camp-alert {color:#ffd2c9;}
.camp-script,.camp-announcement,.camp-pair-secret {border-inline-start:.2rem solid #fa9187;background:#22383e;padding:.55rem .7rem;border-radius:.4rem;}
.camp-pair-secret {color:#ffdbd3;}

/* Illustrated secret-role face. The name is real localized text, not baked into the art. */
.camp-role-card .camp-role-portrait{--role-foil:#d5b184;position:relative;display:grid;place-items:end center;isolation:isolate;width:min(14rem,100%);aspect-ratio:2/3;margin:0 auto .9rem;overflow:hidden;background:#10232c;border:1px solid var(--role-foil);border-radius:.85rem;box-shadow:0 6px 18px #05121988}
.camp-role-card .camp-role-portrait::after{content:"";position:absolute;inset:.32rem;z-index:2;pointer-events:none;border:1px solid color-mix(in srgb,var(--role-foil),transparent 45%);border-radius:.61rem}
.camp-role-card .camp-role-portrait .camp-role-art{position:absolute;inset:0;z-index:-2;width:100%;height:100%;margin:0;border-radius:0;aspect-ratio:auto;object-fit:cover;object-position:center}
.camp-role-card .camp-role-portrait::before{content:"";position:absolute;inset:45% 0 0;z-index:-1;background:linear-gradient(0deg,#080f15 9%,#0c1822d9 41%,transparent)}
.camp-role-card .camp-role-portrait h2{z-index:1;color:#fff4df;max-inline-size:100%;padding:.65rem .85rem 1rem;font-size:clamp(1.05rem,4vw,1.38rem);line-height:1.15;font-family:Georgia,serif;text-wrap:balance;overflow-wrap:anywhere;text-shadow:0 2px 4px #07121d;letter-spacing:.01em}
.camp-role-card .camp-role-portrait[data-card-role=prankster]{--role-foil:#77d4c7}
.camp-role-card .camp-role-portrait[data-card-role=medic]{--role-foil:#e3a899}
.camp-role-card .camp-role-portrait[data-card-role=matchmaker]{--role-foil:#cbb0e6}
.camp-role-card .camp-role-portrait[data-card-role=scout]{--role-foil:#a2c9e9}
.camp-role-details{max-width:45ch;margin-inline:auto}

.camp-radio-card{border-color:#f4ce86;background:radial-gradient(ellipse at 65% 0,#51453a,#19353a 62%);}
.camp-role-card .camp-role-portrait[data-card-role=radio]{--role-foil:#f4ce86}
.camp-radio-card>p{max-width:38ch;margin-inline:auto}

.camp-player-console,.camp-student-roster{margin-top:.7rem}
.camp-player-console{border-color:#cca76f}
.camp-player-console h3{margin-top:.75rem}
.camp-own-action{display:grid;gap:.5rem;padding-block:.65rem;border-top:1px solid #6b877b}
.camp-own-action label{display:grid;gap:.25rem}
.camp-own-action .camp-button{justify-self:start}
.camp-student-roster .camp-roster li{display:flex;gap:.45rem;min-width:0;align-items:center}
.camp-student-roster .camp-roster li>div{min-width:0;overflow-wrap:anywhere}
.camp-student-roster img{display:block;inline-size:2.1rem;block-size:3rem;border:1px solid #a8845c;border-radius:.35rem;object-fit:cover;flex:none}
.camp-student-roster details{margin:.25rem 0 0;padding:0;font-size:.84rem}
.camp-known-role{display:flex;align-items:center;gap:.4rem;padding-top:.4rem;color:#fff0c6}
.camp-vials{display:flex;flex-wrap:wrap;gap:.55rem;list-style:none;padding:0}
.camp-vials li{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.45rem;align-items:center;padding:.44rem .58rem;border:1px solid #90b3a9;border-radius:.6rem;background:#1b363a;max-inline-size:100%}
.camp-vials li small{grid-column:2;color:#deeee7}
.camp-vials li small:empty{display:none}
.camp-vial{inline-size:1.65rem;block-size:2.3rem;grid-row:span 2;color:#8ee2b3}
.camp-vial-radio{color:#dba8f1}

.camp-roster-flip{display:grid;place-items:center;flex:none;width:2.75rem;height:3.15rem;padding:.2rem;color:#ffe8b3;border:1px solid #cfa76d;border-radius:.44rem;background:linear-gradient(145deg,#346361,#182f3e);cursor:pointer}
.camp-roster-flip svg{width:1.42rem;height:1.9rem;fill:none;stroke:currentColor;stroke-width:1.5}
.camp-roster-flip:hover{background:#4d6861}
.camp-roster-flip:focus-visible{outline:2px solid #ffe7ac;outline-offset:2px}

/* Daylight arrival frames the welcome form without making it harder to find. */
.camp-join-layout{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(0,1fr);grid-template-areas:"scene form";align-items:stretch;gap:clamp(.8rem,2.8vw,1.7rem);margin-top:clamp(.9rem,2.8vw,1.5rem)}
.camp-join-form{grid-area:form;margin:0;display:grid;align-items:center;max-width:none;padding:clamp(1.1rem,3.1vw,2.25rem);border-color:#80a19a}
.camp-join-form form{gap:.8rem}
.camp-join-form #camp-alias-guide{font-size:.9rem;line-height:1.42;color:#cfe1da;margin:0}
.camp-join-scene{grid-area:scene;min-width:0;position:relative;border:1px solid #78988e;border-radius:.9rem;overflow:hidden;background:#193b44;aspect-ratio:3/2}
.camp-join-scene img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 48%}
.camp-join-form button{margin-top:.15rem}
@media(max-width:730px){
 .camp-join-layout{grid-template-columns:1fr;grid-template-areas:"form" "scene";max-width:36rem;gap:.8rem}
 .camp-join-scene{aspect-ratio:16/9}
}


/* A single warm action marks teacher-controlled progression. */
.camp-screen .camp-advance{background:#ffd085;color:#2b1b0a;border-color:#ffdfa7;min-height:3rem;padding:.66rem 1.1rem;font-weight:850;box-shadow:0 3px 0 #9d6933;margin-block:.2rem .45rem}
.camp-screen .camp-advance:hover:not(:disabled){background:#ffdfa7}
.camp-screen .camp-advance:active:not(:disabled){box-shadow:none;transform:translateY(2px)}
.camp-screen .camp-advance:disabled{box-shadow:none}
.camp-screen .camp-advance:focus-visible{outline:2px solid #fff2cb;outline-offset:4px}

.camp-card-mark svg{display:block;width:clamp(3.3rem,10vw,6rem);height:auto;margin:.2rem auto .85rem}

.camp-role-reference{margin-top:.8rem}
.camp-role-reference>summary{display:flex;align-items:center;gap:.55rem;font-weight:800;color:#fff0c4;cursor:pointer}
.camp-role-reference>summary::after{content:'+';margin-inline-start:auto;font-size:1.2rem}
.camp-role-reference[open]>summary::after{content:'−'}
.camp-role-reference>summary svg{inline-size:1.3rem;block-size:1.3rem;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;fill:none;flex:none}
.camp-reference-intro{margin:.68rem 0;color:#e2eee7}
.camp-reference-intro span{display:inline-block;color:#fff0c4;font-weight:700}
.camp-role-reference>ul{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.68rem;list-style:none;margin:0;padding:0}
.camp-role-reference li{min-width:0}
.camp-reference-card{margin:0;padding:0;border:1px solid #b79262;border-radius:.62rem;background:#172b30;overflow:hidden}
.camp-reference-card>summary{display:grid;align-content:end;position:relative;isolation:isolate;min-height:7.3rem;padding:.45rem;cursor:pointer;text-align:center;color:#fff3cf;overflow-wrap:anywhere}
.camp-reference-card>summary::after{content:'';position:absolute;inset:32% 0 0;background:linear-gradient(transparent,#0b1820 88%);z-index:-1}
.camp-reference-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 35%;z-index:-2}
.camp-reference-card>summary:focus-visible{outline:2px solid #ffe6a8;outline-offset:-3px}
.camp-reference-card[open]>summary{min-height:2.8rem;background:#2f4137}
.camp-reference-card[open]>summary::after,.camp-reference-card[open] img{display:none}
.camp-reference-rule{border-top:1px solid #a68c60;padding:.65rem;color:#f1f5e8;animation:camp-reference-in .18s ease-out}
.camp-reference-rule p{margin:0;overflow-wrap:anywhere}
@keyframes camp-reference-in{from{opacity:.65;transform:rotateY(-14deg)}to{opacity:1;transform:none}}
@media(max-width:800px){.camp-role-reference>ul{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:490px){.camp-role-reference>ul{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.camp-reference-rule{animation:none}}
.camp-role-reference{margin-block:.45rem .65rem;padding-block:.65rem}

.camp-student-preferences{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.42rem .72rem}
.camp-student-pref-group{display:flex;flex-wrap:wrap;gap:.24rem}
.camp-student-pref-group button{display:inline-flex;align-items:center;min-block-size:2.2rem;padding:.22rem .43rem;border:1px solid #83a79d;border-radius:.4rem;background:#193137;color:#f0faf3;font:inherit;font-size:.84rem;cursor:pointer}
.camp-student-pref-group button[aria-pressed=true]{border-color:#efcb89;background:#f3d69a;color:#152b30;font-weight:800}
.camp-student-pref-group button:focus-visible{outline:2px solid #fff2bd;outline-offset:2px}
@media(max-width:540px){.camp-student-preferences{justify-content:flex-start}.camp-student-pref-group button{min-block-size:2.4rem}}
.camp-facilitator-level{justify-content:flex-end}
.camp-facilitator-support{padding:.65rem .75rem;margin-top:.75rem;border-radius:.62rem;border:1px solid #7fb7a7;background:#183a3a}
.camp-facilitator-support h3{font-size:1rem;color:#def7eb}
.camp-facilitator-support ul{padding-inline-start:1.25rem;display:grid;gap:.33rem;margin:.45rem 0 0}
/* Console layer. Append after app.css; add camp-screen--teacher or
   camp-screen--player to the .camp-screen wrapper of the respective console.
   Not intended for the public projector, home, or student join form. */
:is(.camp-screen--teacher,.camp-screen--player) {
  --console-ink: #fff5df;
  --console-muted: #d9e5df;
  --console-slate: #202b32;
  --console-slate-deep: #152128;
  --console-slate-border: #819398;
  --console-teal: #173735;
  --console-deep-teal: #102b2b;
  --console-teal-edge: #648f87;
  --console-teal-ink: #c3f2e7;
  --console-amber: #ffcf86;
  --console-amber-ink: #281a0d;
  --console-amber-text: #ffe3ad;
  --console-amber-panel: #392b22;
  --console-amber-edge: #c59861;
  color: var(--console-ink);
  line-height: 1.48;
}
:is(.camp-screen--teacher,.camp-screen--player) .camp-columns{gap:clamp(.85rem,2vw,1.25rem)}
:is(.camp-screen--teacher,.camp-screen--player) .camp-card {
  --app-border:var(--console-slate-border);
  background:var(--console-slate);
  border-color:var(--console-slate-border);
  box-shadow:0 5px 12px #07101535;
}
:is(.camp-screen--teacher,.camp-screen--player) .camp-card h2 {
  color:var(--console-ink);
  line-height:1.22;
  margin-block:.1rem .6rem;
}
:is(.camp-screen--teacher,.camp-screen--player) .camp-card :is(small,.camp-lead) {color:var(--console-muted)}
:is(.camp-screen--teacher,.camp-screen--player) :is(.camp-kicker,.camp-cue-actors,.camp-side) {
  color:var(--console-teal-ink);
}
:is(.camp-screen--teacher,.camp-screen--player) :is(.camp-roster,.camp-tally) {
  margin-block:.6rem;
  gap:.45rem;
}
:is(.camp-screen--teacher,.camp-screen--player) :is(.camp-roster,.camp-tally) li {
  background:var(--console-slate-deep);
  border:1px solid #657a81;
  padding:.55rem .58rem;
}
:is(.camp-screen--teacher,.camp-screen--player) .camp-card:is(.camp-share,.camp-starters,.camp-role-reference) {
  background:var(--console-teal);
  border-color:var(--console-teal-edge);
}
:is(.camp-screen--teacher,.camp-screen--player) :is(summary,.camp-back) {
  color:var(--console-teal-ink);
}
:is(.camp-screen--teacher,.camp-screen--player) :is(.camp-script,.camp-announcement,.camp-pair-secret,.camp-alert:not(:empty),.camp-privacy,.camp-radio-vote) {
  color:var(--console-amber-text);
  background:var(--console-amber-panel);
  border:1px solid var(--console-amber-edge);
  border-inline-start-width:.25rem;
  border-radius:.42rem;
  padding:.65rem .78rem;
}
:is(.camp-screen--teacher,.camp-screen--player) .camp-script{line-height:1.55}
.camp-screen--teacher .camp-columns > .camp-card:first-child {
  border-color:#a48d71;
  border-block-start:3px solid var(--console-amber-edge);
  background:linear-gradient(145deg,#313335 0,var(--console-slate) 56%);
}
.camp-screen--teacher .camp-actions{gap:.55rem;margin-block:.55rem .15rem}
:is(.camp-screen--teacher,.camp-screen--player) .camp-button {
  min-block-size:2.75rem;
  background:#20393b;
  border-color:#8ca6a1;
  color:var(--console-ink);
}
:is(.camp-screen--teacher,.camp-screen--player) .camp-button:hover:not(:disabled) {background:#2d4b4c}
.camp-screen--teacher .camp-button:is(.camp-advance,.camp-primary),
.camp-screen--player .camp-player-console .camp-primary {
  color:var(--console-amber-ink);
  background:var(--console-amber);
  border-color:#ffe0a9;
  font-weight:850;
  box-shadow:0 2px 0 #946635;
}
.camp-screen--teacher .camp-button:is(.camp-advance,.camp-primary):hover:not(:disabled),
.camp-screen--player .camp-player-console .camp-primary:hover:not(:disabled) {background:#ffe0a9}
:is(.camp-screen--teacher,.camp-screen--player) .camp-button:disabled {
  background:#263339;
  border-color:#687981;
  color:#bdc9c6;
  opacity:1;
  box-shadow:none;
}
:is(.camp-screen--teacher,.camp-screen--player) :is(button,a,input,select,summary):focus-visible {
  outline:3px solid #fff0bd;
  outline-offset:3px;
}
.camp-screen--player .camp-role-card {
  border-color:#b3976c;
  background:radial-gradient(ellipse at 52% 0,#41423a,var(--console-slate) 64%);
}
.camp-screen--player .camp-role-card .camp-role-portrait h2 {margin-block:0}
.camp-screen--player .camp-player-console {
  border-color:var(--console-amber-edge);
  border-block-start-width:3px;
}
.camp-screen--player .camp-own-action {
  border:1px solid var(--console-teal-edge);
  background:var(--console-deep-teal);
  border-radius:.55rem;
  padding:.75rem;
  margin-top:.55rem;
}
.camp-screen--player .camp-vials li{background:var(--console-deep-teal);color:var(--console-teal-ink)}
:is(.camp-screen--teacher,.camp-screen--player) :is(input:not([type=checkbox]),select) {
  background:#131f24;
  border-color:#91a6a8;
}
@media(max-width:700px) {
  :is(.camp-screen--teacher,.camp-screen--player) .camp-columns {gap:.75rem}
  .camp-screen--teacher .camp-actions .camp-advance {flex-basis:100%}
}
@media(forced-colors:active){
  .camp-screen--teacher .camp-button:is(.camp-advance,.camp-primary),
  .camp-screen--player .camp-player-console .camp-primary {border:2px solid ButtonText}
}
.camp-screen--teacher .camp-oral-level {
  background:var(--console-teal);
  border-color:var(--console-teal-edge);
}
:is(.camp-screen--teacher,.camp-screen--player) .camp-button:is(.camp-advance,.camp-primary):disabled {
  background:var(--console-slate-deep);color:var(--console-muted);border-color:#687981;box-shadow:none
}
