/* POK landing page: black screen, animated Kook, Log in / About panel. */
body.pok-landing-body {
	margin: 0;
	background: #171513 !important;
	color: #dbd7cf;
	min-height: 100vh;
	overflow-x: hidden;
}
.pok-landing {
	--pok-bg: #171513;
	--pok-surface: #201d1a;
	--pok-line: #3b3631;
	--pok-bone: #dbd7cf;
	--pok-bone-dim: #a8a299;
	--pok-rasp: #b93258;
	--pok-rasp-text: #e0577f;
	--pok-display: "Archivo Black", "Arial Black", Impact, system-ui, sans-serif;

	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	background: radial-gradient(ellipse at 50% 42%, #221e1b 0%, var(--pok-bg) 62%);
	color: var(--pok-bone);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
	overflow: hidden;
}
.pok-landing *, .pok-landing *::before, .pok-landing *::after { box-sizing: border-box; }

/* ---------- The Kook ---------- */
.pok-landing__stage {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), margin 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pok-kook {
	position: relative;
	display: block;
	width: min(300px, 70vw);
	aspect-ratio: 327 / 342;
	padding: 0;
	margin: 0;
	border: 0;
	background: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	border-radius: 50%;
}
.pok-kook:focus-visible { outline: 2px solid var(--pok-rasp); outline-offset: 12px; }
.pok-kook__glow {
	position: absolute;
	inset: 6% 2% 18%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(185, 50, 88, 0.55) 0%, rgba(185, 50, 88, 0.18) 45%, rgba(185, 50, 88, 0) 70%);
	filter: blur(14px);
	animation: pok-glow 4.5s ease-in-out infinite;
	transition: opacity 0.3s;
}
.pok-kook__float {
	position: absolute;
	inset: 0;
	display: block;
	animation: pok-float 6s ease-in-out infinite;
	transform-origin: 50% 35%;
}
.pok-kook img {
	display: block;
	width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
	animation: pok-breathe 3.2s ease-in-out infinite;
	transform-origin: 50% 20%;
	transition: transform 0.3s ease, filter 0.3s ease;
	filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6));
}
.pok-kook:hover img { filter: drop-shadow(0 0 18px rgba(185, 50, 88, 0.55)) drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6)); }
.pok-kook:hover .pok-kook__glow { opacity: 1.6; }
.pok-kook.is-squish .pok-kook__float { animation: pok-squish 0.45s ease-out; }

