/* Blackjack CSS - Closer to Original with Hebrew/CrownBet touches */

* {
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	overflow-x: hidden;
	width: 100%;
	position: relative;
}

/* Popover positioning - same as original */
div[id*="pcard"] .popover { 
	left: -95px !important;
	z-index: 100;
}

div[id*="dcard"] .popover { 
	left: -105px !important;
	z-index: 100;
}

#wrapper {
	margin: 0 auto;
	width: 1000px;
	max-width: 100%;
}

h3 {
	margin: 5px 0;
	text-align: center;
}

/* Game table - Original background image */
#game {
	background: transparent url('https://i.imgur.com/iZrhFim.png') 0 0 no-repeat;
	background-size: cover;
	border-radius: 5px;
	color: #333;
	font: 14px/17px Helvetica, Arial, Verdana, sans-serif;
	height: 550px;
	margin: 0 auto;
	position: relative;
	width: 1000px;
	max-width: 100%;
}

/* CrownBet Logo Watermark on Table */
#game::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 250px;
	height: 250px;
	background: url('logo.png') center center no-repeat;
	background-size: contain;
	opacity: 0.15;
	pointer-events: none;
	z-index: 0;
	filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
}

div#dscore {
	position: absolute;
	bottom: 30px;
}

div#pscore {
	position: absolute;
	bottom: 15px;
}

/* Dealer & Player Labels */
#dealer::before {
	content: '🎩 הדילר';
	position: absolute;
	top: 40px;
	left: 50%;
	transform: translateX(-50%);
	font-family: 'Karantina', sans-serif;
	font-size: 28px;
	font-weight: bold;
	color: #FFD700;
	text-shadow: 2px 2px 6px #000, 0 0 15px rgba(255, 215, 0, 0.5);
	z-index: 10;
	letter-spacing: 2px;
}

#player::before {
	content: '👤 אתה';
	position: absolute;
	top: 280px;
	left: 50%;
	transform: translateX(-50%);
	font-family: 'Karantina', sans-serif;
	font-size: 28px;
	font-weight: bold;
	color: #FFD700;
	text-shadow: 2px 2px 6px #000, 0 0 15px rgba(255, 215, 0, 0.5);
	z-index: 10;
	letter-spacing: 2px;
}

#dealer, #player {
	position: relative;
}

/* Card hands - Centered positioning */
div#phand, div#dhand {
	font-weight: 700;
	position: absolute;
	white-space: nowrap;
	width: 100%;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 5;
}

div#dhand {
	top: 80px;
}

div#phand {
	top: 320px;
}

/* Cards - Centered and visible */
div[class*="card"] {
	background: #FFF;
	border: 6px solid #FFF;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 2px #000;
	display: inline-block;
	height: 120px;
	margin: 0 8px;
	position: relative;
	width: 85px;
	flex-shrink: 0;
}

/* Face-down card - Original red background with pattern */
.down {
	background: #B20000 !important;
	position: relative;
	overflow: hidden;
}

/* Card back pattern - since original image doesn't load */
.down::before {
	content: '';
	position: absolute;
	top: 4px;
	left: 4px;
	right: 4px;
	bottom: 4px;
	background: 
		repeating-linear-gradient(
			45deg,
			transparent,
			transparent 5px,
			rgba(255, 255, 255, 0.1) 5px,
			rgba(255, 255, 255, 0.1) 10px
		);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 3px;
}

/* Card back center decoration */
.down::after {
	content: '♠♥♣♦';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
	letter-spacing: 2px;
}

/* Card rank and suit positions - Original */
span.pos-0 {
	left: 0;
	position: absolute;
	top: 0;
}

span.pos-1 {
	bottom: 0;
	filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
	position: absolute;
	right: 0;
	transform: rotate(180deg);
	-moz-transform: rotate(180deg);
	-webkit-transform: rotate(180deg);
}

span.rank {
	font-size: 18px;
}

span.suit {
	font-size: 22px;
}

.black {
	color: #000;
}

.red {
	color: #F00;
}

#result {
	position: absolute;
	bottom: 0;
}

/* Actions section - Original with minor tweaks */
#actions {
	margin: 15px 0 0 0;
	text-align: center;
}

