.cinematic-shell {
  --cin-paper: #f4f1e8;
  --cin-quiet: #c9d1c4;
  --cin-accent: #f3c779;
  --cin-ink: #101813;
  color: var(--cin-paper);
  color-scheme: dark;
  font-family: inherit;
  word-break: keep-all;
  overflow-wrap: anywhere;
  min-width: 0;
}
.cinematic-shell [hidden] { display: none !important; }
.cinematic-shell :focus-visible { outline: 3px solid #f3c779; outline-offset: 4px; }
.cinematic-shell figure { margin: 0; }
.cinematic-shell .cinematic-frame {
  position: relative;
  display: grid;
  align-items: center;
  background: #080d0b;
  border: 1px solid #485449;
  border-radius: 12px;
  overflow: hidden;
}
.cinematic-shell .cinematic-frame figcaption {
  display: flex;
  justify-content: space-between;
  padding: .65rem 1rem;
  color: var(--cin-quiet);
  background: #131c16;
}
.cinematic-shell .cinematic-fullscene {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75dvh;
  object-fit: contain;
}
.cinematic-shell .cinematic-zoom {
  justify-self: end;
  margin: .65rem 1rem;
}
.cinematic-shell .cinematic-frame.is-enlarged {
  position: fixed;
  inset: 0;
  z-index: 1000;
  border-radius: 0;
  grid-template-rows: auto minmax(0,1fr) auto;
}
.cinematic-shell .is-enlarged .cinematic-fullscene { height: 100%; max-height: none; }
.cinematic-shell .cinematic-curtain,
.cinematic-shell .cinematic-media-error {
  min-height: 7rem;
  display: grid;
  place-content: center;
  padding: 1rem;
}
.cinematic-shell .cinematic-drawer,
.cinematic-shell .cinematic-review,
.cinematic-shell #mountain-teacher-note {
  margin-block: .65rem;
  border: 1px solid #48594d;
  border-radius: 10px;
  background: #17221b;
}
.cinematic-shell summary {
  cursor: pointer;
  color: var(--cin-accent);
  font-weight: 750;
  font-size: clamp(1.06rem,2.6vw,1.5rem);
  padding: .75rem 1.1rem;
  min-height: 48px;
}
.cinematic-shell .cinematic-drawer-content,
.cinematic-shell .cinematic-review { padding: clamp(.85rem,3vw,1.7rem); }
.cinematic-shell #mountain-teacher-note p { margin: 0 1.1rem 1rem; }
.cinematic-shell .cinematic-question {
  font-size: clamp(1.55rem,3.65vw,2.75rem);
  line-height: 1.26;
  margin: 0 0 1rem;
}
.cinematic-shell p, .cinematic-shell li { line-height: 1.55; }
.cinematic-shell fieldset { border: 0; padding: 0; margin: 0 0 .8rem; min-width: 0; }
.cinematic-shell legend { color: var(--cin-quiet); margin-bottom: .55rem; }
.cinematic-shell .cinematic-option {
  display: flex;
  gap: .8rem;
  align-items: center;
  padding: .7rem .85rem;
  margin: 0 0 .55rem;
  border: 1px solid #58675b;
  border-radius: 8px;
  background: #243229;
  cursor: pointer;
  min-height: 48px;
  line-height: 1.36;
  font-size: clamp(1.13rem,2.9vw,2rem);
}
.cinematic-shell .cinematic-practice .cinematic-option,
.cinematic-shell .cinematic-review .cinematic-option { font-size: clamp(1.05rem,2.25vw,1.5rem); }
.cinematic-shell .cinematic-option:has(input:checked) { border-color: var(--cin-accent); background: #354335; }
.cinematic-shell .cinematic-option input { width: 1.25em; height: 1.25em; flex: none; margin: 0; accent-color: var(--cin-accent); }
.cinematic-shell .cinematic-option small { display: block; font-size: .67em; color: var(--cin-quiet); margin-top: .4rem; }
.cinematic-shell .cinematic-book { border-inline-start: 4px solid #d3a75d; padding: .15rem 1rem .8rem; margin-bottom: 1rem; background: #282a1f; }
.cinematic-shell .cinematic-designs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .65rem; }
.cinematic-shell textarea, .cinematic-shell input:not([type="radio"]):not([type="checkbox"]) {
  width: 100%;
  min-height: 48px;
  margin: .4rem 0 .7rem;
  padding: .65rem;
  background: var(--cin-ink);
  color: var(--cin-paper);
  border: 1px solid #708273;
  border-radius: 6px;
  font: inherit;
}
.cinematic-shell .cinematic-steps { padding-inline-start: 2rem; }
.cinematic-shell .cinematic-steps li { padding: .8rem .45rem; border-bottom: 1px solid #455a4b; }
.cinematic-shell .cinematic-inventory { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .4rem; padding: 0; list-style: none; }
.cinematic-shell .cinematic-inventory li {
  display: grid; place-items: center; text-align: center; padding: .3rem;
  min-height: 44px; border: 1px dashed #7a8479; border-radius: 7px; background: var(--cin-ink);
}
.cinematic-shell .cinematic-inventory li.unlocked { border: 1px solid #bca16f; color: var(--cin-accent); background: #302821; }
.cinematic-shell .cinematic-confirmed { color: #c4f3b9; font-weight: 700; }
.cinematic-shell .cinematic-review article { border-block-start: 1px solid #526456; padding: .8rem 0; }
.cinematic-shell .cinematic-review small { font-size: .85rem; color: var(--cin-quiet); }
.cinematic-shell button { min-height: 44px; }
.cinematic-shell button[type="submit"] { background: var(--cin-accent); color: #22180b; border: 1px solid #bfa166; margin-top: .3rem; font-weight: 750; }
.cinematic-shell button:disabled { opacity: .55; }
.cinematic-shell .cinematic-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.student-shell:has(.cinematic-shell) { max-width: min(100%, 1160px); }
@media (max-width: 700px) {
  .cinematic-shell .cinematic-designs { grid-template-columns: 1fr; }
  .cinematic-shell .cinematic-actions button, .cinematic-shell form[data-action="quiz"] button,
  .cinematic-shell form[data-action="practice"] button { width: 100%; }
}
.cinematic-shell .cinematic-task + .cinematic-task {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #536655;
}
.projector-frame > .cinematic-shell { flex: 1; min-height: 0; }
.projector-frame .cinematic-shell #cinematicScene { height: 100%; }
.projector-frame .cinematic-shell .cinematic-frame { height: 100%; grid-template-rows: auto minmax(0,1fr) auto; }
.projector-frame .cinematic-shell .cinematic-fullscene { height: 100%; max-height: none; }

/* Additive cooperative status and always-visible actual choices. */
.cinematic-shell .cinematic-coop{margin:.65rem 0;padding:1rem;border:1px solid #8aab91;border-radius:10px;background:#1c3025;}
.cinematic-shell .cinematic-coop h2{font-size:clamp(1.2rem,2vw,1.65rem);margin:0;line-height:1.4;}
.cinematic-shell .cinematic-coop p{margin:.55rem 0 0;font-size:1rem;}
.cinematic-shell .cinematic-coop-heading{display:flex;justify-content:space-between;align-items:center;gap:.7rem;flex-wrap:wrap;}
.cinematic-shell .cinematic-coop-heading button{font-size:.9rem;}
.cinematic-shell .cinematic-coop-teams{display:flex;flex-wrap:wrap;gap:.5rem;padding:0;list-style:none;margin:.7rem 0 0;}
.cinematic-shell .cinematic-coop-teams li{padding:.35rem .65rem;border:1px solid #b6a16e;border-radius:7px;font-size:.92rem;background:#3a3422;}
.cinematic-shell .cinematic-coop-teams .is-done{border-color:#91bda0;background:#274b36;color:#d1f3d5;}
.cinematic-shell .cinematic-paused{color:#ffe3a3;}
.cinematic-shell .cinematic-task-title{margin:0;padding:.8rem 1.1rem .1rem;color:var(--cin-accent);font-weight:700;}
.cinematic-shell .cinematic-option-number{font-weight:800;color:var(--cin-accent);}
.cinematic-shell .cinematic-always-open .cinematic-question{font-size:clamp(1.45rem,2.3vw,2rem);}
.cinematic-shell .cinematic-always-open .cinematic-option{font-size:clamp(1.05rem,1.6vw,1.35rem);}
.cinematic-shell .cinematic-choice-grid{display:grid;grid-template-columns:1fr;gap:.55rem;}
.cinematic-shell .cinematic-choice-grid legend{grid-column:1/-1;}
.cinematic-shell .cinematic-choice-grid .cinematic-option{margin:0;}
.projector-frame>.cinematic-shell{display:flex;flex-direction:column;}
.projector-frame .cinematic-shell #cinematicScene{flex:1;min-height:0;height:auto;}
.projector-frame .cinematic-shell #cinematicActivity{flex:none;}
.projector-frame .cinematic-coop{margin:.5rem 0 0;padding:.65rem 1rem;}
.projector-frame .cinematic-coop-teams{margin-top:.35rem;}
@media(min-width:1000px){.student-shell .cinematic-shell:has(.cinematic-always-open){display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:1rem;align-items:start;}.student-shell .cinematic-shell:has(.cinematic-always-open) #cinematicScene{position:sticky;top:1rem;}.student-shell .cinematic-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.student-shell .cinematic-inventory{grid-template-columns:repeat(5,minmax(0,1fr));}}
@media(max-width:700px){.student-shell .cinematic-shell:has(.cinematic-always-open) .cinematic-fullscene{max-height:42dvh;}.cinematic-shell .cinematic-coop-heading{align-items:flex-start;}}
