/* anri.tube base: fonts, reset, the watch page skeleton and the studio.
   Each look (cinema.css, broadcast.css, gallery.css) sets the variables and its own layouts. */
@font-face { font-family: "Gloock"; src: url(/static/fonts/gloock-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/static/fonts/manrope-latin-wght-normal.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/static/fonts/archivo-latin-standard-normal.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/static/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/static/fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url(/static/fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/static/fonts/dm-sans-latin-standard-normal.woff2) format("woff2"); font-weight: 100 1000; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 3px solid var(--focus, var(--accent)); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--font-brand, var(--font-display)); font-size: 1.3rem; line-height: 1; letter-spacing: -.01em; }
.brand .mark { width: 1.7em; height: 1.7em; }
.mark-body { fill: var(--mark-body, var(--ink)); }
.mark-play { fill: var(--mark-play, var(--bg)); }
.brand-word b { font-weight: inherit; color: var(--brand-dot, var(--accent)); }
.brand-small { font-size: 1.05rem; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(1rem, 4vw, 3rem); position: relative; z-index: 5; }
.top-nav { display: flex; gap: 1.4rem; font-size: .95rem; }
.top-nav a { text-decoration: none; opacity: .85; }
.top-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- buttons ---------- */
.btn-play, .btn-ghost, .btn-visit, .btn-watch, .btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .65rem 1.15rem; border-radius: var(--btn-radius, 999px); font-weight: 650; font-size: .95rem; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; white-space: nowrap; }
.btn-play svg, .btn-ghost svg, .btn-visit svg, .btn-watch svg, .btn svg { width: 1.1em; height: 1.1em; }
.btn-play { background: var(--accent); color: var(--accent-ink); }
.btn-play:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: var(--ghost-hover, rgba(255,255,255,.12)); }
.btn-visit { background: var(--visit-bg, var(--ink)); color: var(--visit-ink, var(--bg)); }
.btn-visit:hover { transform: translateY(-1px); }

/* ---------- media hover previews ---------- */
[data-hover] { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--media-bg, #000); }
[data-hover] img, [data-hover] video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-hover] video { opacity: 0; transition: opacity .25s ease; }
[data-hover].playing video { opacity: 1; }

.p-icon, .w-icon { width: 28px; height: 28px; border-radius: 7px; object-fit: contain; background: #fff; flex: none; }
.p-icon-none { display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--accent); color: var(--accent-ink); }

/* ---------- light description + meta on every video card ---------- */
.v-blurb { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .94rem; line-height: 1.45; }
.v-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .8rem; color: var(--muted); opacity: .85; }
.v-meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; margin-right: .9rem; vertical-align: middle; transform: translateY(-1px); }

