ins.adsbygoogle[data-ad-status='unfilled'] {
  display: none !important;
}
:root {
  --col1: #46bef9;
  --col2: #0092d9;
  --col3: #ffc91b;
  --col4: #222222;
  --br: 10px;
}
@font-face {
font-family: Myriad;
src: url('images/myriad.ttf');
}
html {
  min-height: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}
body {
  min-height: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--col1);
  font-family: Myriad;
  margin: 0;
  padding: 0;
  text-align: center;
  box-sizing: border-box;
}
div {
  box-sizing: border-box;
}
body::-webkit-scrollbar {
background: var(--col1);
}
body::-webkit-scrollbar-thumb {
background: var(--col3);
}
p {
margin: 0;
}
img {
border: 0;
}
a {
color: var(--col2);
text-decoration: none;
}
a:hover {
color: var(--col2);
text-decoration: none;
filter: contrast(130%);
}
h1, h2, h3, h4, h5, h6 {
font-family: Myriad;
font-size: 30px;
color: var(--col2);
font-weight: normal;
margin: 5px 0;
}

.p18 {font-size: 18px !important;}


#top {
  background-color: var(--col2);
  border-radius: 0 0 25px 25px;
  height: 70px;
  width: 100%;
  margin: 0 0 10px 0;
  flex-shrink: 0;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  z-index: 100;
}
#butmen {
  display: none;
  width: 60px; height: 60px;
  background: url('images/menu.png') no-repeat;
  position: absolute;
  top: 5px; left: 5px;
  z-index: 3;
}
#butmein {
  display: none;
  width: 60px; height: 60px;
  background: url('images/menu.png') no-repeat;
  z-index: 300;
  position: relative;
  flex-shrink: 0;
}
.logo {
  display: block;
  width: 210px; height: 41px;
  background: url('images/logo.png') no-repeat;
  margin: 0 0 0 10px;
  flex-shrink: 0;
}
.minilogo {
  display: block;
  width: 120px; height: 23px;
  background: url('images/logo.png') no-repeat;
  background-size: cover;
  margin: 10px auto;
}
.kez {
  width: 64px; height: 64px;
  flex-shrink: 0;
}
.kez img {
  width: 64px; height: 64px;
  border-radius: 20px;
}

#bottom {
  background-color: var(--col2);
  border-radius: 25px 25px 0 0;
  height: 40px;
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
  align-items: center;
  padding: 5px 5px 0 5px;
  margin-top: auto;
  flex-shrink: 0;
}
#bottom a {
  text-transform: uppercase;
  font-size: 14px;
  color: #fff;
}
.games, .games2 {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}
.games a, .games2 a {
  margin: 5px;
  position: relative;
}
.games a img {
  border: 3px solid var(--col2);
  width: 145px; height: 145px;
  border-radius: 20px;
}
/* Ribbon: natural PNG size, not affected by .games a img sizing */
.games a.game-tile-new .game-new-label {
  position: absolute;
  top: -6px;
  left: -6px;
  z-index: 3;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  border: none;
  border-radius: 0;
  pointer-events: none;
  display: block;
  object-fit: none;
  flex-shrink: 0;
}
/* Same frame as other tiles (3px var(--col2) from .games a img) */
.games a.game-tile-new .game-tile-thumb {
  border: 3px solid var(--col2);
  width: 145px;
  height: 145px;
  border-radius: 20px;
}

