:root {
  color-scheme: dark;
  font-family: Tahoma, Arial, sans-serif;
  background: #1b1128;
  color: #fff;
}

* { box-sizing: border-box; }

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

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.portal { position: relative; flex: 1 1 auto; min-height: 0; }

iframe { display: block; width: 100%; height: 100%; border: 0; background: #1b1128; }

.loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: #1b1128;
  pointer-events: none;
}

.loading[hidden] { display: none; }
.loading p { margin: 0; line-height: 1.8; }
.loading-hint { max-width: 32rem; font-size: 13px; color: #c6bfd1; }

.spinner {
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border: 3px solid #ffffff26;
  border-top-color: #63c7c1;
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
