/**
 * Competition Leaderboard - public styles (v2.1)
 *
 * Presentation only. Every class the PHP has always printed is still styled
 * here, so nothing that hooks into the old markup breaks.
 *
 * Skins: every colour comes from --hht-* custom properties. The defaults on
 * :root are the Modern skin (Classic uses the original hungry-hippo-think-public.css); .hht-theme-{name} (on <body> and on the
 * leaderboard wrapper) swaps them. To add a skin, register it with the
 * `hht_themes` filter and define .hht-theme-{key} { --hht-... } in your CSS.
 */

/* ============================================================
   1. Tokens
   ============================================================ */

:root {
	--hht-bg-1: #ffffff;
	--hht-bg-2: #fbf6ea;
	--hht-surface: #ffffff;
	--hht-surface-2: #fbf8f1;
	--hht-text: #1d1b24;
	--hht-muted: #6f6a7a;
	--hht-border: rgba(29, 27, 36, 0.09);
	--hht-accent: #f0a500;
	--hht-accent-2: #e0720b;
	--hht-on-accent: #ffffff;
	--hht-grad: linear-gradient(135deg, var(--hht-accent) 0%, var(--hht-accent-2) 100%);
	--hht-p1-a: #ffd54a; --hht-p1-b: #eb9a00;
	--hht-p2-a: #e6eaf1; --hht-p2-b: #9aa4b5;
	--hht-p3-a: #f3b886; --hht-p3-b: #bb6326;
	--hht-on-podium: #ffffff;
	--hht-track: rgba(29, 27, 36, 0.07);
	--hht-glow: rgba(240, 165, 0, 0.35);
	--hht-shadow: 0 1px 2px rgba(20, 16, 40, 0.05), 0 22px 44px -22px rgba(20, 16, 40, 0.28);
	--hht-shadow-sm: 0 1px 2px rgba(20, 16, 40, 0.06), 0 6px 16px -8px rgba(20, 16, 40, 0.18);
	--hht-radius: 22px;
	--hht-radius-sm: 12px;
	--hht-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 30'%3E %3Cpath d='M4 24 L2 7 L12 15 L20 3 L28 15 L38 7 L36 24Z' fill='%23ffcf33' stroke='%23b7791f' stroke-width='1.5' stroke-linejoin='round'/%3E %3Crect x='4' y='23' width='32' height='5' rx='1.5' fill='%23f2a100' stroke='%23b7791f' stroke-width='1.2'/%3E %3Ccircle cx='20' cy='3' r='2.4' fill='%23ff4d6d'/%3E%3Ccircle cx='2' cy='7' r='2' fill='%234dabf7'/%3E%3Ccircle cx='38' cy='7' r='2' fill='%234dabf7'/%3E %3C/svg%3E");
	--hht-icon: none;
	--hht-hp-1: #2a0a02;
	--hht-hp-2: #110100;
	--hht-hp-glow: #ff4500;
	--hht-ease: cubic-bezier(.2, .8, .2, 1);
}

.hht-theme-midnight {
	--hht-bg-1: #1a1f38;
	--hht-bg-2: #0d1022;
	--hht-surface: rgba(255, 255, 255, 0.05);
	--hht-surface-2: rgba(255, 255, 255, 0.08);
	--hht-text: #eef0ff;
	--hht-muted: #9aa0c3;
	--hht-border: rgba(255, 255, 255, 0.10);
	--hht-accent: #ffc53d;
	--hht-accent-2: #ff8a00;
	--hht-on-accent: #1a1300;
	--hht-track: rgba(255, 255, 255, 0.09);
	--hht-glow: rgba(255, 197, 61, 0.35);
	--hht-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 26px 50px -24px rgba(0, 0, 0, 0.7);
	--hht-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 18px -10px rgba(0, 0, 0, 0.6);
}

.hht-theme-halloween {
	--hht-bg-1: #2a1442;
	--hht-bg-2: #110a1c;
	--hht-surface: rgba(255, 255, 255, 0.06);
	--hht-surface-2: rgba(255, 255, 255, 0.10);
	--hht-text: #fbefff;
	--hht-muted: #c3a8d9;
	--hht-border: rgba(233, 216, 255, 0.13);
	--hht-accent: #ff8a1f;
	--hht-accent-2: #ff3d00;
	--hht-on-accent: #ffffff;
	--hht-p1-a: #ffb347; --hht-p1-b: #ff6a00;
	--hht-p2-a: #c7a2ff; --hht-p2-b: #7a3cff;
	--hht-p3-a: #a8e86c; --hht-p3-b: #3f9a3f;
	--hht-track: rgba(255, 255, 255, 0.09);
	--hht-glow: rgba(255, 122, 26, 0.45);
	--hht-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 26px 50px -22px rgba(42, 8, 60, 0.85);
	--hht-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 18px -10px rgba(0, 0, 0, 0.7);
	--hht-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36'%3E %3Cpath d='M19 7 Q19 1 24 1' stroke='%233d6b2a' stroke-width='3' fill='none' stroke-linecap='round'/%3E %3Cellipse cx='12' cy='21' rx='9' ry='13' fill='%23ff8a1f'/%3E%3Cellipse cx='28' cy='21' rx='9' ry='13' fill='%23ff8a1f'/%3E%3Cellipse cx='20' cy='21' rx='10' ry='14' fill='%23ff9b33'/%3E %3Cpath d='M11 16 L15 19 L10 20Z M29 16 L25 19 L30 20Z' fill='%233b1a00'/%3E %3Cpath d='M11 25 Q20 32 29 25 L26 26 L24 24 L22 27 L20 25 L18 27 L16 24 L14 26Z' fill='%233b1a00'/%3E %3C/svg%3E");
	--hht-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cpath d='M20 6 Q22 2 23 6 Q28 3 32 4 Q36 6 40 4 Q36 10 37 16 Q33 12 28 14 Q24 12 21 16 L20 14 L19 16 Q16 12 12 14 Q7 12 3 16 Q4 10 0 4 Q4 6 8 4 Q12 3 17 6 Q18 2 20 6Z' fill='%23ffffff'/%3E%3C/svg%3E");
	--hht-hp-1: #3b1405; --hht-hp-2: #12060f; --hht-hp-glow: #ff7a1a;
}

.hht-theme-christmas {
	--hht-bg-1: #10503b;
	--hht-bg-2: #072a1f;
	--hht-surface: rgba(255, 255, 255, 0.07);
	--hht-surface-2: rgba(255, 255, 255, 0.11);
	--hht-text: #f4fff9;
	--hht-muted: #a9d6c2;
	--hht-border: rgba(255, 255, 255, 0.13);
	--hht-accent: #e8413b;
	--hht-accent-2: #b51f2a;
	--hht-on-accent: #ffffff;
	--hht-p1-a: #ffe58a; --hht-p1-b: #d99a06;
	--hht-p2-a: #ff7b7b; --hht-p2-b: #c22626;
	--hht-p3-a: #eef4f8; --hht-p3-b: #93a9b8;
	--hht-track: rgba(255, 255, 255, 0.10);
	--hht-glow: rgba(255, 213, 74, 0.4);
	--hht-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 26px 50px -22px rgba(3, 30, 20, 0.85);
	--hht-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25), 0 8px 18px -10px rgba(0, 0, 0, 0.6);
	--hht-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 34'%3E %3Cpath d='M6 26 Q10 6 26 4 Q36 4 38 16 Q34 12 30 13 Q26 18 28 26Z' fill='%23e23b3b'/%3E %3Ccircle cx='39' cy='18' r='4.5' fill='%23fff'/%3E %3Crect x='3' y='24' width='30' height='8' rx='4' fill='%23fff'/%3E %3C/svg%3E");
	--hht-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cg stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'%3E %3Cpath d='M0 -10 V10 M-8.7 -5 L8.7 5 M-8.7 5 L8.7 -5'/%3E%3Cpath d='M-2.5 -7.5 L0 -5 L2.5 -7.5 M-2.5 7.5 L0 5 L2.5 7.5'/%3E%3C/g%3E%3C/svg%3E");
	--hht-hp-1: #5a0f12; --hht-hp-2: #1d0406; --hht-hp-glow: #ff4d4d;
}

