/* event.framefusion.space: tiny, fast, accessible. No libraries. */
:root {
  --bg: #f6f4fe; --surface: #ffffff; --surface-2: #f1eefc; --text: #14112a; --muted: #5e5a7a; --border: #e3ddf6;
  --brand: #6c4cf5; --brand-ink: #ffffff; --brand-soft: #ece6ff; --focus: #6c4cf5; --shadow: 0 24px 60px -30px rgb(40 20 120 / .45);
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0f0c1f; --surface: #191433; --surface-2: #221c42; --text: #f1eeff; --muted: #b1abd3; --border: #2e2754;
  --brand: #a58cff; --brand-ink: #110d22; --brand-soft: #2a2152; --focus: #b9a5ff; --shadow: 0 24px 60px -30px rgb(0 0 0 / .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f0c1f; --surface: #191433; --surface-2: #221c42; --text: #f1eeff; --muted: #b1abd3; --border: #2e2754;
    --brand: #a58cff; --brand-ink: #110d22; --brand-soft: #2a2152; --focus: #b9a5ff; --shadow: 0 24px 60px -30px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100dvh; display: flex; flex-direction: column; font-family: var(--font); color: var(--text); line-height: 1.5;
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%), var(--bg); }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px clamp(14px, 4vw, 32px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; min-height: 44px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 1.1rem; cursor: pointer; }
.wrap { flex: 1; display: grid; place-items: start center; padding: clamp(12px, 6vh, 64px) 14px 24px; }
.card { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(20px, 5vw, 36px); box-shadow: var(--shadow); }
.kicker { margin: 0 0 6px; color: var(--brand); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 6vw, 2.3rem); line-height: 1.15; }
.lead { margin: 0 0 20px; color: var(--muted); }
.label { display: block; font-weight: 700; margin: 4px 0 6px; }
.combo { position: relative; }
.input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 1rem; }
.input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: min(320px, 50vh); overflow: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: 12px; cursor: pointer; }
.opt[aria-selected='true'], .opt:hover { background: var(--brand-soft); }
.opt img, .logo-ph { width: 36px; height: 36px; flex: none; border-radius: 9px; object-fit: contain; background: #fff; }
.logo-ph { display: grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 800; }
.opt-empty { padding: 12px; color: var(--muted); }
.status { min-height: 1.4em; margin: 8px 0 0; color: var(--muted); font-size: .9rem; }
.btn { min-height: 50px; width: 100%; margin-top: 10px; border: 0; border-radius: 14px; background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:not(:disabled):active { transform: scale(.99); }
.btn.ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--border); }
.last { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; margin: 0 0 18px; border-radius: 16px; text-decoration: none; color: var(--text);
  background: var(--brand-soft); border: 1.5px solid color-mix(in srgb, var(--brand) 35%, transparent); }
.last-logo { width: 40px; height: 40px; flex: none; }
.last-logo img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; }
.last-text { flex: 1; display: grid; } .last-text small { color: var(--muted); } .last-go { font-size: 1.3rem; color: var(--brand); }
.request { margin: 18px 0 0; text-align: center; color: var(--muted); font-size: .95rem; }
.request a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.foot { text-align: center; padding: 18px; color: var(--muted); font-size: .85rem; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; }
dialog { border: 0; padding: 0; border-radius: 22px; background: var(--surface); color: var(--text); width: min(440px, calc(100% - 28px)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgb(10 6 30 / .5); }
.dialog { padding: 24px; }
.dialog h2 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.3; }
.dialog p { margin: 0 0 18px; color: var(--muted); overflow-wrap: anywhere; }
.dialog-actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.dialog-actions .btn { margin: 0; }
@media (max-width: 380px) { .dialog-actions { grid-template-columns: 1fr; } .dialog-actions .btn.ghost { order: 2; } }
/* Subtle motion, never blocking. */
.card { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
dialog[open] { animation: pop .22s ease-out both; }
dialog[open]::backdrop { animation: fade .22s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
[hidden] { display: none !important; } /* .last etc. set display: flex, which would beat the hidden attribute */
