/* ============ WebMC Launcher — built on the main site theme ============ */

.wmc-wrap {
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 90px 20px 60px;
}

.back-link {
	position: fixed;
	top: 24px;
	left: 24px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--text-dim);
	text-decoration: none;
	transition: color 0.25s ease, transform 0.25s ease;
	z-index: 50;
}

.back-link:hover {
	color: var(--accent);
	transform: translateX(-3px);
}

/* ---- Launcher window ---- */
.wmc-launcher {
	width: min(620px, 100%);
	overflow: hidden;
	padding: 0;
	box-shadow: 0 0 90px -24px var(--glow);
}

/* Titlebar */
.wmc-titlebar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	background: rgba(0, 0, 0, 0.35);
	border-bottom: 1px solid var(--border);
}

.wmc-titlebar-left {
	display: flex;
	align-items: center;
	gap: 11px;
}

.wmc-logo {
	width: 30px; height: 30px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(6, 182, 212, 0.16));
	border: 1px solid var(--border);
	color: var(--accent);
}

.wmc-logo svg { width: 15px; height: 15px; }

.wmc-titlebar-name {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.2px;
}

.wmc-titlebar-name .dim { font-weight: 400; font-size: 12px; }

.wmc-titlebar-dots { display: flex; gap: 7px; }
.wmc-titlebar-dots span {
	width: 11px; height: 11px;
	border-radius: 50%;
	background: var(--surface-hover);
	border: 1px solid var(--border);
}

/* ---- Body / hero ---- */
.wmc-body {
	position: relative;
	padding: 44px 34px 40px;
	background:
		radial-gradient(420px circle at 80% 10%, rgba(139, 92, 246, 0.12), transparent 60%),
		radial-gradient(380px circle at 15% 90%, rgba(6, 182, 212, 0.08), transparent 60%);
	/* dezentes Block-Raster als Minecraft-Anspielung */
	background-color: rgba(0, 0, 0, 0.12);
}

.wmc-body::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
	background-size: 26px 26px;
	pointer-events: none;
}

.wmc-hero { position: relative; }

.wmc-hero-badge {
	display: inline-block;
	font-size: 10.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1.4px;
	color: var(--accent);
	padding: 4px 12px;
	border-radius: 99px;
	background: rgba(139, 92, 246, 0.12);
	border: 1px solid rgba(139, 92, 246, 0.35);
	margin-bottom: 14px;
}

.wmc-hero-version {
	font-size: clamp(44px, 10vw, 62px);
	font-weight: 800;
	letter-spacing: -2px;
	line-height: 1;
	background: linear-gradient(90deg, #fff, #b8b8d8);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.wmc-hero-desc {
	margin-top: 12px;
	font-size: 14.5px;
	color: var(--text-dim);
	max-width: 420px;
	line-height: 1.65;
	min-height: 3.2em;
}

.wmc-hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }

.wmc-tag {
	font-size: 10.5px;
	padding: 4px 11px;
	border-radius: 99px;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid var(--border);
	color: var(--text-dim);
}

/* ---- Launcher bar (bottom) ---- */
.wmc-bar {
	display: flex;
	align-items: stretch;
	gap: 14px;
	padding: 16px 18px;
	background: rgba(0, 0, 0, 0.4);
	border-top: 1px solid var(--border);
}

/* Version dropdown (opens upward, launcher style) */
.wmc-select {
	position: relative;
	flex: 1;
	min-width: 0;
}

.wmc-select-btn {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
	padding: 9px 40px 9px 15px;
	font-family: inherit;
	text-align: left;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	position: relative;
	transition: border-color 0.25s ease, background 0.25s ease;
}

.wmc-select-btn:hover,
.wmc-select.open .wmc-select-btn {
	border-color: rgba(139, 92, 246, 0.5);
	background: var(--surface-hover);
}

.wmc-select-label {
	font-size: 9.5px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
}

.wmc-select-value {
	font-size: 14.5px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.wmc-select-arrow {
	position: absolute;
	right: 14px;
	top: 50%;
	width: 17px; height: 17px;
	transform: translateY(-50%);
	color: var(--text-dim);
	transition: transform 0.3s ease, color 0.25s ease;
}

.wmc-select.open .wmc-select-arrow {
	transform: translateY(-50%) rotate(180deg);
	color: var(--accent);
}

.wmc-select-list {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 0;
	right: 0;
	list-style: none;
	margin: 0;
	padding: 6px;
	background: #14121f;
	border: 1px solid var(--border);
	border-radius: 14px;
	box-shadow: 0 -14px 44px -18px rgba(0, 0, 0, 0.8), 0 0 50px -22px var(--glow);
	z-index: 20;
	animation: wmc-pop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes wmc-pop {
	from { opacity: 0; transform: translateY(8px) scale(0.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.wmc-select-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 11px 14px;
	border-radius: 9px;
	border-left: 3px solid transparent;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.wmc-select-item:hover {
	background: var(--surface-hover);
	border-left-color: var(--accent);
}

.wmc-select-item.selected {
	background: rgba(139, 92, 246, 0.12);
	border-left-color: var(--accent);
}

.wmc-item-version { font-size: 14px; font-weight: 700; color: var(--text); }
.wmc-item-sub { font-size: 10.5px; color: var(--text-dim); }

/* WASM option toggle */
.wmc-option {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 16px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	transition: border-color 0.25s ease, background 0.25s ease;
	user-select: none;
}

.wmc-option:hover {
	border-color: rgba(139, 92, 246, 0.5);
	background: var(--surface-hover);
}

.wmc-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.wmc-option-box {
	width: 22px; height: 22px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 7px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid var(--border);
	color: transparent;
	transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wmc-option-box svg {
	width: 13px; height: 13px;
	transform: scale(0);
	transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wmc-option input:checked + .wmc-option-box {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 0 14px -2px var(--glow);
}

.wmc-option input:checked + .wmc-option-box svg { transform: scale(1); }

.wmc-option-text {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.wmc-option-name {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text);
	letter-spacing: 0.5px;
}

.wmc-option-sub {
	font-size: 9.5px;
	color: var(--text-dim);
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Play button — Minecraft-launcher green */
.wmc-play-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 38px;
	font-family: inherit;
	font-size: 16.5px;
	font-weight: 800;
	letter-spacing: 1.5px;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
	background: linear-gradient(180deg, #4caf50, #2e7d32);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-bottom-color: rgba(0, 0, 0, 0.4);
	border-radius: 12px;
	box-shadow: 0 4px 0 #1b5e20, 0 10px 26px -10px rgba(76, 175, 80, 0.55);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.2s ease;
}

.wmc-play-btn svg { width: 19px; height: 19px; }

.wmc-play-btn:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow: 0 6px 0 #1b5e20, 0 16px 32px -10px rgba(76, 175, 80, 0.6);
}

.wmc-play-btn:active {
	transform: translateY(3px);
	box-shadow: 0 1px 0 #1b5e20, 0 6px 18px -8px rgba(76, 175, 80, 0.5);
}

.wmc-note {
	font-size: 11.5px;
	text-align: center;
}

@media (max-width: 520px) {
	.wmc-body { padding: 32px 22px 30px; }
	.wmc-bar { flex-direction: column; }
	.wmc-play-btn { padding: 15px; width: 100%; }
}