input#wager { 
	margin-left: 5px; 
	position: relative; 
	top: 4px;
	font-family: 'Karantina', Helvetica, Arial, sans-serif;
	font-size: 18px;
	padding: 5px 10px;
	border: 2px solid #FFC926;
	border-radius: 5px;
	width: 80px;
	text-align: center;
	background: #222;
	color: #FFC926;
}

input#wager:focus {
	outline: none;
	border-color: #FFD700;
	box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Money display - Original styling */
#money, #money:before {
	border-radius: 5px;
	bottom: 0;
	height: 55px;
	padding: 7px;
	position: absolute;
	right: 0;
	width: 250px;
}

#money {
	border: 2px solid #FFC926;
}

#money:before {
	background: #333;
	content: '';
	opacity: 0.8;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 5px;
}

#cash, #bank {
	color: #FFF;
	font: 700 18px/20px 'Karantina', Helvetica, Arial, Verdana, sans-serif;
	margin: 12px 0;
	position: relative;
	text-shadow: 1px 1px #000;
	z-index: 1;
}

/* Alert box - Original with Hebrew font */
#alert {
	margin: 0 auto;
	opacity: 0.95;
	position: relative;
	text-align: center;
	top: 34.5%;
	width: 500px;
	max-width: 90%;
	z-index: 100;
	font-family: 'Karantina', Helvetica, Arial, sans-serif;
	font-size: 24px;
	padding: 15px 20px;
	border-radius: 5px;
}

#alert.alert-error {
	background-color: #f2dede;
	border: 1px solid #ebccd1;
	color: #a94442;
}

#alert.alert-success {
	background-color: #dff0d8;
	border: 1px solid #d6e9c6;
	color: #3c763d;
}

#alert.alert-info {
	background-color: #d9edf7;
	border: 1px solid #bce8f1;
	color: #31708f;
}

.hide {
	display: none !important;
}

/* Buttons - styled but similar to Bootstrap default */
#actions .btn {
	font-family: 'Karantina', Helvetica, Arial, sans-serif;
	font-size: 20px;
	font-weight: bold;
	padding: 10px 20px;
	margin: 0 5px;
	border: 2px solid #555;
	border-radius: 5px;
	background: linear-gradient(to bottom, #555, #333);
	color: #FFF;
	cursor: pointer;
	transition: all 0.2s ease;
}

#actions .btn:hover:not(:disabled) {
	background: linear-gradient(to bottom, #666, #444);
	border-color: #FFC926;
}

#actions .btn:active:not(:disabled) {
	background: linear-gradient(to bottom, #333, #222);
}

#actions .btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Deal button - special green color */
#deal {
	background: linear-gradient(to bottom, #5cb85c, #449d44) !important;
	border-color: #4cae4c !important;
}

#deal:hover:not(:disabled) {
	background: linear-gradient(to bottom, #6fcf6f, #5cb85c) !important;
}

#actions strong {
	font-family: 'Karantina', Helvetica, Arial, sans-serif;
	font-size: 20px;
	color: #FFC926;
}

