/*
Theme Name: LunaFibre
Theme URI: https://lunafibre.com
Author: LunaFibre
Description: Custom theme for LunaFibre: dark night-sky design with moon motion, a package explorer powered by an editable price list (Appearance → Packages), network package pages, articles and help pages.
Version: 1.9.4
Requires at least: 6.2
Requires PHP: 7.4
License: Proprietary
Text Domain: lunafibre
*/

/* ---------- Tokens ---------- */
:root {
	--night: #160147;
	--night-deep: #0d0130;
	--night-band: #120139;
	--night-card: #1a0752;
	--night-tile: #1f0b5e;
	--night-hover: #22105f;
	--line: #2a1a66;
	--line-card: #2f1d74;
	--line-strong: #4a3a8a;
	--moon: #8c97f9;
	--moon-soft: #c3c9ff;
	--orchid: #ae7bc5;
	--rose: #d06091;
	--coral: #f2455d;
	--text: #ece9ff;
	--text-soft: #cfc9ec;
	--text-mute: #a9a3d9;
	--white: #fff;
	--grad: linear-gradient(110deg, #d06091, #f2455d);
	--font-display: "Unbounded", system-ui, sans-serif;
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1280px;
	--gutter: 24px;
	--radius: 20px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--night-deep);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--moon); }
a:hover { color: var(--moon-soft); }
:focus-visible { outline: 3px solid var(--moon); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { color: var(--white); line-height: 1.1; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 12px; left: 12px; padding: 12px 18px; background: var(--white); color: var(--night); border-radius: 10px;
}
.c-white { color: var(--white); } .c-moon { color: var(--moon); } .c-orchid { color: var(--orchid); } .c-coral { color: var(--coral); }

/* ---------- Type ---------- */
.h2 {
	margin: 0 0 14px; font-family: var(--font-display); font-weight: 800;
	font-size: clamp(30px, 3.6vw, 50px); letter-spacing: -0.03em; line-height: 1.06;
}
.h3 { margin: 0 0 20px; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; }
.lede { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-soft); max-width: 640px; }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--moon); }
.eyebrow--coral { color: var(--coral); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 10px 0; text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 12px 20px; border-radius: 12px;
	font-size: 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: 0;
	transition: transform .2s, background .2s, border-color .2s;
}
.btn--primary { color: var(--white); background: var(--grad); }
.btn--primary:hover { color: var(--white); transform: scale(1.04); }
.btn--ghost { color: var(--white); border: 1px solid var(--line-strong); background: transparent; }
.btn--ghost:hover { color: var(--white); border-color: var(--moon); }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(22, 1, 71, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { display: flex; align-items: center; gap: 12px 36px; min-height: 72px; }
.site-logo { display: flex; align-items: center; padding: 6px 0; flex: 0 0 auto; }
.site-logo__img { height: 34px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 12px 32px; flex: 1 1 auto; }
.site-nav__menu { flex: 1 1 auto; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 26px; }
.nav-menu a { display: block; color: #d6d3f5; text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 0; position: relative; }
.nav-menu a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px;
	background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-menu a:hover, .nav-menu .current-menu-item > a { color: var(--white); }
.nav-menu a:hover::after, .nav-menu .current-menu-item > a::after { transform: scaleX(1); }
.nav-menu .sub-menu { display: none; }
.site-nav__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.nav-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
	border: 1px solid var(--line-strong); background: transparent; color: var(--white); cursor: pointer;
	align-items: center; justify-content: center;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-flex; }

@media (max-width: 1200px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px var(--gutter) 24px; background: var(--night); border-bottom: 1px solid var(--line);
		box-shadow: 0 24px 40px rgba(0, 0, 0, .35);
	}
	.js .site-nav { display: none; }
	.js .site-nav.is-open { display: flex; animation: drop .25s var(--ease); }
	.nav-menu { flex-direction: column; gap: 0; }
	.nav-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
	.nav-menu a::after { display: none; }
	.nav-menu .sub-menu { display: block; list-style: none; padding-left: 16px; }
	.site-nav__actions .btn { flex: 1 1 auto; }
}

/* ---------- Hero ---------- */
.hero { background: var(--night); overflow: hidden; }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 80px; }
.hero__copy { flex: 1 1 560px; min-width: 0; }
.hero__title {
	margin: 0 0 28px; font-family: var(--font-display); font-weight: 800;
	font-size: clamp(42px, 6.4vw, 92px); line-height: .98; letter-spacing: -0.04em;
}
.hero__title span { display: block; }
.hero__lede { margin: 0 0 32px; font-size: 19px; line-height: 1.55; color: var(--text-soft); max-width: 560px; }
.hero__hint { margin: 14px 0 0 20px; font-size: 14px; color: var(--text-mute); }
.hero__art { flex: 1 1 320px; display: flex; justify-content: center; }
.orbit-scene { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1 / 1; }
.orbit-scene svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-scene__moon { position: absolute; left: 27%; top: 26%; width: 46%; height: auto; }

/* Address check */
.address-check {
	display: flex; flex-wrap: wrap; gap: 10px; background: var(--white);
	padding: 8px; border-radius: 18px; max-width: 620px;
}
.address-check__input {
	flex: 1 1 220px; min-width: 0; border: 0; padding: 14px 18px; font-size: 17px;
	font-family: var(--font); color: var(--night); background: transparent; border-radius: 12px;
}
.address-check__input::placeholder { color: #6a6491; }
.address-check__input:focus { outline: 2px solid var(--moon); outline-offset: 0; }
.address-check__btn { flex: 0 0 auto; min-height: 50px; padding: 14px 26px; font-size: 16px; }
@media (max-width: 480px) { .address-check__btn { flex: 1 1 100%; } }

/* ---------- Facts band ---------- */
.facts { background: var(--night-band); }
.facts__grid { margin: 0 auto; padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.facts dt { font-size: 14px; color: var(--text-mute); margin-bottom: 6px; }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 4vw, 48px); line-height: 1.1; }

