/* Yagya Mantra Tracker — Frontend Styles
   Warm devotional palette (saffron / maroon / gold), driven by CSS
   custom properties set inline from the site's one event palette. */

.ymt-widget {
	--ymt-primary: #e26313;
	--ymt-secondary: #7a1f2b;
	--ymt-accent: #d4af37;
	--ymt-bg: #fffaf3;
	--ymt-text: #2b1a12;
	--ymt-radius: 16px;

	box-sizing: border-box;
	font-family: inherit;
	color: var(--ymt-text);
	background: var(--ymt-bg);
	border: 1px solid rgba(226, 99, 19, 0.15);
	border-radius: var(--ymt-radius);
	padding: 28px;
	max-width: 100%;
}

.ymt-widget * {
	box-sizing: border-box;
}

/* ---------- Event Header ---------- */
.ymt-event-header {
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ymt-header-poster {
	width: 100%;
	aspect-ratio: 16 / 7;
	overflow: hidden;
	background: linear-gradient(135deg, var(--ymt-primary), var(--ymt-secondary));
}

.ymt-header-poster img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ymt-header-content {
	padding: 24px 28px 28px;
	position: relative;
}

.ymt-status-badge {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	background: var(--ymt-primary);
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 12px;
}

.ymt-status-ended .ymt-status-badge {
	background: #8a8a8a;
}

.ymt-header-title {
	margin: 0 0 6px;
	font-size: clamp(24px, 4vw, 34px);
	font-weight: 800;
	line-height: 1.15;
	color: var(--ymt-secondary);
	font-family: Georgia, "Times New Roman", serif;
}

.ymt-header-subtitle {
	margin: 0 0 10px;
	font-size: 16px;
	color: #6b5347;
}

.ymt-header-dates {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: #8a7365;
	margin: 0;
}

/* ---------- Mantra Display ---------- */
.ymt-mantra-display {
	text-align: center;
	background: linear-gradient(180deg, #fffaf3 0%, #fdf1de 100%);
	border: 1px solid rgba(212, 175, 55, 0.35);
}

.ymt-mantra-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--ymt-accent);
	margin-bottom: 10px;
}

.ymt-mantra-text {
	font-size: clamp(18px, 3vw, 26px);
	font-weight: 600;
	line-height: 1.6;
	color: var(--ymt-secondary);
	font-family: Georgia, "Times New Roman", serif;
}

.ymt-mantra-text p {
	margin: 0 0 0.6em;
}
.ymt-mantra-text p:last-child {
	margin-bottom: 0;
}

/* ---------- Description ---------- */
.ymt-description-content {
	font-size: 15.5px;
	line-height: 1.75;
	color: var(--ymt-text);
}

.ymt-description-content p:first-child {
	margin-top: 0;
}
.ymt-description-content p:last-child {
	margin-bottom: 0;
}

/* ---------- Video ---------- */
.ymt-video-wrap {
	padding: 0;
	overflow: hidden;
	background: #000;
}

.ymt-video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
}

.ymt-video-embed iframe,
.ymt-video-embed video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* ---------- Gallery ---------- */
.ymt-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 10px;
}

.ymt-gallery-item {
	display: block;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	overflow: hidden;
	cursor: zoom-in;
}

.ymt-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.2s ease;
}

.ymt-gallery-item:hover img {
	transform: scale(1.06);
}

.ymt-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 10, 5, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 24px;
	cursor: zoom-out;
}

.ymt-lightbox-overlay img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.ymt-lightbox-close {
	position: absolute;
	top: 20px;
	right: 28px;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	background: none;
	border: none;
}

/* ---------- Downloads ---------- */
.ymt-downloads-list {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ymt-downloads-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	background: #fff;
	border: 1px solid #f1e4d3;
	border-radius: 10px;
	text-decoration: none;
	color: var(--ymt-secondary);
	font-weight: 600;
	font-size: 14px;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.ymt-downloads-list a:hover {
	border-color: var(--ymt-primary);
	background: rgba(226, 99, 19, 0.05);
}

.ymt-download-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ymt-primary);
	color: #fff;
	font-size: 14px;
	flex: 0 0 auto;
}