/* Modal - Original Bootstrap style with CrownBet touches */
.modal {
	position: fixed !important;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 9999;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.modal.hide {
	display: none !important;
}

#myModal > div {
	background: #fff;
	border-radius: 6px;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-header {
	padding: 15px;
	border-bottom: 1px solid #e5e5e5;
}

.modal-header h3 {
	font-family: 'Karantina', Helvetica, Arial, sans-serif;
	font-size: 32px;
	color: #333;
	margin: 0;
}

.modal-header .close {
	font-size: 30px;
	font-weight: bold;
	line-height: 1;
	color: #000;
	opacity: 0.5;
	float: right;
	background: transparent;
	border: none;
	cursor: pointer;
}

.modal-header .close:hover {
	opacity: 1;
}

.modal-body {
	padding: 20px;
}

.modal-body p {
	font-family: 'Karantina', Helvetica, Arial, sans-serif;
	font-size: 22px;
	color: #333;
	margin: 0;
	line-height: 1.5;
}

.modal-footer {
	padding: 15px;
	border-top: 1px solid #e5e5e5;
	text-align: right;
}

.modal-footer .btn {
	font-family: 'Karantina', Helvetica, Arial, sans-serif;
	font-size: 18px;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	margin-left: 10px;
}

.modal-footer .btn:not(.btn-primary) {
	background: #fff;
	border: 1px solid #ccc;
	color: #333;
}

.modal-footer .btn:not(.btn-primary):hover {
	background: #e6e6e6;
}

.modal-footer .btn-primary {
	background: #337ab7;
	border: 1px solid #2e6da4;
	color: #fff;
}

.modal-footer .btn-primary:hover {
	background: #286090;
}

/* Popover styling - Original Bootstrap with adjustments */
.popover {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 6px;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
	max-width: 200px;
}

.popover-title {
	background: #f7f7f7;
	border-bottom: 1px solid #ebebeb;
	font-family: 'Karantina', Helvetica, Arial, sans-serif;
	font-size: 18px;
	font-weight: bold;
	padding: 8px 14px;
	border-radius: 5px 5px 0 0;
	margin: 0;
}

.popover-content {
	font-family: 'Karantina', Helvetica, Arial, sans-serif;
	font-size: 28px;
	font-weight: bold;
	color: #333;
	padding: 9px 14px;
}

.popover.left > .arrow {
	border-left-color: rgba(0, 0, 0, 0.25);
	right: -11px;
}

.popover.left > .arrow:after {
	border-left-color: #fff;
	right: 1px;
}

/* ================================================= */
/* Blackjack Win Popup - CrownBet Style */
/* ================================================= */

.blackjack-win-popup {
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) scale(0.8);
	background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
	padding: 50px 80px;
	border-radius: 20px;
	border: 8px solid #FFD700;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 
	            0 0 80px rgba(255, 215, 0, 0.4);
	z-index: 10000 !important;
	opacity: 0;
	pointer-events: none;
	transition: all 0.5s ease;
	text-align: center;
	max-width: 90%;
	visibility: hidden;
}

.blackjack-win-popup.show {
	opacity: 1 !important;
	pointer-events: auto !important;
	transform: translate(-50%, -50%) scale(1) !important;
	visibility: visible !important;
	animation: popupBounce 0.6s ease-out;
}

@keyframes popupBounce {
	0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
	50% { transform: translate(-50%, -50%) scale(1.05); }
	100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.blackjack-win-popup .result-logo {
	width: 150px;
	height: auto;
	margin-bottom: 20px;
	filter: drop-shadow(0 5px 15px rgba(255, 215, 0, 0.5));
}

.blackjack-win-popup .result-message {
	font-family: 'Karantina', sans-serif;
	font-size: 38px;
	font-weight: bold;
	color: #FFD700;
	margin: 15px 0;
	text-shadow: 2px 2px 4px #000;
	line-height: 1.4;
	padding: 0 15px;
}

.blackjack-win-popup .result-amount {
	font-family: 'Karantina', sans-serif;
	font-size: 72px;
	font-weight: bold;
	color: #00FF00;
	text-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
	margin: 20px 0;
}

.blackjack-win-popup .bonus-message {
	font-family: 'Karantina', sans-serif;
	font-size: 28px;
	font-weight: bold;
	color: #FFD700;
	text-shadow: 2px 2px 4px #000, 0 0 20px rgba(255, 215, 0, 0.5);
	margin: 15px 0 25px 0;
	padding: 15px 25px;
	background: linear-gradient(145deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.1));
	border: 2px solid rgba(255, 215, 0, 0.5);
	border-radius: 15px;
	animation: bonusPulse 2s ease-in-out infinite;
}

@keyframes bonusPulse {
	0%, 100% {
		transform: scale(1);
		box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
	}
	50% {
		transform: scale(1.03);
		box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
	}
}

