
@import url('https://fonts.googleapis.com/css2?family=Marcellus+SC&family=Inter:wght@400;500;600;700&display=swap');

:root {
	--lp-bg:        #1c2625;   	--lp-bg2:       #1a2327;   	--lp-panel:     #efe3ca;   	--lp-panel-2:   rgba(244, 239, 228, 0.97); 	--lp-gold:      #7cb029;   	--lp-gold-light:#cbb198;   	--lp-gold-dark: #7b6050;   	--lp-crimson:   #7cb029;   	--lp-crimson-d: #587c1e;   	--lp-text:      #fff9eb;   	--lp-muted:     #cdbfa6;   	--lp-ink:       #463a30;   	--lp-ink-h:     #5e463a;   	--lp-ink-muted: #877055;   	--lp-green-link:#5a9a0a;   	--lp-border:    rgba(123, 96, 80, 0.40); 	--lp-border-s:  rgba(123, 96, 80, 0.75); 	--lp-hero-img:  url('images/artwork.jpg');
	--lp-display:   'Marcellus SC', serif;
	--lp-title:     'Marcellus SC', serif;
	--lp-body:      'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.is-hidden { display: none !important; }
html { scroll-behavior: smooth; }
body.landing #stats,
body.landing #features,
body.landing #gallery { scroll-margin-top: 76px; }
body.landing {
	margin: 0;
	padding: 0;
	background: var(--lp-bg);
	color: var(--lp-text);
	font-family: var(--lp-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
		min-height: 100vh;
	display: flex;
	flex-direction: column;
}
body.landing * { box-sizing: border-box; }
body.landing a { color: var(--lp-gold); text-decoration: none; transition: color .2s; }
body.landing a:hover { color: var(--lp-gold-light); }
body.landing img { max-width: 100%; }
body.landing.splashing { overflow: hidden; }

.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

.lp-btn {
	position: relative;
	overflow: hidden;
	display: inline-block;
	font-family: var(--lp-title);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	font-size: 15px;
	padding: 14px 30px;
	border-radius: 4px;
	cursor: pointer;
	border: 1px solid var(--lp-border-s);
	transition: transform .15s, box-shadow .2s, background .2s;
}
.lp-btn::before {
	content: '';
	position: absolute;
	top: 0; left: -120%;
	width: 60%; height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
	transform: skewX(-20deg);
	transition: left .55s ease;
	pointer-events: none;
}
.lp-btn:hover::before { left: 150%; }
.lp-btn:hover { transform: translateY(-2px); }

body.landing .lp-btn-primary {
	color: #f2f2f2;
	background: linear-gradient(180deg, #8ec53a, var(--lp-crimson) 55%, var(--lp-crimson-d));
	border-color: #3f5a14;
	box-shadow: 0 6px 20px rgba(88, 124, 30, .4);
}
body.landing .lp-btn-primary:hover { color: #fff; box-shadow: 0 10px 28px rgba(88, 124, 30, .55); }
body.landing .lp-btn-ghost {
	color: var(--lp-gold-light);
	background: rgba(0, 0, 0, .25);
	border-color: var(--lp-border-s);
}
body.landing .lp-btn-ghost:hover { color: #fff; background: rgba(203, 177, 152, .14); }

.lp-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: linear-gradient(180deg, #cbb198, #b09478 58%, #7b6050);
	border-bottom: 1px solid #5a4636;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.lp-header .lp-wrap {
	display: flex;
	align-items: center;
	gap: 18px;
	height: 64px;
}

.lp-header .lp-logo {
	font-family: var(--lp-display);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: .04em;
	color: #3f2f22;
	white-space: nowrap;
	text-shadow: 0 1px 0 rgba(255, 248, 235, .35);
}
.lp-header .lp-logo:hover { color: #271b12; }
.lp-nav { display: flex; gap: 6px; margin-left: 18px; flex: 1; flex-wrap: wrap; }
.lp-header .lp-nav a {
	font-family: var(--lp-title);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #4a3829;
	padding: 8px 12px;
	border-radius: 4px;
}
.lp-header .lp-nav a:hover, .lp-header .lp-nav a.active { color: #271b12; background: rgba(63, 47, 34, .14); }
.lp-header-cta { display: flex; align-items: stretch; gap: 12px; }
.lp-header .lp-discord {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: #5865f2;
	border: 1px solid #4752c4;
	border-radius: 4px;
	padding: 5px 10px;
	transition: background .15s;
}
.lp-discord svg { width: 22px; height: 22px; display: block; fill: currentColor; }
.lp-header .lp-discord:hover { background: #4752c4; }
.lp-discord-count {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}
.lp-discord-count .lp-dc-on { color: #fff; font-weight: 700; }
.lp-discord-count .lp-dc-tot { margin-left: 4px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.lp-discord-count::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #3ba55d;
	box-shadow: 0 0 0 0 rgba(59, 165, 93, .6);
	animation: lp-discord-pulse 2s infinite;
}
@keyframes lp-discord-pulse {
	0% { box-shadow: 0 0 0 0 rgba(59, 165, 93, .55); }
	70% { box-shadow: 0 0 0 5px rgba(59, 165, 93, 0); }
	100% { box-shadow: 0 0 0 0 rgba(59, 165, 93, 0); }
}
@media (prefers-reduced-motion: reduce) { .lp-discord-count::before { animation: none; } }

.lp-header .lp-login-btn {
	font-family: var(--lp-title);
	font-weight: 600;
	font-size: 14px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #f2f2f2;
	background: linear-gradient(180deg, #8ec53a, var(--lp-gold) 60%, var(--lp-crimson-d));
	border: 1px solid #3f5a14;
	padding: 9px 20px;
	border-radius: 4px;
}
.lp-header .lp-login-btn:hover { color: #fff; filter: brightness(1.08); }

.lp-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 42px;
	height: 36px;
	padding: 0 8px;
	background: rgba(63, 47, 34, .10);
	border: 1px solid #5a4636;
	border-radius: 4px;
	cursor: pointer;
}
.lp-burger span {
	display: block;
	height: 2px;
	background: #3f2f22;
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}
.lp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.lp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lp-appbar { display: none; }
.lp-appbar.show {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	background: linear-gradient(180deg, #2a1d13, #1c130c);
	border-bottom: 1px solid #5a4636;
	color: #e8dcc8;
	font-size: 14px;
	line-height: 1.3;
}
.lp-appbar-txt { flex: 1; }
.lp-appbar-install {
	flex: none;
	font-family: var(--lp-title);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(180deg, #8ec53a, var(--lp-gold) 60%, var(--lp-crimson-d));
	border: 1px solid #3f5a14;
	padding: 7px 14px;
	border-radius: 4px;
	cursor: pointer;
}
.lp-appbar-close {
	flex: none;
	background: none;
	border: 0;
	color: #c9b89f;
	font-size: 22px;
	line-height: 1;
	padding: 0 4px;
	cursor: pointer;
}

.lp-hero {
	position: relative;
	min-height: calc(100vh - 64px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 60px 22px;
	background: var(--lp-hero-img) center / cover no-repeat;
}
.lp-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 28, 27, .55) 0%, rgba(20, 28, 27, .35) 40%, rgba(20, 28, 27, .85) 88%, var(--lp-bg) 100%);
}

.lp-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background: radial-gradient(circle at 50% 36%, rgba(203, 177, 152, .14), transparent 58%);
	pointer-events: none;
}
.lp-hero > * { position: relative; z-index: 1; }

.lp-hero > * { animation: lp-rise .8s both; }
.lp-hero .lp-live      { animation-delay: .05s; }
.lp-hero .lp-tagline   { animation-delay: .28s; }
.lp-hero-actions       { animation-delay: .42s; }
@keyframes lp-rise {
	from { opacity: 0; transform: translateY(26px); }
	to   { opacity: 1; transform: none; }
}
.lp-live {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-family: var(--lp-title);
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lp-gold-light);
	background: rgba(0, 0, 0, .45);
	border: 1px solid var(--lp-border-s);
	border-radius: 30px;
	padding: 7px 18px;
	margin-bottom: 26px;
}
.lp-live .dot {
	width: 9px; height: 9px; border-radius: 50%;
	background: #46d160; box-shadow: 0 0 0 0 rgba(70, 209, 96, .7);
	animation: lp-pulse 1.8s infinite;
}
@keyframes lp-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(70, 209, 96, .7); }
	70%  { box-shadow: 0 0 0 11px rgba(70, 209, 96, 0); }
	100% { box-shadow: 0 0 0 0 rgba(70, 209, 96, 0); }
}
.lp-hero h1 {
	font-family: var(--lp-display);
	font-weight: 900;
	font-size: clamp(42px, 8vw, 96px);
	line-height: 1.04;

	letter-spacing: 0.06em;
	margin: 0 0 18px;
	color: #fdf6e8;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .7), 0 0 40px rgba(203, 177, 152, .28);
	animation: lp-rise .8s .15s both, lp-shimmer 4s ease-in-out 1.1s infinite;
}
.lp-hero h1::after {
	content: '';
	display: block;
	width: clamp(90px, 16vw, 160px);
	height: 2px;
	margin: 20px auto 0;
	background: linear-gradient(90deg, transparent, var(--lp-gold-light), transparent);
}
@keyframes lp-shimmer {
	0%, 100% { text-shadow: 0 2px 24px rgba(0, 0, 0, .7), 0 0 40px rgba(203, 177, 152, .28); }
	50%      { text-shadow: 0 2px 24px rgba(0, 0, 0, .7), 0 0 62px rgba(203, 177, 152, .55); }
}
.lp-hero .lp-tagline {
	font-family: var(--lp-title);
	font-size: clamp(15px, 2.2vw, 20px);
	letter-spacing: .08em;
	color: var(--lp-gold-light);
	text-transform: uppercase;
	margin: 0 0 36px;
}
.lp-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.lp-scroll-cue {
	position: absolute;
	bottom: 22px; left: 50%; transform: translateX(-50%);
	z-index: 1;
	font-family: var(--lp-title);
	font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
	color: var(--lp-muted);
	animation: lp-bob 2s ease-in-out infinite;
}
@keyframes lp-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

.lp-maint-msg {
	max-width: 620px;
	margin: 4px auto 32px;
	color: var(--lp-muted);
	font-size: 18px;
}
.lp-live.warn .dot { background: #e0a43a; animation: lp-pulse-warn 1.8s infinite; }
@keyframes lp-pulse-warn {
	0%   { box-shadow: 0 0 0 0 rgba(224, 164, 58, .7); }
	70%  { box-shadow: 0 0 0 11px rgba(224, 164, 58, 0); }
	100% { box-shadow: 0 0 0 0 rgba(224, 164, 58, 0); }
}

.lp-stats {
	background: linear-gradient(180deg, var(--lp-bg), var(--lp-bg2));
	border-top: 1px solid var(--lp-border);
	border-bottom: 1px solid var(--lp-border);
	padding: 46px 0;
}
.lp-stats .lp-wrap {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	text-align: center;
}
.lp-stat { padding: 6px 10px; border-radius: 8px; transition: background .25s; }
.lp-stat:hover { background: rgba(124, 176, 41, .08); }
.lp-stat .num {
	font-family: var(--lp-display);
	font-weight: 700;
	font-size: clamp(34px, 6vw, 58px);
	color: var(--lp-gold);
	line-height: 1;
	text-shadow: 0 0 24px rgba(124, 176, 41, .3);
}
.lp-stat .label {
	font-family: var(--lp-title);
	font-size: 13px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--lp-muted);
	margin-top: 10px;
}
.lp-stat + .lp-stat { border-left: 1px solid var(--lp-border); }

.lp-section { padding: 78px 0; }
.lp-section.alt { background: var(--lp-bg2); }
.lp-eyebrow {
	font-family: var(--lp-title);
	font-size: 13px;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--lp-gold);
	text-align: center;
	margin: 0 0 12px;
}
.lp-h2 {
	font-family: var(--lp-display);
	font-weight: 700;
	font-size: clamp(28px, 4.5vw, 46px);
	color: var(--lp-gold-light);
	text-align: center;
	margin: 0 0 20px;
}
.lp-lead {
	max-width: 760px;
	margin: 0 auto 48px;
	text-align: center;
	color: var(--lp-muted);
	font-size: 17px;
}
.lp-lead b, .lp-lead strong { color: var(--lp-text); }

.lp-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.lp-card {
	position: relative;
	background: var(--lp-panel-2);
	border: 1px solid var(--lp-border-s);
	border-radius: 8px;
	overflow: hidden;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}

.lp-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	z-index: 2;
	background: linear-gradient(90deg, var(--lp-crimson-d), var(--lp-gold), var(--lp-crimson-d));
	transform: scaleX(0);
	transition: transform .3s ease;
}
.lp-card:hover::before { transform: scaleX(1); }
.lp-card:hover {
	transform: translateY(-4px);
	border-color: #6f5947;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
.lp-card .thumb { display: block; width: 100%; height: 168px; object-fit: cover; background: #d8c8a8; border-bottom: 1px solid var(--lp-border); }
.lp-card .body { padding: 22px; }
.lp-card h3 {
	font-family: var(--lp-title);
	font-weight: 700;
	font-size: 21px;
	color: var(--lp-ink-h);
	margin: 0 0 6px;
}
.lp-card .tag {
	font-family: var(--lp-title);
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lp-ink-muted);
	display: block;
	margin-bottom: 12px;
}
.lp-card p { margin: 0; color: var(--lp-ink); font-size: 15px; }

.lp-features {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
}
.lp-feature {
	flex: 0 1 calc((100% - 44px) / 3);
	position: relative;
	background: var(--lp-panel-2);
	border: 1px solid var(--lp-border-s);
	border-radius: 8px;
	padding: 24px 24px 24px 44px;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}
.lp-feature::before {
	content: '\2726'; 	position: absolute;
	left: 20px; top: 24px;
	color: var(--lp-gold);
	font-size: 16px;
	line-height: 1.2;
}
.lp-feature:hover { transform: translateY(-4px); border-color: #6f5947; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.lp-feature h3 {
	font-family: var(--lp-title);
	font-weight: 700;
	font-size: 19px;
	color: var(--lp-ink-h);
	margin: 0 0 8px;
}
.lp-feature p { margin: 0; color: var(--lp-ink); font-size: 15px; }

.lp-shots {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.lp-shots-switch { display: flex; justify-content: center; gap: 8px; margin-bottom: 26px; }
.lp-shots-switch input { position: absolute; opacity: 0; pointer-events: none; }
.lp-shots-switch label {
	cursor: pointer;
	font-family: var(--lp-title);
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lp-gold-light);
	padding: 8px 20px;
	border: 1px solid var(--lp-border-s);
	border-radius: 6px;
	background: linear-gradient(160deg, #1f2a29, #141b1c);
	transition: border-color .2s, color .2s, background .2s;
}
.lp-shots-switch label:hover { border-color: #6f5947; }
#shots-desktop:checked ~ .lp-shots-switch label[for="shots-desktop"],
#shots-mobile:checked ~ .lp-shots-switch label[for="shots-mobile"] { color: #fff; }
.lp-shots-switch input:checked + label { border-color: var(--lp-gold-light); color: #fff; background: linear-gradient(160deg, #2a3635, #1b2425); }
.lp-shots-desktop, .lp-shots-mobile { display: none; }
.lp-shots-switch:has(#shots-desktop:checked) ~ .lp-shots-desktop { display: grid; }
.lp-shots-switch:has(#shots-mobile:checked) ~ .lp-shots-mobile { display: grid; }
.lp-shots-mobile .lp-shot { aspect-ratio: 9 / 16; }
.lp-shots-mobile .lp-shot img { object-position: top center; }
.lp-shot {
	position: relative;
	margin: 0;
	border: 1px solid var(--lp-border-s);
	border-radius: 8px;
	overflow: hidden;
	background: linear-gradient(160deg, #1f2a29, #141b1c);
	aspect-ratio: 16 / 10;
	transition: transform .2s, border-color .2s, box-shadow .2s;
}
.lp-shot:hover { transform: translateY(-4px); border-color: #6f5947; box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.lp-shot.is-clickable { cursor: zoom-in; }
.lp-shot img { display: block; width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.lp-shot figcaption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	font-family: var(--lp-title);
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lp-gold-light);
	background: linear-gradient(180deg, transparent, rgba(20, 27, 28, .92));
	padding: 22px 14px 10px;
}
.lp-shot.is-empty::before {
	content: 'Coming soon';
	position: absolute;
	inset: 0;
	z-index: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--lp-title);
	letter-spacing: .22em;
	text-transform: uppercase;
	font-size: 12px;
	color: var(--lp-muted);
}

.lp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 4vh 2vw;
	background: rgba(10, 14, 14, .92);
	backdrop-filter: blur(3px);
}
.lp-lightbox[hidden] { display: none; }
body.lp-lb-open { overflow: hidden; }
.lp-lb-stage {
	margin: 0;
	max-width: 100%;
	max-height: 92vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.lp-lb-img {
	max-width: 100%;
	max-height: 86vh;
	border: 1px solid var(--lp-border-s);
	border-radius: 8px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
	background: #141b1c;
}
.lp-lb-cap {
	margin-top: 12px;
	font-family: var(--lp-title);
	font-size: 14px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lp-gold-light);
}
.lp-lb-nav,
.lp-lb-close {
	flex: none;
	cursor: pointer;
	color: var(--lp-gold-light);
	background: rgba(20, 27, 28, .7);
	border: 1px solid var(--lp-border-s);
	border-radius: 50%;
	line-height: 1;
	transition: background .15s, border-color .15s, color .15s;
}
.lp-lb-nav {
	width: 52px;
	height: 52px;
	font-size: 30px;
}
.lp-lb-nav:hover,
.lp-lb-close:hover { background: var(--lp-gold); border-color: var(--lp-gold); color: #271b12; }
.lp-lb-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 42px;
	height: 42px;
	font-size: 26px;
}
@media (max-width: 720px) {
	.lp-lb-nav { width: 42px; height: 42px; font-size: 24px; }
	.lp-lb-img { max-height: 74vh; }
}

.lp-news {
	max-width: 760px;
	margin: 0 auto;
	background: var(--lp-panel-2);
	border: 1px solid var(--lp-border-s);
	border-radius: 8px;
	padding: 28px 32px;
}
.lp-news .news p { margin: 0 0 10px; color: var(--lp-ink); }
.lp-news .news .date { color: var(--lp-green-link); font-weight: 600; }

.lp-footer {
	margin-top: auto; 	background: #141b1c;
	border-top: 1px solid var(--lp-border);
	padding: 16px 0 14px;
	text-align: center;
}
.lp-footer .links { display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.lp-footer .links a {
	font-family: var(--lp-title);
	font-size: 13px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--lp-muted);
}
.lp-footer .links a:hover { color: var(--lp-gold-light); }
.lp-footer .copy { color: #8a7d68; font-size: 13px; }
.lp-footer .cc { margin-top: 14px; opacity: .55; }
.lp-footer .cc img { height: 31px; width: 88px; border: 0; }

.lp-policy-head { text-align: center; padding: 64px 22px 30px; }
.lp-policy-head h1 {
	font-family: var(--lp-display);
	font-weight: 900;
	font-size: clamp(34px, 6vw, 60px);
	color: var(--lp-gold-light);
	text-shadow: 0 0 34px rgba(203, 177, 152, .35);
	margin: 0 0 10px;
}
.lp-policy-head .updated { color: var(--lp-muted); font-size: 15px; }
.lp-policy {
	max-width: 880px;
	margin: 0 auto 80px;
	background: var(--lp-panel-2);
	border: 1px solid var(--lp-border-s);
	border-radius: 10px;
	padding: 44px 48px;
}
.lp-policy section { margin-bottom: 40px; }
.lp-policy section:last-child { margin-bottom: 0; }
.lp-policy h2 {
	font-family: var(--lp-title);
	font-weight: 700;
	font-size: 26px;
	color: var(--lp-ink-h);
	border-bottom: 1px solid var(--lp-border);
	padding-bottom: 12px;
	margin: 0 0 18px;
}
.lp-policy h3 {
	font-family: var(--lp-title);
	font-weight: 600;
	font-size: 18px;
	color: var(--lp-ink-h);
	margin: 22px 0 8px;
}
.lp-policy p, .lp-policy li { color: var(--lp-ink); font-size: 15.5px; }
.lp-policy ul { padding-left: 20px; }
.lp-policy li { margin-bottom: 7px; }
.lp-policy a { color: var(--lp-green-link); }
.lp-policy a:hover { color: var(--lp-crimson-d); }
.lp-policy .contact-block { color: var(--lp-ink-muted); }
.lp-policy .contact-block b { color: var(--lp-ink); }

.lp-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.lp-reveal.in { opacity: 1; transform: none; }

.lp-splash {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 24px;
	text-align: center;
	padding: 24px;
	background:
		linear-gradient(180deg, rgba(20, 28, 27, .93), rgba(20, 28, 27, .97)),
		var(--lp-hero-img) center / cover no-repeat;
	transition: opacity .4s ease, visibility .4s ease;
}
.lp-splash.done { opacity: 0; visibility: hidden; }
.lp-splash .mark {
	font-family: var(--lp-display);
	font-weight: 900;
	font-size: clamp(36px, 7.5vw, 78px);
	letter-spacing: .06em;
	color: #fdf6e8;
	margin: 0;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .7), 0 0 40px rgba(203, 177, 152, .3);
	animation: lp-shimmer 2.6s ease-in-out infinite;
}
.lp-splash .sub {
	font-family: var(--lp-title);
	text-transform: uppercase;
	letter-spacing: .18em;
	font-size: clamp(12px, 2vw, 15px);
	color: var(--lp-gold-light);
	margin: -8px 0 0;
}
.lp-splash-bar {
	width: min(340px, 78vw);
	height: 4px;
	background: rgba(203, 177, 152, .18);
	border: 1px solid var(--lp-border);
	border-radius: 30px;
	overflow: hidden;
}
.lp-splash-fill {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, var(--lp-crimson-d), var(--lp-gold), #8ec53a);
	box-shadow: 0 0 12px rgba(124, 176, 41, .6);
	transition: width .2s ease;
}
.lp-splash .loading {
	font-family: var(--lp-title);
	text-transform: uppercase;
	letter-spacing: .3em;
	font-size: 11px;
	color: var(--lp-muted);
}

@media (max-width: 820px) {
	.lp-burger { display: flex; }
	.lp-header-cta { margin-left: auto; }
	.lp-nav {
		display: flex;
		flex-direction: column;
		gap: 2px;
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		margin: 0;
		padding: 6px 16px 14px;
		background: linear-gradient(180deg, #b09478, #7b6050);
		border-bottom: 1px solid #5a4636;
		box-shadow: 0 10px 20px rgba(0, 0, 0, .4);
		max-height: 0;
		overflow: hidden;
		opacity: 0;
		pointer-events: none;
		transition: max-height .25s ease, opacity .2s ease;
	}
	.lp-header.nav-open .lp-nav { max-height: 360px; opacity: 1; pointer-events: auto; }
	.lp-header .lp-nav a { padding: 12px; font-size: 15px; }
	/* Compact header row: everything on one 64px line, nothing wraps; both CTA
	   buttons share the same fixed height. */
	.lp-header .lp-wrap { gap: 10px; padding: 0 14px; }
	.lp-header .lp-logo { font-size: 18px; }
	.lp-header-cta { align-items: center; gap: 8px; }
	.lp-header .lp-discord { height: 34px; padding: 0 9px; }
	.lp-discord svg { width: 18px; height: 18px; }
	.lp-discord-count { font-size: 12px; margin-left: 6px; }
	.lp-header .lp-login-btn { display: inline-flex; align-items: center; height: 34px; box-sizing: border-box; white-space: nowrap; font-size: 12px; padding: 0 12px; letter-spacing: .03em; }
	.lp-stats .lp-wrap { grid-template-columns: 1fr; gap: 32px; }
	.lp-stat + .lp-stat { border-left: 0; }
	.lp-cards { grid-template-columns: 1fr; }
	.lp-feature { flex-basis: 100%; }   /* .lp-features is a flex container — a grid override does nothing */
	.lp-shots-switch ~ .lp-shots { grid-template-columns: repeat(2, 1fr); }
	.lp-policy { padding: 30px 22px; }
}

/* Very narrow phones: drop the "of N" total from the Discord chip (dot + online count
   stay) and tighten the CTA button so a long label ("Your game worlds") can't push the
   burger off-screen. */
@media (max-width: 430px) {
	.lp-discord-count .lp-dc-tot { display: none; }
	.lp-header .lp-wrap { gap: 8px; }
	.lp-header .lp-login-btn { font-size: 11px; padding: 0 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.lp-hero > *, .lp-hero h1 { animation: none; }
	.lp-reveal { opacity: 1; transform: none; transition: none; }
	.lp-btn::before { display: none; }
	.lp-splash .mark { animation: none; }
	.lp-splash-fill { animation: none; width: 100%; }
}

body.landing-auth {
	background:
		linear-gradient(180deg, rgba(20, 28, 27, .92), rgba(20, 28, 27, .97)),
		var(--lp-hero-img) center / cover fixed no-repeat;
	color: var(--lp-text);
	font-family: var(--lp-body);
}
body.landing-auth .wrapper { background: transparent; }
body.landing-auth #header, body.landing-auth #dynamic_header { background: transparent; }

body.landing-auth #side_navi {
	background: var(--lp-panel-2);
	border: 1px solid var(--lp-border-s);
	border-radius: 8px;
	padding: 16px 18px;
}
body.landing-auth #side_navi a {
	font-family: var(--lp-title);
	color: var(--lp-ink-h);
	text-transform: uppercase;
	letter-spacing: .05em;
	font-size: 14px;
}
body.landing-auth #side_navi a:hover { color: var(--lp-green-link); }

body.landing-auth #content.login,
body.landing-auth #content.signup,
body.landing-auth #content.logout {
	position: relative;
	background: var(--lp-panel-2);
	border: 1px solid var(--lp-border-s);
	border-radius: 10px;
	color: var(--lp-ink);
	padding: 26px 30px;
	box-shadow: 0 22px 60px rgba(0, 0, 0, .5);
}
body.landing-auth #content.logout { text-align: center; }
body.landing-auth #content.logout .roman { display: none; }
body.landing-auth #content.logout h1 {
	font-family: var(--lp-display);
	font-size: 30px;
	color: var(--lp-ink-h);
	margin: 0 0 16px;
}
body.landing-auth #content.logout p { color: var(--lp-ink); }
body.landing-auth #content.login > h1,
body.landing-auth #content.login > h5,
body.landing-auth #content.signup > h1,
body.landing-auth #content.signup > h5 { display: none; }
body.landing-auth #content.login::before { content: "Login"; }
body.landing-auth #content.signup::before { content: "Register"; }
body.landing-auth #content.login::before,
body.landing-auth #content.signup::before {
	display: block;
	font-family: var(--lp-display);
	font-size: 30px;
	color: var(--lp-ink-h);
	text-align: center;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--lp-border);
}
body.landing-auth #content p { color: var(--lp-ink); }
body.landing-auth #login_form,
body.landing-auth #sign_input,
body.landing-auth #sign_select,
body.landing-auth #login_form tbody, body.landing-auth #login_form tr, body.landing-auth #login_form td, body.landing-auth #login_form th,
body.landing-auth #sign_input tbody, body.landing-auth #sign_input tr, body.landing-auth #sign_input td, body.landing-auth #sign_input th,
body.landing-auth #sign_select tbody, body.landing-auth #sign_select tr, body.landing-auth #sign_select td, body.landing-auth #sign_select th {
	background: transparent !important;
	border-color: var(--lp-border) !important;
}
body.landing-auth #login_form th,
body.landing-auth #sign_input th,
body.landing-auth #sign_select th { color: var(--lp-ink-h); font-family: var(--lp-title); }
body.landing-auth #content .text {
	background: #fbf6ea;
	border: 1px solid #b29a7f;
	border-radius: 4px;
	color: var(--lp-ink);
	padding: 8px 10px;
}
body.landing-auth #content .text:focus { outline: none; border-color: var(--lp-gold); box-shadow: 0 0 0 3px rgba(124, 176, 41, .2); }
body.landing-auth #content label { color: var(--lp-ink); }
body.landing-auth #content .error { color: #c0392b; }
body.landing-auth #content .error_box {
	background: rgba(192, 57, 43, .1);
	border: 1px solid #c0392b;
	border-radius: 6px;
	padding: 12px 14px;
	color: var(--lp-ink);
}
body.landing-auth #content ul.important { color: #c0392b; }

body.landing-auth .trav_buttons {
	font-family: var(--lp-title);
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #f2f2f2;
	background: linear-gradient(180deg, #8ec53a, var(--lp-gold) 60%, var(--lp-crimson-d));
	border: 1px solid #3f5a14;
	border-radius: 5px;
	padding: 10px 26px;
	cursor: pointer;
}
body.landing-auth .trav_buttons:hover { filter: brightness(1.08); }

body.landing-auth #side_info {
	background: var(--lp-panel-2);
	border: 1px solid var(--lp-border-s);
	border-radius: 8px;
	padding: 14px 16px;
	color: var(--lp-ink-muted);
}
body.landing-auth #footer { background: transparent; color: #8a7d68; }
body.landing-auth #footer a { color: var(--lp-gold); }

body.landing-auth #mid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 26px;
	max-width: 980px;
	margin: 48px auto;
	padding: 0 20px;
	width: auto;
	float: none;
}
body.landing-auth #mid > title,
body.landing-auth #mid > style,
body.landing-auth #mid > .clear { display: none; }

body.landing-auth #side_navi {
	position: static !important;
	float: none !important;
	top: auto !important; left: auto !important; right: auto !important;
	width: 200px;
	flex: 0 0 200px;
	margin: 0 !important;
	min-height: 0;
}
body.landing-auth #side_navi #logo { display: none; }
body.landing-auth #side_navi p { display: flex; flex-direction: column; gap: 2px; margin: 0; }
body.landing-auth #side_navi a { display: block; padding: 9px 10px; border-radius: 4px; }
body.landing-auth #side_navi a:hover { background: rgba(124, 176, 41, .12); }

