* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #f4f4f4;
  font-family: Arial, sans-serif;
}

.header-slot {
  position: relative;
  width: 600px;
  height: 100px;
  margin: 40px auto;
  overflow: hidden;
  background: #fff;
}



.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.logo img {
  width: 240px;
  max-width: 80%;
  height: auto;
}



.fifa-banner.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.group1-bg {
  z-index: 1;
}

.group1-crowd {
  z-index: 2;
}

.group1-toata-lumea {
  z-index: 3;
}

.group1-tag-antena {
  z-index: 4;
}
/* A1 header integration */
#a1Logo {
  transition: opacity 0.4s ease;
  position: relative;
  z-index: 3;
}

.fifa-banner {
  position: absolute;
  left: 50%;
  top: 0;
  width: 600px;
  height: 100px;
  margin-left: -300px; /* centers without transform */
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  z-index: 10;
  pointer-events: none;
}

.fifa-banner.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
@media (max-width: 1070px) {
  .fifa-banner {
    width: 420px;
    height: 70px;
    margin-left: -210px;
    top: 20px;
  }
}

@media (max-width: 560px) {
  .fifa-banner {
    width: 240px;
    height: 40px;
    margin-left: -120px;
    top: 25px;
  }
}

.navbar {
  padding-top: 0!important;
}

.user-login,
.cauta-mobile,
.hamburger {
  position: relative;
  top: 50%;
  /*transform: translateY(-50px);*/
  z-index: 50;
}

@media (max-width: 1070px) {
  .user-login,
  .cauta-mobile,
  .hamburger {
    top: 50%;
    /*transform: translateY(-40px);*/
  }
}

@media (max-width: 560px) {
  .user-login,
  .cauta-mobile {
    top: 50%;
    transform: translateY(30px);
    margin-right: 10px !important;
  }
  .hamburger {
    top: 50%;
    /*transform: translateY(-40px);*/
  }
  .user-login,
  .cauta-mobile {
    width: 20px;
    height: 20px;
  }
}
/* -------------------------
   BASE LAYERS
------------------------- */
.scene-red-main,
.banner-main {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.cm-title,
.cm-badge,
.copy-left,
.copy-right,
.digit,
.trophy {
  position: absolute;
  z-index: 5;
}

/* -------------------------
   BARS
------------------------- */
.scene-bars {
  position: absolute;
  inset: 0;
  z-index: 999;
  overflow: hidden;
}

.bar-color {
  position: absolute;
  inset: 0;
  transform: translateY(-100%);
}

.bar-blue {
  background: #1860fd;
  z-index: 1;
}

.bar-green {
  background: #1cc81c;
  z-index: 2;
}

.bar-yellow {
  background: #fdde18;
  z-index: 3;
}

/* -------------------------
   RED SCENES
------------------------- */
.scene-red {
  z-index: 10;
  overflow: hidden;
}

.scene-red-bg {
  position: absolute;
  inset: 0;
  background: #ed1c25;
}

.cm-title {
  left: 19px;
  top: 5px;
  width: 490.9px;
  height: 90px;
  opacity: 0;
  transform: translateY(8px);
}

.cm-badge {
  left: 529px;
  top: 10px;
  width: 52.96px;
  height: 80px;
  opacity: 0;
  transform: translateX(8px);
}

.cm-spin,
.countdown-spin {
  position: absolute;
  opacity: 0;
  z-index: 30;
  overflow: hidden;
  background-image: url("/worldcup/SpriteTest_8col_50dith.gif");
  background-repeat: no-repeat;
}

/* red scenes */
.cm-spin {
  left: 540px;
  top: 8px;
  width: 32px;
  height: 64px;

  /* each real frame is 50x100, scaled down to 32x64 */
  background-size: 1280px 320px; /* 40 cols × 32px, 5 rows × 64px */
  background-position: 0 0;
}

/* countdown */
.countdown-spin {
  left: 270px;
  top: 2px;
  width: 52px;
  height: 95px;

  /* same sheet, scaled to larger display */
  background-size: 2080px 475px; /* 40 cols × 52px, 5 rows × 95px */
  background-position: 0 0;
}

/* -------------------------
   GROUP 1
------------------------- */
.scene-group1 {
  z-index: 10;
  overflow: hidden;
}

.group1-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 600px;
  height: 75px;
  background: #ed1c25;
}

