/* Sites Rivals Rise e M Studios — rodada "estreia" (27/11): curtos, cinematográficos, o trailer na frente.
   Peças comuns às seis prévias; o desenho de cada versão fica no <style> da própria página.
   Rolagem sempre a do navegador: nada preso, nada ligado à roda. */
@font-face { font-family: "Kanit"; font-weight: 400; font-style: normal; font-display: swap; src: url("comum/fonts/Kanit-Regular.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-weight: 500; font-style: normal; font-display: swap; src: url("comum/fonts/Kanit-Medium.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-weight: 600; font-style: normal; font-display: swap; src: url("comum/fonts/Kanit-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Kanit"; font-weight: 700; font-style: italic; font-display: swap; src: url("comum/fonts/Kanit-BoldItalic.woff2") format("woff2"); }

:root {
  --preto: #05070B;
  --fundo-2: #0C1018;
  --texto: #F4F6FA;
  --texto-2: #AEB6C5;
  --linha: rgba(244, 246, 250, .18);
  --azul: #025DFD;            /* o azul da logo e das legendas do trailer */
  --margem: clamp(18px, 3.6vw, 56px);
  --barra: 68px;
  --suave: cubic-bezier(.2, .7, .2, 1);
}
.estudio {
  --preto: #050505;
  --fundo-2: #0E0E0E;
  --texto: #F3EFE7;
  --texto-2: #A8A196;
  --linha: rgba(243, 239, 231, .2);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--preto); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--preto); color: var(--texto); font-family: "Kanit", system-ui, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.5;
  overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }
.estudio :focus-visible { outline-color: var(--texto); }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- vídeo ou imagem de fundo ---------- */
.fundo { position: absolute; inset: 0; overflow: hidden; background: #000; }
.fundo video, .fundo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- barra de cima ---------- */
.barra { position: absolute; inset: 0 0 auto 0; z-index: 20; height: var(--barra); display: flex; align-items: center; gap: 18px; padding: 0 var(--margem); }
.barra .marca { display: block; flex: none; }
.barra .marca img { height: 38px; width: auto; }
.barra .marca.rr img { height: 20px; }
.barra .vao { margin-left: auto; }
.barra .elo { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--texto); opacity: .82; transition: opacity .2s; }
.barra .elo:hover { opacity: 1; }

/* redes (montadas pelo base.js) */
.redes { display: flex; align-items: center; gap: 2px; }
.redes a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--texto); opacity: .84; transition: opacity .2s, transform .25s var(--suave); }
.redes a:hover { opacity: 1; transform: translateY(-2px); }
.redes svg { width: 18px; height: 18px; fill: currentColor; }

/* seletor de idioma (montado pelo comum/idiomas.js) */
.idi { position: relative; }
.idi-botao { display: inline-flex; align-items: center; gap: 7px; background: rgba(5, 7, 11, .35); border: 1px solid var(--linha); padding: 7px 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; cursor: pointer; color: var(--texto); }
.idi-botao:hover { border-color: var(--texto); }
.idi-lista { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; max-height: 60vh; overflow: auto; background: var(--fundo-2); border: 1px solid var(--linha); padding: 6px; z-index: 40; }
.idi-lista button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 7px 10px; font-size: 14px; cursor: pointer; color: var(--texto-2); }
.idi-lista button:hover, .idi-lista button[aria-current="true"] { color: var(--texto); background: rgba(255, 255, 255, .07); }
.idi-aviso { margin: 6px 10px 4px; font-size: 12px; line-height: 1.4; color: var(--texto-2); }
.idi img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
.idi.sobe .idi-lista { top: auto; bottom: calc(100% + 8px); }

