/* The page a browser build runs in (/lab/<slug>/play). It fills its frame edge to edge. */

@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

html,
body.play {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #09090c;
  color: #f2f2f2;
  font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
}

#canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

.play__cover {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
}
.play__cover[hidden] {
  display: none;
}

.play__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: saturate(0.8);
}

.play__panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: 1.6rem 2rem;
  border-radius: 16px;
  background: rgba(9, 10, 14, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.play__kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ff5a60;
}

.play__title {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  color: #ffc845;
}

.play__start {
  min-height: 3rem;
  padding: 0.6rem 1.6rem;
  border: 0;
  border-radius: 999px;
  background: #ffc845;
  color: #1a1405;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
}
.play__start:hover,
.play__start:focus-visible {
  filter: brightness(1.1);
  outline: 3px solid rgba(255, 200, 69, 0.4);
  outline-offset: 3px;
}
.play__start[hidden] {
  display: none;
}

.play__bar {
  width: min(18rem, 70vw);
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.play__bar[hidden] {
  display: none;
}
.play__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: #ffc845;
  transition: width 0.2s;
}

.play__status {
  margin: 0;
  font-size: 0.85rem;
  color: #aab0bf;
}
