/**
 * ican mori Launchpad — frontend styles.
 * Author: ican mori — https://icanmori.com
 */

.imlp-body {
	margin: 0;
	padding: 0;
	font-family: var(--imlp-font);
	color: var(--imlp-text);
	background: var(--imlp-bg2);
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

.imlp-wrap {
	position: relative;
	min-height: 100vh;
	background: linear-gradient(135deg, var(--imlp-bg1) 0%, var(--imlp-bg2) 100%);
	overflow-x: hidden;
}

.imlp-bgimage {
	position: fixed;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.imlp-bgimage::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 30, var(--imlp-overlay, 0.3));
}

/* Floating decorative blobs */
.imlp-wrap::before,
.imlp-wrap::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.35;
	pointer-events: none;
	z-index: 0;
}
.imlp-wrap::before {
	width: 420px;
	height: 420px;
	background: var(--imlp-accent);
	top: -140px;
	right: -120px;
	animation: imlp-float 9s ease-in-out infinite;
}
.imlp-wrap::after {
	width: 340px;
	height: 340px;
	background: #ffffff;
	bottom: -120px;
	left: -100px;
	opacity: 0.12;
	animation: imlp-float 12s ease-in-out infinite reverse;
}

@keyframes imlp-float {
	0%, 100% { transform: translateY(0) scale(1); }
	50% { transform: translateY(30px) scale(1.06); }
}

.imlp-inner {
	position: relative;
	z-index: 1;
	max-width: 860px;
	margin: 0 auto;
	padding: 56px 20px 40px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 26px;
}

.imlp-logo img {
	max-height: 72px;
	max-width: 220px;
	width: auto;
	filter: drop-shadow(0 6px 18px rgba(0,0,0,0.25));
}

.imlp-badge {
	display: inline-block;
	padding: 8px 22px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(8px);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	animation: imlp-pulse-soft 2.6s ease-in-out infinite;
}

@keyframes imlp-pulse-soft {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.05); opacity: 0.85; }
}

.imlp-title {
	margin: 4px 0 0;
	font-size: clamp(34px, 6.5vw, 62px);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -1px;
	text-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	animation: imlp-rise 0.8s ease both;
}

.imlp-sub {
	margin: 0;
	max-width: 560px;
	font-size: clamp(15px, 2.2vw, 19px);
	line-height: 1.65;
	opacity: 0.92;
	animation: imlp-rise 0.8s 0.15s ease both;
}

