:root {
	--bg: #0a0b0d;
	--bg-2: #0e1013;
	--glass: rgba(255, 255, 255, 0.045);
	--glass-strong: rgba(255, 255, 255, 0.08);
	--stroke: rgba(255, 255, 255, 0.09);
	--stroke-strong: rgba(255, 255, 255, 0.18);
	--text: #f2f4f7;
	--muted: rgba(233, 238, 245, 0.56);
	--faint: rgba(233, 238, 245, 0.34);
	--accent: #ff5500;
	--accent-2: #ff8a3d;
	--green: #2ee08a;
	--red: #ff4d4d;
	--yellow: #ffc247;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
	--font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
}

body {
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

body::before,
body::after {
	content: "";
	position: fixed;
	z-index: -2;
	border-radius: 50%;
	filter: blur(120px);
	pointer-events: none;
}

body::before {
	top: -280px;
	left: -160px;
	width: 760px;
	height: 760px;
	background: radial-gradient(circle, rgba(255, 85, 0, 0.28), transparent 65%);
}

body::after {
	bottom: -320px;
	right: -200px;
	width: 820px;
	height: 820px;
	background: radial-gradient(circle, rgba(64, 120, 255, 0.18), transparent 65%);
}

a {
	color: var(--accent-2);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1,
h2,
h3 {
	margin: 0;
	letter-spacing: -0.02em;
	font-weight: 800;
}

h1 {
	font-size: clamp(28px, 4vw, 44px);
	line-height: 1.1;
}

h2 {
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
	font-weight: 700;
}

h3 {
	font-size: 15px;
}

.sub {
	margin: 10px 0 0;
	color: var(--muted);
	font-size: 15px;
}

.hint {
	margin: 10px 0 0;
	color: var(--faint);
	font-size: 13px;
}

.wrap {
	max-width: 1500px;
	margin: 0 auto;
	padding: 34px 26px 90px;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	background: rgba(10, 11, 13, 0.72);
	backdrop-filter: blur(22px) saturate(160%);
	-webkit-backdrop-filter: blur(22px) saturate(160%);
	border-bottom: 1px solid var(--stroke);
}

.topbar-inner {
	display: flex;
	align-items: center;
	gap: 14px;
	max-width: 1500px;
	margin: 0 auto;
	padding: 14px 26px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--text);
}

.brand:hover {
	text-decoration: none;
}

.brand .dot {
	width: 10px;
	height: 10px;
	border-radius: 3px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	box-shadow: 0 0 16px rgba(255, 85, 0, 0.7);
}

.spacer {
	flex: 1;
}

.card {
	position: relative;
	padding: 22px;
	border: 1px solid var(--stroke);
	border-radius: var(--radius-lg);
	background: linear-gradient(180deg, var(--glass-strong), var(--glass));
	backdrop-filter: blur(26px) saturate(150%);
	-webkit-backdrop-filter: blur(26px) saturate(150%);
	box-shadow: var(--shadow);
	overflow: hidden;
}

.card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
	opacity: 0.7;
}

.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
	gap: 22px;
	align-items: stretch;
	margin-bottom: 26px;
}

.hero .eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding: 6px 12px;
	border: 1px solid var(--stroke-strong);
	border-radius: 999px;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted);
}

.promo {
	display: flex;
	flex-direction: column;
	gap: 14px;
	background: linear-gradient(160deg, rgba(88, 101, 242, 0.22), rgba(255, 255, 255, 0.04) 60%);
}

.promo-head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.promo-logo {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #5865f2;
	box-shadow: 0 12px 30px rgba(88, 101, 242, 0.45);
}

.promo-logo svg {
	width: 24px;
	height: 24px;
	fill: #fff;
}

.promo-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.promo-list li {
	position: relative;
	padding-left: 22px;
	color: var(--muted);
	font-size: 14px;
}

.promo-list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 8px;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--accent);
}

.promo-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border: 1px solid var(--stroke-strong);
	border-radius: 11px;
	background: rgba(255, 255, 255, 0.06);
	color: var(--text);
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.btn:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--stroke-strong);
	text-decoration: none;
}

.btn:active {
	transform: translateY(1px);
}

.btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.btn.primary {
	border-color: transparent;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #170a02;
	box-shadow: 0 14px 34px rgba(255, 85, 0, 0.34);
}

.btn.primary:hover {
	filter: brightness(1.08);
}

.btn.discord {
	border-color: transparent;
	background: #5865f2;
	color: #fff;
	box-shadow: 0 14px 34px rgba(88, 101, 242, 0.4);
}

.btn.danger {
	border-color: rgba(255, 77, 77, 0.4);
	color: #ffb4b4;
}

.btn.danger:hover {
	background: rgba(255, 77, 77, 0.16);
}

.btn.sm {
	padding: 8px 12px;
	font-size: 11px;
}

.btn.wide {
	width: 100%;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border: 1px solid var(--stroke);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.05);
	font-size: 12px;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
}

.chip.live {
	border-color: rgba(46, 224, 138, 0.35);
	color: #9cf0c4;
}

.chip.live::before,
.chip.off::before,
.chip.warn::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.chip.off {
	border-color: rgba(255, 77, 77, 0.35);
	color: #ffb0b0;
}

.chip.warn {
	border-color: rgba(255, 194, 71, 0.4);
	color: var(--yellow);
}

.chip img {
	width: 18px;
	height: 18px;
	border-radius: 50%;
}

.two {
	display: grid;
	grid-template-columns: minmax(0, 2.5fr) minmax(300px, 0.9fr);
	gap: 22px;
	align-items: start;
}

.grid {
	display: grid;
	gap: 16px;
}

.stat {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	gap: 12px;
}

.stat > div {
	padding: 12px 14px;
	border: 1px solid var(--stroke);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.04);
}

.stat span {
	display: block;
	font-size: 10px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--faint);
}

.stat b {
	display: block;
	margin-top: 4px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.field {
	margin-bottom: 16px;
}

.field label,
.flabel {
	display: block;
	margin-bottom: 8px;
	font-size: 11px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--faint);
	font-weight: 700;
}

input[type="text"],
input[type="number"],
input[type="url"],
select,
textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--stroke);
	border-radius: 11px;
	background: rgba(0, 0, 0, 0.35);
	color: var(--text);
	font: inherit;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:focus,
select:focus,
textarea:focus {
	outline: none;
	border-color: rgba(255, 85, 0, 0.65);
	box-shadow: 0 0 0 3px rgba(255, 85, 0, 0.15);
}

input::placeholder {
	color: rgba(233, 238, 245, 0.28);
}

.linkbox {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.linkbox input {
	flex: 1;
	min-width: 180px;
}

.seg {
	display: inline-flex;
	gap: 6px;
	padding: 5px;
	border: 1px solid var(--stroke);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.3);
}

.seg button {
	padding: 8px 14px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--muted);
	font: inherit;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}

.seg button.on {
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #170a02;
}

.mapwrap {
	position: relative;
	border: 1px solid var(--stroke);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: rgba(0, 0, 0, 0.4);
	box-shadow: var(--shadow);
	line-height: 0;
}

.mapwrap img {
	display: block;
	width: 100%;
	height: auto;
}

.mapwrap.placing {
	cursor: crosshair;
	border-color: rgba(255, 85, 0, 0.6);
}

.marker {
	position: absolute;
	transform: translate(-50%, -50%);
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	z-index: 2;
}

.pin {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.85);
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #1a0900;
	font-size: 13px;
	font-weight: 800;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
	transition: transform 0.14s ease;
}

.marker:hover .pin {
	transform: scale(1.15);
}

.marker.full .pin {
	background: rgba(18, 20, 24, 0.92);
	border-color: rgba(255, 77, 77, 0.8);
	color: #ffb0b0;
}

.marker.mine .pin {
	background: linear-gradient(135deg, #2ee08a, #7ff0bb);
	border-color: #eafff4;
	color: #06301d;
}

.marker.sel .pin {
	outline: 3px solid rgba(255, 255, 255, 0.4);
	outline-offset: 2px;
}

.tip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 12px);
	transform: translateX(-50%);
	display: none;
	flex-direction: column;
	gap: 4px;
	min-width: 190px;
	max-width: 260px;
	padding: 12px 14px;
	border: 1px solid var(--stroke-strong);
	border-radius: 14px;
	background: rgba(14, 16, 19, 0.92);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	box-shadow: var(--shadow);
	text-align: left;
	font-size: 13px;
	line-height: 1.45;
	z-index: 5;
}

