/* Shared keno board for bet history. Game-page overrides stay under #game_keno. */
/**** Game Keno ****/
.keno_gameboard {
	display: flex;
	flex-direction: column;
	padding: 4px;
	border-radius: 8px;
	margin-bottom: 4px;
	flex: 1 1 0%;
	z-index: 0;
	margin: 10px;
	margin-bottom: 0px;
}
.keno_table{
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
	grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
	gap: 4px;
	flex: 1 1 0%;
	margin-bottom: 4px;
}
.keno_gamecell {
	background: #EFEFEF;
	border: 1px solid #DDD;
	border-radius: 5px;
	display: flex;
	-webkit-box-align: center;
	align-items: center;
	-webkit-box-pack: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	opacity: 1;
	cursor: pointer;
	/*transition: background-color 0.3s ease 0s, border-color 0.3s ease 0s;*/
	opacity: 0.9;
	/*padding: 10px 0px;*/
	height: 50px;
}
.keno_gamecell.selected {
	background-color: #c1eb8e !important;
	border: 1px solid #c1eb8e !important;
	opacity: 1;
}
.keno_gamecell.matched {
	background-color: #FFF !important;
	opacity: 1;
}
.keno_gamecell.matched .keno_gem {
	height: 35px;
	width: 35px;
	background-position: center;
	background-image: url('../../img/games/keno/keno_diamond.svg') !important;
	background-repeat: no-repeat;
	background-size: contain;
	font-size: 14px;
	color: #314641;
	line-height: 35px;
	text-align: center;
	font-weight: bold;
}
.keno_gamecell.opened {
	background-color: #FFF !important;
	border: 1px solid #7e978e75 !important;
	opacity: 1;
}
.keno_gamecell.opened .keno_gamecell_index {
	color: #FFF;
}
.keno_gamecell.opened .keno_gamecell_index::after {
	background: #ec4f5b !important;
}
.keno_gamecell_coverimg {
	background-repeat: repeat;
	display: inline-flex;
	-webkit-box-align: center;
	align-items: center;
	-webkit-box-pack: center;
	justify-content: center;
	flex-shrink: 0;
	font-style: normal;
	background-position: center center;
	background-image: url("../../img/games/keno_bg2.svg") !important;
	transition: background-size 0.3s ease 0s;
	opacity: 0.5;
	background-size: 150px;
	position: absolute;
	left: 0px;
	top: 0px;
	z-index: 1;
	width: 100%;
	height: 100%;
}
.keno_gamecell_index {
	display: flex;
	-webkit-box-align: center;
	align-items: center;
	-webkit-box-pack: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	width: 25px;
	height: 25px;
	color: #555;
	font-family: Primary, DefaultFont, -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif, Secondary, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
	font-size: 14px;
	font-weight: 700;
	/*transition: color 0.3s ease 0s;*/
}
.keno_gamecell_index::after {
	content: "";
	display: block;
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	background: #DDD;
	/*box-shadow: rgb(81 93 85 / 76%) 0px 0px 0px 2px;*/
	width: 100%;
	height: 100%;
	left: 0px;
	top: 0px;
	transition: box-shadow 0.3s ease 0s;
}
.keno_gamecell.selected .keno_gamecell_index {
	color: #314641;
}
.keno_gamecell.selected .keno_gamecell_index::after {
	background: #a5db66;
	box-shadow: none;
	border: 2px solid #a5db66;
}
.keno_gamecell:hover {
	/*transition: background-color 0.3s ease 0s, border-color 0.3s ease 0s, opacity 0.3s ease 0s;*/
	opacity: 1;
}
.keno_gamecell:hover .keno_gamecell_coverimg {
	background-size: 180px;
}
.keno_cell_selections {
	height: auto;
	padding: 5px;
	background: #EFEFEF;
	border-radius: 5px;
	border: 1px solid #DDD;
	margin: 0px 15px;
}
.keno_cell_selections span {
	color: #555;
	text-align: center;
	width: 100%;
	font-size: 12px;
	padding: 2px;
	display: contents;
}
.keno_cell_selections>div {
	display: grid!important;
	grid-template-columns: 1fr 1fr 1fr 1fr;
	gap: 4px;
	width: 100%!important;
}
.dark_mode .keno_gamecell_coverimg {
	opacity: 0.05;
}
.dark_mode .keno_gameboard {
	background: #212428;
}
.dark_mode .keno_gamecell {
	background: #2d3035;
	border: 1px solid #050606;
}
.dark_mode .keno_gamecell_index::after {
	background: #2d3035;
}
.dark_mode .keno_gamecell_index {
	color: #FFF;
}
.dark_mode .keno_gamecell.selected .keno_gamecell_coverimg{
	opacity: 0.5;
}
.dark_mode .keno_gamecell.selected .keno_gamecell_index {
	color: #121a18;
}
.dark_mode .keno_gamecell.opened {
	background-color: #112732 !important;
	border: 1px solid #2341594f !important;
}
.dark_mode .keno_gamecell.matched {
	border: 1px solid #2341594f !important;
	background: #112732 !important;
}
.dark_mode .keno_cell_selections {
	background: #212428;
	border: 1px solid #212428;
	border: 1px solid #212428;
	margin: 5px 10px;
}
.dark_mode .keno_cell_selections span {
	color: #FFF;
}