.hht-theme-easter {
	--hht-bg-1: #fffaf0;
	--hht-bg-2: #f1e9ff;
	--hht-surface: #ffffff;
	--hht-surface-2: #f9f5ff;
	--hht-text: #3b2f5c;
	--hht-muted: #8a7fa8;
	--hht-border: rgba(91, 63, 160, 0.12);
	--hht-accent: #9b6bff;
	--hht-accent-2: #ff7eb6;
	--hht-on-accent: #ffffff;
	--hht-p1-a: #ffe27a; --hht-p1-b: #f2a922;
	--hht-p2-a: #cdb8ff; --hht-p2-b: #9065f5;
	--hht-p3-a: #a6f2d3; --hht-p3-b: #2fb88a;
	--hht-track: rgba(91, 63, 160, 0.08);
	--hht-glow: rgba(155, 107, 255, 0.3);
	--hht-shadow: 0 1px 2px rgba(60, 30, 120, 0.06), 0 22px 44px -22px rgba(90, 60, 170, 0.35);
	--hht-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 38'%3E %3Cellipse cx='15' cy='20' rx='13' ry='17' fill='%23c9b3ff'/%3E %3Cpath d='M2.6 16 L7 12 L11 16 L15 12 L19 16 L23 12 L27.4 16' fill='none' stroke='%23fff' stroke-width='2.2'/%3E %3Cpath d='M2.4 25 L27.6 25' stroke='%23ffd36e' stroke-width='3'/%3E %3Ccircle cx='9' cy='31' r='1.6' fill='%23ff8fb8'/%3E%3Ccircle cx='15' cy='32.5' r='1.6' fill='%23ff8fb8'/%3E%3Ccircle cx='21' cy='31' r='1.6' fill='%23ff8fb8'/%3E %3C/svg%3E");
	--hht-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 38'%3E %3Cellipse cx='15' cy='20' rx='13' ry='17' fill='%23c9b3ff'/%3E %3Cpath d='M2.6 16 L7 12 L11 16 L15 12 L19 16 L23 12 L27.4 16' fill='none' stroke='%23fff' stroke-width='2.2'/%3E %3Cpath d='M2.4 25 L27.6 25' stroke='%23ffd36e' stroke-width='3'/%3E %3Ccircle cx='9' cy='31' r='1.6' fill='%23ff8fb8'/%3E%3Ccircle cx='15' cy='32.5' r='1.6' fill='%23ff8fb8'/%3E%3Ccircle cx='21' cy='31' r='1.6' fill='%23ff8fb8'/%3E %3C/svg%3E");
	--hht-hp-1: #4c2a8a; --hht-hp-2: #24124d; --hht-hp-glow: #ff7eb6;
}

.hht-theme-valentines {
	--hht-bg-1: #fff6f8;
	--hht-bg-2: #ffdfe8;
	--hht-surface: #ffffff;
	--hht-surface-2: #fff3f6;
	--hht-text: #4a1024;
	--hht-muted: #a0536d;
	--hht-border: rgba(190, 18, 60, 0.12);
	--hht-accent: #f43f5e;
	--hht-accent-2: #be123c;
	--hht-on-accent: #ffffff;
	--hht-p1-a: #ff8fab; --hht-p1-b: #e11d48;
	--hht-p2-a: #ffc9d8; --hht-p2-b: #ec6a9c;
	--hht-p3-a: #f6d5ad; --hht-p3-b: #cc8f57;
	--hht-track: rgba(190, 18, 60, 0.08);
	--hht-glow: rgba(244, 63, 94, 0.32);
	--hht-shadow: 0 1px 2px rgba(120, 10, 40, 0.06), 0 22px 44px -22px rgba(190, 18, 60, 0.35);
	--hht-crown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -2 16 15'%3E%3Cpath d='M0 3 C0 -1.5 -6.5 -1.5 -6.5 3.2 C-6.5 7 -2 9.5 0 12 C2 9.5 6.5 7 6.5 3.2 C6.5 -1.5 0 -1.5 0 3Z' fill='%23f43f5e' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
	--hht-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -2 16 15'%3E%3Cpath d='M0 3 C0 -1.5 -6.5 -1.5 -6.5 3.2 C-6.5 7 -2 9.5 0 12 C2 9.5 6.5 7 6.5 3.2 C6.5 -1.5 0 -1.5 0 3Z' fill='%23f43f5e' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
	--hht-hp-1: #6b0f2a; --hht-hp-2: #2a0512; --hht-hp-glow: #ff4d79;
}

/* Re-derive composite tokens wherever a skin swaps the base colours
   (custom properties resolve where they are declared, not where used). */
[class*="hht-theme-"] {
	--hht-grad: linear-gradient(135deg, var(--hht-accent) 0%, var(--hht-accent-2) 100%);
}

/* ============================================================
   2. The card
   ============================================================ */

.hht-lb {
	position: relative;
	isolation: isolate;
	margin: 0 auto 24px;
	padding: 26px 22px 22px;
	border-radius: var(--hht-radius);
	color: var(--hht-text);
	box-shadow: var(--hht-shadow);
	overflow: hidden;
	font-variant-numeric: tabular-nums;
}

/* Surface lives on a pseudo layer so inline "background: none" overrides
   (Crown Clash) cannot strip the card. */
.hht-lb::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	border-radius: inherit;
	border: 1px solid var(--hht-border);
	background:
		radial-gradient(120% 70% at 50% -10%, var(--hht-glow) 0%, transparent 55%),
		linear-gradient(180deg, var(--hht-bg-1) 0%, var(--hht-bg-2) 100%);
}

.hht-theme-halloween.hht-lb::before {
	background:
		radial-gradient(60% 40% at 50% 104%, rgba(255, 122, 26, 0.35) 0%, transparent 70%),
		radial-gradient(120% 70% at 50% -10%, rgba(160, 90, 255, 0.35) 0%, transparent 60%),
		linear-gradient(180deg, var(--hht-bg-1) 0%, var(--hht-bg-2) 100%);
}

.hht-theme-christmas.hht-lb::before {
	background:
		radial-gradient(120% 60% at 50% -10%, rgba(255, 229, 138, 0.22) 0%, transparent 55%),
		radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0 2px, transparent 3px) 0 0 / 46px 46px,
		linear-gradient(180deg, var(--hht-bg-1) 0%, var(--hht-bg-2) 100%);
}

body.hot_potato_competition .hht-theme-modern.hht-lb::before {
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 240, 0.92)),
		url(../images/potpattern.png) 0 0 / 150px repeat;
}

.hht-lb > * {
	position: relative;
}

.hht-lb h3,
.hht-lb h4,
.hht-lb h5 {
	color: var(--hht-text);
	text-align: center;
	letter-spacing: -0.01em;
}

.hht-lb > h3:not(.countdown-reset-hungry-hippo) {
	margin: 4px 0 6px;
	font-size: clamp(20px, 3.4vw, 26px);
	font-weight: 800;
}

.hht-lb a {
	color: inherit;
}

/* Seasonal themes need head-room for garlands and webs */
.hht-theme-halloween.hht-lb,
.hht-theme-christmas.hht-lb,
.hht-theme-valentines.hht-lb {
	padding-top: 44px;
}

.hht-theme-easter.hht-lb {
	padding-bottom: 46px;
}

/* ============================================================
   3. Decorations (aria-hidden, painted per theme)
   ============================================================ */

.hht-lb > .hht-decor {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	border-radius: inherit;
	overflow: hidden;
}

.hht-decor > span {
	position: absolute;
	display: block;
	background-repeat: no-repeat;
	background-size: contain;
}

/* Modern + Midnight: a slim accent edge */
.hht-theme-modern .hht-decor__a,
.hht-theme-midnight .hht-decor__a {
	top: 0; left: 0; right: 0;
	height: 4px;
	background: var(--hht-grad);
}

/* Halloween: cobwebs + dangling spider */
.hht-theme-halloween .hht-decor__a,
.hht-theme-halloween .hht-decor__b {
	top: -1px;
	width: 130px; height: 130px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 130 130'%3E%3Cpath d='M0 0 L130.0 0.0 M0 0 L120.1 49.7 M0 0 L91.9 91.9 M0 0 L49.7 120.1 M0 0 L0.0 130.0 M22.0 0.0 Q16.8 3.3 20.3 8.4 Q14.3 9.5 15.6 15.6 Q9.5 14.3 8.4 20.3 Q3.3 16.8 0.0 22.0 M44.0 0.0 Q33.7 6.7 40.7 16.8 Q28.5 19.1 31.1 31.1 Q19.1 28.5 16.8 40.7 Q6.7 33.7 0.0 44.0 M68.0 0.0 Q52.0 10.3 62.8 26.0 Q44.1 29.5 48.1 48.1 Q29.5 44.1 26.0 62.8 Q10.3 52.0 0.0 68.0 M94.0 0.0 Q71.9 14.3 86.8 36.0 Q61.0 40.7 66.5 66.5 Q40.7 61.0 36.0 86.8 Q14.3 71.9 0.0 94.0 M122.0 0.0 Q93.3 18.6 112.7 46.7 Q79.1 52.9 86.3 86.3 Q52.9 79.1 46.7 112.7 Q18.6 93.3 0.0 122.0' fill='none' stroke='%23e9d8ff' stroke-opacity='0.55' stroke-width='1.1'/%3E%3C/svg%3E");
}
.hht-theme-halloween .hht-decor__a { left: -1px; }
.hht-theme-halloween .hht-decor__b { right: -1px; transform: scaleX(-1); }
.hht-theme-halloween .hht-decor__c {
	top: 0; right: 92px;
	width: 22px; height: 66px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 90'%3E %3Cline x1='15' y1='0' x2='15' y2='66' stroke='%23e9d8ff' stroke-opacity='.6' stroke-width='1'/%3E %3Cg stroke='%231a0f24' stroke-width='1.6' fill='none' stroke-linecap='round'%3E %3Cpath d='M11 70 Q4 64 2 70'/%3E%3Cpath d='M11 73 Q3 72 1 78'/%3E%3Cpath d='M11 76 Q5 80 4 86'/%3E %3Cpath d='M19 70 Q26 64 28 70'/%3E%3Cpath d='M19 73 Q27 72 29 78'/%3E%3Cpath d='M19 76 Q25 80 26 86'/%3E %3C/g%3E %3Cellipse cx='15' cy='74' rx='6' ry='7' fill='%231a0f24'/%3E%3Ccircle cx='15' cy='66' r='4' fill='%231a0f24'/%3E %3Ccircle cx='13.4' cy='65.5' r='1' fill='%23ff7a1a'/%3E%3Ccircle cx='16.6' cy='65.5' r='1' fill='%23ff7a1a'/%3E %3C/svg%3E");
	transform-origin: 50% 0;
	animation: hht-spider 5.5s ease-in-out infinite;
}