/* ---------- Sections & bands ---------- */
.section { padding-top: 96px; padding-bottom: 96px; }
.section--tight-bottom { padding-bottom: 48px; }
.section--flush-top { padding-top: 0; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 32px; }
.band--night { background: var(--night); }
@media (max-width: 700px) { .section { padding-top: 64px; padding-bottom: 64px; } .section--flush-top { padding-top: 0; } }

/* ---------- Package explorer ---------- */
.pk-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pk-tab {
	cursor: pointer; text-align: left; min-height: 56px; padding: 10px 20px; border-radius: 16px;
	font-size: 16px; font-weight: 700; color: var(--white); background: var(--night-card); border: 1px solid var(--line-card);
	transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.pk-tab:hover { transform: translateY(-2px); border-color: var(--moon); }
.pk-tab.is-active { background: var(--moon); color: var(--night); border-color: var(--moon); }
.pk-tab__from { display: block; font-size: 12px; font-weight: 500; opacity: .8; margin-top: 2px; }
.pk-groups { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pk-pill {
	cursor: pointer; min-height: 44px; padding: 8px 16px; border-radius: 999px;
	font-size: 14px; font-weight: 600; background: transparent; color: var(--text); border: 1px solid var(--line-strong);
	transition: background .2s, color .2s, border-color .2s;
}
.pk-pill:hover { border-color: var(--coral); }
.pk-pill.is-active { background: var(--coral); color: var(--night); border-color: var(--coral); }
.pk-note { margin: 0 0 24px; font-size: 15px; line-height: 1.55; color: var(--text-mute); max-width: 860px; }
.pk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pk-card {
	padding: 24px; border-radius: var(--radius); background: var(--night-card); border: 1px solid var(--line-card);
	display: flex; flex-direction: column; gap: 6px;
}
.pk-card__name { font-size: 14px; font-weight: 700; color: var(--orchid); }
.pk-card__speed { font-family: var(--font-display); font-weight: 800; font-size: 34px; color: var(--white); letter-spacing: -0.02em; line-height: 1.15; }
.pk-card__unit { font-family: var(--font); font-size: 15px; font-weight: 500; color: var(--text-mute); letter-spacing: 0; }
.pk-card__price { margin-top: 10px; font-size: 26px; font-weight: 800; color: var(--moon); }
.pk-card__per { font-size: 14px; font-weight: 500; color: var(--text-mute); }
.pk-card__cta {
	margin-top: auto; text-align: center; text-decoration: none; padding: 12px; border-radius: 999px;
	border: 1px solid var(--moon); color: var(--white); font-weight: 700; font-size: 15px; transition: background .2s, color .2s;
}
.pk-card__cta { margin-top: 14px; }
.pk-card__cta:hover { background: var(--moon); color: var(--night); }
.nojs-only { display: none; }
html:not(.js) .nojs-only { display: block; margin: 32px 0 12px; font-family: var(--font-display); }
.js .pk-net:not(.is-active), .js .pk-group:not(.is-active) { display: none; }
html:not(.js) .pk-groups, html:not(.js) .pk-tabs { display: none; }
.js .pk-net.is-active .pk-group.is-active { animation: fadeUp .45s var(--ease); }

/* ---------- Peering / partners ---------- */
.peering__copy { max-width: 780px; }
.partners { padding-bottom: 88px; display: flex; flex-direction: column; gap: 12px; }
.marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track--rev { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.partner { flex: 0 0 190px; width: 190px; border-radius: 14px; background: var(--white); overflow: hidden; transition: transform .25s; }
.partner:hover { transform: scale(1.06); }
.partner img { display: block; width: 100%; height: auto; }
.partners__note { margin: 8px auto 0; padding: 0 var(--gutter); font-size: 12px; color: var(--text-mute); text-align: center; }


/* ---------- Phases ---------- */
.phases { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.phases h3 { margin: 16px 0 6px; font-size: 19px; font-family: var(--font); font-weight: 800; }
.phases p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-soft); }
.phases svg { transition: transform .4s var(--ease); }
.phases li:hover svg { transform: rotate(-20deg) scale(1.08); }

/* ---------- Reviews ---------- */
.reviews { display: flex; flex-wrap: wrap; gap: 20px; }
.reviews__rating { flex: 1 1 280px; padding: 36px; border-radius: 24px; background: var(--moon); color: var(--night); }
.reviews__score { margin: 0 0 8px; font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; }
.reviews__count { margin: 0; font-size: 16px; font-weight: 700; }
.reviews__quote { flex: 2 1 440px; margin: 0; padding: 36px; border-radius: 24px; background: var(--night-card); border: 1px solid var(--line-card); }
.reviews__quote p { margin: 0 0 20px; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2vw, 26px); line-height: 1.4; color: var(--white); }
.reviews__quote footer { font-size: 15px; color: var(--text-mute); }
.reviews__live { flex: 1 1 100%; padding: 24px; border-radius: 24px; background: var(--night-card); border: 1px solid var(--line-card); }

/* ---------- Tiles ---------- */
.tiles { padding-top: 64px; padding-bottom: 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tiles--contact { padding-top: 0; padding-bottom: 48px; }
.tile {
	display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: var(--radius);
	background: var(--night-tile); border: 1px solid var(--night-tile); text-decoration: none;
}
.tile__icon { display: inline-flex; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 12px; align-items: center; justify-content: center; background: rgba(140, 151, 249, .14); color: var(--moon); }
.tile__title { font-weight: 800; font-size: 18px; color: var(--white); }
.tile__text { font-size: 15px; color: var(--text-soft); overflow-wrap: anywhere; }

/* ---------- Lift (hover) ---------- */
.lift { transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.lift:hover { transform: translateY(-6px); border-color: var(--moon); background: var(--night-hover); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--night); overflow: hidden; }
.page-hero__inner { position: relative; padding-top: 72px; padding-bottom: 64px; }
.page-hero__inner > * { max-width: 920px; }
.page-hero__title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.035em; line-height: 1.04; }
.page-hero__intro { margin: 20px 0 0; font-size: 19px; line-height: 1.55; color: var(--text-soft); max-width: 680px; }
.page-hero__meta { margin: 18px 0 0; font-size: 15px; color: var(--text-mute); }
.page-hero__sky { position: absolute; inset: 0; pointer-events: none; }
.page-hero__sky .star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--white); }
.page-hero__moon { position: absolute; right: 6%; top: 50%; width: 140px; margin-top: -70px; opacity: .9; }
@media (max-width: 800px) { .page-hero__moon { width: 84px; margin-top: 0; top: 24px; right: 20px; opacity: .5; } }