.blackjack-win-popup .whatsapp-cta {
	display: inline-flex;
	align-items: center;
	gap: 15px;
	padding: 18px 45px;
	margin-top: 25px;
	font-family: 'Karantina', sans-serif;
	font-size: 32px;
	font-weight: bold;
	background: linear-gradient(to bottom, #25D366, #128C7E);
	color: #fff;
	border: 3px solid #1EBE5F;
	border-radius: 50px;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
	transition: all 0.3s ease;
}

.blackjack-win-popup .whatsapp-cta:hover {
	transform: scale(1.05);
	box-shadow: 0 12px 40px rgba(37, 211, 102, 0.8);
}

.blackjack-win-popup .whatsapp-icon {
	font-size: 40px;
}

.blackjack-win-popup .cta-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.blackjack-win-popup .cta-main {
	font-size: 36px;
	line-height: 1;
}

.blackjack-win-popup .cta-sub {
	font-size: 22px;
	opacity: 0.9;
}

.blackjack-win-popup .close-hint {
	margin-top: 20px;
	font-family: 'Karantina', sans-serif;
	font-size: 18px;
	color: #888;
}

.blackjack-win-popup .close-popup {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 35px;
	height: 35px;
	background: rgba(255, 0, 0, 0.8);
	border: 2px solid #FFD700;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 24px;
	color: #FFF;
	font-weight: bold;
	transition: all 0.3s ease;
}

.blackjack-win-popup .close-popup:hover {
	background: rgba(255, 0, 0, 1);
	transform: rotate(90deg);
}

/* ================================================= */
/* RESPONSIVE - Mobile */
/* ================================================= */

@media (max-width: 1024px) {
	#wrapper {
		width: 100%;
		padding: 10px;
	}
	
	#game {
		width: 100%;
		height: auto;
		min-height: 450px;
		background-size: cover;
		background-position: center;
	}
	
	div#phand, div#dhand {
		width: 100%;
	}
}

@media (max-width: 768px) {
	body {
		overflow-x: hidden;
	}
	
	.game-screen {
		padding: 70px 10px 10px 10px;
		min-height: 100vh;
	}
	
	.game-screen.active {
		display: flex;
		flex-direction: column;
	}
	
	.back-btn {
		top: 15px;
		right: 15px;
		padding: 12px 25px;
		font-size: 1.8rem;
		z-index: 10000;
	}
	
	#wrapper {
		padding: 5px;
		width: 100%;
	}
	
	#game {
		height: auto;
		min-height: 450px;
		border-radius: 10px;
		padding: 15px 10px;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
	}
	
	#game::before {
		width: 150px;
		height: 150px;
		opacity: 0.1;
	}
	
	#dealer::before {
		top: 15px;
		font-size: 24px;
	}
	
	#player::before {
		top: auto;
		bottom: 130px;
		font-size: 24px;
	}
	
	/* Card hands on mobile - centered */
	div#phand, div#dhand {
		position: relative;
		top: auto !important;
		min-height: 100px;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: nowrap;
		padding: 10px 5px;
		max-width: 100%;
		overflow-x: auto;
		overflow-y: visible;
		white-space: nowrap;
		-webkit-overflow-scrolling: touch;
	}
	
	div#dhand {
		margin-top: 50px;
		margin-bottom: 30px;
	}
	
	div#phand {
		margin-top: 30px;
		margin-bottom: 120px;
	}
	
	/* Cards on mobile */
	div[class*="card"] {
		height: 95px;
		width: 68px;
		border-width: 4px;
		margin: 0 5px;
		border-radius: 6px;
		flex-shrink: 0;
		position: relative !important;
		display: inline-flex !important;
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	}
	
	div[class*="card"]:nth-child(1) { z-index: 1; }
	div[class*="card"]:nth-child(2) { z-index: 2; }
	div[class*="card"]:nth-child(3) { z-index: 3; }
	div[class*="card"]:nth-child(4) { z-index: 4; }
	div[class*="card"]:nth-child(5) { z-index: 5; }
	div[class*="card"]:nth-child(6) { z-index: 6; }
	div[class*="card"]:nth-child(7) { z-index: 7; }
	div[class*="card"]:nth-child(8) { z-index: 8; }
	
	span.pos-0 {
		left: 5px;
		top: 5px;
	}
	
	span.pos-1 {
		bottom: 5px;
		right: 5px;
	}
	
	span.rank {
		font-size: 16px;
	}
	
	span.suit {
		font-size: 20px;
	}
	
	/* Money display */
	#money {
		width: 90%;
		max-width: 280px;
		height: auto;
		min-height: 60px;
		bottom: 10px;
		right: 5%;
		left: auto;
		padding: 8px 12px;
	}
	
	#cash, #bank {
		font-size: 20px;
		line-height: 24px;
		margin: 8px 0;
	}
	
	/* Actions on mobile - stacked vertically */
	#actions {
		flex-direction: column;
		gap: 10px;
		padding: 15px 10px;
		width: 100%;
		margin: 0;
		display: flex;
	}
	
	#actions .btn {
		font-size: 28px;
		padding: 14px 30px;
		width: 100%;
		max-width: 100%;
		border-radius: 10px;
	}
	
	#actions strong {
		font-size: 28px;
		width: 100%;
		text-align: center;
		display: block;
		margin-bottom: 5px;
	}
	
	input#wager {
		font-size: 28px;
		padding: 12px 15px;
		width: 100%;
		max-width: 100%;
		text-align: center;
		display: block;
		margin: 0 auto;
	}
	
	#alert {
		font-size: 22px;
		width: 90%;
		max-width: 90%;
		padding: 15px 10px;
		top: 25%;
	}
	
	/* Popover on mobile */
	.popover {
		max-width: 150px;
	}
	
	.popover-title {
		font-size: 16px;
		padding: 6px 10px;
	}
	
	.popover-content {
		font-size: 24px;
		padding: 6px 10px;
	}
	
	/* Win popup on mobile */
	.blackjack-win-popup {
		padding: 30px 25px;
		border-width: 6px;
		max-width: 90%;
	}
	
	.blackjack-win-popup .result-logo {
		width: 100px;
		margin-bottom: 15px;
	}
	
	.blackjack-win-popup .result-message {
		font-size: 28px;
		line-height: 1.3;
		padding: 0 10px;
	}
	
	.blackjack-win-popup .result-amount {
		font-size: 48px;
	}
	
	.blackjack-win-popup .whatsapp-cta {
		padding: 14px 30px;
		font-size: 24px;
		gap: 10px;
		margin-top: 18px;
	}
	
	.blackjack-win-popup .whatsapp-icon {
		font-size: 30px;
	}
	
	.blackjack-win-popup .cta-main {
		font-size: 28px;
	}
	
	.blackjack-win-popup .cta-sub {
		font-size: 18px;
	}
	
	.blackjack-win-popup .close-hint {
		font-size: 16px;
		margin-top: 15px;
	}
	
	/* Modal on mobile */
	#myModal > div {
		width: 90%;
		max-width: 90%;
	}
	
	.modal-header h3 {
		font-size: 28px;
	}
	
	.modal-body p {
		font-size: 20px;
	}
	
	.modal-footer {
		flex-direction: column;
		gap: 10px;
	}
	
	.modal-footer .btn {
		font-size: 22px;
		padding: 12px 25px;
		width: 100%;
		margin: 0;
	}
}

