@charset "UTF-8";

:root {
	--bg: #050505;
	--bg-alt: #0b0b0b;
	--ink: #f6f4ef;
	--muted: #c1c1c1;
	--accent-red: #e11d2e;
	--accent-green: #22c55e;
	--accent-yellow: #f4d03f;
	--border: #1b1b1b;
	--shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
	--header-h: 72px;
	--page-gutter: clamp(14px, 3.2vw, 24px);
	--font-display: "Bebas Neue", "Oswald", sans-serif;
	--font-body: "Space Grotesk", "Sora", sans-serif;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: var(--font-body);
	color: var(--ink);
	background: radial-gradient(circle at 12% 15%, rgba(225, 29, 46, 0.18), transparent 45%),
		radial-gradient(circle at 85% 20%, rgba(34, 197, 94, 0.15), transparent 50%),
		linear-gradient(135deg, #050505 0%, #0b0b0b 45%, #070707 100%);
	position: relative;
}

body::before,
body::after {
	content: "";
	position: fixed;
	inset: auto auto 0 0;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(244, 208, 63, 0.2), transparent 65%);
	filter: blur(0.5px);
	pointer-events: none;
	z-index: 0;
}

body::after {
	inset: 10% 0 auto auto;
	width: 240px;
	height: 240px;
	background: radial-gradient(circle, rgba(225, 29, 46, 0.18), transparent 70%);
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	max-width: 100%;
	display: block;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(5, 5, 5, 0.9);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 14px var(--page-gutter);
}

.brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1;
	font-family: var(--font-display);
	font-size: clamp(20px, 4.5vw, 28px);
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--accent-red);
}

.brand-main {
	line-height: 1;
}

.brand-sub {
	font-size: 0.45em;
	letter-spacing: 2px;
	align-self: center;
	color: var(--accent-red);
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-left: 16px;
	flex: 1;
}

.nav-link,
.nav-dropdown summary {
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--muted);
	transition: color 0.2s ease;
	cursor: pointer;
}

.nav-link:hover,
.nav-dropdown summary:hover {
	color: var(--ink);
}

.nav-dropdown {
	position: relative;
}

.nav-dropdown summary {
	list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
	display: none;
}

.dropdown-menu {
	position: absolute;
	top: 42px;
	left: 0;
	background: #0b0b0b;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	padding: 12px;
	min-width: 210px;
	box-shadow: var(--shadow);
	display: grid;
	gap: 8px;
}

.nav-dropdown:not([open]) .dropdown-menu {
	display: none;
}

.dropdown-menu a {
	font-size: 14px;
	color: var(--muted);
	padding: 8px 10px;
	border-radius: 8px;
	transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--ink);
}

.nav-actions {
	display: flex;
	align-items: center;
	gap: clamp(8px, 2vw, 12px);
}

.nav-toggle {
	display: none;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--ink);
	padding: clamp(6px, 3vw, 8px) clamp(10px, 3vw, 12px);
	border-radius: 8px;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: clamp(8px, 3vw, 10px) clamp(10px, 3vw, 18px);
	border-radius: 999px;
	background: var(--accent-red);
	color: #fff;
	font-size: clamp(10px, 3vw, 13px);
	letter-spacing: 0.8px;
	text-transform: uppercase;
	border: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 30px rgba(225, 29, 46, 0.25);
}

button,
.btn,
.nav-toggle,
.bomb-btn,
.map-result,
summary {
	cursor: pointer;
}

button:disabled,
.btn:disabled,
input:disabled,
select:disabled,
textarea:disabled {
	cursor: not-allowed;
}

.btn-outline {
	background: transparent;
	border: 1px solid var(--accent-red);
	color: var(--accent-red);
}

.btn-ghost {
	background: rgba(255, 255, 255, 0.08);
	color: var(--ink);
}

.site-main {
	position: relative;
	z-index: 1;
	padding: 0 var(--page-gutter) 80px;
	flex: 1;
}

.container {
	max-width: 1100px;
	width: 100%;
	margin: 0 auto;
}

.hero {
	min-height: calc(75vh - var(--header-h));
	display: grid;
	align-content: center;
	gap: 40px;
}