/* ---------- Submission Form ---------- */
.ymt-submission-form {
	background: #fff;
}

.ymt-form-label {
	display: block;
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 14px;
	color: var(--ymt-secondary);
}

.ymt-quick-amounts {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.ymt-quick-btn {
	border: 1.5px solid var(--ymt-primary);
	background: rgba(226, 99, 19, 0.06);
	color: var(--ymt-primary);
	font-weight: 700;
	padding: 8px 18px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.15s ease;
}

.ymt-quick-btn:hover,
.ymt-quick-btn.is-active {
	background: var(--ymt-primary);
	color: #fff;
}

.ymt-form-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.ymt-input {
	flex: 1 1 200px;
	min-width: 0;
	padding: 13px 16px;
	font-size: 16px;
	border: 1.5px solid #e6d8ca;
	border-radius: 10px;
	background: #fffdfb;
	color: var(--ymt-text);
}

.ymt-input:focus {
	outline: none;
	border-color: var(--ymt-primary);
	box-shadow: 0 0 0 3px rgba(226, 99, 19, 0.15);
}

.ymt-btn,
.ymt-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, var(--ymt-primary), var(--ymt-secondary));
	color: #fff;
	border: none;
	font-weight: 700;
	font-size: 15px;
	padding: 13px 26px;
	border-radius: 10px;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.ymt-btn:hover,
.ymt-submit-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(122, 31, 43, 0.25);
}

.ymt-btn-secondary {
	background: #fff;
	background-image: none;
	color: var(--ymt-secondary);
	border: 1.5px solid var(--ymt-secondary);
	box-shadow: none;
}

.ymt-btn-secondary:hover {
	background: rgba(122, 31, 43, 0.06);
	box-shadow: none;
}

.ymt-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.ymt-form-message {
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
	min-height: 1em;
}

.ymt-form-message.is-success { color: #1e7e34; }
.ymt-form-message.is-pending { color: #a16207; }
.ymt-form-message.is-error   { color: #b3261e; }

.ymt-form-hint {
	margin: 10px 0 0;
	font-size: 12.5px;
	color: #a1927f;
}

.ymt-notice {
	background: #fdf1de;
	border: 1px dashed var(--ymt-accent);
	border-radius: 12px;
	padding: 18px;
	text-align: center;
	font-size: 15px;
}

.ymt-notice-login .ymt-btn {
	margin-top: 10px;
}

/* ---------- Totals & Progress ---------- */
.ymt-personal-total,
.ymt-global-total {
	text-align: center;
	background: linear-gradient(160deg, #fff 0%, #fff7ec 100%);
	position: relative;
}

.ymt-total-label {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #8a7365;
	margin-bottom: 8px;
}

.ymt-total-number {
	font-size: clamp(36px, 6vw, 56px);
	font-weight: 800;
	color: var(--ymt-secondary);
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
	margin-bottom: 4px;
}

.ymt-total-unit {
	font-size: 13px;
	color: #a1927f;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-top: -2px;
}

.ymt-personal-total.ymt-logged-out,
.ymt-my-submissions.ymt-logged-out {
	padding: 20px;
	color: #8a7365;
}

.ymt-progress-track {
	width: 100%;
	height: 16px;
	background: #f1e4d3;
	border-radius: 999px;
	overflow: hidden;
	margin: 18px 0 10px;
	position: relative;
}

.ymt-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--ymt-primary), var(--ymt-accent));
	border-radius: 999px;
	transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.ymt-milestone-marker {
	position: absolute;
	top: -3px;
	width: 3px;
	height: calc(100% + 6px);
	background: rgba(0, 0, 0, 0.25);
	border-radius: 2px;
	transform: translateX(-50%);
}

.ymt-milestone-marker.is-reached {
	background: var(--ymt-secondary);
}

.ymt-milestone-note {
	margin-top: 10px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ymt-secondary);
	text-align: center;
}

.ymt-milestone-next {
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #a1927f;
	text-align: center;
}

.ymt-progress-caption {
	font-size: 14px;
	color: #6b5347;
}

.ymt-participants {
	margin-top: 10px;
	font-size: 13px;
	color: #a1927f;
}

/* ---------- Live badge ---------- */
.ymt-live {
	position: relative;
}

.ymt-live-badge {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #b3261e;
	background: #fdecea;
	padding: 4px 10px 4px 8px;
	border-radius: 999px;
}

.ymt-live-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #e02424;
	animation: ymt-pulse 1.4s ease-in-out infinite;
}