@media (max-width: 480px) {
	.game-screen.active {
		padding: 60px 5px 5px 5px;
	}
	
	.back-btn {
		padding: 10px 20px;
		font-size: 1.6rem;
		top: 12px;
		right: 12px;
	}
	
	#game {
		min-height: 400px;
		padding: 10px 8px;
	}
	
	#game::before {
		width: 120px;
		height: 120px;
	}
	
	#dealer::before {
		top: 12px;
		font-size: 22px;
	}
	
	#player::before {
		bottom: 110px;
		font-size: 22px;
	}
	
	div#phand, div#dhand {
		min-height: 90px;
		padding: 8px 3px;
	}
	
	div#dhand {
		margin-top: 45px;
		margin-bottom: 25px;
	}
	
	div#phand {
		margin-top: 25px;
		margin-bottom: 100px;
	}
	
	div[class*="card"] {
		height: 85px;
		width: 60px;
		margin: 0 4px;
		border-width: 3px;
	}
	
	span.rank {
		font-size: 14px;
	}
	
	span.suit {
		font-size: 18px;
	}
	
	#money {
		width: 90%;
		max-width: 250px;
		min-height: 55px;
		padding: 6px 10px;
	}
	
	#cash, #bank {
		font-size: 18px;
		line-height: 22px;
		margin: 6px 0;
	}
	
	#actions {
		padding: 12px 8px;
		gap: 8px;
	}
	
	#actions .btn {
		font-size: 24px;
		padding: 12px 25px;
	}
	
	#actions strong {
		font-size: 24px;
	}
	
	input#wager {
		font-size: 24px;
		padding: 10px 12px;
	}
	
	#alert {
		font-size: 20px;
		padding: 12px 8px;
	}
	
	.popover {
		max-width: 130px;
	}
	
	.popover-title {
		font-size: 14px;
	}
	
	.popover-content {
		font-size: 22px;
	}
	
	.blackjack-win-popup {
		padding: 25px 20px;
		border-width: 5px;
	}
	
	.blackjack-win-popup .result-logo {
		width: 80px;
	}
	
	.blackjack-win-popup .result-message {
		font-size: 24px;
		line-height: 1.3;
		padding: 0 8px;
	}
	
	.blackjack-win-popup .result-amount {
		font-size: 40px;
	}
	
	.blackjack-win-popup .whatsapp-cta {
		padding: 12px 24px;
		font-size: 20px;
	}
	
	.blackjack-win-popup .cta-main {
		font-size: 24px;
	}
	
	.blackjack-win-popup .cta-sub {
		font-size: 16px;
	}
	
	.modal-header h3 {
		font-size: 24px;
	}
	
	.modal-body p {
		font-size: 18px;
	}
	
	.modal-footer .btn {
		font-size: 20px;
		padding: 10px 20px;
	}
}