@font-face {
  font-family: "Starlight";
  src: url("images/starlight.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

.game-upcoming-tile {
  margin: 5px;
  position: relative;
  width: 145px;
  height: 145px;
  border-radius: 20px;
  border: 3px solid var(--col2);
  box-sizing: border-box;
  background: url("images/upcoming.png") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: "Starlight", Arial, Helvetica, sans-serif;
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.game-upcoming-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px;
  width: 100%;
  box-sizing: border-box;
}
.game-upcoming-l1 {
  font-size: 24px;
  line-height: 1;
  font-weight: bold;
  letter-spacing: 0.02em;
}
.game-upcoming-l2 {
  font-size: 18px;
  line-height: 1.1;
  opacity: 0.95;
  margin: 8px 0;
}
.game-upcoming-countdown {
  font-size: 32px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.games a.locked {
  cursor: pointer;
}
.games a.locked .lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  box-sizing: border-box;
  z-index: 10;
}
.games a.locked .lock-overlay span {
  display: block;
  line-height: 1.3;
}
.game-lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}
.game-lock-content {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  margin: 20px;
}
.game-lock-content h2 {
  color: #000;
  font-size: 28px;
  margin-bottom: 20px;
}
.game-lock-content p {
  color: #333;
  font-size: 18px;
  line-height: 1.5;
}
.game-lock-content .button.home {
  display: inline-block;
  margin: 0 auto;
}
.games2 a img {
  border: 3px solid #fff;
  width: 200px; height: 200px;
  border-radius: 20px;
}
.minigames {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}
.minigames a {
  margin: 2px;
}
.minigames a img {
  border: 2px solid #fff;
  width: 56px; height: 56px;
  border-radius: 15px;
}
.white {
  width: 100%;
  max-width: 900px;
  background-color: #fff;
  border-radius: 25px;
  padding: 10px 15px;
  margin: 0 0 5px 0;
}
.ad {
    float: left;
    margin: -5px 15px 5px 0;
    border: 1px solid #f1f1f1;
}
.ad ins {
  width: 336px;
  height: 290px;
}
.ad2 {
    width: 100%;
    max-height: 250px;
    float: left;
    margin: 5px 0 25px 0;
}
.ad p, .ad2 p, .ad3 p {
  color: #000;
  font-size: 13px;
  text-transform: uppercase;
  text-align: center;
}
.ad3 {
    border: none;
}
.ad3 ins {
  width: 336px;
  height: 290px;
}
.text {
  text-align: justify;
  font-size: 17px;
  line-height: 140%;
}
.text img {
  width: 130px; height: auto;
  float: right;
  margin: 0 0 5px 10px;
  border-radius: 15px;
}
.block1 {
  width: 100%;
  min-height: 300px;
}
.ph {
  font-size: 15px;
  color: #000;
  text-transform: uppercase;
  margin: 10px 0 0 0;
}
.phl {
  font-size: 16px;
  color: #000;
  text-transform: uppercase;
  margin: 15px 0 10px 0;
  text-align: left;
}
.hb {
  text-transform: uppercase;
  font-size: 22px;
  text-align: left;
  margin: 15px 0 10px 0;
}
.bigp {
  font-size: 24px;
  color: #999;
  margin: 10px 0;
}
.bigp font {
  color: #000;
  font-weight: bold;
}
.tags {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  align-items: center;
}
.tagsbig {
  width: 95%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  align-items: center;
}
.tags a {
  display: block;
  border: 2px solid var(--col1);
  border-radius: 0 20px 20px 20px;
  padding: 8px 20px;
  text-transform: uppercase;
  font-size: 18px;
  margin: 5px;
  color: var(--col1);
  white-space: nowrap;
  font-weight: bold;
}
.tagsbig a {
  display: block;
  border: 2px solid var(--col1);
  border-radius: 20px;
  padding: 10px 40px;
  text-transform: uppercase;
  font-size: 18px;
  margin: 5px;
  color: var(--col1);
  white-space: nowrap;
  font-weight: bold;
  background: #fff;
}
.smaller {
  justify-content: flex-start;
  height: 40px;
  overflow: hidden;
}
.smaller a {
  padding: 6px 16px !important;
  font-size: 14px !important;
}
.tagslong {
  width: 95%;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
}
.tagslong a {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  width: 280px;
  max-width: 900px;
  background: #fff;
  border-radius: 15px;
  padding: 0 20px;
  margin: 5px;
}
.tagslong a div:nth-child(1) {
  color: var(--col3);
  font-size: 24px;
  font-weight: bold;
  text-align: left;
  flex-shrink: 0;
}
.tagslong a div:nth-child(3) {
  color: #444;
  font-size: 14px;
  height: 35px;
  overflow: hidden;
  text-align: justify;
  margin: 0 10px;
}
.tagslong a div:nth-child(2) {
  color: var(--col1);
  font-size: 30px;
  font-weight: bold;
  flex-shrink: 0;
  text-align: right;
  width: 40px;
}

.block2 {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
}
.screen {
  width: 350px; height: 250px;
  border-radius: 25px;
}
.screen_small {
  width: 175px; height: 125px;
  border-radius: 25px;
  margin: 0 0 10px 0;
}
.fle {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-around;
  align-items: center;
}
.flevert {
  flex-flow: column nowrap !important;
}
.fleinfo {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  align-items: center;
}
.p10 {
  font-size: 10px;
}
.p16 {
  font-size: 16px;
}
.p18 {
  font-size: 18px;
}
.p20 {
  font-size: 20px;
}
.p22 {
  font-size: 22px;
}
.p24 {
  font-size: 24px;
}
.pblue {
  color: var(--col1) !important;
}
.pdarkblue {
  color: var(--col2) !important;
}
.pblack {
  color: #000 !important;
}
.info {
  max-width: 480px;
  width: 100%;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
}
.votes, .plays {
  width: 160px;
  height: 50px;
  padding: 0 0 0 60px;
  text-align: center;
  font-weight: bold;
}
.votes {
    background: url('images/votes.png') no-repeat;
}
.plays {
    background: url('images/plays.png') no-repeat;
}
.play {
  display: block;
  background: var(--col3);
  border-radius: 25px;
  width: 300px; height: 50px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 30px;
  text-transform: uppercase;
  font-weight: bold;
}
.play img {
  margin: 0 10px 0 0;
}
.play:hover {
  color: #fff;
}
.stars {
  width: 207px; height: 38px;
  background: url('images/stars_off.png') no-repeat;
  text-align: left;
  margin: 0 0 20px 0;
}
.stars div {
  height: 38px;
  background: url('images/stars.png') no-repeat;
}

#gameplay {
  background: #000;
  width: 100vw;
  flex: 1 1 auto;
  min-height: 100vh;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: flex-start;
}
#game {
  width: 100%; height: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
