/* Telas 03 e 04: faixa de marcas e mural integral de Whey. */
.wc-brands { --graphite: #929594; position: relative; z-index: 2; box-shadow: 0 -2px 0 var(--graphite), 0 2px 0 var(--graphite); width: 100%; height: 84px; overflow: hidden; background: var(--graphite); color: #080a09; font-family: Anton, sans-serif; }
.wc-brands-track { display: flex; width: max-content; height: 100%; animation: wc-brands-pass 85s linear infinite; }
.wc-brands-group { flex: 0 0 auto; display: flex; align-items: center; gap: clamp(22px, 3.5vw, 64px); padding-right: clamp(22px, 3.5vw, 64px); white-space: nowrap; }
.wc-brands-group span { font-size: clamp(19px, 1.7vw, 29px); text-transform: uppercase; letter-spacing: .035em; }
.wc-brands-group .wc-brand-divider { font-size: 34px; font-family: Archivo, sans-serif; font-weight: 700; }
.wc-brands:hover .wc-brands-track, .wc-brands:focus .wc-brands-track { animation-play-state: paused; }
.wc-brands:focus-visible { outline: 3px solid #080a09; outline-offset: -5px; }
@keyframes wc-brands-pass { to { transform: translateX(-50%); } }
.wc-whey { --comic-ink: #101010; --slant: min(14svh, 6vw); --gap: 5px; --pot-h: 88%; --pot-w: 128%; position: relative; width: 100%; height: 100vh; height: 100svh; overflow: hidden; background: var(--comic-ink); }
.wc-whey-track { position: relative; display: flex; height: 100%; margin-left: calc(var(--slant) * -1); width: calc(100% + var(--slant) * 2); background: var(--comic-ink); }
.wc-whey-panel { position: relative; flex: 1 1 0; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: var(--panel-color); cursor: pointer; -webkit-tap-highlight-color: transparent; clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.wc-whey-panel + .wc-whey-panel { margin-left: calc(var(--slant) * -1 + var(--gap)); }
.wc-whey-pot { position: absolute; left: calc((100% - var(--pot-w) * var(--pot-k, 1)) / 2); top: calc((100% - var(--pot-h) * var(--pot-k, 1)) / 2); width: calc(var(--pot-w) * var(--pot-k, 1)); height: calc(var(--pot-h) * var(--pot-k, 1)); object-fit: contain; object-position: center; user-select: none; -webkit-user-drag: none; filter: drop-shadow(10px 16px 8px rgba(0,0,0,.3)); transition: transform .24s ease; }
.wc-whey-panel:focus-visible { outline: none; }
.wc-whey-panel:focus-visible::after { content: ''; position: absolute; z-index: 3; inset: 12px calc(var(--slant) + 6px); border: 3px solid var(--comic-ink); pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
 .wc-whey-panel:hover .wc-whey-pot { transform: scale(1.05); }
}
/* Giro 3D (só a frente): o script do index.html define --ry (graus), --rn (número) e --rg (força do brilho). */
.wc-whey-panel { --ry: 0deg; --rn: 0; --rg: 0; touch-action: pan-y; }
/* perspective() no próprio transform: perspectiva no painel junto com o clip-path some com o pote. */
.wc-whey-3d { position: absolute; inset: 0; transform: perspective(900px) rotateY(var(--ry)); transition: transform .6s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.wc-whey-panel.is-drag .wc-whey-3d { transition: none; }
.wc-whey-panel.is-drag { cursor: grabbing; }
.wc-whey-3d .wc-whey-pot { filter: drop-shadow(calc(10px - var(--rn) * .5px) 16px 8px rgba(0,0,0,.3)); }
.wc-whey-glare { position: absolute; left: calc((100% - var(--pot-w) * var(--pot-k, 1)) / 2); top: calc((100% - var(--pot-h) * var(--pot-k, 1)) / 2); width: calc(var(--pot-w) * var(--pot-k, 1)); height: calc(var(--pot-h) * var(--pot-k, 1)); opacity: var(--rg); transition: opacity .6s ease; pointer-events: none;
 background: linear-gradient(90deg, rgba(0,0,0,.32), transparent 22%, transparent 78%, rgba(0,0,0,.32)), linear-gradient(100deg, transparent 38%, rgba(255,255,255,.4) 50%, transparent 62%);
 background-size: 100% 100%, 260% 100%; background-position: 0 0, calc(50% - var(--rn) * 1.4%) 0;
 -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.wc-whey-panel.is-drag .wc-whey-glare { transition: none; }
.wc-whey-hint { position: absolute; z-index: 4; left: 50%; bottom: clamp(14px, 3vh, 28px); transform: translateX(-50%); margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(16,16,16,.78); color: #fff; font: 600 13px/1 Archivo, sans-serif; letter-spacing: .02em; white-space: nowrap; pointer-events: none; transition: opacity .4s ease; }
.wc-whey.is-used .wc-whey-hint { opacity: 0; }
.wc-whey-panel.is-dup { display: none; }
@media (max-width: 699px) {
 /* Ajuste de tamanho dos potes (Dux e Max) só no celular. */
 .wc-whey-panel { --pot-k: var(--pot-km, 1); }
 /* Celular: 3 Wheys parados; a cada poucos segundos um deles troca por um dos outros dois (script no index.html). */
 .wc-whey { --slant: 7vw; --gap: 3px; --pot-h: 76%; --pot-w: 170%; }
 /* Troca passa pelo preto: o painel escurece até o preto (foto e cor juntas) e clareia com o novo. */
 .wc-whey-panel { transition: filter .26s ease-in; }
 .wc-whey-panel.is-fade:not(.is-on) { transition: none; }
 .wc-whey-panel.is-fade { filter: brightness(0); }
 .wc-whey-panel.is-on { transition-timing-function: ease-out; }
 .wc-whey:not(.js-rot) .wc-whey-panel:nth-child(n+4) { display: none; }
 .wc-whey.js-rot .wc-whey-panel:not(.is-on) { display: none; }
 /* Margem pela posição visual (is-first), não pela ordem do HTML, que muda a cada troca. */
 .wc-whey.js-rot .wc-whey-panel { margin-left: calc(var(--slant) * -1 + var(--gap)); }
 .wc-whey.js-rot .wc-whey-panel.is-first { margin-left: 0; }
 .wc-brands { height: 58px; }
 .wc-brands-group { gap: 28px; padding-right: 28px; }
 .wc-brands-group span { font-size: 21px; }
 .wc-brands-group .wc-brand-divider { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
 .wc-brands { overflow-x: auto; scrollbar-width: none; }
 .wc-brands-track { animation: none; }
 .wc-brands-group[aria-hidden] { display: none; }
 .wc-whey-pot, .wc-whey-3d, .wc-whey-glare { transition: none; }
}
}
