@font-face {
  font-family: "Unbounded";
  src: url("/fontes/unbounded.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}

/* reserva com a largura da Unbounded: se a fonte demorar, nada muda de lugar quando ela chega */
@font-face {
  font-family: "Unbounded Reserva";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto"), local("Liberation Sans");
  size-adjust: 130%;
}

:root {
  --fundo: #07060d;
  --texto: #f4f0ff;
  --suave: rgba(244, 240, 255, 0.66);
  --linha: rgba(244, 240, 255, 0.16);
  --mola: cubic-bezier(0.16, 1, 0.3, 1);
  --iris: #b79cff, #ff8fd6, #7fe7ff, #ffd2a6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--fundo);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--texto);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: "Unbounded", "Unbounded Reserva", system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: crosshair;
  overflow-x: hidden;
  overflow-x: clip;
}

/* sem coleção a página é só a arte, do tamanho da tela */
body:not(.com-colecao) { overflow: hidden; }
html.travado, html.travado body { overflow: hidden; }

::selection { background: rgba(183, 156, 255, 0.4); }

#ceu {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  /* reserva para navegador sem WebGL: um céu calmo */
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(183, 156, 255, 0.22), transparent 70%),
    radial-gradient(40% 35% at 30% 60%, rgba(255, 143, 214, 0.16), transparent 70%),
    radial-gradient(45% 40% at 70% 40%, rgba(127, 231, 255, 0.14), transparent 70%),
    var(--fundo);
}

.veu {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(7, 6, 13, 0.55) 100%);
}

main { position: relative; z-index: 2; }

/* ---------- palco: sigilo, nome e os orbes ---------- */

.palco {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(28px, 5vh, 48px);
  padding: 24px;
}

.marca {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 3vh, 28px);
  font-weight: 400;
  transition: opacity 0.7s ease;
}

.sigilo {
  width: clamp(112px, 22vmin, 184px);
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 22px rgba(183, 156, 255, 0.35)) drop-shadow(0 0 48px rgba(127, 231, 255, 0.18));
  animation: respira 9s ease-in-out infinite;
  scale: calc(1 + var(--batida, 0) * 0.014); /* com o som ligado, o bumbo faz o sigilo pulsar de leve */
}

.sigilo.acende { animation: respira 9s ease-in-out infinite, acende 1.6s ease-out; }
.sigilo .orbita { transform-origin: 60px 60px; animation: gira 120s linear infinite; }
.sigilo .estrela { transform-origin: 60px 60px; animation: brilha 6s ease-in-out infinite; }

.nome {
  font-size: clamp(22px, 4.6vmin, 38px);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  padding-left: 0.34em; /* compensa o espaçamento da última letra e centra de verdade */
  background: linear-gradient(100deg, #f4f0ff 0%, #e6d9ff 30%, #ffd9f0 55%, #d8fbff 80%, #f4f0ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: iridesce 18s ease-in-out infinite;
}

.nome .labs {
  display: inline-block;
  margin-left: 0.62em;
  font-weight: 300;
  opacity: 0.78;
}

.convite {
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--suave);
  background: transparent;
  border: 1px solid var(--linha);
  border-radius: 999px;
  min-height: 46px;
  padding: 13px 22px 13px 26px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: color 0.4s ease, border-color 0.4s ease, opacity 1.2s ease, transform 1.2s ease;
}

.convite:focus-visible { color: var(--texto); border-color: rgba(244, 240, 255, 0.6); outline: none; }
.convite.some { opacity: 0; transform: translateY(8px); pointer-events: none; }
.palco.foco .marca, .palco.foco .convite:not(.some) { opacity: 0.42; }
.palco.foco-fundo .marca, .palco.foco-fundo .convite:not(.some) { opacity: 0; }

/* ---------- orbes: cada app, por cima do céu ---------- */