#game2 {
	display: grid;
	grid-template-rows: 1fr 1fr;
	height: 100vh; /* або 100% від контейнера */
	overflow: hidden;
}
#game3 {
	width: 100%;
	height: 100svh;
	border-collapse: collapse;
	table-layout: fixed;
}

#game3 #tr1 {
	height: 65vh;
}
#game3 #tr2 {
	height: 35vh;
	min-height: 30vh;
}

#game3 td {
  border: none;
	padding: 0;
	margin: 0;
	border-spacing: 0;
	vertical-align: top;
	height: 100%;
}
#game3 #tr2 td {
	min-height: 0;
	overflow: hidden;
}
#iframe {
  height: 100%;
}


.menu {
  width: 140px; height: 100%;
  background: var(--col2);
  text-align: center;
  overflow-y: scroll;
  overflow-x: hidden;
  flex-shrink: 0;
}
.menu2 {
  width: 80px; height: 100vh !important;
  background: var(--col2);
  text-align: center;
  overflow: hidden;
  flex-shrink: 0;
  padding-top: 5px;
}
.menu::-webkit-scrollbar {
background: var(--col1);
width: 5px;
}
.menu::-webkit-scrollbar-thumb {
background: var(--col3);
}
#hidemenu {
  display: block;
  width: 30px; height: 50px;
  background: url('images/hide.png') 30% 50% var(--col3) no-repeat;
  border-radius: 0 15px 15px 0;
  position: absolute;
  left: 140px; top: 10px;
}
#hidemenu-2 {
  display: block;
  width: 30px; height: 50px;
  background: url('images/hide.png') 30% 50% var(--col3) no-repeat;
  border-radius: 0 15px 15px 0;
  position: absolute;
  left: 80px; top: 10px;
}
#hidemenu2 {
  display: block;
  width: 50px; height: 30px;
  background: url('images/hide2.png') 50% 50% var(--col3) no-repeat;
  border-radius: 15px 15px 0 0;
  position: absolute;
  right: 50%;
  margin: -30px -65px 0 0;
  z-index: 1000;
}
#hidemenu3 {
  display: none;
  width: 50px; height: 30px;
  background: url('images/hide-show.png') 50% 50% var(--col3) no-repeat;
  border-radius: 15px 15px 0 0;
  position: absolute;
  right: 50%; bottom: 0;
  margin: -30px -25px 0 0;
  z-index: 1000;
}
.gamerate {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
.gamerate img {
  width: 120px; height: 120px;
  border-radius: 25px;
  border: 3px solid var(--col1);
}
.gamerate2 img {
  width: 60px; height: 60px;
  border-radius: 25px;
  border: 3px solid var(--col1);
}
.star {
  width: 100%; height: 63px;
  background: url('images/star.png') 50% 0 no-repeat;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  margin: 4px 0 0 0;
}
.star p {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}
.ph2 {
  color: #fff;
  font-size: 20px;
  margin: 10px 0;
}
.ph3 {
  color: #fff;
  font-size: 15px;
  margin: 10px 0;
  text-transform: uppercase;
}
.button {
  display: block;
  width: 56px; height: 56px;
  border-radius: 24px;
  border: 2px solid #fff;
  background-color: var(--col1);
  margin: 2px;
}
.like {
  background: var(--col1) url('images/but_like.png') 50% 50% no-repeat;
}
.dislike {
  background: var(--col1) url('images/but_dislike.png') 50% 50% no-repeat;
}
.home {
  background: var(--col1) url('images/but_home.png') 50% 50% no-repeat;
}
.reload {
  background: var(--col1) url('images/but_reload.png') 50% 50% no-repeat;
}
.like_on {
  background: var(--col1) url('images/but_like_on.png') 50% 50% no-repeat;
}
.dislike_on {
  background: var(--col1) url('images/but_dislike_on.png') 50% 50% no-repeat;
}
.fav {
  background: var(--col1) url('images/but_fav.png') 50% 50% no-repeat;
}
.fav_on {
  background: var(--col1) url('images/but_fav_on.png') 50% 50% no-repeat;
}
.favorites-empty {
  color: #fff !important;
  font-size: 18px;
  line-height: 1.55;
  padding: 16px 22px 28px;
  margin: 0 auto;
  max-width: 520px;
  text-align: center;
  box-sizing: border-box;
}
.favorites-page .games {
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
}
.gamebuttons {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  margin: 3px 0;
}
#tripple {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: flex-start;
}
.moreleft {
  width: 150px;
  margin: 0 10px 0 0;
}
.moreright {
  width: 150px;
  margin: 0 0 0 10px;
}
#double {
  width: 96%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: flex-start;
}
.gamesbig {
  max-width: 900px;
}
.gamesbig > div {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: flex-start;
  background: #fff;
  border-radius: 15px;
  padding: 10px;
  margin: 0 0 10px 0;
}
.gamesbig div img {
  border-radius: 15px;
  width: 255px; height: auto;
  margin: 0 10px 0 0;
}
.detra {
  width: 80px;
  flex-shrink: 0;
  font-weight: bold;
}
.desga {
  height: 105px;
  overflow: hidden;
  font-size: 15px;
  color: #444;
  margin: 10px 0;
  text-align: justify;
}
.detce {
  text-align: left;
}
.sidemain {
  flex-shrink: 0;
  max-width: 330px;
  margin: 0 0 0 6px;
  justify-content: flex-start;
}
.hma {
  color: #fff !important;
  text-transform: uppercase;
  text-align: left;
  font-size: 26px;
  width: 100%;
}
.hmac {
  color: #fff !important;
  text-transform: uppercase;
  text-align: center;
  font-size: 32px;
  width: 100%;
}
.minu {
  margin-bottom: 0;
}
.texdiv {
  padding: 10px;
  width: 96%;
  color: var(--col4);
}
#mein {
  width: 60%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  align-items: center;
}
#mein a {
  color: #fff;
  text-transform: uppercase;
  font-size: 18px;
}
#mein a:hover {
  color: var(--col3);
}