#game_keno {
	--radius-md: .375rem;
	--radius-lg: .5rem;
	--keno-green: #67e366;
	--keno-purple: #8b5cf6;
	--keno-purple-hot: #a855f7;
	position: relative;
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	padding: 16px 16px 0;
	margin: 20px auto 30px;
	border-radius: 12px;
	background: #fff !important;
	color: #333;
	overflow: visible;
}

.dark_mode #game_keno {
	--layer2: 33 36 40;
	--layer3: 45 48 53;
	--layer4: 53 56 62;
	--layer5: 58 62 68;
	--layer6: 74 79 86;
	background: #1c1e22 !important;
	color: #fff;
	border: 1px solid #dddddd1a;
}

#game_keno .keno-layout {
	display: grid;
	grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
	gap: 15px;
	align-items: stretch;
	width: 100%;
	min-width: 0;
}

#game_keno .keno-sidebar {
	display: flex;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	height: 100%;
	max-height: 100%;
	overflow: hidden;
	padding: 12px;
	border: 1px solid #DDD;
	border-radius: 10px;
	background: #F5F5F5;
}

.dark_mode #game_keno .keno-sidebar {
	background: #212428;
	border-color: #3a3e44;
}

#game_keno .keno-sidebar-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

#game_keno .keno-sidebar-foot {
	flex: 0 0 auto;
	padding-top: 8px;
}

#game_keno .keno-stage {
	position: relative;
	padding: 16px;
	border: 1px solid #DDD;
	border-radius: 10px;
	background: #fff;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.dark_mode #game_keno .keno-stage {
	background: #16191c;
	border-color: #3a3e44;
}

#game_keno .keno-mults {
	align-self: stretch;
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: row-reverse;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: center;
	gap: 6px;
	height: 40px;
	margin: 0 0 10px;
	overflow: hidden;
}

#game_keno .keno-mult {
	flex: 0 0 auto;
	min-width: 0;
	padding: 10px 15px;
	border-radius: 6px;
	background: #eceff1;
	color: #546e7a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	white-space: nowrap;
	transform-origin: center center;
}

#game_keno .keno-mult.is-new {
	animation: keno-mult-pop .28s ease-out forwards;
	backface-visibility: hidden;
}

@keyframes keno-mult-pop {
	from { transform: scale(1); }
	to { transform: scale(1.15); }
}

#game_keno .keno-mult.is-win {
	background: #8bc34a;
	color: #fff;
}

.dark_mode #game_keno .keno-mult {
	background: #2f363d;
	color: #e8eef2;
}

.dark_mode #game_keno .keno-mult.is-win {
	background: #67e366;
	color: #1a270b;
}

#game_keno .keno-board-wrap {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
	width: 100%;
	margin: auto 0;
	padding: 0 8px 8px;
}

#game_keno .keno_gameboard {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	z-index: 0;
}

