:root {
  --bg: #1b0638; --bg2: #2b0a55; --panel: #33106a; --panel2: #41187f;
  --ink: #fff; --ink2: #e7dcff; --ink3: #bda9e8; --line: rgba(255,255,255,.18);
  --pink: #ff2e93; --orange: #ff8a00; --gold: #ffd23f; --teal: #00e5c7; --violet: #8b5cff; --blue: #2e9bff;
  --rainbow: linear-gradient(100deg, #ffd23f, #ff8a00 28%, #ff2e93 60%, #8b5cff);
  --hot: linear-gradient(100deg, #ff8a00, #ff2e93);
  --cool: linear-gradient(100deg, #00c9b1, #2e9bff);
  --r: 20px; --gutter: 16px;
  --display: 'Baloo 2', 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --body: 'Poppins', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 400 15px/1.5 var(--body); min-height: 100dvh; overflow-x: hidden;
  background: radial-gradient(900px 500px at 90% -10%, #ff2e9366, transparent 65%), radial-gradient(800px 500px at -10% 25%, #00e5c733, transparent 60%), radial-gradient(800px 600px at 110% 80%, #ff8a0033, transparent 60%), linear-gradient(180deg, var(--bg2), var(--bg) 60%);
  background-attachment: fixed; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 9vw, 46px); } h2 { font-size: 24px; } h3 { font-size: 18px; }
p { margin: 0; } a { color: var(--gold); }
#sparkles { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }
#app { position: relative; max-width: 640px; margin: 0 auto; padding: 0 var(--gutter) calc(96px + env(safe-area-inset-bottom)); }
.view { animation: rise .35s ease both; }
body.shot .view { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .view, .shine::after, .logo-title { animation: none !important; } }

.demo-bar { background: var(--gold); color: #2b0a55; font-size: 12.5px; font-weight: 600; text-align: center; padding: 5px 10px; position: relative; z-index: 5; }
.top { display: flex; align-items: center; gap: 10px; padding: calc(14px + env(safe-area-inset-top)) 0 10px; }
.top .back { background: rgba(255,255,255,.14); border: 0; color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 20px; cursor: pointer; flex: none; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; min-width: 0; }
.brand b { font: 800 21px var(--display); }
.logo-title { background: var(--rainbow); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 5s linear infinite; }
@keyframes flow { to { background-position: 200% center; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 16px; font: 700 16px var(--body); color: #fff; text-decoration: none; cursor: pointer; background: var(--hot); box-shadow: 0 8px 22px #ff2e9355; transition: transform .12s; width: 100%; position: relative; overflow: hidden; text-align: center; }
.btn:active { transform: scale(.975); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.cool { background: var(--cool); box-shadow: 0 8px 22px #00c9b144; color: #06222b; }
.btn.gold { background: linear-gradient(100deg, #ffe066, #ffb800); color: #3a1500; box-shadow: 0 8px 22px #ffb80044; }
.btn.ghost { background: rgba(255,255,255,.12); box-shadow: none; border: 1.5px solid var(--line); }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 12px; width: auto; }
.btn.danger { background: #d4144f; box-shadow: none; }
.shine::after { content: ''; position: absolute; top: 0; bottom: 0; width: 45%; left: -60%; background: linear-gradient(100deg, transparent, #ffffff77, transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 55%, 100% { left: 130%; } }
.row { display: flex; gap: 10px; flex-wrap: wrap; } .row > * { flex: 1 1 140px; }
.stack { display: grid; gap: 14px; } .mt { margin-top: 14px; } .mt2 { margin-top: 26px; }
.muted { color: var(--ink3); } .small { font-size: 13px; } .center { text-align: center; }
.grad { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Are you a... */
.hero { text-align: center; padding: 10px 0 16px; }
.hero h1 { margin-top: 2px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 99px; font-size: 13px; font-weight: 700; background: linear-gradient(100deg, #ffe066, #ffb800); color: #3a1500; }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.who a { position: relative; display: block; border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; min-height: 250px; box-shadow: 0 10px 26px #0006; transition: transform .14s; }
.who a:active { transform: scale(.97); }

.who .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.who .lab { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; background: linear-gradient(transparent, #14052ce6 55%); }
.who b { display: block; font: 800 17px/1.12 var(--display); }
.who span { font-size: 12px; color: var(--ink2); line-height: 1.25; display: block; margin-top: 2px; }
details.qa { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
details.qa summary { cursor: pointer; font-weight: 600; padding: 13px 14px; min-height: 48px; }
details.qa[open] summary { color: var(--gold); }
details.qa p { padding: 0 14px 14px; color: var(--ink2); }
.tilesoon { position: relative; border-radius: var(--r); overflow: hidden; min-height: 250px; box-shadow: 0 10px 26px #0006; }
.tilesoon .art { position: absolute; inset: 0; width: 100%; height: 100%; }

.who a.else { background: linear-gradient(135deg, #8b5cff, #00c9b1); display: flex; flex-direction: column; justify-content: center; padding: 14px; min-height: 250px; }
.who a.else b { font-size: 18px; } .who a.else .em { font-size: 28px; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--ink3); margin: 20px 0 12px; font-size: 13px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Cards & panels */
.panel { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.panel.hot { background: linear-gradient(130deg, #ff2e9333, #ff8a0033); border-color: #ff8a0088; }
.panel.gold { background: linear-gradient(130deg, #ffd23f2b, #ff8a0022); border-color: #ffd23f99; }
.cards { display: grid; gap: 14px; }
@media (min-width: 560px) { .cards.two { grid-template-columns: 1fr 1fr; } }
.card { display: block; background: var(--panel); border-radius: var(--r); overflow: hidden; color: #fff; text-decoration: none; box-shadow: 0 8px 24px #0005; position: relative; transition: transform .14s; }
.card:active { transform: scale(.985); }
.card .pic { display: block; height: 158px; position: relative; overflow: hidden; background: var(--panel2); }
.card .pic .art, .card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .body { padding: 12px 14px 14px; }
.card h3 { overflow-wrap: anywhere; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; font-size: 11.5px; font-weight: 700; border-radius: 99px; background: rgba(255,255,255,.14); color: #fff; white-space: nowrap; }
.badge.gold { background: var(--gold); color: #3a1500; } .badge.teal { background: var(--teal); color: #06222b; } .badge.pink { background: var(--pink); }
.card .on-pic { position: absolute; top: 9px; left: 9px; display: flex; gap: 6px; flex-wrap: wrap; right: 50px; }
.heart { position: absolute; top: 8px; right: 8px; width: 42px; height: 42px; border-radius: 50%; border: 0; font-size: 19px; color: #fff; background: #14052c99; cursor: pointer; z-index: 2; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink2); margin-top: 5px; }
.stars { color: var(--gold); font-weight: 700; }

/* Search chips & tiles */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 8px 13px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1.5px solid var(--line); color: #fff; font: 600 13.5px var(--body); cursor: pointer; }
.chip[aria-pressed=true] { background: var(--hot); border-color: transparent; }
.cattiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cattile { position: relative; min-height: 96px; border: 0; border-radius: 16px; overflow: hidden; color: #fff; padding: 8px; font: 700 12.5px/1.2 var(--body); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; text-align: center; }
.cattile .em { font-size: 28px; }
.t0 { background: linear-gradient(135deg, #7b2ff7, #ff2e93); } .t1 { background: linear-gradient(135deg, #ff8a00, #ff2e63); } .t2 { background: linear-gradient(135deg, #009fc2, #8b5cff); }
.t3 { background: linear-gradient(135deg, #e0468e, #ff8a00); } .t4 { background: linear-gradient(135deg, #2358e0, #00a896); } .t5 { background: linear-gradient(135deg, #d43f1f, #d99300); } .t6 { background: linear-gradient(135deg, #00936b, #2377e0); }
.cattile[aria-pressed=true] { outline: 3px solid var(--gold); outline-offset: 1px; }
.seclabel { font: 800 19px var(--display); margin: 22px 0 10px; }

/* Forms */
label.f { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
label.f small { display: block; font-weight: 400; color: var(--ink3); margin-top: 1px; }
input, textarea, select { width: 100%; margin-top: 6px; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(255,255,255,.1); color: #fff; font: 400 16px var(--body); }
select option { color: #111; background: #fff; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #cdbdf0a8; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: var(--pink); }
.check { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.4; margin-bottom: 12px; cursor: pointer; }
input[type=date] { color-scheme: dark; }
.pin { text-align: center; font: 800 30px var(--display); letter-spacing: .32em; }
.err { background: #d4144f; color: #fff; border-radius: 12px; padding: 10px 13px; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.ok { background: #00a57f; color: #fff; border-radius: 12px; padding: 10px 13px; font-size: 14px; font-weight: 500; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--panel2); }
.thumb img, .thumb .art { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; right: 4px; top: 4px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #14052cd0; color: #fff; cursor: pointer; font-size: 15px; }
.addphoto { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border: 2px dashed var(--gold); border-radius: 12px; font-size: 12.5px; font-weight: 600; color: var(--gold); cursor: pointer; text-align: center; padding: 6px; }
.steps { display: flex; gap: 6px; margin-bottom: 14px; } .steps i { flex: 1; height: 6px; border-radius: 9px; background: rgba(255,255,255,.15); } .steps i.on { background: var(--rainbow); }

/* Listing page */
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery > * { flex: 0 0 86%; height: 240px; border-radius: var(--r); overflow: hidden; scroll-snap-align: center; }
.gallery .art, .gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lock { position: relative; border-radius: var(--r); padding: 18px; background: linear-gradient(130deg, #7b2ff7, #ff2e93 70%, #ff8a00); box-shadow: 0 12px 30px #ff2e9344; }
.blur { filter: blur(6px); user-select: none; font-weight: 600; margin: 8px 0 12px; }
.contact a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 52px; background: rgba(255,255,255,.12); border-radius: 14px; color: #fff; text-decoration: none; font-weight: 600; margin-top: 8px; overflow-wrap: anywhere; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); padding: 10px var(--gutter); z-index: 20; background: linear-gradient(transparent, var(--bg) 40%); }
.sticky-cta > * { max-width: 608px; margin: 0 auto; display: flex; }

/* Stats (single series; bar chart with tap/hover detail) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { border-radius: 16px; padding: 12px 10px; background: rgba(255,255,255,.09); border: 1px solid var(--line); cursor: pointer; color: #fff; font-family: var(--body); text-align: left; }
.tile[aria-pressed=true] { border: 2px solid var(--gold); background: rgba(255,210,63,.13); }
.tile b { display: block; font: 800 28px/1 var(--display); }
.tile span { display: block; font-size: 12px; line-height: 1.25; color: var(--ink2); margin-top: 4px; }
.chart { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 140px; margin-top: 12px; border-bottom: 1px solid var(--line); }
.chart button { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; display: flex; align-items: flex-end; cursor: pointer; }
.chart i { display: block; width: 100%; min-height: 2px; background: var(--gold); border-radius: 4px 4px 0 0; }
.chart button:hover i, .chart button:focus-visible i, .chart button.sel i { background: #fff; }
.chart-x { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink3); margin-top: 5px; }
.chart-read { min-height: 22px; font-size: 14px; font-weight: 600; }

/* Bottom nav */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; background: #1b0638f2; backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav a { flex: 1; max-width: 160px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 600; color: var(--ink3); text-decoration: none; gap: 1px; }
.nav a .em { font-size: 22px; line-height: 1.1; filter: grayscale(.25); }
.nav a.on { color: var(--gold); } .nav a.on .em { filter: none; transform: scale(1.12); }

/* Sheets, toast */
.sheet-back { position: fixed; inset: 0; z-index: 40; background: #0a0218bb; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 640px; max-height: 92dvh; overflow: auto; background: linear-gradient(170deg, #4a1a93, #2b0a55); border-radius: 24px 24px 0 0; padding: 18px var(--gutter) calc(20px + env(safe-area-inset-bottom)); animation: up .24s ease both; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.offer { display: flex; width: 100%; gap: 12px; align-items: center; justify-content: space-between; padding: 14px; border-radius: 16px; background: rgba(255,255,255,.1); border: 2px solid var(--line); color: #fff; font: 600 15px var(--body); cursor: pointer; text-align: left; margin-bottom: 10px; }
.offer[aria-pressed=true] { border-color: var(--gold); background: rgba(255,210,63,.14); }
.offer b { font: 800 22px var(--display); color: var(--gold); flex: none; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 70; background: #fff; color: #2b0a55; font-weight: 600; padding: 10px 18px; border-radius: 99px; box-shadow: 0 8px 28px #0008; max-width: calc(100% - 32px); text-align: center; font-size: 14px; }
.empty { text-align: center; padding: 26px 14px; }
.empty .em { font-size: 52px; }
ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; } ul.ticks li::before { content: '✦ '; color: var(--gold); }
.foot { text-align: center; font-size: 12.5px; color: var(--ink3); margin-top: 26px; line-height: 2; }
.foot a { color: var(--ink2); margin: 0 6px; }
.adminrow { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); }
.adminrow > div { min-width: 0; overflow-wrap: anywhere; } .adminrow .btn { flex: none; }
.spinner { text-align: center; padding: 60px 0; font-size: 40px; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.25) rotate(20deg); } }