#popup {
	display: none;
	position: fixed;
	left: 0; top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	flex-flow: row wrap;
	justify-content: center;
	align-items: center;
	z-index: 100;
}
#apprate {
	width: 310px;
	height: 246px;
	background: url('images/apprate.png?t=1')  no-repeat;
	display: flex;
	flex-flow: column nowrap;
	justify-content: space-between;
	align-items: center;
}
#apprate img {
	margin: 0 0 -5px 0;
}
#apprate2 {
	width: 310px;
	background-color: #fff;
	display: flex;
	flex-flow: column nowrap;
	justify-content: flex-start;
	align-items: center;
  border-radius: 25px;
  padding: 10px 10px 0 10px;
}
.pr {
	font-size: 24px;
	color: #111;
	line-height: 100%;
	margin: 20px 0 0 0;
}
.no {
	color: #999;
	font-size: 14px;
	margin: 0 0 15px 25px;
	width: 100%;
	text-align: left;
	position: relative;
	z-index: 9;
}
.no:hover {
	text-decoration: underline;
}
.rghost {
	display: block;
	width: 310px; height: 240px;
	position: absolute;
}
.bab {
	display: none;
	text-transform: uppercase;
	font-size: 14px;
	width: 100%;
	padding: 10px;
  color: #fff;
}
#loading {
position: fixed;
width: 100vw; height: 100vh;
top: 0; left: 0;
z-index: 1000;
font-size: 30px;
display: flex;
flex-flow: row wrap;
justify-content: center;
align-items: center;
background: var(--col2);
color: #fff;
}
.bigban {
  width: 100%;
  margin: 10px 0;
  color: #fff;
}
.but {
  display: block;
  background: var(--col3);
  border-radius: 25px;
  height: 50px;
  padding: 0 50px;
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 22px;
  text-transform: uppercase;
  font-weight: bold;
}
.butgrey {
  background: #9b9b9b !important;
}
#preplay {
  width: 100%;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  box-sizing: border-box;
  background-color: var(--col1);
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: center;
  border-top: 5px solid var(--col3);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
