/* /sniff/: an 18+ click-through, then one video with a chat with Vye under it (scripts/sniff.js) */
@font-face { font-family: Hacked; src: url("/fonts/HACKED.woff2?v=367a3b2826") format("woff2"); font-display: swap; }
html { background: #07050b; color: #f4eef8; font: 16px system-ui, sans-serif; }
body { margin: 0; }
.sniff { min-height: 100vh; display: grid; place-items: center; padding: 16px; box-sizing: border-box; }
.gate { max-width: 420px; text-align: center; border: 1px solid #ff5cbb55; border-radius: 14px; padding: 28px 24px;
  background: #12091a; box-shadow: 0 0 40px #ff249233; }
.gate h1 { font: 44px Hacked, system-ui, sans-serif; letter-spacing: .04em; color: #ff5cbb; margin: 0 0 12px;
  text-shadow: 0 0 18px #ff2492aa; }
.gate p { margin: 0 0 22px; line-height: 1.45; color: #d8cde2; }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sniff button, .leave { font: 600 16px system-ui, sans-serif; border-radius: 10px; padding: 12px 20px; cursor: pointer;
  text-decoration: none; }
.sniff button { border: 0; background: #ff2492; color: #fff; }
.sniff button:disabled { opacity: .55; cursor: default; }
.leave { border: 1px solid #6a5a78; color: #d8cde2; }

.watch { display: none; width: min(100%, 1100px); }
.watching .gate { display: none; }
.watching .watch { display: grid; gap: 16px; }
.watch video { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #000; }
.stage { justify-self: center; width: min(100%, calc(max(220px, 100vh - 420px) * 16 / 9)); box-sizing: border-box; }
/* under the site bar: the video and her chat start right below it, so her input is on screen without scrolling */
.watching .sniff { align-items: start; }

.chat { width: min(100%, 720px); justify-self: center; border: 1px solid #ff5cbb44; border-radius: 14px;
  background: #12091a; box-shadow: 0 0 32px #ff249222; display: grid; overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #ff5cbb22; }
.chat__head img { border-radius: 50%; }
.chat__head strong { display: block; font: 22px Hacked, system-ui, sans-serif; letter-spacing: .05em; color: #ff5cbb; }
.chat__head span { font-size: 13px; color: #b9a9c8; }
.chat__log { display: flex; flex-direction: column; gap: 10px; padding: 16px; min-height: 120px; max-height: 46vh;
  overflow-y: auto; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; line-height: 1.45; white-space: pre-wrap;
  overflow-wrap: anywhere; }
.msg--vye { align-self: flex-start; background: #2a1236; border: 1px solid #ff5cbb33; border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: #ff2492; color: #fff; border-bottom-right-radius: 4px; }
.msg--system { align-self: center; max-width: 100%; font-size: 14px; color: #c9b8d8; background: none; padding: 2px 8px; }
.msg a { color: #ffd1ec; }
.msg--typing { color: #c9b8d8; font-style: italic; }
.chat__form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #ff5cbb22; }
.chat__form input { flex: 1; min-width: 0; font: 16px system-ui, sans-serif; color: #f4eef8; background: #07050b;
  border: 1px solid #6a5a78; border-radius: 10px; padding: 10px 12px; }
.chat__form input:focus { outline: 2px solid #ff5cbb; outline-offset: 1px; }
.chat__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 0 16px 12px; font-size: 13px; color: #b9a9c8; }
.chat__foot:has(#chatStatus:empty):has(#chatLogin[hidden]) { display: none; }

/* ---- the page reacting to the video: scripts/sniff.js sets --spiral as the video's spiral takes over the desktop,
   and --pulse on each spoken sniff. Her SNIFF rings come out of the video into the page. ---- */
body { --pulse: 0; --spiral: 0; }
.stage { position: relative; }
.rings { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; opacity: calc(var(--spiral) * .5);
  pointer-events: none; }
.watch video { box-shadow: 0 0 calc(30px + 50px * var(--pulse)) #ff2492aa; }

/* the chat, alive */
.chat__head img { box-shadow: 0 0 calc(4px + 22px * var(--pulse)) #ff2492; transition: box-shadow .1s; }
.live::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%;
  background: #ff2492; vertical-align: 1px; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: .3; transform: scale(.7); } }
.msg--vye { box-shadow: 0 0 calc(18px * var(--pulse)) #ff249266; }
.msg--vye.is-typing::after { content: "▌"; color: #ff5cbb; animation: live .8s steps(2) infinite; }
@media (prefers-reduced-motion: reduce) {
  .live::before, .msg--vye.is-typing::after { animation: none; }
}
