html {
	position: relative;
	min-height: 100%;
}

body{
	margin-bottom: 72px;
}

footer {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: 72px;
}

.btn-warning,
.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning:not(:disabled):not(.disabled).active,
.btn-warning:not(:disabled):not(.disabled):active,
.show>.btn-warning.dropdown-toggle{
	color: #ffffff;
}

.nav-link{
	transition: color .15s ease-in-out;
}

.text-white-75{
	color: rgba(255,255,255,.75);
}

a,
.btn-link{
	text-decoration: none;
}

[data-bs-theme=dark]{
	--bs-body-bg: #101214;
}

.hero-img{
	height: 200px; 
	max-width: 100%; 
	object-fit: contain;
	margin-top: -20px;
}

.blackjack-table{
	background: rgba(0,0,0,0.35);
	border: 1px solid rgba(255,255,255,0.05);
	border-radius: 1rem;
	padding: 1.5rem;
	box-shadow: inset 0 0 30px rgba(0,0,0,0.35);
}
.blackjack-cards{
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}
.blackjack-card{
	width: 70px;
	height: 100px;
	border-radius: 0.75rem;
	background: #fff;
	color: #000;
	position: relative;
	box-shadow: 0 10px 25px rgba(0,0,0,0.4);
	border: 2px solid rgba(0,0,0,0.1);
	font-weight: 600;
	font-size: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}
.blackjack-card.black{
	color: #111;
}
.blackjack-card.red{
	color: #b42323;
}
	.blackjack-card.hidden{
	background: repeating-linear-gradient(45deg, #111, #111 10px, #222 10px, #222 20px);
	color: transparent;
}
@media (max-width: 768px){
	.blackjack-card{
		width: 56px;
		height: 80px;
		font-size: 1.2rem;
	}
}

.coinflip-coin{
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 3px solid rgba(255,255,255,0.15);
	position: relative;
	background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), rgba(255,255,255,0.05));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	font-weight: 700;
	color: #fff;
	box-shadow: 0 10px 25px rgba(0,0,0,0.45);
	overflow: hidden;
}
.coinflip-coin .coinface{
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity .3s ease;
}
.coinflip-coin .coinface.tails{
	opacity: 0;
}
.coinflip-coin[data-side="tails"] .coinface.heads{
	opacity: 0;
}
.coinflip-coin[data-side="tails"] .coinface.tails{
	opacity: 1;
}
.coinflip-coin[data-side="heads"] .coinface.heads{
	opacity: 1;
}
.coinflip-coin[data-side="heads"] .coinface.tails{
	opacity: 0;
}

.mines-grid{
	display: grid;
	grid-template-columns: repeat(5, minmax(60px, 1fr));
	gap: 0.75rem;
	background: rgba(255,255,255,0.03);
	border-radius: 1rem;
	padding: 1rem;
	border: 1px solid rgba(255,255,255,0.05);
}
.mines-cell{
	position: relative;
	width: 100%;
	padding-top: 100%;
	border-radius: 0.75rem;
	background: rgba(255,255,255,0.08);
	border: 2px solid transparent;
	transition: all .15s ease-in-out;
	cursor: pointer;
	box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}
.mines-cell.revealed{
	background: rgba(0,0,0,0.25);
	border-color: rgba(255,255,255,0.15);
}
.mines-cell.mine{
	background: rgba(244, 63, 94, 0.2);
	border-color: rgba(244, 63, 94, 0.45);
}
.mines-cell.safe{
	background: rgba(34,197,94,0.15);
	border-color: rgba(34,197,94,0.35);
}
.mines-cell span{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-weight: 700;
	font-size: 1.25rem;
	color: #fff;
}
.mines-cell.disabled{
	cursor: not-allowed;
	opacity: 0.6;
}
@media (max-width: 768px){
	.mines-grid{
		grid-template-columns: repeat(5, minmax(48px, 1fr));
	}
}