#preplay::-webkit-scrollbar {
background: var(--col1);
width: 5px;
}
#preplay::-webkit-scrollbar-thumb {
background: var(--col3);
}
.pphotp {
  width: 90%;
  text-align: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: min-content;
}
@keyframes spin {
  100% {-webkit-transform: rotate(360deg); transform: rotate(360deg);}
}
.loader {
  width: 50px; height: 50px;
  border-radius: 30px;
  border: 7px dotted #3498db; /* заміни на var(--col1), якщо використовуєш CSS змінні */
  animation: spin 4s linear infinite;
  margin: auto;
}
.hide {
  display: none;
}
#swipe {
  display: none;
  position: absolute;
  left: 50%; top: 50%;
  z-index: 123;
  width: 200px; height: 240px;
  margin: -140px 0 0 -100px;
  background: url('images/swipe4.gif') no-repeat;
}
#more_games {
  display: none;
  position: absolute;
  left: 0; top: 0;
  width: 256px; height: 70px;
  background: url('images/more_games_big.gif') no-repeat;
  z-index: 2;
}

.gpmin {
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
}
.gpmin > div:nth-child(1) {
  width: 100%;
  height: 85svh;
}
.gpmin > div:nth-child(2) {
  width: 100%;
  height: 65px;
  overflow: hidden;
  position: fixed;
  bottom: 0;
}

.gpure {
  width: 100%;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: center;
  height: 100svh;
}
.gpure > div:nth-child(1) {
  width: 100%;
  height: calc(100svh - 67px);
  background-color: #000;
}
.gpure > div:nth-child(2) {
  width: 100%;
  height: 65px;
  overflow-y: hidden;
  position: fixed;
  bottom: 0;
}
.board {
  display: none;
  position: fixed; top: 0; left: 0;
  /* Above typical ad / consent overlays (often 1e5–1e6); onboarding must receive taps */
  z-index: 2147483000;
  width: 100%;
  height: 100vh;
  text-align: center;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: flex-end;
  background-size: contain;
  background-repeat: no-repeat;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#board1 {
  display: flex;
  background-size: contain;
  background-repeat: no-repeat;
}

.boardbut {
  width: 280px;
  height: 70px;
  border-radius: 40px;
  background: linear-gradient(135deg, #3ed000, #2ba500);
  border: 4px solid #fff;
  text-transform: uppercase;
  font-size: 32px;
  color: #fff;
  display: inline-flex;
  flex-flow: row nowrap;
  justify-content: center;
  align-items: center;
  margin: 0 0 130px 0;
  font-family: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.boardbut:hover {
  color: #fff;
}

.sortbar {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}
.sortbtn {
  background: var(--col2);
  color: #fff;
  border: none;
  padding: 14px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  letter-spacing: 0.5px;
}
.sortbtn:hover {
  opacity: 0.9;
}
.sortbtn.active {
  background: var(--col3);
  color: #fff;
}
.sbp {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 -15px 0;
}












/* 🖥️ Для горизонтальної (landscape) орієнтації */
@media (orientation: landscape) {
  .gpure {
    flex-flow: row nowrap; /* панелі поруч */
    height: 100svh;
  }

  .gpure > div:nth-child(1) {
    width: calc(100svw - 67px); /* зменшення ширини під панель */
    height: 100svh;
  }

  .gpure > div:nth-child(2) {
    width: 67px;
    height: 100svh;
    overflow: hidden;
    position: fixed;
    bottom: auto;
    right: 0;
  }
}




@media (max-width:1240px) {
  .moreright {display: none;}
}
@media (max-width:1085px) {
  .moreleft {display: none;}
  .sidemain {display: none;}
}
@media (max-width:890px) {
  #mein {
    display: none;
    position: absolute;
    top: 60px; left: 0;
    line-height: 300%;
    padding: 30px 15px 15px 15px;
    border-radius: 0 0 15px 0;
    background: var(--col2);
    width: 200px;
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 100;
  }
  #butmein {display: block;}
  .block2 {
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
  }
  .screen {
    margin: 0 0 15px 0;
  }
}
@media (max-width:600px) {
  .ad {
    float: none;
    width: 98%;
    margin: 0 0 20px 0;
    max-height: 280px;
  }
  .block1 {
    flex-flow: column nowrap;
    justify-content: center;
  }
  .text {
    line-height: 130%;
  }
  .screen {
    width: 96%; height: auto;
  }


  #maince {
    display: none;
  }
  .bab {display: block;}
  .ad {float: none;}
  .ad ins {width: 100%;}
}

