:root {
  --ink: #f7f0ff;
  --muted: #afa7be;
  --plum: #120d1d;
  --panel: rgba(35, 26, 51, 0.74);
  --line: rgba(255, 255, 255, 0.12);
  --violet: #aa7cff;
  --coral: #ff716c;
  --lime: #d1ff5c;
  --mono: 'DM Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--plum); }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: radial-gradient(circle at 72% 6%, rgba(164, 89, 178, .25), transparent 24rem), linear-gradient(135deg, #120d1d 0%, #181222 52%, #0d1420 100%);
  font-family: var(--sans);
}
button, textarea { font: inherit; }
button { cursor: pointer; }

.ambient { position: fixed; border-radius: 999px; filter: blur(85px); pointer-events: none; opacity: .52; }
.ambient-one { width: 22rem; height: 22rem; top: 47%; left: -11rem; background: rgba(255, 97, 119, .26); }
.ambient-two { width: 19rem; height: 19rem; top: 10%; right: -9rem; background: rgba(102, 122, 255, .24); }

.age-gate { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 1.25rem; background: rgba(8, 5, 13, .72); backdrop-filter: blur(18px); }
.age-gate.is-hidden { animation: fade-away .45s ease forwards; pointer-events: none; }
.age-card { width: min(100%, 34rem); padding: clamp(1.9rem, 5vw, 3.5rem); border: 1px solid rgba(255,255,255,.16); border-radius: 1.5rem; background: linear-gradient(145deg, rgba(49, 34, 69, .96), rgba(20, 14, 30, .96)); box-shadow: 0 2rem 6rem rgba(0,0,0,.42); }
.seal { display: grid; width: 3.4rem; height: 3.4rem; place-items: center; margin-bottom: 1.8rem; border: 1px solid rgba(209,255,92,.6); border-radius: 50%; color: var(--lime); font: 500 .8rem var(--mono); letter-spacing: .05em; }
.eyebrow { margin: 0; color: var(--lime); font: 500 .67rem var(--mono); letter-spacing: .14em; }
.age-card h1 { max-width: 12ch; margin: .7rem 0 1rem; font-size: clamp(2.2rem, 6vw, 4rem); line-height: .96; letter-spacing: -.065em; }
.gate-copy { max-width: 38ch; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.consent-row { display: flex; gap: .75rem; align-items: flex-start; margin: 2rem 0 1.25rem; color: #ddd5e6; font-size: .91rem; line-height: 1.45; cursor: pointer; }
.consent-row input { width: 1.08rem; height: 1.08rem; margin-top: .12rem; accent-color: var(--coral); }
.primary-button, .send-button { border: 0; border-radius: .7rem; color: #201429; background: var(--lime); font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.primary-button { width: 100%; padding: .95rem 1.1rem; }
.primary-button span, .send-button span { margin-left: .45rem; font-size: 1.1em; }
.primary-button:hover:not(:disabled), .send-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 .75rem 1.5rem rgba(209,255,92,.14); }
.primary-button:disabled { cursor: not-allowed; opacity: .38; }
.gate-note { margin: 1.2rem 0 0; color: #80788d; font-size: .73rem; line-height: 1.5; }

.app-shell { position: relative; width: min(1440px, 100%); min-height: 100vh; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 4rem) 2.5rem; opacity: .28; filter: blur(2px); transition: opacity .35s ease, filter .35s ease; }
.app-shell.is-ready { opacity: 1; filter: none; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 5.6rem; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: .65rem; align-items: center; color: var(--ink); text-decoration: none; font-size: 1.2rem; font-weight: 700; letter-spacing: -.055em; }
.brand > span:last-child span { color: var(--coral); }
.brand-mark { display: inline-flex; width: 1.6rem; height: 1.6rem; flex-direction: column; justify-content: center; gap: .16rem; transform: rotate(-14deg); }
.brand-mark i { display: block; height: .21rem; border-radius: 99px; background: var(--coral); }
.brand-mark i:nth-child(1) { width: 68%; }.brand-mark i:nth-child(2) { width: 100%; background: var(--lime); }.brand-mark i:nth-child(3) { width: 48%; align-self: flex-end; }
.topbar-right { display: flex; align-items: center; gap: .52rem; color: var(--muted); font: .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.live-dot { width: .48rem; height: .48rem; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 .26rem rgba(255,113,108,.13); animation: pulse 1.8s infinite; }
.text-button { margin-left: 1.1rem; padding: .35rem 0; border: 0; color: var(--ink); background: transparent; font: .68rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.text-button:hover { color: var(--lime); }

.club-layout { display: grid; grid-template-columns: minmax(14rem, 19rem) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 4rem); padding-top: clamp(2rem, 5vw, 4.75rem); }
.control-deck { align-self: start; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--panel); box-shadow: inset 0 1px rgba(255,255,255,.05); backdrop-filter: blur(13px); }
.deck-heading h2 { margin: .5rem 0 1.8rem; font-size: 1.58rem; letter-spacing: -.055em; }
.setting-group { margin: 0; padding: 1.3rem 0; border: 0; border-top: 1px solid var(--line); }
.setting-group legend { padding: 0; margin-bottom: .75rem; color: #ddd5e6; font-size: .82rem; font-weight: 600; }
.segmented { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .28rem; padding: .25rem; border-radius: .64rem; background: rgba(255,255,255,.055); }
.segmented button, .style-pills button { border: 1px solid transparent; border-radius: .45rem; color: var(--muted); background: transparent; font-size: .73rem; transition: .18s ease; }
.segmented button { padding: .56rem .15rem; }
.segmented button:hover, .style-pills button:hover { color: var(--ink); }
.segmented button.is-active { color: #1a1321; background: var(--coral); font-weight: 700; }
.setting-hint { min-height: 2.4em; margin: .76rem 0 0; color: #867e93; font-size: .73rem; line-height: 1.4; }
.style-pills { display: flex; flex-wrap: wrap; gap: .38rem; }
.style-pills button { padding: .47rem .62rem; border-color: rgba(255,255,255,.1); }
.style-pills button.is-active { border-color: rgba(209,255,92,.62); color: var(--lime); background: rgba(209,255,92,.08); }
.boundary-card { display: flex; gap: .65rem; margin-top: .75rem; padding: .85rem; border-radius: .7rem; background: rgba(209,255,92,.065); color: var(--muted); }
.boundary-icon { display: grid; width: 1.15rem; height: 1.15rem; flex: none; place-items: center; border-radius: 50%; color: #1a2520; background: var(--lime); font-size: .7rem; font-weight: 800; }
.boundary-card strong { display: block; margin-bottom: .25rem; color: #e8e2ec; font-size: .7rem; }.boundary-card p { margin: 0; font-size: .64rem; line-height: 1.45; }

.chat-stage { max-width: 48rem; min-width: 0; }
.stage-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.session-label { padding: .29rem .47rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: .59rem var(--mono); letter-spacing: .07em; }
.messages { display: flex; min-height: 19rem; flex-direction: column; justify-content: flex-end; gap: 1rem; padding: 1.4rem 0; }
.message { display: flex; max-width: 92%; gap: .65rem; align-items: flex-end; animation: rise-in .28s ease both; }
.message-user { align-self: flex-end; flex-direction: row-reverse; }.message-bot { align-self: flex-start; }
.avatar { display: grid; width: 1.85rem; height: 1.85rem; flex: none; place-items: center; border: 1px solid rgba(209,255,92,.5); border-radius: .53rem; color: var(--lime); background: #251c31; font: 500 .61rem var(--mono); }
.message-user .avatar { border-color: rgba(255,113,108,.54); color: #ffa29e; background: #37202d; }
.bubble { padding: .88rem 1rem; border: 1px solid var(--line); border-radius: .3rem 1rem 1rem 1rem; background: rgba(43,33,56,.7); box-shadow: 0 .75rem 2rem rgba(0,0,0,.08); }
.message-user .bubble { border-radius: 1rem .3rem 1rem 1rem; background: linear-gradient(145deg, #6b3f68, #3e2b56); }.bubble p { margin: 0; color: #f1eaf5; font-size: .94rem; line-height: 1.53; white-space: pre-wrap; }.message-kicker { margin-bottom: .42rem !important; color: var(--lime) !important; font: .56rem var(--mono); letter-spacing: .08em; }
.message-actions { display: flex; gap: .7rem; margin: .5rem 0 0 2.55rem; }.message-actions button { padding: 0; border: 0; color: #a49ba9; background: none; font: .62rem var(--mono); letter-spacing: .05em; text-transform: uppercase; }.message-actions button:hover { color: var(--lime); }.typing .bubble { color: var(--muted); font: .76rem var(--mono); }.typing-dots::after { content: '...'; animation: dots 1.2s steps(4, end) infinite; }
.quick-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; }.quick-prompt { padding: .48rem .65rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: #d5cddd; background: rgba(255,255,255,.035); font-size: .69rem; transition: .18s ease; }.quick-prompt:hover { border-color: rgba(255,113,108,.7); color: #fff; background: rgba(255,113,108,.1); }
.composer { border: 1px solid rgba(209,255,92,.3); border-radius: .95rem; background: rgba(22,17,31,.78); box-shadow: 0 .85rem 2.4rem rgba(0,0,0,.15); overflow: hidden; transition: border-color .2s ease; }.composer:focus-within { border-color: var(--lime); }.composer textarea { display: block; width: 100%; min-height: 4.6rem; resize: vertical; padding: .95rem 1rem .4rem; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .91rem; line-height: 1.5; }.composer textarea::placeholder { color: #7c7289; }.composer-footer { display: flex; justify-content: space-between; align-items: center; padding: .35rem .45rem .45rem 1rem; color: #837a8e; font: .62rem var(--mono); }.send-button { padding: .55rem .73rem; font-size: .76rem; }.send-button:disabled { cursor: wait; opacity: .62; }.composer-note { margin: .7rem 0 0; color: #81778c; font-size: .67rem; line-height: 1.45; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@keyframes pulse { 50% { box-shadow: 0 0 0 .42rem rgba(255,113,108,0); } }
@keyframes fade-away { to { opacity: 0; visibility: hidden; } }
@keyframes rise-in { from { transform: translateY(7px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes dots { 0%, 20% { content: '.'; } 40% { content: '..'; } 60%, 100% { content: '...'; } }

@media (max-width: 760px) { .app-shell { padding: 0 1rem 2rem; }.topbar { min-height: 4.7rem; }.live-label { display: none; }.text-button { margin-left: .55rem; }.club-layout { grid-template-columns: 1fr; padding-top: 1.75rem; }.control-deck { order: 2; }.chat-stage { order: 1; }.messages { min-height: 15rem; }.message { max-width: 98%; }.quick-row { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; }.quick-prompt { white-space: nowrap; }.age-card h1 { font-size: clamp(2.3rem, 13vw, 3.6rem); } }