#game_keno .keno_table {
	display: grid;
	grid-template-columns: repeat(10, minmax(0, 1fr));
	grid-template-rows: none;
	grid-auto-rows: auto;
	gap: 6px;
	width: 100%;
	flex: 0 0 auto;
	margin: 0;
}

#game_keno .keno_gamecell {
	background: #e9ecef;
	border: 0;
	border-radius: 8px;
	width: 100%;
	height: auto !important;
	min-height: 0 !important;
	aspect-ratio: 1 / 1;
	opacity: 1;
	font-size: 15px;
	font-weight: 800;
	color: #374151;
	box-sizing: border-box;
}

.dark_mode #game_keno .keno_gamecell {
	background: #2d3138;
	border: 0;
	color: #fff;
}

#game_keno .keno_gamecell_coverimg,
#game_keno .keno_gamecell_index::after {
	display: none !important;
}

#game_keno .keno_gamecell_index {
	width: auto;
	height: auto;
	color: inherit;
	font-size: 15px;
	font-weight: 800;
}

#game_keno .keno_gamecell.selected {
	background: #8b5cf6 !important;
	border: 0 !important;
	color: #fff;
	opacity: 1;
}

.dark_mode #game_keno .keno_gamecell.selected .keno_gamecell_index {
	color: #fff;
}

#game_keno .keno_gamecell.opened {
	background: #e9ecef !important;
	border: 0 !important;
	opacity: 1;
	color: #ef4444;
}

.dark_mode #game_keno .keno_gamecell.opened {
	background: #2d3138 !important;
	border: 0 !important;
	color: #ef4444;
}

#game_keno .keno_gamecell.opened .keno_gamecell_index {
	color: #ef4444;
}

#game_keno .keno_gamecell.matched {
	background: #e9ecef !important;
	border: 3px solid #8b5cf6 !important;
	opacity: 1;
	color: #111;
}

.dark_mode #game_keno .keno_gamecell.matched {
	background: #2d3138 !important;
	border: 3px solid #8b5cf6 !important;
	color: #111;
}

#game_keno .keno_gamecell.matched .keno_gem {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 82%;
	height: 82%;
	background-color: transparent;
	background-image: url("../../img/games/keno/keno_diamond.svg") !important;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	-webkit-clip-path: none;
	clip-path: none;
	color: #111;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	position: relative;
	z-index: 1;
}

.dark_mode #game_keno .keno_gamecell.matched .keno_gem {
	color: #111;
}

#game_keno .keno_gamecell.matched:hover,
#game_keno .keno_gamecell.opened:hover {
	filter: none;
}

#game_keno .keno_gamecell:hover {
	opacity: 1;
	filter: brightness(1.08);
}

#game_keno.is-betting .keno_gamecell,
#game_keno.is-auto-running .keno_gamecell {
	pointer-events: none;
	cursor: default;
}

#game_keno .keno_cell_selections,
#game_keno .keno-payout {
	margin: 12px 0 0;
	padding: 8px 4px 4px;
	background: transparent;
	border: 0;
	border-radius: 0;
	height: auto;
}

#game_keno .keno_cell_selections span,
#game_keno .keno-payout-x,
#game_keno .keno-payout-h {
	display: flex;
	width: auto;
	color: inherit;
	font-size: inherit;
	padding: 0;
}

#game_keno .keno-payout-mults,
#game_keno .keno-payout-hits,
#game_keno .keno_cell_selections > div {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
	gap: 4px;
	width: 100%;
	font-size: 12px;
}

#game_keno .keno-payout-mults {
	margin-bottom: 5px;
}

#game_keno .keno-payout-x,
#game_keno .keno-payout-h {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 22px;
	font-size: inherit;
	font-weight: 800;
	color: #90a4ae;
	text-align: center;
	white-space: nowrap;
}

.dark_mode #game_keno .keno-payout-x,
.dark_mode #game_keno .keno-payout-h {
	color: #cfd8dc;
}

#game_keno .keno-payout-x.is-hot,
#game_keno .keno-payout-h.is-hot {
	color: #fff;
	background: #8b5cf6;
	border-radius: 6px;
}