body.landing-auth #content.login,
body.landing-auth #content.signup,
body.landing-auth #content.logout {
	position: static !important;
	float: none !important;
	margin: 0 !important;
	min-height: 0 !important;
	flex: 1 1 420px;
	max-width: 560px;
	width: auto;
	background: var(--lp-panel-2);
}
body.landing-auth #side_info { display: none; }

body.landing-auth #content a { color: var(--lp-green-link); }
body.landing-auth #content a:hover { color: var(--lp-crimson-d); }

body.landing-auth #content .text:-webkit-autofill,
body.landing-auth #content .text:-webkit-autofill:hover,
body.landing-auth #content .text:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--lp-ink);
	-webkit-box-shadow: 0 0 0 1000px #fbf6ea inset;
	box-shadow: 0 0 0 1000px #fbf6ea inset;
	border: 1px solid #b29a7f;
	caret-color: var(--lp-ink);
}

body.landing-auth #sign_select tr.top th img { display: none; }
body.landing-auth #sign_select tr.top th {
	color: var(--lp-ink-h);
	font-family: var(--lp-title);
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: .05em;
	text-align: left;
	padding-bottom: 10px;
}
body.landing-auth #sign_select tr.top th:first-child::after { content: 'Choose tribe'; }
body.landing-auth #sign_select tr.top th:last-child::after { content: 'Starting position'; }
body.landing-auth #sign_select td { color: var(--lp-ink); padding: 3px 8px 3px 0; }
body.landing-auth #content ul.important { list-style: none; padding: 0; }