/* --- Header rewards (always hamburger menu, no logo) --- */
#top.top-with-rewards {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 500;
  min-height: 70px;
  height: auto;
  padding: 6px 8px;
  /* Must not clip #mein dropdown; horizontal scroll lives on .kez-treasures */
  overflow: visible;
  /* Same timing/easing as #mein slide so corner and panel move together */
  transition: border-bottom-left-radius 0.38s cubic-bezier(0.32, 1.12, 0.45, 1);
}
/* Open menu: square BL corner (animates in sync with panel) */
#top.top-with-rewards.kez-nav-menu-open {
  border-bottom-left-radius: 0;
}
#top.top-with-rewards #butmein {
  display: block !important;
  position: relative;
  z-index: 10;
}
/* Menu z-index:1 — slides under hamburger / treasures / logo (solid bar on top) */
#top.top-with-rewards > .kez {
  position: relative;
  z-index: 10;
}
#top.top-with-rewards #mein {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  line-height: 300%;
  padding: 14px 15px 16px 15px;
  border-radius: 0 0 15px 0;
  background: var(--col2);
  width: 200px;
  flex-flow: column nowrap !important;
  flex-wrap: nowrap !important;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 1;
  box-shadow: 4px 12px 24px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  /* Same duration on both props = close doesn’t feel faster than the corner */
  transition: opacity 0.38s cubic-bezier(0.32, 1.12, 0.45, 1),
    transform 0.38s cubic-bezier(0.32, 1.12, 0.45, 1);
  transform-origin: 50% 0;
}
#top.top-with-rewards #mein.kez-mein--panel {
  display: flex !important;
}
#top.top-with-rewards #mein.kez-mein--panel.kez-mein--open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
  #top.top-with-rewards,
  #top.top-with-rewards #mein {
    transition-duration: 0.01ms;
  }
}
#top.top-with-rewards .kez-treasures {
  position: relative;
  z-index: 10;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 4px;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.kez-treasures {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.kez-treasures-inner {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.8vw, 14px);
  max-width: none;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}
.kez-treasure-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex-shrink: 0;
}
.kez-treasure-ico {
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}
.kez-treasure-pill {
  font-family: "Starlight", Arial, Helvetica, sans-serif;
  color: #fff;
  background: var(--col4);
  border: 2px solid var(--col2);
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.05;
}
@media (min-width: 640px) {
  /* Плашка заходить під іконку: лівий край плашки ≈ центр іконки; текст — з відступом від краю монети */
  .kez-treasure-item {
    --treasure-ico: clamp(44px, 6.5vw, 64px);
    flex-direction: row;
    align-items: center;
    gap: 0;
    position: relative;
  }
  .kez-treasure-ico {
    width: var(--treasure-ico);
    height: var(--treasure-ico);
    position: relative;
    z-index: 2;
  }
  .kez-treasure-pill {
    font-size: clamp(13px, 2.5vw, 22px);
    margin-left: calc(var(--treasure-ico) / -2);
    padding: 4px 12px 6px;
    padding-left: calc(var(--treasure-ico) * 0.52 + 10px);
    position: relative;
    z-index: 1;
  }
}
@media (max-width: 639px) {
  .kez-treasure-item {
    flex-direction: column;
    gap: 0;
    line-height: 0;
    align-items: center;
    position: relative;
  }
  .kez-treasure-ico {
    width: clamp(42px, 14vw, 58px);
    height: clamp(42px, 14vw, 58px);
    position: relative;
    z-index: 2;
  }
  .kez-treasure-pill {
    font-size: clamp(14px, 4.2vw, 20px);
    padding: 5px 12px 6px;
    margin-top: clamp(-12px, -2.8vw, -7px);
    line-height: 1.08;
    position: relative;
    z-index: 1;
  }
}

