/* =============================================================
   K9 King & Queen Contest — Landing Page Styles
   Allied Veterinary-inspired: navy + red, clean cards, professional
   ============================================================= */

/* ---- Breakout wrapper (escapes theme container on non-Elementor pages) ---- */
.pvl-wrap {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	overflow-x: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	color: #1a1a2e;
}

/* Elementor manages its own full-width layout — disable the breakout hack */
.elementor-page .pvl-wrap,
.e--ua-page .pvl-wrap {
	width: 100% !important;
	left: auto !important;
	right: auto !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	overflow-x: visible;
}

/* ---- Container ---- */
.pvl-container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 28px;
}
.pvl-container-form {
	max-width: 660px;
}

/* ---- Section base ---- */
.pvl-section {
	padding: 80px 28px;
}
.pvl-section-white { background: #ffffff; }
.pvl-section-light { background: #f4f6f9; }
.pvl-section-navy  { background: #0f1e3d; }
.pvl-section-red   { background: #c53030; }

/* ---- Section header ---- */
.pvl-section-head {
	text-align: center;
	margin-bottom: 52px;
}
.pvl-section-title {
	font-size: 34px;
	font-weight: 800;
	color: #0f1e3d;
	margin: 8px 0 14px;
	line-height: 1.15;
	letter-spacing: -.4px;
}
.pvl-section-title-light {
	color: #ffffff;
}
.pvl-section-sub {
	font-size: 16px;
	color: #5a6474;
	max-width: 560px;
	margin: 0 auto;
	line-height: 1.65;
}

/* ---- Eyebrow labels ---- */
.pvl-eyebrow {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #c53030;
	margin-bottom: 10px;
}
.pvl-eyebrow-light { color: rgba(255,255,255,.6); }
.pvl-eyebrow-red   { color: #c53030; }

/* ---- Buttons ---- */
.pvl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 30px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	font-family: inherit;
	letter-spacing: .3px;
	text-transform: uppercase;
	transition: background .15s, border-color .15s, color .15s, transform .1s;
	line-height: 1;
}
.pvl-btn:hover  { text-decoration: none; transform: translateY(-1px); }
.pvl-btn:active { transform: translateY(0); }

.pvl-btn-red   { background: #c53030; color: #fff; border-color: #c53030; }
.pvl-btn-red:hover { background: #a52828; border-color: #a52828; }

.pvl-btn-gold  { background: #c53030; color: #fff; border-color: #c53030; }
.pvl-btn-gold:hover { background: #a52828; border-color: #a52828; }

.pvl-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.pvl-btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

.pvl-btn-navy  { background: #0f1e3d; color: #fff; border-color: #0f1e3d; }
.pvl-btn-navy:hover { background: #162c5c; border-color: #162c5c; }

.pvl-btn-white { background: #fff; color: #0f1e3d; border-color: #fff; }
.pvl-btn-white:hover { background: #f0f0f0; border-color: #f0f0f0; }

/* =============================================================
   HERO
   ============================================================= */
.pvl-hero {
	position: relative;
	background: #0f1e3d;
	padding: 90px 28px 80px;
	text-align: center;
	overflow: hidden;
}

/* Subtle paw pattern */
.pvl-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 90 90'%3E%3Cg fill='%23ffffff' opacity='0.03'%3E%3Ccircle cx='22' cy='14' r='7'/%3E%3Ccircle cx='40' cy='10' r='6'/%3E%3Ccircle cx='58' cy='14' r='7'/%3E%3Ccircle cx='12' cy='32' r='6'/%3E%3Cellipse cx='38' cy='46' rx='15' ry='18'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: repeat;
	pointer-events: none;
}

.pvl-hero-inner {
	position: relative;
	z-index: 1;
}

.pvl-hero-title {
	font-size: clamp(38px, 5.5vw, 66px);
	font-weight: 900;
	color: #fff;
	margin: 10px 0 18px;
	line-height: 1.08;
	letter-spacing: -1px;
}
.pvl-hero-title-accent { color: #c53030; }

.pvl-hero-sub {
	font-size: 17px;
	color: rgba(255,255,255,.72);
	max-width: 560px;
	margin: 0 auto 36px;
	line-height: 1.65;
}

.pvl-hero-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 36px;
}

/* =============================================================
   ALERT BAR (below hero, like Allied's orange announcement bar)
   ============================================================= */
.pvl-alert-bar {
	background: #1a2d5a;
	border-top: 3px solid #c53030;
	padding: 14px 28px;
	text-align: center;
}
.pvl-alert-bar-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}
.pvl-alert-bar-text {
	font-size: 14px;
	color: rgba(255,255,255,.85);
	font-weight: 500;
	margin: 0;
}
.pvl-alert-bar-btn {
	display: inline-flex;
	align-items: center;
	padding: 7px 18px;
	background: #c53030;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	border-radius: 4px;
	text-decoration: none;
	transition: background .15s;
	white-space: nowrap;
}
.pvl-alert-bar-btn:hover { background: #a52828; text-decoration: none; color: #fff; }

/* =============================================================
   COUNTDOWN
   ============================================================= */
.pvl-countdown-wrap {
	margin: 0 auto 32px;
	display: inline-block;
}
.pvl-countdown-heading {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: rgba(255,255,255,.45);
	margin-bottom: 12px;
}
.pvl-countdown {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.pvl-cd-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.15);
	border-radius: 8px;
	padding: 14px 18px 11px;
	min-width: 72px;
}
.pvl-cd-num {
	font-size: 40px;
	font-weight: 800;
	color: #fff;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -1px;
}
.pvl-cd-label {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: rgba(255,255,255,.45);
	margin-top: 5px;
}
.pvl-cd-sep {
	font-size: 28px;
	font-weight: 300;
	color: rgba(255,255,255,.25);
	line-height: 1;
	margin-bottom: 16px;
}

/* =============================================================
   TRUST / STATS BAR
   ============================================================= */
.pvl-trust-bar {
	background: #fff;
	border-bottom: 1px solid #e8eaed;
	padding: 22px 28px;
}
.pvl-trust-bar-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	flex-wrap: wrap;
}
.pvl-trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 36px;
	border-right: 1px solid #e8eaed;
}
.pvl-trust-item:last-child { border-right: none; }
.pvl-trust-icon {
	font-size: 22px;
	flex-shrink: 0;
}
.pvl-trust-label {
	font-size: 13px;
	font-weight: 700;
	color: #0f1e3d;
	line-height: 1.3;
}
.pvl-trust-label small {
	display: block;
	font-weight: 400;
	font-size: 11px;
	color: #6b7280;
}

/* =============================================================
   HOW IT WORKS — Allied-style service cards
   ============================================================= */
.pvl-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.pvl-step {
	background: #fff;
	border: 1px solid #e5e9ef;
	border-radius: 10px;
	padding: 36px 28px;
	text-align: center;
	box-shadow: 0 2px 12px rgba(15,30,61,.06);
	transition: box-shadow .2s, transform .2s;
}
.pvl-step:hover {
	box-shadow: 0 6px 24px rgba(15,30,61,.1);
	transform: translateY(-2px);
}
.pvl-step-num {
	display: inline-block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1px;
	color: #c53030;
	background: #fef2f2;
	border: 1.5px solid #fecaca;
	border-radius: 20px;
	padding: 3px 10px;
	margin-bottom: 16px;
}
.pvl-step-icon {
	font-size: 42px;
	line-height: 1;
	margin-bottom: 18px;
	display: block;
}
.pvl-step-title {
	font-size: 17px;
	font-weight: 800;
	color: #0f1e3d;
	margin: 0 0 10px;
}
.pvl-step-desc {
	font-size: 13.5px;
	color: #5a6474;
	line-height: 1.65;
	margin: 0;
}
.pvl-step-learn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 18px;
	font-size: 12px;
	font-weight: 700;
	color: #c53030;
	text-transform: uppercase;
	letter-spacing: .5px;
	text-decoration: none;
	background: #fef2f2;
	padding: 7px 16px;
	border-radius: 4px;
	border: 1px solid #fecaca;
}
.pvl-step-learn:hover { background: #fee2e2; text-decoration: none; }

/* Hidden step arrows — replaced by card layout */
.pvl-step-arrow { display: none; }

/* =============================================================
   PRIZES / GIVEAWAY — clean white card style
   ============================================================= */
.pvl-section-prizes {
	background: #f4f6f9;
	padding: 80px 28px;
}
.pvl-prizes {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 60px;
	align-items: center;
}
.pvl-prizes-title {
	font-size: 34px;
	font-weight: 900;
	color: #0f1e3d;
	margin: 8px 0 18px;
	letter-spacing: -.4px;
	line-height: 1.1;
}
.pvl-prizes-desc {
	font-size: 15px;
	color: #4b5563;
	line-height: 1.75;
	margin: 0 0 24px;
}
.pvl-prizes-list {
	list-style: none;
	padding: 0;
	margin: 0 0 32px;
}
.pvl-prizes-list li {
	font-size: 14.5px;
	color: #374151;
	padding: 9px 0;
	border-bottom: 1px solid #e5e7eb;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 10px;
}
.pvl-prizes-list li:last-child { border-bottom: none; }

.pvl-prizes-card {
	display: flex;
	align-items: center;
	justify-content: center;
}
.pvl-trophy {
	background: #0f1e3d;
	border-radius: 14px;
	padding: 40px 40px;
	text-align: center;
	width: 100%;
}
.pvl-trophy-row {
	display: flex;
	align-items: center;
	gap: 12px;
	justify-content: center;
	padding: 14px 0;
}
.pvl-trophy-icon { font-size: 32px; }
.pvl-trophy-label {
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -.2px;
}
.pvl-trophy-divider {
	height: 1px;
	background: rgba(255,255,255,.15);
	margin: 4px 0;
}
.pvl-trophy-event {
	font-size: 11px;
	color: rgba(255,255,255,.5);
	font-weight: 700;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	margin-top: 20px;
}

/* =============================================================
   SPONSOR
   ============================================================= */
.pvl-sponsor {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 48px;
	align-items: center;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 2px 16px rgba(15,30,61,.06);
}
.pvl-sponsor-logo-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}
.pvl-sponsor-logo-placeholder {
	width: 150px;
	height: 150px;
	background: #f4f6f9;
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.pvl-sponsor-paw   { font-size: 34px; }
.pvl-sponsor-logo-name {
	font-size: 11px;
	font-weight: 700;
	color: #6b7280;
	text-align: center;
	line-height: 1.4;
}
.pvl-sponsor-badge-tag {
	display: inline-block;
	background: #fef2f2;
	color: #991b1b;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .8px;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 99px;
	border: 1px solid #fecaca;
}
.pvl-sponsor-name {
	font-size: 22px;
	font-weight: 800;
	color: #0f1e3d;
	margin: 0 0 6px;
}
.pvl-sponsor-tagline {
	font-size: 14px;
	color: #c53030;
	font-weight: 600;
	margin: 0 0 16px;
}
.pvl-sponsor-desc {
	font-size: 14.5px;
	color: #4b5563;
	line-height: 1.75;
	margin: 0 0 20px;
}
.pvl-sponsor-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.pvl-sponsor-tags span {
	background: #f4f6f9;
	color: #374151;
	font-size: 11.5px;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 99px;
	border: 1px solid #e5e7eb;
}
.pvl-sponsor-note {
	font-size: 12px;
	color: #9ca3af;
	text-align: center;
	margin: 20px 0 0;
	font-style: italic;
}

/* =============================================================
   EVENT / COMMUNITY — navy section, Allied-style
   ============================================================= */
.pvl-event {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 64px;
	align-items: center;
}
.pvl-event-photo-placeholder {
	width: 100%;
	aspect-ratio: 4/3;
	background: rgba(255,255,255,.05);
	border: 2px dashed rgba(255,255,255,.15);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
}
.pvl-event-photo-icon  { font-size: 48px; }
.pvl-event-photo-label {
	font-size: 14px;
	color: rgba(255,255,255,.45);
	font-weight: 500;
	line-height: 1.5;
}
.pvl-event-photo-label small { font-weight: 400; font-size: 12px; }

.pvl-event-title {
	font-size: 34px;
	font-weight: 900;
	color: #fff;
	margin: 8px 0 24px;
	letter-spacing: -.4px;
	line-height: 1.1;
}
.pvl-event-meta {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.pvl-event-meta-item {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}
.pvl-event-meta-icon {
	font-size: 20px;
	flex-shrink: 0;
	margin-top: 2px;
}
.pvl-event-meta-item strong {
	display: block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255,255,255,.45);
	margin-bottom: 2px;
}
.pvl-event-meta-item span {
	font-size: 16px;
	font-weight: 600;
	color: #fff;
}
.pvl-event-desc {
	font-size: 14.5px;
	color: rgba(255,255,255,.65);
	line-height: 1.8;
	margin: 0 0 32px;
}

/* =============================================================
   RULES STRIP
   ============================================================= */
.pvl-rules-strip {
	background: #07112a;
	border-top: 1px solid rgba(255,255,255,.07);
	padding: 20px 28px;
	text-align: center;
}
.pvl-rules-strip p {
	font-size: 11.5px;
	color: rgba(255,255,255,.3);
	margin: 0 auto;
	line-height: 1.75;
	max-width: 900px;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
	.pvl-steps {
		grid-template-columns: 1fr 1fr;
	}

	.pvl-prizes {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.pvl-prizes-card { order: -1; }
	.pvl-trophy { padding: 28px; }

	.pvl-sponsor {
		grid-template-columns: 1fr;
		gap: 28px;
		text-align: center;
	}
	.pvl-sponsor-tags { justify-content: center; }

	.pvl-event {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.pvl-trust-item {
		padding: 8px 20px;
	}
}

@media (max-width: 640px) {
	.pvl-section { padding: 56px 20px; }
	.pvl-section-prizes { padding: 56px 20px; }
	.pvl-hero    { padding: 64px 20px 60px; }

	.pvl-section-title { font-size: 26px; }

	.pvl-steps { grid-template-columns: 1fr; }

	.pvl-cd-block { min-width: 60px; padding: 11px 14px 9px; }
	.pvl-cd-num   { font-size: 32px; }
	.pvl-cd-sep   { font-size: 22px; }
	.pvl-countdown { gap: 6px; }

	.pvl-hero-actions { flex-direction: column; align-items: center; }
	.pvl-btn { width: 100%; max-width: 300px; }

	.pvl-sponsor { padding: 24px 20px; }

	.pvl-trust-bar-inner { gap: 0; }
	.pvl-trust-item { padding: 8px 16px; border-right: none; border-bottom: 1px solid #e8eaed; width: 100%; justify-content: center; }
	.pvl-trust-item:last-child { border-bottom: none; }

	.pvl-alert-bar-inner { flex-direction: column; gap: 10px; }
}

/* =============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================= */

/* Reset Elementor's default link/button overrides inside our components */
.elementor-page .pvl-btn,
.elementor-page .pvl-step-learn,
.elementor-page .pvl-alert-bar-btn {
	display: inline-flex !important;
	text-decoration: none !important;
}
.elementor-page .pvl-btn:hover,
.elementor-page .pvl-step-learn:hover,
.elementor-page .pvl-alert-bar-btn:hover {
	text-decoration: none !important;
}

/* Prevent Elementor column padding from breaking our grids */
.elementor-page .pvl-steps,
.elementor-page .pvl-prizes,
.elementor-page .pvl-sponsor,
.elementor-page .pvl-event {
	box-sizing: border-box;
}

/* Elementor sections used as wrappers — let our sections control padding/bg */
.elementor-page .elementor-section.pvl-section,
.elementor-page .elementor-container.pvl-container {
	padding: 0;
	max-width: none;
}

/* Trust bar and alert bar inside Elementor flex sections */
.elementor-page .pvl-trust-bar-inner,
.elementor-page .pvl-alert-bar-inner {
	width: 100%;
}

/* Elementor editor preview — make our PHP template visible in iframe */
.elementor-editor-active .pvl-hero {
	min-height: 400px;
}

/* Ensure our form renders correctly inside Elementor's Shortcode widget */
.elementor-widget-shortcode .pvc-form-wrap {
	max-width: 100%;
}
.elementor-widget-shortcode .pvc-gallery-wrap {
	max-width: 100%;
}

/* =============================================================
   v2 — K9 KING & QUEEN TEMPLATE ADDITIONS
   templates/page-contest-landing.php. Scoped to .mgc and built
   from the template's own --mgc-* tokens, so the original poster
   design is untouched; these only style the new v2 states.
   ============================================================= */

/* Hero badge: non-live phases reuse the red pill without the pulsing dot
   (.mgc-live--static needs no extra rule); the winners phase goes gold. */
.mgc .mgc-live--gold { background: var(--mgc-gold); color: var(--mgc-ink); border-color: var(--mgc-cream); }

/* Winners section (shown once winners are declared). */
.mgc .mgc-winners { background: var(--mgc-paper-deep); border-bottom: var(--mgc-border); }
.mgc .mgc-boardcard--winners { box-shadow: 10px 10px 0 var(--mgc-gold); }
.mgc .mgc-boardcard--winners .mgc-boardcard__banner { background: var(--mgc-red); }
/* [pet_contest_winners] cards, restyled as poster cards. */
.mgc .pvc-winner-card { background: var(--mgc-card); border: var(--mgc-border); border-radius: 10px; box-shadow: 8px 8px 0 var(--mgc-gold); }
.mgc .pvc-winner-photo { border-bottom: var(--mgc-border); }
.mgc .pvc-winner-name { font-family: var(--mgc-font-display); font-weight: 400; text-transform: uppercase; color: var(--mgc-ink); }
.mgc .pvc-winner-name a { color: var(--mgc-ink); }
.mgc .pvc-winner-badge { background: var(--mgc-gold); color: var(--mgc-ink); border: 2px solid var(--mgc-ink); font-family: var(--mgc-font-wood); font-weight: 700; letter-spacing: .14em; box-shadow: 3px 3px 0 var(--mgc-ink); }
.mgc .pvc-winners-date { color: var(--mgc-ink-soft); font-style: italic; }
.mgc .pvc-winner-cat { display: none; } /* the badge already reads "Canine King Winner" */
/* "To be announced" card: a crown left vacant after the declaration (winner disqualified / removed)
   keeps its place until a new winner is declared — the mystery poster art in the photo slot. */
.mgc .pvc-winner-photo--pending { display: grid; place-items: center; box-sizing: content-box; padding-top: 0; aspect-ratio: 4 / 3; background-color: var(--mgc-ink); background-image: radial-gradient(rgba(247, 239, 222, .1) 1.6px, transparent 1.6px); background-size: 18px 18px; }
@supports not (aspect-ratio: 1 / 1) { .mgc .pvc-winner-photo--pending { height: 190px; } }

/* Winners announcement (shown in every phase until winners are declared): the standings board
   card with a red banner, a cream countdown and one poster "mystery" card per category. */
.mgc .mgc-announce { background: var(--mgc-paper-deep); border-top: var(--mgc-border); }
.mgc .mgc-boardcard--announce { box-shadow: 10px 10px 0 var(--mgc-gold); }
.mgc .mgc-boardcard--announce .mgc-boardcard__banner { background: var(--mgc-red); }
.mgc .mgc-announce .mgc-count__label { margin: 0 0 14px; color: var(--mgc-red); }
.mgc .mgc-announce .mgc-count { gap: 12px; flex-wrap: nowrap; }
.mgc .mgc-announce .mgc-count__cell { flex: 0 1 96px; min-width: 0; box-shadow: 5px 5px 0 var(--mgc-gold); }
.mgc .mgc-announce__when { margin: 16px 0 0; text-align: center; font-family: var(--mgc-font-wood); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mgc-ink-soft); }
.mgc .mgc-mystery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin: 34px 0 6px; padding: 0; list-style: none; }
.mgc .mgc-mystery__card { position: relative; margin: 0; padding: 0; background: var(--mgc-paper); border: var(--mgc-border); border-radius: 10px; box-shadow: 8px 8px 0 var(--mgc-gold); text-align: center; }
.mgc .mgc-mystery__card::before { content: none; }
.mgc .mgc-mystery__art { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-bottom: var(--mgc-border); border-radius: 7px 7px 0 0; background-color: var(--mgc-ink); background-image: radial-gradient(rgba(247, 239, 222, .1) 1.6px, transparent 1.6px); background-size: 18px 18px; overflow: hidden; }
@supports not (aspect-ratio: 1 / 1) { .mgc .mgc-mystery__art { height: 190px; } }
.mgc .mgc-mystery__q { font-family: var(--mgc-font-display); font-size: clamp(4.4rem, 12vw, 6.4rem); line-height: 1; color: var(--mgc-gold); text-shadow: 5px 5px 0 var(--mgc-red); }
.mgc .mgc-mystery__crown { position: absolute; top: 12%; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 1.9rem; line-height: 1; opacity: .9; }
.mgc .mgc-mystery__title { margin: 0; padding: 18px 16px 20px; font-family: var(--mgc-font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.15; text-transform: uppercase; color: var(--mgc-ink); }
.mgc .mgc-mystery__sticker { position: absolute; z-index: 2; top: -14px; right: 14px; transform: rotate(5deg); font-family: var(--mgc-font-wood); font-weight: 700; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; background: var(--mgc-gold); color: var(--mgc-ink); border: 3px solid var(--mgc-ink); border-radius: 6px; padding: 5px 12px; box-shadow: 3px 3px 0 rgba(4, 16, 46, .5); white-space: nowrap; }
@media (max-width: 560px) {
	.mgc .mgc-announce .mgc-count { gap: 8px; }
	.mgc .mgc-announce .mgc-count__cell { padding: 12px 4px 8px; box-shadow: 4px 4px 0 var(--mgc-gold); }
	.mgc .mgc-announce .mgc-count__num { font-size: 1.9rem; }
	.mgc .mgc-announce .mgc-count__unit { letter-spacing: .14em; }
}

/* Road to the crown: "Up next" stop. */
.mgc .mgc-stop--next .mgc-stop__dot { border-style: dashed; border-color: var(--mgc-red); }

/* Rules band: confirmed disclaimer / full rules text / rules link. */
.mgc .mgc-rules a { color: var(--mgc-cream); text-decoration: underline; text-underline-offset: 3px; }
.mgc .mgc-rules a:hover { color: var(--mgc-gold); }
.mgc .mgc-rules__disclaimer,
.mgc .mgc-rules__full { max-width: 900px; margin: 14px auto 0; padding-top: 14px; border-top: 1px solid rgba(185, 178, 160, .25); }
.mgc .mgc-rules__disclaimer { font-style: italic; }
.mgc .mgc-rules__disclaimer p,
.mgc .mgc-rules__full p { margin: 0 auto; }
.mgc .mgc-rules__disclaimer p + p,
.mgc .mgc-rules__full p + p { margin-top: 10px; }
.mgc .mgc-rules__full,
.mgc .mgc-rules__full * { color: inherit; font-size: inherit; line-height: inherit; }
.mgc .mgc-rules__full strong { color: var(--mgc-cream); }
.mgc .mgc-rules__full h2,
.mgc .mgc-rules__full h3,
.mgc .mgc-rules__full h4 { margin: 16px 0 6px; font-family: var(--mgc-font-wood); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mgc-cream); }
.mgc .mgc-rules__full ul,
.mgc .mgc-rules__full ol { display: inline-block; margin: 6px auto; padding-left: 1.2em; text-align: left; }

/* Vote modal. v1 printed it inside .mgc, so it inherited the poster's body font and ink colour;
   v2 prints it once in wp_footer, outside .mgc. The K9 template adds body.mgc-body (which the
   brand layer in pvc-frontend.css skips) so the dialog gets the v1 look back. */
.mgc-body .pvc-modal-dialog { font-family: var(--mgc-font-body); color: var(--mgc-ink); }

/* Disabled vote buttons ("Voting closed" / "Voting opens …") keep the v1 red poster button
   (v1: the inline button.pvc-btn.pvc-btn-vote rule + .pvc-btn:disabled opacity), whatever
   state classes newer frontend styles add. */
.mgc button.pvc-btn.pvc-btn-vote:disabled {
	background: var(--mgc-red);
	color: var(--mgc-cream);
	border: var(--mgc-border);
	box-shadow: 5px 5px 0 var(--mgc-ink);
}

/* Admin-only preview notes. */
.mgc .mgc-adminnote { padding: 10px 24px; background: var(--mgc-gold); color: var(--mgc-ink); border-bottom: var(--mgc-border); text-align: center; font-family: var(--mgc-font-wood); font-weight: 600; letter-spacing: .04em; font-size: .9rem; line-height: 1.5; }
.mgc .mgc-adminnote p { margin: 0; }
.mgc .mgc-adminnote a { color: var(--mgc-ink); text-decoration: underline; }

/* =============================================================
   v2 — CLASSIC LANDING DESIGN
   templates/landing-classic.php (also the empty state).
   Theme-friendly: inherits the theme's fonts and text colour,
   uses translucent neutrals so it works on light or dark themes.
   Buttons/accents follow the plugin brand colours (Settings → Brand,
   printed as --pvc-accent by pvc-frontend), with hex fallbacks.
   ============================================================= */
.pvcc {
	--pvcc-accent: var(--pvc-accent, #D81213);
	--pvcc-accent-contrast: var(--pvc-accent-contrast, #FFFFFF);
	--pvcc-surface: rgba(127, 127, 127, .07);
	--pvcc-border: rgba(127, 127, 127, .28);
	--pvcc-radius: 14px;
	font-family: inherit;
	color: inherit;
	line-height: 1.6;
}
.pvcc,
.pvcc *,
.pvcc *::before,
.pvcc *::after { box-sizing: border-box; }
.pvcc img { max-width: 100%; height: auto; }
.pvcc-wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .pvcc-wrap { padding: 0 24px; } }

.pvcc-adminnote { padding: 10px 16px; background: #fef3c7; color: #78350f; border-bottom: 1px solid #fcd34d; text-align: center; font-size: 14px; line-height: 1.5; }
.pvcc-adminnote p { margin: 0; }
.pvcc-adminnote a { color: #78350f; font-weight: 700; text-decoration: underline; }

.pvcc-hero { padding: 48px 0 44px; text-align: center; border-bottom: 1px solid var(--pvcc-border); }
@media (min-width: 768px) { .pvcc-hero { padding: 72px 0 60px; } }
.pvcc .pvcc-phase {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 5px 14px;
	border: 1px solid var(--pvcc-border);
	border-radius: 999px;
	background: var(--pvcc-surface);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.4;
	text-transform: uppercase;
}
.pvcc-phase__dot { width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.pvcc-phase--submissions .pvcc-phase__dot,
.pvcc-phase--voting .pvcc-phase__dot { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.pvcc-phase--pre_submissions .pvcc-phase__dot,
.pvcc-phase--pre_voting .pvcc-phase__dot { background: #2563eb; }
.pvcc-phase--winners .pvcc-phase__dot { background: #d97706; }
.pvcc-phase--closed .pvcc-phase__dot { background: #dc2626; }
.pvcc .pvcc-title { margin: 16px auto 10px; max-width: 900px; font-size: clamp(2rem, 5.4vw, 3.3rem); line-height: 1.1; text-wrap: balance; }
.pvcc .pvcc-tagline { max-width: 660px; margin: 0 auto; font-size: 1.15rem; opacity: .85; }
.pvcc .pvcc-banner {
	max-width: 660px;
	margin: 24px auto 0;
	padding: 12px 16px;
	border: 1px solid var(--pvcc-border);
	border-left: 4px solid var(--pvcc-accent);
	border-radius: 10px;
	background: var(--pvcc-surface);
	text-align: left;
}

.pvcc .pvcc-countdown__label { margin: 26px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.pvcc-countdown { display: flex; justify-content: center; gap: 8px; }
.pvcc-countdown__cell { min-width: 68px; padding: 10px 6px 8px; border: 1px solid var(--pvcc-border); border-radius: 12px; background: var(--pvcc-surface); text-align: center; }
.pvcc-countdown__num { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pvcc-countdown__unit { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.pvcc-countdown.is-complete .pvcc-countdown__num { opacity: .55; }
.pvcc .pvcc-countdown__done { display: none; margin: 10px 0 0; font-weight: 700; }
.pvcc-countdown.is-complete ~ .pvcc-countdown__done { display: block; }
@media (min-width: 640px) {
	.pvcc-countdown { gap: 12px; }
	.pvcc-countdown__cell { min-width: 84px; }
	.pvcc-countdown__num { font-size: 2.4rem; }
}

.pvcc .pvcc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 0; }
.pvcc .pvcc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 11px 22px;
	border: 2px solid var(--pvcc-accent);
	border-radius: 10px;
	background: var(--pvcc-accent);
	color: var(--pvcc-accent-contrast);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: filter .15s ease, transform .1s ease;
}
.pvcc .pvcc-btn:hover,
.pvcc .pvcc-btn:focus-visible { filter: brightness(.92); color: var(--pvcc-accent-contrast); text-decoration: none; }
.pvcc .pvcc-btn:active { transform: translateY(1px); }
.pvcc .pvcc-btn--ghost { background: transparent; color: inherit; border-color: var(--pvcc-border); }
.pvcc .pvcc-btn--ghost:hover,
.pvcc .pvcc-btn--ghost:focus-visible { background: var(--pvcc-surface); color: inherit; filter: none; }
.pvcc :focus-visible { outline: 3px solid var(--pvcc-accent); outline-offset: 2px; }
@media (max-width: 480px) { .pvcc .pvcc-actions .pvcc-btn { width: 100%; } }

.pvcc-section { padding: 48px 0; border-bottom: 1px solid var(--pvcc-border); }
.pvcc-section:last-child { border-bottom: 0; }
@media (min-width: 768px) { .pvcc-section { padding: 64px 0; } }
.pvcc [id^="pvcc-"] { scroll-margin-top: 24px; }
.pvcc .pvcc-h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.2; text-align: center; text-wrap: balance; }
.pvcc .pvcc-lede { max-width: 660px; margin: 0 auto 28px; text-align: center; opacity: .85; }
.pvcc-content { max-width: 760px; margin: 0 auto; }
.pvcc-content > :first-child { margin-top: 0; }
.pvcc-content > :last-child { margin-bottom: 0; }
.pvcc-media { max-width: 900px; margin: 0 auto 28px; }
.pvcc-media img { display: block; width: 100%; border-radius: var(--pvcc-radius); }
.pvcc-card { max-width: 720px; margin: 0 auto; padding: 24px 18px; border: 1px solid var(--pvcc-border); border-radius: var(--pvcc-radius); background: var(--pvcc-surface); }
@media (min-width: 640px) { .pvcc-card { padding: 32px; } }
.pvcc-closed { text-align: center; }
.pvcc-closed p { margin: 0; }

/* Empty state */
.pvcc--empty { padding: 56px 0; }
.pvcc-empty { max-width: 640px; margin: 0 auto; padding: 44px 22px; border: 2px dashed var(--pvcc-border); border-radius: 18px; text-align: center; }
.pvcc-empty__icon { display: block; margin-bottom: 8px; font-size: 3rem; line-height: 1; }
.pvcc .pvcc-empty__title { margin: 0 0 10px; font-size: clamp(1.6rem, 4.4vw, 2.3rem); line-height: 1.2; }
.pvcc-empty p { margin: 0 0 10px; }
.pvcc-empty__admin { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--pvcc-border); font-size: 15px; }
.pvcc-empty__admin .pvcc-actions { margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
	.pvcc .pvcc-btn { transition: none; }
}
