/* Online version (test release): ribbon, TV room overlay, professor tweaks, landing and rider pages. */

.test-ribbon {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 3px 16px 4px;
  border-radius: 0 0 10px 10px;
  background: #ffd21f;
  color: #14110f;
  font: 700 13px/1.2 'Barlow', system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  white-space: nowrap;
}

/* TV: professor QR card, only in the lobby and until a professor takes the room. */
.room-card {
  position: fixed;
  top: 84px;
  right: 24px;
  z-index: 900;
  width: 210px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(11, 15, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f6fb;
  font-family: 'Barlow', system-ui, sans-serif;
  text-align: center;
}
.room-card[hidden],
body:not([data-phase='lobby']) .room-card {
  display: none;
}
.room-card img {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 8px;
}
.room-card .room-card-title {
  margin: 8px 0 2px;
  font: 700 20px/1.1 'Barlow Condensed', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
}
.room-card .room-card-sub {
  font-size: 14px;
  color: #94a0b6;
}

/* Professor page in a room: no ANT+ stick and no studio cloud link here. */
body[data-cloud='professor'] #ant,
body[data-cloud='professor'] #cloud,
body[data-cloud='professor'] a.pill[href='/sensor'],
body[data-cloud='professor'] a.pill[href='/tv'],
body[data-cloud='professor'] .card:has(#devices) {
  display: none;
}

/* Landing and rider pages */
.cloud-page {
  margin: 0;
  min-height: 100vh;
  background: #0b0f17;
  color: #f4f6fb;
  font-family: 'Barlow', system-ui, sans-serif;
}
.cloud-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 20px 40px;
}
.cloud-wrap h1 {
  margin: 0 0 12px;
  font: 800 44px/1 'Barlow Condensed', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
}
.cloud-wrap p {
  color: #c6cbe2;
  font-size: 18px;
  line-height: 1.45;
}
.cloud-logo {
  width: 200px;
  margin-bottom: 28px;
}
.cloud-btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 12px;
  background: #ff5a1f;
  color: #14110f;
  font: 700 18px/1 'Barlow', system-ui, sans-serif;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}
.cloud-card {
  margin: 22px 0;
  padding: 20px;
  border-radius: 16px;
  background: #121826;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cloud-card h2 {
  margin: 0 0 8px;
  font: 700 24px/1.1 'Barlow Condensed', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
}
.cloud-card ol {
  margin: 8px 0 0;
  padding-left: 22px;
  color: #c6cbe2;
  font-size: 17px;
  line-height: 1.5;
}
.code-form {
  display: flex;
  gap: 10px;
}
.code-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0b0f17;
  color: #f4f6fb;
  font: 700 22px/1 'Barlow', system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.cloud-error {
  color: #ff9b77;
}

/* Rider page */
.rider-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.rider-help {
  margin-top: 14px;
  font-size: 15px;
  color: #94a0b6;
  line-height: 1.45;
}
.sensor-line {
  margin: 10px 0 0;
  font-size: 15px;
  color: #94a0b6;
}
.sim-control {
  margin-top: 16px;
  text-align: left;
}
.sim-control input {
  width: 100%;
}
.sim-control[hidden] {
  display: none;
}