@keyframes hht-spider {
	0%, 100% { transform: translateY(-14px); }
	50%      { transform: translateY(4px); }
}

/* Christmas: fairy lights + holly */
.hht-theme-christmas .hht-decor__a {
	top: 0; left: 0; right: 0;
	height: 30px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 30' width='160' height='30'%3E%3Cpath d='M0 4 Q20 16 40 4 Q60 16 80 4 Q100 16 120 4 Q140 16 160 4' fill='none' stroke='%232b3a33' stroke-width='1.6'/%3E%3Crect x='17.4' y='8.5' width='5.2' height='4.5' rx='1' fill='%232b3a33'/%3E%3Cellipse cx='20' cy='19' rx='4.6' ry='7' fill='%23ff4d4d'/%3E%3Cellipse cx='18.5' cy='16.5' rx='1.3' ry='2.4' fill='%23fff' fill-opacity='.7'/%3E%3Crect x='57.4' y='8.5' width='5.2' height='4.5' rx='1' fill='%232b3a33'/%3E%3Cellipse cx='60' cy='19' rx='4.6' ry='7' fill='%23ffd54a'/%3E%3Cellipse cx='58.5' cy='16.5' rx='1.3' ry='2.4' fill='%23fff' fill-opacity='.7'/%3E%3Crect x='97.4' y='8.5' width='5.2' height='4.5' rx='1' fill='%232b3a33'/%3E%3Cellipse cx='100' cy='19' rx='4.6' ry='7' fill='%234ade80'/%3E%3Cellipse cx='98.5' cy='16.5' rx='1.3' ry='2.4' fill='%23fff' fill-opacity='.7'/%3E%3Crect x='137.4' y='8.5' width='5.2' height='4.5' rx='1' fill='%232b3a33'/%3E%3Cellipse cx='140' cy='19' rx='4.6' ry='7' fill='%2360a5fa'/%3E%3Cellipse cx='138.5' cy='16.5' rx='1.3' ry='2.4' fill='%23fff' fill-opacity='.7'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-size: 160px 30px;
	filter: drop-shadow(0 0 4px rgba(255, 220, 120, 0.55));
	animation: hht-twinkle 2.6s steps(2, jump-none) infinite;
}
.hht-theme-christmas .hht-decor__b {
	right: 6px; bottom: 4px;
	width: 84px; height: 62px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'%3E %3Cg fill='%231f7a4d' stroke='%230e4a2e' stroke-width='.8'%3E %3Cpath transform='translate(40 30) rotate(-160) scale(1.6)' d='M0 0 Q6 -5 10 -2 Q12 -7 17 -6 Q16 -2 21 0 Q16 2 17 6 Q12 7 10 2 Q6 5 0 0Z'/%3E %3Cpath transform='translate(40 30) rotate(-20) scale(1.6)' d='M0 0 Q6 -5 10 -2 Q12 -7 17 -6 Q16 -2 21 0 Q16 2 17 6 Q12 7 10 2 Q6 5 0 0Z'/%3E %3Cpath transform='translate(40 30) rotate(-95) scale(1.3)' d='M0 0 Q6 -5 10 -2 Q12 -7 17 -6 Q16 -2 21 0 Q16 2 17 6 Q12 7 10 2 Q6 5 0 0Z'/%3E %3C/g%3E %3Ccircle cx='36' cy='31' r='5' fill='%23d62b2b'/%3E%3Ccircle cx='45' cy='32' r='5' fill='%23e23b3b'/%3E%3Ccircle cx='40.5' cy='24' r='5' fill='%23c81e1e'/%3E %3Ccircle cx='34.5' cy='29.5' r='1.4' fill='%23fff' fill-opacity='.7'/%3E%3Ccircle cx='43.5' cy='30.5' r='1.4' fill='%23fff' fill-opacity='.7'/%3E%3Ccircle cx='39' cy='22.5' r='1.4' fill='%23fff' fill-opacity='.7'/%3E %3C/svg%3E");
	opacity: 0.9;
}
.hht-theme-christmas .hht-decor__c {
	left: 6px; bottom: 4px;
	width: 70px; height: 52px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 60'%3E %3Cg fill='%231f7a4d' stroke='%230e4a2e' stroke-width='.8'%3E %3Cpath transform='translate(40 30) rotate(-160) scale(1.6)' d='M0 0 Q6 -5 10 -2 Q12 -7 17 -6 Q16 -2 21 0 Q16 2 17 6 Q12 7 10 2 Q6 5 0 0Z'/%3E %3Cpath transform='translate(40 30) rotate(-20) scale(1.6)' d='M0 0 Q6 -5 10 -2 Q12 -7 17 -6 Q16 -2 21 0 Q16 2 17 6 Q12 7 10 2 Q6 5 0 0Z'/%3E %3Cpath transform='translate(40 30) rotate(-95) scale(1.3)' d='M0 0 Q6 -5 10 -2 Q12 -7 17 -6 Q16 -2 21 0 Q16 2 17 6 Q12 7 10 2 Q6 5 0 0Z'/%3E %3C/g%3E %3Ccircle cx='36' cy='31' r='5' fill='%23d62b2b'/%3E%3Ccircle cx='45' cy='32' r='5' fill='%23e23b3b'/%3E%3Ccircle cx='40.5' cy='24' r='5' fill='%23c81e1e'/%3E %3Ccircle cx='34.5' cy='29.5' r='1.4' fill='%23fff' fill-opacity='.7'/%3E%3Ccircle cx='43.5' cy='30.5' r='1.4' fill='%23fff' fill-opacity='.7'/%3E%3Ccircle cx='39' cy='22.5' r='1.4' fill='%23fff' fill-opacity='.7'/%3E %3C/svg%3E");
	transform: scaleX(-1);
	opacity: 0.75;
}

@keyframes hht-twinkle {
	0%   { filter: drop-shadow(0 0 3px rgba(255, 220, 120, 0.4)) brightness(0.95) saturate(1); }
	100% { filter: drop-shadow(0 0 7px rgba(255, 220, 120, 0.9)) brightness(1.2) saturate(1.3); }
}

