:root {
  color-scheme: dark;
  background: #090a12;
  color: #f4f4f6;
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }

cast-media-player { position: absolute; inset: 0; width: 100%; height: 100%; }

.standby {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, #191a29 0, #090a12 66%);
  pointer-events: none;
}
.standby.playing { opacity: 0; visibility: hidden; }

.logo { width: min(46vw, 640px); height: auto; overflow: visible; }
/* Owner, 4 Oct 2026: the idle screen shows the logo only. The status text stays in the page for screen readers. */
.status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pin-panel {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(3, 4, 9, .72);
}
.pin-panel.visible { display: flex; }
.pin-card {
  width: min(42vw, 560px);
  min-width: 360px;
  padding: 34px 38px 30px;
  border: 1px solid rgba(255, 212, 0, .48);
  border-radius: 24px;
  background: rgba(18, 19, 29, .96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  text-align: center;
}
.pin-card h1 { margin: 0 0 10px; font-size: 32px; }
.pin-help, .pin-cancel { margin: 0; color: #c9c9d6; font-size: 18px; line-height: 1.35; }
.pin-dots { min-height: 50px; margin: 24px 0 8px; color: #ffd400; font-size: 34px; letter-spacing: 12px; }
.pin-error { min-height: 24px; margin: 0 0 14px; color: #ffb5ad; font-size: 17px; }
.pin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 auto 18px; }
.pin-grid button {
  min-height: 58px;
  border: 2px solid transparent;
  border-radius: 13px;
  background: #292b38;
  color: #f4f4f6;
  font: inherit;
  font-size: 24px;
}
.pin-grid button.selected { border-color: #ffd400; background: #3a3540; color: #ffd400; }
