/* Page layout for the sign-up experience. Colors, type and components come from the design system. */
html, body { margin: 0; height: 100%; background: var(--ground); color: var(--amber); }
body { font-family: var(--font-mono); -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
#app { height: 100%; }
* { box-sizing: border-box; }
::selection { background: var(--amber); color: var(--on-amber); }

.app-screen { height: 100%; }
.app-col { position: relative; height: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; }

.app-header {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 52px; padding: env(safe-area-inset-top, 0px) 16px 0; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  background: color-mix(in srgb, var(--ground) 55%, transparent);
  font-size: 12px; text-shadow: none;
}
.app-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-brand span { color: var(--amber-dim); }
.app-keys { display: flex; align-items: center; gap: 8px; flex: none; }
.app-seats { color: var(--you); white-space: nowrap; }
.app-wide { display: inline; }
.app-narrow { display: none; }
@media (max-width: 380px) { .app-wide { display: none; } .app-narrow { display: inline; } .app-keys { gap: 6px; } }
.app-brand { flex: 1 1 auto; min-width: 72px; }
.app-live { flex: none; color: var(--amber-dim); white-space: nowrap; }
.app-live.is-live { color: var(--you); }

.app-log {
  flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 10px; position: relative;
}
.app-log > * { flex-shrink: 0; } /* never squeeze the receipt or panel while the log scrolls */
.app-logo { font: 400 64px/0.86 var(--font-display); letter-spacing: 1px; margin: 6px 0; animation: nt-pop 300ms var(--ease-out) both; }
/* The neon sign (same as the icon, link preview and QR card). Glows on the terminal, plain ink on paper. */
.app-sign { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 10px 0 14px; text-shadow: none; }
.app-sign-ai { font: 400 88px/0.8 var(--font-display); letter-spacing: 2px; }
.app-sign-script { font: 400 58px/1 "Yellowtail", cursive; margin-left: 4px; }
[data-theme="terminal"] .app-sign span { color: #FFE7A8; text-shadow: 0 0 2px var(--amber), 0 0 8px var(--amber), 0 0 22px color-mix(in srgb, var(--amber) 70%, transparent), 0 0 44px color-mix(in srgb, var(--amber) 35%, transparent); }
[data-theme="paper"] .app-sign span { color: var(--amber); }
.app-nudge { animation: app-nudge 2.4s ease-in-out infinite; }
@keyframes app-nudge { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 35%, transparent); } }
@media (prefers-reduced-motion: reduce) { .app-nudge { animation: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--amber) 35%, transparent); } }
.app-thinking { color: var(--amber-dim); }
.app-dots::after { content: ''; animation: app-dots 1.2s steps(4, end) infinite; }
@keyframes app-dots { 0% { content: ''; } 25% { content: ' .'; } 50% { content: ' . .'; } 75% { content: ' . . .'; } }
@media (prefers-reduced-motion: reduce) { .app-dots::after { animation: none; content: ' ...'; } }
.app-boot { font-size: 13px; color: var(--amber-dim); }
.app-controls { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; text-shadow: none; }
/* Buttons arrive one after another, 40ms apart (the hot-take options set their own delay). */
.app-controls > .nt-btn:nth-child(2) { animation-delay: 40ms; }
.app-controls > .nt-btn:nth-child(3) { animation-delay: 80ms; }
.app-controls > .nt-btn:nth-child(4) { animation-delay: 120ms; }
.app-controls > .nt-btn:nth-child(5) { animation-delay: 160ms; }
.app-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.app-hint { font-size: 11px; line-height: 1.5; color: var(--amber-dim); text-shadow: none; }
.app-hint a { color: var(--amber-dim); }

.app-pass { display: block; width: 160px; height: 160px; margin: 14px auto 0; image-rendering: pixelated; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nt-noscript { padding: 24px 16px; font: 15px/1.6 var(--font-mono); color: var(--amber); }

@media (min-width: 700px) {
  .app-log { padding-top: 32px; }
  .app-logo { font-size: 84px; }
  .app-sign-ai { font-size: 110px; }
  .app-sign-script { font-size: 72px; }
}