.hero-title {
	font-family: var(--font-display);
	font-size: clamp(48px, 8vw, 112px);
	letter-spacing: 4px;
	color: var(--accent-red);
	text-align: center;
	margin: 0;
}

.hero-sub {
	font-family: var(--font-display);
	font-size: clamp(24px, 3vw, 112px);
	letter-spacing: 3px;
	color: var(--accent-red);
	text-align: center;
	margin-top: -30px;
}

.page-home .hero {
	min-height: calc(35vh - var(--header-h));
	gap: 10px;
	padding-top: 10px;
}

.page-home .hero-title {
	margin-bottom: -6px;
}

.page-home .hero-sub {
	margin-top: -10px;
}

.hero-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
	align-items: center;
}

.panel-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
	align-items: stretch;
}

.panel-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
}

.panel-card .btn {
	margin-top: auto;
}

.marker-card {
	display: block;
	background: rgba(12, 12, 12, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	padding: 32px 24px;
	text-align: center;
	box-shadow: var(--shadow);
	transition: transform 0.2s ease;
	color: inherit;
	cursor: pointer;
}

.marker-card:hover {
	transform: translateY(-4px);
}

.marker-icon {
	position: relative;
	width: 90px;
	height: 90px;
	margin: 0 auto 26px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-family: var(--font-display);
	font-size: 36px;
	color: #0b0b0b;
}

.marker-icon::after {
	content: "";
	position: absolute;
	width: 26px;
	height: 26px;
	left: 50%;
	bottom: -10px;
	transform: translateX(-50%) rotate(45deg);
	background: inherit;
	border-radius: 6px;
}

.marker-icon.green {
	background: var(--accent-green);
}

.marker-icon.red {
	background: var(--accent-red);
}

.marker-label {
	font-family: var(--font-display);
	font-size: 26px;
	letter-spacing: 2px;
	color: var(--accent-red);
	margin-bottom: 10px;
}

.marker-link {
	color: var(--ink);
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 1px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.page-title {
	font-family: var(--font-display);
	font-size: clamp(32px, 6vw, 64px);
	letter-spacing: 3px;
	margin-bottom: 16px;
	color: var(--accent-red);
}

.page-intro {
	color: var(--muted);
	max-width: 720px;
	line-height: 1.7;
}

.map-shell {
	display: grid;
	gap: 20px;
	justify-items: center;
	--map-shell-width: min(1200px, calc(100vw - (var(--page-gutter) * 2)));
}

.page-map .map-shell {
	row-gap: 14px;
}

.map-header {
	text-align: center;
}

.map-title {
	font-size: clamp(40px, 8vw, 88px);
}

.map-intro {
	margin: 0 auto;
}

.map-controls {
	display: grid;
	gap: 24px;
	align-items: stretch;
	grid-template-columns: minmax(0, 1fr) 320px;
	width: var(--map-shell-width);
	position: relative;
	z-index: 4000;
}

.map-search-panel {
	display: grid;
	gap: 8px;
	position: relative;
	width: 100%;
	z-index: 9000;
}

.map-search-row {
	display: flex;
	gap: 10px;
	width: 100%;
}

#map-search {
	-webkit-appearance: none;
	appearance: none;
	min-width: 0;
	flex: 1 1 auto;
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	background: linear-gradient(180deg, rgba(12, 12, 12, 0.98), rgba(8, 8, 8, 0.98));
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#map-search::placeholder {
	color: rgba(246, 244, 239, 0.58);
}

#map-search:focus {
	outline: none;
	border-color: rgba(225, 29, 46, 0.72);
	box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.18);
}

#map-search-btn {
	height: 52px;
	width: 118px;
	min-width: 118px;
	max-width: 118px;
	padding-left: 18px;
	padding-right: 18px;
}

.map-search-panel input {
	-webkit-appearance: none;
	appearance: none;
	min-width: 0;
	flex: 1 1 auto;
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(8, 8, 8, 0.95);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 15px;
}

.map-search-row .btn {
	flex: 0 0 auto;
	height: 48px;
	min-width: 110px;
}

.map-help {
	font-size: 12px;
	letter-spacing: 0.4px;
	color: var(--muted);
}

