.experimentwin {
  position: absolute;
  left: 220px;
  top: 100px;
  width: 390px;
  z-index: 14;
}
.experimentwin .ca-body {
  padding: 16px;
  display: grid;
  gap: 8px;
  color: #183c4b;
}
.experimentwin p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 6px;
}
.experimentwin label {
  font-size: 13px;
  font-weight: bold;
}
.experimentwin input {
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  border: 1px solid #779daf;
  border-radius: 4px;
  font: 14px inherit;
  background: #fff;
}
.experimentwin .ca-title button {
  margin-left: auto;
  background: none;
  border: 0;
  color: white;
  font-size: 22px;
  cursor: pointer;
}
.seat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.seat-note {
  color: #546a74;
}
.seat-actions button:disabled,
#studyJoin:disabled,
#studyLeave:disabled {
  opacity: 0.5;
  cursor: default;
}
.seat-badge {
  position: absolute;
  top: 100px;
  left: 185px;
  z-index: 8;
  background: #f4e5bc;
  border: 2px solid #786132;
  border-radius: 6px;
  padding: 7px 10px;
  color: #49371f;
  font:
    12px "Galmuri11",
    sans-serif;
  cursor: pointer;
}
@media (max-width: 700px) {
  .experimentwin {
    left: 145px;
    top: 110px;
    width: 490px;
  }
  .experimentwin .ca-body {
    gap: 10px;
  }
  .experimentwin p {
    font-size: 14px;
  }
  .experimentwin input {
    font-size: 16px;
  }
}
.campwin {
  position: absolute;
  left: 215px;
  top: 100px;
  width: 390px;
  z-index: 14;
}
.campwin .ca-body {
  padding: 16px;
  display: grid;
  gap: 10px;
  color: #3f3426;
}
.campwin .ca-title {
  background: linear-gradient(#ad794b, #774727);
}
.campwin .ca-title button {
  margin-left: auto;
  border: 0;
  background: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}
.campwin p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}
.campwin textarea {
  box-sizing: border-box;
  width: 100%;
  height: 96px;
  padding: 10px;
  font:
    14px "Galmuri11",
    sans-serif;
  border: 1px solid #b69873;
  background: #fff8e7;
  border-radius: 4px;
  resize: vertical;
}
.camp-scene {
  height: 70px;
  position: relative;
  text-align: center;
  background: #352c29;
  border-radius: 6px;
  overflow: hidden;
}
.camp-flame {
  position: absolute;
  bottom: 2px;
  left: calc(50% - 22px);
  font-size: 40px;
}
.camp-paper {
  display: none;
  position: absolute;
  left: calc(50% - 13px);
  top: 4px;
  width: 26px;
  height: 18px;
  background: #f6e5ba;
  z-index: 1;
}
.burning .camp-paper {
  display: block;
  animation: campBurn 2.8s ease-in forwards;
}
@keyframes campBurn {
  0% {
    transform: translateY(0) rotate(-8deg);
    opacity: 1;
  }
  65% {
    transform: translateY(34px) rotate(35deg);
    background: #b06a31;
    opacity: 0.8;
  }
  100% {
    transform: translateY(40px) rotate(60deg) scale(0.2);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .burning .camp-paper {
    animation: none;
    opacity: 0.5;
  }
}
@media (max-width: 700px) {
  .campwin {
    left: 145px;
    top: 110px;
    width: 490px;
  }
}
/* Keep the seat control clear of the desk's experiment display. */
.seat-badge {
  top: auto;
  left: auto;
  right: 12px;
  bottom: 46px;
}
.top-actions #placeToggle,
.top-actions #walkCancel {
  color: #fff;
}

/* Session details use a reading font; keep the plaza's pixel font on window titles. */
#studywin .study-controls,
#experimentwin label,
#experimentwin input,
#studyStatus,
#studyPeople,
#experimentState,
body .seat-badge {
  font-family: system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  line-height: 1.45;
}
#studyStatus,
#experimentState {
  color: #123749;
  background: #f1f9fb;
  border-left: 4px solid #387287;
  padding: 7px 10px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
#studyPeople {
  white-space: pre-line;
  color: #173952;
  padding: 6px 9px;
}
#stage .seat-badge {
  font-size: 15px;
  font-weight: 650;
  color: #382810;
}