/* ---------- legenda no desenho das legendas do trailer: aba escura em cima, faixa azul inclinada embaixo ---------- */
.etiqueta { display: inline-flex; flex-direction: column; align-items: flex-start; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.etiqueta small { margin-left: 13px; padding: 6px 13px 5px 11px; background: #0B0F17; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .32em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.etiqueta b { position: relative; display: block; padding: 9px 28px 9px 30px; color: #fff; font-weight: 700; font-style: italic; font-size: clamp(17px, 1.45vw, 23px); letter-spacing: .01em;
  background: var(--azul) repeating-linear-gradient(107deg, rgba(255, 255, 255, .075) 0 11px, rgba(255, 255, 255, 0) 11px 22px);
  clip-path: polygon(13px 0, 100% 0, calc(100% - 13px) 100%, 0 100%); }
.etiqueta b::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 20px; background: #fff; clip-path: polygon(13px 0, 100% 0, 7px 100%, 0 100%); }

/* ---------- plataformas (montadas pelo base.js) ---------- */
.plataformas { display: flex; flex-direction: column; gap: 12px; }
.plat-rotulo { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; color: var(--texto); opacity: .8; }
.plataformas ul { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0; padding: 0; list-style: none; color: var(--texto); }
.plataformas li { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.plataformas .ic { height: 21px; width: auto; fill: currentColor; }
.plataformas .ic-ps5 { height: 52px; margin: -15px -6px -15px -1px; }
.plataformas.centro { align-items: center; }
.plataformas.centro ul { justify-content: center; }

/* ---------- o trailer: o player do YouTube de verdade, que vira sala de cinema quando começa a tocar ---------- */
.trailer { position: relative; }
.trailer .etiqueta { position: relative; z-index: 1; display: flex; margin: 0 0 0 -10px; }
.trailer-lugar { position: relative; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .34); }
.trailer-tela { position: absolute; inset: 0; background: #000 center / cover no-repeat; overflow: hidden; }
.trailer-tela iframe, .trailer-tela video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.trailer-tela.solta { position: fixed; inset: auto; z-index: 100; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
  transition: left .55s var(--suave), top .55s var(--suave), width .55s var(--suave), height .55s var(--suave); }

.teatro-fundo { position: fixed; inset: 0; z-index: 90; background: rgba(2, 3, 5, .95); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
.teatro-barra { position: fixed; inset: 0 0 auto 0; z-index: 110; display: flex; align-items: center; gap: 18px; height: var(--barra); padding: 0 var(--margem);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.teatro-barra img { height: 18px; width: auto; }
.teatro-barra .vao { margin-left: auto; }
.teatro-barra a, .teatro-barra button { display: inline-flex; align-items: center; gap: 9px; background: none; border: 1px solid rgba(244, 246, 250, .24); padding: 9px 14px; font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: #F4F6FA; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.teatro-barra a:hover, .teatro-barra button:hover { border-color: #F4F6FA; }
.teatro-barra a svg { width: 16px; height: 16px; fill: currentColor; }
.teatro-barra button svg { width: 11px; height: 11px; }
html.teatro { overflow: hidden; }
html.teatro .teatro-fundo { opacity: 1; pointer-events: auto; }
html.teatro .teatro-barra { opacity: 1; pointer-events: auto; transition-delay: .25s; }
html.teatro .barra { visibility: hidden; }
@media (max-width: 700px) {
  .teatro-barra { gap: 10px; }
  .teatro-barra img { display: none; }
  .teatro-barra a span { display: none; }
}

/* ---------- peças do site do estúdio (27/11, segunda rodada: no molde do site do jogo, tudo em branco, sem serifa) ---------- */
.assina { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: #fff; opacity: .84; }
.dito { margin: 0; font-weight: 700; font-style: italic; text-transform: uppercase; line-height: 1.02; letter-spacing: .02em; color: #fff; }
.dito span { white-space: nowrap; }
.seta-b svg { width: 15px; height: 11px; }

/* ---------- entrada das peças ao carregar (só com JS e sem pedido de menos movimento) ---------- */
@keyframes sobe { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

/* ---------- botão e a janela da wishlist (montada pelo base.js quando a página tem [data-wishlist]) ---------- */
.botao { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 15px; border: 1px solid #fff; background: #fff; color: #05070B; font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none; line-height: 1.2; cursor: pointer; transition: background .2s, color .2s; }
.botao:hover { background: rgba(5, 7, 11, .35); color: #fff; }
.botao:disabled { opacity: .6; cursor: default; }
.botao svg { width: 13px; height: 13px; flex: none; }
.botao.vazado { background: none; color: #fff; }
.botao.vazado:hover { background: #fff; color: #05070B; }

.wish { width: min(430px, calc(100vw - 28px)); max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); overflow: auto; padding: 28px 26px 24px; border: 1px solid rgba(244, 246, 250, .2);
  background: #0B0F17; color: #F4F6FA; }
.wish::backdrop { background: rgba(2, 3, 5, .8); }
.wish[open] { animation: wish-entra .35s var(--suave); }
@keyframes wish-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.wish h2 { margin: 0; font-weight: 700; font-style: italic; font-size: 30px; line-height: 1; text-transform: uppercase; }
.wish .sub { margin: 10px 0 0; font-size: 15px; line-height: 1.5; color: #AEB6C5; }
.wish form { display: grid; gap: 14px; margin-top: 20px; }
.wish .campo { display: grid; gap: 6px; }
.wish .campo > span, .wish fieldset legend { padding: 0; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #AEB6C5; }
.wish input[type="text"], .wish input[type="email"] { width: 100%; padding: 13px 14px; border: 1px solid rgba(244, 246, 250, .22); border-radius: 0; background: rgba(255, 255, 255, .04);
  color: #fff; font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
.wish input[type="text"]:focus, .wish input[type="email"]:focus { outline: none; border-color: #fff; }
.wish select { width: 100%; padding: 13px 40px 13px 14px; border: 1px solid rgba(244, 246, 250, .22); border-radius: 0; color: #fff; font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; cursor: pointer;
  background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; }
.wish select:focus { outline: none; border-color: #fff; }
.wish select option { background: #0B0F17; color: #fff; }
.wish fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.wish .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.wish .chips label { position: relative; display: block; }
.wish .chips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.wish .chips span { display: block; padding: 8px 12px; border: 1px solid rgba(244, 246, 250, .22); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; transition: background .15s, color .15s; }
.wish .chips input:checked + span { background: #fff; border-color: #fff; color: #05070B; }
.wish .chips input:focus-visible + span { outline: 2px solid var(--azul); outline-offset: 2px; }
.wish .botao { justify-content: center; width: 100%; padding: 15px 18px; margin-top: 4px; }
.wish .erro { margin: -4px 0 0; min-height: 1.3em; font-size: 13px; color: #FF9C8C; }
.wish .nota { margin: 0; font-size: 12px; line-height: 1.5; color: #AEB6C5; }
.wish .nota a { color: inherit; }
.wish .fecha { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: none; color: #AEB6C5; cursor: pointer; }
.wish .fecha:hover { color: #fff; }
.wish .fecha svg { width: 13px; height: 13px; }
.wish .mel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wish .feito { display: none; }
.wish[data-estado="feito"] form, .wish[data-estado="feito"] .sub { display: none; }
.wish[data-estado="feito"] .feito { display: grid; gap: 18px; margin-top: 12px; }
.wish .feito p { margin: 0; font-size: 15px; line-height: 1.5; color: #AEB6C5; }

/* ---------- troca de versão: só existe na prévia ---------- */
.previa-nav { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 2px; padding: 4px 6px; background: rgba(0, 0, 0, .78);
  border: 1px solid rgba(255, 255, 255, .22); font: 600 11px/1 "Kanit", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.previa-nav span { padding: 0 6px 0 8px; opacity: .6; }
.previa-nav a { padding: 7px 9px; text-decoration: none; color: #fff; opacity: .78; }
.previa-nav a:hover { opacity: 1; background: rgba(255, 255, 255, .12); }
.previa-nav a[aria-current="page"] { opacity: 1; background: #fff; color: #000; }
html.teatro .previa-nav, .estatico .previa-nav { display: none; }
@media (max-width: 560px) { .previa-nav span { display: none; } .previa-nav a { padding: 7px 7px; } }