.crash-card{
	background: radial-gradient(circle at top, rgba(255,193,7,0.15), rgba(0,0,0,0.6));
	box-shadow: inset 0 0 30px rgba(0,0,0,0.35);
}
.crash-graph{
	position: relative;
	background: rgba(0,0,0,0.35);
	border-radius: 1.5rem;
	border: 1px solid rgba(255,255,255,0.05);
	padding: 2.5rem 1.5rem 1.5rem;
	min-height: 240px;
	overflow: hidden;
}
.crash-graph.crash-graph-disabled{
	opacity: 0.65;
}
.crash-graph-grid{
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}
.crash-graph-grid::before,
.crash-graph-grid::after{
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	opacity: 0.08;
}
.crash-graph-grid::before{
	background-image: linear-gradient(to right, rgba(255,255,255,0.2) 1px, transparent 1px);
	background-size: 30px 100%;
}
.crash-graph-grid::after{
	background-image: linear-gradient(to top, rgba(255,255,255,0.2) 1px, transparent 1px);
	background-size: 100% 30px;
}
.crash-rocket{
	position: absolute;
	bottom: 1.5rem;
	left: 0;
	transform: translate(-50%, 0);
	transition: left .2s linear, bottom .2s linear, transform .2s linear;
	color: #ffc107;
	font-size: 1.75rem;
}
.crash-trail{
	position: absolute;
	left: 0;
	bottom: 2rem;
	height: 4px;
	background: linear-gradient(90deg, rgba(255,193,7,0.1), rgba(255,193,7,0.8));
	border-radius: 999px;
	opacity: 0.6;
	transition: width .2s linear, opacity .2s linear;
}
.crash-progress{
	position: absolute;
	left: 0;
	bottom: 0;
	height: 6px;
	background: linear-gradient(90deg, #4ade80, #f97316);
	border-radius: 999px;
	transition: width .2s linear;
}
.crash-status{
	position: relative;
	text-align: right;
	color: #fff;
}
.crash-alert{
	position: relative;
}
.crash-alert::after{
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	height: 1px;
	background: rgba(255,255,255,0.1);
}
/* Product cards: out of stock products stay listed but read as unavailable */
.product-stock-ribbon{
	position: absolute;
	top: .75rem;
	right: .75rem;
	z-index: 2;
	padding: .35rem .75rem;
	border-radius: .375rem;
	background: rgba(220,53,69,.95);
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	box-shadow: 0 .25rem .75rem rgba(0,0,0,.35);
	pointer-events: none;
}
.product-sold-out .product-image{
	filter: grayscale(1);
	opacity: .45;
	transition: opacity .15s ease-in-out;
}
.product-sold-out:hover .product-image{
	opacity: .65;
}
.product-sold-out .card{
	opacity: .9;
}

/* Product description: wrap long unbroken lines, scroll instead of running long */
.product-description{
	white-space: pre-line;
	overflow-wrap: anywhere;
	word-break: break-word;
	max-height: 24rem;
	overflow-y: auto;
	padding: 1rem 1.25rem;
	border: 1px solid var(--bs-border-color, rgba(255,255,255,.1));
	border-radius: .5rem;
	background: var(--bs-tertiary-bg, rgba(255,255,255,.03));
}
.product-description > *:last-child{
	margin-bottom: 0;
}
.product-description img,
.product-description video{
	max-width: 100%;
	height: auto;
}
.product-description pre,
.product-description table{
	max-width: 100%;
	overflow-x: auto;
}
.product-description::-webkit-scrollbar{
	width: .5rem;
}
.product-description::-webkit-scrollbar-track{
	background: transparent;
}
.product-description::-webkit-scrollbar-thumb{
	background: rgba(128,128,128,.4);
	border-radius: 999px;
}
.product-description::-webkit-scrollbar-thumb:hover{
	background: rgba(128,128,128,.6);
}

/* Admin category editor: compact drag sortable rows */
.admin-category-items .admin-category-item{
	cursor: grab;
}
.admin-category-items .admin-category-item:active{
	cursor: grabbing;
}
.admin-category-card{
	transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.admin-category-item:hover .admin-category-card{
	border-color: var(--bs-primary);
	box-shadow: 0 .25rem .5rem rgba(0,0,0,.2);
}
.admin-category-title{
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 500;
}
.admin-category-icon{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: .375rem;
	background: var(--bs-tertiary-bg, rgba(255,255,255,.05));
	color: var(--bs-primary);
	font-size: .9rem;
}
.admin-category-item-order-text{
	flex: 0 0 auto;
	min-width: 1.5rem;
	padding: .1rem .35rem;
	border-radius: .25rem;
	background: var(--bs-primary);
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
	text-align: center;
}
.admin-category-handle{
	flex: 0 0 auto;
	color: var(--bs-secondary-color, rgba(255,255,255,.35));
	font-size: .8rem;
}
.admin-category-item:hover .admin-category-handle{
	color: var(--bs-primary);
}
/* Gap that follows the pointer while dragging */
.admin-category-placeholder{
	visibility: visible !important;
}
.admin-category-placeholder::after{
	content: "";
	display: block;
	height: 100%;
	min-height: 3rem;
	border: 2px dashed var(--bs-primary);
	border-radius: var(--bs-card-border-radius, .375rem);
	background: rgba(var(--bs-primary-rgb, 13,110,253), .08);
}
.ui-sortable-helper.admin-category-item{
	cursor: grabbing;
}
.ui-sortable-helper .admin-category-card{
	border-color: var(--bs-primary);
	box-shadow: 0 .5rem 1rem rgba(0,0,0,.4);
}

/* Admin products: hidden-from-shop state */
.admin-product-hidden-ribbon{
	position: absolute;
	top: .5rem;
	right: .5rem;
	z-index: 2;
	padding: .2rem .5rem;
	border-radius: .375rem;
	background: rgba(108,117,125,.95);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
	pointer-events: none;
}
.admin-product-dimmed{
	filter: grayscale(.85);
	opacity: .5;
}

/* Reviews: reviewer identity, good/bad accent, and nested store replies */
.review-list{
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
}
.review-item{
	padding: .9rem 1rem;
	border-radius: .5rem;
	border: 1px solid var(--bs-border-color, rgba(255,255,255,.1));
	background: var(--bs-tertiary-bg, rgba(255,255,255,.03));
	border-left: 4px solid var(--bs-secondary, #6c757d);
}
.review-item.review-good{
	border-left-color: var(--bs-success, #198754);
}
.review-item.review-bad{
	border-left-color: var(--bs-danger, #dc3545);
}
.review-item-header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: .35rem;
}
.review-author{
	font-weight: 600;
}
.review-content{
	white-space: pre-line;
	overflow-wrap: anywhere;
	word-break: break-word;
}
.review-reply{
	margin-top: .75rem;
	padding: .75rem 1rem;
	border-radius: .5rem;
	background: rgba(var(--bs-primary-rgb, 13,110,253), .08);
	border: 1px solid rgba(var(--bs-primary-rgb, 13,110,253), .2);
}
.review-reply-header{
	font-weight: 600;
	font-size: .85rem;
	color: var(--bs-primary);
	margin-bottom: .35rem;
}