/* ---------- watch page ---------- */
.w { width: min(1400px, 100% - 2rem); margin: 0 auto; padding: .5rem 0 4rem; }
.w-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2rem; align-items: start; }
.w-main { min-width: 0; }
.w-next h2 { margin: 0 0 .9rem; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: 1.3rem; }
.w-next ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.w-next-item { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: .8rem; text-decoration: none; align-items: start; border-radius: 10px; padding: .25rem; margin: -.25rem; }
.w-next-item:hover { background: var(--line); }
.w-next-thumb { border-radius: 8px; }
.w-next-dur { position: absolute; right: 5px; bottom: 5px; z-index: 2; font-size: .72rem; font-weight: 700; padding: .1rem .35rem; border-radius: 4px; background: rgba(0, 0, 0, .75); color: #fff; }
.w-next-copy { display: grid; gap: .2rem; min-width: 0; }
.w-next-copy strong { font-size: .98rem; line-height: 1.25; }
.w-next-copy .v-blurb { font-size: .84rem; }
.w-endcard { position: absolute; right: 16px; bottom: 64px; z-index: 3; display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; padding: .6rem 1rem; border-radius: 999px; background: rgba(0, 0, 0, .82); color: #fff; text-decoration: none; font-weight: 650; font-size: .92rem; }
.w-endcard b { color: var(--accent); font-weight: 700; }
@media (max-width: 1100px) { .w-layout { grid-template-columns: 1fr; } .w-next { margin-top: 1rem; } .w-next ol { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); } }
.w-back { display: inline-flex; align-items: center; gap: .35rem; text-decoration: none; font-size: .92rem; opacity: .8; margin-bottom: 1rem; min-height: 44px; }
.w-back:hover { opacity: 1; }
.w-player { position: relative; border-radius: var(--player-radius, 14px); overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.w-player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.w-body { margin-top: 1.6rem; }
.w-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.w-icon { width: 48px; height: 48px; border-radius: 12px; }
.w-titles { flex: 1; min-width: 220px; }
.w-titles h1 { margin: 0; font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.05; font-weight: var(--display-weight, 400); letter-spacing: var(--display-track, -.01em); }
.w-tag { margin: .35rem 0 0; color: var(--muted); font-size: 1.1rem; }
.w-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem; margin-top: 1.8rem; }
.w-desc p { margin: 0 0 1rem; font-size: 1.08rem; max-width: 62ch; }
.w-aud { color: var(--muted); font-size: .98rem !important; }
.w-aud span { font-weight: 700; color: var(--ink); margin-right: .3rem; }
.w-maker { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.w-maker h2 { margin: 0 0 .4rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-family: var(--font-body); font-weight: 700; }
.w-maker p { margin: 0; font-size: 1.02rem; max-width: 62ch; }
.w-high { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; align-content: start; }
.w-high li { padding: 1rem 1.1rem; border-radius: var(--card-radius, 12px); background: var(--card); border: 1px solid var(--line); display: grid; gap: .2rem; }
.w-high strong { font-size: 1rem; }
.w-high span { color: var(--muted); font-size: .95rem; }
.w-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0 0; }
.w-tags span { font-size: .82rem; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.w-more { margin-top: 3.5rem; }
.w-more h2 { font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: 1.6rem; margin: 0 0 1.2rem; }
.w-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
@media (max-width: 820px) { .w-cols { grid-template-columns: 1fr; gap: 1.5rem; } .w-visit { width: 100%; } }

/* ---------- footer, empty, 404 ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 3rem; }
.foot-in { width: min(1180px, 100% - 2rem); margin: 0 auto; padding: 2rem 0 2.6rem; display: grid; gap: .6rem; color: var(--muted); font-size: .92rem; }
.foot-in p { margin: 0; }
.foot-in .brand { color: var(--ink); }
.foot-meta a { color: var(--ink); }
.empty { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.nf { text-align: center; padding: 6rem 1rem; display: grid; gap: 1rem; justify-items: center; }
.nf h1 { font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: clamp(2rem, 6vw, 3.4rem); margin: 0; }
.nf p { margin: 0; color: var(--muted); }

/* ---------- owner look switcher (admin only, injected by site.js) ---------- */
.lookbar { position: fixed; z-index: 50; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: .35rem; padding: .35rem; border-radius: 999px; background: #17141a; color: #f6f1ea; box-shadow: 0 10px 30px rgba(0,0,0,.35); font: 500 .85rem/1 "Manrope", system-ui, sans-serif; max-width: calc(100% - 20px); overflow-x: auto; }
.lookbar a, .lookbar button { all: unset; cursor: pointer; padding: .55rem .8rem; border-radius: 999px; white-space: nowrap; }
.lookbar a:hover, .lookbar button:hover { background: rgba(255,255,255,.1); }
.lookbar .on { background: #f6f1ea; color: #17141a; }
.lookbar .lb-save { background: #ffb547; color: #17141a; font-weight: 700; }
.lookbar .lb-sep { width: 1px; height: 20px; background: rgba(255,255,255,.2); }

/* ================= studio (owner) ================= */
.studio { width: min(1180px, 100% - 2rem); margin: 0 auto; padding: 1rem 0 5rem; font-family: var(--font-ui, var(--font-body)); }
.studio-loading { color: var(--muted); }
.st-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--card-radius, 14px); padding: 1.4rem; }
.st-login { max-width: 420px; margin: 3rem auto; display: grid; gap: 1rem; }
.st-login h1 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: 2rem; }
.st-login p { margin: 0; color: var(--muted); }
.st-field { display: grid; gap: .4rem; }
.st-field > span { font-weight: 650; font-size: .92rem; }
.st-field small { color: var(--muted); font-size: .85rem; }
.st-input { width: 100%; min-height: 46px; padding: .65rem .85rem; border-radius: 10px; border: 1.5px solid var(--line-strong, var(--line)); background: var(--input-bg, var(--bg)); color: var(--ink); }
textarea.st-input { min-height: 96px; resize: vertical; line-height: 1.5; }
.st-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft, rgba(0,0,0,.08)); }
.st-code { letter-spacing: .4em; font-size: 1.4rem; text-align: center; font-family: "Plex Mono", ui-monospace, monospace; }
.st-err { color: var(--danger, #c0362c); font-size: .92rem; margin: 0; min-height: 1.2em; }
.st-ok { color: var(--good, #2f7d4f); font-size: .92rem; margin: 0; }
.btn { background: var(--card); border-color: var(--line-strong, var(--line)); color: var(--ink); }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--danger, #c0362c); }
.btn.small { min-height: 36px; padding: .4rem .75rem; font-size: .86rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.st-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 1.4rem; }
.st-head h1 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.st-head-act { display: flex; gap: .6rem; flex-wrap: wrap; }
.st-tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.st-tabs button { all: unset; cursor: pointer; padding: .7rem 1rem; font-weight: 650; border-bottom: 2.5px solid transparent; color: var(--muted); }
.st-tabs button.on { color: var(--ink); border-color: var(--accent); }

.st-list { display: grid; gap: .8rem; }
.st-row { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 1.1rem; align-items: center; padding: .8rem; border-radius: var(--card-radius, 14px); background: var(--card); border: 1px solid var(--line); }
.st-thumb { width: 168px; aspect-ratio: 16 / 9; border-radius: 9px; overflow: hidden; background: var(--media-bg, #111); display: grid; place-items: center; color: var(--muted); font-size: .8rem; }
.st-thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-main { min-width: 0; display: grid; gap: .25rem; }
.st-title { font-weight: 700; font-size: 1.05rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.st-domain { color: var(--muted); font-size: .88rem; font-weight: 500; }
.st-stage { font-size: .9rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-stage.err { color: var(--danger, #c0362c); white-space: normal; }
.st-pill { font-size: .74rem; font-weight: 700; letter-spacing: .03em; padding: .22rem .55rem; border-radius: 999px; background: var(--line); color: var(--ink); text-transform: uppercase; }
.st-pill.run { background: var(--accent-soft, #fde7c7); color: var(--ink); }
.st-pill.done { background: var(--good-soft, #d9efe1); color: var(--good, #2f7d4f); }
.st-pill.failed { background: var(--danger-soft, #f8dcd8); color: var(--danger, #c0362c); }
.st-pill.hidden { background: transparent; border: 1px dashed var(--line-strong, var(--line)); color: var(--muted); }
.st-steps { display: flex; gap: .25rem; margin-top: .2rem; }
.st-steps i { height: 4px; flex: 1; max-width: 46px; border-radius: 4px; background: var(--line); }
.st-steps i.on { background: var(--accent); }
.st-steps i.now { background: var(--accent); animation: st-pulse 1.4s ease-in-out infinite; }
@keyframes st-pulse { 50% { opacity: .35; } }
.st-act { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; }
.st-empty { padding: 3rem 1rem; text-align: center; color: var(--muted); display: grid; gap: 1rem; justify-items: center; }
@media (max-width: 760px) {
  .st-row { grid-template-columns: 1fr; }
  .st-thumb { width: 100%; }
  .st-act { justify-content: flex-start; }
}

/* modal */
.st-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1rem; background: rgba(12, 10, 14, .58); }
.st-dialog { width: min(620px, 100%); max-height: calc(100vh - 2rem); overflow: auto; background: var(--card-solid, var(--card)); color: var(--ink); border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.35); padding: 1.5rem; display: grid; gap: 1.1rem; }
.st-dialog.wide { width: min(860px, 100%); }
.st-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.st-dialog-head h2 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: 1.6rem; }
.st-x { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.st-x:hover { background: var(--line); }
.st-x svg { width: 20px; height: 20px; }
.st-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.st-kind { all: unset; cursor: pointer; padding: .8rem .9rem; border-radius: 12px; border: 1.5px solid var(--line-strong, var(--line)); display: grid; gap: .2rem; }
.st-kind strong { font-size: .95rem; }
.st-kind span { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.st-kind[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (max-width: 560px) { .st-kinds { grid-template-columns: 1fr; } }
.st-lengths { display: flex; gap: .5rem; flex-wrap: wrap; }
.st-len { all: unset; cursor: pointer; padding: .6rem 1rem; border-radius: 999px; border: 1.5px solid var(--line-strong, var(--line)); font-weight: 650; font-size: .9rem; }
.st-len[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.st-dialog-foot { display: flex; justify-content: flex-end; gap: .6rem; flex-wrap: wrap; }
.st-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .st-grid2 { grid-template-columns: 1fr; } }
.st-hl { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr) auto; gap: .5rem; align-items: start; }
.st-log { font-family: "Plex Mono", ui-monospace, monospace; font-size: .78rem; line-height: 1.5; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .8rem; max-height: 220px; overflow: auto; white-space: pre-wrap; color: var(--muted); }
.st-video { border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.st-video video { width: 100%; height: 100%; }
.st-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.st-look { all: unset; cursor: pointer; border-radius: 14px; border: 1.5px solid var(--line-strong, var(--line)); overflow: hidden; display: grid; }
.st-look[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.st-look-sw { height: 84px; display: grid; grid-template-columns: 2fr 1fr; gap: 6px; padding: 10px; }
.st-look-sw i { border-radius: 6px; }
.st-look-sw.cinema { background: #120d12; } .st-look-sw.cinema i:first-child { background: linear-gradient(135deg, #3a2030, #ffb547); } .st-look-sw.cinema i:last-child { background: #2a1f28; }
.st-look-sw.broadcast { background: #f3f0ea; } .st-look-sw.broadcast i:first-child { background: #121212; } .st-look-sw.broadcast i:last-child { background: #ff4a1c; }
.st-look-sw.gallery { background: #f4ede1; } .st-look-sw.gallery i:first-child { background: #f7c9b6; } .st-look-sw.gallery i:last-child { background: #bcd9cf; }
.st-look-txt { padding: .7rem .8rem; display: grid; gap: .15rem; }
.st-look-txt span { color: var(--muted); font-size: .82rem; }
@media (max-width: 640px) { .st-looks { grid-template-columns: 1fr; } }
.st-section { display: grid; gap: 1rem; margin-bottom: 1.4rem; }
.st-section h2 { margin: 0; font-size: 1.15rem; }
.st-warn { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: 0 0 1.2rem; padding: .8rem 1rem; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent); font-weight: 600; }
.st-hr { border: 0; border-top: 1px solid var(--line); margin: .4rem 0; width: 100%; }
.st-status { display: grid; gap: .5rem; font-size: .95rem; }
.st-status div { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.st-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); flex: none; transform: translateY(-1px); }
.st-dot.ok { background: var(--good, #2f7d4f); } .st-dot.bad { background: var(--danger, #c0362c); }

/* ================= Mira, the face in the top-left corner (talk-only demo) ================= */
.mira-bubble { position: fixed; z-index: 40; top: 78px; left: 18px; width: 64px; height: 64px; padding: 0; border: 3px solid var(--accent); border-radius: 50%; background: var(--card); cursor: pointer; box-shadow: 0 10px 28px rgba(0, 0, 0, .28); transition: transform .2s ease; }
.mira-bubble:hover { transform: scale(1.06); }
.mira-bubble img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.mira-dot { position: absolute; right: 1px; bottom: 3px; width: 13px; height: 13px; border-radius: 50%; background: #2fbf71; border: 2px solid var(--card); }
.mira-bubble::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: mira-ring 3.2s ease-out 1.5s infinite; }
.mira-bubble.live::after { animation-duration: 1.4s; }
@keyframes mira-ring { 0% { opacity: .6; transform: scale(.92); } 70%, 100% { opacity: 0; transform: scale(1.18); } }

/* the round window */
.mira-modal { position: fixed; z-index: 45; top: 150px; left: 18px; width: 320px; height: 320px; }
.mira-modal[hidden] { display: none; }
.mira-circle { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #111; border: 4px solid var(--accent); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); isolation: isolate; animation: mira-in .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes mira-in { from { transform: scale(.4); opacity: 0; transform-origin: 32px -40px; } }
.mira-photo, .mira-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mira-photo { filter: blur(14px) brightness(.7) saturate(1.1); transform: scale(1.15); transition: filter .6s ease; }
.mira-video { opacity: 0; transition: opacity .5s ease; }
.mira-circle[data-state="live"] .mira-video { opacity: 1; }
.mira-circle[data-state="calling"] .mira-photo { filter: blur(6px) brightness(.8); animation: st-pulse 1.4s ease-in-out infinite; }
.mira-circle[data-talking="1"] { box-shadow: 0 0 0 6px rgba(47, 191, 113, .35), 0 30px 70px rgba(0, 0, 0, .45); }
.mira-form { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .55rem; padding: 2.2rem; color: #fff; text-align: center; font-family: var(--font-body); }
.mira-form[hidden] { display: none; }
.mira-name { font-family: var(--font-display); font-weight: var(--display-weight, 400); font-size: 1.9rem; line-height: 1; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); margin-bottom: .2rem; }
.mira-check { display: inline-flex; align-items: center; gap: .5rem; min-height: 34px; padding: .3rem .8rem; border-radius: 999px; background: rgba(0, 0, 0, .38); font-size: .9rem; font-weight: 600; cursor: pointer; }
.mira-check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.mira-start { margin-top: .3rem; min-width: 120px; min-height: 44px; padding: .55rem 1.4rem; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 1rem/1 var(--font-body); cursor: pointer; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.mira-start[disabled] { opacity: .5; cursor: not-allowed; }
.mira-note { margin: 0; min-height: 1.2em; font-size: .8rem; line-height: 1.35; max-width: 220px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.mira-timer { position: absolute; z-index: 3; top: 16px; left: 50%; transform: translateX(-50%); font: 600 .8rem/1 "Plex Mono", ui-monospace, monospace; color: #fff; background: rgba(0, 0, 0, .55); padding: .3rem .55rem; border-radius: 999px; }
.mira-timer[hidden], .mira-end[hidden] { display: none; }
.mira-end { position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #d93f2b; color: #fff; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); }
.mira-end svg { width: 24px; height: 24px; }
.mira-me { position: absolute; z-index: 4; right: -8px; bottom: 8px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); background: #000; transform: scaleX(-1); }
.mira-me[hidden] { display: none; }
.mira-x { position: absolute; z-index: 5; top: 4px; right: 4px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--card-solid, var(--card)); color: var(--ink); cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.mira-x svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .mira-bubble { top: 70px; left: 12px; width: 54px; height: 54px; }
  .mira-modal { top: 134px; left: 50%; transform: translateX(-50%); width: min(300px, calc(100vw - 32px)); height: min(300px, calc(100vw - 32px)); }
}
@media (prefers-reduced-motion: reduce) { .mira-bubble::after, .mira-circle { animation: none; } }
.st-adultrow { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
