html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0f172a;
}

iframe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #e2e8f0;
  background: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Nirmala UI', 'Noto Sans Bengali', sans-serif;
  transition: opacity 0.25s ease;
}

#loader.gone {
  opacity: 0;
  pointer-events: none;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #0d9488;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
}

.name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 8px 0;
  border: 3px solid rgba(148, 163, 184, 0.35);
  border-top-color: #5eead4;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.text {
  font-size: 14px;
  color: #cbd5e1;
}

#problem {
  max-width: 420px;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
}

#problem[hidden] {
  display: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.actions button,
.actions a {
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #5eead4;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.actions button {
  background: #0d9488;
  border-color: #0d9488;
}

.noscript {
  position: fixed;
  inset: auto 0 24px;
  z-index: 20;
  margin: 0;
  padding: 0 24px;
  text-align: center;
  color: #ffffff;
  font-family: sans-serif;
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
  #loader { transition: none; }
}
