/* Mr. Dwope Coming Soon */
:root {
	--bg: #0f1113;
	--panel: #16191c;
	--tile: #1b1f23;
	--line: #262b30;
	--orange: #f28c28;
	--orange-2: #ffae4f;
	--green: #3fae62;
	--green-dark: #1f6b3a;
	--red: #e5484d;
	--cream: #f4e9d8;
	--muted: #9aa3ab;
	--radius: 16px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body.mdcs {
	background: var(--bg);
	color: var(--cream);
	font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.stage {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(60% 45% at 50% 38%, rgba(242, 140, 40, .10), transparent 70%),
		radial-gradient(40% 30% at 50% 100%, rgba(63, 174, 98, .12), transparent 70%),
		var(--bg);
}

/* Rounded tile grid, like a keyboard / trading terminal */
.grid {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect x='4' y='4' width='72' height='72' rx='16' fill='%231a1e22'/%3E%3C/svg%3E");
	background-size: 80px 80px;
	background-position: center top;
	-webkit-mask-image: radial-gradient(110% 85% at 50% 40%, #000 40%, transparent 100%);
	        mask-image: radial-gradient(110% 85% at 50% 40%, #000 40%, transparent 100%);
}

/* ---------- Header ---------- */
.brand {
	margin-top: clamp(16px, 3vh, 32px);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	z-index: 2;
}
.brand > img { width: 40px; height: auto; display: none; }
.brand__name {
	font-family: "Lilita One", "Nunito", sans-serif;
	font-size: clamp(26px, 3.2vw, 34px);
	letter-spacing: .5px;
	color: var(--orange);
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-shadow: 0 3px 0 #7a3d06;
	transform: rotate(-3deg);
}
.lives {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(22, 25, 28, .8);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--muted);
}
.lives__paws { display: inline-flex; gap: 2px; font-style: normal; }
.lives__paws i { font-style: normal; line-height: 0; }
.lives__paws svg { width: 13px; height: 13px; fill: var(--orange); }
.lives__paws .dead { filter: grayscale(1); opacity: .28; }
.lives__paws .alive { animation: pulse 1.6s ease-in-out infinite; }

/* ---------- Main ---------- */
.content {
	width: min(680px, calc(100% - 32px));
	text-align: center;
	margin-top: clamp(16px, 3.5vh, 40px);
	z-index: 2;
}

.countdown {
	display: inline-grid;
	grid-template-columns: repeat(4, minmax(64px, 1fr));
	gap: 6px;
	margin-bottom: clamp(18px, 3vh, 28px);
}
.unit {
	background: linear-gradient(180deg, #23282d, #1b1f23);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 10px 10px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.unit b {
	display: block;
	font-family: "Lilita One", sans-serif;
	font-weight: 400;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1;
	color: var(--orange-2);
	font-variant-numeric: tabular-nums;
}
.unit small {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

.headline {
	margin: 0;
	font-family: "Lilita One", sans-serif;
	font-weight: 400;
	font-size: clamp(44px, 8vw, 84px);
	line-height: .95;
	text-transform: uppercase;
	color: var(--cream);
	letter-spacing: 1px;
	text-shadow: 0 4px 0 rgba(0, 0, 0, .45);
}
.sub {
	margin: 14px auto 0;
	max-width: 520px;
	font-size: clamp(15px, 1.6vw, 17px);
	line-height: 1.55;
	color: #cfc6b8;
}

/* Form */
.notify {
	margin: 24px auto 0;
	display: flex;
	gap: 8px;
	max-width: 440px;
}
.notify input[type="email"] {
	flex: 1;
	min-width: 0;
	height: 48px;
	padding: 0 18px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: #1d2226;
	color: var(--cream);
	font: inherit;
	font-size: 15px;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.notify input[type="email"]::placeholder { color: #7d868e; }
.notify input[type="email"]:focus {
	border-color: var(--orange);
	box-shadow: 0 0 0 4px rgba(242, 140, 40, .18);
}
.notify button {
	height: 48px;
	padding: 0 22px;
	border: 0;
	border-radius: 999px;
	background: var(--green);
	color: #0d1f13;
	font: inherit;
	font-weight: 800;
	font-size: 14px;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 4px 0 var(--green-dark);
	transition: transform .12s, box-shadow .12s, background .2s;
	white-space: nowrap;
}
.notify button:hover { background: #4cc070; }
.notify button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--green-dark); }
.notify button[disabled] { opacity: .7; cursor: progress; }
.notify.is-done { display: none; }

.msg {
	min-height: 22px;
	margin: 12px 0 0;
	font-size: 14px;
	font-weight: 600;
}
.msg.is-ok { color: var(--green); }
.msg.is-err { color: #ff8a8e; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Socials */
.socials {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-top: 10px;
}
.socials a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	color: var(--muted);
	background: rgba(27, 31, 35, .7);
	border: 1px solid var(--line);
	transition: color .2s, transform .2s, border-color .2s;
}
.socials a:hover { color: var(--orange); border-color: var(--orange); transform: translateY(-2px); }
.socials svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.socials svg .fill { fill: currentColor; stroke: none; }

/* ---------- Mr. Dwope ---------- */
.dwope {
	position: relative;
	flex: 1 0 auto;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	margin-top: 8px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	z-index: 1;
	-webkit-tap-highlight-color: transparent;
}
.dwope__img {
	display: block;
	height: clamp(220px, 31vh, 420px);
	width: auto;
	filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55));
	transform-origin: 50% 100%;
	animation: bob 3.4s ease-in-out infinite;
	user-select: none;
	-webkit-user-drag: none;
}
.dwope__img--panic {
	position: absolute;
	bottom: 0;
	left: 50%;
	translate: -50% 0;
	opacity: 0;
	animation: none;
}
.dwope.is-panic .dwope__img--happy { opacity: 0; }
.dwope.is-panic .dwope__img--panic { opacity: 1; animation: shake .45s linear 2; }

.bubble {
	position: absolute;
	top: 6%;
	left: calc(50% + clamp(90px, 13vh, 150px));
	padding: 10px 14px;
	border-radius: 14px 14px 14px 4px;
	background: var(--cream);
	color: #1a1a1a;
	font-weight: 800;
	font-size: 14px;
	line-height: 1.25;
	width: max-content;
	max-width: 220px;
	text-align: left;
	box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
	opacity: 0;
	transform: translateY(6px) scale(.96);
	transition: opacity .25s, transform .25s;
	pointer-events: none;
	white-space: normal;
}
.dwope.is-talking .bubble,
.dwope:hover .bubble { opacity: 1; transform: none; }

/* ---------- Floating tokens ---------- */
.floaters { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.tok {
	position: absolute;
	left: var(--x);
	top: var(--y);
	translate: -50% -50%;
	rotate: var(--r);
	transform: translate3d(var(--px, 0), var(--py, 0), 0);
	transition: transform .25s ease-out;
	filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5));
}
.coin {
	width: clamp(64px, 8vw, 104px);
	aspect-ratio: 1;
	border-radius: 50%;
	display: grid;
	place-items: center;
	border: 7px dashed rgba(15, 17, 19, .55);
	animation: float 6s ease-in-out infinite;
}
.coin img { width: 52%; height: auto; }
.coin--orange { background: radial-gradient(circle, var(--orange-2) 0 55%, var(--orange) 56%); }
.coin--green { background: radial-gradient(circle, #2c8a4b 0 55%, var(--green) 56%); }
.coin--cream { background: radial-gradient(circle, #fff6e8 0 55%, var(--cream) 56%); }
.candle {
	width: clamp(16px, 1.6vw, 22px);
	height: clamp(56px, 7vw, 84px);
	border-radius: 5px;
	animation: float 7s ease-in-out infinite reverse;
}
.candle::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -22px;
	bottom: -22px;
	width: 3px;
	translate: -50% 0;
	border-radius: 2px;
	background: inherit;
	z-index: -1;
}
.candle--up { background: var(--green); }
.candle--down { background: var(--red); }
.paw { width: clamp(30px, 3vw, 42px); opacity: .5; animation: float 8s ease-in-out infinite; line-height: 0; }
.paw svg { width: 100%; height: auto; fill: var(--orange); }
.paw--green svg { fill: var(--green); }

/* ---------- Footer ---------- */
.disclaimer {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 12px 16px 14px;
	text-align: center;
	font-size: 11.5px;
	line-height: 1.5;
	color: #8c949b;
	background: rgba(12, 14, 16, .92);
	border-top: 1px solid var(--line);
}

/* ---------- Motion ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-.6deg); } }
@keyframes float { 0%, 100% { margin-top: 0; } 50% { margin-top: -12px; } }
@keyframes shake {
	0%, 100% { transform: translateX(0) rotate(0); }
	20% { transform: translateX(-6px) rotate(-2deg); }
	40% { transform: translateX(6px) rotate(2deg); }
	60% { transform: translateX(-4px) rotate(-1deg); }
	80% { transform: translateX(4px) rotate(1deg); }
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.notify { flex-direction: column; }
	.notify input[type="email"] { flex: none; width: 100%; }
	.tok--hide-sm { display: none; }
	.notify button { width: 100%; }
	.countdown { grid-template-columns: repeat(4, 1fr); width: 100%; }
	.unit { padding: 10px 4px 8px; }
	.coin--green, .paw, .candle--down { display: none; }
	.tok { opacity: .8; }
	.coin { width: 58px; border-width: 5px; }
	.bubble { left: auto; right: 4%; top: -4%; max-width: 150px; font-size: 13px; }
	.dwope__img { height: clamp(220px, 34vh, 340px); }
}
