/*
 * Visual das TVs. Tamanhos em px sobre um palco fixo de 1920x1080 (ou 1080x1920 na vertical),
 * que o tv.js escala para a tela. Sem CSS Grid, variáveis ou "gap" para funcionar em TVs antigas.
 */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  cursor: none;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: #000;
  -webkit-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
}

.layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  -webkit-transition: opacity 0.7s ease;
  transition: opacity 0.7s ease;
}
.layer.show { opacity: 1; }

.slide {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* ---------- mídia ---------- */

.media-img {
  background-color: #000;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.layer video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.yt-slide, .web-slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000;
  border: 0;
}

.yt-slide iframe, .yt-slide .yt-player-box {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- contagem regressiva ---------- */

.cd { white-space: nowrap; text-align: center; }
.cd-box {
  display: inline-block;
  vertical-align: top;
  min-width: 150px;
  padding: 8px 20px 6px;
  border-radius: 18px;
  background: #111;
  color: #ffd60a;
  text-align: center;
  -webkit-box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.35);
}
.cd-box b { display: block; font-size: 96px; line-height: 1; font-weight: 900; }
.cd-box i { display: block; font-size: 22px; font-style: normal; text-transform: uppercase; letter-spacing: 3px; color: #bbb; margin-top: 4px; }
.cd-sep { display: inline-block; vertical-align: top; font-size: 80px; line-height: 110px; color: #fff; margin: 0 10px; font-weight: 900; }
.cd-done { font-size: 80px; font-weight: 900; color: #ffd60a; }

.cd.small .cd-box { min-width: 86px; padding: 6px 10px 4px; border-radius: 12px; }
.cd.small .cd-box b { font-size: 54px; }
.cd.small .cd-box i { font-size: 15px; letter-spacing: 1px; }
.cd.small .cd-sep { font-size: 44px; line-height: 70px; margin: 0 4px; color: #1d3557; }
.cd.small .cd-done { font-size: 54px; color: #c1121f; }

/* ---------- oferta ---------- */

.offer {
  background-color: #b00012;
  background-image: -webkit-radial-gradient(30% 45%, circle, #e5383b 0%, #b00012 55%, #6a000b 100%);
  background-image: radial-gradient(circle at 30% 45%, #e5383b 0%, #b00012 55%, #6a000b 100%);
  color: #fff;
}

.offer .banner {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  background: #ffd60a;
  color: #b00012;
  text-align: center;
  font-size: 100px;
  line-height: 150px;
  font-weight: 900;
  letter-spacing: 6px;
  -webkit-box-shadow: 0 10px 0 rgba(0, 0, 0, 0.25);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.25);
}
.offer.just .banner {
  -webkit-animation: blink 0.7s ease-in-out infinite alternate;
  animation: blink 0.7s ease-in-out infinite alternate;
}

.offer .body {
  position: absolute;
  left: 70px;
  right: 70px;
  top: 190px;
  bottom: 290px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

.offer .pic {
  width: 42%;
  height: 100%;
  margin-right: 70px;
  background: #fff;
  border-radius: 40px;
  -webkit-box-shadow: 0 16px 0 rgba(0, 0, 0, 0.25);
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.25);
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  overflow: hidden;
  -webkit-animation: pop 0.6s ease-out;
  animation: pop 0.6s ease-out;
}
.offer .pic img { max-width: 92%; max-height: 92%; }

.offer .info {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0;
  font-size: 100px;
}
.offer.noimg .info { text-align: center; }

.offer .title {
  font-size: 1.5em;
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 0.04em 0 rgba(0, 0, 0, 0.3);
}
.offer .sub {
  font-size: 0.5em;
  line-height: 1.2;
  margin-top: 0.14em;
  max-height: 2.5em;
  overflow: hidden;
  opacity: 0.92;
}
.offer .from {
  font-size: 0.6em;
  margin-top: 0.3em;
}
.offer .from s { text-decoration-thickness: 0.1em; }

.offer .price {
  color: #ffd60a;
  white-space: nowrap;
  line-height: 1;
  margin-top: 0.1em;
  text-shadow: 0 0.033em 0 rgba(0, 0, 0, 0.3);
  -webkit-animation: pop 0.6s ease-out;
  animation: pop 0.6s ease-out;
}
.offer .price .cur {
  display: inline-block;
  vertical-align: top;
  font-size: 0.8em;
  font-weight: 900;
  margin-top: 0.4em;
  margin-right: 0.12em;
}
.offer .price .int {
  display: inline-block;
  vertical-align: top;
  font-size: 3em;
  font-weight: 900;
  letter-spacing: -0.027em;
}
.offer .price .dec-wrap {
  display: inline-block;
  vertical-align: top;
  margin-top: 0.3em;
  margin-left: 0.06em;
  text-align: left;
}
.offer .price .dec {
  display: block;
  font-size: 1.3em;
  font-weight: 900;
}
.offer .price .unit {
  display: block;
  font-size: 0.6em;
  font-weight: 700;
  color: #fff;
  margin-top: 0.06em;
}

.offer .foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 270px;
  padding-top: 16px;
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.offer .cd-label { font-size: 34px; font-weight: 900; letter-spacing: 8px; margin-bottom: 8px; }
.offer .until { font-size: 26px; margin-top: 14px; opacity: 0.85; }

/* oferta na vertical */
.portrait .offer .banner { height: 170px; line-height: 170px; font-size: 84px; letter-spacing: 3px; }
.portrait .offer .body {
  top: 210px;
  bottom: 300px;
  left: 60px;
  right: 60px;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
  /* Foto + texto centralizados na altura: sem isso, numa tela alta o texto ficava colado no topo. */
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  text-align: center;
}
.portrait .offer .pic { width: 100%; height: 42%; margin: 0 0 40px 0; }
/* Na vertical o texto não estica: ocupa só o necessário, e o conjunto é centralizado acima. */
.portrait .offer .info { -webkit-box-flex: 0; -webkit-flex: none; flex: none; }
.portrait .offer .info { width: 100%; text-align: center; }
.portrait .offer .price .int { font-size: 2.6em; }
.portrait .offer .foot { height: 300px; padding-top: 30px; }
.portrait .cd-box { min-width: 130px; }
.portrait .cd-box b { font-size: 84px; }

/* ---------- em breve ---------- */

.soon {
  background-color: #1d3557;
  background-image: -webkit-linear-gradient(top, #274b7a, #0b1a30);
  background-image: linear-gradient(to bottom, #274b7a, #0b1a30);
  color: #fff;
}
.soon-head { position: absolute; left: 0; right: 0; top: 40px; text-align: center; }
.soon-head .tag {
  display: inline-block;
  padding: 10px 60px;
  border-radius: 90px;
  background: #ffd60a;
  color: #b00012;
  font-size: 96px;
  font-weight: 900;
  letter-spacing: 6px;
}
.soon-sub { display: block; font-size: 42px; margin-top: 20px; opacity: 0.9; }

.soon .cards {
  position: absolute;
  left: 50px;
  right: 50px;
  top: 300px;
  bottom: 50px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
}
.soon .card {
  width: 30%;
  margin: 0 20px;
  padding: 30px 24px;
  background: #fff;
  color: #1b1b1b;
  border-radius: 36px;
  text-align: center;
  -webkit-box-shadow: 0 14px 0 rgba(0, 0, 0, 0.3);
  box-shadow: 0 14px 0 rgba(0, 0, 0, 0.3);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  overflow: hidden;
}
.soon .cards.n1 .card { width: 60%; }
.soon .cards.n2 .card { width: 44%; }
.soon .cimg { height: 200px; margin-bottom: 14px; }
.soon .cimg img { max-width: 100%; max-height: 100%; }
.soon .cimg.empty { font-size: 170px; line-height: 200px; font-weight: 900; color: #e5383b; }
.soon .ctitle { font-size: 46px; font-weight: 900; line-height: 1.1; max-height: 104px; overflow: hidden; }
.soon .cards.n1 .cimg, .soon .cards.n2 .cimg { height: 250px; }
.soon .cards.n1 .cimg.empty, .soon .cards.n2 .cimg.empty { line-height: 250px; font-size: 200px; }
.soon .cards.n1 .ctitle, .soon .cards.n2 .ctitle { font-size: 52px; max-height: 118px; }
.soon .cfrom { font-size: 30px; color: #666; margin-top: 10px; }
.soon .cprice { font-size: 84px; font-weight: 900; color: #c1121f; line-height: 1.1; }
.soon .cprice small { font-size: 36px; color: #333; font-weight: 700; }
.soon .cwhen { font-size: 42px; font-weight: 900; color: #1d3557; margin-top: 8px; }
/* oferta surpresa: produto e preço escondidos até começar */
.soon .card.mystery {
  background-color: #ffd60a;
  background-image: repeating-linear-gradient(135deg, #ffd60a 0, #ffd60a 40px, #ffcc00 40px, #ffcc00 80px);
  color: #9d0010;
}
.soon .card.mystery .cimg.empty {
  color: #9d0010;
  -webkit-animation: wobble 1.2s ease-in-out infinite alternate;
  animation: wobble 1.2s ease-in-out infinite alternate;
}
.soon .card.mystery .cprice { color: #9d0010; letter-spacing: 4px; }
.soon .card.mystery .cwhen, .soon .card.mystery .ccd-label { color: #6a000b; }
@-webkit-keyframes wobble { from { -webkit-transform: rotate(-8deg) scale(0.95); } to { -webkit-transform: rotate(8deg) scale(1.08); } }
@keyframes wobble { from { transform: rotate(-8deg) scale(0.95); } to { transform: rotate(8deg) scale(1.08); } }

.soon .ccd-label { font-size: 24px; text-transform: uppercase; letter-spacing: 4px; color: #666; margin: 14px 0 6px; }

.portrait .soon .cards {
  top: 280px;
  -webkit-box-orient: vertical;
  -webkit-flex-direction: column;
  flex-direction: column;
}
.portrait .soon .card,
.portrait .soon .cards.n1 .card,
.portrait .soon .cards.n2 .card {
  width: auto;
  margin: 0 0 30px 0;
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  text-align: left;
}
.portrait .soon .cimg { width: 34%; height: 90%; margin: 0 30px 0 0; text-align: center; }
.portrait .soon .cinfo { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }

/* ---------- açougue ---------- */

.board {
  background-color: #161616;
  background-image: -webkit-linear-gradient(top, #232323, #0e0e0e);
  background-image: linear-gradient(to bottom, #232323, #0e0e0e);
  color: #fff;
}
.board-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 190px;
  padding: 0 60px;
  background-color: #9d0010;
  background-image: -webkit-linear-gradient(left, #c1121f, #7a000c);
  background-image: linear-gradient(to right, #c1121f, #7a000c);
  -webkit-box-shadow: 0 8px 0 #ffd60a;
  box-shadow: 0 8px 0 #ffd60a;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/* Temas das tabelas de preços */
.board.theme-vermelho .board-head {
  background-color: #9d0010;
  background-image: -webkit-linear-gradient(left, #c1121f, #7a000c);
  background-image: linear-gradient(to right, #c1121f, #7a000c);
}
.board.theme-azul .board-head {
  background-color: #1d4ed8;
  background-image: -webkit-linear-gradient(left, #1d4ed8, #0b2a6f);
  background-image: linear-gradient(to right, #1d4ed8, #0b2a6f);
}
.board.theme-verde .board-head {
  background-color: #15803d;
  background-image: -webkit-linear-gradient(left, #15803d, #064e1f);
  background-image: linear-gradient(to right, #15803d, #064e1f);
}
.board.theme-laranja .board-head {
  background-color: #ea580c;
  background-image: -webkit-linear-gradient(left, #ea580c, #7c2d12);
  background-image: linear-gradient(to right, #ea580c, #7c2d12);
}
.board.theme-roxo .board-head {
  background-color: #7c3aed;
  background-image: -webkit-linear-gradient(left, #7c3aed, #3b0d7a);
  background-image: linear-gradient(to right, #7c3aed, #3b0d7a);
}

.board.theme-vermelho .bname em { color: #9d0010; }
.board.theme-azul .bname em { color: #0b2a6f; }
.board.theme-verde .bname em { color: #064e1f; }
.board.theme-laranja .bname em { color: #7c2d12; }
.board.theme-roxo .bname em { color: #3b0d7a; }

.bh-left { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; }
.bh-title { font-size: 110px; font-weight: 900; text-transform: uppercase; letter-spacing: 4px; line-height: 1; }
.bh-sub { font-size: 42px; color: #ffd60a; margin-top: 8px; font-weight: 700; }
.bh-clock { font-size: 96px; font-weight: 900; }

.board-cols {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 225px;
  bottom: 30px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
}
.bcol {
  height: 100%;
  padding: 0 0.6em;
  overflow: hidden;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
.bcat {
  font-size: 0.85em;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffd60a;
  border-bottom: 0.06em solid #ffd60a;
  margin: 0.45em 0 0.15em;
  padding-bottom: 0.05em;
}
.bcat:first-child { margin-top: 0; }
.bcat small { font-size: 0.6em; color: #bbb; letter-spacing: 0; }
.brow {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: baseline;
  -webkit-align-items: baseline;
  align-items: baseline;
  padding: 0.1em 0.25em;
  border-radius: 0.2em;
  white-space: nowrap;
}
.brow.hl { background: rgba(255, 214, 10, 0.16); }
.brow.off { opacity: 0.45; }
.bname { font-weight: 700; }
.bname em {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.4em;
  padding: 0.1em 0.35em;
  border-radius: 0.2em;
  background: #ffd60a;
  color: #9d0010;
  font-size: 0.42em;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.bdots {
  -webkit-box-flex: 1;
  -webkit-flex: 1;
  flex: 1;
  min-width: 0.5em;
  margin: 0 0.3em;
  border-bottom: 0.06em dotted rgba(255, 255, 255, 0.35);
}
.bprice { font-weight: 900; color: #ffd60a; }
.bprice s { font-size: 0.55em; color: #aaa; font-weight: 700; margin-right: 0.35em; }
.bprice small { font-size: 0.5em; color: #ddd; font-weight: 700; margin-left: 0.1em; }
.bprice.out { color: #ff6b6b; font-size: 0.65em; letter-spacing: 0.05em; }

.portrait .board-head { height: 230px; -webkit-box-orient: horizontal; }
.portrait .board-cols { top: 265px; }

/* ---------- espera e avisos ---------- */

.idle {
  background-color: #7a000c;
  background-image: -webkit-radial-gradient(50% 40%, circle, #c1121f 0%, #7a000c 70%);
  background-image: radial-gradient(circle at 50% 40%, #c1121f 0%, #7a000c 70%);
  color: #fff;
  text-align: center;
  padding-top: 250px;
}
.portrait .idle { padding-top: 600px; }
.idle-name { font-size: 130px; font-weight: 900; line-height: 1.1; padding: 0 60px; }
.idle-clock { font-size: 220px; font-weight: 900; color: #ffd60a; line-height: 1.2; }
.idle-sub { font-size: 56px; opacity: 0.9; }

/* Tela de pareamento: QR code à esquerda, passos e código à direita (sempre deitada). */
.pair {
  background-color: #7a000c;
  background-image: -webkit-radial-gradient(50% 40%, circle, #c1121f 0%, #7a000c 70%);
  background-image: radial-gradient(circle at 50% 40%, #c1121f 0%, #7a000c 70%);
  color: #fff;
}
.pair-qr {
  position: absolute;
  left: 140px;
  top: 220px;
  width: 640px;
  height: 640px;
  padding: 36px;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  background: #fff;
  border-radius: 40px;
  -webkit-box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.pair-qr img { display: block; width: 100%; height: 100%; }
.pair-right {
  position: absolute;
  left: 860px;
  top: 0;
  bottom: 0;
  width: 920px;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  justify-content: center;
}
.pair-title { font-size: 92px; font-weight: 900; line-height: 1.1; margin-bottom: 36px; }
.pair-step { font-size: 40px; line-height: 1.35; margin-bottom: 14px; }
.pair-alt { font-size: 34px; line-height: 1.35; margin-top: 44px; opacity: 0.9; }
.pair-code {
  font-size: 150px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 18px;
  color: #ffd60a;
  white-space: nowrap;
}
.pair-exp { font-size: 28px; opacity: 0.75; margin-top: 8px; }

.message { background: #222; color: #fff; text-align: center; padding: 300px 120px 0; }
.msg-title { font-size: 90px; font-weight: 900; color: #ffd60a; }
.msg-text { font-size: 50px; margin-top: 40px; line-height: 1.3; }

/* ---------- sobreposições ---------- */

#overlay { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: none; }
#overlay.show { display: block; }
.identify {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 25%;
  padding: 60px 40px;
  background: rgba(0, 0, 0, 0.9);
  border: 12px solid #ffd60a;
  border-radius: 40px;
  color: #fff;
  text-align: center;
}
.id-small { font-size: 50px; letter-spacing: 4px; color: #ffd60a; }
.id-name { font-size: 180px; font-weight: 900; line-height: 1.1; margin: 20px 0; }

.status { display: none; position: fixed; right: 14px; bottom: 14px; width: 18px; height: 18px; border-radius: 50%; background: #e63946; }
.status.offline { display: block; }

.hint {
  position: fixed;
  left: 50%;
  bottom: 40px;
  width: 640px;
  margin-left: -320px;
  padding: 18px 24px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 26px;
  text-align: center;
  opacity: 0;
  -webkit-transition: opacity 0.5s;
  transition: opacity 0.5s;
}
.hint.show { opacity: 1; }

/* ---------- animações ---------- */

@-webkit-keyframes blink { from { background: #ffd60a; } to { background: #fff; } }
@keyframes blink { from { background: #ffd60a; } to { background: #fff; } }
@-webkit-keyframes pop { from { -webkit-transform: scale(0.85); opacity: 0; } to { -webkit-transform: scale(1); opacity: 1; } }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Faixa discreta no canto inferior esquerdo do palco no modo espelho */
.mirror-bar {
  display: none;
  position: absolute;
  left: 40px;
  bottom: 40px;
  z-index: 80;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 28px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
  padding: 12px 24px;
  border-radius: 12px;
  pointer-events: none;
  white-space: nowrap;
}
.mirror-bar .mirror-dot {
  color: #ff3b30;
  margin-right: 10px;
  font-size: 26px;
  vertical-align: 1px;
}

