html {
	font-family: sans-serif;
	line-height: 1.15;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%
}
body {
	margin: 0;
	color: #000000;
	font: 400 15px Arial, sans-serif;
	line-height: 1.4em;
	background-color: #ece5ff6e;
}
article, aside, footer, header, nav, section {
	display: block
}
h1 {
	font-size: 2em;
	margin: .67em 0;
}
ol {
	padding: 0 40px 40px;
}
figcaption, figure, main {
	display: block
}
figure {
	margin: 1em 40px
}
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible
}
pre {
	font-family: monospace, monospace;
	font-size: 1em
}
a {
	background-color: transparent;
	-webkit-text-decoration-skip: objects
}
a:active, a:hover {
	outline-width: 0
}
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted
}
b, strong {
	font-weight: inherit;
	font-weight: bolder
}
code, kbd, samp {
	font-family: monospace, monospace;
	font-size: 1em
}
dfn {
	font-style: italic
}
mark {
	background-color: #ff0;
	color: #000
}
small {
	font-size: 80%
}
sub, sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline
}
sub {
	bottom: -.25em
}
sup {
	top: -.5em
}
audio, video {
	display: inline-block
}
audio:not([controls]) {
	display: none;
	height: 0
}
img {
	border-style: none
}
svg:not(:root) {
	overflow: hidden
}
button, input, optgroup, select, textarea {
	font-family: sans-serif;
	font-size: 100%;
	line-height: 1.15;
	margin: 0
}
button, input {
	overflow: visible
}
button, select {
	text-transform: none
}
[type=reset], [type=submit], button, html [type=button] {
	-webkit-appearance: button
}
[type=button]::-moz-focus-inner, [type=reset]::-moz-focus-inner, [type=submit]::-moz-focus-inner, button::-moz-focus-inner {
	border-style: none;
	padding: 0
}
[type=button]:-moz-focusring, [type=reset]:-moz-focusring, [type=submit]:-moz-focusring, button:-moz-focusring {
	outline: 1px dotted ButtonText
}
fieldset {
	border: 1px solid silver;
	margin: 0 2px;
	padding: .35em .625em .75em
}
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal
}
progress {
	display: inline-block;
	vertical-align: baseline
}
textarea {
	overflow: auto
}
[type=checkbox], [type=radio] {
	box-sizing: border-box;
	padding: 0
}
[type=number]::-webkit-inner-spin-button, [type=number]::-webkit-outer-spin-button {
	height: auto
}
[type=search] {
	-webkit-appearance: textfield;
	outline-offset: -2px
}
[type=search]::-webkit-search-cancel-button, [type=search]::-webkit-search-decoration {
	-webkit-appearance: none
}
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit
}
details, menu {
	display: block
}
summary {
	display: list-item
}
canvas {
	display: inline-block
}
template {
	display: none
}
[hidden] {
	display: none
}
html {
	box-sizing: border-box
}

iframe, object {
	outline: 0;
	width: 100%;
}
*, ::after, ::before {
	box-sizing: inherit
}
a {
	color: #000000;
	cursor: pointer;
}
a:active, a:focus, a:hover {
	color: #252525;
	text-decoration: none
}
.breadcrumbs {
	margin: 25px 0 25px;
}
.breadcrumbs .main-butt{
    background: #2e55b8;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
	display: inline-block;
}
.breadcrumbs .main-butt:hover{
	background: #ffbd36;
}

.breadcrumbs i {
	color: #000000;
}
.clearfix::after {
	clear: both;
	content: '';
	display: table
}
.container {
	max-width: 1180px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	width: 100%
}
.hide-text {
	overflow: hidden;
	padding: 0;
	text-indent: 101%;
	white-space: nowrap
}
.visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px
}
.game-list {
	font-size: 0
}
.game-item {
	font-size: 12px;
    display: inline-block;
    width: 262px;
    margin: 0 1%;
    margin-bottom: 20px;
    box-sizing: border-box;
    vertical-align: top;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 291px;
    overflow: hidden;
}

.related-game .game-item {
    width: 235px;
}