/* Easter: grass with eggs, peeking ears, blossom */
.hht-theme-easter .hht-decor__a {
	left: 0; right: 0; bottom: -2px;
	height: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 40' width='160' height='40'%3E%3Cellipse cx='34' cy='29' rx='7' ry='9' fill='%23ffd36e'/%3E%3Cpath d='M27.4 27 L30.7 24 L34 27 L37.3 24 L40.6 27' fill='none' stroke='%23ff8fb8' stroke-width='1.6'/%3E%3Cpath d='M27.6 32 L40.4 32' stroke='%23ff8fb8' stroke-width='1.6' stroke-dasharray='2 2'/%3E%3Cellipse cx='98' cy='29' rx='7' ry='9' fill='%23b9a3ff'/%3E%3Cpath d='M91.4 27 L94.7 24 L98 27 L101.3 24 L104.6 27' fill='none' stroke='%23ffffff' stroke-width='1.6'/%3E%3Cpath d='M91.6 32 L104.4 32' stroke='%23ffffff' stroke-width='1.6' stroke-dasharray='2 2'/%3E%3Cellipse cx='138' cy='29' rx='7' ry='9' fill='%23ff9fc5'/%3E%3Cpath d='M131.4 27 L134.7 24 L138 27 L141.3 24 L144.6 27' fill='none' stroke='%238fd3ff' stroke-width='1.6'/%3E%3Cpath d='M131.6 32 L144.4 32' stroke='%238fd3ff' stroke-width='1.6' stroke-dasharray='2 2'/%3E%3Cpath d='M0 40 Q2 33.5 1 27 Q4 33.5 6 40Z' fill='%235fbf73'/%3E%3Cpath d='M5 40 Q7 29.5 9 19 Q9 29.5 11 40Z' fill='%235fbf73'/%3E%3Cpath d='M10 40 Q12 34.0 11 28 Q14 34.0 16 40Z' fill='%237fd18b'/%3E%3Cpath d='M15 40 Q17 35.0 20 30 Q19 35.0 21 40Z' fill='%235fbf73'/%3E%3Cpath d='M20 40 Q22 33.0 22 26 Q24 33.0 26 40Z' fill='%237fd18b'/%3E%3Cpath d='M25 40 Q27 31.0 28 22 Q29 31.0 31 40Z' fill='%239be3a4'/%3E%3Cpath d='M30 40 Q32 33.0 31 26 Q34 33.0 36 40Z' fill='%237fd18b'/%3E%3Cpath d='M35 40 Q37 33.0 36 26 Q39 33.0 41 40Z' fill='%237fd18b'/%3E%3Cpath d='M40 40 Q42 30.0 43 20 Q44 30.0 46 40Z' fill='%235fbf73'/%3E%3Cpath d='M45 40 Q47 33.5 48 27 Q49 33.5 51 40Z' fill='%237fd18b'/%3E%3Cpath d='M50 40 Q52 33.0 53 26 Q54 33.0 56 40Z' fill='%239be3a4'/%3E%3Cpath d='M55 40 Q57 34.5 58 29 Q59 34.5 61 40Z' fill='%239be3a4'/%3E%3Cpath d='M60 40 Q62 30.0 65 20 Q64 30.0 66 40Z' fill='%235fbf73'/%3E%3Cpath d='M65 40 Q67 33.5 67 27 Q69 33.5 71 40Z' fill='%237fd18b'/%3E%3Cpath d='M70 40 Q72 31.5 71 23 Q74 31.5 76 40Z' fill='%235fbf73'/%3E%3Cpath d='M75 40 Q77 31.0 76 22 Q79 31.0 81 40Z' fill='%235fbf73'/%3E%3Cpath d='M80 40 Q82 33.0 83 26 Q84 33.0 86 40Z' fill='%239be3a4'/%3E%3Cpath d='M85 40 Q87 29.0 87 18 Q89 29.0 91 40Z' fill='%239be3a4'/%3E%3Cpath d='M90 40 Q92 32.0 95 24 Q94 32.0 96 40Z' fill='%235fbf73'/%3E%3Cpath d='M95 40 Q97 33.0 99 26 Q99 33.0 101 40Z' fill='%235fbf73'/%3E%3Cpath d='M100 40 Q102 34.0 103 28 Q104 34.0 106 40Z' fill='%237fd18b'/%3E%3Cpath d='M105 40 Q107 33.0 106 26 Q109 33.0 111 40Z' fill='%237fd18b'/%3E%3Cpath d='M110 40 Q112 35.0 113 30 Q114 35.0 116 40Z' fill='%235fbf73'/%3E%3Cpath d='M115 40 Q117 31.0 119 22 Q119 31.0 121 40Z' fill='%239be3a4'/%3E%3Cpath d='M120 40 Q122 29.5 122 19 Q124 29.5 126 40Z' fill='%235fbf73'/%3E%3Cpath d='M125 40 Q127 30.0 126 20 Q129 30.0 131 40Z' fill='%237fd18b'/%3E%3Cpath d='M130 40 Q132 32.0 134 24 Q134 32.0 136 40Z' fill='%237fd18b'/%3E%3Cpath d='M135 40 Q137 33.0 138 26 Q139 33.0 141 40Z' fill='%237fd18b'/%3E%3Cpath d='M140 40 Q142 32.0 145 24 Q144 32.0 146 40Z' fill='%239be3a4'/%3E%3Cpath d='M145 40 Q147 32.5 150 25 Q149 32.5 151 40Z' fill='%239be3a4'/%3E%3Cpath d='M150 40 Q152 33.5 151 27 Q154 33.5 156 40Z' fill='%235fbf73'/%3E%3Cpath d='M155 40 Q157 35.0 157 30 Q159 35.0 161 40Z' fill='%239be3a4'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-size: 160px 40px;
}
.hht-theme-easter .hht-decor__b {
	right: 34px; bottom: 18px;
	width: 46px; height: 54px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 70'%3E %3Cg transform='rotate(-10 20 70)'%3E%3Cellipse cx='20' cy='36' rx='9' ry='30' fill='%23f6f0ff' stroke='%23d9c8ff' stroke-width='1.5'/%3E%3Cellipse cx='20' cy='38' rx='4.5' ry='22' fill='%23ffb6d1'/%3E%3C/g%3E %3Cg transform='rotate(12 40 70)'%3E%3Cellipse cx='40' cy='36' rx='9' ry='30' fill='%23f6f0ff' stroke='%23d9c8ff' stroke-width='1.5'/%3E%3Cellipse cx='40' cy='38' rx='4.5' ry='22' fill='%23ffb6d1'/%3E%3C/g%3E %3C/svg%3E");
	transform-origin: 50% 100%;
	animation: hht-ears 4s ease-in-out infinite;
	z-index: -1;
}
.hht-theme-easter .hht-decor__c {
	top: 8px; left: 8px;
	width: 92px; height: 60px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 60'%3E%3Ccircle cx='25.0' cy='18.0' r='6.0' fill='%23ffc2dc'/%3E%3Ccircle cx='20.2' cy='24.7' r='6.0' fill='%23ffc2dc'/%3E%3Ccircle cx='12.3' cy='22.1' r='6.0' fill='%23ffc2dc'/%3E%3Ccircle cx='12.3' cy='13.9' r='6.0' fill='%23ffc2dc'/%3E%3Ccircle cx='20.2' cy='11.3' r='6.0' fill='%23ffc2dc'/%3E%3Ccircle cx='18' cy='18' r='4.9' fill='%23ffd36e'/%3E%3Ccircle cx='51.0' cy='12.0' r='4.2' fill='%23c9b3ff'/%3E%3Ccircle cx='47.5' cy='16.8' r='4.2' fill='%23c9b3ff'/%3E%3Ccircle cx='42.0' cy='14.9' r='4.2' fill='%23c9b3ff'/%3E%3Ccircle cx='42.0' cy='9.1' r='4.2' fill='%23c9b3ff'/%3E%3Ccircle cx='47.5' cy='7.2' r='4.2' fill='%23c9b3ff'/%3E%3Ccircle cx='46' cy='12' r='3.5' fill='%23ffd36e'/%3E%3Ccircle cx='40.0' cy='38.0' r='5.1' fill='%239fe8c9'/%3E%3Ccircle cx='35.9' cy='43.7' r='5.1' fill='%239fe8c9'/%3E%3Ccircle cx='29.1' cy='41.5' r='5.1' fill='%239fe8c9'/%3E%3Ccircle cx='29.1' cy='34.5' r='5.1' fill='%239fe8c9'/%3E%3Ccircle cx='35.9' cy='32.3' r='5.1' fill='%239fe8c9'/%3E%3Ccircle cx='34' cy='38' r='4.2' fill='%23ffd36e'/%3E%3Ccircle cx='68.0' cy='30.0' r='3.4' fill='%23ffd8a8'/%3E%3Ccircle cx='65.2' cy='33.8' r='3.4' fill='%23ffd8a8'/%3E%3Ccircle cx='60.8' cy='32.4' r='3.4' fill='%23ffd8a8'/%3E%3Ccircle cx='60.8' cy='27.6' r='3.4' fill='%23ffd8a8'/%3E%3Ccircle cx='65.2' cy='26.2' r='3.4' fill='%23ffd8a8'/%3E%3Ccircle cx='64' cy='30' r='2.8' fill='%23ffd36e'/%3E%3C/svg%3E");
	opacity: 0.85;
}

@keyframes hht-ears {
	0%, 70%, 100% { transform: rotate(0); }
	78% { transform: rotate(-6deg); }
	86% { transform: rotate(5deg); }
}

/* Valentine's: heart garland, soft heart, sparkles */
.hht-theme-valentines .hht-decor__a {
	top: 0; left: 0; right: 0;
	height: 36px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 36' width='100' height='36'%3E%3Cpath d='M0 4 Q25 14 50 4 Q75 14 100 4' fill='none' stroke='%23e7a3b5' stroke-width='1.3'/%3E%3Cline x1='25' y1='9' x2='25' y2='20' stroke='%23e7a3b5' stroke-width='1'/%3E%3Cpath transform='translate(25 20) scale(1.15)' d='M0 3 C0 -1.5 -6.5 -1.5 -6.5 3.2 C-6.5 7 -2 9.5 0 12 C2 9.5 6.5 7 6.5 3.2 C6.5 -1.5 0 -1.5 0 3Z' fill='%23f43f5e'/%3E%3Cline x1='75' y1='9' x2='75' y2='17' stroke='%23e7a3b5' stroke-width='1'/%3E%3Cpath transform='translate(75 17) scale(0.9)' d='M0 3 C0 -1.5 -6.5 -1.5 -6.5 3.2 C-6.5 7 -2 9.5 0 12 C2 9.5 6.5 7 6.5 3.2 C6.5 -1.5 0 -1.5 0 3Z' fill='%23ff8fab'/%3E%3C/svg%3E");
	background-repeat: repeat-x;
	background-size: 100px 36px;
}
.hht-theme-valentines .hht-decor__b {
	right: -30px; bottom: -36px;
	width: 190px; height: 180px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -2 16 15'%3E%3Cpath d='M0 3 C0 -1.5 -6.5 -1.5 -6.5 3.2 C-6.5 7 -2 9.5 0 12 C2 9.5 6.5 7 6.5 3.2 C6.5 -1.5 0 -1.5 0 3Z' fill='%23f43f5e'/%3E%3C/svg%3E");
	opacity: 0.08;
	transform: rotate(-14deg);
}
.hht-theme-valentines .hht-decor__c {
	top: 40px; left: 10px;
	width: 80px; height: 50px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 50'%3E %3Cpath d='M14 6 L16 14 L24 16 L16 18 L14 26 L12 18 L4 16 L12 14Z' fill='%23ff8fab'/%3E %3Cpath d='M44 20 L45.2 25 L50 26 L45.2 27 L44 32 L42.8 27 L38 26 L42.8 25Z' fill='%23f43f5e' fill-opacity='.7'/%3E %3Cpath d='M66 4 L67 8 L71 9 L67 10 L66 14 L65 10 L61 9 L65 8Z' fill='%23ffc2d1'/%3E %3C/svg%3E");
	animation: hht-sparkle 3s ease-in-out infinite;
}