/* ---------- Prose (editor content) ---------- */
.prose { max-width: 760px; color: var(--text-soft); font-size: 18px; line-height: 1.75; }
.prose--wide { max-width: none; }
.prose > * + * { margin-top: 1.1em; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin-top: 1.8em; margin-bottom: .5em; }
.prose h2 { font-size: clamp(26px, 2.6vw, 34px); }
.prose h3 { font-size: 22px; }
.prose h4 { font-size: 18px; font-family: var(--font); font-weight: 800; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose strong { color: var(--white); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--moon); }
.prose blockquote, .prose .wp-block-quote {
	margin-left: 0; margin-right: 0; padding: 24px 28px; border-radius: var(--radius);
	background: var(--night-card); border: 1px solid var(--line-card); color: var(--white);
}
.prose blockquote p { margin: 0; }
.prose img, .prose .wp-block-image img { border-radius: 16px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-size: 14px; color: var(--text-mute); margin-top: 8px; }
.prose hr { border: 0; height: 2px; background: var(--line); margin: 2.4em 0; }
.prose code { background: var(--night-card); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.prose pre { background: var(--night-card); padding: 18px; border-radius: 14px; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose .wp-block-table, .prose .table-scroll { overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { color: var(--white); background: var(--night-card); font-weight: 800; }
.prose details, .prose .wp-block-details {
	margin-top: 10px; padding: 0; border-radius: 16px; background: var(--night-card); border: 1px solid var(--line-card);
}
.prose details summary { cursor: pointer; padding: 18px 22px; font-weight: 800; color: var(--white); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::after { content: "+"; color: var(--moon); font-size: 22px; line-height: 1; transition: transform .25s; }
.prose details[open] summary::after { transform: rotate(45deg); }
.prose details > :not(summary) { padding: 0 22px; }
.prose details > :last-child { padding-bottom: 20px; }
.prose .wp-block-button__link, .prose .button {
	display: inline-flex; padding: 12px 22px; border-radius: 12px; background: var(--grad);
	color: var(--white); font-weight: 700; text-decoration: none;
}
.prose .wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 1px solid var(--moon); }
.prose .alignwide { max-width: 1100px; }
.prose .aligncenter { margin-left: auto; margin-right: auto; }
.prose .alignleft { float: left; margin: .4em 1.4em 1em 0; }
.prose .alignright { float: right; margin: .4em 0 1em 1.4em; }
.prose iframe { max-width: 100%; border-radius: 14px; }
.prose .pk { margin-top: 2em; }

/* ---------- Network page ---------- */
.network-content { margin-top: 64px; }
.other-networks { margin-top: 72px; }
.other-networks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 14px;
	background: var(--night-card); border: 1px solid var(--line-card); color: var(--white); font-weight: 700; font-size: 15px; text-decoration: none;
}
.chip span { font-weight: 500; color: var(--text-mute); font-size: 13px; }
.chip:hover { color: var(--white); }
.chip.is-active { background: var(--moon); border-color: var(--moon); color: var(--night); }
.notice-box { padding: 18px 22px; border-radius: 14px; background: #3a1230; border: 1px solid var(--rose); color: var(--white); }

/* ---------- Articles ---------- */
.archive-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { min-height: 40px; padding: 8px 16px; border-radius: 999px; font-size: 14px; }
.chips .chip:hover { border-color: var(--moon); }
.search-form { display: flex; align-items: center; gap: 0; background: var(--night-card); border: 1px solid var(--line-card); border-radius: 999px; padding: 4px 4px 4px 18px; min-width: 260px; }
.search-form__input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--white); font-size: 15px; font-family: var(--font); padding: 8px 0; }
.search-form__input::placeholder { color: var(--text-mute); }
.search-form__input:focus { outline: none; }
.search-form:focus-within { border-color: var(--moon); }
.search-form__btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--grad); color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.search-form__btn .icon { width: 18px; height: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--night-card); border: 1px solid var(--line-card); overflow: hidden; }
.card__media { display: block; aspect-ratio: 12 / 7; overflow: hidden; background: var(--night); }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: radial-gradient(circle at 70% 30%, #2c1a72, var(--night) 70%); }
.card__placeholder img { width: 64px; height: 64px; object-fit: contain; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.card__meta { margin: 0; font-size: 13px; color: var(--text-mute); }
.card__cat { color: var(--orchid); font-weight: 700; }
.card__title { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.card__title a { color: var(--white); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__excerpt { margin: 0; font-size: 15px; color: var(--text-soft); }
.pagination { margin-top: 48px; }
.pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination a, .pagination span { display: inline-flex; min-width: 44px; min-height: 44px; padding: 0 14px; align-items: center; justify-content: center; border-radius: 12px; background: var(--night-card); border: 1px solid var(--line-card); color: var(--white); text-decoration: none; font-weight: 700; }
.pagination .current { background: var(--moon); border-color: var(--moon); color: var(--night); }
.empty { padding: 48px; border-radius: var(--radius); background: var(--night-card); text-align: center; }
.article__image { margin: 0 0 48px; max-width: 960px; }
.article__image img { width: 100%; border-radius: 24px; display: block; }
.article__tags { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article__tags a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; text-decoration: none; }
/* ---------- Phone tweaks ---------- */
@media (max-width: 600px) {
	.hero__inner { padding-top: 48px; padding-bottom: 56px; gap: 32px; }
	.hero__art { flex-basis: 100%; }
	.orbit-scene { max-width: 240px; }
	.facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
	.pk-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pk-tab { min-height: 52px; padding: 8px 14px; font-size: 15px; }
	.pk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pk-card { padding: 16px; gap: 4px; border-radius: 16px; }
	.pk-card__name { font-size: 13px; }
	.pk-card__speed { font-size: 26px; }
	.pk-card__unit { display: block; font-size: 13px; }
	.pk-card__price { margin-top: 6px; font-size: 20px; }
	.pk-card__per { font-size: 12px; }
	.pk-card__cta { margin-top: 10px; padding: 10px 8px; font-size: 14px; }
	.page-hero__moon { width: 64px; opacity: .35; }
	.page-hero__inner { padding-top: 56px; padding-bottom: 48px; }
	.cards { grid-template-columns: 1fr; }
	.search-form { min-width: 0; flex: 1 1 100%; }
}
@media (max-width: 360px) {
	.pk-grid { grid-template-columns: 1fr; }
}

.not-found { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(120% 140% at 85% 0%, #3a1a7a 0%, var(--night) 55%); border-top: 1px solid var(--line); }
.cta-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-top: 64px; padding-bottom: 64px; }
.cta-band__title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; }
.cta-band__text { margin: 0; color: var(--text-soft); }
.address-check--compact { flex: 1 1 420px; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0124; border-top: 1px solid var(--line); }
.site-footer__inner { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; font-size: 14px; color: var(--text-mute); }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.site-footer__brand p { margin: 0; }
.site-footer__logo { width: 200px; height: auto; display: block; }
.site-footer__cols { display: flex; flex-wrap: wrap; gap: 24px 56px; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-menu a { display: inline-block; padding: 8px 0; text-decoration: none; }
.footer-menu a:hover { text-decoration: underline; }

/* ---------- Fibre light streaks ---------- */
.fibre { position: relative; height: 2px; background: var(--line); overflow: hidden; }
.fibre::after {
	content: ""; position: absolute; top: 0; left: -35%; width: 35%; height: 100%;
	background: linear-gradient(90deg, transparent, var(--moon), var(--rose), var(--coral), transparent);
	animation: streak 3.2s linear infinite;
}
.fibre--slow::after { animation-duration: 5.5s; animation-delay: 1.2s; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinback { to { transform: rotate(-360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes streak { from { left: -35%; } to { left: 100%; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 6px)); } }
@keyframes shimmer { to { background-position: 200% 0; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 69, 93, 0); } 50% { box-shadow: 0 0 28px 4px rgba(242, 69, 93, .45); } }

.rise { animation: rise .9s var(--ease) both; }
.shimmer {
	background: linear-gradient(90deg, #8c97f9, #ae7bc5, #d06091, #f2455d, #d06091, #ae7bc5, #8c97f9);
	background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
	padding-bottom: 6px;
	animation: rise .9s var(--ease) .3s both, shimmer 6s linear infinite;
}
.orbit { transform-box: view-box; transform-origin: 200px 200px; animation: spin 40s linear infinite; }
.orbit-r { transform-box: view-box; transform-origin: 200px 200px; animation: spinback 26s linear infinite; }
.float { animation: float 7s ease-in-out infinite; }
.star { animation: twinkle 3s ease-in-out infinite; }
.glow { animation: glow 3s ease-in-out infinite; }

/* Scroll reveal (main.js adds .is-in as elements enter the viewport) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal.lift.is-in:hover { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
	.marquee { -webkit-mask-image: none; mask-image: none; }
	.marquee__track { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); }
	.partner--dup { display: none; }
	.shimmer { color: var(--coral); background: none; }
}

/* ---------- WordPress core ---------- */
.alignnone { margin: 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--text-mute); }
.sticky .card__title::before { content: "★ "; color: var(--coral); }
.bypostauthor { display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }

/* ---------- Coverage map ---------- */
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 17px; border-radius: 14px; }
.btn .icon { width: 20px; height: 20px; }
.coverage__frame {
	position: relative; border-radius: 24px; overflow: hidden; background: var(--night-card);
	border: 1px solid var(--line-card); box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.coverage__frame iframe { display: block; width: 100%; aspect-ratio: 16 / 8; min-height: 520px; border: 0; }
.coverage__help { margin: 16px 0 0; font-size: 15px; color: var(--text-mute); }
@media (max-width: 600px) { .coverage__frame iframe { aspect-ratio: auto; height: 78vh; min-height: 480px; } }

/* ---------- Content imported from the old Divi site ---------- */
.prose .divi-content { display: flex; flex-direction: column; gap: 1.1em; }
.divi-content [style*="color"] { color: inherit !important; }
.divi-content [style*="background"] { background: none !important; }
.divi-content [style*="font-family"] { font-family: inherit !important; }
.divi-content h1 { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.02em; margin: 1.2em 0 .4em; }
.divi-content > .divi-section:first-child h1:first-child { margin-top: 0; }
.divi-section { display: flex; flex-direction: column; gap: 1.1em; }
.divi-section:empty, .divi-row:empty, .divi-col:empty { display: none; }
.divi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.divi-col { min-width: 0; display: flex; flex-direction: column; gap: 1em; }
.divi-col > :first-child, .divi-card > :first-child, .divi-section > :first-child { margin-top: 0; }
.divi-card { padding: 24px; border-radius: var(--radius); background: var(--night-card); border: 1px solid var(--line-card); }
.divi-card h3 { margin: 0 0 .4em; font-size: 20px; }
.divi-card p { margin: .4em 0; }
.divi-card__action { margin-top: 1em !important; }
.divi-image { margin: 0; }
.divi-image img { max-width: min(100%, 520px); height: auto; border-radius: 16px; }
.divi-code { max-width: 100%; overflow-x: auto; }
.divi-code iframe { width: 100%; border: 0; border-radius: 16px; }
.divi-content details { margin-top: 0; }
.divi-content p:empty { display: none; }
.prose .button { margin-top: 4px; }

/* Keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 96px; }

/* Coverage result banner */
.covered-banner { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 28px; padding: 18px 22px; border-radius: 16px; background: rgba(94, 224, 160, .12); border: 1px solid rgba(94, 224, 160, .45); color: var(--white); }
.covered-banner .icon { flex: 0 0 auto; color: #5ee0a0; margin-top: 2px; }

/* ---------- Header: status link ---------- */
.status-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 6px; font-size: 14px; font-weight: 600; color: #d6d3f5; text-decoration: none; white-space: nowrap; }
.status-link:hover { color: var(--white); }
.status-link__dot { width: 9px; height: 9px; border-radius: 50%; background: #5ee0a0; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(94, 224, 160, .6); } 100% { box-shadow: 0 0 0 10px rgba(94, 224, 160, 0); } }
.pulse { animation: pulse 1.8s ease-out infinite; }
.site-nav__actions .btn .icon { width: 18px; height: 18px; }

/* Orbit planets stay visible beyond the drawing area */
.orbit-scene svg { overflow: visible; }
.hero__art { padding: 14px; }

/* ---------- Speed finder ---------- */
.section__links { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 14px; }
.sf-panel {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start;
	padding: 44px; border-radius: 28px; background: radial-gradient(120% 120% at 0% 0%, #2a1470 0%, var(--night-card) 55%); border: 1px solid var(--line-card);
}
.sf-panel--network { margin-top: 56px; }
@media (max-width: 900px) { .sf-panel { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; } }
.sf { position: relative; }
.sf__progress { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sf__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--moon), var(--orchid), var(--rose), var(--coral)); border-radius: 6px; transition: width .4s var(--ease); }
.sf__count { margin: 10px 0 18px; font-size: 13px; color: var(--text-mute); min-height: 1.4em; }
.sf-step { display: none; margin: 0; padding: 0; border: 0; min-width: 0; }
.sf-step.is-active { display: block; animation: fadeUp .4s var(--ease); }
.sf-step__q { padding: 0; margin: 0 0 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2vw, 26px); line-height: 1.25; color: var(--white); }
.sf-step__help { margin: 0 0 18px; font-size: 15px; color: var(--text-mute); }
.sf-step__q + .sf-options { margin-top: 18px; }
.sf-options { display: grid; gap: 10px; }
.sf-options + .sf-options { margin-top: 12px; }
.sf-options--4 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.sf-options--3 { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.sf-options--1 { grid-template-columns: 1fr; }
.sf-options--uses { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.sf-option { position: relative; display: block; cursor: pointer; }
.sf-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sf-option__box {
	display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 56px; justify-content: center;
	padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1.5px solid var(--line-strong);
	transition: border-color .2s, background .2s, transform .2s;
}
.sf-option:hover .sf-option__box { border-color: var(--moon); transform: translateY(-2px); }
.sf-option input:focus-visible + .sf-option__box { outline: 3px solid var(--moon); outline-offset: 2px; }
.sf-option input:checked + .sf-option__box { background: rgba(140, 151, 249, .16); border-color: var(--moon); }
.sf-option input[type="checkbox"]:checked + .sf-option__box::after {
	content: "✓"; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--moon); color: var(--night); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.sf-option__icon { color: var(--moon); margin-bottom: 4px; }
.sf-option__label { font-weight: 700; color: var(--white); font-size: 15px; }
.sf-option__hint { font-size: 13px; color: var(--text-mute); }
.sf__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.sf__nav [data-sf-next] { margin-left: auto; }
.sf__nav .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.sf-result { animation: fadeUp .5s var(--ease); }
.sf-result:focus { outline: none; }
.sf-result__title { margin: 0 0 8px; font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; }
.sf-result__why { margin: 0 0 20px; color: var(--text-soft); font-size: 15px; }
.sf-result__list { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sf-pick { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-card); }
.sf-pick__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.sf-pick__net { font-weight: 800; color: var(--white); }
.sf-pick__range { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--moon); }
.sf-pick--maxed .sf-pick__range { color: var(--orchid); }
.sf-pick__detail { margin: 6px 0 12px; font-size: 14px; color: var(--text-soft); }
.sf-pick__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-result__note { font-size: 14px; color: var(--text-mute); margin: 0 0 16px; }
.pk-card.is-recommended { border-color: var(--coral); box-shadow: 0 0 0 2px var(--coral), 0 18px 40px rgba(242, 69, 93, .25); position: relative; }
.pk-card.is-recommended::before {
	content: "Recommended for you"; position: absolute; top: -12px; left: 18px; padding: 3px 10px; border-radius: 999px;
	background: var(--coral); color: var(--night); font-size: 12px; font-weight: 800;
}

.sf [hidden] { display: none !important; }
.site-nav__actions { flex-wrap: nowrap; }
.nav-menu { gap: 4px 22px; }
@media (min-width: 1201px) and (max-width: 1320px) { .nav-menu a { font-size: 14px; } .status-link { font-size: 13px; } }

/* Sign-up pages: the JotForm on its own, centred */
.signup-page { padding-top: clamp(32px, 5vw, 64px); }
.prose--form { margin-inline: auto; max-width: 780px; }
.prose--form .divi-content, .prose--form .divi-section, .prose--form .divi-row, .prose--form .divi-col { width: 100%; }
.prose--form iframe { display: block; margin-inline: auto; width: 100%; }

/* Contact page */
.contact { display: grid; gap: clamp(40px, 6vw, 72px); }
.contact-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.channel {
	--ch: var(--moon);
	position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px; min-width: 0;
	border-radius: var(--radius); background: var(--night-card); border: 1px solid var(--line-card);
	text-decoration: none; color: var(--text); transition: border-color .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.channel:hover { border-color: var(--ch); background: var(--night-hover); color: var(--text); }
.channel--whatsapp { --ch: #25d366; }
.channel--phone { --ch: var(--moon); }
.channel--mail { --ch: var(--rose); }
.channel__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 10px;
	border-radius: 16px; color: var(--ch); background: color-mix(in srgb, var(--ch) 16%, transparent);
}
.channel__icon .icon { width: 26px; height: 26px; }
.channel__title { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--white); }
.channel__text { font-size: 15px; line-height: 1.55; color: var(--text-mute); flex: 1; }
.channel__value { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 800; font-size: 16px; color: var(--white); overflow-wrap: anywhere; }
.channel__value .icon { width: 18px; height: 18px; flex: none; color: var(--ch); transition: transform .25s var(--ease); }
.channel:hover .channel__value .icon { transform: translateX(4px); }

.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-info { grid-template-columns: 1fr; } }
.contact-info .h3 { display: flex; align-items: center; gap: 12px; }
.contact-h-icon { display: inline-flex; color: var(--moon); }
.contact-hours__grid { display: grid; gap: 16px; }
.hours-card { padding: 24px 26px; border-radius: var(--radius); background: var(--night-card); border: 1px solid var(--line-card); }
.hours-card__title { margin: 0 0 12px; font-size: 17px; font-weight: 800; color: var(--white); }
.hours-card__list { margin: 0; padding: 0; list-style: none; }
.hours-card__list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-soft); }
.hours-card__list li:first-child { border-top: 0; padding-top: 0; }
.hours-card__list strong { color: var(--white); font-weight: 700; text-align: right; }
.online-card { padding: 26px 28px; border-radius: var(--radius); background: var(--night-card); border: 1px solid var(--line-card); }
.online-card > p { margin: 0 0 16px; font-size: 15px; line-height: 1.65; color: var(--text-soft); }
.online-card__list { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.online-card__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text); }
.online-card__list .icon { flex: none; width: 20px; height: 20px; color: var(--moon); margin-top: 1px; }
.online-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.online-card__address { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-mute); }

/* Easter egg: Luna vs Lag */
.lvl-open, .lvl-open body { overflow: hidden; }
.lvl {
	position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px;
	background: rgba(8, 0, 30, .86); backdrop-filter: blur(6px); animation: fadeUp .35s var(--ease);
}
.lvl__frame {
	width: min(100%, 1120px, calc((100vh - 150px) * 4 / 3 + 300px)); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: 24px; padding: 14px 20px 20px;
	background: var(--night-card); border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.lvl__bar { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.lvl__title { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--white); }
.lvl__title em { font-style: normal; color: var(--coral); }
.lvl__hint { flex: 1; font-size: 13px; color: var(--text-mute); }
.lvl__close { margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--white); font-size: 24px; line-height: 1; cursor: pointer; }
.lvl__close:hover, .lvl__close:focus-visible { border-color: var(--moon); }
.lvl__canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 14px; touch-action: none; }
.lvl__touch { display: none; gap: 10px; margin-top: 12px; }
.lvl__touch button {
	flex: 1; min-height: 56px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--night-band);
	color: var(--white); font: 800 18px var(--font); touch-action: none; user-select: none; -webkit-user-select: none;
}
.lvl__touch button[data-k="fire"] { flex: 1.4; background: var(--grad); border: 0; }
@media (hover: none), (max-width: 700px) { .lvl__touch { display: flex; } .lvl__hint { display: none; } }