.game-item img {
	width: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.game-item img:hover {
	opacity: .9
}
.game-item .game-meta {
	padding: 10px
}
.game-item .game-meta p {
	font-size: 14px;
	line-height: 1.4em;
	margin-bottom: .4em;
	color: #000000
}
.game-item .game-meta p:hover {
	text-decoration: none;
}
.game-item a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #fff;
}
.game-item a:hover {
	transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
.game-item a h3 {
	display: block;
    padding: 8px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    color: #333;
}
.sidebar h3 {
    margin: 0px 0 -10px 0;
    padding: 10px 10px;
    position: relative;
    display: block;
    font-size: 20px;
    border-radius: 5px;
}
.sidebar nav li {
    display: inline-block;
    box-sizing: border-box;
    text-decoration: none;
    box-sizing: border-box;
}
.sidebar nav li:nth-child(3n) {
	margin-right: 0
}
.sidebar nav li img {
	width: 100%
}
.sidebar nav li .tooltip {
	display: block;
	position: relative;
	text-decoration: none
}
.sidebar nav li .tooltip:hover img {
	opacity: .9
}
.sidebar nav li .tooltip:hover:after {
	background: #333;
	background: rgba(239, 108, 0, .9);
	border-radius: 5px;
	top: 50%;
	-webkit-transform: translateY(-50%);
	transform: translateY(-50%);
	color: #fff;
	content: attr(title);
	text-align: center;
	left: 50%;
	margin-left: -40px;
	padding: 5px;
	position: absolute;
	width: 80px;
	z-index: 98
}
.sidebar .box-content {
	padding-bottom: 10px
}
.sidebar .btn-mobile-nav-close {
	display: none
}
header {
	margin-top: 10px;
}
header .top-logo {

}
.logo-wrap {
	display: flex;
    align-items: center;
    gap: 10px;
}
.logo-wrap img {
	width: 44px;
}
.logo-wrap span {
	font-size: 18px;
}

header .top-logo img {
	width: 90px;
}
@media only screen and (max-width:767px) {
	header .top-logo img {

	}
	.game-item {
		width: 48%;
		margin: 1%;
	}
	.related-game .game-item {
		width: 47%;
		margin: 1%;
	}
}

.top-nav {
    transition: all 0.3s ease; /* Плавный переход */
}

.top-nav .nav-list {
	list-style: none;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    transition: all 0.3s ease; /* Плавный переход */
}
.top-nav .nav-list>div {
    background: #ffab0063!important;
}
.top-nav .nav-list div {
	display: flex;
    align-items: center;
    margin: 5px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 16px;
    background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.top-nav .nav-list div img {
	width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 5px;
}
.top-nav .nav-list div span {
	font-weight: bold;
}
.top-nav .nav-list div a {
	font-size: 16px;
	font-weight: bold;
}
.top-nav .btn-mobile-nav {
	display: none
}
.content {
	display: inline;
	float: left;
	width: 70%;
	margin: 0 2% 0 0
}
.sidebar {
	display: inline;
	float: left;
	width: 28%;
	margin: 41px 0;
}

.container .row {
	display: flex;
}

/* Стили для страниц игр */
@media screen and (min-width: 769px) {
    .row:has(.sidebar) .content {
        width: 68%;
        margin-right: 2%;
    }
    
    .row:has(.sidebar) .sidebar {
        width: 30%;
        margin: 0;
		margin-left: 20px;
    }
}
.row::after {
	clear: both;
	content: '';
	display: table
}
.box {
    margin: 15px 0 15px;
    background: #fff;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 0 3px rgba(0, 0, 0, .3);
}
.box .box-content {
	padding: 20px;
	margin: 0
}
.box p.box-content {
	text-align: justify
}
.box p.box-content a {
	color: inherit;
	text-decoration: underline;
	color: #466fd5;
}
.box h1 {
	margin: 0;
	padding: 30px 30px 10px;
	position: relative;
	display: block;
	font-size: 23px;
}

h2 {
	margin: 0 0 15px;
    padding: 10px 20px;
    position: relative;
    display: block;
    font-size: 16px;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0 0 3px rgba(0, 0, 0, .3);
}
.box h3 {
	margin: 0;
	padding: 10px 20px;
	position: relative;
	display: block;
	font-size: 16px;
	border-radius: 2px 2px 0 0;
}
.box .ya-share2 {
	position: absolute;
	top: 7px;
	right: 7px
}
.share2-wrap {
	display: flex;
	justify-content: center;
	align-items: center;
}
.box p.h404 {
	text-align: center
}
.box p.h404 span {
	font-size: 72px;
	font-weight: 700;
	color: #ef6c00;
	line-height: 3em
}
.box .game-wrap {
	background: #1f1f1f url(../images/preloader.gif) 50% 50% no-repeat;
	min-height: 100px
}
#game, #game iframe {
	display: block;
	margin: 0 auto
}
#game-select {
	margin: 15px auto 0;
	display: block
}
.no-flash {
	width: 100%;
	text-align: center;
	padding: 100px 0;
	background: #fff
}
.top-adv {
	padding: 4px;
	border-radius: 2px;
	box-shadow: 0 1px 1px rgba(230, 81, 0, .1);
	background: #fff;
	margin-bottom: 20px
}
.bottom-adv {
	margin: 0 0 20px;
	width: 100%
}
footer {
	margin-bottom: 30px;
	border-radius: 5px;
	background: #ffffff;
	padding: 10px 0;
	height: 37px;
	box-shadow: 0 0 3px rgba(0, 0, 0, .3)
}
footer .container {
	position: relative
}
footer p {
	padding: 0 20px;
	margin: 0
}
footer .counter {
	width: 88px;
	height: 31px;
	position: absolute;
	right: 20px;
	top: -7px;
	overflow: hidden
}
.sidebar-adv {
	max-height: 270px;
	margin: 0 0 20px;
	background: #fff;
	border-radius: 2px;
	box-shadow: 0 1px 1px rgba(230, 81, 0, .1);
	position: relative;
	padding: 10px 5px;
	overflow: hidden
}
.sidebar-adv-wrap {
	max-width: 300px;
	max-height: 250px;
	margin: auto
}
@media only screen and (max-width:767px) {
	.game-item .game-meta p {
		font-size: 12px
	}
	.sidebar nav li {
		width: 17.6%
	}
	.sidebar nav li:nth-child(3n) {
		margin-right: 3%
	}
	.sidebar nav li:nth-child(5n) {
		margin-right: 0
	}
	.sidebar nav {
		padding-top: 60px
	}
	.sidebar.active {
		display: block
	}
	.sidebar .btn-mobile-nav-close {
		display: block;
		width: 30px;
		height: 30px;
		top: 12px;
		right: 20px;
		position: absolute
	}
	.sidebar .btn-mobile-nav-close span {
		display: block;
		position: absolute;
		top: 16px;
		height: 0
	}
	.sidebar .btn-mobile-nav-close span:after, .sidebar .btn-mobile-nav-close span:before {
		content: "";
		display: block;
		position: absolute;
		top: 0;
		height: 5px;
		width: 30px;
		background: #fff;
		-webkit-transform: rotate(45deg);
		transform: rotate(45deg)
	}
	.sidebar .btn-mobile-nav-close span:after {
		-webkit-transform: rotate(-45deg);
		transform: rotate(-45deg)
	}
	header .top-nav .btn-mobile-nav {
		display: block;
		width: 30px;
		height: 30px;
		top: 0;
		right: 20px;
		position: absolute
	}
	header .top-nav .btn-mobile-nav span {
		display: block;
		position: absolute;
		top: 16px;
		height: 5px;
		width: 30px;
		background: #fff
	}
	header .top-nav .btn-mobile-nav span:after, header .top-nav .btn-mobile-nav span:before {
		content: "";
		display: block;
		position: absolute;
		top: -8px;
		height: 5px;
		width: 30px;
		background: #fff
	}
	header .top-nav .btn-mobile-nav span:after {
		top: 8px
	}
	.content {
		width: 100%;
		margin-right: 0
	}
	.sidebar {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		display: none
	}
	.sidebar h3 {
		display: none
	}
	.sidebar .box {
		background: rgba(0, 0, 0, .85);
		border-radius: 0
	}
	.box .game-wrap {
		overflow: hidden
	}
	.sidebar-adv {
		display: none
	}
}
#game iframe.fixed, #game.fixed {
    background: #000;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}