/* Reward balance toast — ~30% larger visuals; max 90vw; ~35% snappier motion */
#kez-reward-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2147481500;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  width: min(90vw, 546px);
  max-width: 90vw;
  padding: 0;
  box-sizing: border-box;
}
#kez-reward-toast.kez-reward-toast--visible {
  visibility: visible;
  opacity: 1;
}
#kez-reward-toast .kez-toast-inner {
  background: linear-gradient(165deg, #bfe8ff 0%, #8fd4ff 45%, #6bc4f8 100%);
  border-radius: 29px;
  padding: 21px 21px 23px;
  box-shadow:
    0 16px 52px rgba(15, 80, 140, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  border: 2px solid rgba(255, 255, 255, 0.55);
  position: relative;
  overflow: visible;
}
#kez-reward-toast .kez-toast-reason {
  margin: 0 0 14px;
  padding: 0 10px;
  font-family: Myriad, sans-serif;
  font-size: clamp(17px, 4.4vw, 22px);
  font-weight: 700;
  color: #0c2a4a;
  text-align: center;
  line-height: 1.3;
  min-height: 1.2em;
  opacity: 0;
  text-transform: uppercase;
}
#kez-reward-toast .kez-toast-reason--in {
  animation: kez-reason-in 0.46s ease-out forwards;
}
@keyframes kez-reason-in {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#kez-reward-toast .kez-toast-row {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 3.9vw, 23px);
  transition: opacity 0.3s ease;
}
#kez-reward-toast .kez-toast-row--conceal {
  opacity: 0;
}
#kez-reward-toast .kez-toast-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
}
#kez-reward-toast .kez-toast-ico-wrap {
  position: relative;
  display: block;
  flex-shrink: 0;
}
#kez-reward-toast .kez-toast-ico {
  display: block;
  position: relative;
  z-index: 1;
  width: 73px;
  height: 73px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 40, 90, 0.25));
  transform-origin: 50% 55%;
  flex-shrink: 0;
}
#kez-reward-toast .kez-toast-ico--reward-in {
  animation: kez-toast-ico-reward-in 0.78s cubic-bezier(0.34, 1.35, 0.64, 1) both;
}
@keyframes kez-toast-ico-reward-in {
  0% {
    transform: scale(10);
    opacity: 0;
  }
  55% {
    transform: scale(0.8);
    opacity: 1;
  }
  78% {
    transform: scale(1.08);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* +N above icon — subtle overlap vs 12px (between full above and “a bit on” art) */
#kez-reward-toast .kez-toast-delta {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 6px);
  z-index: 4;
  margin: 0;
  width: max-content;
  max-width: 120%;
  transform: translateX(-50%);
  font-family: "Starlight", Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 5.2vw, 26px);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}
#kez-reward-toast .kez-delta-coins {
  color: #16a34a;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.85),
    0 1px 3px rgba(0, 0, 0, 0.45);
}
#kez-reward-toast .kez-delta-rubies {
  color: #0284c7;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.85),
    0 1px 3px rgba(0, 0, 0, 0.4);
}
#kez-reward-toast .kez-delta-chests {
  color: #dc2626;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.85),
    0 1px 3px rgba(0, 0, 0, 0.45);
}
#kez-reward-toast .kez-toast-delta--in {
  animation: kez-delta-reward-in 0.59s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes kez-delta-reward-in {
  0% {
    transform: translate(-50%, -40px) scale(3.5);
    opacity: 0;
  }
  68% {
    transform: translate(-50%, 3px) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 0) scale(1);
    opacity: 1;
  }
}
#kez-reward-toast .kez-toast-pill {
  position: relative;
  z-index: 1;
  overflow: visible;
  margin-top: 14px;
  font-family: "Starlight", Arial, Helvetica, sans-serif;
  font-size: clamp(16px, 4.2vw, 23px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  background: linear-gradient(180deg, #1a2a44 0%, #0d1528 100%);
  border-radius: 999px;
  padding: 7px 16px 9px;
  min-width: 3.2em;
  text-align: center;
  line-height: 1.1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
/* Stacked number layers: new flies above old; old removed when new’s animation ends */
#kez-reward-toast .kez-toast-pill-num-stack {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 2.5em;
  min-height: 1.15em;
  vertical-align: middle;
  overflow: visible;
}
#kez-reward-toast .kez-toast-pill-num-layer {
  position: relative;
  display: inline-block;
  z-index: 0;
}
#kez-reward-toast .kez-toast-pill-num-layer--base {
  z-index: 0;
}
/* Flying “1” bits: random path into jittered landing; end at 1% scale then removed */
#kez-reward-toast .kez-toast-pill-one-fly {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  white-space: nowrap;
  pointer-events: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  --kez-one-start-x: 0px;
  --kez-one-start-y: -90px;
  --kez-one-end-x: 0px;
  --kez-one-end-y: 0px;
  transform: translate(calc(-50% + var(--kez-one-start-x)), calc(-50% + var(--kez-one-start-y)))
    scale(2.1);
  opacity: 1;
}
#kez-reward-toast .kez-toast-pill-one-fly--in {
  animation: kez-pill-one-fly 0.44s cubic-bezier(0.33, 1.1, 0.45, 1) forwards;
}
@keyframes kez-pill-one-fly {
  0% {
    transform: translate(calc(-50% + var(--kez-one-start-x)), calc(-50% + var(--kez-one-start-y)))
      scale(2.1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--kez-one-end-x)), calc(-50% + var(--kez-one-end-y)))
      scale(0.01);
    opacity: 0;
  }
}
#kez-reward-toast .kez-toast-sparkles {
  position: absolute;
  inset: -6px;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