@keyframes ymt-pulse {
	0% { box-shadow: 0 0 0 0 rgba(224, 36, 36, 0.5); }
	70% { box-shadow: 0 0 0 6px rgba(224, 36, 36, 0); }
	100% { box-shadow: 0 0 0 0 rgba(224, 36, 36, 0); }
}

/* ---------- Badges ---------- */
.ymt-badge-pill {
	display: inline-block;
	margin-top: 10px;
	padding: 5px 14px;
	border-radius: 999px;
	background: linear-gradient(135deg, #f8d878, #d4af37);
	color: #5a4600;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.ymt-badge-pill.ymt-badge-sm {
	margin-top: 0;
	margin-left: 6px;
	padding: 2px 10px;
	font-size: 11px;
	vertical-align: middle;
}

/* ---------- Leaderboard ---------- */
.ymt-leaderboard-list {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ymt-leaderboard-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #f1e4d3;
}

.ymt-leaderboard-row.is-you {
	border-color: var(--ymt-primary);
	background: rgba(226, 99, 19, 0.06);
}

.ymt-rank {
	flex: 0 0 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 13px;
	border-radius: 50%;
	background: #f1e4d3;
	color: #6b5347;
}

.ymt-rank-1 { background: linear-gradient(135deg, #f8d878, #d4af37); color: #5a4600; }
.ymt-rank-2 { background: linear-gradient(135deg, #e3e3e3, #bcbcbc); color: #3d3d3d; }
.ymt-rank-3 { background: linear-gradient(135deg, #e3ac7a, #b97a4a); color: #402408; }

.ymt-lb-avatar {
	flex: 0 0 auto;
}

.ymt-lb-avatar img {
	border-radius: 50%;
	display: block;
}

.ymt-lb-name {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
	font-size: 14px;
	color: var(--ymt-text);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ymt-lb-name em {
	font-style: normal;
	color: var(--ymt-primary);
	font-weight: 700;
}

.ymt-lb-total {
	flex: 0 0 auto;
	font-weight: 800;
	color: var(--ymt-secondary);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.ymt-lb-total small {
	font-weight: 500;
	color: #a1927f;
	text-transform: uppercase;
	font-size: 10px;
}

.ymt-empty {
	color: #a1927f;
	font-size: 14px;
	text-align: center;
	padding: 12px 0;
}

/* ---------- Countdown ---------- */
.ymt-countdown {
	text-align: center;
}

.ymt-countdown-timer {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 14px;
	flex-wrap: wrap;
}

.ymt-countdown-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 64px;
	background: #fff;
	border: 1px solid #f1e4d3;
	border-radius: 12px;
	padding: 12px 8px;
}

.ymt-countdown-unit span {
	font-size: 28px;
	font-weight: 800;
	color: var(--ymt-secondary);
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.ymt-countdown-unit small {
	margin-top: 6px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #a1927f;
}

.ymt-countdown-ended {
	color: #8a7365;
	font-size: 15px;
}

/* ---------- Activity Feed ---------- */
.ymt-feed-list {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 360px;
	overflow-y: auto;
}

.ymt-feed-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid #f1e4d3;
}

.ymt-feed-list img {
	border-radius: 50%;
	flex: 0 0 auto;
}

.ymt-feed-text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13.5px;
	color: var(--ymt-text);
	overflow-wrap: break-word;
}

.ymt-feed-time {
	flex: 0 0 auto;
	font-size: 12px;
	color: #a1927f;
	white-space: nowrap;
}

.ymt-avatar-anon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f1e4d3;
	color: #a1927f;
	flex: 0 0 auto;
}

/* ---------- My Submissions ---------- */
.ymt-my-submissions-list {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 380px;
	overflow-y: auto;
}

.ymt-my-submissions-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: #fff;
	border: 1px solid #f1e4d3;
	border-radius: 10px;
	font-size: 13.5px;
	flex-wrap: wrap;
}

.ymt-mysub-date {
	color: #a1927f;
	flex: 1 1 auto;
	min-width: 0;
}

.ymt-mysub-count {
	font-weight: 700;
	color: var(--ymt-secondary);
	flex: 0 0 auto;
	white-space: nowrap;
}

.ymt-status-pill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}

.ymt-status-pill.ymt-status-approved { background: #e6f4ea; color: #1e7e34; }
.ymt-status-pill.ymt-status-pending { background: #fff4e0; color: #a16207; }
.ymt-status-pill.ymt-status-rejected { background: #fdecea; color: #b3261e; }

/* ---------- Certificate button / display ---------- */
.ymt-certificate-button-wrap {
	text-align: center;
	background: transparent;
	border: none;
	padding: 0;
}

.ymt-certificate-btn {
	display: inline-flex;
}

.ymt-certificate-display {
	background: transparent;
	border: none;
	padding: 0;
}

.ymt-certificate-display.ymt-logged-out,
.ymt-certificate-display.ymt-cert-none {
	background: #fffaf3;
	border: 1px solid rgba(226, 99, 19, 0.15);
	border-radius: 16px;
	padding: 28px;
	text-align: center;
	color: #8a7365;
}

.ymt-cert {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
	aspect-ratio: 1.5 / 1;
	min-height: 340px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: var(--ymt-cert-bg, #fffaf3);
	border: 8px solid var(--ymt-cert-border, #e26313);
	outline: 2px solid var(--ymt-cert-border, #d4af37);
	outline-offset: -16px;
	padding: 30px;
	text-align: center;
	position: relative;
}

.ymt-cert-logo {
	max-height: 60px;
	margin-bottom: 14px;
}

.ymt-cert-kicker {
	text-transform: uppercase;
	letter-spacing: 0.2em;
	font-size: 12px;
	font-weight: 700;
	color: var(--ymt-cert-border, #d4af37);
	margin-bottom: 10px;
}

.ymt-cert-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(22px, 4vw, 34px);
	font-weight: 800;
	color: var(--ymt-cert-title, #7a1f2b);
	margin: 0 0 18px;
}

.ymt-cert-body {
	font-size: 15px;
	line-height: 1.8;
	color: var(--ymt-cert-text, #4a382c);
	max-width: 560px;
}

.ymt-cert-name {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(18px, 3vw, 26px);
	font-weight: 700;
	color: var(--ymt-cert-border, #e26313);
}

.ymt-cert-count {
	font-size: clamp(16px, 2.5vw, 20px);
	font-weight: 800;
	color: var(--ymt-cert-title, #7a1f2b);
}

.ymt-cert-footer {
	position: absolute;
	left: 30px;
	right: 30px;
	bottom: 18px;
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #8a7365;
	flex-wrap: wrap;
	gap: 6px;
}

.ymt-cert-actions {
	text-align: center;
	margin-top: 18px;
}

.ymt-cert-actions .ymt-btn {
	margin: 0 6px 10px;
}

.ymt-cert-print-link {
	display: block;
	font-size: 13px;
	color: #8a7365;
	text-decoration: underline;
	margin-top: 4px;
}

.ymt-cert-status {
	font-size: 13px;
	color: #8a7365;
	min-height: 1.2em;
}

/* ---------- Profile Avatar ---------- */
.ymt-avatar-control {
	text-align: center;
}

.ymt-avatar-preview {
	width: 140px;
	height: 140px;
	margin: 12px auto 16px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid var(--ymt-accent);
	box-shadow: 0 6px 18px rgba(122, 31, 43, 0.15);
}

.ymt-avatar-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ymt-avatar-buttons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
}

.ymt-avatar-change-btn {
	cursor: pointer;
}

.ymt-avatar-hint {
	margin: 12px 0 0;
	font-size: 12.5px;
	color: #a1927f;
}

.ymt-avatar-status {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	min-height: 1.2em;
}

.ymt-avatar-status.is-success { color: #1e7e34; }
.ymt-avatar-status.is-error { color: #b3261e; }

.ymt-avatar-control.ymt-logged-out {
	color: #8a7365;
}

/* ---------- Profile Settings (combined avatar + name + privacy) ---------- */
.ymt-profile-settings {
	text-align: center;
}

.ymt-profile-settings.ymt-logged-out {
	color: #8a7365;
}

.ymt-profile-section {
	max-width: 360px;
	margin: 0 auto 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #f1e4d3;
}

.ymt-profile-section:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.ymt-profile-name-row {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.ymt-profile-name-input {
	flex: 1 1 auto;
	min-width: 0;
}

.ymt-profile-name-status,
.ymt-profile-privacy-status {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	min-height: 1.2em;
}

.ymt-profile-name-status.is-success,
.ymt-profile-privacy-status.is-success { color: #1e7e34; }
.ymt-profile-name-status.is-error,
.ymt-profile-privacy-status.is-error { color: #b3261e; }

.ymt-privacy-toggle-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	text-align: left;
	font-size: 14px;
	font-weight: 600;
	color: var(--ymt-text);
	cursor: pointer;
}

.ymt-privacy-toggle-label input[type="checkbox"] {
	margin-top: 3px;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	accent-color: var(--ymt-primary);
}

.ymt-editor-placeholder {
	padding: 40px 20px;
	text-align: center;
	border: 2px dashed #e0d3c3;
	color: #a1927f;
	font-size: 14px;
}

/* ==========================================================================
   Responsive — graduated at tablet (768px) and phone (600px/420px) widths.
   ========================================================================== */

@media (max-width: 768px) {
	.ymt-widget {
		padding: 22px;
	}
	.ymt-header-content {
		padding: 20px 22px 24px;
	}
	.ymt-cert {
		padding: 34px 26px;
	}
	.ymt-countdown-timer {
		gap: 10px;
	}
}

@media (max-width: 600px) {
	.ymt-widget {
		padding: 18px;
	}
	.ymt-header-content {
		padding: 16px 18px 20px;
	}
	.ymt-header-poster {
		aspect-ratio: 16 / 9;
	}
	.ymt-form-row {
		flex-direction: column;
	}
	.ymt-input {
		width: 100%;
	}
	.ymt-submit-btn {
		width: 100%;
	}
	.ymt-quick-amounts {
		gap: 8px;
	}
	.ymt-quick-btn {
		flex: 1 1 auto;
		text-align: center;
	}
	.ymt-countdown-timer {
		gap: 8px;
	}
	.ymt-countdown-unit {
		min-width: 54px;
		padding: 10px 6px;
	}
	.ymt-countdown-unit span {
		font-size: 22px;
	}
	.ymt-leaderboard-row,
	.ymt-feed-list li,
	.ymt-my-submissions-list li {
		padding: 9px 10px;
		gap: 8px;
	}
	.ymt-lb-name {
		font-size: 13px;
	}
	.ymt-cert {
		padding: 26px 18px;
		outline-offset: -12px;
		border-width: 6px;
	}
	.ymt-cert-footer {
		justify-content: center;
		text-align: center;
	}
	.ymt-gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	}
}

@media (max-width: 420px) {
	.ymt-widget {
		padding: 16px;
		border-radius: 12px;
	}
	.ymt-total-number {
		font-size: 32px;
	}
	.ymt-countdown-timer {
		gap: 6px;
	}
	.ymt-countdown-unit {
		min-width: 46px;
		padding: 8px 4px;
	}
	.ymt-countdown-unit span {
		font-size: 18px;
	}
	.ymt-countdown-unit small {
		font-size: 9px;
	}
	.ymt-status-badge {
		font-size: 11px;
		padding: 4px 10px;
	}
	.ymt-leaderboard-row {
		flex-wrap: wrap;
	}
	.ymt-leaderboard-row .ymt-lb-total {
		margin-left: auto;
	}
	.ymt-cert-name {
		display: block;
	}
	.ymt-cert {
		aspect-ratio: auto;
		min-height: 0;
		padding: 22px 16px 50px;
	}
	.ymt-cert-footer {
		position: static;
		margin-top: 20px;
		left: auto;
		right: auto;
		bottom: auto;
		justify-content: center;
		text-align: center;
	}
	.ymt-lightbox-close {
		top: 10px;
		right: 14px;
		font-size: 26px;
	}
}