#game.fixed iframe {
    height: inherit;
}
#close-fullscreen, #fullscreen {
	cursor: pointer;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase
}
#close-fullscreen {
	padding: 0 20px;
    border-radius: 20px;
    margin: 0;
    display: none;
    position: fixed;
    right: 0;
    top: 10px;
    z-index: 1001;
    height: 36px;
    width: fit-content;
    color: #fff;
    background: #ef6c00;
    border: 0;
    outline: 0;
}
#close-fullscreen.active {
	display: block
}
#fullscreen, #fullscreen-btn {
    border-radius: 5px;
    background-color: #2e55b8;
    color: #fff;
    display: block;
    margin: 20px auto;
    border: 0;
    padding: 10px 30px;
    outline: 0;
	cursor: pointer;
}
#fullscreen:hover, #fullscreen-btn:hover {
	background-color: #466fd5;
}
#fullscreen h2, #fullscreen-btn h2 {
    font-size: 20px;
    margin: 0px;
    background: none;
    box-shadow: none;
	
}
.card-header {
	color: #fff;
	background: #466fd578;
	margin: 0;
	padding: 10px 20px;
	position: relative;
	display: block;
	font-size: 15px;
	border-radius: 5px;
	padding: 0;
	overflow: hidden;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap
}
.card-header a {
	color: #fff;
	background: #4c73d6;
	padding: 10px 20px;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-align: center;
	align-items: center;
	text-decoration: none;
	border-right: solid 1px rgba(0, 0, 0, .1)
}
.card-header a.active {
	background: rgba(0, 0, 0, .3)
}
.card-header a:hover {
	background: rgba(0, 0, 0, .1)
}