@media (max-width: 360px) {
	.game-screen.active {
		padding: 55px 3px 3px 3px;
	}
	
	#game {
		min-height: 380px;
		padding: 8px 5px;
	}
	
	#game::before {
		width: 100px;
		height: 100px;
	}
	
	#dealer::before {
		top: 10px;
		font-size: 20px;
	}
	
	#player::before {
		bottom: 95px;
		font-size: 20px;
	}
	
	div#phand, div#dhand {
		min-height: 85px;
		padding: 6px 2px;
	}
	
	div#dhand {
		margin-top: 40px;
		margin-bottom: 20px;
	}
	
	div#phand {
		margin-top: 20px;
		margin-bottom: 90px;
	}
	
	div[class*="card"] {
		height: 80px;
		width: 56px;
		margin: 0 3px;
		border-width: 3px;
	}
	
	span.rank {
		font-size: 13px;
	}
	
	span.suit {
		font-size: 16px;
	}
	
	#money {
		max-width: 220px;
		min-height: 50px;
	}
	
	#cash, #bank {
		font-size: 16px;
		line-height: 20px;
	}
	
	#actions .btn {
		font-size: 22px;
		padding: 10px 20px;
	}
	
	#actions strong {
		font-size: 22px;
	}
	
	input#wager {
		font-size: 22px;
		padding: 8px 10px;
	}
	
	#alert {
		font-size: 18px;
	}
	
	.blackjack-win-popup {
		padding: 20px 15px;
		border-width: 4px;
	}
	
	.blackjack-win-popup .result-logo {
		width: 70px;
	}
	
	.blackjack-win-popup .result-message {
		font-size: 20px;
		line-height: 1.3;
		padding: 0 5px;
	}
	
	.blackjack-win-popup .result-amount {
		font-size: 36px;
	}
	
	.blackjack-win-popup .whatsapp-cta {
		padding: 10px 20px;
		font-size: 18px;
	}
	
	.blackjack-win-popup .cta-main {
		font-size: 22px;
	}
	
	.blackjack-win-popup .cta-sub {
		font-size: 14px;
	}
}

/* Landscape mode for mobile */
@media (max-height: 500px) and (orientation: landscape) {
	.game-screen {
		padding: 50px 5px 5px 5px;
	}
	
	#wrapper {
		display: flex;
		flex-direction: row;
		gap: 10px;
		align-items: flex-start;
	}
	
	#game {
		height: 280px;
		min-height: 280px;
		flex: 1;
	}
	
	#actions {
		flex-direction: column;
		gap: 5px;
		padding: 5px;
		width: 180px;
		flex-shrink: 0;
	}
	
	#actions .btn {
		font-size: 16px;
		padding: 8px 15px;
	}
	
	input#wager {
		font-size: 16px;
		padding: 6px 10px;
	}
	
	div[class*="card"] {
		height: 60px;
		width: 45px;
	}
	
	span.rank {
		font-size: 11px;
	}
	
	span.suit {
		font-size: 13px;
	}
	
	#money {
		width: 130px;
		min-height: 45px;
		padding: 5px 8px;
	}
	
	#cash, #bank {
		font-size: 14px;
		line-height: 16px;
		margin: 4px 0;
	}
}
