/* Find Great Architecture: the AI jury presentation generator button (v29 · 01 A, owner 21 Oct 2026), on every page
   (owner, 24 Oct 2026): in the top-right corner of the wall's name panel, and in every slim bar (the wall's once the panel
   has gone, the map's, and every other page's), the full name on a computer, just "AI" on a phone. A rainbow rim turns
   slowly and a sweep of light crosses it. On a phone it opens a sheet from the bottom that leads to /studio/ (app.js on the
   wall, ai.js elsewhere). Shared by the wall and every page, so it looks the same everywhere. */
@property --ai-a { syntax: '<angle>'; inherits: false; initial-value: 40deg; }
.ai-btn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 12px;
  font: 700 15px/1 var(--sans); color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate; border: 2px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--ai-a), var(--ai-1), var(--ai-2), var(--ai-3), var(--ai-4), var(--ai-5), var(--ai-6), var(--ai-1)) border-box;
  box-shadow: 0 6px 22px var(--ai-glow); animation: ai-spin 6s linear infinite; transition: transform .12s ease; }
.ai-btn::after { content: ''; position: absolute; z-index: -1; inset: -2px; background: linear-gradient(105deg, transparent 38%, var(--ai-sheen) 50%, transparent 62%); transform: translateX(-130%); animation: ai-sweep 3.6s ease-in-out infinite; }
.ai-btn:active { transform: scale(.97); }
.ai-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
@media (hover: hover) { .ai-btn:hover { color: var(--red); } }
.ai-spark { width: 18px; height: 18px; flex: none; } .ai-spark path { fill: var(--ai-1); } .ai-spark path + path { fill: var(--ai-4); }
.ai-short { display: none; }
#aiBtn { position: absolute; z-index: 3; top: 22px; right: 24px; } /* the wall's name panel */
/* in a slim bar, the same height as the buttons beside it */
.ai-bar { height: 40px; padding: 0 13px 0 10px; gap: 7px; font-size: 14px; text-decoration: none; }
.bar .ai-bar { display: none; } body.slim .bar .ai-bar, body.mapped .bar .ai-bar { display: inline-flex; }
@media (max-width: 1080px) { .ai-bar .ai-long { display: none; } .ai-bar .ai-short { display: inline; } }
@keyframes ai-spin { to { --ai-a: 400deg; } }
@keyframes ai-sweep { 0%, 45% { transform: translateX(-130%); } 80%, 100% { transform: translateX(130%); } }
body.slim #aiBtn, body.mapped #aiBtn { display: none; }
.ai-veil { position: fixed; inset: 0; z-index: 88; background: var(--ai-veil); }
.ai-veil[hidden], .ai-pop[hidden] { display: none; }
.ai-pop { position: fixed; z-index: 90; top: calc(84px + env(safe-area-inset-top, 0px)); right: 40px; width: 380px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 20px; border-radius: var(--r-panel);
  display: flex; flex-direction: column; gap: 12px; color: var(--ink); background: var(--glass-strong); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--rim); box-shadow: var(--glass-shadow), 0 24px 60px var(--ai-glow); animation: ai-in .22s ease both; }
@keyframes ai-in { from { opacity: 0; transform: translateY(-6px); } }
.ai-head { display: flex; align-items: center; gap: 8px; padding-right: 36px; } .ai-head .ai-spark { width: 22px; height: 22px; }
.ai-head h2 { margin: 0; font: 900 26px/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.ai-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--hair); border-radius: var(--r); background: var(--surface); color: var(--ink); cursor: pointer; }
.ai-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (hover: hover) { .ai-close:hover { color: var(--red); border-color: var(--red); } }
.ai-soon { margin: -4px 0 0; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); }
.ai-board { width: 100%; height: auto; max-height: 300px; object-fit: cover; object-position: top; display: block; border: 1px solid var(--hair); }
.ai-text { margin: 0; font-size: 15px; line-height: 1.45; }
.ai-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; }
.ai-list li::before { content: '✓ '; color: var(--red); }
.ai-go { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; background: var(--red); color: #fff; font: 700 16px var(--sans); text-decoration: none; }
@media (hover: hover) { .ai-go:hover { background: var(--red-ink); color: #fff; } }
.ai-fine { margin: 0; text-align: center; font: 500 12px var(--mono); letter-spacing: .03em; color: var(--graphite); }
.ai-legal a { color: inherit; }
@media (hover: hover) { .ai-legal a:hover { color: var(--red); } }
@media (max-width: 820px) {
  #aiBtn { top: 12px; right: 12px; height: 36px; padding: 0 11px 0 9px; gap: 6px; font-size: 14px; border-radius: 10px; }
  .ai-long { display: none; } .ai-short { display: inline; }
  .ai-bar { padding: 0 10px 0 8px; gap: 5px; }
  .ai-pop { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 88vh; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); animation-name: ai-up; }
  .ai-board { max-height: 220px; }
}
@keyframes ai-up { from { transform: translateY(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ai-btn, .ai-btn::after, .ai-pop { animation: none; } }
