/* Source: mobile/src/global.css and role-play/chat components. */
.native-demo {
  --app-background: #f4f4f6;
  --app-foreground: #111114;
  --app-secondary: #68686f;
  --app-surface: #ffffff;
  --app-muted: #e9e9ec;
  --app-action: #1c1c21;
  --app-border: rgba(17, 17, 20, 0.1);
  --app-input: rgba(17, 17, 20, 0.14);
  --app-radius-control: 12px;
  --app-radius-card: 20px;
  color: var(--app-foreground); text-align: left; min-width: 0;
}
#hero-preview { background: var(--app-background); border: 1px solid var(--app-border); border-radius: 24px; padding: 16px; }
.preview-scene { overflow: hidden; border-radius: var(--app-radius-card); }
.story-image { display: block; width: 100%; height: auto; overflow: hidden; }
.preview-conversation { padding: 16px 4px 4px; }
.preview-location { color: var(--app-secondary); font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
.app-user-bubble { width: fit-content; max-width: 86%; padding: 12px 16px; border-radius: var(--app-radius-card); background: var(--app-muted); font-size: 16px; line-height: 1.7; margin: 0 0 20px auto; }
.app-character-message { display: flex; align-items: flex-start; gap: 10px; }
.app-avatar { flex: 0 0 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--app-muted); font-size: 16px; font-weight: 600; }
.app-character-content { flex: 1; min-width: 0; }
.app-character-name { color: var(--app-secondary); font-size: 13px; margin: 0 0 6px; line-height: 1.5; }
.app-incoming { background: var(--app-surface); padding: 14px 16px 8px; border-radius: 0 var(--app-radius-card) var(--app-radius-card); }
.app-incoming > p { font-size: 16px; line-height: 1.75; word-break: normal; overflow-wrap: anywhere; }
.app-references { display: flex; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.app-reference { color: var(--app-secondary); font-size: 13px; line-height: 1.5; border: 0; background: transparent; text-align: right; padding: 4px 0; }
button.app-reference { min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.choices-title { font-size: 16px; line-height: 1.5; font-weight: 500; margin-bottom: 16px; }
.story-choices { display: grid; gap: 12px; }
.app-recommendation { display: flex; gap: 12px; align-items: center; width: 100%; min-height: 60px; padding: 16px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); background: var(--app-surface); text-align: left; font-size: 16px; line-height: 1.6; }
.app-recommendation svg { width: 18px; height: 18px; flex: 0 0 18px; }
.app-recommendation span { flex: 1; }
.app-recommendation[aria-pressed='true'] { border-color: var(--app-action); box-shadow: inset 0 0 0 1px var(--app-action); }
.story-send-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; }
.story-hint { color: var(--app-secondary); font-size: 13px; line-height: 1.5; }
.app-send { display: inline-flex; align-items: center; justify-content: center; gap: 12px; background: var(--app-action); color: white; border: 0; border-radius: 999px; padding: 12px 20px; min-height: 48px; font-size: 16px; font-weight: 500; flex: 0 0 auto; }
.app-send svg { width: 20px; height: 20px; }
.app-send:disabled { background: var(--app-muted); color: var(--app-secondary); cursor: default; }
.story-answer { scroll-margin-top: 24px; }
.story-reset { margin-top: 16px; font-size: 14px; color: var(--app-secondary); }
.scripture-text { line-height: 1.8; font-size: 17px; }
.scripture-source { font-size: 13px; color: var(--app-secondary); margin-top: 16px; }
.app-close { display: block; margin: 24px 0 0 auto; min-height: 44px; padding: 8px 20px; border-radius: var(--app-radius-control); border: 0; background: var(--app-action); color: white; }
@media (hover: hover) and (pointer: fine) { .app-recommendation:hover { background: #fafafa; } }
@media (max-width: 600px) {
  #hero-preview { padding: 12px; border-radius: 20px; }
  .preview-conversation { padding: 16px 0 0; }
  .app-user-bubble { padding: 10px 14px; }
  .app-incoming { padding: 12px 14px 8px; }
  .app-character-message { gap: 8px; }
  .app-avatar { flex-basis: 32px; height: 32px; }
  .app-recommendation { padding: 14px; gap: 10px; }
  .story-send-row { flex-wrap: wrap; }
  .app-send { margin-left: auto; }
  .scripture-dialog { margin: auto 0 0; width: 100%; max-width: none; max-height: 80dvh; border-radius: 24px 24px 0 0; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
}

.native-demo button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