#game_keno .keno-payout-gem {
	width: 1em;
	height: 1em;
	min-width: 1em;
	min-height: 1em;
	margin-left: 3px;
	flex: 0 0 1em;
	display: block;
	box-sizing: border-box;
	object-fit: contain;
}

#game_keno .keno-payout-empty {
	display: flex;
	width: 100%;
	justify-content: center;
	align-items: center;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	color: #90a4ae;
	padding: 8px 0;
}

#game_keno .gx-board-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 12px -16px 0;
	padding: 6px 14px 10px;
	border-top: 1px solid #e5e7eb;
	min-height: 40px;
}

.dark_mode #game_keno .gx-board-bar {
	border-top-color: #3a3e44;
}

#game_keno .gx-board-bar .gx-left {
	gap: 8px;
	flex: 0 1 auto;
	min-width: 0;
}

#game_keno .gx-board-bar .gx-title {
	font-size: 15px;
	font-weight: 700;
	margin: 0;
	color: #374151;
}

.dark_mode #game_keno .gx-board-bar .gx-title {
	color: #fff;
}

#game_keno .gx-board-bar .gx-nav {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 2px;
	margin-left: auto;
}

#game_keno .gx-board-bar .gx-btn {
	background: transparent;
	border: 0;
	border-radius: 8px;
	padding: 6px 8px;
	min-width: 32px;
	height: 32px;
	color: #90a4ae;
	font-size: 14px;
	box-shadow: none;
}

.dark_mode #game_keno .gx-board-bar .gx-btn {
	color: #b0bec5;
	background: transparent;
}

#game_keno .gx-board-bar .gx-btn:hover,
.dark_mode #game_keno .gx-board-bar .gx-btn:hover {
	background: rgba(0, 0, 0, 0.06);
	color: #111;
}

.dark_mode #game_keno .gx-board-bar .gx-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

#game_keno .gx-board-bar .gx-btn.is-active-stats,
.dark_mode #game_keno .gx-board-bar .gx-btn.is-active-stats {
	color: #67e366;
}

#game_keno .keno-mode-tabs {
	display: flex;
	width: 100%;
	justify-content: stretch;
	gap: 0;
	margin: 0 0 14px;
	flex: 0 0 auto;
}

#game_keno .keno-mode-tab {
	flex: 1 1 0;
	min-width: 0;
	background: none;
	border: 0;
	padding: 8px 2px 10px;
	color: #90a4ae;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .3px;
	text-align: center;
	cursor: pointer;
}

#game_keno .keno-mode-tab.is-active {
	color: #03a9f4;
	box-shadow: inset 0 -2px 0 #03a9f4;
}

.dark_mode #game_keno .keno-mode-tab.is-active {
	color: #67e366;
	box-shadow: inset 0 -2px 0 #67e366;
}

#game_keno.is-locked .keno-mode-tab,
#game_keno.is-auto-running .keno-mode-tab,
#game_keno .keno-mode-tab:disabled {
	opacity: 0.55;
	cursor: default;
	pointer-events: none;
}

#game_keno #switch_bet_mode,
#game_keno .keno-hidden {
	display: none !important;
}

#game_keno .keno-field {
	margin-bottom: 10px;
}

#game_keno .keno-field-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}

#game_keno .keno-field-head .input_label {
	margin: 0;
}

#game_keno .keno-clear {
	background: none;
	border: 0;
	padding: 0;
	color: #90a4ae;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

#game_keno .keno-clear:hover {
	color: #67e366;
}

#game_keno .input_label {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	color: #4caf50;
}

.dark_mode #game_keno .input_label {
	color: #67e366;
}

#game_keno .input_group {
	height: 42px;
	display: flex;
	align-items: center;
	padding: 5px 6px;
	border: 1px solid #DDD;
	border-radius: 8px;
	background: #fff !important;
	box-shadow: none;
	margin: 0;
	float: none;
	width: 100%;
	box-sizing: border-box;
}

.dark_mode #game_keno .input_group {
	background: #1a1c1e !important;
	border-color: #3a3e44;
}