.orbes {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.orbe {
  --d: 96px;
  --cor: 183, 156, 255;
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  color: var(--texto);
  text-decoration: none;
  opacity: 0;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  outline: none;
  will-change: transform, opacity;
  -webkit-user-select: none;
  user-select: none;
}

.o-corpo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 31% 25%, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.08) 20%, transparent 38%),
    radial-gradient(circle at 70% 82%, rgba(var(--cor), 0.24), transparent 44%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 calc(var(--d) * 0.24) rgba(var(--cor), 0.4);
  transition: box-shadow 0.5s ease;
}

/* aro fino de película iridescente */
.o-corpo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1.25px;
  background: conic-gradient(from 0deg, #b79cff, #ff8fd6, #ffd2a6, #7fe7ff, #b79cff);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.9;
  animation: gira 18s linear infinite;
}

.o-icone, .o-letra {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42%;
  height: 42%;
  margin: -21% 0 0 -21%;
  border-radius: 27%;
  box-shadow: 0 calc(var(--d) * 0.05) calc(var(--d) * 0.18) rgba(4, 3, 10, 0.5);
}

.o-letra {
  display: grid;
  place-items: center;
  font-size: calc(var(--d) * 0.2);
  font-weight: 600;
  line-height: 1;
  color: #0b0912;
  background: rgb(var(--cor));
}

.o-rotulo {
  position: absolute;
  left: 50%;
  top: calc(100% + 13px);
  transform: translateX(calc(-50% + var(--dx, 0px)));
  white-space: nowrap;
  font-size: 10.5px;
  line-height: 1.3;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 240, 255, 0.86);
  text-shadow: 0 1px 14px rgba(7, 6, 13, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.o-rotulo b { font-weight: 300; margin-right: 0.3em; color: rgb(var(--cor-clara, var(--cor))); }
.orbe.rotulo-acima .o-rotulo { top: auto; bottom: calc(100% + 13px); }
.orbe.com-rotulo .o-rotulo, .orbe:focus-visible .o-rotulo { opacity: 1; }
/* com o portal aberto o nome já está nele, grande: o rótulo do orbe sai da frente */
.orbes .orbe.aceso .o-rotulo { opacity: 0; }
.orbe:focus-visible .o-corpo { box-shadow: 0 0 0 3px rgba(7, 6, 13, 0.9), 0 0 0 5px #f4f0ff, inset 0 0 calc(var(--d) * 0.24) rgba(var(--cor), 0.4); }

/* sem WebGL o orbe brilha só com CSS */
.sem-gl .o-corpo {
  background:
    radial-gradient(circle at 31% 25%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.08) 20%, transparent 38%),
    radial-gradient(circle at 50% 55%, rgba(var(--cor), 0.75), rgba(var(--cor), 0.2) 68%, rgba(var(--cor), 0.08));
  box-shadow: 0 0 calc(var(--d) * 0.5) rgba(var(--cor), 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* chamado para a coleção, no pé da primeira tela */
.desce {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 132px;
  min-height: 48px;
  padding: 12px 16px 4px;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--suave);
  text-decoration: none;
  outline: none;
  transition: color 0.3s ease, opacity 0.5s ease;
}

.palco.rolou .desce { opacity: 0; pointer-events: none; }
.desce span { padding-left: 0.32em; }
.desce i { display: block; width: 1px; height: 30px; background: linear-gradient(to bottom, rgba(244, 240, 255, 0.75), transparent); transform-origin: top; animation: pinga 3s ease-in-out infinite; }
.desce:focus-visible { color: var(--texto); }
.desce:focus-visible span { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- coleção: índice tipográfico ---------- */

/* a coleção é uma cena inteira: com poucos apps fica no meio da tela, com muitos cresce para baixo */
.colecao {
  position: relative;
  max-width: 1200px;
  min-height: calc(100vh - 78px);
  min-height: calc(100svh - 78px);
  margin: 0 auto;
  padding: clamp(36px, 8vh, 88px) clamp(20px, 5vw, 60px) clamp(28px, 6vh, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: default;
}

.colecao-topo {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--linha);
}

.colecao-topo h2 { margin: 0; font-size: 12px; font-weight: 400; letter-spacing: 0.34em; text-transform: uppercase; }
.colecao-conta { margin: 0; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--suave); }

.indice { list-style: none; margin: 0; padding: 0; }
.indice li { border-bottom: 1px solid var(--linha); }

.linha {
  --cor: 183, 156, 255;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 52px minmax(0, 1.5fr) minmax(0, 1fr) auto 26px;
  align-items: center;
  column-gap: clamp(16px, 2.6vw, 40px);
  padding: clamp(24px, 3.4vh, 36px) 8px;
  color: var(--texto);
  text-decoration: none;
  outline: none;
}

/* folha holográfica que atravessa a linha */
.linha::before {
  content: "";
  position: absolute;
  inset: 0 -14px;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(105deg, transparent 0%, transparent 34%, rgba(183, 156, 255, 0.16) 43%, rgba(255, 143, 214, 0.18) 50%, rgba(127, 231, 255, 0.16) 57%, transparent 66%, transparent 100%);
  background-size: 300% 100%;
  background-position: 115% 0;
  opacity: 0;
  transition: opacity 0.5s ease, background-position 1.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* fio iridescente que se desenha por baixo */
.linha::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--iris));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s var(--mola);
}

