* { box-sizing: border-box; }

body {
  margin: 0;
  overflow: hidden;
  background: #040404;
}

@keyframes bncspin {
  to { transform: rotate(360deg); }
}

.stage {
  position: fixed;
  inset: 0;
  height: 100dvh;
  width: 100vw;
  background: #040404;
  color: #f4f2ee;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 40px 28px;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 300px;
}

.ball {
  width: min(46vw, 164px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ball video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.headline .brand {
  margin: 0;
  font-weight: 600;
  font-size: 9px;
  color: #f4f2ee;
  text-transform: uppercase;
}

.headline h1 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(17px, 5vw, 23px);
  line-height: 1;
  text-transform: uppercase;
}

#signup-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 17px;
  min-height: 110px;
}

#signup-form[hidden] { display: none; }

#signup-form input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  color: #f4f2ee;
  font-family: inherit;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  padding: 10px 2px;
  outline: none;
}

#signup-form input:focus { border-bottom-color: #f4f2ee; }

#signup-form input::placeholder { color: rgba(255, 255, 255, .26); }

#signup-form input:-webkit-autofill {
  -webkit-text-fill-color: #f4f2ee;
  transition: background-color 9999s;
}

#signup-form button {
  width: 100%;
  margin-top: 8px;
  background: #f4f2ee;
  color: #060606;
  border: 1px solid #f4f2ee;
  font-family: inherit;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  padding: 13px;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#signup-form button:disabled {
  opacity: .45;
  cursor: default;
}

.error {
  margin: 0;
  font-weight: 500;
  font-size: 9px;
  line-height: 1.4;
  color: #ff0042;
  text-transform: uppercase;
  text-align: center;
}

.error[hidden] { display: none; }

#signup-form button:hover {
  background: #ff0042;
  border-color: #ff0042;
  color: #060606;
}

.done {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 202px;
  justify-content: center;
}

.done[hidden] { display: none; }

.done-title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

.done-sub {
  font-weight: 500;
  font-size: 9px;
  color: rgba(255, 255, 255, .4);
  text-transform: uppercase;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 10px;
  color: #dd1637;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity .25s;
}

.footer a:hover { opacity: .7; }

.footer svg { display: block; }

/* loading screen: spinner holds until the video is buffered (body.bnc-go set by app.js) */
.loader {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #040404;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .45s ease, visibility .45s ease;
}

body.bnc-go .loader {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, .16);
  border-top-color: #f4f2ee;
  border-radius: 50%;
  animation: bncspin .75s linear infinite;
}
