

@font-face {
    font-family: 'Avenir';
    src: url('../fonts/AvenirNextCondensedBold.eot');
    src: url('../fonts/AvenirNextCondensedBold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/AvenirNextCondensedBold.woff2') format('woff2'),
         url('../fonts/AvenirNextCondensedBold.woff') format('woff'),
         url('../fonts/AvenirNextCondensedBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AvenirMedium";
    src: url("../fonts/164fce79eadeff648f8b1e539b2975db.eot");
    src: url("../fonts/164fce79eadeff648f8b1e539b2975db.eot?#iefix")format("embedded-opentype"),
    url("../fonts/164fce79eadeff648f8b1e539b2975db.woff2")format("woff2"),
    url("../fonts/164fce79eadeff648f8b1e539b2975db.woff")format("woff"),
    url("../fonts/164fce79eadeff648f8b1e539b2975db.ttf")format("truetype"),
    url("../fonts/164fce79eadeff648f8b1e539b2975db.svg#AvenirMedium")format("svg");
}


body {
    background: #0d3b8f;
    background-image: url('../images/bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position:center center;  
	height:100%;
	width:100%;	
}

.alert.alert-danger {
  text-align: center;
  background-color: transparent;
  border: none;
  color: #fff;
  font-family: 'AvenirMedium';
  font-size:1.1rem;
}
#modal-info-text {
  color: #fff;
  font-family: 'AvenirMedium';
  font-size:1.1rem;	
}

.btn-close-yellow {
  background-color: #ffe800;
  width: 30px;
  height: 30px;
  border-radius: 50px;
  opacity: 1;
  --bs-btn-close-filter: none;
--bs-btn-close-bg: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 1 L15 15 M15 1 L1 15' fill='none' stroke='%23007bc0' stroke-width='4.6' stroke-linecap='round'/%3E%3C/svg%3E");
z-index: 999;
top:10px;
right:10px;
}

.close-btn-text {
  display: block;
  color: #fff;
  font-family: 'AvenirMEdium';
  font-size: 0.7rem;
}

#btn-close-with-text {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 999;
}

.error-pic {
  max-width: 200px;
  margin: 0 auto;
  display: block;
}

#error-wrapper {
  display: flex;
  flex-flow: column;
    flex-direction: column;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#oferta-wrapper {
	margin-top:40px;
}

.offer-card{
  position: relative;
  border-radius: 16px;
  overflow: hidden;

  background: transparent;

  /* ważne w webview */
  transform: translateZ(0);
  will-change: transform, opacity;
}

.offer-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index:0;
}

.offer-img-hand {
	width: 100%;
    height: 100%;
	position:absolute;
	left:0;
	top:0;
	z-index:1;
}


.offer-btn{
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  border-radius: 999px;
}