@keyframes hht-sparkle {
	0%, 100% { opacity: 0.5; transform: scale(0.94); }
	50%      { opacity: 1;   transform: scale(1.04); }
}

/* Ribbon */
.hht-lb > .hht-ribbon {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: max-content;
	max-width: 100%;
	margin: 0 auto 14px;
	padding: 7px 16px;
	border-radius: 999px;
	background: var(--hht-grad);
	color: var(--hht-on-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	box-shadow: 0 8px 20px -10px var(--hht-accent), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hht-ribbon__icon {
	width: 18px;
	height: 14px;
	flex: 0 0 auto;
	background: var(--hht-icon) center / contain no-repeat;
}

/* Particles */
.hht-lb > .hht-fx-layer {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	border-radius: inherit;
}

.hht-p {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	will-change: transform;
	animation: var(--hht-anim, hht-fall) var(--d, 12s) linear var(--delay, 0s) infinite;
	opacity: var(--o, 0.8);
}

.hht-p svg {
	display: block;
	width: 100%;
	height: 100%;
}

.hht-p--dot {
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

.hht-p--ember {
	border-radius: 50%;
	background: radial-gradient(circle, #ffd27a 0%, #ff7a1a 55%, rgba(255, 61, 0, 0) 75%);
}

.hht-p--bat svg {
	animation: hht-flap 0.32s ease-in-out infinite alternate;
	transform-origin: 50% 40%;
}

@keyframes hht-fall {
	0%   { transform: translate3d(var(--x0, 0px), -40px, 0) rotate(0deg); }
	100% { transform: translate3d(var(--x1, 0px), var(--travel, 900px), 0) rotate(var(--r, 0deg)); }
}

@keyframes hht-rise {
	0%   { transform: translate3d(var(--x0, 0px), var(--travel, 900px), 0) scale(0.7) rotate(0deg); opacity: 0; }
	12%  { opacity: var(--o, 0.8); }
	85%  { opacity: var(--o, 0.8); }
	100% { transform: translate3d(var(--x1, 0px), -40px, 0) scale(1) rotate(var(--r, 0deg)); opacity: 0; }
}

@keyframes hht-drift {
	0%   { transform: translate3d(-60px, var(--y0, 60px), 0); }
	25%  { transform: translate3d(calc(var(--w, 800px) * 0.25), calc(var(--y0, 60px) - 26px), 0); }
	50%  { transform: translate3d(calc(var(--w, 800px) * 0.5), calc(var(--y0, 60px) + 18px), 0); }
	75%  { transform: translate3d(calc(var(--w, 800px) * 0.75), calc(var(--y0, 60px) - 20px), 0); }
	100% { transform: translate3d(calc(var(--w, 800px) + 60px), var(--y0, 60px), 0); }
}

@keyframes hht-flap {
	from { transform: scaleY(1); }
	to   { transform: scaleY(0.45); }
}

.hht-fx-paused .hht-p,
.hht-fx-paused .hht-p svg,
.hht-fx-paused .hht-decor > span {
	animation-play-state: paused !important;
}

/* ============================================================
   4. Status lines, admin notices, headings
   ============================================================ */

.hippo-p-center,
.no-winners-hungry-hippo {
	text-align: center;
}

.hht-lb .hippo-p-center {
	width: max-content;
	max-width: 100%;
	margin: 6px auto 12px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--hht-surface);
	border: 1px solid var(--hht-border);
	color: var(--hht-muted);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.hht-lb .admin-only-notice-hippo,
.admin-only-notice-hippo {
	display: block;
	width: max-content;
	max-width: 100%;
	margin: 8px auto;
	padding: 5px 12px 5px 30px;
	border-radius: 8px;
	border: 1px dashed rgba(56, 88, 233, 0.45);
	background: rgba(56, 88, 233, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233858e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4v5c0 5-3.5 8-8 9-4.5-1-8-4-8-9V7z'/%3E%3C/svg%3E") 9px 50% / 14px no-repeat;
	color: #3858e9;
	font-size: 12px;
	font-weight: 700;
	text-align: left;
}

.hht-theme-midnight .admin-only-notice-hippo,
.hht-theme-halloween .admin-only-notice-hippo,
.hht-theme-christmas .admin-only-notice-hippo {
	color: #b9c6ff;
	border-color: rgba(185, 198, 255, 0.45);
	background-color: rgba(120, 140, 255, 0.12);
}

.bold-standout-hippo,
.hht-lb .bold-standout-hippo {
	width: max-content;
	max-width: 100%;
	margin: 10px auto;
	padding: 10px 18px;
	border-radius: var(--hht-radius-sm);
	background: var(--hht-text);
	color: var(--hht-bg-1);
	border: 0;
	text-align: center;
	font-weight: 700;
}

.hht-lb .hungry-hippo-title-yesterday {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 800;
}

.hht-lb .hungry-hippo-title-yesterday::before,
.hht-lb .hungry-hippo-title-yesterday::after {
	content: "";
	height: 2px;
	width: 34px;
	border-radius: 2px;
	background: var(--hht-grad);
	opacity: 0.6;
}

/* Empty state */
.hht-lb .no-winners-hungry-hippo,
.no-winners-hungry-hippo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 10px auto;
	padding: 26px 16px;
	border-radius: var(--hht-radius-sm);
	border: 1px dashed var(--hht-border);
	background: var(--hht-surface);
	color: var(--hht-muted);
	font-size: 15px;
	font-weight: 700;
}

.no-winners-hungry-hippo::before {
	content: "";
	width: 40px;
	height: 40px;
	background: var(--hht-grad);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0V4Z'/%3E%3Cpath d='M17 5h3v2a3 3 0 0 1-3 3M7 5H4v2a3 3 0 0 0 3 3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v5a5 5 0 0 1-10 0V4Z'/%3E%3Cpath d='M17 5h3v2a3 3 0 0 1-3 3M7 5H4v2a3 3 0 0 0 3 3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============================================================
   5. Countdown
   ============================================================ */

.hht-lb .countdown-reset-hungry-hippo {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: max-content;
	max-width: 100%;
	margin: 6px auto 22px;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	line-height: 1.2;
	overflow: visible;
}

.hht-lb .countdown-reset-hungry-hippo::before,
.hht-lb .countdown-reset-hungry-hippo::after {
	content: none;
	display: none;
}

.hht-lb .countdown-reset-hungry-hippo .leaderboard-title-hippo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--hht-muted);
	text-shadow: none;
}

.hht-lb .countdown-reset-hungry-hippo .leaderboard-title-hippo::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #22c55e;
	background-image: none;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
	animation: hht-pulse 1.8s ease-out infinite;
}

@keyframes hht-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
	70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Raw timer: shown until the JS builds tiles, then kept for readers only */
.hht-lb .countdown-reset-hungry-hippo #instant-countdown {
	display: inline-block;
	padding: 8px 22px;
	border-radius: 14px;
	background: var(--hht-surface);
	border: 1px solid var(--hht-border);
	box-shadow: var(--hht-shadow-sm);
	color: var(--hht-text);
	font-family: inherit;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-shadow: none;
}

.hht-lb .countdown-reset-hungry-hippo.hht-has-tiles #instant-countdown {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.hht-cd {
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

.hht-cd[hidden] { display: none; }

.hht-cd__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.hht-cd__num {
	position: relative;
	display: grid;
	place-items: center;
	min-width: 58px;
	height: 62px;
	padding: 0 8px;
	border-radius: 14px;
	background: var(--hht-surface);
	border: 1px solid var(--hht-border);
	box-shadow: var(--hht-shadow-sm), inset 0 -3px 0 var(--hht-track);
	color: var(--hht-text);
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.02em;
	overflow: hidden;
}

.hht-cd__num::after {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 50%;
	height: 1px;
	background: var(--hht-border);
}

.hht-cd__num.is-tick {
	animation: hht-tick 0.42s var(--hht-ease);
}

@keyframes hht-tick {
	0%   { transform: translateY(-3px); color: var(--hht-accent); }
	100% { transform: translateY(0); }
}

.hht-cd__lbl {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hht-muted);
}

.hht-cd__sep {
	align-self: flex-start;
	height: 62px;
	display: grid;
	place-items: center;
	font-size: 24px;
	font-weight: 800;
	color: var(--hht-accent);
	opacity: 0.7;
}

/* ============================================================
   6. Segmented / pill buttons
   ============================================================ */

