* {
  box-sizing: border-box;
}

body {
  align-items: center;
  background: #11131a;
  color: #f5f7fb;
  display: flex;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  justify-content: center;
  margin: 0;
  min-height: 100vh;
}

main {
  display: grid;
  gap: 16px;
  justify-items: center;
  width: min(94vw, 960px);
}

#gameSurface {
  align-items: center;
  aspect-ratio: 3 / 2;
  background: linear-gradient(135deg, #1d2330, #090b10);
  border: 1px solid #343a46;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  position: relative;
  text-align: center;
  width: 100%;
}

#gameVideo {
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  width: 100%;
}

#gameSurface > div {
  position: relative;
  z-index: 1;
}

#gameSurface.streaming > div {
  display: none;
}

h1 {
  font-size: clamp(28px, 5vw, 54px);
  margin: 0 0 12px;
}

p {
  color: #d8deea;
  margin: 8px 0;
}

.hint {
  color: #9ba5b8;
}

button {
  background: #4f8cff;
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 28px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