#game_keno .input_group img {
	flex-shrink: 0;
	width: 18px !important;
	height: 18px !important;
	margin: 0 6px 0 0 !important;
}

#game_keno .input_group input {
	flex: 1 1 auto;
	min-width: 0;
	height: 32px !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0 4px;
	font-weight: 700;
}

.dark_mode #game_keno .input_group input {
	color: #fff !important;
	-webkit-text-fill-color: #fff;
}

#game_keno .keno-step {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	width: 22px;
	margin-left: 4px;
}

#game_keno .keno-step button {
	height: 16px;
	padding: 0;
	border: 0;
	background: #e9ecef;
	color: #546e7a;
	font-size: 9px;
	line-height: 1;
	cursor: pointer;
}

.dark_mode #game_keno .keno-step button {
	background: #3a3e44;
	color: #cfd8dc;
}

#game_keno .keno-step button:first-child {
	border-radius: 4px 4px 0 0;
}

#game_keno .keno-step button:last-child {
	border-radius: 0 0 4px 4px;
}

#game_keno .keno-quick {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
	margin-top: 8px;
}

#game_keno .keno-quick-btn {
	height: 32px;
	border: 0;
	border-radius: 6px;
	background: #e9ecef;
	color: #546e7a;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.dark_mode #game_keno .keno-quick-btn {
	background: #3a3e44;
	color: #cfd8dc;
}

#game_keno .keno-quick-btn:hover {
	filter: brightness(1.08);
}

#game_keno .keno-risk {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 4px;
	padding: 5px;
	border-radius: 8px;
	background: #e9ecef;
	box-sizing: border-box;
	height: 42px;
	align-items: center;
}

.dark_mode #game_keno .keno-risk {
	background: #1a1c1e;
}

#game_keno .keno-risk-btn {
	height: 32px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #90a4ae;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

#game_keno .keno-risk-btn.is-active {
	background: #fff;
	color: #111;
}

.dark_mode #game_keno .keno-risk-btn.is-active {
	background: #3a3e44;
	color: #fff;
}

#game_keno .keno-slider {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 42px;
	padding: 0 10px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #DDD;
}

.dark_mode #game_keno .keno-slider {
	background: #1a1c1e;
	border-color: #3a3e44;
}

#game_keno .keno-slider.disabled,
#game_keno .input_group.disabled {
	opacity: 0.7;
	pointer-events: none;
}

#game_keno .keno-slider-val,
#game_keno .keno-slider-max {
	min-width: 16px;
	font-size: 13px;
	font-weight: 800;
	color: #90a4ae;
}

.dark_mode #game_keno .keno-slider-val,
.dark_mode #game_keno .keno-slider-max {
	color: #cfd8dc;
}

#game_keno .keno-slider-val {
	color: #67e366;
}

#game_keno .keno-slider-rail {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	height: 6px;
	border-radius: 99px;
	background: #3a3e44;
}

#game_keno .keno-slider-fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	border-radius: 99px;
	background: #67e366;
	pointer-events: none;
	z-index: 1;
}

#game_keno #keno_row {
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 18px;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	cursor: pointer;
	z-index: 2;
	border: none;
}

#game_keno #keno_row::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 99px;
	background: transparent;
	border: none;
}

#game_keno #keno_row::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	margin-top: -5px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #67e366;
	box-shadow: 0 0 0 2px rgba(103, 227, 102, 0.25);
	cursor: pointer;
}

#game_keno #keno_row::-moz-range-track {
	height: 6px;
	border-radius: 99px;
	background: transparent;
	border: none;
}

#game_keno #keno_row::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #67e366;
	cursor: pointer;
}

#game_keno .keno-actions {
	margin: 8px 0 10px;
}

#game_keno .keno-autopick {
	display: flex;
	width: 100%;
	height: 42px;
	margin: 0 0 8px;
	padding: 0 8px;
	border: 0;
	border-radius: 8px;
	background: #e9ecef;
	color: #374151;
	font-size: 13px;
	font-weight: 800;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
}

.dark_mode #game_keno .keno-autopick {
	background: #3a3e44;
	color: #fff;
}

#game_keno .keno-autopick:hover {
	filter: brightness(1.08);
}

