
:root {
  font-family:ui-monospace,'Cascadia Code','Segoe UI Mono',Consolas,monospace;
  color:#e8eff6;
  background:#07131d;
  font-synthesis:none}
* {
  box-sizing:border-box}
body {
  margin:0;
  min-height:100vh;
  background:linear-gradient(155deg,#081622 0%,#06111a 60%,#081e25 100%);
  position:relative}
body:before {
  content:'';
  pointer-events:none;
  position:fixed;
  inset:0;
  background-image:linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px);
  background-size:34px 34px}
.wrap {
  max-width:1100px;
  margin:auto;
  padding:28px 20px 60px;
  position:relative}
.top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:28px}
.brand {
  font-size:clamp(21px,3vw,31px);
  font-weight:800;
  letter-spacing:.085em}
.brand strong {
  color:#ff850a}
.eyebrow {
  font-size:12px;
  color:#ff9e4c;
  letter-spacing:.16em}
.panel {
  background:#0a1b28ea;
  border:1px solid #c76a13;
  border-radius:14px;
  box-shadow:0 0 45px #e46b0a12, inset 0 0 26px #ff770009;
  padding:clamp(18px,3vw,32px);
  margin:20px 0}
.panel h1 {
  font-size:clamp(23px,4vw,42px);
  margin:8px 0 12px;
  letter-spacing:.045em}
.muted {
  color:#b8c6d4;
  line-height:1.6}
.timer {
  font-size:clamp(70px,13vw,128px);
  line-height:1.2;
  font-weight:800;
  letter-spacing:.045em;
  text-align:center;
  font-variant-numeric:tabular-nums;
  margin:12px 0}
.timer.low {
  color:#ff736f}
.timer-status {
  text-align:center;
  color:#f9ab61;
  letter-spacing:.13em;
  font-size:13px}
.controls {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:20px}
button {
  cursor:pointer;
  border-radius:8px;
  border:1px solid #e77814;
  background:#b65a0c;
  color:#fff;
  padding:13px 18px;
  font:700 14px inherit;
   font-family:inherit;
  font-weight:700;
  transition:background .12s,transform .12s}
button:hover:not(:disabled) {
  background:#ed7a16;
  transform:translateY(-1px)}
button:disabled {
  opacity:.4;
  cursor:not-allowed}
button.secondary {
  background:#112638;
  border-color:#547184}
button.secondary:hover:not(:disabled) {
  background:#1b3c51}
button.danger {
  background:#3e1a1c;
  border-color:#b55c57}
button.danger:hover:not(:disabled) {
  background:#6e2829}
.big {
  width:100%;
  min-height:53px;
  font-size:17px}
.rooms {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:13px;
  margin-top:21px}
.room {
  min-height:170px;
  text-align:left;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:10px;
  background:#0e2634;
  border:1px solid #926029;
  padding:19px}
.room span:first-child {
  color:#ffac66;
  font-size:12px;
  letter-spacing:.13em}
.room strong {
  font-size:20px;
  line-height:1.25}
.room small {
  color:#adbecb;
  font-size:12px;
  line-height:1.5}
.room.active {
  border-color:#ff940a;
  box-shadow:0 0 0 1px #ff940a}
.line {
  height:1px;
  background:#604021;
  margin:25px 0}
.terminal {
  text-align:center;
  max-width:720px;
  margin:0 auto}
.terminal h1 {
  margin:0}
.field {
  width:100%;
  padding:19px 15px;
  background:#050f17;
  border:1px solid #c47a2b;
  border-radius:10px;
  color:#fff;
  font:700 36px ui-monospace,Consolas,monospace;
  letter-spacing:.24em;
  text-align:center;
  outline:none;
  margin:18px 0 6px}
.field:focus {
  border-color:#ff9e44;
  box-shadow:0 0 0 2px #ff81004a}
.field::placeholder {
  font-size:17px;
  letter-spacing:.02em;
  font-weight:400;
  color:#728996}
.msg {
  min-height:28px;
  color:#ffca8b;
  font-weight:600;
  line-height:1.6;
  margin-top:14px}
.msg.error {
  color:#ff827f}
.msg.success {
  color:#75dbb2}
.actions {
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:18px}
.statrow {
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  justify-content:center;
  color:#b9c8d5;
  font-size:13px;
  margin-top:16px}
.end {
  text-align:center;
  padding:50px 20px}
.end h1 {
  font-size:clamp(27px,5vw,50px)}
.end.success h1 {
  color:#81e6b6}
.end.failed h1 {
  color:#ff7474}
.end p {
  font-size:17px}
.foot {
  color:#71899a;
  font-size:12px;
  text-align:center;
  margin-top:30px}
.notice {
  border-left:3px solid #ff850a;
  padding:10px 14px;
  background:#132735;
  color:#c9d6dd;
  font-size:13px;
  line-height:1.55}
.hidden {
  display:none!important}
@media(max-width:650px) {
  .rooms {
  grid-template-columns:1fr}
.room {
  min-height:115px}
.top {
  margin-bottom:12px}
.panel {
  padding:20px 15px}
.brand {
  font-size:24px}
.field {
  font-size:27px}
.timer {
  font-size:68px}
}
@media(prefers-reduced-motion:reduce) {
  button {
  transition:none}
}


/* Facilitator safeguards */
button:focus-visible, .field:focus-visible { outline: 3px solid #ffb65e; outline-offset: 3px; }
.notice.warning { border-left-color: #ff736f; background: #321d25; color: #ffe4d8; }
.notice.ok { border-left-color: #78deb0; }
.room:disabled { opacity: .40; filter: grayscale(.3); transform: none; }
.room:disabled:hover { background: #0e2634; }
.statusline { text-align: center; font-size: 13px; color: #d9e2e9; margin-top: 10px; }
.statusline strong { color: #ffb067; }
.view-note { margin-top: 20px; }
