@font-face {
	font-family: 'DSEG7 Classic';
	font-weight: 700;
	src: url('../fonts/DSEG7Classic-Bold.woff2') format('woff2');
	font-display: swap;
}

.nsg-countdown-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.nsg-countdown-header {
	margin: 0;
	font-family: 'Roboto', 'Noto Sans JP', sans-serif;
	font-weight: 700;
	font-size: 36px;
	color: #ecf5f5;
}

.nsg-countdown-subheader {
	margin: 0;
	font-family: 'Roboto', 'Noto Sans JP', sans-serif;
	font-weight: 700;
	font-size: 24px;
	color: #ecf5f5;
}

.nsg-countdown-paragraph {
	max-width: 640px;
	font-family: 'Roboto', 'Noto Sans JP', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #b9c8d1;
}

.nsg-countdown-paragraph p:first-child {
	margin-top: 0;
}

.nsg-countdown-paragraph p:last-child {
	margin-bottom: 0;
}

.nsg-countdown {
	--nsg-digit-size: clamp(20px, 6.5vw, 56px);

	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
	max-width: 640px;
	padding: 24px 32px;
	border-radius: 12px;
	background: linear-gradient(to bottom, #030c18 0%, #04080e 100%);
	border: 1px solid #1e3a5a;
	box-sizing: border-box;
}

.nsg-countdown-digits {
	display: flex;
	flex-wrap: nowrap;
	justify-content: center;
	gap: clamp(4px, 1.5vw, 24px);
	max-width: 100%;
}

.nsg-countdown-segment {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.nsg-countdown-unlit,
.nsg-countdown-value {
	font-family: 'DSEG7 Classic', monospace;
	font-weight: 700;
	font-size: var(--nsg-digit-size);
	line-height: 1;
	text-rendering: geometricPrecision;
	white-space: nowrap;
}

.nsg-countdown-unlit {
	color: #182727;
}

.nsg-countdown-value {
	position: absolute;
	top: 0;
	right: 0;
	color: #99fbf9;
}

.nsg-countdown-colon {
	align-self: flex-start;
	font-family: 'DSEG7 Classic', monospace;
	font-weight: 700;
	font-size: var(--nsg-digit-size);
	line-height: 1;
	color: #99fbf9;
	animation: nsg-countdown-blink 1s steps(1) infinite;
}

.nsg-countdown-label {
	margin-top: 8px;
	font-family: 'Roboto', 'Noto Sans JP', sans-serif;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #b9c8d1;
}

.nsg-countdown-message {
	display: none;
	font-family: 'Roboto', 'Noto Sans JP', sans-serif;
	font-weight: 700;
	font-size: 32px;
	color: #ecf5f5;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.nsg-countdown-message.is-visible {
	display: block;
	opacity: 1;
}

@keyframes nsg-countdown-blink {
	0%, 49% {
		opacity: 1;
	}

	50%, 100% {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nsg-countdown-colon {
		animation: none;
	}
}

@media (max-width: 600px) {
	.nsg-countdown {
		padding: 16px 12px;
	}

	.nsg-countdown-label {
		font-size: 10px;
	}

	.nsg-countdown-message {
		font-size: 22px;
	}

	.nsg-countdown-header {
		font-size: 26px;
	}

	.nsg-countdown-subheader {
		font-size: 18px;
	}

	.nsg-countdown-paragraph {
		font-size: 14px;
	}
}