/* "Play Luna vs Lag" buttons */
.game-btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px 10px 14px;
	border: 1px dashed var(--moon); border-radius: 999px; background: rgba(140, 151, 249, .08);
	color: var(--moon-soft); font: 700 14px var(--font); cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.game-btn .icon { width: 22px; height: 22px; color: var(--coral); animation: gameWiggle 2.4s ease-in-out infinite; }
.game-btn:hover, .game-btn:focus-visible { background: rgba(140, 151, 249, .18); color: var(--white); border-style: solid; transform: translateY(-2px); }
.game-btn--lg { min-height: 52px; padding: 14px 24px 14px 18px; font-size: 16px; }
@keyframes gameWiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-14deg); } 90% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
.site-footer__game { margin: 18px 0; }
.sf-result__game { margin: 4px 0 18px; }
.not-found__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 32px; }

/* Luna vs Lag: stage, leaderboard and name entry */
.lvl__body { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; }
.lvl__stage { position: relative; }
.lvl__board { padding: 16px 16px 12px; border-radius: 14px; background: var(--night-deep); border: 1px solid var(--line); }
.lvl__board-title { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--white); }
.lvl__board-list { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.lvl__board-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: 14px; color: var(--text-soft); }
.lvl__board-list li:nth-child(1) .lvl__rank { color: #ffd34d; }
.lvl__board-list li:nth-child(2) .lvl__rank { color: #d9dcf0; }
.lvl__board-list li:nth-child(3) .lvl__rank { color: #e0a272; }
.lvl__board-list li.is-me { background: rgba(242, 69, 93, .16); color: var(--white); }
.lvl__rank { font-weight: 800; color: var(--text-mute); }
.lvl__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.lvl__score { font-weight: 800; color: var(--white); font-variant-numeric: tabular-nums; }
.lvl__board-empty { display: block !important; padding: 10px 0 !important; color: var(--text-mute) !important; }
.lvl__board-note { margin: 10px 0 0; font-size: 11px; color: var(--text-mute); }
.lvl__entry {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	padding: 24px; text-align: center; border-radius: 14px;
}
.lvl__entry[hidden] { display: none; }
.lvl__entry-title { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 4vw, 34px); color: var(--white); }
.lvl__entry-score { margin: 0 0 8px; color: var(--text-soft); font-size: 15px; }
.lvl__entry-label { font-size: 14px; font-weight: 700; color: var(--moon-soft); }
.lvl__entry-input {
	width: min(100%, 300px); min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong);
	background: var(--night-band); color: var(--white); font: 700 18px var(--font); text-align: center;
}
.lvl__entry-input:focus { outline: none; border-color: var(--moon); box-shadow: 0 0 0 3px rgba(140, 151, 249, .25); }
.lvl__entry-actions { display: flex; gap: 10px; margin-top: 4px; }
.lvl__btn { min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; color: var(--white); font: 800 15px var(--font); cursor: pointer; }
.lvl__btn--primary { border: 0; background: var(--grad); }
.lvl__btn:disabled { opacity: .6; cursor: wait; }
.lvl__entry-msg { min-height: 20px; margin: 0; font-size: 13px; color: var(--coral); }
@media (max-width: 820px) {
	.lvl__frame { display: flex; flex-direction: column; }
	.lvl__body { display: contents; }
	.lvl__bar { order: 1; } .lvl__stage { order: 2; } .lvl__touch { order: 3; } .lvl__board { order: 4; margin-top: 12px; }
	.lvl__board-list li { padding: 5px 8px; }
	.lvl__entry { gap: 6px; padding: 12px; }
	.lvl__entry-score { font-size: 13px; margin-bottom: 2px; }
}

/* Legal documents (Code of Conduct & Service Charter) */
.legal { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.legal__aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.legal__toc, .legal__help { padding: 22px; border-radius: var(--radius); background: var(--night-card); border: 1px solid var(--line-card); }
.legal__toc-title, .legal__help-title { margin: 0 0 10px; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--white); }
.legal__toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal__toc li { counter-increment: toc; }
.legal__toc a { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--text-soft); text-decoration: none; border-top: 1px solid var(--line); }
.legal__toc li:first-child a { border-top: 0; }
.legal__toc a::before { content: counter(toc); min-width: 16px; font-weight: 800; color: var(--moon); }
.legal__toc a:hover { color: var(--white); }
.legal__help p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.legal__help .btn { width: 100%; justify-content: center; font-size: 13px; }
.legal__body { max-width: 760px; }
.legal__body h2 { margin: 48px 0 16px; padding-top: 8px; font-size: clamp(22px, 2.6vw, 28px); }
.legal__body h2:first-child { margin-top: 0; }
.legal__body ol { padding-left: 1.6em; }
.legal__body ol > li { margin: 0 0 12px; padding-left: 6px; line-height: 1.7; color: var(--text-soft); }
.legal__body ol > li::marker { font-weight: 800; color: var(--moon); }
.legal__body ol ol { margin: 10px 0 0; }
.legal__body ol ol > li { margin-bottom: 6px; }
.legal__body ol ol > li::marker { font-weight: 700; color: var(--text-mute); }
.legal__body ul { margin: 8px 0 0; }
.legal__body .clause-cont { margin: -4px 0 14px 2.2em; color: var(--text-soft); }
.legal__body .legal-meta { margin-top: 40px; font-size: 13px; color: var(--text-mute); }
.legal__body .legal-meta + .legal-meta { margin-top: 8px; }
@media (max-width: 960px) {
	.legal { grid-template-columns: 1fr; }
	.legal__aside { position: static; }
	.legal__help { order: 2; }
}
.complaints-note { margin-top: 16px; padding: 20px 24px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.complaints-note__title { margin: 0 0 6px; font-weight: 800; color: var(--white); }
.complaints-note p:last-child { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-soft); }
.complaints-note a { color: var(--moon); font-weight: 700; }

