html,
body {
	padding: 0;
	margin: 0;
	font-family: Rajdhani, sans-serif;
	background: #111013;
	scroll-behavior: smooth;
}
* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}
a {
	cursor: pointer;
	text-decoration: none;
	color: inherit;
}
button {
	cursor: pointer;
	outline: none;
	border: 0;
}
@font-face {
	font-family: SegoeUI;
	src:
		local('Segoe UI Light'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.woff2)
			format('woff2'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.woff)
			format('woff'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/light/latest.ttf)
			format('truetype');
	font-weight: 100;
}
@font-face {
	font-family: SegoeUI;
	src:
		local('Segoe UI Semilight'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/semilight/latest.woff2)
			format('woff2'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/semilight/latest.woff)
			format('woff'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/semilight/latest.ttf)
			format('truetype');
	font-weight: 200;
}
@font-face {
	font-family: SegoeUI;
	src:
		local('Segoe UI'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/normal/latest.woff2)
			format('woff2'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/normal/latest.woff)
			format('woff'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/normal/latest.ttf)
			format('truetype');
	font-weight: 400;
}
@font-face {
	font-family: SegoeUI;
	src:
		local('Segoe UI Bold'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/bold/latest.woff2)
			format('woff2'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/bold/latest.woff)
			format('woff'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/bold/latest.ttf)
			format('truetype');
	font-weight: 600;
}
@font-face {
	font-family: SegoeUI;
	src:
		local('Segoe UI Semibold'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/semibold/latest.woff2)
			format('woff2'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/semibold/latest.woff)
			format('woff'),
		url(//c.s-microsoft.com/static/fonts/segoe-ui/west-european/semibold/latest.ttf)
			format('truetype');
	font-weight: 700;
}
#root {
	width: 100%;
	height: 100%;
}
.head {
	width: 100%;
	height: 90vh;
	background: url(../public/bg.png);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: start;
	position: relative;
	display: flex;
	justify-content: center;
}
.head a {
	position: absolute;
	width: max-content;
	bottom: 60px;
	font-size: 32px;
	padding: 10px 40px;
	color: #000;
	background: #fff;
	border-radius: 10px;
	font-weight: 600;
	box-shadow: 0 5px 50px #00000080;
	animation: identifier 5s infinite;
}
.names {
	background: #fff;
	width: 100%;
	display: flex;
	justify-content: center;
	gap: 80px;
	font-size: 32px;
	font-weight: 600;
	padding: 30px 0;
	border-top: 8px solid #a2915d;
}
.bestskins {
	display: flex;
	flex-direction: column;
	gap: 50px;
	padding: 30px 0;
	justify-content: center;
	align-items: center;
	background: url(../public/lines.svg);
	background-repeat: no-repeat;
	height: 100%;
	position: relative;
	background-size: cover;
}
.bestlist {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	max-width: 1600px;
	gap: 60px;
	position: relative;
	height: 100%;
}
.bestlist div {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	border-radius: 10px;
	position: relative;
	z-index: 1;
	padding: 20px 40px;
}
.bestlist div p {
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	color: #fff;
}
.bestlist div p span {
	font-size: 14px;
	color: #ffffff80;
}
.itemimg {
	width: 120px;
	pointer-events: none;
}
.bestlist div:first-child {
	transform: rotate(5deg);
	top: -10px;
}
.bestlist div:last-child {
	transform: rotate(-5deg);
	top: -10px;
}
.skintitle {
	font-size: 35px;
	color: #fff;
	font-weight: 700;
}
.itembg {
	position: absolute;
	z-index: -1;
	border-radius: 20px;
	box-shadow: 1px 3px 10px #00000040;
	height: 100%;
	pointer-events: none;
}
.livedrop {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding-top: 15px;
	padding-bottom: 40px;
	border-bottom: 8px solid #a2915d;
}
.ticker {
	margin-left: 30px;
	display: flex;
	align-items: center;
	font-size: 16px;
	font-weight: 500;
	color: #fff;
	gap: 5px;
}
.ticker span {
	background: red;
	width: 10px;
	animation: signal 1s infinite;
	height: 10px;
	border-radius: 50%;
}
.dropline {
	overflow: hidden;
	width: 100%;
	display: flex;
	background: #181c28;
	align-items: center;
	position: relative;
}
.roulette:before {
	content: '';
	position: absolute;
	width: 150px;
	right: 0;
	height: 100%;
	background: linear-gradient(90deg, #0000000d, #000);
	z-index: 5;
}
.roulette:after {
	content: '';
	position: absolute;
	width: 150px;
	height: 100%;
	background: linear-gradient(90deg, #000, #0000000d);
	z-index: 5;
}
.drop {
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1;
	position: relative;
	height: 180px;
	gap: 10px;
	padding: 10px 30px;
	animation: fadeInLeft 0.5s ease-in-out;
}
.dropbg {
	position: absolute;
	z-index: -1;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}
.drop.covert .dropbg {
	background: #ff000017;
}
.drop .dropbg span {
	filter: blur(20px);
	width: 20px;
	height: 20px;
	z-index: -2;
	position: absolute;
}
.drop_container {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
}
.drop.covert .bg_icon path {
	fill: #ea2f2f;
}
.drop.covert .dropbg span {
	background: red;
}
.drop.covert {
	border-top: 1px solid #ea2f2f;
	border-bottom: 1px solid #ea2f2f;
}
.drop.common .bg_icon path {
	fill: #4169e1;
}
.drop.common .dropbg span {
	background: #4169e1;
}
.drop.common {
	border-top: 1px solid #4169e1;
	border-bottom: 1px solid #4169e1;
}
.drop.restricted .bg_icon path {
	fill: #8a2be2;
}
.drop.restricted .dropbg span {
	background: #8a2be2;
}
.drop.restricted {
	border-top: 1px solid #8a2be2;
	border-bottom: 1px solid #8a2be2;
}
.drop.classified .bg_icon path {
	fill: #e334c8;
}
.drop.classified .dropbg span {
	background: #e334c8;
}
.drop.classified {
	border-top: 1px solid #e334c8;
	border-bottom: 1px solid #e334c8;
}
.drop.knife .bg_icon path {
	fill: #ff0;
}
.drop.knife .dropbg span {
	background: #ff0;
}
.drop.knife {
	border-top: 1px solid #ffff00;
	border-bottom: 1px solid #ffff00;
}
.drop_container p {
	text-align: center;
	text-overflow: clip;
	color: #fff;
	overflow: hidden;
	font-size: 16px;
}
.openCase {
	margin: 50px auto;
	display: flex;
	flex-direction: column;
	padding: 120px 80px;
	max-width: 1600px;
	background: url(../public/graybg.png);
	background-size: cover;
	background-repeat: no-repeat;
	border-radius: 30px;
	justify-content: center;
	align-items: center;
}
.drop_container img {
	width: 150px;
}
.casetitle {
	font-size: 46px;
	color: #fff;
	font-weight: 700;
}
.casedesc {
	font-size: 18px;
	color: #b2b6bf;
	margin-bottom: 60px;
	max-width: 300px;
	text-align: center;
}
.caseaction {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	height: 300px;
	margin-bottom: 60px;
}
.caseaction img {
	width: max-content;
}
.caseaction a {
	width: max-content;
	padding: 10px 40px;
	font-size: 24px;
	margin-top: 40px;
	color: #000;
	background: #fff;
	border-radius: 10px;
	font-weight: 600;
	box-shadow: 0 5px 50px #00000080;
	position: relative;
}
.caseaction a:before {
	content: '';
	position: absolute;
	top: 50%;
	border-radius: 10px;
	left: 50%;
	width: 0;
	height: 0;
	background: #fff3;
	transform: translate(-50%, -50%);
	transition:
		width 0.6s ease-out,
		height 0.6s ease-out,
		opacity 0.6s ease-out;
	opacity: 0;
	pointer-events: none;
}
.caseaction a:hover:before {
	width: 100%;
	height: 100%;
	opacity: 0;
	animation: radar-wave 0.8s infinite;
}
.roulette {
	height: 300px;
	margin-bottom: 60px;
	background: #000;
	width: 100%;
	display: flex;
	align-items: center;
	border-radius: 24px;
	padding: 40px 0;
	gap: 20px;
	border: 2px solid #a2915d;
	position: relative;
	overflow: hidden;
}
.roulette-container {
	display: flex;
	position: absolute;
	transform: translate(0);
	gap: 20px;
	will-change: transform;
}
.item_roulette {
	padding: 20px;
	background: url(../public/itembg.png);
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	border-radius: 24px;
	width: max-content;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	max-width: 200px;
	max-height: 200px;
	position: relative;
}
.item_roulette.covert:after {
	position: absolute;
	content: '';
	background: linear-gradient(0deg, #ff6767, #c96464);
	width: 50%;
	top: 0;
	height: 4px;
	border-bottom-right-radius: 20px;
	border-bottom-left-radius: 20px;
}
.item_roulette.classified:after {
	position: absolute;
	content: '';
	background: linear-gradient(0deg, #ff67ff, #ba64c9);
	width: 50%;
	top: 0;
	height: 4px;
	border-bottom-right-radius: 20px;
	border-bottom-left-radius: 20px;
}
.item_roulette.restricted:after {
	position: absolute;
	content: '';
	background: linear-gradient(0deg, #753fff, #5032cb);
	width: 50%;
	top: 0;
	height: 4px;
	border-bottom-right-radius: 20px;
	border-bottom-left-radius: 20px;
}
.item_roulette.common:after {
	position: absolute;
	content: '';
	background: linear-gradient(0deg, #67a4ff, #648dc9);
	width: 50%;
	top: 0;
	height: 4px;
	border-bottom-right-radius: 20px;
	border-bottom-left-radius: 20px;
}
.item_roulette.knife:after {
	position: absolute;
	content: '';
	background: linear-gradient(0deg, #ffe367, #c9a664);
	width: 50%;
	top: 0;
	height: 4px;
	border-bottom-right-radius: 20px;
	border-bottom-left-radius: 20px;
}
.item_roulette img {
	width: 100%;
}
.item_roulette p {
	font-size: 16px;
	color: #fff;
	text-align: center;
}
.first_arrow {
	position: absolute;
	pointer-events: none;
	top: 0;
	right: calc(50% - 11px);
}
.second_arrow {
	pointer-events: none;
	position: absolute;
	bottom: 0;
	transform: rotate(180deg);
	right: calc(50% - 11px);
}
.winwindow {
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	height: 100%;
	display: flex;
	justify-content: center;
	z-index: 999;
	align-items: center;
	background: #00000080;
}
.openCase .timer {
	font-size: 16px;
	color: #ffffffb3;
	font-weight: 400;
	margin-top: 5px;
	padding: 10px 20px;
	border-radius: 50px;
	animation: fadeIn 0.5s ease-in-out;
}
.winwindow .timer {
	font-size: 16px;
	margin-top: 0;
	animation: fadeIn 0.5s ease-in-out;
}
.window {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
	flex-direction: column;
	gap: 20px;
	border: 2px solid #a2915d;
	background: radial-gradient(#3b3b3b, #282828);
	border-radius: 15px;
}
.winimg {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	z-index: 1;
}
.winimg img:last-child {
	position: absolute;
	z-index: -1;
	filter: blur(5px);
	margin-top: 10px;
	margin-right: 10px;
	opacity: 0.5;
}
.window p,
.winbanner {
	font-size: 20px;
	color: #fff;
	text-shadow: 1px 1px 1px #000;
}
.window span {
	font-size: 24px;
	color: #fff;
	font-weight: 500;
	text-shadow: 1px 1px 1px #000;
}
.window button {
	width: 100%;
	border-radius: 10px;
	background: #fff;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	font-weight: 500;
	font-size: 16px;
}
.winwindow.closing {
	animation: fadeOutWindow 0.3s ease;
}
.takewon {
	width: max-content;
	border-radius: 10px;
	background: #fff;
	margin-top: 20px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 10px 40px;
	font-weight: 500;
	font-size: 16px;
}
.footer {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-bottom: 40px;
}
.partners {
	display: flex;
	align-items: center;
	gap: 10px;
}
.footer span {
	font-size: 18px;
	color: #fff6;
}
@keyframes signal {
	0% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
	to {
		opacity: 1;
	}
}
@keyframes radar-wave {
	0% {
		width: 0;
		height: 0;
		opacity: 0.5;
	}
	to {
		width: 140%;
		height: 140%;
		opacity: 0;
	}
}
@keyframes identifier {
	0% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-5px);
	}
	to {
		transform: translateY(0);
	}
}
@keyframes fadeInLeft {
	0% {
		opacity: 0;
		transform: translate(-100%);
	}
	to {
		opacity: 1;
		transform: translate(0);
	}
}
@keyframes fadeOut {
	0% {
		opacity: 1;
		transform: translate(0);
	}
	to {
		opacity: 0;
		transform: translate(-100%);
	}
}
@keyframes fadeInWindow {
	0% {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
@keyframes fadeOutWindow {
	0% {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}
.fadeOut {
	animation: fadeOut 0.5s ease-in-out forwards;
}
@keyframes slideLeft {
	0% {
		transform: translate(-100%);
	}
	to {
		transform: translate(100%);
	}
}
@media screen and (max-width: 1700px) {
	.openCase,
	.bestlist {
		max-width: 1200px;
	}
}
@media screen and (max-width: 1300px) {
	.openCase,
	.bestlist {
		max-width: 1000px;
	}
}
@media screen and (max-width: 1000px) {
	.head {
		height: 60vh;
	}
	.names {
		display: none;
	}
	.bestlist {
		display: grid;
		max-width: 90%;
		margin: 0 auto;
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
	.skintitle {
		text-align: center;
		max-width: 90%;
	}
	.bestlist div {
		padding: 5px 10px;
	}
	.itemimg {
		width: 80px;
	}
	.openCase {
		margin: 0 auto 50px;
		width: 100%;
		border-radius: 0;
		padding: 120px 10px;
	}
	.window {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}
	.winimg img {
		width: 100%;
	}
}

/* ===== MOBILE PATCH (paste at the end) ===== */
:root { --item-w: 128px; --roulette-gap: 16px; }

html, body { -webkit-font-smoothing: antialiased; }
body { overscroll-behavior-y: contain; -webkit-tap-highlight-color: transparent; }

/* Hero/Head */
@media (max-width: 768px){
  .head { height: 56vh; background-position: center top; }
}

/* Typography = лёгкое «отдаление» */
@media (max-width: 560px){
  html { font-size: 15px; }
}

/* Best skins grid */
@media (max-width: 768px){
  .bestlist { grid-template-columns: 1fr 1fr; gap: 24px; max-width: 92%; }
  .bestlist div { padding: 12px; }
  .itemimg { width: 88px; }
  .skintitle { font-size: clamp(22px, 5.6vw, 28px); text-align: center; }
}
@media (max-width: 560px){
  .bestlist { grid-template-columns: 1fr; gap: 20px; max-width: 94%; }
  .itemimg { width: 72px; }
  .bestlist div p { font-size: 15px; }
  .bestlist div p span { font-size: 12px; }
}

/* Live drop / тикер */
@media (max-width: 560px){
  .drop { height: 140px; padding: 10px 16px; gap: 8px; }
  .drop_container img { width: 120px; }
  .drop_container p { font-size: 14px; word-break: break-word; }
}

/* Open Case блок */
@media (max-width: 768px){
  .openCase { padding: 80px 16px; border-radius: 16px; }
  .casetitle { font-size: clamp(26px, 6.2vw, 32px); }
  .casedesc { max-width: 92%; font-size: 16px; margin-bottom: 36px; text-align: center; }
  .caseaction { height: auto; min-height: 220px; margin-bottom: 40px; }
  .caseaction a { width: 100%; max-width: 320px; font-size: 18px; padding: 12px 20px; }
}
@media (max-width: 560px){
  .openCase { padding: 64px 12px; }
}

/* Рулетка — стабильные размеры на мобилках, меньше «дрейфа» */
@media (max-width: 768px){
  .roulette { height: 240px; padding: 24px 0; gap: var(--roulette-gap); border-width: 2px; }
  .roulette-container { gap: var(--roulette-gap); will-change: transform; }
  .item_roulette { width: var(--item-w); max-width: none; } /* фикс ширина */
}
@media (max-width: 560px){
  :root { --item-w: 104px; --roulette-gap: 12px; }
  .roulette { height: 210px; padding: 20px 0; border-width: 1px; }
}

/* (Опционально) режим без gap для идеальной точности
   Просто добавь класс .roulette--nogap на обёртку рулетки, если нужно */
.roulette--nogap .roulette-container { gap: 0 !important; }
.roulette--nogap .item_roulette { margin-right: 12px; } /* вместо gap */

/* Тач-поведение: не мешать вертикальной прокрутке */
.roulette, .roulette-container { touch-action: pan-y; }

/* Стрелки по центру (надёжнее на мобилках) */
@media (max-width: 560px){
  .first_arrow, .second_arrow { right: auto; left: 50%; pointer-events: none; }
  .first_arrow { transform: translateX(-50%); }
  .second_arrow { transform: translateX(-50%) rotate(180deg); }
}

/* Win window — НЕ фуллскрин на телефоне */
@media (max-width: 560px){
  .winwindow { padding: 24px; align-items: center; }
  .winwindow .window{
    width: min(92vw, 440px) !important;
    max-height: 82vh;
    overflow: auto;
    border-radius: 16px !important;
  }
  .winimg img { width: 80%; max-width: 280px; }
  .takewon, .window button { width: 100%; max-width: 360px; min-height: 44px; font-size: 16px; }
}

/* Footer */
@media (max-width: 560px){
  .footer span { font-size: 14px; }
  .partners { flex-wrap: wrap; }
}

/* ===== Roulette mobile hardening ===== */
@media (max-width: 560px){
  /* Убираем gap (он даёт субпиксельный дрейф) — переедем на margin */
  .roulette-container{
    gap: 0 !important;                 /* перекрываем inline 'gap:20px' */
    will-change: transform;
    transform: translate3d(0,0,0);
  }

  /* Жёстко фиксируем ширину слота = 200px (и ещё 20px справа как зазор)
     ИТОГО: 220px на слот — под твою формулу с +110 */
  .item_roulette{
    width: 200px !important;
    max-width: none !important;
    flex: 0 0 200px !important;
    margin-right: 20px !important;     /* вместо gap */
  }

  .item_roulette img{ width:100%; height:auto; display:block }

  /* Стрелки строго по центру контейнера */
  .first_arrow, .second_arrow{
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    pointer-events: none;
  }
  .second_arrow{ transform: translateX(-50%) rotate(180deg) !important; }

  /* Чуть ниже борта — меньше шанс «дёрга» при отрисовке */
  .roulette{ padding: 20px 0; }
}