/*mobile menu*/
.slide_container {
	width: 100%;
	z-index: 999;
	margin: 10px 0;
}
 
#menu {
 padding: 50px 0;
 background: #fff;
 display: none;
 border-radius: 15px;
}
 
#menu ul {
 overflow: hidden;
 margin: 0 auto;
 padding: 0;
 max-width: 800px;
 width: 100%;
}
 
#menu li {
 float: left;
 padding: 0;
 width: 20%;
 list-style: none;
}
 
#menu li a {
 display: block;
 margin: 0 5%;
 padding: 20px 0;
 border: solid 1px #eaeaea;
 background: #fff;
 text-align: center;
 text-decoration: none;
 font-size: 18px;
}
#menu li span {
    display: block;
    margin: 0 5%;
    padding: 20px 0;
    background: #eaeaea;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
}

#menu li a:active {
 border: solid 1px #466fd5;
 color: #466fd5;
}
 
#btn {
	margin: 0 auto;
	padding: 15px 0;
	border-radius: 15px;
	background: #aa95eb;
	cursor: pointer;
	text-align: center;
}
 
#btn span {
    font-size: 18px;
    font-weight: bold;
}
 
@media screen and (max-width: 480px) {
 #menu {
padding: 10% 5%;
 }
 #menu li {
 width: 100%;
 }
 #menu li a {
 border-top: none;
 }
 
 #menu li:first-child a {
 border-top: solid 1px #eaeaea;
 }
}


/*--- Рейтинг - Звездами ---*/
.rating, .unit-rating { width: 115px; height: 23px; }
.rating { font-size: 11px; }
.unit-rating, .unit-rating li a:hover, .unit-rating li.current-rating {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAACKBAMAAAAnGmX8AAAALVBMVEX///+RkZH+12L/w0//7cP/5aj+24X/+u7/9d2tra3Jycne3t7/zGn5+fnx8fHkdmbhAAACEUlEQVRIx+2UuUsDQRTGF+8bp4yiyKDRUhiNFikW73LxwsIiRETL4F2KilpYmFYQklIE0VYbIQQsY2kjWkbwfzDjzvhm3rzCJiCSr1p+SfY7HsT7w2rYp3ltQPO6HpqPDdA8GSVxPeckr+HcJ205T1D8gHPSeJbzPopz7hrvnk4sSL4wcboLdIpb6v0ZxuY+LGB/HRY2ubn2MeB1a5ukxtEUGkEp4bSVchtvhLzfORaE/NV7VCDnlFzJPSKPJmEcczpffhg4x13zvB2nVxXvDdP2oKNHU+FOAyi+r/xRgWn9sOVVRKv8/ycJmlc/0nx8iOYrMRLXC5EibYUIKN4iBGl8KMQoaSsEaZwTIo7Z3tHkoihpdX7mBOiysJSHhJYCWMDExho1JjfXPgP8ZG2T0zhub7SjecJpK+U23gz5iHMsHRJpLuTDzmoqjnNEJRXTbByTv/Gd48YD+WHgHHddtsMnrhb5MO0gih/b/7ZfQQWWA+WPCizph22vojKr7Y3mTec0L7bT/K6T5ukIbctYgbRlLEPxRsbOSVvGuimeZYw0ZiVh9vpwfyX5xfXDJ1CJDHVAQlOQtvXOxMYazSa/9UDvGqIOrWmNI/ZxXjS/xCOrjHjSZ3g7Wg1CmsZZ6Eq9P1LAR1RCXDaOpKGtOV2mGUaD48pGRXliFL8jTNuF4odB2tKoQDaj/FGBG/3w4f0LfQHtX5JXyZBVcwAAAABJRU5ErkJggg==);
	-webkit-background-size: 23px auto; background-size:  23px auto;
}
.unit-rating {
	list-style: none;
	margin: 0; padding: 0;
	position: relative;
	background-position: 0 -46px;
}
.unit-rating li {
	text-indent: -90000px;
	padding: 0; margin: 0;
	float: left;
}
.unit-rating li a {
	display: block;
	width: 23px; height: 23px;
	text-decoration: none;
	border: 0 none !important;
	text-indent: -9000px;
	z-index: 17;
	position: absolute;
	padding: 0;
}
.unit-rating li a:hover {
	background-position: 0 -23px;
	z-index: 2;
	left: 0;
}
.unit-rating a.r1-unit { left: 0; }
.unit-rating a.r1-unit:hover { width: 23px; }
.unit-rating a.r2-unit { left: 23px; }
.unit-rating a.r2-unit:hover { width: 46px; }
.unit-rating a.r3-unit { left: 46px; }
.unit-rating a.r3-unit:hover { width: 69px; }
.unit-rating a.r4-unit { left: 69px; }
.unit-rating a.r4-unit:hover { width: 92px; }
.unit-rating a.r5-unit { left: 92px; }
.unit-rating a.r5-unit:hover { width: 115px; }
.unit-rating li.current-rating {
	background-position: 0 0;
	position: absolute;
	height: 23px;
	display: block;
	text-indent: -9000px;
	z-index: 1;
	padding: 0px;
}

