/* ═══ O UNIVERSO EM FEED (17/10/2026) — js/universo-feed.js ═══ */
.uf-on { overflow: hidden; }
.uf-feed { position: fixed; left: 0; right: 0; bottom: 0; top: var(--us-nav, 68px); z-index: 120; overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; background: var(--uf-bg, #10241B); color: var(--uf-fg, #F3EEE3); transition: background .5s ease; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.uf-feed::-webkit-scrollbar { display: none; }
.uf-feed[hidden] { display: none; }
.uf-rolo { display: block; }
.uf-item { position: relative; height: calc(100dvh - var(--us-nav, 68px)); min-height: 460px; scroll-snap-align: start; scroll-snap-stop: always;
  background: var(--uf-bg); color: var(--uf-fg); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; padding: 14px 72px 22px 18px; overflow: hidden; }
.uf-item::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 60% at 50% 38%, rgba(255,255,255,.10), transparent 70%); pointer-events: none; }
.uf-topo { padding-right: 150px; display: flex; justify-content: space-between; gap: 10px; margin: 0; font: 500 .62rem/1.4 "Space Mono", monospace; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.uf-topo b { font-weight: 700; }
.uf-arte { display: grid; place-items: center; min-height: 0; padding: 10px 0; }
.uf-arte svg { width: min(78vw, 58vh, 520px); height: auto; max-height: 100%; overflow: visible; will-change: contents; }
.uf-aberta .uf-arte svg { width: min(46vw, 30vh, 320px); }
.uf-arte img { width: min(78vw, 58vh, 520px); height: auto; max-height: 100%; object-fit: contain; -webkit-user-drag: none; user-select: none; }
.uf-texto h3 { margin: 0 0 6px; font: 500 clamp(1.9rem, 8vw, 2.6rem)/1 "Cormorant Garamond", Georgia, serif; color: inherit; text-wrap: balance; }
.uf-autoral { margin: 0 0 8px; display: flex; align-items: center; gap: 6px; font: 500 .6rem/1.3 "Space Mono", monospace; letter-spacing: .08em; text-transform: uppercase; opacity: .72; }
.uf-autoral svg { width: 14px; height: 14px; flex: none; }
.uf-hist { margin: 0; font: 400 .9rem/1.5 "Space Grotesk", system-ui, sans-serif; opacity: .88; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; max-width: 60ch; }
.uf-aberta .uf-hist { -webkit-line-clamp: unset; display: block; max-height: 42vh; overflow-y: auto; }
.uf-aberta .uf-arte img { width: min(46vw, 30vh, 320px); }
.uf-aberta .uf-lado { opacity: 0; pointer-events: none; }
.uf-aberta { padding-right: 18px; }
.uf-lado { transition: opacity .25s; }
.uf-ler { margin-top: 8px; background: none; border: 0; padding: 0; color: inherit; font: 700 .72rem "Space Mono", monospace; letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; opacity: .9; }
.uf-vazia + .uf-ler { display: none; }
/* o lado, como nos reels */
.uf-lado { position: absolute; right: 10px; bottom: 20%; display: grid; gap: 14px; z-index: 2; }
.uf-redesenha:active svg { transform: rotate(-180deg); transition: transform .4s ease; }
.uf-bt { display: grid; justify-items: center; gap: 3px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-decoration: none; font: 600 .6rem "Space Grotesk", system-ui, sans-serif; }
.uf-bt svg { width: 30px; height: 30px; padding: 9px; box-sizing: content-box; border-radius: 50%; background: rgba(0,0,0,.18); }
.uf-cor.on svg { color: #E2475D; background: rgba(255,255,255,.9); }
.uf-cor.on svg path { fill: currentColor; }
.uf-cor.pulo svg { animation: ufPulo .45s ease; }
@keyframes ufPulo { 40% { transform: scale(1.25); } }
.uf-pop { position: absolute; left: 50%; top: 42%; width: 110px; height: 110px; margin: -55px 0 0 -55px; color: #E2475D; z-index: 3; pointer-events: none; animation: ufPop .9s ease forwards; }
.uf-pop svg { width: 100%; height: 100%; }
.uf-pop svg path { fill: currentColor; stroke: #fff; }
@keyframes ufPop { 0% { transform: scale(.3); opacity: 0; } 25% { transform: scale(1.1); opacity: 1; } 70% { opacity: 1; } 100% { transform: scale(1.3) translateY(-30px); opacity: 0; } }
/* a capa da sala */
.uf-capa { grid-template-rows: auto 1fr auto auto auto; align-items: center; padding-right: 18px; text-align: center; }
.uf-capa .uf-conta { margin: 0; font: 500 .66rem "Space Mono", monospace; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.uf-letra { display: grid; place-items: center; }
.uf-letra svg { width: min(86vw, 640px) !important; height: auto !important; max-height: 30vh; color: inherit !important; }
.uf-letra svg * { stroke: currentColor !important; }
.uf-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.uf-tema { margin: 0 auto; max-width: 30ch; font: italic 400 1.25rem/1.3 "Cormorant Garamond", Georgia, serif; opacity: .9; }
.uf-desce { margin: 18px 0 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 600 .74rem "Space Grotesk", system-ui, sans-serif; opacity: .85; }
.uf-desce svg { width: 26px; height: 26px; animation: ufSobe 1.6s ease-in-out infinite; }
@keyframes ufSobe { 0%, 100% { transform: translateY(4px); opacity: .6; } 50% { transform: translateY(-6px); opacity: 1; } }
/* a grade, a folha das salas, o aviso */
/* a chave Rolar · Salas, fixa no alto à direita */
.uf-modo { position: fixed; right: 12px; top: calc(var(--us-nav, 68px) + 10px); z-index: 160; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(16,36,27,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.uf-modo button { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 999px; padding: 7px 11px 7px 9px; background: transparent; color: rgba(243,238,227,.8); font: 600 .72rem "Space Grotesk", system-ui, sans-serif; cursor: pointer; }
.uf-modo button svg { width: 15px; height: 15px; }
.uf-modo button.on { background: #F3EEE3; color: #10241B; }
.uf-folha { position: fixed; inset: 0; z-index: 140; background: rgba(8,16,12,.55); display: flex; align-items: flex-end; justify-content: center; }
.uf-folha[hidden] { display: none; }
.uf-folha-box { width: min(560px, 100%); max-height: 78vh; background: #F6F1E8; color: #1B2620; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }
.uf-folha-t { margin: 0; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font: 600 1.3rem "Cormorant Garamond", Georgia, serif; border-bottom: 1px solid rgba(27,38,32,.12); }
.uf-folha-t button { border: 0; background: none; font-size: 1.1rem; cursor: pointer; color: inherit; }
.uf-folha-l { overflow-y: auto; padding: 8px; display: grid; gap: 4px; }
.uf-folha-l button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 10px; font: 500 .92rem "Space Grotesk", system-ui, sans-serif; color: inherit; cursor: pointer; }
.uf-folha-l button i { width: 22px; height: 22px; border-radius: 6px; background: var(--c); flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.uf-folha-l button small { font: .62rem "Space Mono", monospace; opacity: .5; }
.uf-folha-l button em { margin-left: auto; font: normal .7rem "Space Mono", monospace; opacity: .5; }
.uf-folha-l button.on { background: #1E3B2B; color: #F3EEE3; }
.uf-aviso { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 130; margin: 0; background: #1B2620; color: #F3EEE3; padding: 9px 16px; border-radius: 999px; font: 500 .84rem "Space Grotesk", system-ui, sans-serif; }
/* no computador: a coluna do celular no meio, a cor da sala na tela inteira */
@media (min-width: 900px) {
  .uf-item { padding-left: calc(50% - 300px); padding-right: calc(50% - 300px + 70px); }
  .uf-capa { padding-right: calc(50% - 300px); }
  .uf-lado { right: calc(50% - 300px); }
}
@media (prefers-reduced-motion: reduce) { .uf-arte svg * { transition: none !important; stroke-dashoffset: 0 !important; opacity: 1 !important; } .uf-feed { scroll-behavior: auto; transition: none; } .uf-desce svg, .uf-pop { animation: none; } }
/* 17/10 — AO VIVO e SORTEAR */
.uf-topo b { display: inline-flex; align-items: center; gap: 10px; }
.uf-vis { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-weight: 500; opacity: .85; }
.uf-vis[hidden] { display: none; }
.uf-vis svg { width: 13px; height: 13px; }
.uf-vivo { position: fixed; right: 12px; top: calc(var(--us-nav, 68px) + 52px); z-index: 160; margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(16,36,27,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #F3EEE3; font: 500 .58rem/1.3 "Space Mono", monospace; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.uf-vivo[hidden] { display: none; }
.uf-vivo b { font-weight: 700; color: #D3A66E; }
.uf-vivo i { width: 7px; height: 7px; border-radius: 50%; background: #5FD08F; box-shadow: 0 0 0 0 rgba(95,208,143,.6); animation: ufVivo 1.8s ease-out infinite; }
@keyframes ufVivo { 70% { box-shadow: 0 0 0 7px rgba(95,208,143,0); } 100% { box-shadow: 0 0 0 0 rgba(95,208,143,0); } }
.uf-sorte { margin: 4px auto 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid currentColor; background: rgba(255,255,255,.08); color: inherit; font: 600 .78rem "Space Grotesk", system-ui, sans-serif; cursor: pointer; justify-self: center; }
.uf-sorte svg { width: 18px; height: 18px; }
.uf-sorte:active { transform: scale(.97); }
@media (max-width: 600px) {
  .uf-modo button { padding: 7px 9px; }
  .uf-modo button span { display: none; }
  .uf-modo button.on span { display: inline; }
}
@media (prefers-reduced-motion: reduce) { .uf-vivo i { animation: none; } }
/* 18/10 — salas claras: enquanto o SVG não entra, a imagem escurece; os botões ganham contraste */
.uf-claro .uf-arte img { filter: brightness(.25) sepia(.3); }
.uf-claro .uf-bt svg { background: rgba(27,38,32,.10); }