.map-search-dropdown {
	display: none;
	flex-direction: column;
	gap: 4px;
	padding: 8px;
	position: absolute;
	top: 56px;
	left: 0;
	right: 0;
	z-index: 12000;
	border-radius: 12px;
	background: rgba(8, 8, 8, 0.98);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: var(--shadow);
	max-height: min(48vh, 360px);
	overflow-y: auto;
}

.map-search-dropdown.active {
	display: flex;
}

#map-results {
	border-radius: 14px;
}

.map-result {
	background: transparent;
	color: var(--ink);
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 10px 12px;
	text-align: left;
	font-family: var(--font-body);
	font-size: 14px;
}

.map-result:hover,
.map-result:focus-visible {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.12);
	outline: none;
}

#map-locate-btn {
	justify-self: stretch;
	align-self: start;
	height: 52px;
	width: 100%;
	min-width: 0;
}

.map-grid {
	display: grid;
	gap: 24px;
	align-items: start;
	grid-template-columns: minmax(0, 1fr) 320px;
	width: var(--map-shell-width);
}

.map-grid.map-grid-single {
	grid-template-columns: minmax(0, 1fr);
}

.map-frame {
	width: 100%;
	height: min(70vh, 680px);
	border: 5px solid #000;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--shadow);
	background: #0a0a0a;
}

.bomb-card {
	background: rgba(12, 12, 12, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 22px;
	box-shadow: var(--shadow);
	display: grid;
	gap: 16px;
	min-height: 100%;
}

.page-map .map-grid > .bomb-card {
	height: min(70vh, 680px);
	box-sizing: border-box;
	grid-template-rows: minmax(0, 1fr) auto;
}

.map-sidebar {
	display: grid;
	gap: 16px;
	align-content: start;
}

.page-map-editor .map-frame {
	height: min(76vh, 760px);
}

.page-map-editor .map-sidebar {
	height: min(76vh, 760px);
	grid-template-rows: auto minmax(0, 1fr);
}

.map-sidebar .bomb-card {
	padding: 12px;
	min-height: 0;
}

.map-editor-panel {
	background: rgba(10, 10, 10, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 16px;
	box-shadow: var(--shadow);
	min-height: 0;
	overflow-y: auto;
}

.bomb-display {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 8px;
	justify-items: center;
	text-align: center;
}

.bomb-display img,
.bomb-display video {
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	align-self: start;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: #050505;
}

.bomb-name {
	font-family: var(--font-display);
	font-size: 24px;
	letter-spacing: 2px;
	color: var(--accent-red);
}

.bomb-radius {
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
	color: var(--muted);
}

.bomb-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bomb-specs { display: grid; gap: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.page-map .bomb-display { align-content: start; }
.page-map .bomb-specs { width: 100%; gap: 3px; padding: 10px 12px; text-align: left; border: 1px solid #ffffff14; border-radius: 12px; background: #ffffff04; }

.page-map-editor .bomb-card { gap: 10px; }
.page-map-editor .bomb-display { justify-items: stretch; gap: 10px; text-align: left; }
.page-map-editor .bomb-card-heading { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; }
.page-map-editor .bomb-card-text { display: grid; gap: 6px; min-width: 0; }
.page-map-editor .bomb-card-heading > img,
.page-map-editor .bomb-card-heading > video { width: 100%; border-radius: 8px; }
.page-map-editor .bomb-name { font-size: 20px; line-height: 1.2; letter-spacing: .8px; overflow-wrap: anywhere; }
.page-map-editor .bomb-specs { overflow-wrap: anywhere; }
.page-map-editor .bomb-card-description { margin: 0; font: inherit; text-align: center; overflow-wrap: anywhere; }
.page-map-editor .bomb-card-description:empty { display: none; }
.page-map-editor .bomb-btn { width: 34px; height: 34px; border-radius: 9px; font-size: 14px; }

.bomb-btn {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: #0b0b0b;
	color: var(--ink);
	font-size: 18px;
	cursor: pointer;
}

.bomb-count {
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--muted);
}

.map-info-btn {
	width: var(--map-shell-width);
	justify-content: center;
	font-size: 18px;
	font-weight: 700;
}

.page-content-card,
.map-info-box {
	width: min(100%, 900px);
	box-sizing: border-box;
	padding: clamp(20px, 4vw, 34px);
	background: rgba(10, 10, 10, 0.86);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	box-shadow: var(--shadow);
	overflow-x: auto;
}

.map-info-box {
	width: var(--map-shell-width);
	max-width: none;
}

.page-content-card h2,
.page-content-card h3,
.map-info-box h2,
.map-info-box h3 {
	margin: 0 0 14px;
	font-family: var(--font-display);
	letter-spacing: 1px;
	color: var(--ink);
}

.page-content-card h2,
.map-info-box h2 {
	font-size: 30px;
}

.page-content-card p,
.map-info-box p {
	line-height: 1.75;
	color: var(--ink);
}

.page-spacer {
	height: 1.1rem;
}

.page-content-card ul,
.page-content-card ol,
.map-info-box ul,
.map-info-box ol {
	margin: 0 0 18px;
	padding-left: 24px;
	line-height: 1.7;
	text-align: left;
}

.page-content-card ul,
.map-info-box ul {
	list-style-type: disc;
}

.page-content-card li,
.map-info-box li {
	min-width: 0;
	overflow: visible;
	white-space: normal;
	text-overflow: clip;
}

.page-content-card table,
.map-info-box table {
	min-width: 560px;
}

.map-info-box-title {
	text-align: center;
}

.map-info-box-text {
	text-align: center;
}

.map-info-box-text ul,
.map-info-box-text ol {
	max-width: 720px;
	margin: 0 auto 14px;
	padding-left: 24px;
	text-align: left;
}

.map-info-box-text table,
.form-card table {
	width: 100%;
	margin: 16px 0;
	border-collapse: collapse;
	text-align: left;
}

.map-info-box-text th,
.map-info-box-text td,
.page-content-card th,
.page-content-card td,
.form-card th,
.form-card td {
	padding: 9px 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	text-align: left;
}

.map-info-box-text th,
.form-card th {
	background: rgba(225, 29, 46, 0.12);
	color: var(--ink);
}

.page-editor .page-editor-card form {
	display: grid;
	gap: 14px;
}

.page-editor .page-editor-card input,
.page-editor .page-editor-card textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	background: #080808;
	color: var(--ink);
	font: inherit;
}

.page-editor .page-editor-card textarea:focus,
.page-editor .page-editor-card input:focus {
	outline: none;
	border-color: rgba(225, 29, 46, 0.75);
	box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.14);
}

.page-editor-body-field {
	display: grid;
	gap: 8px;
}

.page-editor-toolbar {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.2);
}

