/*
Theme Name: Lucky the Panda
Theme URI: https://luckythepanda.local
Author: Lucky the Panda
Description: Green & gold social casino block theme starring Lucky the Panda. Free-to-play branding, bold rounded typography, badge-style artwork.
Version: 1.1.0
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: luckythepanda
Tags: block-theme, full-site-editing, entertainment
*/

/* ---------- Global polish ---------- */
html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
}

/* No cream slivers between header / main / footer at the root level */
.wp-site-blocks > header,
.wp-site-blocks > main,
.wp-site-blocks > footer {
	margin-block-start: 0;
}

::selection {
	background: #FBBF24;
	color: #14532D;
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
	box-shadow: 0 4px 0 0 rgba(20, 83, 45, 0.35), 0 10px 24px -6px rgba(20, 83, 45, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 0 0 rgba(20, 83, 45, 0.35), 0 16px 32px -8px rgba(20, 83, 45, 0.45);
}

.wp-block-button__link:active {
	transform: translateY(1px);
	box-shadow: 0 2px 0 0 rgba(20, 83, 45, 0.35);
}

.is-style-ltp-outline .wp-block-button__link {
	background: transparent;
	border: 2px solid #FBBF24;
	color: #FBBF24;
	box-shadow: none;
}

.is-style-ltp-outline .wp-block-button__link:hover {
	background: #FBBF24;
	color: #14532D;
}

/* ---------- Header ---------- */
.ltp-header {
	box-shadow: 0 2px 12px rgba(11, 59, 33, 0.35);
	position: relative;
	z-index: 50;
}

.ltp-header .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.95rem;
}

.ltp-header .wp-block-navigation-item__content:hover {
	color: #FBBF24;
}

.ltp-logo-mark img {
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
}

/* ---------- Hero ---------- */
.ltp-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.ltp-hero::before,
.ltp-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	z-index: -1;
	pointer-events: none;
}

.ltp-hero::before {
	width: 60rem;
	height: 60rem;
	right: -20rem;
	top: -28rem;
	background: radial-gradient(circle, rgba(251, 191, 36, 0.14) 0%, transparent 65%);
}

.ltp-hero::after {
	width: 44rem;
	height: 44rem;
	left: -18rem;
	bottom: -24rem;
	background: radial-gradient(circle, rgba(22, 101, 52, 0.55) 0%, transparent 70%);
}

.ltp-hero-art img {
	filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
	animation: ltp-bob 5s ease-in-out infinite;
}

.ltp-float {
	position: absolute;
	z-index: 1;
	pointer-events: none;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
}

.ltp-float img {
	animation: ltp-bob 4s ease-in-out infinite;
}

.ltp-float-clover {
	top: 12%;
	left: 4%;
	width: clamp(48px, 6vw, 90px);
	transform: rotate(-12deg);
}

.ltp-float-diamond {
	bottom: 14%;
	left: 12%;
	width: clamp(40px, 5vw, 76px);
	transform: rotate(8deg);
}

.ltp-float-diamond img {
	animation-delay: 1.2s;
}

.ltp-float-horseshoe {
	top: 10%;
	right: 6%;
	width: clamp(52px, 6vw, 96px);
	transform: rotate(14deg);
}

.ltp-float-horseshoe img {
	animation-delay: 0.6s;
}

@keyframes ltp-bob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
	.ltp-hero-art img,
	.ltp-float img {
		animation: none;
	}
}

@media (max-width: 1499px) {
	.ltp-float {
		display: none;
	}
}