.aktywuj-kupon {
	position: absolute;
	top:0;
	left:0;
    background-image: url('../images/btn-aktywuj-kupon.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position:center center;  
	height:100%;
	width:100%;	
	z-index:1;
}

.aktywowany-kupon {
	position: absolute;
	top:0;
	left:0;
    background-image: url('../images/btn-kupon-aktywowany.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position:center center;  
	height:100%;
	width:100%;	
	z-index:1;
}

.btn-yellow {
	background-color:#f2dc27;
	font-weight:bold;
	color:#007bc0;
	padding: 0.10rem 0.5rem 0.10rem 0.5rem;
}

/* Animacja */
.animate-in{
  opacity: 0;
  transform: translateY(12px) scale(.97);
  animation: popIn 420ms cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes popIn{
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce){
  .animate-in{
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* prelaoder */


.spinner-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0c3a90;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none; 
  flex-direction: column;
}

.spinner-wrapper p {
	margin-top: 1rem;
	font-family:'AvenirMedium';
	font-weight:normal;
	color:#fff;
	text-align:center;
}

.spinner {
  animation: rotate 1s linear infinite;
  width: 50px;
  height: 50px;
}

.spinner .path {
  stroke: #f2dc27;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* modal */

/* Usuń slide z góry, zostaw fade */
.modal.fade .modal-dialog {
  transform: none !important;
}

.modal-body {
  background-color: #0c3a8f;
  padding: 0;
  color:#fff;
}

	
	.intro-video-wrap {
  top:0;
  left:0;
  height: 100vh;           
  overflow: hidden;        
  background: #ebe71c;
  z-index: 9;
  width: 100%;
  height: 100%;
  position: absolute;
  }

.intro-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;            
  height: 100vh;           
  transform: translate(-50%, -50%);
  object-fit: cover;       
  object-position: center center; 
  display: block;
  max-width:800px;
  width:100%;
  margin:0 auto;
  z-index:9
}


/* modal info */

#info-modal .btn-close{
	top:10px;
	right:10px;
	
}

/* animacja */

      /* pełny ekran, wycentrowany kontener */
      .egg-stage{
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        background: #000;
      }

      /* viewport, który tnie assety */
      .egg-viewport{
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        background: #000;
      }

      /* warstwy (obrazy + video) */
      .egg-layer{
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        user-select: none;
        -webkit-user-drag: none;
        pointer-events: none;
      }

      .egg-base{ z-index: 2; }

      .egg-crack{
        z-index: 3;
        opacity: 0;
      }

      .egg-video{
        z-index: 1;
        opacity: 0;
        background: #000;
      }

      /* warstwa do interakcji */
      .egg-hitarea{
        position: absolute;
        inset: 0;
        z-index: 10;
        background: transparent;
        border: 0;
        padding: 0;
        margin: 0;
        cursor: pointer;
      }

      /* tekst instrukcji */
      .egg-instruction{
		font-family: 'AvenirMedium';
		font-size: 1rem;
		font-weight: normal;
        position: absolute;
        left: 50%;
        bottom: 24px;
        transform: translateX(-50%);
        z-index: 11;
        margin: 0;
        padding: 10px 14px;
        border-radius: 0px;
        font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
        font-size: 14px;
        line-height: 1.2;
        color: #fff;
        background: rgba(0,0,0,0.35);
        pointer-events: none;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
		padding: 20px 20px 20px 20px;
		width: 80%;
      }

      /* przycisk iOS permission */
      #startMotionBtn{
        position: absolute;
        z-index: 12;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 14px;
        border: 0;
      }

      /* (opcjonalnie) kursor desktopowy z Twojego pliku */
      #custom-cursor{ display:none; position: fixed; left:0; top:0; z-index: 10000; pointer-events:none; }
      body.desktop-cursor{ cursor: none; }

      /* final message (jak miałeś) */
      #final-message-wrapper{ display:none; opacity:0; position:absolute; inset:0; z-index: 20; }
	  
	.motion-overlay{
	  position: absolute;
	  inset: 0;
	  z-index: 9999;
	  display: flex;
	  align-items: center;
	  justify-content: center;
	  background: rgba(0,0,0,.45); /* możesz dać transparent jeśli nie chcesz przyciemnienia */
	  pointer-events: auto;        /* overlay ma łapać klik */
	}
	
	#motionOverlay{ display:none; }
	  .modal-body { padding: 0; }
	  
	#main-anim { position: relative; }

	#motionOverlay { position: absolute; inset: 0; z-index: 9999; }	
	
	
	/* morpg prelaoder */
	
.preloader-morph{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;           /* kontroluje JS */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease;
}

.preloader-morph.is-visible{
  display: flex;
  opacity: 1;
}

#preloader-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* spinner na wierzchu */
.preloader-morph .spinner{
  width: 50px;
  height: 50px;
  position: relative;
  z-index: 2;
  animation: rotate 1s linear infinite;
}

.preloader-morph .path{
  stroke: #1285c6;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate { 100% { transform: rotate(360deg); } }
@keyframes dash {
  0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
  50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
  100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}