.page-editor-toolbar .btn {
	min-height: 34px;
	padding: 7px 10px;
	font-size: 11px;
}

.page-editor-nav {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 20px;
}

.page-editor-card {
	width: min(100%, 900px);
	box-sizing: border-box;
	margin-top: 20px;
	padding: clamp(20px, 4vw, 30px);
	background: rgba(10, 10, 10, 0.86);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	box-shadow: var(--shadow);
}

.page-editor-card-heading {
	margin-bottom: 20px;
}

.page-editor-card-heading h2 {
	margin: 4px 0 0;
	font-family: var(--font-display);
	font-size: 30px;
	letter-spacing: 1px;
}

.page-editor-kicker {
	color: var(--accent-yellow);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.4px;
	text-transform: uppercase;
}

.entries {
	display: grid;
	gap: 20px;
	justify-items: center;
}

.entry {
	min-height: auto;
	background: #000;
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 24px;
	padding: 32px;
	display: flex;
	align-items: flex-start;
	width: min(100%, 960px);
}

.entry-inner {
	max-width: 100%;
}

.entry-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 24px;
	align-items: start;
}

.entry-layout.no-images {
	grid-template-columns: 1fr;
}

.entry-kicker {
	color: var(--accent-yellow);
	text-transform: uppercase;
	font-size: 13px;
	letter-spacing: 2px;
	margin-bottom: 12px;
}

.entry-title {
	font-family: var(--font-display);
	font-size: clamp(32px, 6vw, 56px);
	letter-spacing: 2px;
	margin: 0 0 12px;
}