.date-range-hippo-buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 12px auto 16px;
	padding: 4px;
	max-height: 140px;
	overflow-y: auto;
	scrollbar-width: thin;
}

.date-range-hippo-buttons::-webkit-scrollbar { width: 8px; }
.date-range-hippo-buttons::-webkit-scrollbar-thumb { background: var(--hht-track); border-radius: 99px; }

.leaderboard_instant_winners_parent .date-range-hippo-buttons .button,
.leaderboard_instant_winners_parent .date-range-hippo-buttons .btn,
#all_winner_button {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--hht-surface) !important;
	border: 1px solid var(--hht-border) !important;
	color: var(--hht-text) !important;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: none;
	transition: transform 0.16s var(--hht-ease), box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.leaderboard_instant_winners_parent .date-range-hippo-buttons .button:hover,
.leaderboard_instant_winners_parent .date-range-hippo-buttons .btn:hover {
	transform: translateY(-1px);
	border-color: var(--hht-accent) !important;
	color: var(--hht-text) !important;
	box-shadow: var(--hht-shadow-sm);
}

.leaderboard_instant_winners_parent .date-range-hippo-buttons .button:focus-visible,
.leaderboard_instant_winners_parent .date-range-hippo-buttons .btn:focus-visible,
.hht-lb .yesterday-results-hippo:focus-visible {
	outline: 2px solid var(--hht-accent);
	outline-offset: 2px;
}

#all_winner_button {
	background: var(--hht-grad) !important;
	border-color: transparent !important;
	color: var(--hht-on-accent) !important;
}

/* All Time / Daily switch reads as one segmented control */
.date-range-hippo-buttons:has(> .all-time-leaderboard) {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	max-width: 100%;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: var(--hht-track);
	border: 1px solid var(--hht-border);
	overflow: visible;
}

.leaderboard_instant_winners_parent .date-range-hippo-buttons:has(> .all-time-leaderboard) .button {
	background: transparent !important;
	border-color: transparent !important;
	color: var(--hht-muted) !important;
	padding: 8px 20px;
}

.leaderboard_instant_winners_parent .date-range-hippo-buttons .button.active,
.leaderboard_instant_winners_parent .date-range-hippo-buttons:has(> .all-time-leaderboard) .button.active {
	background: var(--hht-grad) !important;
	border-color: transparent !important;
	color: var(--hht-on-accent) !important;
	box-shadow: 0 6px 16px -8px var(--hht-accent);
}

.leaderboard_instant_winners_parent .date-range-hippo-buttons .button.active::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	animation: hht-live 1.6s ease-out infinite;
}

@keyframes hht-live {
	0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
	70%  { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.switch_mode_buttons_hippo .button {
	background: var(--hht-grad) !important;
	color: var(--hht-on-accent) !important;
}

/* View Yesterday / View Live */
.yesterday-results-hippo-parent {
	text-align: center;
	margin-top: 18px;
}

.yesterday-results-hippo {
	text-align: center;
}

.hht-lb .yesterday-results-hippo {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--hht-surface);
	border: 1px solid var(--hht-border);
	color: var(--hht-text);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	box-shadow: var(--hht-shadow-sm);
	transition: transform 0.16s var(--hht-ease), border-color 0.16s ease;
}

.hht-lb .yesterday-results-hippo::after {
	content: "\2192";
	color: var(--hht-accent);
	transition: transform 0.16s var(--hht-ease);
}

.hht-lb .yesterday-results-hippo:hover {
	transform: translateY(-1px);
	border-color: var(--hht-accent);
	color: var(--hht-text);
}

.hht-lb .yesterday-results-hippo:hover::after {
	transform: translateX(3px);
}

/* ============================================================
   7. Podium (ranking boxes)
   ============================================================ */

.hippo_box_name small,
.previous_winner_hippo_box small {
	display: block;
}

.hht-lb .hippo_ranking_boxes_container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: end;
	gap: 14px 12px;
	max-width: 640px;
	margin: 26px auto 26px;
}

/* Base: 4th place and beyond are compact rows under the podium */
.hht-lb .hippo_ranking_box {
	grid-column: 1 / -1;
	flex: none !important;
	display: grid;
	grid-template-columns: 34px 40px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 8px 14px 8px 10px;
	border-radius: 14px;
	background: var(--hht-surface);
	border: 1px solid var(--hht-border);
	color: var(--hht-text);
	box-shadow: none;
	text-align: left;
	transition: transform 0.2s var(--hht-ease), box-shadow 0.2s ease;
	animation: hht-rise-in 0.55s var(--hht-ease) both;
}

.hht-lb .hippo_ranking_box:hover {
	transform: translateY(-2px);
	box-shadow: var(--hht-shadow-sm);
}

.hht-lb .hippo_ranking_box .top_hippo_box_image {
	order: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--hht-track);
	display: grid;
	place-items: center;
}

.hht-lb .hippo_ranking_box .top_hippo_box_image img,
.hht-lb .previous_winner_hippo_box img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100% !important;
	margin: 0;
	padding: 3px;
	object-fit: contain;
	background: transparent;
	border-radius: 50% !important;
	box-shadow: none;
}

.hht-lb .hippo_box_name {
	order: 1;
	min-width: 0;
	font-size: 15px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
	overflow-wrap: anywhere;
}

.hht-lb .hippo_box_name small {
	margin-top: 3px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--hht-muted);
	opacity: 1;
}

.hht-lb .hippo_box_ranking_score {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--hht-track);
	color: var(--hht-text);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: none;
}

.hht-lb .hippo_box_position {
	order: -1;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin: 0;
	border-radius: 10px;
	background: var(--hht-track);
	box-shadow: none;
	color: var(--hht-muted);
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
	text-shadow: none;
}

/* Top three: real podium cards */
.hht-lb .top_hippo_box_1,
.hht-lb .top_hippo_box_2,
.hht-lb .top_hippo_box_3 {
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	padding: 18px 12px 0;
	border-radius: 20px 20px 10px 10px;
	text-align: center;
	background: var(--hht-surface);
	box-shadow: var(--hht-shadow-sm);
	overflow: visible;
}

.hht-lb .top_hippo_box_2 { grid-column: 1; --pa: var(--hht-p2-a); --pb: var(--hht-p2-b); animation-delay: 0.1s; }
.hht-lb .top_hippo_box_1 { grid-column: 2; --pa: var(--hht-p1-a); --pb: var(--hht-p1-b); animation-delay: 0s; }
.hht-lb .top_hippo_box_3 { grid-column: 3; --pa: var(--hht-p3-a); --pb: var(--hht-p3-b); animation-delay: 0.2s; }

.hht-lb .top_hippo_box_1 .top_hippo_box_image,
.hht-lb .top_hippo_box_2 .top_hippo_box_image,
.hht-lb .top_hippo_box_3 .top_hippo_box_image {
	position: relative;
	width: 70px;
	height: 70px;
	padding: 3px;
	background: linear-gradient(145deg, var(--pa), var(--pb));
	box-shadow: 0 10px 22px -10px var(--pb);
}

.hht-lb .top_hippo_box_1 .top_hippo_box_image {
	width: 88px;
	height: 88px;
	margin-top: 10px;
	box-shadow: 0 0 0 6px var(--hht-glow), 0 14px 28px -10px var(--pb);
}

.hht-lb .top_hippo_box_1 .top_hippo_box_image img,
.hht-lb .top_hippo_box_2 .top_hippo_box_image img,
.hht-lb .top_hippo_box_3 .top_hippo_box_image img {
	padding: 6px;
	background: var(--hht-bg-1);
}

/* Sticker on the winner: crown, pumpkin, santa hat, egg, heart */
.hht-lb .top_hippo_box_1 .top_hippo_box_image::after {
	content: "";
	position: absolute;
	top: -22px;
	left: 50%;
	width: 42px;
	height: 32px;
	transform: translateX(-50%) rotate(-8deg);
	background: var(--hht-crown) center / contain no-repeat;
	filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
	animation: hht-bob 3.2s ease-in-out infinite;
}

@keyframes hht-bob {
	0%, 100% { transform: translateX(-50%) rotate(-8deg) translateY(0); }
	50%      { transform: translateX(-50%) rotate(-4deg) translateY(-3px); }
}

.hht-lb .top_hippo_box_1 .hippo_box_name,
.hht-lb .top_hippo_box_2 .hippo_box_name,
.hht-lb .top_hippo_box_3 .hippo_box_name {
	margin-top: 12px;
	font-size: 15px;
}

.hht-lb .top_hippo_box_1 .hippo_box_name {
	font-size: 17px;
}

