/**
 * Picka Boo Spin - Las Vegas style slot machine (theme primary red, golden borders)
 */

.pickaboo-spin-wrapper {
	max-width: 640px;
	margin: 0 auto;
	padding: 24px 16px;
}

/* Theme primary: red background; golden border on whole container */
.pickaboo-spin-container {
	background: #c41e3a;
	background: linear-gradient(160deg, #d42a4a 0%, #b81a35 40%, #9e1530 100%);
	border: 4px solid #c9a227;
	border-radius: 16px;
	box-shadow:
		inset 0 0 40px rgba(255, 255, 255, 0.08),
		0 0 0 2px #8b6914,
		0 8px 32px rgba(0, 0, 0, 0.35),
		0 0 40px rgba(201, 162, 39, 0.25);
	padding: 28px 24px;
	position: relative;
}

.pickaboo-spin-container::before {
	content: "";
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	border-radius: 18px;
	background: linear-gradient(135deg, #c9a227, #f4e4a6, #c9a227);
	z-index: -1;
	opacity: 0.5;
}

/* Header: logo + BOO MATCH */
.pickaboo-spin-header {
	margin-bottom: 20px;
}

.pickaboo-spin-logo {
	text-align: center;
	margin-bottom: 16px;
}

.pickaboo-spin-logo-icon {
	display: block;
	margin: 0 auto 10px;
	max-width: 80px;
	max-height: 80px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.pickaboo-spin-logo-title {
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin: 0;
	color: #fff;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pickaboo-spin-logo-a {
	color: #c9a227;
	text-shadow: 0 0 12px rgba(201, 162, 39, 0.8);
}

/* BOO MATCH banner: golden border, marquee lights */
.pickaboo-spin-boo-match {
	position: relative;
	text-align: center;
	padding: 12px 20px;
	background: linear-gradient(180deg, #4a2020 0%, #2d1515 50%, #1a0a0a 100%);
	border: 3px solid #c9a227;
	border-radius: 10px;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		0 4px 16px rgba(0, 0, 0, 0.4);
}

.pickaboo-spin-boo-match-lights {
	position: absolute;
	top: -6px;
	left: 0;
	right: 0;
	height: 12px;
	background: repeating-linear-gradient(
		90deg,
		transparent 0,
		transparent 8px,
		rgba(255, 255, 255, 0.9) 8px,
		rgba(255, 255, 255, 0.9) 10px
	);
	border-radius: 6px;
	opacity: 0.85;
	box-shadow: 0 0 8px rgba(255, 235, 180, 0.6);
}

.pickaboo-spin-boo-match-text {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
	position: relative;
	z-index: 1;
}

.pickaboo-spin-title {
	font-size: 1.75rem;
	font-weight: 700;
	text-align: center;
	margin: 0 0 8px;
	color: #f4e4a6;
	text-shadow:
		0 0 10px rgba(244, 228, 166, 0.8),
		0 2px 4px rgba(0, 0, 0, 0.8);
	letter-spacing: 0.05em;
}

.pickaboo-spin-desc {
	text-align: center;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.95rem;
	margin: 0 0 24px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Slot machine frame */
.pickaboo-slot-machine {
	position: relative;
}

.pickaboo-slot-frame {
	position: relative;
	background: linear-gradient(180deg, #0d0505 0%, #1a0a0a 15%, #0d0505 85%, #1a0a0a 100%);
	border: 3px solid #8b6914;
	border-radius: 12px;
	padding: 12px;
	box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
	margin-bottom: 20px;
	overflow: hidden;
}

/* Jackpot-style window: gradient overlays so middle row is the "payline" */
.pickaboo-slot-frame::before,
.pickaboo-slot-frame::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	height: 33.333%;
	pointer-events: none;
	z-index: 3;
}
.pickaboo-slot-frame::before {
	top: 12px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
	border-radius: 10px 10px 0 0;
}
.pickaboo-slot-frame::after {
	bottom: 12px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
	border-radius: 0 0 10px 10px;
}

/* Overlay: 3 column reels (one wheel per column) during spin – visible gap between wheels */
.pickaboo-slot-reel-columns {
	display: none;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	column-gap: 18px;
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	min-height: 280px;
	box-sizing: border-box;
}

.pickaboo-slot-reel-columns.pickaboo-columns-visible {
	display: grid;
}

/* Each column (wheel): white background like a slot reel */
.pickaboo-slot-column {
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	background: linear-gradient(180deg, #fafafa 0%, #f0f0f0 50%, #e8e8e8 100%);
	border: 2px solid #c9a227;
	box-shadow:
		inset 0 0 0 1px rgba(0, 0, 0, 0.06),
		0 2px 8px rgba(0, 0, 0, 0.2);
	position: relative;
}

.pickaboo-slot-column::before,
.pickaboo-slot-column::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	height: 33.333%;
	pointer-events: none;
	z-index: 2;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.pickaboo-slot-column::before {
	top: 0;
	border-radius: 6px 6px 0 0;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
}

.pickaboo-slot-column::after {
	bottom: 0;
	border-radius: 0 0 6px 6px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
}

.pickaboo-slot-column .pickaboo-slot-reel-strip {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	will-change: transform;
}

/* Each row in the wheel: black background (slot window) */
.pickaboo-slot-column .pickaboo-slot-reel-strip-item {
	width: 100%;
	display: block;
	background: #000;
}

.pickaboo-slot-column .pickaboo-slot-reel-strip-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Main reel grid: visible gap between the three wheels (slot machine style) */
.pickaboo-slot-reel {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 12px 18px;
	min-height: 280px;
	position: relative;
	z-index: 1;
}

/* Each cell (row): black background; columns separated by gap */
.pickaboo-slot-cell {
	aspect-ratio: 1;
	background: #000;
	border: 2px solid #c9a227;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

/* Reel strip for vertical scrolling effect */
.pickaboo-slot-reel-strip {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	overflow: hidden;
	z-index: 1;
	will-change: transform;
}

.pickaboo-slot-reel-strip-item {
	width: 100%;
	display: block;
	flex-shrink: 0;
	position: relative;
}

.pickaboo-slot-reel-strip-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pickaboo-slot-cell.pickaboo-reel-spinning .pickaboo-slot-link,
.pickaboo-slot-cell.pickaboo-reel-spinning .pickaboo-slot-boo-score {
	opacity: 0;
	pointer-events: none;
	z-index: 0;
}

/* Jackpot effect: first and last rows blurred; middle row sharp (payline) */
/* First row: blurred and unclickable */
.pickaboo-slot-reel .pickaboo-slot-cell:nth-child(-n+3) {
	filter: blur(6px);
	opacity: 0.8;
	transform: scale(0.98);
}
.pickaboo-slot-reel .pickaboo-slot-cell:nth-child(-n+3) .pickaboo-slot-link {
	pointer-events: none;
	cursor: default;
}
/* Last row: blurred and unclickable */
.pickaboo-slot-reel .pickaboo-slot-cell:nth-child(n+7) {
	filter: blur(6px);
	opacity: 0.8;
	transform: scale(0.98);
}
.pickaboo-slot-reel .pickaboo-slot-cell:nth-child(n+7) .pickaboo-slot-link {
	pointer-events: none;
	cursor: default;
}
.pickaboo-slot-reel .pickaboo-slot-cell:nth-child(n+4):nth-child(-n+6) {
	filter: none;
	opacity: 1;
	transform: scale(1);
	box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.5);
	position: relative;
	z-index: 2;
}

.pickaboo-slot-cell.pickaboo-spinning {
	animation: pickaboo-cell-pulse 0.15s ease-in-out infinite;
}

@keyframes pickaboo-cell-pulse {
	0%, 100% { border-color: #5c3d0a; box-shadow: inset 0 0 15px rgba(0,0,0,0.6); }
	50%  { border-color: #c9a227; box-shadow: inset 0 0 20px rgba(201,162,39,0.3); }
}

.pickaboo-slot-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.pickaboo-slot-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #1a0808;
}

.pickaboo-slot-cell:not(.pickaboo-loaded) .pickaboo-slot-img {
	opacity: 0.3;
}

/* Boo Score on slot cells (upper-right corner) */
.pickaboo-slot-cell {
	position: relative;
}
.pickaboo-slot-boo-score {
	position: absolute;
	top: 4px;
	right: 4px;
	z-index: 2;
	min-width: 26px;
	padding: 2px 6px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.2;
	color: #1a0a0a;
	background: linear-gradient(135deg, #f4e4a6, #c9a227);
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.pickaboo-slot-boo-score.pickaboo-boo-score-visible {
	opacity: 1;
}

/* Spin button */
.pickaboo-spin-btn {
	display: block;
	width: 100%;
	max-width: 200px;
	margin: 0 auto;
	padding: 14px 28px;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.15em;
	color: #f4e4a6;
	background: #cf000000;
	border: 4px solid #f4e4a6;
	border-radius: 30px;
	cursor: pointer;
	box-shadow:
		0 4px 0 #5c3d0a,
		0 6px 20px rgba(0, 0, 0, 0.4);
	transition: transform 0.1s, box-shadow 0.1s;
}

.pickaboo-spin-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow:
		0 5px 0 #5c3d0a,
		0 8px 24px rgba(201, 162, 39, 0.4);
}

.pickaboo-spin-btn:active:not(:disabled) {
	transform: translateY(2px);
	box-shadow: 0 2px 0 #5c3d0a;
}

.pickaboo-spin-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.pickaboo-spin-btn.pickaboo-spinning {
	pointer-events: none;
	animation: pickaboo-btn-glow 0.6s ease-in-out infinite;
}

@keyframes pickaboo-btn-glow {
	0%, 100% { filter: brightness(1); }
	50%     { filter: brightness(1.2); }
}

.pickaboo-spin-remaining {
	text-align: center;
	margin: 10px 0 0;
	font-size: 0.9rem;
	color: rgba(244, 228, 166, 0.95);
	font-weight: 600;
	min-height: 1.4em;
}

.pickaboo-spin-hint {
	text-align: center;
	margin: 12px 0 0;
	font-size: 0.85rem;
	color: rgba(244, 228, 166, 0.7);
	min-height: 1.4em;
}

.pickaboo-spin-hint .pickaboo-upgrade-link {
	color: #f4e4a6;
	text-decoration: underline;
	font-weight: 600;
}

.pickaboo-spin-hint .pickaboo-upgrade-link:hover {
	color: #fff;
	text-decoration: underline;
}

.pickaboo-spin-empty {
	text-align: center;
	padding: 24px;
	color: rgba(244, 228, 166, 0.8);
}

.pickaboo-spin-empty p {
	margin: 0;
}