@media (max-width: 768px) {
		body.landing-auth,
	body.landing-auth.v35 {
		background: linear-gradient(180deg, var(--lp-bg), #141b1c) !important;
		width: 100% !important;
		min-width: 0 !important;
	}
		body.landing-auth .wrapper {
		background: transparent !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		box-sizing: border-box !important;
	}
		body.landing-auth #header,
	body.landing-auth #dynamic_header { display: none !important; }
	body.landing-auth #login_form,
	body.landing-auth #sign_input,
	body.landing-auth #sign_select { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
		body.landing-auth #mid {
		display: flex !important;
		flex-direction: column !important;
		justify-content: center !important;
		min-height: 100vh !important;
		width: auto !important;
		max-width: 520px !important;
		min-width: 0 !important;
		margin: 0 auto !important;
				padding: 20px 12px calc(84px + env(safe-area-inset-bottom, 0px)) !important;
		box-sizing: border-box !important;
		float: none !important;
	}
	body.landing-auth #content.login,
	body.landing-auth #content.signup,
	body.landing-auth #content.logout {
		width: auto !important;
		max-width: none !important;
		min-width: 0 !important;
		margin: 0 !important;
		min-height: 0 !important;
		flex: 0 0 auto !important;   		padding: 22px 16px !important;
		box-sizing: border-box !important;
		background: var(--lp-panel-2) !important;
	}
	body.landing-auth #content .text { max-width: 100%; box-sizing: border-box; }
	body.landing-auth #side_info { display: none !important; }
		body.landing-auth #footer,
	body.landing-auth #stime,
	body.landing-auth #ce { display: none !important; }

		body.landing-auth #side_navi {
		display: block !important;
		position: fixed !important;
		left: 0 !important;
		right: 0 !important;
		bottom: 0 !important;
		top: auto !important;
		width: 100% !important;
		max-width: none !important;
		margin: 0 !important;
		z-index: 1000 !important;
		background: linear-gradient(180deg, #cbb198, #8a6e57) !important;
		border: 0 !important;
		border-top: 1px solid #5a4636 !important;
		border-radius: 0 !important;
				padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
		box-shadow: 0 -6px 20px rgba(0, 0, 0, .45) !important;
	}
	body.landing-auth #side_navi p {
		display: flex !important;
		flex-direction: row !important;
		align-items: center;
		gap: 0 !important;
		margin: 0 !important;
	}
		body.landing-auth #side_navi a {
		flex: 1 1 0 !important;
		text-align: center !important;
		padding: 8px 6px !important;
		font-size: 13px !important;
		font-weight: 500 !important;
		letter-spacing: normal !important;
		text-decoration: none !important;
		background: transparent !important;
		background-image: none !important;
		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		transform: none !important;
		color: #3f2f22 !important;
	}
		body.landing-auth #side_navi a:hover,
	body.landing-auth #side_navi a:focus,
	body.landing-auth #side_navi a:active {
		font-weight: 500 !important;
		letter-spacing: normal !important;
		text-decoration: none !important;
		background: transparent !important;
		background-image: none !important;
		border: 0 !important;
		box-shadow: none !important;
		transform: none !important;
		color: #271b12 !important;
	}
}

