/**
 * Demo chrome for the Artist World world.
 *
 * Deliberately small. The world's own theme owns every surface; this only adds
 * the way back to the demos index and the notice the harness raises when a
 * link or form leads somewhere the demo does not include.
 *
 * Namespaced .awd-* so it can never collide with the ported .aw-* theme.
 */

.awd-return {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(10, 10, 15, 0.82);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  color: #e9e9ee;
  font: 500 12px/1 "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.42);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.awd-return:hover,
.awd-return:focus-visible {
  background: rgba(18, 18, 26, 0.94);
  border-color: rgba(0, 255, 136, 0.55);
  color: #fff;
  transform: translateY(-1px);
}

.awd-return svg { flex: none; opacity: 0.75; }
.awd-return sup { font-size: 0.62em; vertical-align: super; opacity: 0.75; }

@media print { .awd-return { display: none; } }

.awd-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 2147483001;
  transform: translate(-50%, 14px);
  max-width: min(90vw, 30rem);
  padding: 11px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 8, 12, 0.94);
  color: #e9e9ee;
  font: 500 13px/1.35 "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.awd-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Sign-in directions on the login form. The demo swaps between a captured
   signed-out and signed-in world, so the visitor needs the credentials. */
.awd-login-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin: 0 0 18px;
  padding: 12px 15px;
  border: 1px solid rgba(0, 255, 136, 0.35);
  border-left-width: 3px;
  border-radius: 4px;
  background: rgba(0, 255, 136, 0.06);
  color: #d6d6de;
  font: 400 13px/1.45 "Share Tech Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.awd-login-hint strong {
  color: #00ff88;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.awd-login-hint code {
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font: inherit;
}

.awd-login-error {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 0, 102, 0.5);
  border-radius: 4px;
  background: rgba(255, 0, 102, 0.08);
  color: #ff7aa8;
  font: 400 13px/1.4 "Share Tech Mono", ui-monospace, monospace;
}

/* The feed locks the page to the viewport; keep the return button clear of
   the phone frame's bottom edge there. */
body.sfvv-feed-page .awd-return,
body[class*="whirl"] .awd-return { bottom: 16px; }
