/**
 * Pro Ace — fan polls, alerts bell, toast, alerts ask (2026-09-24).
 */

/* ---------------- Fan poll ---------------- */
.proace-poll {
	--pp-ink: #eaf4ff;
	--pp-muted: rgba( 234, 244, 255, 0.62 );
	--pp-line: rgba( 255, 255, 255, 0.12 );
	--pp-gold: #ffb020;
	position: relative;
	margin: 0 0 18px;
	padding: 18px;
	border: 1px solid var( --pp-line );
	border-radius: 18px;
	background:
		radial-gradient( 80% 120% at 100% 0%, rgba( 255, 176, 32, 0.12 ), transparent 60% ),
		linear-gradient( 160deg, #102a52, #0b1a33 );
	color: var( --pp-ink );
	box-shadow: 0 14px 30px -18px rgba( 0, 0, 0, 0.7 );
}
.proace-poll__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var( --pp-gold ) !important;
	font: 700 11px/1 'JetBrains Mono', Consolas, monospace !important;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.proace-poll .proace-poll__q {
	margin: 8px 0 12px !important;
	color: #fff !important;
	font: 800 18px/1.3 'Outfit', 'PT Sans', sans-serif !important;
}
.proace-poll__opts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.proace-poll__opt {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	overflow: hidden;
	border: 1px solid var( --pp-line );
	border-radius: 12px;
	background: rgba( 255, 255, 255, 0.05 );
	color: var( --pp-ink ) !important;
	font: 700 15px/1.25 'Outfit', 'PT Sans', sans-serif !important;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.proace-poll__opt:not( :disabled ):hover,
.proace-poll__opt:not( :disabled ):focus-visible {
	border-color: var( --pp-gold );
	background: rgba( 255, 176, 32, 0.1 );
	transform: translateY( -1px );
}
.proace-poll__opt:focus-visible {
	outline: 2px solid var( --pp-gold );
	outline-offset: 2px;
}
.proace-poll__opt:disabled {
	cursor: default;
}
.proace-poll__bar {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: linear-gradient( 90deg, rgba( 58, 134, 224, 0.45 ), rgba( 58, 134, 224, 0.2 ) );
	transition: width 0.9s cubic-bezier( 0.22, 1, 0.36, 1 );
}
.proace-poll__opt.is-mine .proace-poll__bar {
	background: linear-gradient( 90deg, rgba( 255, 176, 32, 0.55 ), rgba( 255, 176, 32, 0.2 ) );
}
.proace-poll__opt.is-mine {
	border-color: var( --pp-gold );
}
.proace-poll__opt.is-mine .proace-poll__label::after {
	content: ' ✓';
	color: var( --pp-gold );
}
.proace-poll__label,
.proace-poll__pct {
	position: relative;
}
.proace-poll__pct {
	font-family: 'JetBrains Mono', Consolas, monospace;
	font-size: 14px;
}
.proace-poll .proace-poll__meta {
	margin: 10px 0 0 !important;
	color: var( --pp-muted ) !important;
	font: 600 12px/1.4 'JetBrains Mono', Consolas, monospace !important;
}
.proace-poll--inline {
	margin: 28px 0 8px;
}

/* ---------------- Alerts bell (Scores strip / Live page) ---------------- */
.pal-bell {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	min-height: 30px;
	padding: 0 11px;
	border: 1px solid rgba( 255, 255, 255, 0.14 );
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.05 );
	color: #eaf4ff;
	font: 700 12px/1 'Outfit', 'PT Sans', sans-serif;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pal-bell[hidden] {
	display: none;
}
.pal-bell svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
}
.pal-bell:hover,
.pal-bell:focus-visible {
	border-color: #ffb020;
	color: #ffb020;
}
.pal-bell:focus-visible {
	outline: 2px solid #ffb020;
	outline-offset: 2px;
}
.pal-bell.is-on {
	border-color: transparent;
	background: #ffb020;
	color: #1a1200;
}
.pal-page__bar .pal-bell {
	min-height: 38px;
}

/* ---------------- Toast + ask ---------------- */
.proace-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 99999;
	max-width: min( 92vw, 440px );
	padding: 11px 18px;
	border: 1px solid rgba( 255, 176, 32, 0.45 );
	border-radius: 999px;
	background: #0b1a33;
	box-shadow: 0 14px 34px rgba( 0, 0, 0, 0.45 );
	color: #eaf4ff;
	font: 600 14px/1.35 'Outfit', 'PT Sans', sans-serif;
	text-align: center;
	opacity: 0;
	transform: translate( -50%, 12px );
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: none;
}
.proace-toast.is-on {
	opacity: 1;
	transform: translate( -50%, 0 );
}
.proace-ask {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99998;
	width: min( 92vw, 340px );
	padding: 16px 18px;
	border: 1px solid rgba( 255, 176, 32, 0.4 );
	border-radius: 18px;
	background: linear-gradient( 160deg, #123061, #0b1a33 );
	box-shadow: 0 22px 50px rgba( 0, 0, 0, 0.55 );
	color: #eaf4ff;
	font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
	opacity: 0;
	transform: translateY( 16px );
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.proace-ask.is-on {
	opacity: 1;
	transform: none;
}
.proace-ask strong {
	display: block;
	font: 800 16px/1.3 'Outfit', 'PT Sans', sans-serif;
	color: #fff;
}
.proace-ask p {
	margin: 6px 0 12px;
	color: rgba( 234, 244, 255, 0.75 );
	font-size: 13.5px;
	line-height: 1.45;
}
.proace-ask__row {
	display: flex;
	gap: 8px;
}
.proace-ask__yes,
.proace-ask__no {
	min-height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	font: 700 13px/1 'Outfit', 'PT Sans', sans-serif;
	cursor: pointer;
}
.proace-ask__yes {
	border: 0;
	background: linear-gradient( 135deg, #ffc94d, #ffb020 );
	color: #1a1200;
}
.proace-ask__no {
	border: 1px solid rgba( 255, 255, 255, 0.2 );
	background: transparent;
	color: #eaf4ff;
}
.proace-ask__yes:focus-visible,
.proace-ask__no:focus-visible {
	outline: 2px solid #ffb020;
	outline-offset: 2px;
}

@media ( max-width: 767px ) {
	.proace-ask {
		right: 50%;
		bottom: 14px;
		transform: translate( 50%, 16px );
	}
	.proace-ask.is-on {
		transform: translate( 50%, 0 );
	}
}
@media ( prefers-reduced-motion: reduce ) {
	.proace-poll__bar,
	.proace-poll__opt,
	.proace-toast,
	.proace-ask {
		transition: none;
	}
}