#kez-reward-toast .kez-toast-spark {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 1px;
  opacity: 0;
  transform: rotate(45deg) scale(0.4);
  animation: kez-spark-twinkle 1.82s ease-in-out infinite;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.85);
}
#kez-reward-toast .kez-toast-glimmer {
  position: absolute;
  width: 29px;
  height: 29px;
  left: 50%;
  top: 22px;
  margin-left: -14.5px;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0.55;
  animation: kez-glimmer 2.6s ease-in-out infinite;
}
#kez-reward-toast.kez-reward-toast--in {
  animation: kez-toast-pop-in 0.94s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
#kez-reward-toast.kez-reward-toast--out {
  animation: kez-toast-pop-out 0.49s ease-in forwards;
}
@keyframes kez-toast-pop-in {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  58% {
    transform: translate(-50%, -50%) scale(1.06);
    opacity: 1;
  }
  78% {
    transform: translate(-50%, -50%) scale(0.97);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}
@keyframes kez-toast-pop-out {
  to {
    transform: translate(-50%, -48%) scale(0.92);
    opacity: 0;
  }
}
@keyframes kez-spark-twinkle {
  0%,
  100% {
    opacity: 0;
    transform: rotate(45deg) scale(0.35);
  }
  35% {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
  55% {
    opacity: 0.4;
    transform: rotate(45deg) scale(0.7);
  }
}
@keyframes kez-glimmer {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.15);
  }
}
.kez-treasure-ico.kez-ico-pulse,
#kez-reward-toast .kez-toast-ico.kez-ico-pulse {
  animation: kez-ico-pulse 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes kez-ico-pulse {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(1);
  }
}

#kez-rewards-intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147482000;
  background: rgba(0, 0, 0, 0.8);
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  justify-content: safe center;
  align-items: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 16px max(12px, env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#kez-rewards-intro .kez-intro-panel {
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  max-height: min(92vh, calc(100vh - 24px));
  max-height: min(92dvh, calc(100dvh - 24px));
  padding: 20px 22px 24px;
  text-align: center;
  color: var(--col4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex-shrink: 0;
}
#kez-rewards-intro h2 {
  color: var(--col2);
  font-size: 24px;
  margin: 0 0 12px 0;
  text-align: center;
}
#kez-rewards-intro .kez-intro-lead {
  font-size: 16px;
  line-height: 1.45;
  margin-bottom: 14px;
  text-align: center;
}
.kez-intro-bal-caption {
  margin: 0 0 10px;
  font-size: 15px;
  color: #555;
}
.kez-intro-bal-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 8px;
}
#kez-rewards-intro .kez-intro-bal {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "Starlight", Arial, sans-serif;
  font-size: clamp(18px, 4.5vw, 22px);
  color: var(--col4);
  margin: 0;
}
#kez-rewards-intro .kez-intro-bal img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.kez-treasures-inline-ico {
  vertical-align: middle;
  display: inline-block;
  width: 26px;
  height: 26px;
  object-fit: contain;
}
#kez-rewards-intro ul.kez-intro-rules {
  margin: 10px auto 14px;
  padding: 0;
  padding-left: 1.2em;
  max-width: 480px;
  text-align: left;
  font-size: 15px;
  line-height: 1.55;
  list-style-position: outside;
  box-sizing: border-box;
}
#kez-rewards-intro .kez-intro-shop {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
}
#kez-rewards-intro .kez-intro-close {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border: none;
  border-radius: 14px;
  background: var(--col2);
  color: #fff;
  font-family: Myriad, sans-serif;
  font-size: 18px;
  cursor: pointer;
}
#kez-rewards-intro .kez-intro-close:hover {
  filter: brightness(1.08);
}