/* ---------- Cards ---------- */
.ltp-card {
	background: #FFFFFF;
	border-radius: 20px;
	box-shadow: 0 10px 30px -12px rgba(20, 83, 45, 0.25);
	border: 1px solid rgba(20, 83, 45, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ltp-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 44px -16px rgba(20, 83, 45, 0.35);
}

/* ---------- Game tiles ---------- */
.ltp-game-card {
	background: #FFFFFF;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 26px -12px rgba(20, 83, 45, 0.3);
	border: 1px solid rgba(20, 83, 45, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ltp-game-card:hover {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 24px 48px -16px rgba(20, 83, 45, 0.4);
}

.ltp-game-card img {
	width: 100%;
	height: auto;
	display: block;
	image-rendering: auto;
}

/* ---------- Testimonials ---------- */
.ltp-review {
	background: #FFFFFF;
	border-radius: 20px;
	border: 1px solid rgba(20, 83, 45, 0.1);
	box-shadow: 0 10px 30px -14px rgba(20, 83, 45, 0.25);
	height: 100%;
}

.ltp-stars {
	color: #FBBF24;
	letter-spacing: 0.15em;
	font-size: 1.1rem;
}

/* ---------- Tier badges ---------- */
.ltp-tier img {
	filter: drop-shadow(0 10px 20px rgba(20, 83, 45, 0.25));
	transition: transform 0.2s ease;
}

.ltp-tier:hover img {
	transform: translateY(-6px) scale(1.05);
}

/* ---------- Compliance band ---------- */
.ltp-compliance {
	border-top: 1px solid rgba(251, 191, 36, 0.35);
}

.ltp-compliance p {
	opacity: 0.85;
}

.ltp-age-chip {
	display: inline-block;
	border: 2px solid #FBBF24;
	color: #FBBF24;
	border-radius: 8px;
	padding: 0.1em 0.5em;
	font-weight: 800;
	font-family: var(--wp--preset--font-family--heading);
}

/* ---------- Footer ---------- */
.ltp-footer a:hover {
	color: #FBBF24;
}

/* ---------- Slot game ---------- */
.ltp-slot {
	max-width: 560px;
	margin: 2rem auto 0;
}

.ltp-slot-card {
	background: rgba(6, 32, 18, 0.85);
	border: 1px solid rgba(251, 191, 36, 0.35);
	border-radius: 24px;
	padding: 1.25rem;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.ltp-slot-top {
	display: flex;
	justify-content: space-between;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 14px;
	padding: 0.75rem 1rem;
	margin-bottom: 1rem;
}

.ltp-slot-right { text-align: right; }

.ltp-slot-label {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 251, 235, 0.6);
}

.ltp-slot-top strong {
	color: #FFFBEB;
	font-size: 1.15rem;
	font-family: var(--wp--preset--font-family--heading);
}

.ltp-slot-top strong.is-ready { color: #FBBF24; }

.ltp-slot-reels {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	background: rgba(0, 0, 0, 0.45);
	border-radius: 16px;
	padding: 10px;
}

.ltp-slot-col {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
}

/* fixed win-zone band over the middle visible row */
.ltp-slot-col::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: calc((100% - 20px) / 3 + 10px);
	height: calc((100% - 20px) / 3);
	border: 2px solid rgba(251, 191, 36, 0.55);
	border-radius: 12px;
	pointer-events: none;
	z-index: 2;
}

.ltp-slot-strip {
	display: flex;
	flex-direction: column;
	gap: 10px;
	will-change: transform;
}

.ltp-slot-cell {
	background: #FFFBEB;
	border-radius: 12px;
	aspect-ratio: 1;
	flex: none;
	min-height: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.ltp-slot-cell img {
	position: absolute;
	inset: 19%;
	width: 62%;
	height: 62%;
	object-fit: contain;
}

.ltp-slot-cell.is-hit {
	animation: ltp-hit 0.5s ease-in-out 3;
	outline: 3px solid #FBBF24;
	outline-offset: -3px;
}

.ltp-slot-strip.is-fast .ltp-slot-cell img {
	filter: blur(3px);
	transform: scaleY(1.06);
}

@keyframes ltp-hit {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.06); }
}

.ltp-slot-msg {
	text-align: center;
	margin: 1rem 0 0.75rem;
	font-weight: 700;
	color: rgba(255, 251, 235, 0.8);
	min-height: 1.5em;
}

.ltp-slot-msg.is-win { color: #FBBF24; }
.ltp-slot-msg.is-lose { color: rgba(255, 251, 235, 0.6); }

.ltp-slot-bet {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: rgba(0, 0, 0, 0.35);
	border-radius: 999px;
	padding: 0.4rem 0.5rem;
	margin-bottom: 0.9rem;
}

.ltp-slot-bet > div { text-align: center; }

.ltp-slot-bet strong {
	color: #FFFBEB;
	font-family: var(--wp--preset--font-family--heading);
}

.ltp-slot-step {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(251, 191, 36, 0.5);
	background: transparent;
	color: #FBBF24;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
}

.ltp-slot-step:hover { background: rgba(251, 191, 36, 0.15); }

.ltp-slot-spin {
	display: block;
	width: 100%;
	border: none;
	border-radius: 999px;
	background: #FBBF24;
	color: #14532D;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 0.9em;
	cursor: pointer;
	box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.35), 0 12px 28px -8px rgba(251, 191, 36, 0.5);
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.ltp-slot-spin:hover:not(:disabled) { transform: translateY(-2px); background: #FDE68A; }
.ltp-slot-spin:disabled { opacity: 0.45; cursor: not-allowed; }

.ltp-slot-bonuses {
	display: flex;
	gap: 0.6rem;
	margin-top: 0.9rem;
}

.ltp-slot-bonus {
	flex: 1;
	border-radius: 999px;
	border: 1px solid rgba(251, 191, 36, 0.5);
	background: transparent;
	color: #FDE68A;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0.7em 0.5em;
	cursor: pointer;
}

.ltp-slot-bonus:hover:not(:disabled) { background: rgba(251, 191, 36, 0.15); }
.ltp-slot-bonus:disabled { opacity: 0.4; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
	.ltp-slot-cell.is-hit { animation: none; }
}

/* ---------- Join modal ---------- */
body.ltp-modal-lock {
	overflow: hidden;
}

.ltp-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
}

.ltp-modal.is-open {
	display: block;
}

.ltp-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 32, 18, 0.8);
	backdrop-filter: blur(4px);
}

.ltp-modal-card {
	position: relative;
	max-width: 430px;
	margin: 6vh auto 0;
	max-height: 88vh;
	overflow-y: auto;
	overflow-x: hidden;
	background: linear-gradient(170deg, #14532D 0%, #0B3B21 100%);
	border: 1px solid rgba(251, 191, 36, 0.4);
	border-radius: 24px;
	padding: 2rem 1.75rem 1.25rem;
	text-align: center;
	color: #FFFBEB;
	box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
	animation: ltp-modal-in 0.25s ease-out;
}

@keyframes ltp-modal-in {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

.ltp-modal-x {
	position: absolute;
	top: 0.75rem;
	right: 0.9rem;
	background: none;
	border: none;
	color: rgba(255, 251, 235, 0.7);
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
}

.ltp-modal-x:hover { color: #FBBF24; }

.ltp-modal-logo {
	width: 84px;
	height: auto;
	margin: 0 auto 0.5rem;
}

.ltp-modal-title {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.6rem;
	color: #FFFFFF;
	margin: 0 0 0.25rem;
}

.ltp-modal-title span { color: #FBBF24; }

.ltp-modal-sub {
	font-size: 0.95rem;
	margin: 0 0 1.25rem;
	color: rgba(255, 251, 235, 0.85);
}

.ltp-modal-form label {
	display: block;
	text-align: left;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #FDE68A;
	margin-bottom: 0.9rem;
}

.ltp-modal-card,
.ltp-modal-card * {
	box-sizing: border-box;
}

.ltp-modal-form input[type="text"],
.ltp-modal-form input[type="email"] {
	display: block;
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.7em 1em;
	border-radius: 12px;
	border: 1px solid rgba(251, 191, 36, 0.35);
	background: rgba(0, 0, 0, 0.35);
	color: #FFFBEB;
	font-size: 1rem;
	font-family: var(--wp--preset--font-family--body);
}

.ltp-modal-form input:focus {
	outline: 2px solid #FBBF24;
	outline-offset: 0;
	border-color: transparent;
}

.ltp-modal-check {
	display: flex !important;
	gap: 0.5rem;
	align-items: flex-start;
	text-transform: none !important;
	letter-spacing: 0 !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 0.82rem !important;
	color: rgba(255, 251, 235, 0.85) !important;
}

.ltp-modal-check input { margin-top: 0.2em; }

.ltp-modal-check a { color: #FBBF24; }

.ltp-hp {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden;
	clip-path: inset(50%);
	opacity: 0;
	pointer-events: none;
}

.ltp-modal-err {
	color: #FCA5A5;
	font-size: 0.88rem;
	margin: 0 0 0.75rem;
}

.ltp-modal-submit {
	display: block;
	width: 100%;
	border: none;
	border-radius: 999px;
	background: #FBBF24;
	color: #14532D;
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 0.85em;
	cursor: pointer;
	box-shadow: 0 4px 0 0 rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease, background-color 0.15s ease;
}

.ltp-modal-submit:hover:not(:disabled) { transform: translateY(-2px); background: #FDE68A; }
.ltp-modal-submit:disabled { opacity: 0.6; cursor: wait; }

.ltp-modal-success .ltp-modal-big {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	font-size: 1.5rem;
	color: #FBBF24;
	margin: 0.5rem 0;
}

.ltp-modal-fine {
	font-size: 0.72rem;
	color: rgba(255, 251, 235, 0.55);
	margin: 1rem 0 0;
}

/* ---------- Misc ---------- */
.ltp-eyebrow {
	font-family: var(--wp--preset--font-family--heading);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-weight: 600;
}

.ltp-divider-gold {
	background: linear-gradient(90deg, transparent, #FBBF24, transparent);
	height: 3px;
	border: none;
}