.lp-sd-divider {
	text-align: center;
	font-size: 26px;
	color: var(--lp-gold-light);
	opacity: .7;
	margin: -4px 0 34px;
}
.lp-sd-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
	max-width: 1080px;
	margin: 0 auto;
	align-items: start;
}
.lp-sd-grid .lp-sd-card { max-width: none; margin: 0; }
@media (max-width: 760px) {
	.lp-sd-grid { grid-template-columns: 1fr; }
	.lp-sd-grid .lp-sd-card { max-width: 520px; margin: 0 auto; }
}
.lp-sd-card {
	max-width: 520px;
	margin: 0 auto;
	border: 1px solid var(--lp-border-s);
	border-radius: 10px;
	background: linear-gradient(180deg, rgba(40, 52, 50, .55), rgba(20, 28, 27, .65));
	box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
	overflow: hidden;
}
.lp-sd-cardhead {
	font-family: var(--lp-title);
	font-size: 13px;
	letter-spacing: .22em;
	text-transform: uppercase;
	text-align: center;
	color: var(--lp-gold-light);
	padding: 13px 0;
	background: linear-gradient(180deg, rgba(124, 96, 80, .30), rgba(124, 96, 80, .10));
	border-bottom: 1px solid var(--lp-border);
}
.lp-sd-cardbody { padding: 26px 30px 30px; }
.lp-sd-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}
.lp-sd-titlewrap { min-width: 0; }
.lp-sd-realm {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	font-family: var(--lp-title);
	font-size: 13px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--lp-muted);
}
.lp-sd-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--lp-gold);
	box-shadow: 0 0 8px var(--lp-gold);
	flex: none;
}
.lp-sd-round {
	font-family: var(--lp-display);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.15;
	color: var(--lp-text);
	margin: 6px 0 0;
}
.lp-sd-badge {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--lp-title);
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lp-muted);
	border: 1px solid var(--lp-border-s);
	border-radius: 999px;
	padding: 6px 14px;
	white-space: nowrap;
}
.lp-sd-bdot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex: none;
	background: var(--lp-muted);
}
.lp-sd-badge.is-online .lp-sd-bdot {
	background: var(--lp-gold);
	box-shadow: 0 0 0 0 rgba(124, 176, 41, .55);
	animation: lp-sd-pulse 2s ease-out infinite;
}
@keyframes lp-sd-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(124, 176, 41, .50); }
	70%  { box-shadow: 0 0 0 6px rgba(124, 176, 41, 0); }
	100% { box-shadow: 0 0 0 0 rgba(124, 176, 41, 0); }
}
.lp-sd-stats {
	display: flex;
	gap: 10px;
	margin: 22px 0;
}
.lp-sd-stat {
	flex: 1;
	text-align: center;
	border: 1px solid var(--lp-border);
	border-radius: 8px;
	background: rgba(0, 0, 0, .18);
	padding: 14px 6px;
}
.lp-sd-stat-val {
	display: block;
	font-family: var(--lp-display);
	font-weight: 700;
	font-size: 22px;
	color: var(--lp-text);
}
.lp-sd-stat-x { font-size: 14px; color: var(--lp-muted); margin: 0 2px; }
.lp-sd-stat-lbl {
	display: block;
	margin-top: 4px;
	font-family: var(--lp-title);
	font-size: 11px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--lp-muted);
}
.lp-sd-timer {
	border: 1px solid var(--lp-border);
	border-radius: 8px;
	background: rgba(0, 0, 0, .22);
	padding: 20px;
	text-align: center;
	margin-bottom: 6px;
}
.lp-sd-timer-label {
	font-family: var(--lp-title);
	font-size: 13px;
	letter-spacing: .25em;
	text-transform: uppercase;
	color: var(--lp-muted);
	margin-bottom: 10px;
}
.lp-sd-timer-val {
	font-family: var(--lp-display);
	font-weight: 700;
	font-size: clamp(26px, 6vw, 38px);
	letter-spacing: .04em;
	color: var(--lp-gold-light);
}
.lp-sd-date {
	margin: 14px 0 0;
	text-align: center;
	font-family: var(--lp-title);
	font-size: 14px;
	letter-spacing: .04em;
	color: var(--lp-muted);
}
.lp-sd-actions {
	display: flex;
	gap: 12px;
	margin-top: 18px;
}
.lp-sd-actions .lp-btn { flex: 1; text-align: center; }
.lp-sd-register.is-disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
	font-size: 12px;
}
@media (max-width: 460px) {
	.lp-sd-actions { flex-direction: column; }
}

/* Countdown reused on the cream login panel: recolor for dark-on-light. */
body.landing-auth #content.login .lp-sd-timer {
	background: rgba(0, 0, 0, .04);
	border-color: var(--lp-border);
}
body.landing-auth #content.login .lp-sd-timer-label,
body.landing-auth #content.login .lp-sd-date { color: var(--lp-ink); }
body.landing-auth #content.login .lp-sd-timer-val { color: var(--lp-ink-h); }

/* ============================================================================
   LOBBY (account.php) — central login / world picker. Reuses the dark-fantasy
   palette + .lp-btn buttons; cream panels on the dark bg, no inline styles.
   ============================================================================ */