#game_keno #manual_bet,
#game_keno #auto_bet {
	display: none;
}

#game_keno:not(.is-auto) #manual_bet {
	display: block;
}

#game_keno.is-auto #auto_bet {
	display: block;
}

#game_keno .bet_btn,
#game_keno #play_button,
#game_keno #start_autobet,
#game_keno #stop_autobet {
	display: flex;
	width: 100%;
	max-width: none;
	height: 48px;
	margin: 0;
	padding: 0 8px;
	border: 0 !important;
	border-radius: 8px;
	background: #67e366 !important;
	box-shadow: none;
	color: #0d1a0d !important;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .3px;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

#game_keno:not(.is-auto) #play_button {
	display: flex;
}

#game_keno:not(.is-auto) #start_autobet,
#game_keno:not(.is-auto) #stop_autobet,
#game_keno:not(.is-auto) #auto_bet {
	display: none !important;
}

#game_keno.is-auto #play_button {
	display: none !important;
}

#game_keno.is-auto:not(.is-auto-running) #start_autobet {
	display: flex !important;
}

#game_keno.is-auto-running #start_autobet {
	display: none !important;
}

#game_keno #stop_autobet {
	display: none !important;
	background: #f44336 !important;
	color: #fff !important;
}

#game_keno.is-auto-running #stop_autobet {
	display: flex !important;
}

#game_keno .bet_btn:disabled,
#game_keno #play_button:disabled,
#game_keno #start_autobet:disabled {
	opacity: 0.6 !important;
}

#game_keno .bet_btn img {
	width: 22px;
	height: 22px;
}

@media (max-width: 991px) {
	#game_keno .keno-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	#game_keno .keno-stage {
		position: relative;
		order: -1;
		min-height: 0;
		padding: 10px 0 0;
	}
	#game_keno .keno-mults {
		height: 28px;
		gap: 4px;
		margin-bottom: 6px;
		padding: 0 10px;
		box-sizing: border-box;
	}
	#game_keno .keno-mult {
		padding: 5px 8px;
		font-size: 11px;
		border-radius: 5px;
	}
	#game_keno .keno-board-wrap {
		padding: 0 8px 8px;
	}
	#game_keno .keno-sidebar {
		height: auto;
		max-height: none;
		overflow: visible;
	}
	#game_keno .keno-sidebar-body {
		overflow: visible;
		flex: 0 0 auto;
	}
	#game_keno .keno-payout-mults,
	#game_keno .keno-payout-hits,
	#game_keno .keno_cell_selections > div {
		font-size: 11px;
	}
}

@media (max-width: 575px) {
	#game_keno {
		width: 100% !important;
		max-width: 100% !important;
		padding: 12px 10px 0;
		margin: 10px auto 20px;
	}
	#game_keno .keno_table {
		gap: 4px;
	}
	#game_keno .keno_gamecell {
		border-radius: 5px;
	}
	#game_keno .keno_gamecell.matched,
	.dark_mode #game_keno .keno_gamecell.matched {
		border-radius: 4px;
		border: 1px solid #8b5cf6 !important;
	}
	#game_keno .keno_gamecell,
	#game_keno .keno_gamecell_index,
	#game_keno .keno_gamecell.matched .keno_gem {
		font-size: 10px;
	}
	#game_keno .keno_gamecell.matched .keno_gem {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
	}
	#game_keno .keno-payout-gem {
		width: 0.75em;
		height: 0.75em;
		min-width: 0.75em;
		min-height: 0.75em;
		flex: 0 0 0.75em;
	}
	#game_keno .keno-payout-mults,
	#game_keno .keno-payout-hits,
	#game_keno .keno_cell_selections > div {
		font-size: 11px;
		font-weight: 700;
	}
	#game_keno .keno-payout-empty {
		font-size: 12px!important;
		font-weight: 700;
	}
	#game_keno .keno-payout-x,
	#game_keno .keno-payout-h {
		font-weight: 700;
	}
	#game_keno .bet_btn,
	#game_keno #play_button,
	#game_keno #start_autobet {
		height: 48px;
		font-size: 14px;
	}
}
