/* ============================================================
   Gasto Energético Total — player em sequência (ver assets/js/get.js)
   Mesma sala escura da aba Vídeos: fundo com a capa do vídeo desfocada,
   feixes de luz dourada, e a tela 9:16 no centro. No desktop, o painel
   à esquerda diz o que é e em que parte a pessoa está; no celular a tela
   ocupa tudo, no formato de story, com as barras de progresso no topo.
   ============================================================ */

html.get-aberto { overflow: hidden; }

.get {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* opaco: com qualquer transparência o título da página de trás
     aparece como fantasma atrás do painel */
  background: #080503;
  opacity: 0;
  transition: opacity 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.get.is-aberto { opacity: 1; }
.get.is-saindo { opacity: 0; pointer-events: none; transition-duration: 420ms; }

/* A capa do vídeo em foco, desfocada: a marquise do cinema. */
.get-fundo { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.get-fundo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(60px) saturate(115%) brightness(0.42);
  transform: scale(1.25);
  opacity: 0.75;
}
.get-fundo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 50%, transparent 0%, rgba(8, 5, 3, 0.55) 70%, rgba(8, 5, 3, 0.92) 100%);
}

/* Feixes verticais — o vocabulário do preloader e da abertura. */
.get-luz {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  gap: clamp(40px, 9vw, 150px);
  pointer-events: none;
  opacity: 0.5;
  /* os feixes moram em volta da tela do vídeo; sobre o texto do painel
     eles só atrapalhariam a leitura */
  -webkit-mask-image: radial-gradient(ellipse 30% 85% at 64% 50%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 30% 85% at 64% 50%, #000 35%, transparent 80%);
}
.get-luz i {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(215, 162, 83, 0.35) 40%, rgba(242, 209, 154, 0.5) 50%, rgba(215, 162, 83, 0.35) 60%, transparent);
  transform: scaleY(0.1);
  opacity: 0;
  animation: get-feixe 5.2s cubic-bezier(0.33, 0, 0.2, 1) infinite;
}
.get-luz i:nth-child(2) { animation-delay: 1.1s; }
.get-luz i:nth-child(3) { animation-delay: 2.4s; }
.get-luz i:nth-child(4) { animation-delay: 0.4s; width: 2px; }
.get-luz i:nth-child(5) { animation-delay: 3.1s; }
.get-luz i:nth-child(6) { animation-delay: 1.8s; }
.get-luz i:nth-child(7) { animation-delay: 4s; }
@keyframes get-feixe {
  0%   { transform: scaleY(0.1); opacity: 0; }
  35%  { opacity: 1; }
  60%  { transform: scaleY(1); opacity: 0.8; }
  100% { transform: scaleY(1.1); opacity: 0; }
}

/* ---------- Palco ---------- */
.get-palco {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 5vw, 88px);
  width: 100%;
  height: 100%;
  padding: 0 clamp(20px, 4vw, 56px);
}

/* ---------- Painel de informação (desktop) ---------- */
.get-info {
  width: min(380px, 32vw);
  flex: none;
  opacity: 0;
  transform: translateX(-22px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1) 180ms, transform 900ms cubic-bezier(0.22, 1, 0.36, 1) 180ms;
}
.get.is-aberto .get-info { opacity: 1; transform: none; }

.get-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin: 0 0 16px;
}
.get-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  margin-right: 12px;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, var(--gold-primary));
}
.get-titulo {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(2.2rem, 3.2vw, 3.1rem);
  line-height: 1.02;
  color: var(--text-primary);
  margin: 0 0 20px;
  letter-spacing: -0.015em;
}
.get-titulo em,
.get-fim-titulo em { font-style: normal; color: var(--gold-light); }
.get-texto {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0 0 30px;
}