.entry-meta {
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
	margin-bottom: 18px;
}

.entry-body p {
	line-height: 1.7;
	margin: 0 0 14px;
	color: var(--ink);
}

.entry-images {
	display: grid;
	gap: 14px;
	margin-top: 0;
}

.entry-images img {
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	width: 100%;
}

li {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.form-card,
.form-card-expanded {
    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow);
    max-width: 520px;
}

.form-card form,
.form-card-expanded form {
    display: grid;
    gap: 16px;
    padding-top: 16px;
}

.form-card label,
.form-card-expanded label {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
}

.form-card input,
.form-card textarea,
.form-card select,
.form-card-expanded input,
.form-card-expanded textarea,
.form-card-expanded select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #080808;
    color: var(--ink);
    font-family: var(--font-body);
    box-sizing: border-box;
}

.form-card textarea,
.form-card-expanded textarea {
    min-height: 140px;
    resize: vertical;
}

.account-filters {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) 180px auto auto;
	align-items: end;
	gap: 12px;
	margin: 20px 0;
	padding: 14px;
	background: rgba(10, 10, 10, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	box-shadow: var(--shadow);
}

.account-filters label,
.account-widget label {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--muted);
}

.account-filters input,
.account-filters select,
.account-widget input,
.account-widget select {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	background: #080808;
	color: var(--ink);
	font-family: var(--font-body);
}

.account-filter-button,
.account-clear-button {
	min-height: 42px;
	white-space: nowrap;
}

.account-results {
	width: min(100%, 1100px);
	box-sizing: border-box;
	padding: 16px;
	background: rgba(10, 10, 10, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 16px;
	box-shadow: var(--shadow);
}

.account-results-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	color: var(--muted);
	font-size: 13px;
}

.account-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
	gap: 10px;
}

.account-widget {
	display: grid;
	gap: 12px;
	min-width: 0;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.22);
}

.account-widget-heading,
.account-widget-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.account-widget-heading strong {
	display: block;
	font-size: 17px;
}

.account-widget-heading span:not(.account-rank-badge) {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.account-rank-badge {
	padding: 5px 8px;
	border: 1px solid rgba(244, 208, 63, 0.45);
	border-radius: 999px;
	color: var(--accent-yellow);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	white-space: nowrap;
}

.rank-admin {
	border-color: rgba(225, 29, 46, 0.55);
	color: #ff8f99;
}

.rank-editor_plus,
.rank-editor {
	border-color: rgba(96, 165, 250, 0.5);
	color: #93c5fd;
}

.account-widget-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.account-ban-reason {
	grid-column: 1 / -1;
}

.threat-create-widget,
.threat-list-widget {
	width: min(100%, 1000px);
	box-sizing: border-box;
	background: rgba(10, 10, 10, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 20px;
	box-shadow: var(--shadow);
}

.threat-list-widget {
	margin-top: 20px;
}

.threat-widget-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 14px;
}

.threat-widget-form {
	display: grid;
	gap: 8px;
	min-width: 0;
}

.threat-widget-form input,
.threat-widget-form textarea,
.threat-widget-form select,
.page-map-editor .map-editor-panel input,
.page-map-editor .map-editor-panel textarea,
.page-map-editor .map-editor-panel select {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	min-height: 38px;
	padding: 8px 10px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 10px;
	background: #080808;
	color: var(--ink);
	font: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.threat-widget-form input:focus,
.threat-widget-form textarea:focus,
.threat-widget-form select:focus,
.page-map-editor .map-editor-panel input:focus,
.page-map-editor .map-editor-panel textarea:focus,
.page-map-editor .map-editor-panel select:focus {
	outline: none;
	border-color: rgba(225, 29, 46, 0.75);
	background: #0c0c0c;
	box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.14);
}

.threat-widget-form input[type="checkbox"],
.page-map-editor .map-editor-panel input[type="checkbox"] {
	width: 16px;
	height: 16px;
	min-width: 16px;
	min-height: 16px;
	margin: 0;
	padding: 0;
	accent-color: var(--accent-red);
	box-shadow: none;
}

.threat-widget-form textarea,
.page-map-editor .map-editor-panel textarea {
	min-height: 76px;
	resize: vertical;
}

.threat-widget-form input[type="file"] {
	padding: 6px;
	color: var(--muted);
}

.threat-widget-form input[type="file"]::file-selector-button {
	margin-right: 8px;
	padding: 7px 10px;
	border: 1px solid rgba(225, 29, 46, 0.65);
	border-radius: 7px;
	background: rgba(225, 29, 46, 0.14);
	color: #ff9da5;
	font: inherit;
	cursor: pointer;
}

.threat-widget-form input[type="file"]::file-selector-button:hover {
	background: rgba(225, 29, 46, 0.28);
	color: #fff;
}

.threat-widget-form label,
.page-map-editor .map-editor-panel label[for] {
	display: block;
	margin-bottom: 5px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--muted);
}

