/* SlotsHurra Tournament Timer */
.sstt-panel {
	--sstt-card-bg: #ffffff;
	--sstt-card-ink: #1f1f24;
	--sstt-card-seam: rgba(0, 0, 0, 0.12);
	box-sizing: border-box;
	width: 100%;
	padding: 0;
	border-radius: 6px;
	text-align: center;
	font-family: inherit;
	line-height: 1.4;
	overflow: hidden;
	container-type: inline-size;
}

.sstt-panel .sstt-body {
	padding: clamp(1.5rem, 4cqi, 2.25rem) clamp(1rem, 4cqi, 2rem);
}

.sstt-panel .sstt-heading {
	margin: 0 0 1.25rem;
	color: inherit;
	font-family: inherit;
	font-size: clamp(1.1rem, 3.4cqi, 1.35rem);
	font-weight: 500;
	line-height: 1.3;
}

.sstt-panel .sstt-description {
	margin: 0 0 1.25rem;
	color: inherit;
	font-size: clamp(1rem, 3cqi, 1.3rem);
}

.sstt-panel .sstt-description strong,
.sstt-panel .sstt-description b {
	font-weight: 700;
	color: inherit;
}

.sstt-panel .sstt-description a {
	color: inherit;
	text-decoration: underline;
}

.sstt-panel .sstt-upcoming {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	opacity: 0.8;
}

.sstt-panel .sstt-ended {
	margin: 0.5rem 0 0;
	font-size: 1.1rem;
	font-weight: 600;
}

.sstt-panel [hidden] {
	display: none !important;
}

/* ---- Flip clock ---------------------------------------------------- */

.sstt-panel .sstt-clock {
	display: flex;
	justify-content: center;
	font-size: clamp(1.4rem, 8cqi, 2.6rem);
}

.sstt-panel .flip-clock {
	--width: 0.92em;
	--height: 1.3em;
	width: auto;
	justify-content: center;
	line-height: normal;
}

/* Groups are spaced apart instead of using ":" dividers, like the original timer. */
.sstt-panel .flip-clock .flip-clock-divider {
	display: none;
}

/* Outer wrapper: spacing between Days / Hours / Minutes / Seconds. */
.sstt-panel .flip-clock > .flip-clock-group > .flip-clock-group-items {
	align-items: flex-start;
	gap: clamp(0.7rem, 4.5cqi, 2.25rem);
}

/* Each unit: spacing between its two digits. */
.sstt-panel .flip-clock .flip-clock-group .flip-clock-group .flip-clock-group-items {
	gap: 0.12em;
	justify-content: center;
}

.sstt-panel .flip-clock .flip-clock-group + .flip-clock-group {
	margin-left: 0;
}

/* Labels sit under the cards. */
.sstt-panel .flip-clock .flip-clock-label {
	order: 2;
	margin: 0.4rem 0 0;
	font-size: 0.75rem;
	line-height: 1.2;
	color: inherit;
	opacity: 0.75;
}

.sstt-panel .flip-clock .flip-clock-card {
	color: var(--sstt-card-ink);
	font-weight: 700;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.sstt-panel .flip-clock .flip-clock-card .flip-clock-card-item-inner .top,
.sstt-panel .flip-clock .flip-clock-card .flip-clock-card-item-inner .bottom {
	background: var(--sstt-card-bg);
	box-shadow: inset 0 0 0.15em rgba(0, 0, 0, 0.12);
}

.sstt-panel .flip-clock .flip-clock-card .flip-clock-card-item-inner .top:before {
	background: var(--sstt-card-seam);
	opacity: 1;
}

.sstt-panel .flip-clock .flip-clock-card .flip-clock-card-item-inner .bottom:before {
	background: var(--sstt-card-seam);
	opacity: 1;
}

/* Softer fold shadow on white cards. */
.sstt-panel .flip-clock .flip-clock-card .before .top:after {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.sstt-panel .flip-clock .flip-clock-card .before .bottom:after {
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.02) 100%);
}

@media (prefers-reduced-motion: reduce) {
	.sstt-panel .flip-clock {
		--animation-duration: 1ms;
		--animation-delay: 0ms;
	}
}

.sstt-panel .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	word-wrap: normal !important;
}

/* ---- Biggest wins ticker (bottom strip) ---------------------------- */

.sstt-panel .sstt-ticker {
	display: flex;
	align-items: stretch;
	min-height: 2.75rem;
	background: rgba(0, 0, 0, 0.28);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	font-size: 0.9rem;
	line-height: 1.2;
	text-align: left;
}

.sstt-panel .sstt-ticker-title {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 0 1rem;
	background: rgba(0, 0, 0, 0.3);
	font-weight: 700;
	white-space: nowrap;
}

.sstt-panel .sstt-ticker-viewport {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 1.5rem, #000 calc(100% - 1.5rem), transparent 100%);
}

.sstt-panel .sstt-ticker-track {
	display: flex;
	width: max-content;
	margin: 0;
	padding: 0 0 0 1rem;
	list-style: none;
	will-change: transform;
}

/* Spacing lives inside each item (not flex gap) so one set's width is exact
   and the loop has no jump. */
.sstt-panel .sstt-ticker-track > li {
	margin: 0;
	padding: 0 2.25rem 0 0;
	white-space: nowrap;
	list-style: none;
}

.sstt-panel .sstt-win-name {
	opacity: 0.85;
}

.sstt-panel .sstt-win-coins {
	margin-left: 0.35rem;
	font-weight: 700;
	color: #ffd34d;
}

.sstt-panel .sstt-ticker.is-empty .sstt-ticker-viewport,
.sstt-panel .sstt-ticker.is-static .sstt-ticker-viewport {
	-webkit-mask-image: none;
	mask-image: none;
}

.sstt-panel .sstt-ticker.is-static .sstt-ticker-viewport {
	overflow-x: auto;
}

.sstt-panel .sstt-ticker-empty {
	opacity: 0.8;
	white-space: normal !important;
}

@container (max-width: 480px) {
	.sstt-panel .sstt-ticker {
		font-size: 0.8rem;
	}
	.sstt-panel .sstt-ticker-title {
		padding: 0 0.6rem;
	}
}