.get-lista { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.get-item {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-gold-faint);
  background: rgba(244, 239, 231, 0.03);
  color: var(--text-secondary);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.get-item:hover { border-color: var(--border-gold); background: rgba(244, 239, 231, 0.05); }
.get-item-num {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-variant-numeric: lining-nums;
  color: var(--text-muted);
  transition: color 0.3s ease;
}
.get-item-nome { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.get-item-dur { font-size: 0.8rem; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.get-item-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(244, 239, 231, 0.06); }
.get-item-barra i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
}
.get-item.is-ativo { border-color: var(--border-gold-strong); background: rgba(215, 162, 83, 0.08); }
.get-item.is-ativo .get-item-num { color: var(--gold-light); }
.get-item.is-visto .get-item-num { color: var(--gold-dark); }
.get-item.is-visto .get-item-dur::before { content: '✓ '; color: var(--gold-primary); }

.get-proximo { font-size: 0.86rem; color: var(--text-muted); margin: 0; }
.get-proximo a { color: var(--gold-light); font-weight: 600; }
.get-proximo a:hover { color: var(--gold-lighter); }

/* ---------- Tela 9:16 ---------- */
.get-tela {
  position: relative;
  flex: none;
  height: min(86vh, 860px);
  aspect-ratio: 9 / 16;
  max-width: 100%;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 50px 120px -30px rgba(0, 0, 0, 0.95), 0 0 90px -20px rgba(215, 162, 83, 0.28);
  opacity: 0;
  transform: scale(0.93) translateY(14px);
  filter: blur(10px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 900ms cubic-bezier(0.16, 1, 0.3, 1), filter 700ms ease;
}
.get.is-aberto .get-tela { opacity: 1; transform: none; filter: none; }

.get-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  transition: opacity 300ms ease;
}
.get-tela.is-trocando .get-video { opacity: 0; }
.get-tela.is-fim .get-video { opacity: 0.25; filter: blur(6px); transition: opacity 600ms ease, filter 600ms ease; }

/* Barras de progresso no topo, no formato de story. */
.get-progresso {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 5; /* acima da tela final: as duas barras cheias dizem "completo" */
  display: flex;
  gap: 6px;
}
.get-progresso span {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(244, 239, 231, 0.26);
  overflow: hidden;
}
.get-progresso i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-lighter));
  box-shadow: 0 0 10px rgba(215, 162, 83, 0.7);
  transform: scaleX(0);
  transform-origin: left;
}
/* Faixa escura atrás das barras, pra elas lerem sobre a parede branca
   do consultório dele. */
