/* css/style.css */

/* Сброс стилей и общие настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
	background-color: #5089ed;
	background: linear-gradient(86deg, #a73afd, #dc3afd);
    background-position: center;
	opacity: 1;
 	
	
}

body {
    font-family: "Bounded", Arial, sans-serif;
    background-color: #ffffff;
    color: #111111;
    max-width: 600px;
    margin: 0 auto;
    overflow-x: hidden;

    box-shadow: rgba(18, 0, 255, 0.7) 0px 0px 90px;
}	

}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


.header {
    position: relative;
    padding-top: 30px; 
    text-align: center;
    background: #a73afd; 
    margin-bottom: 0px; 
    width: 100%;
    height: 190px;
    background-image: url('../img/head.webp');
    background-size: cover;
    background-position: center;	
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1px; 
}

.logo {
    height: 60px; 
}

.company-name {
    font-family: "Bounded", Arial, sans-serif;
    font-size: 36px;
    font-style: italic;
    font-weight: 500; 
    color: white;
}


.heading-image {
    text-align: center;
    margin-bottom: 0px; 
}

.heading-image img {
    max-width: 100%;
    height: auto;
}


.progress-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    height: 30px;
    margin: 0 auto 60px; 
    transform: rotate(-4deg); 
    border-radius: 0; 
}


.progress-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1;

    clip-path: polygon(0 0, 100% 0, calc(100% - 1.75px) 100%, 1.75px 100%);
}


.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: black;
    z-index: 2;
    transition: width 5s ease-in-out;

    clip-path: polygon(0 0, 100% 0, calc(100% - 1.75px) 100%, -7.75px 100%);
}


.progress-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(2deg); 
    opacity: 0.7;
    height: 30px;
    z-index: 3; 
}


.cars-image {
    text-align: center;
    margin-bottom: 50px;
}

.cars-image img {
    max-width: 100%;
    height: auto;
}


.prize-image {
    text-align: center;
    margin-bottom: 60px;
}

.prize-image img {
    max-width: 80%;
    height: auto;
}


.prize1-image {
    text-align: center;
    margin: 20px auto; 
    max-width: 50%;
    height: auto;
}

.prize2-image {
    text-align: center;
	left: 20px;
    max-width: 100px;
    height: auto;
}


.carousel {
    text-align: center;
    margin-bottom: 70px; 
}

.carousel-title {
    font-family: "Bounded", Arial, sans-serif;
    font-weight: 400; 
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

.carousel-items {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.carousel-item {
    width: 200px;
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
}

.carousel-item img {
    max-width: 80%;
    height: auto;
}


footer {
    text-align: center;
    padding: 20px 0;
    background-color: #622a79;
    color: #adadad;
    font-family: "Bounded", Arial, sans-serif;
    font-weight: 200;
    font-size: 14px;
}


@media (max-width: 768px) {
    .company-name {
        font-size: 28px;
    }
    
    .logo {
        height: 50px;
    }
    
    .progress-container {
        width: 50%;
    }
    
    .carousel-item {
        width: 150px;
        height: 150px;
    }
	
	.header {
		height: 160px;	
	}	
	
}

@media (max-width: 480px) {
    .company-name {
        font-size: 24px;
    }
    
    .logo {
        height: 40px;
    }
    
    .header {
        padding-top: 20px;
	    height: 160px;	
    }
    
    .heading-image, .cars-image, .prize-image {
        margin-bottom: 10px;
    }
    
    .progress-container {
        margin-bottom: 10px;
    }
    
    .carousel-item {
        width: 120px;
        height: 120px;
    }
}

    :root{ --max-width:860px; --bg:#4b2b4f; --panel:#fff; }
    .wrap{ width:100%; max-width:var(--max-width); }

    h1{ text-align:center; font-weight:600; font-size:20px; }

    .carousel-block{ position:relative; background:var(--panel); border-radius:12px; padding:10px; box-sizing:border-box; overflow:visible; }

    .viewport{  position: relative; width: 100%; margin: 0 auto; overflow: hidden; margin-bottom: 16px; border-radius: 12px; padding: 10px; background: #e9e9e9;}

    .track{ display:flex; align-items:center; will-change:transform; }


    .card{ flex:0 0 auto; width:calc(50% - 20px); aspect-ratio:4/5; margin:0 10px; border-radius:10px; overflow:hidden; background:#fff; display:flex; align-items:center; justify-content:center; }
    .card img{ width:100%; object-fit:cover; display:block; }

    .focus-line{ position:absolute; top:0; bottom:0; width:2px; left:50%; transform:translateX(-50%); background:#db07ff; pointer-events:none; z-index:30; }

    .viewport::before, .viewport::after{
      content:""; position:absolute; top:0; bottom:0; width:25%; pointer-events:none; z-index:20;
    }
    .viewport::before{ left:0; background:linear-gradient(90deg, rgba(233,233,233,1) 0%, rgba(18,10,20,0) 100%); }
    .viewport::after{ right:0; background:linear-gradient(270deg, rgba(233,233,233,1) 0%, rgba(18,10,20,0) 100%); }

    .controls{ display:flex; align-items:center; justify-content:center; gap:12px; margin-top:16px; }
    button{ font-size: 1em; background:#a73afd; border:0; color:#fff; padding:12px 40px; border-radius:8px; font-weight:600; cursor:pointer;  }
    button[disabled]{ opacity:0.5; cursor:not-allowed; }
	
    .controls2{ display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:1px; }
    button{ font-size: 1em; background:#a73afd; border:0; color:#fff; padding:12px 40px; border-radius:8px; font-weight:600; cursor:pointer;  }
    button[disabled]{ opacity:0.5; cursor:not-allowed; }	

    .win-modal{ position:fixed; left:50%; top:50%; transform:translate(-50%,-50%) scale(0.95); min-width:260px; width:98%; max-width: 600px; border-radius:14px; padding:18px 0; box-shadow:0 10px 40px rgba(0,0,0,0.6); display:flex; z-index:999; opacity: 0; visibility: hidden; backdrop-filter: blur(10px); transition: opacity 1s ease, visibility 1s ease; background-image: url('../modals/error/background.png'); background-size: cover; background-position: center;}
    .win-modal.show{ display:block; opacity: 1;  visibility: visible; text-align: center;}

	
	.loose {margin: 30px 0; width: 100%; background:#FFF; padding: 10px; clip-path: polygon(0 0, 100% 0, calc(100% - 24.75px) 100%, -7.75px 100%); }
    .h1mod h1 { margin:0; font-size:1.2em; text-align:center; color: #FFF; font-weight: 600;}
	.whitez h2 { font-size:1.5em; text-align:center; color: #000; font-weight: 600;}
	.tiffany h2 { font-size:1.4em; text-align:center;  color: #df59fb; margin-left: -22px; font-weight: 600;}


    @media (max-width:520px){
      .viewport::before, .viewport::after{ width:30%; }
      button{ padding:10px 40px; }
      .card{ width:calc(43% - 20px); }
    }
.snoska {
font-size: 0.8em;  
font-weight:200;
margin-top: 20px;	
}

.snoskaz {
text-align: center;
font-size: 0.8em;  
font-weight:200;
margin: 10px;	
}

.snoskax {
text-align: center;
font-size: 0.8em;  
font-weight:600;

}

.snoskax2 {
text-align: left;
font-size: 0.8em;  
font-weight:600;

}

.snoskaxx {
margin-top: 25px;
text-align: center;
font-size: 0.8em;  
font-weight:600;
text-shadow: rgba(221, 0, 235, 0.7) 0px 0px 10px;

}

.snoskay {
text-align: center;
font-size: 0.7em;  
font-weight:500;
}

.snoskay2 {
text-align: left;
font-size: 0.8em;  
font-weight:500;
}

.snoskay3 {
text-align: left;
font-size: 1em;  
font-weight:400;
}

.abz-img {
	height: 50px;
	width: 50px;
}

.abz-img-big {
	height: 80px;
	width: 80px;
}

.abz-img-big3 {
	height: 150px;
	width: 150px;
}

.flextext {
    display: flex;
    flex-direction: column;
    align-items: center;	
	text-align: center;
}


.snoskat {
text-align: center;
font-size: 0.8em;  
font-weight:400;
padding: 0 40px;	
}

#blinked {
animation-name: blink;
    animation-iteration-count: infinite;
    animation-timing-function: 
cubic-bezier(1.0, 0, 0, 1.0);
    animation-duration: 1s;
    -webkit-animation-name: blink;
    -webkit-animation-iteration-count: infinine;
    -webkit-animation-timing-function: 
cubic-bezier(1.0, 0, 0, 1.0);
    -webkit-animation-duration: 1s;	
}

.blinker {
     animation-name: blink;
    animation-iteration-count: 3;
    animation-timing-function: cubic-bezier(1.0,0,0,1.0);
    animation-duration: 0.8s;
    -webkit-animation-name: blink;
    -webkit-animation-iteration-count: 3;
    -webkit-animation-timing-function: cubic-bezier(1.0,0,0,1.0);
    -webkit-animation-duration: 0.8s;
 }

@keyframes blink {
from {opacity: 1.0;}
to {opacity: 0.0;}
}

.pere {
	display: flex;
    align-items: center;
    position: relative;
	border-bottom: 2px dashed #d1d1d1;
	margin: 30px 15px;
	
}

#tx02, #goBtn, #okBtn, #mess01, #mess02, #mess03, #mess04, #v2, #podtv {
display: none;	
}

.winners-containerx {
    border-radius: 12px;
    border: solid 10px #e9e9e9;	
    width: 95%;
    background: #e9e9e9;
    max-width: 600px;
    height: 158px;
    padding: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
  align-items: center; 
  gap: 16px; 
  padding: 16px;
  max-width: 600px;
  margin: 0 auto;
}

  .chatx {
    width: 100%;
    max-width: 600px;
    margin: 1px 0;
    display: flex;
    justify-content: center;
    align-items: center;
	flex-direction: column;
  } 
  
.chat-containerx {
    border-radius: 12px 12px 0 0;
    border: solid 10px #deb1ff;	
    width: 95%;
    background: #deb1ff;
    max-width: 600px;
    padding: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
  align-items: center;
  gap: 16px; 
  padding: 1px;
  max-width: 600px;
  margin: 0 auto;
}

.chat-containery {
    border-radius: 0 0 12px 12px;
    border: solid 10px #e9e9e9;	
    width: 95%;
    background: #e9e9e9;
	min-height: 1px;
    max-width: 600px;
    padding: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
	justify-content: flex-end;
    position: relative;
  align-items: center;
  gap: 16px; 
  padding: 1px;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.prize2-image {
  height: auto;
  flex-shrink: 0; 
}

.chat2-image {
	border-radius: 50%;
    text-align: center;
	left: 20px;
    max-width: 60px;
    height: auto;
    flex-shrink: 0; 
    border: 2px solid #ffffff;	
}

.snoski-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px; 
}

.chat2-wrapper {
  width: 100%;	
  display: flex;
  flex-direction: column;
  gap: 8px; 
  background-color: #FFF;
  border-radius: 0 12px 12px 12px;
  margin: 1px;
  padding: 20px;
} 

.chat-oper {
  padding: 10px 5px;	
}
	

.form-container {
    text-align: center;
    margin: 40px 0 20px; 
}

.name-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

#nameInput {
    width: 100%;
    padding: 16px 20px;
    font-family: "Bounded", Arial, sans-serif;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: white;
}

#nameInput:focus {
    border-color: #00eadb;
}


.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    background-color: #a73afd;
	background: linear-gradient(86deg, #a73afd, #dc3afd);
    color: white;
    font-family: "Bounded", Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
 box-shadow:
inset 0 0 0px 0px rgba(0,0,0,3.8),
   inset rgba(0,0,0,.25) -3px -3px 4px 0px,
   inset rgba(255,255,255,.2) 4px 0px 7px 5px,
   1px 1px 1px rgba(255,255,255,0),
   -1px -2px 5px rgba(0,0,0,0);
}

.play-button:hover {
    background-color: #fd776f;
}

.play-button:active {
    transform: translateY(2px);
}

.fire-icon {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}


@media (max-width: 768px) {
    .form-container {
        margin: 30px 0 20px;
    }
    
    #nameInput {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .play-button {
        padding: 16px 30px;
        font-size: 16px;
        gap: 10px;
    }
    
    .fire-icon {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .form-container {
        margin: 25px 0 20px;
    }
    
    .name-form {
        gap: 15px;
    }
    
    #nameInput {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .play-button {
        padding: 16px 30px;
        font-size: 16px;
        gap: 8px;
    }
    
    .fire-icon {
        height: 30px;
    }
}	
	
 .ticker {
  height: 40px;
  background-color: #a73afd;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

 .ticker2 {
  height: 40px;
  background-color: #ff5bed;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
}

.ticker-wrapper {
  display: inline-block;
  animation: ticker-loop 20s linear infinite;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  height: 40px;
}

.ticker-item {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.ticker-item img {
  height: 24px;
  margin-right: 8px;
}

.ticker-item span {
  color: #fff;
  font-weight: 400;
  font-size: 15px;
}

.kartka {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kartka img {
  height: 200px;
}


.utp-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto; 
	margin: 0 auto;
	padding: 10px;
	gap: 10px;
	
}

.utp {
	background-color: #f4e7ff;	
	display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;	
	gap: 10px;
	border-radius: 12px;	
	padding: 10px;	
}

.utp2 {
	background-color: #FFF;	
	display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;	
	gap: 10px;
	border-radius: 12px;	
	padding: 10px;	
}

.utp3 {

	display: flex;
    align-content: center;
    justify-content: center;
    align-items: center;	
	gap: 0px;
	border-radius: 12px;	
	padding: 10px;	
}

.line22 {
	font-family: "Bounded", Arial, sans-serif;
	font-weight: 600;
	font-size: 0.9em;
}

.line16 {
	font-family: "Bounded", Arial, sans-serif;
	font-weight: 600;
	font-size: 0.9em;
}

.utp-img-wrap {
	
}

.utp-img {
	height: 40px;
	width: 40px;
}




#tickerTrack2 {
  animation: ticker-left 40s linear infinite;
}


#tickerTrack1 {
  animation: ticker-right 40s linear infinite;
}



@keyframes ticker-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


@keyframes ticker-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}


    .prize-image {
      display: block;
      width: auto;
      max-width: 75%;
      margin: 10px auto;
	  margin-bottom: 1px;
    }


    .prizes-carousel {
      width: 100%;
      height: 120px;
      background-color: #f5f5f5;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 16px 0;
      font-size: 14px;
      color: #666;
    }


    .attempts {
      display: flex;
      flex-wrap: wrap;
      align-content: space-around;
      justify-content: center;
      align-items: center;
      text-align: center;
      margin: 10px 0;
      position: relative;
      font-size: 19px;
      font-weight: normal;
      color: #111;
    }

    .attemptsx {
      display: flex;
      flex-wrap: wrap;
      align-content: space-around;
      justify-content: center;
      align-items: center;
      text-align: center;
      margin: 30px 0;
      position: relative;
      font-weight: normal;
      color: #FFF;
    }	

	.tryes {

	}
    .attempts .number {
      font-size: 30px;
      font-weight: bold;
      position: relative;
      display: inline-block;
    }
	
    .attemptsx .numberx {
      font-size: 5em;
      font-weight: bold;
      position: relative;
      display: inline-block;
    }	

    .attempts .number img {
      position: absolute;
      top: 50%;
      left: 58%;
      transform: translate(-50%, -50%);
      height: 58px;
      pointer-events: none;
    }

    .attemptsx .numberx img {
      position: absolute;
      top: 50%;
      left: 58%;
      transform: translate(-50%, -50%);
      height: 160px;
      pointer-events: none;
    }
	

    .spin-button {
      display: block;
      width: 80%;
      max-width: 300px;
      margin: 0 auto 24px;
      padding: 14px;
      background-color: #000;
      color: #fff;
      font-size: 16px;
      font-weight: bold;
      border: none;
      border-radius: 8px;
      cursor: pointer;
    }

    .spin-button:hover {
      opacity: 0.9;
    }


    .winners-heading {
      display: block;
	  height: 40px;
      left: 33%;
      margin: -6px 0;
	  z-index: 2;
	  position: absolute;
    }


	
  .winz {
    width: 100%;
    max-width: 600px;
    height: 150px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }  
  
  .winners-container {
    border-radius: 12px;
    border: solid 10px #f4e7ff;	
    width: 90%;
    background: #f4e7ff;
    max-width: 600px;
    height: 158px;
    padding: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
  }

  .winx {
    width: 100%;
    max-width: 600px;
    height: 150px;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
  }  
  
  .winner-card {
    background: white;
    border-radius: 12px;
    aspect-ratio: 4 / 6;
    height: 100%;
    flex-shrink: 0;
    margin-left: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
	border: solid 2px #a73afd;
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.2);
    animation: appear 0.8s forwards;
  }

  .winner-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  @keyframes appear {
    0% {
      transform: scale(0.2);
      filter: blur(10px);
      opacity: 0;
    }
    100% {
      transform: scale(1);
      filter: blur(0);
      opacity: 1;
    }
  }


.blury {
filter: blur(3px);
opacity: 0.4;	
}	
	

