/* =========================================================
   FASHION REACTIONS · telemóvel, ecrã (LED wall) e controlo
   ========================================================= */
body.rx { background: var(--preto); color: var(--branco); min-height: 100svh; }
.rx .aviso-flutuante { background: var(--verde); color: var(--preto); }
.rx .aviso-flutuante.is-erro { background: var(--vermelho); color: var(--branco); }

.rx-ponto { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: var(--verde); margin-right: .45em; vertical-align: .05em; }
.rx-ponto.is-off { background: var(--vermelho); }
.rx-ponto--vivo { background: currentColor; animation: rx-pisca 1.2s ease-in-out infinite; }
@keyframes rx-pisca { 50% { opacity: .25; } }
.rx-vivo::before { animation: rx-pisca 1.2s ease-in-out infinite; }

/* ---------- Topo (telemóvel e controlo) ---------- */
.rx-topo {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px; background: rgba(20,20,20,.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.rx-topo img { width: 112px; height: auto; }
.rx-topo__tag { font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--verde); }

/* ---------- Botão principal ---------- */
.rx-cta {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 70px; padding: 0 26px 0 46px; position: relative; border: 0;
  background: var(--verde); color: var(--preto); border-radius: 8px 40px 40px 8px; box-shadow: 7px 7px 0 var(--branco);
  font-family: var(--f-xc); font-weight: 900; font-size: 27px; text-transform: uppercase; line-height: 1;
}
.rx-cta::before { content: ""; position: absolute; left: 20px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--preto); }
.rx-cta:active { transform: translate(4px, 4px); box-shadow: 3px 3px 0 var(--branco); }

/* =========================================================
   TELEMÓVEL
   ========================================================= */
.rx-tel__palco { width: 100%; max-width: 520px; margin: 0 auto; padding: 18px 18px 48px; }
.rx-ecra { animation: rx-entra .35s ease both; }
@keyframes rx-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.rx-emojis-deco { display: flex; gap: 10px; font-size: 34px; margin-top: 8px; }
.rx-emojis-deco span { display: inline-block; animation: rx-salta 2.4s ease-in-out infinite; }
.rx-emojis-deco span:nth-child(2) { animation-delay: .2s; } .rx-emojis-deco span:nth-child(3) { animation-delay: .4s; }
.rx-emojis-deco span:nth-child(4) { animation-delay: .6s; } .rx-emojis-deco span:nth-child(5) { animation-delay: .8s; }
@keyframes rx-salta { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-10px) rotate(-8deg); } }