.page-map-editor .map-editor-panel .btn,
.threat-widget-form .btn {
	min-height: 36px;
	padding: 8px 12px;
	font-size: 12px;
}

.page-map-editor .map-editor-panel form > div > div:last-child,
.threat-widget-actions {
	align-items: center;
}

.threat-widget-grid .threat-widget-form {
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.2);
}

.threat-widget-header,
.threat-widget-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
}

.threat-widget-id {
	color: var(--accent-yellow);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.threat-delete-button {
	border-color: rgba(225, 29, 46, 0.65);
	color: #ff8f99;
}

.threat-delete-button:hover,
.threat-delete-button:focus-visible {
	background: rgba(225, 29, 46, 0.2);
	border-color: var(--accent-red);
	color: #fff;
}

.threat-widget-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.threat-widget-fields > div:first-child {
	grid-column: 1 / -1;
}

.threat-widget-image-box {
	display: grid;
	gap: 6px;
	justify-items: start;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: #080808;
}

.threat-widget-image-box img,
.threat-widget-image-box video {
	width: 100%;
	height: 110px;
	object-fit: contain;
	border-radius: 8px;
	background: #050505;
}

.threat-widget-image-box-empty {
	min-height: 78px;
	align-content: center;
}

.threat-widget-image-box p {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.threat-remove-image {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border: 1px solid rgba(225, 29, 46, 0.55);
	border-radius: 8px;
	background: rgba(225, 29, 46, 0.12);
	color: #ff9da5;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
}

.threat-remove-image:hover,
.threat-remove-image:has(input:checked) {
	background: rgba(225, 29, 46, 0.28);
	border-color: var(--accent-red);
	color: #fff;
}

.threat-widget-upload {
	display: grid;
	gap: 6px;
}

.location-create-widget,
.location-list-widget {
	width: min(100%, 1100px);
	box-sizing: border-box;
	background: rgba(10, 10, 10, 0.85);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 20px;
	box-shadow: var(--shadow);
}

.location-list-widget {
	margin-top: 20px;
}

.location-widget-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.location-widget-heading p {
	margin: 4px 0 0;
	color: var(--muted);
	font-size: 13px;
}

.location-widget-form {
	display: grid;
	gap: 12px;
}

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

.location-item-widget {
	min-width: 0;
	padding: 14px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.22);
}

.location-primary-fields {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}

.location-coordinate-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.location-wide-field {
	display: grid;
	gap: 6px;
}

.location-widget-form label {
	display: block;
	margin-bottom: 5px;
	font-size: 11px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--muted);
}

.location-widget-form input,
.location-widget-form textarea,
.location-widget-form select {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 10px;
	background: #080808;
	color: var(--ink);
	font-family: var(--font-body);
}

.location-widget-form textarea {
	min-height: 86px;
	resize: vertical;
}

.location-widget-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	flex-wrap: wrap;
}

@media (min-width: 1140px) {
    .form-card-expanded {
        width: 210%;
        max-width: 540px;
    }
}

.field-hint {
	margin-top: 6px;
	font-size: 12px;
	color: var(--muted);
}

.image-preview {
	display: none;
	margin-top: 10px;
}

.image-preview.active {
	display: grid;
}

.image-preview img {
	width: 100%;
	max-width: 240px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.15);
}

.alert {
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(225, 29, 46, 0.15);
	border: 1px solid rgba(225, 29, 46, 0.4);
	color: #fff;
}