.l-num { font-size: 11px; letter-spacing: 0.18em; color: var(--suave); font-variant-numeric: tabular-nums; transition: color 0.4s ease; }
.l-titulo { display: flex; align-items: center; gap: 18px; min-width: 0; }
.l-icone { flex: none; width: 40px; height: 40px; border-radius: 27%; box-shadow: 0 6px 18px rgba(4, 3, 10, 0.45); }
.l-letra { display: grid; place-items: center; font-size: 15px; font-weight: 600; color: #0b0912; background: rgb(var(--cor)); }

.l-nome {
  min-width: 0;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  padding-bottom: 0.06em;
  background: linear-gradient(100deg, #f4f0ff 0%, #f4f0ff 36%, #b79cff 44%, #ff8fd6 50%, #7fe7ff 56%, #ffd2a6 61%, #f4f0ff 70%, #f4f0ff 100%);
  background-size: 340% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.l-frase { font-size: 14px; font-weight: 300; line-height: 1.55; color: rgba(244, 240, 255, 0.86); text-wrap: balance; }
.l-data { font-size: 11px; letter-spacing: 0.16em; color: var(--suave); font-variant-numeric: tabular-nums; white-space: nowrap; }
.l-seta { display: grid; place-items: center; color: var(--suave); transition: color 0.4s ease; }
.l-seta svg, .abrir svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.5s var(--mola); }

.linha:focus-visible::before, .linha.no-centro::before { opacity: 1; background-position: -15% 0; }
.linha:focus-visible::after, .linha.no-centro::after { transform: scaleX(1); }
.linha:focus-visible .l-nome, .linha.no-centro .l-nome { background-position: 0 0; }
.linha:focus-visible .l-num, .linha.no-centro .l-num { color: rgb(var(--cor-clara, var(--cor))); }
.linha:focus-visible .l-seta, .linha.no-centro .l-seta { color: var(--texto); }
.linha:focus-visible .l-seta svg, .linha.no-centro .l-seta svg { transform: translate(3px, -3px); }
.linha:focus-visible { box-shadow: 0 0 0 2px rgba(244, 240, 255, 0.85); border-radius: 12px; }

.linha.espera { opacity: 0; transform: translateY(22px); }
.linha.espera.visto { opacity: 1; transform: none; transition: opacity 0.9s ease var(--atraso, 0ms), transform 1.1s var(--mola) var(--atraso, 0ms); }

/* miniatura que segue o ponteiro no índice */
.espia {
  --cor: 183, 156, 255;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 7;
  width: clamp(240px, 22vw, 320px);
  aspect-ratio: 1200 / 630;
  border-radius: 16px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 26px 70px rgba(3, 2, 8, 0.6), 0 0 70px rgba(var(--cor), 0.28);
  transition: opacity 0.35s ease;
  will-change: transform, opacity;
}

.espia.visivel { opacity: 1; }
.espia img { display: block; width: 100%; height: 100%; object-fit: cover; }
.espia::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(244, 240, 255, 0.16); }

/* ---------- rodapé e som ---------- */

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px max(20px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  font-size: 11px;
  letter-spacing: 0.14em;
  pointer-events: none;
}

footer a, footer button { pointer-events: auto; }

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 4px;
  color: var(--suave);
  text-decoration: none;
  outline: none;
  transition: color 0.3s ease;
}

