@media (max-width: 1200px) {
	.deal-wheel {
		flex-direction: column !important;
		padding: 0px 30px 30px 30px !important;
		border-radius: 40% 40% 25px 25px !important;
	}
	
	.adaptive-container {
		align-items: center !important;
	}
	
	.controls-rules {
		top: 50% !important;
	}
	
	.controls-music {
		top: 50% !important;
	}
	
	.luckywheel-popup--rules {
		width: 29.1875em !important;
	}
}

* {
    box-sizing: border-box;
}

canvas {
	display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

video { 
	mix-blend-mode: screen;
}

.coins-burst{
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1000;
}

.coins-burst.viewport{
  position: fixed;
  left: 0; top: 0;
  transform: translate(var(--x), var(--y)) translate(-50%,-50%);
}

.coins-burst.page{
  position: absolute;
  transform: translate(-50%,-50%);
}

.coins-burst.fullscreen{
  position: fixed;
  left: 0; top: 0;
  transform: none !important;
  object-fit: contain; /* чтобы не тянуло, если соотношение отличается */
}

#coinfx-canvas {
  /* Критически важные стили для производительности iOS */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: pixelated;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

@font-face {
  font-family: 'Chillax-Semibold';
  src: url('../fonts/Chillax-Semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Chillax-Medium';
  src: url('../fonts/Chillax-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
  font-style: normal;
}

@font-face {
  font-family: 'Chillax-Bold';
  src: url('../fonts/Chillax-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
  font-style: normal;
}

body {
	margin: 0;
	font-family: 'Chillax-Bold';
}

.deal-wheel {
    --size: clamp(400px, 150px, 400px);
    --lg-hs: 0 3%;
    --lg-stop: 50%;
    --lg: linear-gradient(
        hsl(var(--lg-hs) 0%) 0 var(--lg-stop),
        hsl(var(--lg-hs) 20%) var(--lg-stop) 100%
    );
    display: flex;
    flex-direction: row;
	gap: 5em;
    align-items: center;
    padding: 20px;
}

.wheel-container {
    position: relative;
}

.spinner {
	background: rgb(26, 26, 47);
    box-shadow: #5d00ff 0px 0px 2px 20px;
    position: relative;
    display: grid;
    align-items: center;
    grid-template-areas: "spinner";
    width: 100%;
    height: 100%;
    transform: rotate(calc(var(--rotate, 25) * 1deg));
    border-radius: 50%;
    padding: 0;
    margin: 0;
    list-style: none;
	
}

.spinner * {
    grid-area: spinner;
}

.prize {
    display: flex;
    align-items: center;
    padding: 0 calc(var(--size) / 6) 0 calc(var(--size) / 15);
    width: 50%;
    height: 50%;
    transform-origin: center right;
    transform: rotate(var(--rotate));
    user-select: none;
    font-weight: bold;
}

.ticker {
    position: absolute;
    left: -30px;
    transform: translateY(-50%) rotate(0deg);
    top: 50%;
    width: calc(var(--size) / 10);
    height: calc(var(--size) / 10);
    background: url(../images/ticker.png) no-repeat;
    background-size: cover;
    z-index: 1;
    transform-origin: center right;
}

.controls-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.logo-wheel {
	background: url(../images/logo.png) no-repeat;
	background-size: cover;
    width: 450px;
    height: 200px;
	margin-bottom: 3em;
}

.controls-container p {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.btn-spin {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 16px;
    background: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-spin:hover {
    background: #444;
}

.btn-spin:disabled {
    background: #6565657d;
    cursor: not-allowed;
    box-shadow: 0 0 10px rgb(74 74 240 / 0%);
}

.is-spinning .spinner {
    transition: transform 8s cubic-bezier(0.1, -0.01, 0, 1);
}

.is-spinning .ticker {
    animation: tick 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tick {
    40% {
        transform: rotate(-12deg);
    }
}

.prize.selected .text {
    color: white;
    animation: selected 800ms ease;
}

@keyframes selected {
    25% {
        transform: scale(1.25);
        text-shadow: 1vmin 1vmin 0 hsla(0 0% 0% / 0.1);
    }
    40% {
        transform: scale(0.92);
        text-shadow: 0 0 0 hsla(0 0% 0% / 0.2);
    }
    60% {
        transform: scale(1.02);
        text-shadow: 0.5vmin 0.5vmin 0 hsla(0 0% 0% / 0.1);
    }
    75% {
        transform: scale(0.98);
    }
    85% {
        transform: scale(1);
    }
}

.controls-music {
    position: absolute;
    right: 50px;
    top: 10px;
    background: #8246ff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
	cursor: pointer;
    color: white;
	transition: background 0.3s;
}

.controls-music:hover {
    background: #935fff;
}

.controls-music:active {
    background: #6319ff;
}

.controls-rules {
    position: absolute;
    right: 10px;
    top: 10px;
    background: #8246ff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
	cursor: pointer;
    color: white;
	transition: background 0.3s;
}

.controls-rules:hover {
    background: #935fff;
}

.controls-rules:active {
    background: #6319ff;
}

.games-container--desktop {
    height: 100vh;
}

#app, .games-container {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.luckywheel, .luckywheel__canvas, .luckywheel__controls {
    pointer-events: auto;
}

.luckywheel, .luckywheel__body {
    flex-direction: column;
}

.games-container__game {
    flex-grow: 1;
}

.luckywheel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.luckywheel, .luckywheel__body {
    flex-direction: column;
}

.luckywheel__body {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.luckywheel, .luckywheel__canvas {
    width: 100%;
    height: 100%;
}

.luckywheel__adaptive {
    top: 0;
    left: 0;
}

.luckywheel__adaptive {
    position: absolute;
}

.s-vue-modal {
	position: absolute;
}

.s-vue-modal .v--modal-overlay {
    z-index: 1003;
    overflow: auto;
    background: rgba(0,0,0,.7);
}

.v--modal-overlay {
    position: fixed;
    box-sizing: border-box;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    opacity: 1;
}

.v--modal-overlay .v--modal-background-click {
    width: 100%;
    min-height: 100%;
    height: auto;
}

.s-vue-modal .v--modal-background-click {
    display: flex;
    align-items: center;
    justify-content: center;
}

.v--modal-top-right {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}

.v--modal {
    background-color: white;
    text-align: left;
    border-radius: 3px;
    box-shadow: 0 20px 60px -2px rgba(27, 33, 58, 0.4);
    padding: 0;
}

.s-vue-modal .v--modal {
    border-radius: 0;
    box-shadow: none;
    background: none;
}

.s-vue-modal .v--modal-box {
    top: auto !important;
    top: initial !important;
    left: auto !important;
    left: initial !important;
    width: auto !important;
    max-width: 100%;
    height: auto !important;
    overflow: visible !important;
    box-shadow: none;
}

.v--modal-overlay .v--modal-box {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.game-popup--rules, .game-popup--results {
    left: 0;
}

.game-popup--rules, .game-popup--results {
    padding: 1.5em .125em;
    text-align: center;
}

.game-popup--rules, .game-popup--results {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.game-popup--rules::before, .game-popup--results::before {
    content: "";
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}

.game-popup__content {
    display: inline-block;
    max-width: calc(100% - 1px);
    vertical-align: middle;
}

.adaptive-container {
    background: none;
	position: absolute;
    z-index: 999;
}

.adaptive-container {
    transform-origin: left top;
	display: flex;
    justify-content: center;
    align-items: flex-start;
}

.adaptive-modal {
    position: fixed;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;
}

.luckywheel-popup--rules {
    background: #1a1a2f;
    border: 2px solid #5d00ff;
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
	position: relative;
    width: 50.1875em;
}

.button-rules-close {
    font-size: inherit;
}

.luckywheel-popup__close {
    font-style: inherit;
    background: #4a4af0;
    text-transform: uppercase;
    font-family: 'Chillax-Bold';
    border: none;
    border-radius: 10px;
    color: #ffffff;
    cursor: pointer;
    font-size: 1.1em;
    padding: 20px 50px;
    box-shadow: 0 0 10px rgba(74, 74, 240, 0.3);
    transition: background 0.3s;
}

.luckywheel-popup__close:hover {
    background: #5a5af8;
}

.luckywheel-popup__close:active {
    background: #3737b5;
}

.luckywheel-popup__heading {
    background: url(../images/logo.png) no-repeat;
    background-size: cover;
    width: 140px;
    height: 60px;
}

.luckywheel-popup__body {
    padding-right: 3.125em;
    padding-left: 3.125em;
}

.luckywheel-popup__body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
	margin-bottom: 2.125em;
}

.luckywheel-popup__subheading, .luckywheel-popup__list, .luckywheel-popup__title, .luckywheel-popup__msg {
    color: #fff;
}

.luckywheel-popup__content {
    padding-right: 1.875em;
    padding-left: 1.875em;
    margin-top: 1.125em;
}

.luckywheel-popup__subheading {
    margin-top: 0;
    margin-bottom: .9375em;
	font-family: 'Chillax-Semibold';
}

.luckywheel-popup__subheading, .luckywheel-popup__msg {
    text-transform: uppercase;
}

.luckywheel-popup__list {
    padding-left: 0;
    text-align: left;
}

.luckywheel-popup__msg {
    margin-top: 1em;
    margin-bottom: 1em;
}

.luckywheel-popup__extra {
    display: block;
    font-size: .875em;
    color: hsl(270,49%,68%);
	font-family: 'Chillax-Medium';
}

.luckywheel-popup__item {
	font-family: 'Chillax-Medium';
}

.win_container-background {
    position: absolute;
    top: calc(50% - 250px);
    left: calc(50% - 250px);
    width: 500px;
    height: 500px;
    border: 5px solid #FFD700;
    border-radius: 50%;
	scale: 0;
}

.win_container-shadow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 2;
    box-shadow: inset 0 0 20px 5px rgb(0 0 0);
}

.win_container-svg {
    rotate: 0deg;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.modal-content {
    position: absolute;
    z-index: 10;
    top: 0%;
	opacity: 0;
    border: 5px solid #FFD700;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px 3px rgb(0 0 0);
    background: #2e0a54;
    padding: 20px;
    border-radius: 50px;
    text-align: center;
    min-width: 500px;
	animation: openWinnigsModal 0.4s ease-in-out forwards;
}

.modal-header h2 {
    color: #FFD700;
    margin: 0;
    padding: 10px;
    font-size: 2.5em;
    text-transform: uppercase;
}

.modal-body p {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.win_container-background {
	opacity: 0;
	animation: openWinnigsbackground 0.5s ease-in-out 0.2s forwards;
}

.win_container-svg {
	animation: rotateWinnigsSvg 1s linear infinite;
}

@keyframes rotateWinnigsSvg {
    0% { 
		rotate: 0deg;
	}
	100% { 
		rotate: 360deg;
	}
}

@keyframes openWinnigsbackground {
    0% { 
		opacity: 0;
		scale: 0;
	}
	100% { 
		opacity: 1;
		scale: 1;
	}
}

@keyframes openWinnigsModal {
    0% { 
		opacity: 0;
		top: 0%; 
	}
	100% { 
		opacity: 1;
		top: 50%; 
	}
}

@keyframes closeWinnigsModal {
    0% { 
		opacity: 0;
		top: 0%; 
	}
	100% { 
		opacity: 1;
		top: 50%; 
	}
}

.win-modal-over {
	position: absolute;
	background-color: rgba(0, 0, 0, 0.7);
	width: 100%;
    height: 100%;
}

.modal-star-win {
  position: relative;
  width: 4px;
  height: 4px;
  background: #FFD700; /* Золотой цвет */
  border-radius: 50%;
  box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700;
}

.modal-star-win::before,.modal-star-win::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: #FFD700;
  transform: translate(-50%, -50%) rotate(0deg);
  box-shadow: 0 0 5px #FFD700;
}

.modal-star-win::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.star-win {
  position: relative;
  width: 4px;
  height: 4px;
  background: #FFD700; /* Золотой цвет */
  border-radius: 50%;
  box-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700;
}

.star-win::before,.star-win::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 2px;
  background: #FFD700;
  transform: translate(-50%, -50%) rotate(0deg);
  box-shadow: 0 0 5px #FFD700;
}

.star-win::after {
  transform: translate(-50%, -50%) rotate(90deg);
}