.hht-lb .top_hippo_box_1 .hippo_box_ranking_score,
.hht-lb .top_hippo_box_2 .hippo_box_ranking_score,
.hht-lb .top_hippo_box_3 .hippo_box_ranking_score {
	display: table;
	margin: 8px auto 0;
	padding: 4px 11px;
	background: linear-gradient(135deg, var(--pa), var(--pb));
	color: var(--hht-on-podium);
	font-size: 12px;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

/* The plinth */
.hht-lb .top_hippo_box_1 .hippo_box_position,
.hht-lb .top_hippo_box_2 .hippo_box_position,
.hht-lb .top_hippo_box_3 .hippo_box_position {
	order: 3;
	position: relative;
	width: calc(100% + 24px);
	height: 46px;
	margin: 14px -12px 0;
	border-radius: 0 0 10px 10px;
	background: linear-gradient(180deg, var(--pa), var(--pb));
	color: var(--hht-on-podium);
	font-size: 26px;
	font-weight: 900;
	text-shadow: 0 2px 3px rgba(0, 0, 0, 0.22);
	overflow: hidden;
}

.hht-lb .top_hippo_box_1 .hippo_box_position { height: 70px; font-size: 34px; }
.hht-lb .top_hippo_box_3 .hippo_box_position { height: 34px; font-size: 22px; }

.hht-lb .top_hippo_box_1 .hippo_box_position::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
	transform: translateX(-120%);
	animation: hht-shine 4.5s ease-in-out 1s infinite;
}

@keyframes hht-shine {
	0%, 60% { transform: translateX(-120%); }
	100%    { transform: translateX(120%); }
}

@keyframes hht-rise-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Hot Potato / Crown Clash: "Current Leader" title row above the podium */
body.hot_potato_competition .hht-lb .hippo_ranking_boxes_container::before {
	content: "Current Leader";
	grid-column: 1 / -1;
	grid-row: 1;
	width: auto;
	margin: 0 0 6px;
	text-align: center;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--hht-muted);
}

body.hot_potato_competition .hht-lb .top_hippo_box_1,
body.hot_potato_competition .hht-lb .top_hippo_box_2,
body.hot_potato_competition .hht-lb .top_hippo_box_3 {
	grid-row: 2;
}

/* Previous / yesterday winner */
.hht-lb .previous_winner_hippo_box {
	display: flex !important;
	align-items: center;
	gap: 12px;
	width: max-content;
	max-width: 100%;
	margin: 0 auto 22px !important;
	padding: 8px 20px 8px 8px;
	border-radius: 999px;
	background: var(--hht-surface);
	border: 1px solid var(--hht-border);
	color: var(--hht-text);
	box-shadow: var(--hht-shadow-sm);
	grid-template-columns: none;
}

.hht-lb .previous_winner_hippo_box img {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	padding: 4px;
	background: linear-gradient(145deg, var(--hht-p1-a), var(--hht-p1-b));
}

.hht-lb .previous_winner_hippo_box .hippo_box_name {
	display: flex;
	flex-direction: column-reverse;
	font-size: 16px;
}

.hht-lb .previous_winner_hippo_box .hippo_box_name small {
	margin: 0 0 2px;
	color: var(--hht-accent);
}

/* Admin "All Winners" overview */
.hht-lb .previous_winners_overview {
	background: var(--hht-surface-2) !important;
	border: 1px solid var(--hht-border);
	border-radius: var(--hht-radius-sm) !important;
	gap: 8px !important;
	padding: 14px !important;
}

.hht-lb .previous_winners_overview .previous_winner_hippo_box {
	width: 100%;
	margin: 0 !important;
	border-radius: 14px;
}

/* ============================================================
   8. Standings table
   ============================================================ */

.hht-lb .hippo-leaderboard-table-parent {
	margin: 0 auto;
	border-radius: 18px;
	border: 1px solid var(--hht-border);
	background: var(--hht-surface);
	box-shadow: var(--hht-shadow-sm);
	overflow: hidden;
}

.hht-lb table.hippo-leaderboard-table {
	width: 100%;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 15px;
	color: var(--hht-text);
	table-layout: auto;
}

.hht-lb #hippo-leaderboard-table thead,
.hht-lb .hippo-leaderboard-table thead {
	background: var(--hht-grad);
}

.hht-lb .hippo-leaderboard-table thead tr,
.hht-lb .hippo-leaderboard-table thead th {
	background: transparent !important;
}

.hht-lb .hippo-leaderboard-table thead th {
	padding: 13px 18px;
	border: 0 !important;
	color: var(--hht-on-accent) !important;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: left;
}

.hht-lb .hippo-leaderboard-table thead th:first-child { width: 76px; text-align: center; }
.hht-lb .hippo-leaderboard-table thead th:last-child { text-align: right; width: 34%; }

.hht-lb .hippo-leaderboard-table tbody tr,
.hht-lb .hippo-leaderboard-table tbody tr > td,
.hht-lb .hippo-leaderboard-table tbody > tr:nth-child(odd) > td,
.hht-lb .hippo-leaderboard-table tbody > tr:nth-child(even) > td {
	background: transparent !important;
}

.hht-lb .hippo-leaderboard-table tbody tr:nth-child(even) > td {
	background: var(--hht-surface-2) !important;
}

.hht-lb .hippo-leaderboard-table td {
	padding: 12px 18px;
	border: 0 !important;
	border-top: 1px solid var(--hht-border) !important;
	color: var(--hht-text) !important;
	vertical-align: middle;
	transition: background-color 0.18s ease;
}

.hht-lb .hippo-leaderboard-table tbody tr:hover > td {
	background: var(--hht-track) !important;
}

.hht-lb .hippo-leaderboard-table tbody tr {
	animation: hht-row-in 0.45s var(--hht-ease) both;
	animation-delay: calc(var(--i, 0) * 35ms);
}

@keyframes hht-row-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

.hht-lb .hippo-leaderboard-table td:first-child {
	text-align: center;
	font-weight: 800;
	color: var(--hht-muted) !important;
}

.hht-lb .hippo-leaderboard-table td:nth-child(2) {
	font-weight: 700;
}

.hht-lb .hippo-leaderboard-table td:nth-child(2) a,
.hht-lb .winning-user-leadboard a {
	color: var(--hht-text) !important;
	text-decoration: none;
	font-weight: 700;
}

.hht-lb .hippo-leaderboard-table td:nth-child(2) a:hover {
	color: var(--hht-accent) !important;
}

.hht-lb .hippo-leaderboard-table td:last-child {
	text-align: right;
	font-weight: 800;
	white-space: nowrap;
}

/* JS-enhanced bits */
.hht-rank {
	display: inline-grid;
	place-items: center;
	min-width: 32px;
	height: 32px;
	padding: 0 6px;
	border-radius: 10px;
	background: var(--hht-track);
	color: var(--hht-muted);
	font-size: 14px;
	font-weight: 800;
}