.rx-titulo { margin: 22px 0 18px; line-height: 1; }
.rx-titulo .t-leve { font-size: clamp(42px, 12vw, 60px); }
.rx-titulo .t-xc { font-size: clamp(90px, 28vw, 150px); margin-top: .04em; }
.rx-lead { color: #DCD7CE; font-size: 18px; margin-bottom: 28px; }

.rx-nome { display: grid; gap: 12px; }
.rx-nome label, .rx-ctl__entrar label { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--verde); }
.rx-nome input, .rx-ctl__entrar input {
  width: 100%; min-height: 62px; padding: 0 18px; border: 0; border-radius: 6px 30px 30px 6px;
  background: var(--branco); color: var(--preto); font: 700 22px var(--f-titulo); margin-bottom: 10px;
}
.rx-nome input::placeholder { color: #A29D95; font-weight: 500; }
.rx-nome__erro { color: #FF6B76; font-weight: 700; font-size: 15px; margin-top: -6px; }
.rx-nota { font-size: 14px; color: #A29D95; margin-top: 8px; }

/* Reagir */
.rx-reagir__estado { min-height: 34px; }
.rx-reagir__estado .etq { font-size: 15px; }
.rx-espera { margin: 18px 0 26px; display: grid; gap: 14px; justify-items: start; color: #DCD7CE; }

.rx-look { position: relative; margin: 26px auto 20px; width: min(78%, 300px); }
.rx-look.is-novo { animation: rx-novo .5s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes rx-novo { from { opacity: 0; transform: translateY(30px) rotate(6deg) scale(.9); } to { opacity: 1; transform: none; } }
.rx-look__fita { position: absolute; z-index: 2; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; background: rgba(25,181,165,.85); transform: rotate(-3deg); }
.rx-look__foto { position: relative; background: var(--puro); padding: 10px 10px 46px; transform: rotate(-2deg); box-shadow: 8px 10px 0 rgba(0,0,0,.45); }
.rx-look__foto > img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border: 2px solid var(--preto); background: #EEF0F1; }
.rx-look__num { position: absolute; top: 20px; left: 20px; background: var(--preto); color: var(--branco); font: 900 19px var(--f-xc); padding: 2px 8px; }
.rx-look__logo { position: absolute; top: 18px; right: 18px; width: 60px; height: 60px; padding: 4px; background: var(--puro); border: 2px solid var(--preto); border-radius: 10px; transform: rotate(5deg); }
.rx-look__logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 5px; }
.rx-look__loja { position: absolute; left: -8px; bottom: 8px; z-index: 3; font-size: 20px; font-weight: 800; transform: rotate(-4deg); white-space: normal; max-width: calc(100% + 16px); }

.rx-botoes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 8px; }
.rx-botao {
  display: grid; justify-items: center; gap: 4px; padding: 12px 2px 10px; border: 0; border-radius: 16px;
  background: var(--branco); color: var(--preto); box-shadow: 0 5px 0 rgba(0,0,0,.45);
  transition: transform .12s ease, opacity .2s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.rx-botao__e { font-size: clamp(30px, 9.5vw, 44px); line-height: 1.1; }
.rx-botao__n { font-weight: 800; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.rx-botao:active { transform: scale(.92); }
.rx-botao.is-pop { animation: rx-pop .45s cubic-bezier(.2,.9,.3,1.5); }
@keyframes rx-pop { 0% { transform: scale(.85); } 50% { transform: scale(1.18) rotate(-6deg); background: var(--verde); } 100% { transform: none; } }
.rx-botoes.is-espera .rx-botao:not(.is-pop) { opacity: .45; }
.rx-botoes.is-inativo { opacity: .3; pointer-events: none; }
.rx-feito { min-height: 26px; margin-top: 18px; text-align: center; font-weight: 700; color: var(--verde); }

.rx-links { display: grid; justify-items: center; gap: 4px; margin-top: 18px; }
.rx-link { background: none; border: 0; padding: 10px; color: var(--branco); font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: .2em; }
.rx-link--fraco { color: #A29D95; font-weight: 500; font-size: 14px; }

.rx-voo { position: fixed; inset: 0; pointer-events: none; z-index: 50; }
.rx-voo span { position: absolute; font-size: 34px; transform: translate(-50%, -50%); animation: rx-voa 1.4s ease-out forwards; }
@keyframes rx-voa {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.3) rotate(var(--rot)); }
}

/* Lista de looks */
.rx-lista { width: min(100%, 520px); max-height: 86svh; margin: auto auto 0; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--branco); color: var(--preto); }
.rx-lista::backdrop { background: rgba(0,0,0,.6); }
.rx-lista__topo { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 12px; background: var(--branco); }
.rx-lista__topo h2 { font: 900 30px var(--f-xc); text-transform: uppercase; }
.rx-lista__fechar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--preto); color: var(--branco); font-size: 26px; line-height: 1; }
.rx-lista__grelha { list-style: none; margin: 0; padding: 0 18px calc(24px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rx-lista__item, .rx-ctl__look {
  width: 100%; display: grid; grid-template-columns: 44px auto 1fr; align-items: center; gap: 8px; text-align: left;
  padding: 8px; background: var(--puro); border: 2px solid var(--preto); border-radius: 8px; font-weight: 700; font-size: 15px; line-height: 1.15; color: var(--preto);
}
.rx-lista__item img, .rx-ctl__look img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: var(--puro); }
.rx-lista__sem { width: 44px; height: 44px; border-radius: 6px; background: var(--placeholder); }
.rx-lista__num { font: 900 16px var(--f-xc); color: var(--basalto); }
.rx-lista__item.is-atual { background: var(--verde); }

/* =========================================================
   ECRÃ · LED wall (16:9, tudo em vw/vh para escalar)
   ========================================================= */
body.rx-ecr { overflow: hidden; cursor: default; }
body.rx-ecr.is-quieto { cursor: none; }
.rx-ecr__palco {
  position: fixed; inset: 0; z-index: 2; display: grid; gap: 1.4vw 3.2vw; padding: 2.2vw 3.4vw 0;
  grid-template-columns: 30vw 1fr; grid-template-rows: auto auto 1fr auto auto;
  grid-template-areas: "topo topo" "foto info" "foto feed" "base feed" "apoios apoios";
}
.rx-ecr__topo { grid-area: topo; display: flex; align-items: center; justify-content: space-between; }
.rx-ecr__logo { width: 15vw; height: auto; }
.rx-ecr__titulo { display: flex; align-items: center; gap: 2vw; }
.rx-ecr__marca-titulo { font: 900 5.6vw/.85 var(--f-xc); text-transform: uppercase; letter-spacing: -.01em; transform: rotate(-2deg); white-space: nowrap; }
.rx-ecr__marca-titulo span:last-child { color: var(--verde); }
.rx-ecr__emojis { display: grid; grid-template-columns: repeat(5, auto); gap: .4vw; font-size: 2.8vw; }

.rx-ecr__look { display: contents; }
.rx-ecr__polaroid { grid-area: foto; position: relative; align-self: start; justify-self: center; height: min(46vh, 50vw); aspect-ratio: 4 / 5.6; margin-top: 1vh; }
.rx-ecr__fita { position: absolute; z-index: 2; top: -1.4vh; left: 50%; width: 30%; height: 3.6vh; margin-left: -15%; background: rgba(25,181,165,.85); transform: rotate(-3deg); }
.rx-ecr__foto { position: relative; height: 100%; background: var(--puro); padding: 3% 3% 14%; transform: rotate(-2.5deg); box-shadow: 1vw 1.2vw 0 rgba(0,0,0,.5); }
.rx-ecr__foto > img { width: 100%; height: 100%; object-fit: cover; border: .25vw solid var(--preto); background: #EEF0F1; }
.rx-ecr__num { position: absolute; top: 6%; left: 7%; background: var(--preto); color: var(--branco); font: 900 2.6vw var(--f-xc); padding: .1em .35em; }
.rx-ecr__marca { position: absolute; top: 5%; right: 6%; width: 24%; aspect-ratio: 1; padding: 2.5%; background: var(--puro); border: .22vw solid var(--preto); border-radius: 1vw; transform: rotate(5deg); box-shadow: .3vw .3vw 0 var(--preto); }
.rx-ecr__marca img { width: 100%; height: 100%; object-fit: contain; border-radius: .5vw; }
.rx-ecr__info { grid-area: info; display: grid; gap: 1vw; justify-items: start; align-content: start; }
.rx-ecr__info .etq { font-size: 1.8vw; }
.rx-ecr__loja { font: 900 clamp(40px, 7.4vw, 9999px) / .9 var(--f-xc); text-transform: uppercase; letter-spacing: -.01em; transform: rotate(-2deg); transform-origin: left; max-width: 100%; overflow-wrap: anywhere; }
.is-entra { animation: rx-ecr-entra .7s cubic-bezier(.2,.9,.3,1.25) both; }
@keyframes rx-ecr-entra { from { opacity: 0; transform: translateY(6vh) rotate(5deg) scale(.92); } to { opacity: 1; } }
.rx-ecr__vazio { grid-row: 2 / 4; grid-column: 1 / 3; align-self: center; justify-self: center; display: grid; justify-items: center; gap: 2.4vw; text-align: center; }
.rx-ecr__vazio-emojis { display: flex; gap: 2vw; font-size: 7vw; }
.rx-ecr__vazio-emojis span { animation: rx-salta 2.4s ease-in-out infinite; }
.rx-ecr__vazio-emojis span:nth-child(2) { animation-delay: .2s; } .rx-ecr__vazio-emojis span:nth-child(3) { animation-delay: .4s; }
.rx-ecr__vazio-emojis span:nth-child(4) { animation-delay: .6s; } .rx-ecr__vazio-emojis span:nth-child(5) { animation-delay: .8s; }
.rx-ecr__vazio p { font-size: 2.4vw; line-height: 1.3; color: #DCD7CE; max-width: 60vw; }

.rx-ecr__feed { grid-area: feed; position: relative; overflow: hidden; min-height: 0;
  -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.rx-ecr__lista { list-style: none; margin: 0; padding: .6vw 0 0; display: grid; gap: 1vw; }
.rx-ecr__cartao {
  display: flex; align-items: center; gap: 1.2vw; width: fit-content; max-width: 100%;
  padding: .7vw 1.8vw .7vw 2vw; background: var(--branco); color: var(--preto);
  border-radius: .4vw 3vw 3vw .4vw; box-shadow: .5vw .5vw 0 var(--verde);
  animation: rx-cartao .55s cubic-bezier(.2,.9,.3,1.3) both;
}
.rx-ecr__cartao:nth-child(even) { transform: rotate(.6deg); }
.rx-ecr__cartao:nth-child(odd) { transform: rotate(-.6deg); }
.rx-ecr__cartao:first-child { background: var(--puro); box-shadow: .5vw .5vw 0 var(--vermelho); }
.rx-ecr__cartao-e { font-size: 3.4vw; line-height: 1; }
.rx-ecr__cartao p { font-size: 1.9vw; line-height: 1.15; }
.rx-ecr__cartao strong { font-weight: 800; }
.rx-ecr__cartao.is-sai { opacity: 0; transform: translateX(-4vw); transition: .45s ease; }
@keyframes rx-cartao { from { opacity: 0; transform: translateX(8vw) scale(.9); } to { opacity: 1; } }

.rx-ecr__base { grid-area: base; position: relative; display: flex; align-items: center; gap: 1.4vw; padding: 0 0 1.4vw; }
.rx-ecr__qr { width: 8vw; aspect-ratio: 1; background: var(--puro); border-radius: .6vw; padding: .35vw; }
.rx-ecr__qr svg { width: 100%; height: 100%; display: block; }
.rx-ecr__qr svg rect[fill="#ffffff"], .rx-ecr__qr svg path { shape-rendering: crispEdges; }
.rx-ecr__como { display: grid; gap: .3vw; }
.rx-ecr__como-1 { font: 900 2.2vw/1 var(--f-xc); text-transform: uppercase; }
.rx-ecr__como-2 { font-weight: 700; font-size: 1.3vw; color: var(--verde); }
.rx-ecr__apoios {
  grid-area: apoios; margin: 0 -3.4vw; padding: 1.3vh 3.4vw; background: var(--branco);
  display: flex; align-items: center; justify-content: space-between; gap: 2.4vw;
}
.rx-ecr__apoios img { width: auto; display: block; }
.rx-ecr__bcd { height: 6.4vh; }
.rx-ecr__cmpd { height: 5.4vh; }
.rx-ecr__ccipd { height: 7vh; }
.rx-ecr__ahresp { height: 4.2vh; }
.rx-ecr__prr { height: 3.6vh; }
.rx-ecr__sep { width: 2px; height: 5vh; background: #CFC9BF; }
.rx-ecr__chuva { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.rx-ecr__chuva span { position: absolute; bottom: -10vh; font-size: var(--tam); animation: rx-sobe var(--dur) ease-out forwards; }
@keyframes rx-sobe {
  0% { opacity: 0; transform: translateY(0) scale(.6); }
  12% { opacity: 1; }
  80% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--dx), -105vh) rotate(var(--rot)) scale(1.1); }
}
.rx-ecr__pausa { position: fixed; right: 3vw; bottom: 4vw; z-index: 6; }
.rx-ecr__pausa span { display: inline-block; padding: .5vw 1.4vw; background: var(--vermelho); font: 900 1.6vw var(--f-xc); text-transform: uppercase; border-radius: .3vw 2vw 2vw .3vw; }
.rx-ecr__ecra-inteiro { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 9; background: var(--verde); color: var(--preto); border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 800; transition: opacity .3s; }
.is-quieto .rx-ecr__ecra-inteiro { opacity: 0; pointer-events: none; }
.rx-ecr__ligacao { position: fixed; right: 10px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--verde); opacity: .5; z-index: 9; }
.rx-ecr__ligacao.is-off { background: var(--vermelho); opacity: 1; }

/* =========================================================
   CONTROLO
   ========================================================= */
.rx-ctl__palco { max-width: 1100px; margin: 0 auto; padding: 24px 18px 60px; }
.rx-ctl__entrar { max-width: 420px; margin: 8vh auto 0; display: grid; gap: 12px; }
.rx-ctl__entrar h1 { font: 900 48px/.95 var(--f-xc); text-transform: uppercase; }
.rx-ctl__entrar p { color: #DCD7CE; margin-bottom: 10px; }
.rx-ctl__painel { display: grid; gap: 34px; }
.rx-ctl__bloco h2 { font: 900 34px var(--f-xc); text-transform: uppercase; }
.rx-ctl__cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rx-ctl__acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.rx-ctl__acoes .is-pausa { background: var(--vermelho); border-color: var(--vermelho); }
.rx-ctl__ajuda { color: #A29D95; font-size: 15px; margin: 6px 0 14px; }
.rx-ctl__looks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.rx-ctl__look { min-height: 64px; }
.rx-ctl__look.is-on { background: var(--verde); box-shadow: 0 0 0 4px var(--branco); }
.rx-ctl__recentes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rx-ctl__recentes li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 8px 12px; background: #1F1D1B; border-radius: 6px; }
.rx-ctl__recentes li.is-oculta { opacity: .45; }
.rx-ctl__recentes .rx-ctl__e { font-size: 24px; }
.rx-ctl__recentes button { background: var(--vermelho); color: var(--branco); border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 800; }
.rx-ctl__recentes em { font-style: normal; color: #A29D95; font-size: 14px; }
.rx-ctl__vazio { grid-template-columns: 1fr !important; color: #A29D95; }

@media (prefers-reduced-motion: reduce) {
  .rx-emojis-deco span, .rx-ecr__chuva span, .rx-voo span, .rx-ponto--vivo, .rx-vivo::before { animation: none; }
}

/* Logótipo da loja em destaque (em vez do nome) */
.rx-look__foto { padding-bottom: 64px; }
.rx-look__marca {
  position: absolute; z-index: 3; left: 50%; bottom: -44px; width: 124px; height: 124px; margin-left: -62px;
  display: block; padding: 8px; background: var(--puro);
  border: 3px solid var(--preto); border-radius: 14px; box-shadow: 6px 6px 0 var(--verde); transform: rotate(-3deg);
}
.rx-look__marca img { width: 100%; height: 100%; object-fit: contain; }
.rx-look { margin-bottom: 64px; }
.rx-ecr__logo-loja {
  width: 30vh; height: 30vh; display: block; padding: 1.2vh;
  background: var(--puro); border: .3vw solid var(--preto); border-radius: 1.4vw;
  box-shadow: .8vw .8vw 0 var(--verde); transform: rotate(-2deg); margin-top: .6vw;
}
.rx-ecr__logo-loja img { width: 100%; height: 100%; object-fit: contain; }
.rx-ecr__logo-loja.is-entra, .rx-ecr__info.is-entra .rx-ecr__logo-loja { animation: rx-ecr-entra .7s cubic-bezier(.2,.9,.3,1.25) both; }

.rx-ecr__qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.rx-ecr__qr { width: 10vw; padding: 0; overflow: hidden; }

/* Com um look em passerelle, o título Fashion Reactions encolhe para dar o protagonismo ao look */
.rx-ecr__marca-titulo, .rx-ecr__emojis { transition: font-size .4s ease; }
.tem-look .rx-ecr__marca-titulo { font-size: 3.4vw; }
.tem-look .rx-ecr__emojis { font-size: 1.9vw; }
