/* The web app's welcome screen (harness/ui/public/web.js): the app's face, one line, one button.
   Asked for on 2026-10-09: the app icon as the opening image, "Limited access, no chud's. Send a
   request and be judged." under it, then a big purple "Request Access" button. */
.wg {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg, #16171b);
  color: var(--fg, #ececf1);
  font-family: var(--sans, system-ui, sans-serif);
}
.wg[hidden] { display: none; }
.wg-card {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.wg-icon {
  width: min(56vw, 220px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 28%;
  background: #fff;
  padding: 6%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.wg-line {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 600;
}
.wg-sub { margin: 0; color: var(--muted, #9a9cab); font-size: 0.95rem; line-height: 1.45; }
.wg-code {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 1.9rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 12px;
  background: var(--surface, #1f2127);
  border: 1px solid var(--line, #2a2d36);
}
.wg-name {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  font: inherit;
  font-size: 1.05rem;
  color: inherit;
  background: var(--surface, #1f2127);
  border: 1px solid var(--line, #2a2d36);
  border-radius: 14px;
  outline: none;
}
.wg-name:focus { border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35); }
.wg-btn {
  width: 100%;
  min-height: 64px;
  padding: 18px 24px;
  border: 0;
  border-radius: 18px;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 55%, #6d28d9 100%);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.wg-btn:hover { box-shadow: 0 12px 36px rgba(124, 58, 237, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.wg-btn:active { transform: scale(0.98); }
.wg-btn:disabled { opacity: 0.6; cursor: default; }
.wg-btn[hidden] { display: none; }
.wg-msg { margin: 0; min-height: 1.4em; color: var(--bad, #ef5b52); font-size: 0.95rem; }
.wg-wait { display: flex; gap: 8px; }
.wg-wait i { width: 10px; height: 10px; border-radius: 50%; background: #8b5cf6; animation: wg-pulse 1.2s infinite ease-in-out; }
.wg-wait i:nth-child(2) { animation-delay: 0.2s; }
.wg-wait i:nth-child(3) { animation-delay: 0.4s; }
@keyframes wg-pulse { 0%, 80%, 100% { opacity: 0.25; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .wg-wait i { animation: none; opacity: 0.8; } .wg-btn { transition: none; } }
/* No Work and no settings on the web: the chat only. */
html.in-web #mode-work, html.in-web .modes { display: none !important; }
