*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  color: #fafafa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 28px;
  line-height: 1.4;
}

main {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  text-align: center;
  padding: 2rem;
}

.hidden { display: none; }

h1 { font-size: 3rem; margin: 0 0 1rem; letter-spacing: 0.05em; }
h2 { font-size: 2.4rem; margin: 0 0 1rem; }
.hint { font-size: 1.6rem; color: #c0c0c0; margin: 0 0 2rem; }

.code {
  font-family: "Courier New", monospace;
  font-size: 8rem;
  letter-spacing: 0.5rem;
  padding: 1.5rem 3rem;
  background: #1a1a1a;
  border: 4px solid #2a2a2a;
  border-radius: 1rem;
  display: inline-block;
  color: #ffd700;
  font-weight: bold;
}

.status { font-size: 1.4rem; color: #888; margin-top: 2rem; }

.url {
  word-break: break-all;
  font-family: monospace;
  font-size: 1.4rem;
  color: #ffd700;
  background: #1a1a1a;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
}

#player {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
  z-index: 10;
}
#player.active { display: block; }

.spinner {
  width: 80px;
  height: 80px;
  margin: 2rem auto;
  border: 8px solid #2a2a2a;
  border-top-color: #ffd700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