.marker:hover .tip,
.marker:focus-visible .tip {
	display: flex;
}

.marker.tip-below .tip {
	bottom: auto;
	top: calc(100% + 12px);
}

.tip b {
	font-size: 14px;
}

.t-meta {
	color: var(--muted);
	font-size: 12px;
}

.t-note {
	color: var(--yellow);
	font-size: 12px;
}

.t-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px solid var(--stroke);
}

.t-m {
	color: rgba(233, 238, 245, 0.8);
	font-size: 12px;
}

.plist {
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

.pitem {
	padding: 14px;
	border: 1px solid var(--stroke);
	border-radius: var(--radius);
	background: rgba(255, 255, 255, 0.035);
	transition: border-color 0.16s ease, background 0.16s ease;
}

.pitem:hover {
	border-color: var(--stroke-strong);
	background: rgba(255, 255, 255, 0.06);
}

.pitem.mine {
	border-color: rgba(46, 224, 138, 0.45);
}

.pitem header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.pitem header h3 {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.count {
	padding: 4px 10px;
	border: 1px solid var(--stroke);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.35);
	font-size: 12px;
	font-weight: 800;
}

.count.full {
	border-color: rgba(255, 77, 77, 0.45);
	color: #ffb0b0;
}

.members {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.member {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border: 1px solid var(--stroke);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.3);
	font-size: 12px;
}

.member img {
	width: 16px;
	height: 16px;
	border-radius: 50%;
}

.member button {
	padding: 0 2px;
	border: 0;
	background: none;
	color: var(--faint);
	font: inherit;
	cursor: pointer;
}

.member button:hover {
	color: var(--red);
}

.roster {
	display: grid;
	gap: 8px;
	margin-top: 14px;
	max-height: 420px
}

.ritem {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border: 1px solid var(--stroke);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.035);
}

.ritem img,
.ritem .ava {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	flex: none;
}

.ritem .ava {
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.08);
	font-size: 12px;
	font-weight: 800;
	color: var(--muted);
}

.ritem .rname {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
}

.ritem .rpos {
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
}

.ritem.free .rpos {
	color: var(--yellow);
}

.empty {
	margin: 0;
	padding: 18px;
	border: 1px dashed var(--stroke);
	border-radius: var(--radius);
	color: var(--faint);
	font-size: 13px;
	text-align: center;
}

.toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	z-index: 90;
	padding: 12px 18px;
	border: 1px solid var(--stroke-strong);
	border-radius: 12px;
	background: rgba(14, 16, 19, 0.94);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	box-shadow: var(--shadow);
	font-size: 14px;
	font-weight: 600;
}

.toast.err {
	border-color: rgba(255, 77, 77, 0.5);
	color: #ffc4c4;
}

dialog {
	width: min(460px, calc(100vw - 32px));
	padding: 24px;
	border: 1px solid var(--stroke-strong);
	border-radius: var(--radius-lg);
	background: rgba(14, 16, 19, 0.96);
	backdrop-filter: blur(26px);
	-webkit-backdrop-filter: blur(26px);
	color: var(--text);
	box-shadow: var(--shadow);
}

dialog::backdrop {
	background: rgba(4, 5, 7, 0.7);
	backdrop-filter: blur(4px);
}

.row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.divider {
	margin: 18px 0;
	height: 1px;
	background: var(--stroke);
}

.preview {
	margin-top: 12px;
	border: 1px solid var(--stroke);
	border-radius: var(--radius);
	overflow: hidden;
	line-height: 0;
}

.preview img {
	width: 100%;
	height: auto;
	display: block;
}

@media (max-width: 1080px) {
	.hero,
	.two {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.wrap {
		padding: 24px 16px 70px;
	}

	.topbar-inner {
		padding: 12px 16px;
		flex-wrap: wrap;
	}

	.card {
		padding: 18px;
		border-radius: 18px;
	}
}
