:root {
  color-scheme: dark;
  --footer-height: 44px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  background: #090719;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
}

.app-shell {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #090719;
}

.webview {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: #090719;
}

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

.loading {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #f4eeff;
  background: #090719;
  font-size: 1rem;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.loading img {
  border-radius: 22%;
  box-shadow: 0 0 28px rgba(170, 42, 255, 0.4);
}

.loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.powered-footer {
  flex: 0 0 auto;
  min-height: var(--footer-height);
  padding: 0 16px var(--safe-bottom);
  background: linear-gradient(90deg, #10102f 0%, #23104c 50%, #111033 100%);
  border-top: 1px solid rgba(210, 105, 255, 0.32);
  box-shadow: 0 -4px 18px rgba(90, 16, 175, 0.22);
}

.powered-footer a {
  min-height: var(--footer-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #f8f5ff;
  font-size: 0.84rem;
  line-height: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.powered-footer strong {
  color: #ffb5ff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.external-mark {
  margin-left: 2px;
  color: #d896ff;
  font-size: 1rem;
}

.powered-footer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
  border-radius: 4px;
}

@media (min-width: 700px) {
  .powered-footer a {
    font-size: 0.9rem;
  }
}