@keyframes imlp-rise {
	from { opacity: 0; transform: translateY(24px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- Countdown ---------- */
.imlp-countdown {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
	animation: imlp-rise 0.8s 0.3s ease both;
}

.imlp-cd-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.is-cards .imlp-cd-unit {
	min-width: 92px;
	padding: 18px 10px 14px;
	border-radius: var(--imlp-radius);
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	backdrop-filter: blur(10px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.is-minimal .imlp-cd-unit {
	min-width: 78px;
}

.imlp-cd-num {
	font-size: clamp(34px, 5.4vw, 52px);
	font-weight: 800;
	line-height: 1;
	color: var(--imlp-accent);
	font-variant-numeric: tabular-nums;
}

.imlp-cd-num.imlp-tick {
	animation: imlp-tick 0.45s ease;
}

@keyframes imlp-tick {
	0% { transform: translateY(-8px) scale(1.12); opacity: 0.4; }
	100% { transform: translateY(0) scale(1); opacity: 1; }
}

.imlp-cd-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
	text-transform: uppercase;
	opacity: 0.85;
}

.imlp-countdown-done {
	font-size: 18px;
	font-weight: 700;
	color: var(--imlp-accent);
}

/* ---------- Animated counters ---------- */
.imlp-counters {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	justify-content: center;
	animation: imlp-rise 0.8s 0.45s ease both;
}

.imlp-counter {
	min-width: 128px;
	padding: 16px 20px;
	border-radius: var(--imlp-radius);
	background: rgba(0, 0, 0, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.18);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.imlp-counter-num {
	font-size: 32px;
	font-weight: 800;
	color: var(--imlp-accent);
	font-variant-numeric: tabular-nums;
}

.imlp-counter-suffix {
	font-size: 20px;
	font-weight: 800;
	color: var(--imlp-accent);
}

.imlp-counter-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	opacity: 0.85;
}

/* ---------- Game ---------- */
.imlp-game {
	width: 100%;
	max-width: 780px;
	border-radius: var(--imlp-radius);
	background: rgba(0, 0, 0, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(10px);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	overflow: hidden;
	animation: imlp-rise 0.8s 0.6s ease both;
}

.imlp-game-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.imlp-game-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.4px;
}

.imlp-game-scores {
	display: flex;
	gap: 16px;
	font-size: 13px;
	font-weight: 600;
	opacity: 0.95;
}

.imlp-game-scores b {
	color: var(--imlp-accent);
	font-variant-numeric: tabular-nums;
	font-size: 15px;
}

.imlp-game-stage {
	position: relative;
	background: #000;
}

#imlp-canvas {
	display: block;
	width: 100%;
	height: auto;
	touch-action: manipulation;
	cursor: pointer;
}

.imlp-game-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 8, 30, 0.55);
	backdrop-filter: blur(4px);
	transition: opacity 0.25s ease;
}

.imlp-game-overlay.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.imlp-overlay-inner {
	text-align: center;
	padding: 20px;
}

.imlp-overlay-title {
	margin: 0 0 6px;
	font-size: 30px;
	font-weight: 800;
	color: #fff;
	text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.imlp-overlay-score {
	margin: 0 0 16px;
	font-size: 15px;
	font-weight: 600;
	color: var(--imlp-accent);
}

.imlp-hint {
	margin: 14px 0 0;
	font-size: 13px;
	opacity: 0.85;
}

/* ---------- Buttons ---------- */
.imlp-btn {
	display: inline-block;
	padding: 14px 34px;
	border: 0;
	border-radius: 999px;
	font-family: var(--imlp-font);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.4px;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.imlp-btn:hover {
	transform: translateY(-2px);
}

.imlp-btn:active {
	transform: translateY(0);
}

.imlp-btn-accent {
	background: var(--imlp-accent);
	color: #241a3d;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.imlp-btn-accent:hover {
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.imlp-btn-ghost {
	background: rgba(255, 255, 255, 0.14);
	color: var(--imlp-text);
	border: 1px solid rgba(255, 255, 255, 0.4);
}

.imlp-cta {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
	animation: imlp-rise 0.8s 0.5s ease both;
}

/* ---------- Subscribe ---------- */
.imlp-subscribe {
	width: 100%;
	max-width: 520px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	animation: imlp-rise 0.8s 0.7s ease both;
}

.imlp-subscribe h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
}

#imlp-sub-form {
	display: flex;
	gap: 10px;
	width: 100%;
	flex-wrap: wrap;
	justify-content: center;
}

#imlp-sub-email {
	flex: 1 1 240px;
	min-width: 220px;
	padding: 14px 20px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: var(--imlp-text);
	font-family: var(--imlp-font);
	font-size: 15px;
	outline: none;
	backdrop-filter: blur(8px);
}

#imlp-sub-email::placeholder {
	color: var(--imlp-text);
	opacity: 0.65;
}

#imlp-sub-email:focus {
	border-color: var(--imlp-accent);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
}

.imlp-sub-msg {
	margin: 0;
	min-height: 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--imlp-accent);
}

.imlp-sub-msg.is-error {
	color: #ffb4c0;
}

/* ---------- Social ---------- */
.imlp-social {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
	animation: imlp-rise 0.8s 0.8s ease both;
}

.imlp-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--imlp-text);
	transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.imlp-social a:hover {
	transform: translateY(-3px) scale(1.06);
	background: var(--imlp-accent);
	color: #241a3d;
}

/* ---------- Footer credit ---------- */
.imlp-credit {
	margin-top: 8px;
	font-size: 13px;
	opacity: 0.8;
}

.imlp-credit p {
	margin: 0;
}

.imlp-credit a {
	color: var(--imlp-accent);
	text-decoration: none;
	font-weight: 600;
}

.imlp-credit a:hover {
	text-decoration: underline;
}

.imlp-heart {
	color: #ff6b8a;
	animation: imlp-heartbeat 1.4s ease-in-out infinite;
	display: inline-block;
}

@keyframes imlp-heartbeat {
	0%, 100% { transform: scale(1); }
	25% { transform: scale(1.25); }
	40% { transform: scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
	.imlp-inner {
		padding-top: 40px;
		gap: 20px;
	}
	.is-cards .imlp-cd-unit {
		min-width: 68px;
		padding: 12px 8px 10px;
	}
	.imlp-counter {
		min-width: 100px;
		padding: 12px 14px;
	}
	.imlp-game-scores {
		gap: 10px;
		font-size: 12px;
	}
}