.group1-toata-lumea {
  position: absolute;
  left: 42px;
  top: 11px;
  width: 515.21px;
  height: 50px;
  opacity: 0;
  transform: translateY(6px);
}

.group1-tag-antena {
  position: absolute;
  left: 250px;
  top: 75px;
  width: 100px;
  height: 25px;
  opacity: 0;
  transform: translateY(6px);
}

.group1-crowd {
  position: absolute;
  left: 0;
  top: 0;
  width: 600px;
  height: 100px;
  object-fit: cover;
  clip-path: inset(0 0 25px 0);
  opacity: 0;
}

/* -------------------------
   COUNTDOWN
------------------------- */
.scene-countdown {
  z-index: 10;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.copy-left {
  left: 24px;
  top: 30px;
  width: 172.27px;
  height: 40px;
  opacity: 0;
  transform: translateX(70px);
}

.copy-right {
  left: 447px;
  top: 30px;
  width: 126.29px;
  height: 40px;
  opacity: 0;
  transform: translateX(-127px);
}

.trophy {
  left: 275px;
  top: 2px;
  width: 47.5px;
  height: 95px;
  opacity: 0;
}

.digit {
  top: 10px;
  width: 22.89px;
  height: 80px;
  object-fit: contain;
  opacity: 0;
}

.digit-left {
  left: 291px;
}

.digit-right {
  left: 282px;
}
.digit[src*="4.svg"] {
  width: 28px;
}

@media (max-width: 1070px) {
  .digit[src*="4.svg"] {
    width: 20px;
  }
}

@media (max-width: 560px) {
  .digit[src*="4.svg"] {
    width: 13px;
  }
}


.digit[src*="1.svg"] {
  width: 28px;
}

@media (max-width: 1070px) {
  .digit[src*="1.svg"] {
    width: 20px;
  }
}

@media (max-width: 560px) {
  .digit[src*="1.svg"] {
    width: 13px;
  }
}
/* -------------------------
   SCENE WINDOWS - CHAINED
------------------------- */

.fifa-banner.play .scene-bars-1 {
  animation: sceneWindow 0.62s linear 0s forwards;
}

.fifa-banner.play .scene-red-1 {
  animation: sceneWindow 1.55s linear 0.48s forwards;
}

.fifa-banner.play .scene-bars-2 {
  animation: sceneWindow 0.62s linear 1.88s forwards;
}

.fifa-banner.play .scene-group1-1 {
  animation: sceneWindow 1.55s linear 2.28s forwards;
}

.fifa-banner.play .scene-bars-3 {
  animation: sceneWindow 0.62s linear 3.68s forwards;
}

.fifa-banner.play .scene-red-2 {
  animation: sceneWindow 1.55s linear 4.08s forwards;
}

.fifa-banner.play .scene-bars-4 {
  animation: sceneWindow 0.62s linear 5.20s forwards;
}

.fifa-banner.play .scene-countdown-1 {
  animation: sceneWindow 1.98s linear 5.58s forwards;
}

.fifa-banner.play .scene-bars-5 {
  animation: sceneWindow 0.62s linear 8.12s forwards;
}

.fifa-banner.play .scene-red-3 {
  animation: sceneWindow 1.55s linear 8.16s forwards;
}
/* -------------------------
   INTERNAL ANIMATIONS - TIGHT
------------------------- */

/* bars 1 */
.fifa-banner.play .scene-bars-1 .bar-blue {
  animation: barBlue 1s linear 0s forwards;
}
.fifa-banner.play .scene-bars-1 .bar-green {
  animation: barGreen 0.8s linear 0.1s forwards;
}
.fifa-banner.play .scene-bars-1 .bar-yellow {
  animation: barYellow 0.5s linear 0.2s forwards;
}

/* bars 2 */
.fifa-banner.play .scene-bars-2 .bar-blue {
  animation: barBlue 1s linear 1.88s forwards;
}
.fifa-banner.play .scene-bars-2 .bar-green {
  animation: barGreen 0.8s linear 1.98s forwards;
}
.fifa-banner.play .scene-bars-2 .bar-yellow {
  animation: barYellow 0.5s linear 2.08s forwards;
}

/* bars 3 */
.fifa-banner.play .scene-bars-3 .bar-blue {
  animation: barBlue 1s linear 3.68s forwards;
}
.fifa-banner.play .scene-bars-3 .bar-green {
  animation: barGreen 0.8s linear 3.78s forwards;
}
.fifa-banner.play .scene-bars-3 .bar-yellow {
  animation: barYellow 0.5s linear 3.88s forwards;
}

/* bars 4 - between red 2 and countdown */
.fifa-banner.play .scene-bars-4 .bar-blue {
  animation: barBlue 1s linear 5.20s forwards;
}
.fifa-banner.play .scene-bars-4 .bar-green {
  animation: barGreen 0.8s linear 5.30s forwards;
}
.fifa-banner.play .scene-bars-4 .bar-yellow {
  animation: barYellow 0.5s linear 5.40s forwards;
}

/* bars 5 - between countdown and final red */
.fifa-banner.play .scene-bars-5 .bar-blue {
  animation: barBlue 1s linear 8.12s forwards;
}
.fifa-banner.play .scene-bars-5 .bar-green {
  animation: barGreen 0.8s linear 8.22s forwards;
}
.fifa-banner.play .scene-bars-5 .bar-yellow {
  animation: barYellow 0.5s linear 8.32s forwards;
}








/* red 1 */
.fifa-banner.play .scene-red-1 .cm-title {
  animation: fadeUp 0.18s ease 0.60s forwards;
}
.fifa-banner.play .scene-red-1 .cm-badge {
  animation: fadeSide 0.18s ease 0.68s forwards;
}
.fifa-banner.play .scene-red-1 .cm-spin {
  animation: fadeIn 0.08s linear 0.68s forwards;
}

/* group 1 */
.fifa-banner.play .scene-group1-1 .group1-crowd {
  animation: fadeIn 0.08s linear 2.36s forwards;
}
.fifa-banner.play .scene-group1-1 .group1-toata-lumea {
  animation: fadeUpSoft 0.16s ease 2.44s forwards;
}
.fifa-banner.play .scene-group1-1 .group1-tag-antena {
  animation: fadeUpSoft 0.16s ease 2.52s forwards;
}

/* red 2 */
.fifa-banner.play .scene-red-2 .cm-title {
  animation: fadeUp 0.18s ease 4.20s forwards;
}
.fifa-banner.play .scene-red-2 .cm-badge {
  animation: fadeSide 0.18s ease 4.28s forwards;
}
.fifa-banner.play .scene-red-2 .cm-spin {
  animation: fadeIn 0.08s linear 4.28s forwards;
}

/* countdown */
.fifa-banner.play .scene-countdown-1 .countdown-spin {
  animation: fadeIn 0.08s linear 5.72s forwards;
}

.fifa-banner.play .scene-countdown-1 .digit-left {
  animation: digitLeftMoveShort 1.98s linear 5.58s forwards;
}

.fifa-banner.play .scene-countdown-1 .digit-right {
  animation: digitRightMoveShort 1.98s linear 5.58s forwards;
}

.fifa-banner.play .scene-countdown-1 .copy-left {
  animation: copyLeftMoveShort 1.98s linear 5.58s forwards;
}

.fifa-banner.play .scene-countdown-1 .copy-right {
  animation: copyRightMoveShort 1.98s linear 5.58s forwards;
}

/* red 3 */
.fifa-banner.play .scene-red-3 .cm-title {
  animation: fadeUp 0.18s ease 8.28s forwards;
}
.fifa-banner.play .scene-red-3 .cm-badge {
  animation: fadeSide 0.18s ease 8.36s forwards;
}
.fifa-banner.play .scene-red-3 .cm-spin {
  animation: fadeIn 0.08s linear 8.36s forwards;
}

/* -------------------------
   KEYFRAMES
------------------------- */

@keyframes sceneWindow {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  0.01% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}

@keyframes barBlue {
  0% {
    transform: translateY(-100%);
  }
  13.3333% {
    transform: translateY(0);
  }
  86.6667% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes barGreen {
  0% {
    transform: translateY(-100%);
  }
  15.3846% {
    transform: translateY(0);
  }
  84.6154% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes barYellow {
  0% {
    transform: translateY(-100%);
  }
  18.1818% {
    transform: translateY(0);
  }
  81.8182% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUpSoft {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSide {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes digitLeftMoveShort {
  0%, 14% {
    opacity: 0;
    left: 291px;
  }
  15% {
    opacity: 1;
    left: 291px;
  }
  86% {
    opacity: 1;
    left: 240px;
  }
  100% {
    opacity: 1;
    left: 240px;
  }
}

@keyframes digitRightMoveShort {
  0%, 14% {
    opacity: 0;
    left: 282px;
  }
  15% {
    opacity: 1;
    left: 282px;
  }
  86% {
    opacity: 1;
    left: 335px;
  }
  100% {
    opacity: 1;
    left: 335px;
  }
}

@keyframes copyLeftMoveShort {
  0%, 14% {
    opacity: 0;
    transform: translateX(70px);
  }
  15% {
    opacity: 1;
    transform: translateX(70px);
  }
  86% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes copyRightMoveShort {
  0%, 14% {
    opacity: 0;
    transform: translateX(-127px);
  }
  15% {
    opacity: 1;
    transform: translateX(-127px);
  }
  86% {
    opacity: 1;
    transform: translateX(-45px);
  }
  100% {
    opacity: 1;
    transform: translateX(-45px);
  }
}
@keyframes crowdMove {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(1.03);
  }
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  45% {
    opacity: 1;
    transform: translateY(-1px) scale(1.01);
  }
  70% {
    opacity: 1;
    transform: translateY(1px) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1.01);
  }
}

@keyframes digitLeftMoveShortTablet {
  0%, 14% {
    opacity: 0;
    left: 180px;
  }
  15% {
    opacity: 1;
    left: 180px;
  }
  86% {
    opacity: 1;
    left: 150px;
  }
  100% {
    opacity: 1;
    left: 150px;
  }
}

@keyframes digitRightMoveShortTablet {
  0%, 14% {
    opacity: 0;
    left: 197px;
  }
  15% {
    opacity: 1;
    left: 197px;
  }
  86% {
    opacity: 1;
    left: 232px;
  }
  100% {
    opacity: 1;
    left: 232px;
  }
}

@keyframes digitLeftMoveShortMobile {
  0%, 14% {
    opacity: 0;
    left: 115px;
  }
  15% {
    opacity: 1;
    left: 115px;
  }
  86% {
    opacity: 1;
    left: 95px;
  }
  100% {
    opacity: 1;
    left: 95px;
  }
}

@keyframes digitRightMoveShortMobile {
  0%, 14% {
    opacity: 0;
    left: 120px;
  }
  15% {
    opacity: 1;
    left: 120px;
  }
  86% {
    opacity: 1;
    left: 140px;
  }
  100% {
    opacity: 1;
    left: 140px;
  }
}
/* -------------------------
   RESPONSIVE
------------------------- */

@media (max-width: 1070px) {

  .group1-bg {
    left: 0;
    top: 0;
    width: 420px;
    height: 50px;
  }

  .group1-toata-lumea {
    left: 22px;
    top: 2px;
    width: 377px;
    height: 46px;
  }

  .group1-tag-antena {
    left: 168px;
    top: 46px;
    width: 84px;
    height: 24px;
    z-index: 5;
  }

  .group1-crowd {
    left: 0;
    top: 0;
    width: 420px;
    height: 70px;
    clip-path: inset(0 0 20px 0);
  }

  .fifa-banner.play .scene-countdown-1 .digit-left {
    animation: digitLeftMoveShortTablet 1.98s linear 5.58s forwards;
  }

  .fifa-banner.play .scene-countdown-1 .digit-right {
    animation: digitRightMoveShortTablet 1.98s linear 5.58s forwards;
  }

  .header-slot {
    width: 420px;
    height: 70px;
  }

  .logo img {
    width: 180px;
  }

  .cm-title {
    left: 13px;
    top: 3px;
    width: 343.63px;
    height: 63px;
  }

  .cm-badge {
    left: 370px;
    top: 7px;
    width: 37px;
    height: 56px;
  }

  .cm-spin {
    left: 378px;
    top: 8px;
    width: 21px;
    height: 42px;
    background-size: 840px 210px;
  }

  .group1-toata-lumea {
    left: 29px;
    top: 8px;
    width: 360.65px;
    height: 35px;
  }

  .group1-tag-antena {
    left: 175px;
    top: 52px;
    width: 70px;
    height: 17.5px;
  }

  .group1-crowd {
    width: 420px;
    height: 70px;
    clip-path: inset(0 0 17px 0);
  }

  .copy-left {
    left: 16px;
    top: 21px;
    width: 120.59px;
    height: 28px;
    transform: translateX(49px);
  }

  .copy-right {
    left: 310px;
    top: 21px;
    width: 88.4px;
    height: 28px;
    transform: translateX(-89px);
    white-space: nowrap;
  }

  .trophy {
    left: 192px;
    top: 1px;
    width: 33.25px;
    height: 66.5px;
  }

  .countdown-spin {
    left: 183px;
    top: 1px;
    width: 33.25px;
    height: 66.5px;
    background-size: 1330px 332.5px;
  }

  .digit {
    top: 7px;
    width: 16px;
    height: 56px;
  }

  .digit-left {
    left: 150px;
  }

  .digit-right {
    left: 180px;
  }
}

@media (max-width: 560px) {
  .animated .user-login, .animated .cauta-mobile {
    margin: 0;
  }
  .group1-bg {
    left: 0;
    top: 0;
    width: 240px;
    height: 28px;
  }

  .group1-toata-lumea {
    left: 10px;
    top: 1px;
    width: 220px;
    height: 26px;
  }

  .group1-tag-antena {
    left: 95px;
    top: 27px;
    width: 50px;
    height: 13px;
    z-index: 5;
  }

  .group1-crowd {
    left: 0;
    top: 0;
    width: 240px;
    height: 40px;
    clip-path: inset(0 0 12px 0);
  }

  .fifa-banner.play .scene-countdown-1 .digit-left {
    animation: digitLeftMoveShortMobile 1.98s linear 5.58s forwards;
  }

  .fifa-banner.play .scene-countdown-1 .digit-right {
    animation: digitRightMoveShortMobile 1.98s linear 5.58s forwards;
  }

  .header-slot {
    width: 240px;
    height: 40px;
  }

  .logo img {
    width: 110px;
  }

  .cm-title {
    left: 8px;
    top: 2px;
    width: 196.36px;
    height: 36px;
  }

  .cm-badge {
    left: 211px;
    top: 4px;
    width: 21px;
    height: 32px;
  }

  .cm-spin {
    left: 216px;
    top: 4px;
    width: 12px;
    height: 24px;
    background-size: 480px 120px;
  }

  .group1-toata-lumea {
    left: 17px;
    top: 4px;
    width: 206.08px;
    height: 20px;
  }

  .group1-tag-antena {
    left: 100px;
    top: 30px;
    width: 40px;
    height: 10px;
  }

  .group1-crowd {
    width: 240px;
    height: 40px;
    clip-path: inset(0 0 10px 0);
  }

  .copy-left {
    left: 14px;
    top: 12px;
    width: 69px;
    height: 16px;
    transform: translateX(28px);
  }

  .copy-right {
    left: 200px;
    top: 12px;
    width: 50.5px;
    height: 16px;
    transform: translateX(-51px);
  }

  .trophy {
    left: 109px;
    top: 1px;
    width: 19px;
    height: 38px;
  }

  .countdown-spin {
    left: 112px;
    top: 1px;
    width: 19px;
    height: 38px;
    background-size: 760px 190px;
  }

  .digit {
    top: 4px;
    width: 9px;
    height: 32px;
  }

  .digit-left {
    left: 95px;
  }

  .digit-right {
    left: 131px;
  }
}


