* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
}

#root {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

video {
  outline: none !important;
  border: none !important;
}

video::-webkit-media-controls {
  display: none !important;
}

video::-webkit-media-controls-panel {
  display: none !important;
}

video::-webkit-media-controls-play-button {
  display: none !important;
}

video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

video::-ms-media-controls {
  display: none !important;
}

/* Global structural styles. Marketplace/theme colors are applied via inline
   styles from ThemeService.getColors() at element-creation time, not here —
   IE11 has no CSS custom properties, so there is nothing dynamic in this file. */

.branded-screen {
  width: 100vw;
  height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  position: relative;
}

.branded-screen__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.branded-screen__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 40px;
  text-align: center;
}

.branded-screen__footer {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 500;
}

.branded-screen__device-info {
  position: absolute;
  bottom: 30px;
  left: 30px;
  font-size: 16px;
  font-weight: 500;
}

.title {
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 24px 0;
  max-width: 800px;
}

.subtitle {
  font-size: 20px;
  margin: 20px 0 32px 0;
  opacity: 0.8;
}

.secondary-text {
  font-size: 18px;
  margin: 0 0 20px 0;
  max-width: 600px;
}

.description {
  font-size: 20px;
  margin: 20px 0 32px 0;
  opacity: 0.8;
}

.loading-spinner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0;
}

.loading-spinner {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  animation: loadingSpin 0.8s linear infinite;
}

@keyframes loadingSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.retry-button {
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 32px;
}

.diagnostics-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f85665;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
}

.diagnostics-screen {
  width: 100vw;
  height: 100vh;
  background-color: #12113d;
  color: #fff;
  font-family: 'Courier New', Courier, monospace;
  padding: 40px;
  overflow: auto;
}

.diagnostics-screen__label {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.diagnostics-screen__message {
  font-size: 20px;
  margin-bottom: 24px;
}

.diagnostics-screen__details {
  font-size: 14px;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