.lp-lobby {
	max-width: 880px;
	margin: 0 auto;
	padding: 120px 20px 80px;
}
.lp-lobby-panel,
.lp-auth-card {
	background: var(--lp-panel-2);
	border: 1px solid var(--lp-border-s);
	border-radius: 10px;
	padding: 28px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.lp-lobby-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--lp-border);
	padding-bottom: 16px;
	margin-bottom: 22px;
}
.lp-lobby-head h1 {
	font-family: var(--lp-title, serif);
	color: var(--lp-ink-h);
	font-size: 26px;
	margin: 0;
}
.lp-lobby-logout {
	display: flex;
	align-items: center;
	gap: 12px;
}
.lp-lobby-who { color: var(--lp-ink-muted); font-size: 14px; }
.lp-lobby-empty { color: var(--lp-ink-muted); }

.lp-world-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
}
.lp-world-card {
	background: #fff;
	border: 1px solid var(--lp-border);
	border-radius: 8px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.lp-world-name { color: var(--lp-ink-h); font-weight: 700; font-size: 17px; }
.lp-world-meta { flex: 1; }
.lp-world-badge {
	display: inline-block;
	font-size: 12px;
	padding: 2px 10px;
	border-radius: 999px;
	border: 1px solid var(--lp-border);
}
.lp-world-badge.on  { color: #2c6b00; background: rgba(124, 176, 41, .15); border-color: rgba(124, 176, 41, .5); }
.lp-world-badge.off { color: var(--lp-ink-muted); background: rgba(0, 0, 0, .04); }

/* Auth card (logged out): login / register tabs + form. */
.lp-auth-card { max-width: 420px; margin: 0 auto; }
.lp-auth-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}
.lp-auth-tabs a {
	flex: 1;
	text-align: center;
	padding: 10px;
	border-radius: 6px;
	color: var(--lp-ink-muted);
	background: rgba(0, 0, 0, .04);
	font-weight: 600;
}
.lp-auth-tabs a.active {
	color: #fff;
	background: linear-gradient(180deg, #8ec53a, var(--lp-gold) 60%, var(--lp-crimson-d));
}
.lp-auth-err {
	background: rgba(204, 0, 0, .08);
	border: 1px solid rgba(204, 0, 0, .35);
	color: #c00;
	padding: 10px 12px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}
.lp-auth-form { display: flex; flex-direction: column; gap: 14px; }
.lp-auth-form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	color: var(--lp-ink-h);
	font-size: 14px;
	font-weight: 600;
}
.lp-auth-form input {
	padding: 11px 12px;
	border: 1px solid var(--lp-border-s);
	border-radius: 6px;
	background: #fff;
	color: var(--lp-ink);
	font-size: 15px;
}
.lp-auth-form input:focus { outline: 2px solid var(--lp-gold); border-color: var(--lp-gold); }
.lp-auth-form .lp-btn { margin-top: 6px; }

/* Lobby: Google sign-in + auth dividers/notices. */
.lp-btn-google {
	display: block;
	text-align: center;
	background: #fff;
	color: var(--lp-ink-h);
	border: 1px solid var(--lp-border-s);
	margin-bottom: 4px;
}
.lp-btn-google:hover { background: #f5f5f5; color: var(--lp-ink-h); }
.lp-auth-or {
	position: relative;
	text-align: center;
	margin: 14px 0;
	color: var(--lp-ink-muted);
	font-size: 13px;
}
.lp-auth-or::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--lp-border);
}
.lp-auth-or span { position: relative; background: var(--lp-panel-2); padding: 0 10px; }
.lp-auth-note {
	background: rgba(0, 0, 0, .04);
	border: 1px solid var(--lp-border);
	color: var(--lp-ink-h);
	padding: 10px 12px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}