.pok-landing__hint {
	margin: 28px 0 0;
	padding: 8px 4px 8px 0.42em;
	border: 0;
	background: none;
	cursor: pointer;
	font-family: var(--pok-display);
	font-size: 1.05rem;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	color: var(--pok-rasp-text);
	animation: pok-hint 2.8s ease-in-out infinite;
	transition: opacity 0.3s;
}
.pok-landing__hint:hover, .pok-landing__hint:focus-visible { animation: none; opacity: 1; color: #fff; }
.pok-landing__hint:focus-visible { outline: 2px solid var(--pok-rasp); outline-offset: 4px; border-radius: 6px; }

@keyframes pok-float {
	0%, 100% { transform: translateY(0) rotate(-1.6deg); }
	50% { transform: translateY(-16px) rotate(1.6deg); }
}
@keyframes pok-breathe {
	0%, 100% { transform: scale(1, 1); }
	50% { transform: scale(1.018, 0.985); }
}
@keyframes pok-glow {
	0%, 100% { opacity: 0.55; transform: scale(0.94); }
	50% { opacity: 1; transform: scale(1.06); }
}
@keyframes pok-hint {
	0%, 100% { opacity: 0.35; }
	50% { opacity: 1; }
}
@keyframes pok-squish {
	0% { transform: scale(1, 1); }
	30% { transform: scale(1.12, 0.88); }
	60% { transform: scale(0.94, 1.08); }
	100% { transform: scale(1, 1); }
}

/* ---------- Bubbles ---------- */
.pok-landing__bubbles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.pok-landing__bubbles span {
	position: absolute;
	bottom: -30px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid rgba(219, 215, 207, 0.5);
	background: radial-gradient(circle at 30% 30%, rgba(219, 215, 207, 0.25), rgba(219, 215, 207, 0) 60%);
	animation: pok-bubble 14s linear infinite;
	opacity: 0;
}
.pok-landing__bubbles span:nth-child(1) { left: 8%; animation-delay: 0s; animation-duration: 15s; }
.pok-landing__bubbles span:nth-child(2) { left: 16%; width: 6px; height: 6px; animation-delay: 4s; animation-duration: 12s; }
.pok-landing__bubbles span:nth-child(3) { left: 24%; width: 14px; height: 14px; animation-delay: 8s; animation-duration: 18s; }
.pok-landing__bubbles span:nth-child(4) { left: 33%; width: 5px; height: 5px; animation-delay: 2s; animation-duration: 11s; }
.pok-landing__bubbles span:nth-child(5) { left: 41%; animation-delay: 10s; animation-duration: 16s; }
.pok-landing__bubbles span:nth-child(6) { left: 47%; width: 7px; height: 7px; animation-delay: 6s; animation-duration: 13s; }
.pok-landing__bubbles span:nth-child(7) { left: 53%; width: 12px; height: 12px; animation-delay: 1s; animation-duration: 17s; }
.pok-landing__bubbles span:nth-child(8) { left: 58%; width: 5px; height: 5px; animation-delay: 9s; animation-duration: 12s; }
.pok-landing__bubbles span:nth-child(9) { left: 64%; animation-delay: 3s; animation-duration: 15s; }
.pok-landing__bubbles span:nth-child(10) { left: 71%; width: 16px; height: 16px; animation-delay: 12s; animation-duration: 19s; }
.pok-landing__bubbles span:nth-child(11) { left: 78%; width: 6px; height: 6px; animation-delay: 5s; animation-duration: 13s; }
.pok-landing__bubbles span:nth-child(12) { left: 84%; animation-delay: 7s; animation-duration: 16s; }
.pok-landing__bubbles span:nth-child(13) { left: 90%; width: 8px; height: 8px; animation-delay: 11s; animation-duration: 14s; }
.pok-landing__bubbles span:nth-child(14) { left: 95%; width: 5px; height: 5px; animation-delay: 13s; animation-duration: 12s; }
@keyframes pok-bubble {
	0% { transform: translate(0, 0); opacity: 0; }
	10% { opacity: 1; }
	50% { transform: translate(12px, -55vh); }
	90% { opacity: 0.8; }
	100% { transform: translate(-8px, -110vh); opacity: 0; }
}

/* ---------- Panel ---------- */
.pok-panel {
	position: relative;
	z-index: 3;
	width: min(420px, 100%);
	margin-top: 0;
	background: var(--pok-surface);
	border: 1px solid var(--pok-line);
	border-top: 4px solid var(--pok-rasp);
	border-radius: 18px;
	padding: 22px 24px 24px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
	opacity: 0;
	transform: translateY(24px) scale(0.98);
	transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pok-panel[hidden] { display: none; }
.pok-landing.is-open .pok-panel { opacity: 1; transform: none; }
.pok-landing.is-open .pok-landing__stage { margin-bottom: -18px; }
.pok-landing.is-open .pok-kook { width: min(150px, 38vw); transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pok-kook { transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pok-landing.is-open .pok-landing__hint { opacity: 0; height: 0; margin: 0; overflow: hidden; }

.pok-panel__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--pok-line);
	background: var(--pok-bg);
	color: var(--pok-bone-dim);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
.pok-panel__close:hover { color: #fff; background: var(--pok-rasp); border-color: var(--pok-rasp); }
.pok-panel__name {
	margin: 4px 40px 18px 0;
	line-height: 0;
}
.pok-panel__name img { display: block; width: 100%; height: auto; }

.pok-tabs { display: flex; gap: 4px; padding: 4px; background: var(--pok-bg); border: 1px solid var(--pok-line); border-radius: 999px; margin-bottom: 20px; }
.pok-tabs button {
	flex: 1;
	font: inherit;
	font-weight: 800;
	font-size: 0.95rem;
	padding: 8px 12px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--pok-bone-dim);
	cursor: pointer;
}
.pok-tabs button:hover { color: var(--pok-bone); }
.pok-tabs button[aria-selected="true"] { background: var(--pok-rasp); color: #fff; }
.pok-tabs button:focus-visible { outline: 2px solid var(--pok-bone); outline-offset: 2px; }

.pok-pane[hidden] { display: none; }
.pok-pane form p { margin: 0 0 14px; }
.pok-pane label { display: block; font-weight: 700; margin-bottom: 5px; color: var(--pok-bone); }
.pok-pane input[type="text"], .pok-pane input[type="password"] {
	width: 100%;
	font: inherit;
	padding: 11px 12px;
	border: 1px solid var(--pok-line);
	border-radius: 10px;
	background: var(--pok-bg);
	color: var(--pok-bone);
}
.pok-pane input[type="text"]:focus, .pok-pane input[type="password"]:focus { outline: 2px solid var(--pok-rasp); outline-offset: 1px; border-color: var(--pok-rasp); }
.pok-pane .login-remember label { display: inline; font-weight: 400; color: var(--pok-bone-dim); }
.pok-pane input[type="checkbox"] { accent-color: var(--pok-rasp); }
.pok-pane input[type="submit"], .pok-landing__btn {
	display: block;
	width: 100%;
	text-align: center;
	font: inherit;
	font-weight: 800;
	font-size: 1rem;
	padding: 12px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--pok-rasp);
	color: #fff;
	cursor: pointer;
	text-decoration: none;
}
.pok-pane input[type="submit"]:hover, .pok-landing__btn:hover { background: var(--pok-rasp-text); color: #fff; }
.pok-pane__lead { font-size: 1.1rem; margin: 0 0 16px; }
.pok-pane__fine { margin: 14px 0 0; text-align: center; font-size: 0.85rem; }
.pok-pane__fine a, .pok-about a { color: var(--pok-bone-dim); text-decoration-color: var(--pok-rasp); text-underline-offset: 3px; }
.pok-pane__error { background: rgba(185, 50, 88, 0.14); border: 1px solid var(--pok-rasp); border-radius: 10px; padding: 10px 12px; margin: 0 0 14px; font-weight: 700; }
.pok-pane__error ul { margin: 0; padding-left: 18px; }
.pok-pane__error li + li { margin-top: 4px; }
.pok-pane__hint { display: block; margin-top: 5px; font-size: 0.8rem; color: var(--pok-bone-dim); }
.pok-pane input[type="email"] { width: 100%; font: inherit; padding: 11px 12px; border: 1px solid var(--pok-line); border-radius: 10px; background: var(--pok-bg); color: var(--pok-bone); }
.pok-pane input[type="email"]:focus { outline: 2px solid var(--pok-rasp); outline-offset: 1px; border-color: var(--pok-rasp); }
.pok-join__trap { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pok-tabs button { white-space: nowrap; }

.pok-about, #pok-pane-join { max-height: min(56vh, 520px); overflow-y: auto; padding-right: 4px; }
.pok-about h1 { font-family: var(--pok-display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; color: var(--pok-bone); margin: 0 0 12px; }
.pok-about p { margin: 0 0 12px; color: var(--pok-bone); }
.pok-about strong { color: var(--pok-rasp-text); }
.pok-about .pok-about__fine { color: var(--pok-bone-dim); font-size: 0.9rem; font-style: italic; margin-bottom: 0; }

@media (max-width: 520px) {
	.pok-landing { padding: 16px 12px; justify-content: center; }
	.pok-panel { padding: 18px 16px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.pok-kook__float, .pok-kook img, .pok-kook__glow, .pok-landing__hint, .pok-landing__bubbles span { animation: none !important; }
	.pok-landing__bubbles { display: none; }
	.pok-panel, .pok-landing__stage, .pok-kook { transition: none; }
}
