/* PtyLaunchpad — Spin & Win wheel + modal.
   Brand palette: navy #003087 · emerald #15803D · gold #CA8A04 · ink #162230. */

/* Floating launcher */
.pl-lotto-fab {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9998;
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .7em 1.1em;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #CA8A04, #b45309);
	color: #fff;
	font: 600 15px/1 Poppins, system-ui, sans-serif;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.pl-lotto-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .34); }

/* Modal */
.pl-lotto-modal[hidden] { display: none; }
.pl-lotto-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.pl-lotto-backdrop { position: absolute; inset: 0; background: rgba(9, 13, 20, .72); backdrop-filter: blur(3px); }
.pl-lotto-card {
	position: relative;
	width: min(440px, 100%);
	max-height: 92vh;
	overflow: auto;
	background: #fff;
	border-radius: 18px;
	padding: 26px 24px 20px;
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.pl-lotto-x {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
}
.pl-lotto-h { margin: 0 0 4px; font: 700 22px/1.2 Poppins, system-ui, sans-serif; color: #162230; }
.pl-lotto-sub { margin: 0 0 14px; color: #4b5563; font-size: 14px; }

/* Wheel */
.pl-lotto-wheelwrap { position: relative; width: 360px; max-width: 100%; margin: 0 auto 16px; }
#pl-lotto-wheel { width: 100%; height: auto; display: block; border-radius: 50%; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.pl-lotto-pointer {
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%);
	width: 0; height: 0;
	border-left: 15px solid transparent;
	border-right: 15px solid transparent;
	border-top: 26px solid #CA8A04;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3));
	z-index: 2;
}

/* Form */
.pl-lotto-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.pl-lotto-field { display: flex; flex-direction: column; gap: 4px; font: 600 13px Poppins, system-ui, sans-serif; color: #374151; }
.pl-lotto-field input {
	padding: .6em .7em;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	font-size: 15px;
}
.pl-lotto-field input:focus { outline: 2px solid #003087; border-color: #003087; }
.pl-lotto-btn {
	margin-top: 4px;
	padding: .8em 1em;
	border: 0;
	border-radius: 12px;
	background: #15803D;
	color: #fff;
	font: 700 16px Poppins, system-ui, sans-serif;
	letter-spacing: .04em;
	cursor: pointer;
	transition: background .15s ease, opacity .15s ease;
}
.pl-lotto-btn:hover { background: #166534; }
.pl-lotto-btn:disabled { opacity: .5; cursor: not-allowed; }
.pl-lotto-armed { margin: 6px 0 0; text-align: center; font-size: 13px; color: #6b7280; }

/* Result */
.pl-lotto-result { margin-top: 14px; }
.pl-lotto-win { font: 700 18px Poppins, system-ui, sans-serif; color: #15803D; margin: 0 0 8px; }
.pl-lotto-code {
	display: inline-block;
	margin: 4px 0;
	padding: .5em .8em;
	border: 2px dashed #CA8A04;
	border-radius: 10px;
	font: 700 20px/1 "SFMono-Regular", ui-monospace, monospace;
	letter-spacing: .08em;
	color: #162230;
}
.pl-lotto-note, .pl-lotto-lock, .pl-lotto-exp { font-size: 13px; color: #4b5563; margin: 6px 0 0; }
.pl-lotto-lock { color: #b45309; font-weight: 600; }
.pl-lotto-redeem { display: inline-block; margin-top: 12px; text-decoration: none; background: #003087; }
.pl-lotto-redeem:hover { background: #002569; }
.pl-lotto-err { color: #b91c1c; font-weight: 600; }
.pl-lotto-tc { margin: 14px 0 0; font-size: 12px; }
.pl-lotto-tc a { color: #6b7280; }

@media (max-width: 420px) {
	.pl-lotto-wheelwrap { width: 300px; }
	.pl-lotto-fab span { display: none; }
}