/* Lobby: forgot/verify links + the dashboard "confirm your email" banner. */
.lp-auth-alt { text-align: center; margin: 14px 0 0; font-size: 14px; }
.lp-lobby-note { margin-bottom: 16px; }
.lp-verify-note {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

/* ============================================================================
   LOBBY — Travian T4 look: dark battlefield bg, brand top bar with account
   dropdown, gold-bordered world cards with a sky→grass banner + green buttons.
   Scoped to body.lobby so it overrides the earlier (cream) lobby rules.
   ============================================================================ */
body.lobby {
	background: linear-gradient(rgba(12,16,20,.72), rgba(12,16,20,.88)), var(--lp-hero-img) center top / cover fixed no-repeat;
	background-color: #0e1216;
	min-height: 100vh;
}

/* Top bar */
.lp-lobbar {
	position: sticky; top: 0; z-index: 50;
	background: linear-gradient(#222831, #13171c);
	border-bottom: 1px solid rgba(0,0,0,.55);
	box-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.lp-lobbar-in {
	max-width: 1100px; margin: 0 auto;
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; padding: 10px 20px;
}
.lp-lobbar-side { flex: 1 1 0; display: flex; align-items: center; min-width: 0; }
.lp-lobbar-r { justify-content: flex-end; }
.lp-lobbar-brand { text-align: center; display: flex; flex-direction: column; line-height: 1.05; }
.lp-lobbar-logo { font-family: var(--lp-display, serif); font-size: 24px; letter-spacing: 1px; color: #fff; }
.lp-lobbar-sub { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--lp-muted); }
.lp-lobbar-join {
	display: inline-block; padding: 8px 16px; border-radius: 999px;
	border: 1px solid var(--lp-gold); color: var(--lp-gold-light);
	background: rgba(124,176,41,.10); font-size: 14px;
}
.lp-lobbar-join:hover { background: rgba(124,176,41,.20); color: #fff; }
.lp-lobbar-site { color: var(--lp-muted); font-size: 14px; }
.lp-lobbar-r { gap: 10px; }
/* Matches the landing header's .lp-discord: blurple rounded-rect outline, fills on hover.
   body.lobby prefix + explicit svg fill to beat the general green lobby link colour. */
body.lobby .lp-lobbar-discord {
	flex: none; display: inline-flex; align-items: center; justify-content: center;
	color: #5865f2; border: 1px solid #5865f2; border-radius: 4px; padding: 5px 10px;
	background: none; transition: color .15s, background .15s;
}
body.lobby .lp-lobbar-discord svg,
body.lobby .lp-lobbar-discord path { width: 22px; height: 22px; display: block; fill: #5865f2; }
body.lobby .lp-lobbar-discord:hover { color: #fff; background: #5865f2; }
body.lobby .lp-lobbar-discord:hover svg,
body.lobby .lp-lobbar-discord:hover path { fill: #fff; }

/* Account dropdown — pure CSS via <details> */
.lp-acct { position: relative; }
.lp-acct summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
	padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.14); color: var(--lp-text); font-size: 14px; }
.lp-acct summary::-webkit-details-marker { display: none; }
.lp-acct-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-acct-burger { display: none; }
.lp-acct[open] .lp-acct-caret { transform: rotate(180deg); }
.lp-acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
	background: #20242a; border: 1px solid rgba(255,255,255,.14); border-radius: 8px;
	box-shadow: 0 12px 30px rgba(0,0,0,.55); overflow: hidden; }
.lp-acct-head { padding: 12px 16px; font-weight: 700; color: #fff; font-size: 14px;
	border-bottom: 1px solid rgba(255,255,255,.14); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-acct-menu a, .lp-acct-menu button { display: block; width: 100%; text-align: left;
	padding: 12px 16px; color: var(--lp-text); background: none; border: 0; font-size: 14px; cursor: pointer; }
.lp-acct-menu a:hover, .lp-acct-menu button:hover { background: rgba(255,255,255,.08); color: #fff; }

/* Menu-item leading icons (SVG masks, tinted by currentColor). */
.lp-acct-menu .lp-mi { display: flex; align-items: center; gap: 10px; }
.lp-acct-menu .lp-mi::before {
	content: ""; flex: none; width: 17px; height: 17px; background: currentColor;
	-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-position: center; mask-position: center;
	-webkit-mask-size: contain; mask-size: contain;
}
.lp-mi-settings::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%208a4%204%200%201%200%200%208%204%204%200%200%200%200-8zm8.4%204a6.6%206.6%200%200%200-.1-1.3l2-1.6-2-3.4-2.4%201a6.6%206.6%200%200%200-2.2-1.3L15.3%202H8.7l-.4%202.6a6.6%206.6%200%200%200-2.2%201.3l-2.4-1-2%203.4%202%201.6A6.6%206.6%200%200%200%203.6%2012c0%20.44.04.87.1%201.3l-2%201.6%202%203.4%202.4-1a6.6%206.6%200%200%200%202.2%201.3l.4%202.6h6.6l.4-2.6a6.6%206.6%200%200%200%202.2-1.3l2.4%201%202-3.4-2-1.6c.06-.43.1-.86.1-1.3z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%208a4%204%200%201%200%200%208%204%204%200%200%200%200-8zm8.4%204a6.6%206.6%200%200%200-.1-1.3l2-1.6-2-3.4-2.4%201a6.6%206.6%200%200%200-2.2-1.3L15.3%202H8.7l-.4%202.6a6.6%206.6%200%200%200-2.2%201.3l-2.4-1-2%203.4%202%201.6A6.6%206.6%200%200%200%203.6%2012c0%20.44.04.87.1%201.3l-2%201.6%202%203.4%202.4-1a6.6%206.6%200%200%200%202.2%201.3l.4%202.6h6.6l.4-2.6a6.6%206.6%200%200%200%202.2-1.3l2.4%201%202-3.4-2-1.6c.06-.43.1-.86.1-1.3z'/%3E%3C/svg%3E");
}
.lp-mi-lang::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='none'%20stroke='black'%20stroke-width='1.7'%20d='M12%203a9%209%200%201%200%200%2018%209%209%200%200%200%200-18zm0%200c2.5%202.5%202.5%2013.5%200%2018m0-18c-2.5%202.5-2.5%2013.5%200%2018M3.5%209h17M3.5%2015h17'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20fill='none'%20stroke='black'%20stroke-width='1.7'%20d='M12%203a9%209%200%201%200%200%2018%209%209%200%200%200%200-18zm0%200c2.5%202.5%202.5%2013.5%200%2018m0-18c-2.5%202.5-2.5%2013.5%200%2018M3.5%209h17M3.5%2015h17'/%3E%3C/svg%3E");
}
.lp-mi-consent::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%202%204%205v6c0%205%203.4%208.6%208%2010%204.6-1.4%208-5%208-10V5l-8-3z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M12%202%204%205v6c0%205%203.4%208.6%208%2010%204.6-1.4%208-5%208-10V5l-8-3z'/%3E%3C/svg%3E");
}
.lp-mi-logout::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M10%203H5a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h5v-2H5V5h5V3zm7.6%208L14%207.4%2015.4%206l6%206-6%206L14%2016.6%2017.6%2013H9v-2h8.6z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M10%203H5a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h5v-2H5V5h5V3zm7.6%208L14%207.4%2015.4%206l6%206-6%206L14%2016.6%2017.6%2013H9v-2h8.6z'/%3E%3C/svg%3E");
}

/* Lobby body + headings */
body.lobby .lp-lobby { width: 100%; max-width: 1100px; margin: 0 auto; padding: 30px 20px 80px; }
.lp-lobby-title { font-family: var(--lp-title, serif); text-transform: uppercase; letter-spacing: 2px;
	color: #fff; font-size: 22px; margin: 30px 0 16px; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.lp-lobby-title:first-child { margin-top: 4px; }
body.lobby .lp-lobby-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
body.lobby .lp-lobby-head .lp-lobby-title { margin: 0; }
body.lobby .lp-lobby-empty { color: var(--lp-muted); }
.lp-lobby-note { max-width: 1100px; margin: 0 auto 14px; }
/* On the dark lobby the popup's dark-on-cream note text is invisible — give the notice
   readable light text on a tinted banner (green = success, red = error). */
body.lobby .lp-lobby-note { padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; }
body.lobby .lp-lobby-note.lp-auth-note { color: #d6ecae; background: rgba(124,176,41,.16); border: 1px solid rgba(124,176,41,.55); }
body.lobby .lp-lobby-note.lp-auth-err  { color: #f3bcbc; background: rgba(198,60,60,.16); border: 1px solid rgba(198,60,60,.55); }

/* World cards */
body.lobby .lp-world-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
body.lobby .lp-world-card { background: #171b20; border: 2px solid #b8923f;
	border-radius: 8px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.45);
	display: flex; flex-direction: column; padding: 0; }
.lp-world-banner { position: relative; min-height: 122px; padding: 14px;
	background: linear-gradient(#7fb2e6 0%, #aacfe6 36%, #a6cd6e 58%, #6f9a3f 100%); }
.lp-world-titles { display: flex; flex-direction: column; }
.lp-world-acct { color: #fff; font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.55); }
.lp-world-name { color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
	font-size: 20px; text-shadow: 0 2px 4px rgba(0,0,0,.55); }
body.lobby .lp-world-badge { position: absolute; top: 12px; right: 12px; display: inline-block;
	font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; border: 0; }
body.lobby .lp-world-badge.on { background: rgba(124,176,41,.92); }
.lp-world-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 12px 14px; background: #11151a; }
.lp-world-foot form { margin: 0; }
.lp-world-new .lp-world-banner { filter: saturate(.55) brightness(.82); }

/* Danger button + settings */
body.lobby .lp-btn-danger, .lp-btn-danger { background: linear-gradient(#c0392b, #962b20);
	color: #fff; border: 1px solid #7d2419; }
.lp-btn-danger:hover { filter: brightness(1.08); color: #fff; }
.lp-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.lp-set-card { background: rgba(20,24,28,.94); border: 1px solid rgba(255,255,255,.12);
	border-radius: 8px; padding: 20px; }
.lp-set-card h2 { color: #fff; font-size: 17px; margin: 0 0 14px; }
.lp-set-row { display: flex; justify-content: space-between; gap: 12px; color: var(--lp-muted); padding: 4px 0; }
.lp-set-row strong { color: var(--lp-text); }
.lp-set-help { color: var(--lp-muted); font-size: 13px; margin: 0 0 12px; }
.lp-set-danger { border-color: rgba(192,57,43,.5); }
.lp-set-danger h2 { color: #e07a6e; }
.lp-ok { color: #8fce4a; }
.lp-warn { color: #e0a44a; }
.lp-set-card .lp-auth-form label { color: #fff; }
.lp-set-card .lp-auth-form input { background: #0e1216; color: var(--lp-text); border-color: rgba(255,255,255,.22); }

@media (max-width: 640px) {
	.lp-lobbar-sub { display: none; }
	.lp-lobbar-join { padding: 6px 12px; font-size: 13px; }
	.lp-acct-name { max-width: 120px; }
}

/* ============================================================================
   LOBBY v2 — bigger header, T4-style popup modals (language + login/register),
   logged-out hero. Appended so these override the earlier lobby rules.
   ============================================================================ */
.lp-lobbar-in { padding: 18px 24px; }
.lp-lobbar-logo { font-size: 34px; letter-spacing: 1.5px; }
.lp-lobbar-sub { font-size: 12px; letter-spacing: 4px; margin-top: 2px; }

/* Reusable modal — opens via CSS :target (no-JS) or .is-open (lobby.js / server). */
.lp-modal { position: fixed; inset: 0; z-index: 200; display: none;
	align-items: flex-start; justify-content: center; padding: 80px 16px; overflow: auto; }
.lp-modal:target, .lp-modal.is-open { display: flex; }
.lp-modal-backdrop { position: fixed; inset: 0; background: rgba(6,9,12,.74); }
.lp-modal-box { position: relative; z-index: 1; width: 100%; max-width: 420px;
	background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 22px 60px rgba(0,0,0,.6);
	animation: lp-modal-in .14s ease-out; }
@keyframes lp-modal-in { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.lp-modal-head { display: flex; align-items: center; justify-content: space-between;
	padding: 14px 18px; background: linear-gradient(#ededed, #dcdcdc); border-bottom: 1px solid #bbb; }
.lp-modal-head h2 { margin: 0; font-size: 17px; color: #333; }
.lp-modal-x { position: absolute; top: 8px; right: 14px; z-index: 2; font-size: 26px; line-height: 1;
	color: #999; text-decoration: none; }
.lp-modal-x:hover { color: #333; }
.lp-modal-body { padding: 22px; }
@media (prefers-reduced-motion: reduce) { .lp-modal-box { animation: none; } }

/* Language picker rows */
.lp-lang-list { display: flex; flex-direction: column; }
.lp-lang-list form { margin: 0; }
.lp-lang-opt { width: 100%; text-align: left; padding: 14px 20px; background: none; border: 0;
	border-bottom: 1px solid #eee; font-size: 15px; color: #333; cursor: pointer; }
.lp-lang-opt:last-child { border-bottom: 0; }
.lp-lang-opt:hover { background: #f5f5f5; }
.lp-lang-opt.active { font-weight: 700; color: #5a9a0a; }

/* Logged-out hero behind the auth popup */
.lp-hero { text-align: center; padding: 90px 20px 60px; }
.lp-hero-title { font-family: var(--lp-display, serif); font-size: 48px; color: #fff;
	letter-spacing: 1px; text-shadow: 0 3px 12px rgba(0,0,0,.6); margin: 0 0 10px; }
.lp-hero-sub { color: var(--lp-muted); font-size: 17px; margin: 0 0 28px; }
.lp-hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lp-hero-lang { margin-top: 20px; }
.lp-hero-lang a { color: var(--lp-muted); font-size: 14px; }

/* Auth content inside the modal (reuses tabs/form styles on the white modal body) */
.lp-modal .lp-auth-tabs { margin-bottom: 18px; }
.lp-modal .lp-auth-form input { background: #fff; }

/* T4-style language popup: search box + 2-col flag grid with radio rows. */
.lp-lang-search {
	display: block; width: calc(100% - 36px); margin: 16px 18px 8px;
	padding: 11px 12px; border: 1px solid var(--lp-border-s); border-radius: 6px;
	background: #fff; color: var(--lp-ink); font-size: 15px;
}
.lp-lang-search:focus { outline: 2px solid var(--lp-gold); border-color: var(--lp-gold); }
.lp-lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px; padding: 4px 10px 14px; }
.lp-lang-grid form { margin: 0; }
.lp-lang-opt {
	display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
	padding: 11px 12px; background: none; border: 0; border-radius: 6px;
	font-size: 15px; color: #333; cursor: pointer;
}
.lp-lang-opt:hover { background: #f1f1f1; }
.lp-lang-radio {
	width: 16px; height: 16px; border: 2px solid #bbb; border-radius: 50%;
	flex: 0 0 auto; position: relative;
}
.lp-lang-opt.active .lp-lang-radio { border-color: var(--lp-gold); }
.lp-lang-opt.active .lp-lang-radio::after {
	content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--lp-gold);
}
.lp-lang-flag { font-size: 18px; line-height: 1; flex: 0 0 auto; }
.lp-lang-name { color: #222; }
.lp-lang-opt.active .lp-lang-name { font-weight: 700; }
.lp-lang-region { color: var(--lp-ink-muted); font-size: 13px; }
@media (max-width: 520px) { .lp-lang-grid { grid-template-columns: 1fr; } }

/* The language popup is wider than the auth popup (2-col grid needs room). */
#lang .lp-modal-box { max-width: 560px; }
.lp-lang-opt { min-width: 0; }
.lp-lang-name { white-space: nowrap; }
.lp-lang-region { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================================
   LOBBY POPUP v3 — restyle the shared popup as an in-game window in the landing's
   warm dark-fantasy palette (cream panel + brown frame + green accents), à la the
   T4 language window. Overrides the earlier flat white/gray modal. Applies to BOTH
   the language and the login/register popups (one component).
   ============================================================================ */
.lp-modal { padding: 70px 16px; }
.lp-modal-backdrop { background: rgba(10,8,6,.74); }
.lp-modal-box {
	background: var(--lp-panel);
	border: 2px solid var(--lp-gold-dark);
	border-radius: 12px;
	box-shadow: 0 0 0 4px rgba(35,26,18,.45), 0 26px 70px rgba(0,0,0,.65);
	overflow: hidden;
}
/* Header band: warm tan, serif small-caps title (matches the landing headings). */
.lp-modal-head {
	background: linear-gradient(rgba(123,96,80,.16), rgba(123,96,80,.05));
	border-bottom: 1px solid var(--lp-border-s);
	padding: 14px 18px;
}
.lp-modal-head h2 {
	font-family: var(--lp-title, serif);
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--lp-ink-h);
	font-size: 18px;
	line-height: 1; /* tight line box so the uppercase caps optically center against the × */
}
/* Close = small green "gem" button (top-right). */
.lp-modal-x {
	top: 9px; right: 12px;
	width: 30px; height: 30px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 6px;
	background: linear-gradient(180deg, #8ec53a, var(--lp-gold) 60%, var(--lp-crimson-d));
	border: 1px solid var(--lp-crimson-d);
	color: #fff; font-size: 19px; line-height: 1;
	box-shadow: 0 2px 4px rgba(0,0,0,.35);
}
.lp-modal-x:hover { filter: brightness(1.08); color: #fff; }
.lp-modal-body { padding: 20px; }

/* Auth popup on parchment. */
.lp-modal .lp-auth-tabs a { background: rgba(123,96,80,.14); color: var(--lp-ink-muted); }
.lp-modal .lp-auth-tabs a.active { color: #fff; background: linear-gradient(180deg, #8ec53a, var(--lp-gold) 60%, var(--lp-crimson-d)); }
.lp-modal .lp-auth-form label { color: var(--lp-ink-h); font-weight: 600; }
.lp-modal .lp-auth-form input { background: #fffaf0; border: 1px solid var(--lp-gold-dark); color: var(--lp-ink); }
.lp-modal .lp-auth-form input:focus { outline: 2px solid var(--lp-gold); border-color: var(--lp-gold); }
.lp-modal .lp-auth-alt a { color: var(--lp-green-link); }
.lp-modal .lp-auth-note { background: rgba(123,96,80,.12); border: 1px solid var(--lp-border-s); color: var(--lp-ink-h); }
.lp-modal .lp-btn-google { background: #fffaf0; color: var(--lp-ink-h); border: 1px solid var(--lp-gold-dark); }
.lp-modal .lp-auth-or { color: var(--lp-ink-muted); }
.lp-modal .lp-auth-or::before { background: var(--lp-border-s); }
.lp-modal .lp-auth-or span { background: var(--lp-panel); }

/* Language popup on parchment. */
.lp-lang-search { background: #fffaf0; border: 1px solid var(--lp-gold-dark); color: var(--lp-ink); }
.lp-lang-search:focus { outline: 2px solid var(--lp-gold); border-color: var(--lp-gold); }
.lp-lang-opt { color: var(--lp-ink-h); }
.lp-lang-opt:hover { background: rgba(123,96,80,.14); }
.lp-lang-radio { border-color: var(--lp-gold-dark); }
.lp-lang-opt.active .lp-lang-radio { border-color: var(--lp-gold); }
.lp-lang-opt.active .lp-lang-radio::after { background: var(--lp-gold); }
.lp-lang-name { color: var(--lp-ink-h); }
.lp-lang-region { color: var(--lp-ink-muted); }

/* ============================================================================
   LOBBY POPUP v4 — ornate "game frame" (our bronze/wood take on T4's carved
   border) + the no-tabs auth layout (title header, bottom switch link, social row).
   ============================================================================ */
.lp-modal-box {
	border: 3px solid #5a4632;
	box-shadow:
		0 0 0 5px #8a6d4f,                       /* bronze frame band */
		0 0 0 7px #41301f,                       /* dark outer edge */
		inset 0 0 0 2px rgba(255,255,255,.28),   /* top inner highlight */
		0 28px 72px rgba(0,0,0,.72);
}
.lp-modal-box::before {                          /* inner gold accent line (double-frame) */
	content: ""; position: absolute; inset: 5px; z-index: 2; pointer-events: none;
	border: 1px solid rgba(123,96,80,.5); border-radius: 6px;
}

/* Auth: no tabs — title is in the header; login/register cross-link at the bottom. */
.lp-auth-switch { text-align: center; margin: 16px 0 2px; color: var(--lp-ink-muted); font-size: 14px; }
.lp-auth-switch a { color: var(--lp-green-link); font-weight: 700; }
/* Center the Turnstile widget (its iframe is a fixed ~300px, otherwise left-aligned). */
.lp-turnstile { display: flex; justify-content: center; margin: 4px 0; }
.lp-auth-social { display: flex; justify-content: center; gap: 12px; margin: 6px 0 2px; }
.lp-social-btn {
	width: 54px; height: 42px; display: flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--lp-gold-dark); border-radius: 8px;
}
.lp-social-btn:hover { background: #f5efe2; }
.lp-social-g { font-weight: 800; font-size: 20px; color: #4285F4; font-family: Arial, sans-serif; }

/* ============================================================================
   LOBBY POPUP v5 — close button fixed (in-header, centered, visible SVG ×) +
   password show/hide eye toggle.
   ============================================================================ */
/* Close button: a flex child of the header (so it lines up with the title), not
   absolutely positioned. Green "gem" with a white SVG ×. */
.lp-modal-x {
	flex: 0 0 auto;
	position: static; /* reset an earlier absolute rule so the header flex vertically centers it */
	width: 34px; height: 34px;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 0;
	border: 1px solid var(--lp-crimson-d); border-radius: 7px;
	background: linear-gradient(180deg, #8ec53a, var(--lp-gold) 60%, var(--lp-crimson-d));
	color: #fff; cursor: pointer;
	box-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.lp-modal-x:hover { filter: brightness(1.08); }
.lp-modal-x svg { display: block; }
.lp-modal-x-float { position: absolute; top: 12px; right: 14px; z-index: 4; }
/* Header lays title (left) + close (right), vertically centred. */
.lp-modal-head { display: flex; align-items: center; justify-content: space-between; }

/* Password field + eye toggle. */
.lp-pw { position: relative; display: block; }
.lp-pw input { width: 100%; padding-right: 44px; }
.lp-pw-eye {
	position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
	display: flex; align-items: center; justify-content: center;
	background: none; border: 0; padding: 4px; cursor: pointer;
	color: var(--lp-ink-muted);
}
.lp-pw-eye:hover { color: var(--lp-ink-h); }
.lp-pw-eye.on { color: var(--lp-green-link); }
.lp-auth-pane[hidden]{display:none}

/* ============================================================================
   LOBBY v6 — richer world cards: last-login clock, info (i) button + per-world
   info popup, big "Join new game world" card, and a News & Updates feed.
   ============================================================================ */
.lp-world-clock { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center;
	gap: 5px; font-size: 13px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.lp-world-i { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: 18px;
	color: #fff; background: linear-gradient(180deg, #3f7d3a, #2c5f2c); border: 2px solid #caa24a; cursor: pointer; }
.lp-world-i:hover { filter: brightness(1.1); }

.lp-join-card { display: flex; align-items: center; gap: 18px; padding: 24px 28px; margin-top: 2px;
	background: rgba(16,20,24,.78); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: var(--lp-text); }
.lp-join-card:hover { background: rgba(22,28,32,.92); color: #fff; }
.lp-join-plus { font-size: 40px; line-height: 1; font-weight: 300; color: var(--lp-gold-light); }
.lp-join-text { font-family: var(--lp-title, serif); font-size: 20px; }

.lp-news-title { margin-top: 34px; }
.lp-news-list { display: flex; flex-direction: column; gap: 12px; }
.lp-news-item { background: rgba(16,20,24,.74); border: 1px solid rgba(255,255,255,.10); border-radius: 8px; padding: 16px 18px; }
.lp-news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-news-item h3 { margin: 0; color: #fff; font-size: 16px; }
.lp-news-date { color: var(--lp-muted); font-size: 13px; }
.lp-news-item p { margin: 6px 0 0; color: var(--lp-muted); font-size: 14px; line-height: 1.5; }

/* World-info popup body. */
.lp-wi-round { margin: 0 0 14px; color: var(--lp-ink-muted); font-style: italic; }
.lp-wi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.lp-wi { display: flex; flex-direction: column; }
.lp-wi-l { color: var(--lp-ink-muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.lp-wi-v { color: var(--lp-ink-h); font-size: 20px; font-weight: 700; }
@media (max-width: 520px) { .lp-wi-grid { grid-template-columns: 1fr; } }

/* World-card banner uses the game's intro art (copied into landing assets). The
   gradient overlay keeps the white title/badges readable over the photo. */
.lp-world-banner {
	background: linear-gradient(rgba(20,28,40,.05), rgba(10,16,24,.45)),
		url('images/world-banner.jpg') center 30% / cover no-repeat;
}

/* ============================================================================
   LOBBY v7 — darker card banner (readable world name) + expandable patch notes.
   ============================================================================ */
.lp-world-banner {
	background: linear-gradient(rgba(0,0,0,.52), rgba(0,0,0,.18) 45%, rgba(0,0,0,.42)),
		url('images/world-banner.jpg') center 30% / cover no-repeat;
}

/* Expandable news items (native <details>). */
.lp-news-item > summary { list-style: none; cursor: pointer; outline: none; }
.lp-news-item > summary::-webkit-details-marker { display: none; }
.lp-news-item > summary:hover h3 { color: var(--lp-gold-light); }
.lp-news-sum { margin: 6px 0 0; color: var(--lp-muted); font-size: 14px; line-height: 1.5; }
.lp-news-more { display: inline-block; margin-top: 8px; color: var(--lp-green-link); font-size: 13px; font-weight: 700; }
.lp-news-item[open] .lp-news-more { display: none; }
.lp-news-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.lp-news-body h4 { color: #fff; font-size: 14px; margin: 14px 0 6px; }
.lp-news-body ul { margin: 0 0 8px; padding-left: 20px; }
.lp-news-body li { margin: 5px 0; color: var(--lp-muted); font-size: 14px; line-height: 1.55; }
.lp-news-body p { margin: 6px 0; color: var(--lp-muted); font-size: 14px; line-height: 1.55; }
.lp-news-body strong { color: var(--lp-text); }
.lp-news-body em { color: var(--lp-muted); }

/* "Join new game world" as a grid cell the same size as a world card (dashed, dark,
   no gold frame). Higher specificity than body.lobby .lp-world-card so it wins. */
body.lobby .lp-world-card.lp-join-card {
	display: flex; flex-direction: row; align-items: center; gap: 18px;
	min-height: 186px; padding: 0 28px;
	background: rgba(16,20,24,.82); border: 2px dashed rgba(202,162,74,.55);
	color: var(--lp-text);
}
body.lobby .lp-world-card.lp-join-card:hover { background: rgba(24,30,34,.94); color: #fff; }

/* Fix: headings inside .lp-lobby-head (join / settings views) were inheriting the old
   cream-theme brown from `.lp-lobby-head h1`. Force white on the dark lobby. */
body.lobby .lp-lobby-head .lp-lobby-title { color: #fff; }

/* ============================================================================
   LOBBY v8 — join view: region tabs, top-bar Back button, Recommended badge +
   age/speed stats on join cards (T4-like).
   ============================================================================ */
.lp-lobbar-back { border-color: rgba(255,255,255,.35); color: var(--lp-text); }
.lp-lobbar-back:hover { background: rgba(255,255,255,.08); color: #fff; }

.lp-region-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px;
	border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: 16px; }
.lp-region { padding: 9px 18px; border-radius: 6px; font-weight: 700; font-size: 14px;
	background: rgba(255,255,255,.06); color: var(--lp-muted); border: 1px solid rgba(255,255,255,.12); }
.lp-region.active { background: #fff; color: var(--lp-ink-h); border-color: #fff; }

.lp-world-badge.rec { background: #2f6fd8; color: #fff; }
body.lobby .lp-world-badge.soon { background: rgba(198,140,30,.95); color: #fff; }
body.lobby .lp-coming-title { margin-top: 40px; }

/* Promo "Claim N gold" banner */
body.lobby .lp-promo-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 26px;
	padding: 14px 20px; border-radius: 10px; border: 1px solid #b8923f;
	background: linear-gradient(90deg, rgba(184,146,63,.24), rgba(184,146,63,.07)); }
body.lobby .lp-promo-ico { font-size: 26px; line-height: 1; }
body.lobby img.lp-promo-ico { width: 24px; height: 24px; display: block; flex: none; }
body.lobby .lp-promo-txt { flex: 1; font-weight: 700; color: #fff; font-size: 16px; }
body.lobby .lp-promo-form { margin: 0; flex: none; }
/* Redeem reminder banner — green accent (you already own the voucher; go use it). */
body.lobby .lp-redeem-banner { border-color: rgba(124,176,41,.6);
	background: linear-gradient(90deg, rgba(124,176,41,.22), rgba(124,176,41,.06)); }
/* Warning banner — amber accent (imported char not linked → use old server login). */
body.lobby .lp-warn-banner { border-color: rgba(224,168,74,.6);
	background: linear-gradient(90deg, rgba(224,168,74,.20), rgba(224,168,74,.05)); }
body.lobby .lp-warn-banner .lp-promo-txt { font-weight: 600; font-size: 14.5px; }
/* My vouchers */
body.lobby .lp-voucher-list { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
body.lobby .lp-voucher { display: flex; align-items: center; gap: 14px; padding: 14px 18px;
	background: #171b20; border: 1px solid #b8923f; border-radius: 10px; }
body.lobby .lp-voucher-ico { font-size: 24px; line-height: 1; }
body.lobby img.lp-voucher-ico { width: 30px; height: 30px; display: block; flex: none; }
body.lobby .lp-voucher-main { flex: 1; display: flex; flex-direction: column; }
body.lobby .lp-voucher-main strong { color: #fff; font-size: 16px; }
body.lobby .lp-voucher-sub { color: var(--lp-muted); font-size: 13px; }
body.lobby .lp-voucher-status { font-size: 13px; font-weight: 700; }
body.lobby .lp-voucher-status.pend { color: #d79a2a; }
body.lobby .lp-voucher-status.done { color: var(--lp-muted); }
body.lobby .lp-mi-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px;
	background: #7cb029; color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
body.lobby .lp-voucher-redeem { display: flex; gap: 8px; align-items: center; margin: 0; }
body.lobby .lp-voucher-world { background: #11151a; color: var(--lp-text); border: 1px solid #b8923f;
	border-radius: 6px; padding: 8px 10px; font-size: 14px; }
/* Join button on a not-yet-open world: visible but disabled. */
body.lobby .lp-btn-disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.4); box-shadow: none; }
body.lobby .lp-btn-disabled:hover { opacity: .5; }


.lp-world-stats { display: inline-flex; align-items: center; gap: 4px; color: var(--lp-text);
	font-size: 14px; font-weight: 600; }

/* ============================================================================
   LOBBY — mobile top bar. The three bar items (join/back, brand, account) don't
   fit a phone at their desktop sizes, so collapse the actions to round icon
   buttons (+ / ← / ☰) and shrink the brand. Appended last so it overrides the
   earlier v2 size bumps. ========================================================= */
@media (max-width: 640px) {
	body.lobby .lp-lobbar-in { padding: 8px 12px; gap: 8px; }
	body.lobby .lp-lobbar-logo { font-size: 20px; letter-spacing: 1px; }
	body.lobby .lp-lobbar-sub { display: none; }

	/* Join / Back / account collapse to round icon buttons. The glyphs are SVG
	   masks (not font characters) so mask-position:center centers the actual shape
	   — a font glyph sits on its text baseline and always looks off-centre. */
	body.lobby .lp-lobbar-join {
		flex: none; width: 38px; height: 38px; padding: 0; font-size: 0;
		display: flex; align-items: center; justify-content: center; border-radius: 50%;
	}
	body.lobby .lp-acct summary { width: 38px; height: 38px; padding: 0; gap: 0; font-size: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
	body.lobby .lp-acct-name, body.lobby .lp-acct-caret { display: none; }

	body.lobby .lp-lobbar-join::before {
		content: ""; display: block; flex: none; width: 22px; height: 22px; background: currentColor;
		-webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
		-webkit-mask-position: center; mask-position: center;
		-webkit-mask-size: contain; mask-size: contain;
	}
	body.lobby .lp-lobbar-join:not(.lp-lobbar-back) { color: var(--lp-gold-light); }
	body.lobby .lp-lobbar-join:not(.lp-lobbar-back)::before {
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M10.5%204h3v16h-3zM4%2010.5h16v3H4z'/%3E%3C/svg%3E");
		mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M10.5%204h3v16h-3zM4%2010.5h16v3H4z'/%3E%3C/svg%3E");
	}
	body.lobby .lp-lobbar-back::before {
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M20%2011H7.8l4.6-4.6L11%205l-7%207%207%207%201.4-1.4L7.8%2013H20z'/%3E%3C/svg%3E");
		mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M20%2011H7.8l4.6-4.6L11%205l-7%207%207%207%201.4-1.4L7.8%2013H20z'/%3E%3C/svg%3E");
	}

	/* Account icon = 3 bars that morph into an X when the menu opens (animated). The
	   span is the middle bar; ::before/::after are the top/bottom bars. */
	body.lobby .lp-acct-burger {
		display: block; position: relative; width: 20px; height: 2px; border-radius: 2px;
		background: currentColor; transition: background .2s ease;
	}
	body.lobby .lp-acct-burger::before, body.lobby .lp-acct-burger::after {
		content: ""; position: absolute; left: 0; width: 20px; height: 2px; border-radius: 2px;
		background: currentColor; transition: transform .25s ease, top .25s ease;
	}
	body.lobby .lp-acct-burger::before { top: -6px; }
	body.lobby .lp-acct-burger::after { top: 6px; }
	body.lobby .lp-acct[open] .lp-acct-burger { background: transparent; }
	body.lobby .lp-acct[open] .lp-acct-burger::before { top: 0; transform: rotate(45deg); }
	body.lobby .lp-acct[open] .lp-acct-burger::after { top: 0; transform: rotate(-45deg); }
}

/* ============================================================================
   LOBBY — mobile: promo/redeem banners + vouchers stack instead of overflowing.
   ============================================================================ */
@media (max-width: 640px) {
	body.lobby .lp-promo-banner { flex-wrap: wrap; row-gap: 10px; padding: 12px 14px; }
	body.lobby .lp-promo-txt { flex: 1 1 auto; font-size: 15px; }
	body.lobby .lp-promo-form,
	body.lobby .lp-promo-banner > .lp-promo-btn { flex: 1 1 100%; }
	body.lobby .lp-promo-btn { width: 100%; text-align: center; box-sizing: border-box; }

	body.lobby .lp-voucher { flex-wrap: wrap; row-gap: 10px; }
	body.lobby .lp-voucher-main { flex: 1 1 auto; }
	body.lobby .lp-voucher-expiry { flex: 1 1 100%; order: 3; }
	body.lobby .lp-voucher-redeem { flex: 1 1 100%; order: 4; flex-direction: column; align-items: stretch; }
	body.lobby .lp-voucher-world { width: 100%; box-sizing: border-box; }
	body.lobby .lp-voucher-redeem .lp-btn { width: 100%; text-align: center; box-sizing: border-box; }
}

/* Lobby login popup — legacy "old login still works" disclaimer. */
body.landing .lp-auth-legacy,
body.lobby .lp-auth-legacy {
	margin: 0 0 14px; padding: 8px 10px; font-size: 12.5px; line-height: 1.4;
	color: #6b5836; background: #f6efe0; border: 1px solid #e3d6b8; border-radius: 6px;
}
body.landing .lp-auth-legacy a,
body.lobby .lp-auth-legacy a { color: #7c9b2f; font-weight: 700; white-space: nowrap; }