.hht-rank--1,
.hht-rank--2,
.hht-rank--3 {
	border-radius: 50%;
	color: var(--hht-on-podium);
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.hht-rank--1 { background: linear-gradient(145deg, var(--hht-p1-a), var(--hht-p1-b)); }
.hht-rank--2 { background: linear-gradient(145deg, var(--hht-p2-a), var(--hht-p2-b)); }
.hht-rank--3 { background: linear-gradient(145deg, var(--hht-p3-a), var(--hht-p3-b)); }

.hht-who {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.hht-avatar {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: hsl(var(--h, 30) 80% 92%);
	color: hsl(var(--h, 30) 55% 32%);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.hht-theme-midnight .hht-avatar,
.hht-theme-halloween .hht-avatar,
.hht-theme-christmas .hht-avatar {
	background: hsl(var(--h, 30) 45% 28%);
	color: hsl(var(--h, 30) 90% 86%);
}

.hht-score {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 6px;
	width: 100%;
}

.hht-bar {
	display: block;
	width: 100%;
	max-width: 160px;
	height: 6px;
	border-radius: 99px;
	background: var(--hht-track);
	overflow: hidden;
}

.hht-bar > i {
	display: block;
	height: 100%;
	width: var(--w, 0%);
	border-radius: inherit;
	background: var(--hht-grad);
	transform-origin: left center;
	animation: hht-grow 0.9s var(--hht-ease) both;
	animation-delay: calc(var(--i, 0) * 35ms + 0.15s);
}

@keyframes hht-grow {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

.hht-lb tr.hht-top > td { font-weight: 800; }

/* ============================================================
   9. Hot Potato / Crown Clash live holder
   (echoed just above the leaderboard, so it reads tokens from <body>)
   ============================================================ */

body .current-hot-potato-counter {
	position: relative;
	overflow: hidden;
	margin: 0 auto 16px;
	padding: 22px 18px 20px;
	border-radius: var(--hht-radius);
	background:
		radial-gradient(70% 90% at 50% 120%, color-mix(in srgb, var(--hht-hp-glow) 55%, transparent) 0%, transparent 70%),
		linear-gradient(180deg, var(--hht-hp-1) 0%, var(--hht-hp-2) 100%);
	color: #ffffff;
	text-align: center;
	text-shadow: none;
	box-shadow: var(--hht-shadow);
}

body .current-hot-potato-counter::before {
	content: "";
	position: absolute;
	inset: -40% -10% auto;
	height: 120%;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--hht-hp-glow) 35%, transparent), transparent);
	animation: hht-heat 3.4s ease-in-out infinite alternate;
	pointer-events: none;
}

@keyframes hht-heat {
	from { transform: translateY(6%) scale(0.95); opacity: 0.7; }
	to   { transform: translateY(-4%) scale(1.05); opacity: 1; }
}

body .current-hot-potato-counter > * {
	position: relative;
}

body .current-hot-potato-counter .announce-hot-potato {
	margin: 0 0 6px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	text-shadow: none;
}

body .current-hot-potato-counter .current-hot-potato-name {
	margin: 4px 0 10px;
	color: #ffffff;
	font-size: clamp(24px, 5vw, 34px);
	font-weight: 900;
	letter-spacing: -0.01em;
	text-shadow: 0 0 18px var(--hht-hp-glow), 0 0 40px color-mix(in srgb, var(--hht-hp-glow) 60%, transparent);
}

body .current-hot-potato-counter h5 {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	margin: 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	font-weight: 700;
}

body .current-hot-potato-counter .stop-watch-hot-potato {
	color: #ffffff;
	font-size: 22px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
}

/* Crown Clash keeps its gold */
body.hht-crown-clash .current-hot-potato-counter {
	--hht-hp-1: #6b4a00;
	--hht-hp-2: #2a1c00;
	--hht-hp-glow: #ffcf33;
}

body .current-hot-potato-counter .crown-emoji {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 12px auto 0;
	padding: 0;
	border-radius: 50%;
	font-size: 30px;
	background: linear-gradient(145deg, #ffe07a, #d39b1a);
	box-shadow: 0 0 0 6px rgba(255, 207, 51, 0.18), 0 10px 24px -8px rgba(255, 207, 51, 0.8);
	animation: hht-crown 2.8s ease-in-out infinite;
}

@keyframes hht-crown {
	0%, 100% { transform: translateY(0) rotate(-4deg); }
	50%      { transform: translateY(-4px) rotate(4deg); }
}

.above-parent-container-hp {
	gap: 15px;
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	margin-bottom: 15px;
}

.hotp-above-counter {
	padding: 18px 20px;
	border-radius: var(--hht-radius-sm);
	background: var(--hht-surface, #fff);
	border: 1px solid var(--hht-border);
	box-shadow: var(--hht-shadow-sm);
	color: var(--hht-text);
	text-align: center;
}

.hotp-above-counter span {
	display: block;
	font-size: 28px;
	font-weight: 900;
	margin-bottom: -6px;
	color: var(--hht-accent);
}

/* ============================================================
   10. Visual views (mountain, race track, beanstalk, jungle,
       dive, space): frame the scene, skin the standings list
   ============================================================ */

.hht-lb [class$="-lb__scene"] {
	border-radius: 18px;
	box-shadow: var(--hht-shadow-sm);
}

.hht-lb [class*="-lb__list"] {
	margin-top: 14px;
	padding: 4px 4px 4px 0;
	scrollbar-width: thin;
	scrollbar-color: var(--hht-track) transparent;
}

.hht-lb [class*="-lb__list"] :is(.spl-row, .bsl-row, .jgl-row, .dvl-row, .spc-row) {
	gap: 10px;
	padding: 8px 12px;
	border-radius: 12px;
	background: var(--hht-surface);
	border: 1px solid var(--hht-border);
	color: var(--hht-text);
	font-size: 13px;
	transition: transform 0.16s var(--hht-ease), border-color 0.16s ease;
}

.hht-lb [class*="-lb__list"] :is(.spl-row, .bsl-row, .jgl-row, .dvl-row, .spc-row):hover {
	transform: translateX(2px);
	border-color: var(--hht-accent);
}

.hht-lb [class*="-lb__list"] :is(.spl-row--lead, .bsl-row--lead, .jgl-row--lead, .dvl-row--lead, .spc-row--lead) {
	background: linear-gradient(90deg, color-mix(in srgb, var(--hht-p1-a) 28%, var(--hht-surface)) 0%, var(--hht-surface) 80%);
	border-color: color-mix(in srgb, var(--hht-p1-b) 55%, transparent);
}

.hht-lb [class*="-lb__list"] :is(.spl-rownum, .bsl-rownum, .jgl-rownum, .dvl-rownum, .spc-rownum) {
	width: 24px;
	height: 24px;
	font-size: 11px;
	box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.hht-lb [class*="-lb__list"] :is(.spl-rowname, .bsl-rowname, .jgl-rowname, .dvl-rowname, .spc-rowname) {
	color: var(--hht-text) !important;
	font-weight: 700;
}

.hht-lb [class*="-lb__list"] :is(.spl-rowscore, .bsl-rowscore, .jgl-rowscore, .dvl-rowscore, .spc-rowscore) {
	color: var(--hht-muted) !important;
	font-weight: 800;
}

.hht-lb .speedway-lb .speedway-lb__summary,
.hht-lb .speedway-lb .speedway-lb__cta {
	border-radius: 12px;
	background: var(--hht-surface);
	border: 1px solid var(--hht-border);
	color: var(--hht-text);
}

.hht-lb .speedway-lb .speedway-lb__cta {
	font-weight: 700;
	color: var(--hht-accent);
}

.hht-lb .speedway-lb .spl-muted { color: var(--hht-muted); }
.hht-lb .speedway-lb .speedway-lb__bar { background: var(--hht-track); }
.hht-lb .speedway-lb .speedway-lb__bar > span { background: var(--hht-grad); }

/* ============================================================
   11. Responsive + motion
   ============================================================ */

@media (max-width: 600px) {
	.hht-lb {
		padding: 22px 12px 16px;
		border-radius: 18px;
	}

	.hht-theme-halloween.hht-lb,
	.hht-theme-christmas.hht-lb,
	.hht-theme-valentines.hht-lb {
		padding-top: 40px;
	}

	.hht-theme-halloween .hht-decor__a,
	.hht-theme-halloween .hht-decor__b {
		width: 92px;
		height: 92px;
	}

	.hht-theme-halloween .hht-decor__c { right: 64px; }

	.hht-lb .hippo_ranking_boxes_container {
		gap: 12px 6px;
		margin-top: 22px;
	}

	.hht-lb .top_hippo_box_1,
	.hht-lb .top_hippo_box_2,
	.hht-lb .top_hippo_box_3 {
		padding: 14px 6px 0;
		border-radius: 16px 16px 8px 8px;
	}

	.hht-lb .top_hippo_box_2 .top_hippo_box_image,
	.hht-lb .top_hippo_box_3 .top_hippo_box_image { width: 54px; height: 54px; }
	.hht-lb .top_hippo_box_1 .top_hippo_box_image { width: 66px; height: 66px; }

	.hht-lb .top_hippo_box_1 .hippo_box_name,
	.hht-lb .top_hippo_box_2 .hippo_box_name,
	.hht-lb .top_hippo_box_3 .hippo_box_name {
		font-size: 13px;
	}

	.hht-lb .top_hippo_box_1 .hippo_box_name { font-size: 14px; }

	.hht-lb .hippo_box_name small {
		font-size: 9.5px;
		letter-spacing: 0.04em;
	}

	.hht-lb .top_hippo_box_1 .hippo_box_ranking_score,
	.hht-lb .top_hippo_box_2 .hippo_box_ranking_score,
	.hht-lb .top_hippo_box_3 .hippo_box_ranking_score {
		font-size: 10.5px;
		padding: 3px 8px;
		white-space: normal;
	}

	.hht-lb .top_hippo_box_1 .hippo_box_position,
	.hht-lb .top_hippo_box_2 .hippo_box_position,
	.hht-lb .top_hippo_box_3 .hippo_box_position {
		width: calc(100% + 12px);
		margin: 12px -6px 0;
	}

	.hht-lb .top_hippo_box_1 .hippo_box_position { height: 56px; font-size: 28px; }
	.hht-lb .top_hippo_box_2 .hippo_box_position { height: 40px; font-size: 22px; }
	.hht-lb .top_hippo_box_3 .hippo_box_position { height: 30px; font-size: 18px; }

	.hht-lb .hippo-leaderboard-table td,
	.hht-lb .hippo-leaderboard-table thead th {
		padding-left: 10px;
		padding-right: 12px;
	}

	.hht-lb .hippo-leaderboard-table thead th:first-child { width: 52px; }
	.hht-lb .hippo-leaderboard-table thead th:last-child { width: auto; }
	.hht-lb .hippo-leaderboard-table { font-size: 14px; }
	.hht-avatar { width: 30px; height: 30px; font-size: 11px; }
	.hht-who { gap: 9px; }
	.hht-bar { max-width: 90px; }

	.hht-cd__num {
		min-width: 50px;
		height: 54px;
		font-size: 25px;
		border-radius: 12px;
	}

	.hht-cd__sep { height: 54px; font-size: 20px; }

	.above-parent-container-hp { flex-wrap: wrap; }
	.hotp-above-counter { width: 100%; }

	.date-range-hippo-buttons .button,
	.date-range-hippo-buttons .btn {
		padding: 7px 13px;
		font-size: 12px;
	}
}

@media (max-width: 380px) {
	.hht-avatar { display: none; }
	.hht-cd__num { min-width: 44px; font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.hht-lb *,
	.hht-lb *::before,
	.hht-lb *::after,
	.current-hot-potato-counter,
	.current-hot-potato-counter * ,
	.current-hot-potato-counter::before {
		animation: none !important;
		transition: none !important;
	}

	.hht-lb > .hht-fx-layer {
		display: none;
	}
}
