@font-face { font-family: 'Lia Element'; src: url('fonts/LiaElement-Light.woff2') format('woff2'); font-weight: 300 400; font-display: swap; }
@font-face { font-family: 'Lia Element'; src: url('fonts/LiaElement-Bold.woff2') format('woff2'); font-weight: 600 800; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/IBMPlexMono-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --ink: #2B0E6A; --ink-2: #1c0a47; --accent: #EE7474; --bg: #faf8f5; --soft: #e9e2ff; --violet: #8b6cf0;
  --text: #2a2540; --muted: #6d6884; --line: rgba(43, 14, 106, .12); --card: #fff;
  --font: 'Lia Element', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --shadow: 0 1px 2px rgba(43,14,106,.06), 0 18px 40px -22px rgba(43,14,106,.35);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; font-weight: 800; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* the prompt box (shared by all three versions) */
.prompt { background: var(--ink-2); color: #e9e4ff; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.08); }
.prompt-head .lbl { font-size: 14px; color: #b9b0e6; }
.prompt-head .lbl b { color: #fff; font-weight: 700; }
.copy { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--violet); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; }
.copy:hover { transform: translateY(-1px); }
.copy.done { background: #2f9e6e; }
.copy svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.prompt pre { margin: 0; padding: 20px 22px; max-height: 460px; overflow: auto; white-space: pre-wrap; word-break: break-word; font-family: var(--font); font-size: 15px; line-height: 1.75; direction: rtl; text-align: start; scrollbar-color: #6a58b8 transparent; }
.prompt pre:focus-visible { outline-offset: -3px; }

.toast { position: fixed; inset-inline: 0; bottom: 22px; margin-inline: auto; width: max-content; max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px; opacity: 0; translate: 0 12px; transition: opacity .2s, translate .2s; pointer-events: none; z-index: 60; }
.toast.on { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