.alert.success {
	background: rgba(34, 197, 94, 0.2);
	border-color: rgba(34, 197, 94, 0.5);
}

.read-check {
	display: inline-block;
	margin-left: 8px;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(34, 197, 94, 0.18);
	border: 1px solid rgba(34, 197, 94, 0.4);
	font-size: 12px;
	color: #fff;
}

.danger-popup {
	position: fixed;
	inset: 0;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.8);
	z-index: 20000;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.danger-popup.active {
	opacity: 1;
	pointer-events: auto;
}

.danger-card {
	background: #0b0b0b;
	padding: 32px;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	max-width: 420px;
}

.danger-card h3 {
	font-family: var(--font-display);
	font-size: 40px;
	color: var(--accent-red);
	margin: 0 0 12px;
}

.error-popup .danger-card h3 {
	color: var(--accent-yellow);
}

.site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	padding: 24px 20px 30px;
	background: rgba(5, 5, 5, 0.95);
	margin-top: auto;
}

.footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	color: var(--muted);
	font-size: 14px;
}

.footer-links {
	display: flex;
	gap: 16px;
	margin-left: auto;
	justify-content: flex-end;
	flex-wrap: wrap;
	text-align: right;
}

.fade-in {
	opacity: 0;
	transform: translateY(16px);
	animation: rise 0.6s ease forwards;
}

.fade-in.delay-1 {
	animation-delay: 0.1s;
}

.fade-in.delay-2 {
	animation-delay: 0.2s;
}

@keyframes rise {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 960px) {
	.header-inner {
		flex-wrap: wrap;
		max-width: none;
		width: 100%;
	}

	.site-nav {
		order: 3;
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
		background: rgba(8, 8, 8, 0.98);
		padding: 16px;
		border-radius: 16px;
		display: none;
	}

	.site-nav.open {
		display: flex;
	}

	.nav-actions {
		margin-left: auto;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.entry {
		padding: 24px;
	}

	.entry-layout {
		grid-template-columns: 1fr;
	}

	.entry-images {
		margin-top: 16px;
	}

	.map-grid {
		grid-template-columns: 1fr;
	}

	.map-controls {
		width: 100%;
		grid-template-columns: 1fr;
	}

	.map-search-panel {
		min-width: 0;
	}

	.map-search-row {
		width: 100%;
	}

	#map-locate-btn {
		justify-self: stretch;
	}

	.bomb-card {
		width: 100%;
	}

	.page-map .map-grid > .bomb-card {
		height: auto;
		min-height: 0;
		grid-template-rows: none;
	}

	.page-map-editor .map-sidebar {
		height: auto;
		grid-template-rows: none;
	}

	.page-map-editor .map-editor-panel {
		max-height: none;
	}

	.threat-widget-fields {
		grid-template-columns: 1fr;
	}

	.account-filters {
		grid-template-columns: 1fr 1fr;
	}

	.account-search-field {
		grid-column: 1 / -1;
	}

	.account-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.location-widget-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.header-inner {
		gap: 12px;
		padding-left: var(--page-gutter);
		padding-right: var(--page-gutter);
	}

	.site-main {
		padding-left: var(--page-gutter);
		padding-right: var(--page-gutter);
	}

	.hero {
		gap: 28px;
	}

	.marker-card {
		padding: 24px 18px;
	}

	.entry {
		min-height: auto;
	}

	.footer-inner {
		flex-direction: row;
		align-items: center;
	}

	.footer-brand {
		min-width: 0;
	}

	.footer-links {
		min-width: 0;
		gap: 10px;
	}

	.map-search-row {
		flex-direction: row;
	}

	.map-search-row .btn {
		width: auto;
	}

	.map-search-dropdown {
		top: 104px;
	}

	.account-filters,
	.account-widget-fields {
		grid-template-columns: 1fr;
	}

	.account-filter-button,
	.account-clear-button {
		width: 100%;
		justify-content: center;
	}

	.location-primary-fields,
	.location-coordinate-fields {
		grid-template-columns: 1fr;
	}

	.location-widget-actions .btn {
		width: 100%;
		justify-content: center;
	}
}