/* Large screens: use more of the width (no zooming, so text stays its normal size). */
@media (min-width: 1700px) { :root { --wrap: 1440px; } }
@media (min-width: 2200px) { :root { --wrap: 1560px; } }

/* Network status */
.status-link--issues .status-link__dot { background: #f5934a; }
.status-link--down .status-link__dot { background: #f2455d; }
.status-link--maintenance .status-link__dot { background: #f5b84a; }
.status-link--unknown .status-link__dot { background: #8a85b5; }
.status { display: grid; gap: clamp(28px, 4vw, 44px); }
.status > * { max-width: 980px; }
.status-banner { display: flex; align-items: center; gap: 16px; padding: 22px 26px; border-radius: var(--radius); background: var(--night-card); border: 1px solid var(--line-card); }
.status-banner strong { display: block; font-size: 18px; color: var(--white); }
.status-banner__time { display: block; margin-top: 2px; font-size: 13px; color: var(--text-mute); }
.status-banner__dot { flex: none; width: 16px; height: 16px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 6px rgba(62, 224, 143, .15); animation: pulse 2s ease-in-out infinite; }
.status-banner--ok { border-color: rgba(62, 224, 143, .35); }
.status-banner--issues { border-color: rgba(245, 147, 74, .5); }
.status-banner--issues .status-banner__dot { background: #f5934a; box-shadow: 0 0 0 6px rgba(245, 147, 74, .18); }
.status-banner--down { border-color: rgba(242, 69, 93, .5); }
.status-banner--down .status-banner__dot { background: #f2455d; box-shadow: 0 0 0 6px rgba(242, 69, 93, .18); }
.status-banner--maintenance { border-color: rgba(245, 184, 74, .5); }
.status-banner--maintenance .status-banner__dot { background: #f5b84a; box-shadow: 0 0 0 6px rgba(245, 184, 74, .18); }
.status-banner--unknown .status-banner__dot { background: #8a85b5; box-shadow: none; animation: none; }
.status-block .h3 { margin: 0 0 14px; }
.status-item { padding: 20px 24px; margin-bottom: 12px; border-radius: var(--radius); background: var(--night-card); border: 1px solid var(--line-card); border-left: 4px solid #f2455d; }
.status-item--maintenance { border-left-color: #f5b84a; }
.status-item--issues { border-left-color: #f5934a; }
.status-item--ok { border-left-color: #3ee08f; }
.status-item__affects { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--text-mute) !important; }
.status-item__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.status-item__head h3 { margin: 0; font-size: 17px; color: var(--white); }
.status-item p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-soft); }
.status-item .status-item__meta { font-size: 13px; color: var(--text-mute); }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-chip--ok { color: #3ee08f; background: rgba(62, 224, 143, .12); }
.status-chip--maintenance { color: #f5b84a; background: rgba(245, 184, 74, .12); }
.status-chip--issues { color: #f5934a; background: rgba(245, 147, 74, .12); }
.status-chip--down { color: #f2455d; background: rgba(242, 69, 93, .14); }
.status-list { margin: 0; padding: 0; list-style: none; border-radius: var(--radius); background: var(--night-card); border: 1px solid var(--line-card); overflow: hidden; }
.status-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
.status-row:first-child { border-top: 0; }
.status-row__name { font-weight: 700; color: var(--white); }
.status-row__time { font-size: 13px; color: var(--text-mute); }
.status-list--sub { flex-basis: 100%; margin-top: 6px; border: 0; background: transparent; }
.status-list--sub .status-row { padding: 10px 0 10px 16px; border-top: 1px dashed var(--line); }
.status-list--sub .status-row__name { font-weight: 600; color: var(--text-soft); }
.status-help { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.status-help .h3 { margin: 0 0 6px; }
.status-help p { margin: 0; max-width: 520px; color: var(--text-soft); }
.status-help__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.status-banner--issues .status-banner__dot, .status-banner--maintenance .status-banner__dot,
.status-banner--down .status-banner__dot, .status-link--down .status-link__dot,
.status-link--issues .status-link__dot, .status-link--maintenance .status-link__dot, .status-link--unknown .status-link__dot { animation: none; }

/* Pop-up frame (network status) */
.lf-modal { width: min(960px, calc(100vw - 32px)); height: min(820px, calc(100vh - 48px)); max-width: none; max-height: none; padding: 0; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--night-card); color: var(--text); box-shadow: 0 40px 120px rgba(0, 0, 0, .6); overflow: hidden; }
.lf-modal[open] { display: flex; flex-direction: column; animation: fadeUp .3s var(--ease); }
.lf-modal::backdrop { background: rgba(8, 0, 30, .75); backdrop-filter: blur(4px); }
.lf-modal__bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.lf-modal__title { flex: 1; margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--white); }
.lf-modal__open { font-size: 13px; font-weight: 700; color: var(--moon); text-decoration: none; }
.lf-modal__open:hover { color: var(--white); }
.lf-modal__close { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 12px; background: transparent; color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; }
.lf-modal__close:hover, .lf-modal__close:focus-visible { border-color: var(--moon); }
.lf-modal__frame { flex: 1; width: 100%; border: 0; background: var(--night-deep); }
.lf-modal-open { overflow: hidden; }
@media (max-width: 600px) { .lf-modal { width: 100vw; height: 100dvh; border-radius: 0; border: 0; } }

/* Status page inside the pop-up */
.status-embed { background: var(--night-deep); }
.status-embed .status { padding-top: 24px; padding-bottom: 32px; gap: 28px; }
.status-embed__intro { margin: 0; color: var(--text-soft); }
.status-embed .reveal { opacity: 1 !important; transform: none !important; }