footer a:focus-visible { color: var(--texto); text-decoration: underline; text-underline-offset: 6px; }

/* o convite discreto, no canto de cima, para o painel ao vivo das esteiras */
.canto-esteiras {
  position: fixed;
  z-index: 5;
  top: max(6px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 6px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--suave);
  text-decoration: none;
  outline: none;
  transition: color 0.3s ease;
}
.canto-esteiras i { width: 6px; height: 6px; flex: none; border-radius: 50%; background: #7fe7ff; box-shadow: 0 0 9px rgba(127, 231, 255, 0.85); }
.canto-esteiras:focus-visible { color: var(--texto); text-decoration: underline; text-underline-offset: 6px; }

.som {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--linha);
  background: rgba(7, 6, 13, 0.3);
  color: var(--suave);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.som svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.som .ondas { opacity: 0.25; transition: opacity 0.4s ease; }
.som[aria-pressed="true"] { color: var(--texto); border-color: rgba(244, 240, 255, 0.42); }
.som[aria-pressed="true"] .ondas { opacity: 1; }
.som:focus-visible { color: var(--texto); border-color: rgba(244, 240, 255, 0.8); outline: none; }

/* com a coleção a página rola: o contato fecha a página e o som fica flutuando no canto */
.com-colecao footer {
  position: relative;
  z-index: 2;
  justify-content: center;
  padding: 0 20px max(30px, env(safe-area-inset-bottom));
  cursor: default;
}

.com-colecao .som {
  position: fixed;
  z-index: 6;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
}

.sem-js { position: fixed; bottom: 24px; width: 100%; text-align: center; color: var(--suave); font-size: 12px; }
.com-colecao .sem-js { display: none; }

/* ---------- portal: o orbe floresce e mostra o app ---------- */

.cortina {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: rgba(4, 3, 10, 0.5);
  opacity: 0;
  touch-action: none;
  cursor: default;
  transition: opacity 0.45s ease;
}

.cortina.aberta { opacity: 1; }

.portal {
  --cor: 183, 156, 255;
  --ox: 0px;
  --oy: 0px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9;
  width: min(400px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(24, 19, 42, 0.62), rgba(9, 7, 18, 0.78));
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  backdrop-filter: blur(28px) saturate(160%);
  box-shadow: 0 34px 90px rgba(3, 2, 8, 0.6), 0 0 64px rgba(var(--cor), 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--texto);
  cursor: default;
  outline: none;
  opacity: 0;
  visibility: hidden;
  clip-path: circle(0% at var(--ox) var(--oy));
  transition: clip-path 0.42s cubic-bezier(0.55, 0, 0.8, 0.2), opacity 0.28s ease 0.12s, visibility 0s linear 0.42s;
}

.portal.aberto {
  opacity: 1;
  visibility: visible;
  clip-path: circle(170% at var(--ox) var(--oy));
  transition: clip-path 1s var(--mola), opacity 0.25s ease, visibility 0s;
}

/* aro iridescente que escorre devagar */
.portal::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(125deg, #b79cff, #ff8fd6, #7fe7ff, #ffd2a6, #b79cff, #ff8fd6);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0.75;
  pointer-events: none;
  animation: escorre 9s linear infinite;
}

/* ponte invisível entre o orbe e o portal, para o ponteiro atravessar sem fechar */
.portal.ponte-esq::after, .portal.ponte-dir::after { content: ""; position: absolute; top: 0; bottom: 0; width: 64px; }
.portal.ponte-esq::after { right: 100%; }
.portal.ponte-dir::after { left: 100%; }

.p-pega, .p-fecha { display: none; }

.lente {
  position: relative;
  display: block;
  aspect-ratio: 1200 / 630;
  border-radius: 20px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(120% 120% at 20% 10%, rgba(var(--cor), 0.32), rgba(var(--cor), 0.06) 70%), rgba(9, 7, 18, 0.5);
  cursor: pointer;
  outline: none;
}

.lente img, .lente canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.lente img { opacity: 0; transition: opacity 0.6s ease; }
.lente canvas { opacity: 0; }
.lente.chegou:not(.viva) img { opacity: 1; }
.lente.viva canvas { opacity: 1; }
.lente::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(244, 240, 255, 0.16); pointer-events: none; }