.get-tela::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 5, 3, 0.6), transparent);
}
.get-rotulo {
  position: absolute;
  top: 28px;
  left: 16px;
  z-index: 3;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* A área de toque da tela inteira pausa/retoma. O ícone só aparece
   pausado. */
.get-pausa {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: var(--text-primary);
}
.get-pausa svg {
  width: 74px;
  height: 74px;
  padding: 20px 18px 20px 22px;
  border-radius: 50%;
  background: rgba(13, 9, 6, 0.55);
  border: 1px solid var(--border-gold-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.get-tela.is-pausado .get-pausa svg { opacity: 1; transform: none; }
.get-tela.is-fim .get-pausa { display: none; }

.get-carregando {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  border: 2px solid rgba(244, 239, 231, 0.15);
  border-top-color: var(--gold-light);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease 0.25s;
  animation: get-gira 0.9s linear infinite;
}
.get-tela.is-carregando .get-carregando { opacity: 1; }
.get-tela.is-fim .get-carregando { display: none; }
@keyframes get-gira { to { transform: rotate(360deg); } }

.get-som {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-gold-strong);
  background: rgba(13, 9, 6, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  font: 600 0.84rem var(--font-body);
  cursor: pointer;
  white-space: nowrap;
}
.get-som[hidden] { display: none; }

/* ---------- Fim: o convite pro prato ---------- */
.get-fim {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 26px;
  text-align: center;
  background: radial-gradient(ellipse 90% 70% at 50% 45%, rgba(13, 9, 6, 0.55), rgba(8, 5, 3, 0.9));
}
.get-fim[hidden] { display: none; }
.get-fim-luz {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  gap: 34px;
  pointer-events: none;
}
.get-fim-luz i {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(215, 162, 83, 0.45) 45%, rgba(242, 209, 154, 0.7) 50%, rgba(215, 162, 83, 0.45) 55%, transparent);
  transform: scaleY(0);
  animation: get-fim-feixe 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.get-fim-luz i:nth-child(2) { animation-delay: 0.08s; }
.get-fim-luz i:nth-child(3) { animation-delay: 0s; width: 2px; }
.get-fim-luz i:nth-child(4) { animation-delay: 0.12s; }
.get-fim-luz i:nth-child(5) { animation-delay: 0.2s; }
@keyframes get-fim-feixe {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: scaleY(1); opacity: 0.35; }
}
.get-fim-conteudo {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: get-fim-entra 900ms cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}
.get-fim .get-eyebrow::before { display: none; }
.get-fim-titulo {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: clamp(2.2rem, 3.4vw, 2.9rem);
  line-height: 1.02;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.get-fim-texto {
  max-width: 30ch;
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
}
.get-rever {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--text-muted);
  font: 600 0.84rem var(--font-body);
  cursor: pointer;
  transition: color 0.25s ease;
}
.get-rever:hover { color: var(--gold-light); }
@keyframes get-fim-entra {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Fechar ---------- */
.get-fechar {
  position: absolute;
  top: clamp(16px, 3vh, 32px);
  right: clamp(16px, 3vw, 40px);
  z-index: 5;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: rgba(13, 9, 6, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.get-fechar:hover { border-color: var(--gold-primary); color: var(--gold-light); transform: rotate(90deg); }

/* Barra de partes do celular: no desktop quem faz esse papel é a lista
   do painel da esquerda. */
.get-partes { display: none; }

/* ---------- Celular e tablet em pé: a tela vira story ---------- */
@media (max-width: 900px) {
  .get { background: #000; }
  .get-info, .get-luz { display: none; }
  /* Coluna: o vídeo em cima ocupando o que sobrar, e a barra com a
     Parte 1 e a Parte 2 embaixo, pra pessoa escolher sem esperar o fim. */
  .get-palco { padding: 0; flex-direction: column; gap: 0; }
  .get-tela {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    width: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }

  .get-partes {
    display: block;
    flex: none;
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(8, 5, 3, 0.88), #080503);
    border-top: 1px solid var(--border-gold-faint);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1) 200ms, transform 700ms cubic-bezier(0.22, 1, 0.36, 1) 200ms;
  }
  .get.is-aberto .get-partes { opacity: 1; transform: none; }
  .get-partes ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .get-partes .get-item { gap: 10px; padding: 13px 14px; border-radius: 12px; }
  .get-partes .get-item-num { font-size: 1.15rem; }
  .get-partes .get-item-nome { font-size: 0.88rem; }
  .get-partes .get-item-dur { font-size: 0.74rem; }
  /* Em tela mais alta que 9:16 o vídeo não é cortado: sobra faixa em
     cima e embaixo, preenchida pela capa desfocada do .get-fundo. */
  .get-video { object-fit: contain; background: transparent; }
  .get-fechar {
    top: 30px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 0;
    background: rgba(8, 5, 3, 0.35);
  }
  .get-rotulo { top: 30px; }
}
/* Tela baixa no desktop (notebook com a barra do navegador): o painel
   encolhe junto, a tela nunca passa da altura visível. */
@media (min-width: 901px) and (max-height: 700px) {
  .get-tela { height: 88vh; }
  .get-texto { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .get, .get-info, .get-tela, .get-video, .get-partes { transition: none; }
  .get-partes { transform: none; }
  .get-tela { transform: none; filter: none; }
  .get-luz i { animation: none; opacity: 0.4; transform: scaleY(1); }
  .get-fim-luz i { animation: none; transform: scaleY(1); opacity: 0.3; }
  .get-fim-conteudo { animation: none; }
  .get-carregando { animation-duration: 2s; }
}