.ratingplus {
	color: #70bb39;
}

.ratingminus {
	color: red;
}

.ratingzero {
	color: #6c838e;
}

/* Новое мобильное меню */
.mobile-menu-container {
    position: relative;
    z-index: 1000;
    display: none; /* По умолчанию скрыто */
    transition: all 0.3s ease; /* Плавный переход */
}

.mobile-menu-btn {
    margin: 0 auto;
    padding: 15px 20px;
    border-radius: 15px;
    background: #aa95eb;
    cursor: pointer;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #9a85db;
    transform: translateY(-2px);
}

.mobile-menu-btn span {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hamburger-icon span {
    width: 20px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease;
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
}

.mobile-menu.active {
    bottom: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    background: #fff;
    border-radius: 20px 20px 0 0;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.close-menu {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-menu:hover {
    background: #f5f5f5;
    color: #333;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.mobile-menu-item:hover {
    background-color: #f8f8f8;
}

.mobile-menu-item.active {
    background-color: #f0f0f0;
}

.mobile-menu-item a,
.mobile-menu-item span {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    gap: 15px;
}

.mobile-menu-item img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.mobile-menu-item span {
    font-weight: 500;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Анимация для кнопки при открытом меню */
.mobile-menu-btn.menu-open .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.menu-open .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.menu-open .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Адаптивность */
@media screen and (max-width: 768px) {
    /* Скрываем десктопную навигацию на мобильных */
    .top-nav {
        display: none;
    }
    
    /* Показываем мобильное меню на мобильных */
    .mobile-menu-container {
        display: block;
    }
    
    .mobile-menu {
        max-height: 70vh;
    }
    
    .mobile-menu-item a,
    .mobile-menu-item span {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .mobile-menu-item img {
        width: 35px;
        height: 35px;
    }
}

@media screen and (max-width: 480px) {
    .mobile-menu {
        max-height: 60vh;
    }
    
    .mobile-menu-header {
        padding: 15px 20px;
    }
    
    .mobile-menu-header h3 {
        font-size: 18px;
    }
    
    .mobile-menu-item a,
    .mobile-menu-item span {
        padding: 15px 20px;
        font-size: 14px;
    }
    
    .mobile-menu-item img {
        width: 30px;
        height: 30px;
    }
}

/* Скрываем мобильное меню на десктопе */
@media screen and (min-width: 769px) {
    .mobile-menu-container {
        display: none;
    }
}

/* Специальные стили для мобильного меню на страницах игр */
.mobile-menu-container {
    margin: 20px 0;
}

/* На страницах игр мобильное меню всегда видимо на мобильных устройствах */
@media screen and (max-width: 768px) {
    .mobile-menu-container {
        margin: 15px 0;
    }
}

/* Стили для sidebar с играми на страницах игр */
.sidebar-games-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.sidebar-game-item {
    margin: 0;
    padding: 0;
}

.sidebar-game-item a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.sidebar-game-item a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.sidebar-game-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.sidebar-game-item .game-title {
    display: block;
    padding: 8px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    color: #333;
}

/* Адаптивность для sidebar */
@media screen and (max-width: 1200px) {
    .sidebar-games-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .sidebar-game-item .game-title {
        font-size: 11px;
        padding: 6px;
    }
}

@media screen and (max-width: 768px) {
    .sidebar {
        display: none; /* Скрываем sidebar на мобильных */
    }
}