.lente-letra { position: absolute; inset: 0; display: none; place-items: center; font-size: 72px; font-weight: 600; color: rgba(var(--cor), 0.9); }
.lente.sem-imagem .lente-letra { display: grid; }
.lente.sem-imagem img, .lente.sem-imagem canvas { display: none; }

.p-texto { padding: 20px 12px 10px; }
.p-meta { margin: 0 0 12px; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--suave); }
.p-nome { margin: 0; font-size: clamp(30px, 3.1vw, 42px); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; text-wrap: balance; }
.p-frase { margin: 12px 0 0; font-size: 14.5px; font-weight: 300; line-height: 1.55; color: rgba(244, 240, 255, 0.82); text-wrap: balance; }
.p-acoes { margin: 22px 0 0; display: flex; align-items: center; gap: 18px; }
.p-dominio { font-size: 11px; letter-spacing: 0.12em; color: var(--suave); }

.abrir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px 0 26px;
  border-radius: 999px;
  background: rgb(var(--cor));
  color: #0b0912;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  box-shadow: 0 12px 34px rgba(var(--cor), 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.4s var(--mola), box-shadow 0.4s ease;
}

.abrir span { padding-left: 0.16em; }
.abrir svg { width: 18px; height: 18px; stroke-width: 1.8; }
.abrir:focus-visible { box-shadow: 0 0 0 3px #07060d, 0 0 0 5px #f4f0ff; }

/* o texto do portal chega em cascata */
.p-meta, .p-nome, .p-frase, .p-acoes { opacity: 0; transform: translateY(14px); transition: opacity 0.2s ease, transform 0.2s ease; }
.portal.aberto .p-meta, .portal.aberto .p-nome, .portal.aberto .p-frase, .portal.aberto .p-acoes { opacity: 1; transform: none; transition: opacity 0.7s ease var(--espera), transform 0.9s var(--mola) var(--espera); }
.p-meta { --espera: 0.16s; }
.p-nome { --espera: 0.22s; }
.p-frase { --espera: 0.29s; }
.p-acoes { --espera: 0.36s; }

.portal.seco, .portal.seco * { transition: none !important; }

/* no celular o portal é uma folha que sobe do pé da tela */
.portal.folha {
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;
  width: auto;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 16px max(22px, env(safe-area-inset-bottom));
  border-radius: 30px 30px 0 0;
  clip-path: none;
  touch-action: none;
  transform: translate3d(0, 105%, 0);
  transition: transform 0.4s cubic-bezier(0.55, 0, 0.8, 0.2), opacity 0.2s ease 0.25s, visibility 0s linear 0.45s;
}

.portal.folha.aberto { clip-path: none; transform: translate3d(0, var(--arrasto, 0px), 0); transition: transform 0.7s var(--mola), opacity 0.2s ease, visibility 0s; }
.portal.folha.arrastando { transition: none; }
.portal.folha .p-pega { display: block; width: 40px; height: 4px; margin: 6px auto 14px; border-radius: 4px; background: rgba(244, 240, 255, 0.3); }

.portal.folha .p-fecha {
  position: absolute;
  z-index: 3;
  top: 34px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--texto);
  cursor: pointer;
  outline: none;
}

