* { box-sizing: border-box; }

:root {
  --accent: #fc3c44;
}

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #050505;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

#hub-page {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(circle at 50% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    radial-gradient(circle at 50% 0%, #161616, #050505 70%);
  transition: background .3s ease;
}

.hub-header {
  flex: 0 0 auto;
  text-align: center;
  padding: 26px 20px 14px;
}

.hub-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
  transition: color .3s ease, background .3s ease, border-color .3s ease;
}

.hub-header h1 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.hub-header p {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  max-width: 480px;
  margin: 0 auto 16px;
}

.switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
}

.switch-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.55);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.switch-btn:hover { color: #fff; }

.switch-btn.active {
  background: var(--accent);
  color: #fff;
}

.hub-stage {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

#app-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hub-footer {
  flex: 0 0 auto;
  padding: 10px 20px 18px;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  text-align: center;
}

@media (max-height: 720px) {
  .hub-header { padding: 16px 20px 10px; }
  .hub-header p { display: none; margin-bottom: 10px; }
}