.p-fecha svg { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: rgba(9, 7, 18, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; box-shadow: inset 0 0 0 1px rgba(244, 240, 255, 0.18); }
.p-fecha:focus-visible svg { box-shadow: 0 0 0 2px #f4f0ff; }
.portal.folha .p-texto { padding: 20px 6px 0; }
.portal.folha .p-nome { font-size: clamp(30px, 9vw, 40px); }
.portal.folha .p-acoes { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 24px; }
.portal.folha .abrir { min-height: 56px; font-size: 13px; }
.portal.folha .p-dominio { text-align: center; }

/* ---------- ponteiro de verdade: os estados de passar por cima ---------- */

@media (hover: hover) {
  .convite:hover { color: var(--texto); border-color: rgba(244, 240, 255, 0.4); }
  footer a:hover, .canto-esteiras:hover { color: var(--texto); }
  .som:hover { color: var(--texto); }
  .desce:hover { color: var(--texto); }
  .orbe:hover .o-rotulo { opacity: 1; }
  .linha:hover::before { opacity: 1; background-position: -15% 0; }
  .linha:hover::after { transform: scaleX(1); }
  .linha:hover .l-nome { background-position: 0 0; }
  .linha:hover .l-num { color: rgb(var(--cor-clara, var(--cor))); }
  .linha:hover .l-seta { color: var(--texto); }
  .linha:hover .l-seta svg { transform: translate(3px, -3px); }
  .abrir:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(var(--cor), 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
  .abrir:hover svg { transform: translate(2px, -2px); }
}

/* ---------- telas estreitas ---------- */

@media (max-width: 719px) {
  .colecao { padding-top: 28px; }
  .linha {
    grid-template-columns: minmax(0, 1fr) 26px;
    grid-template-areas: "topo topo" "titulo seta" "frase frase";
    row-gap: 12px;
    column-gap: 12px;
    padding: 24px 2px 26px;
  }
  .l-num { grid-area: topo; justify-self: start; }
  .l-data { grid-area: topo; justify-self: end; }
  .l-titulo { grid-area: titulo; gap: 14px; }
  .l-seta { grid-area: seta; justify-self: end; }
  .l-frase { grid-area: frase; max-width: 34em; }
  .l-icone { width: 36px; height: 36px; }
  .l-nome { font-size: clamp(22px, 6.5vw, 28px); }
  .linha::before { inset: 0 -8px; }
}

/* ---------- movimento ---------- */

@keyframes respira {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}

@keyframes gira { to { transform: rotate(360deg); } }

@keyframes acende {
  0% { filter: drop-shadow(0 0 22px rgba(183, 156, 255, 0.35)) drop-shadow(0 0 48px rgba(127, 231, 255, 0.18)) brightness(1); }
  18% { filter: drop-shadow(0 0 34px rgba(255, 143, 214, 0.65)) drop-shadow(0 0 90px rgba(127, 231, 255, 0.45)) brightness(1.45); }
  100% { filter: drop-shadow(0 0 22px rgba(183, 156, 255, 0.35)) drop-shadow(0 0 48px rgba(127, 231, 255, 0.18)) brightness(1); }
}

@keyframes brilha {
  0%, 100% { opacity: 0.85; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.12) rotate(45deg); }
}

@keyframes iridesce {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes pinga {
  0% { transform: scaleY(0); opacity: 0; }
  25% { opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(12px); opacity: 0; }
}

@keyframes escorre { to { background-position: 300% 300%; } }

/* movimento reduzido: nada pulsa, gira nem ondula; o que muda de estado só troca */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sigilo, .sigilo.acende, .sigilo .orbita, .sigilo .estrela, .nome, .o-corpo::before, .desce i, .portal::before { animation: none; }
  .desce i { opacity: 0.7; }
  .l-nome, .linha::before, .linha::after, .l-seta svg, .abrir, .abrir svg, .marca, .convite { transition: none; }
  .portal, .portal.aberto, .portal.folha, .portal.folha.aberto { clip-path: none; transform: none; transition: opacity 0.2s ease, visibility 0s; }
  .p-meta, .p-nome, .p-frase, .p-acoes,
  .portal.aberto .p-meta, .portal.aberto .p-nome, .portal.aberto .p-frase, .portal.aberto .p-acoes { opacity: 1; transform: none; transition: none; }
  .cortina, .lente img, .o-rotulo, .espia { transition: none; }
}
