html, body {
	--location-panel-font-size: 14px;
	--admin-font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
	margin: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #061225;
	font-family: Georgia, serif;
}

#map {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

#info {
	display: none;
	position: fixed;
	top: 14px;
	left: 14px;
	z-index: 999;
	color: #eaf9ff;
	background: rgba(6, 18, 37, 0.78);
	border: 1px solid rgba(234, 249, 255, 0.25);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 14px;
	letter-spacing: 0.03em;
	backdrop-filter: blur(4px);
}

body.show-info #info {
	display: block;
}

#admin-panel {
	position: fixed;
	top: 14px;
	right: 14px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	width: min(392px, calc(100vw - 28px));
	color: #eaf9ff;
	background: rgba(6, 18, 37, 0.78);
	border: 1px solid rgba(234, 249, 255, 0.25);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 11px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	backdrop-filter: blur(4px);
	font-family: var(--admin-font-family);
}

body.is-playing #admin-panel {
	display: none;
}

body.is-playing,
body.is-playing * {
	cursor: none !important;
}

#play-animation,
#stop-animation,
#export-video,
#jump-start,
#jump-end,
#jump-next,
#apply-start-zoom,
#apply-end-zoom {
	cursor: pointer;
	color: #ffffff;
	border-radius: 6px;
	font-family: var(--admin-font-family);
	text-transform: uppercase;
}

#play-animation {
	background: #ff3b30;
	border: 1px solid rgba(255, 255, 255, 0.45);
	padding: 6px 12px;
	font-size: 12px;
	letter-spacing: 0.08em;
}

#stop-animation {
	background: #0b172e;
	border: 1px solid rgba(255, 255, 255, 0.45);
	padding: 6px 12px;
	font-size: 12px;
	letter-spacing: 0.08em;
}

#export-video {
	background: #1b4f3a;
	border: 1px solid rgba(255, 255, 255, 0.45);
	padding: 6px 12px;
	font-size: 12px;
	letter-spacing: 0.08em;
}

#jump-start,
#jump-end,
#jump-next {
	background: #0f274e;
	border: 1px solid rgba(255, 255, 255, 0.35);
	padding: 5px 8px;
	font-size: 11px;
	letter-spacing: 0.06em;
}

#apply-start-zoom,
#apply-end-zoom {
	background: #173563;
	border: 1px solid rgba(255, 255, 255, 0.35);
	padding: 4px 7px;
	font-size: 10px;
	letter-spacing: 0.05em;
}

#play-animation:disabled,
#stop-animation:disabled,
#export-video:disabled,
#jump-start:disabled,
#jump-end:disabled,
#jump-next:disabled,
#apply-start-zoom:disabled,
#apply-end-zoom:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.admin-row {
	display: grid;
	grid-template-columns: 84px minmax(110px, 1fr) 52px auto;
	align-items: center;
	column-gap: 6px;
	width: 100%;
}

.admin-row > label {
	white-space: nowrap;
	text-align: left;
	font-size: 10px;
}

.admin-row > span {
	text-align: right;
	justify-self: end;
	white-space: nowrap;
	font-size: 10px;
}

.admin-row > input[type="range"] {
	width: 100%;
	margin: 0;
}

.admin-row > input[type="color"] {
	width: 100%;
	height: 24px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	background: transparent;
}

.admin-row > input[type="text"],
.admin-row > select {
	width: 100%;
	height: 24px;
	padding: 2px 6px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	background: rgba(11, 23, 46, 0.78);
	color: #eaf9ff;
	font-family: var(--admin-font-family);
	font-size: 10px;
	box-sizing: border-box;
}

.admin-row > button {
	justify-self: end;
}

.admin-header-row {
	grid-template-columns: 1fr auto auto auto;
}

.admin-header-row > span {
	justify-self: start;
	font-weight: 700;
}

.admin-jump-row {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-jump-row > button {
	width: 100%;
	justify-self: stretch;
}

.admin-tabs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
}

.admin-tab-button {
	cursor: pointer;
	background: #0b172e;
	color: #eaf9ff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 6px;
	padding: 5px 6px;
	font-family: var(--admin-font-family);
	font-size: 9px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.admin-tab-button.active {
	background: #173563;
	border-color: rgba(255, 255, 255, 0.5);
	color: #ffffff;
}

.admin-tab-panel {
	display: none;
	flex-direction: column;
	gap: 8px;
}

.admin-tab-panel.active {
	display: flex;
}

.admin-toggle-row {
	grid-template-columns: 1fr auto;
}

.admin-toggle-row > label {
	text-align: left;
}

.admin-toggle-row > input[type="checkbox"] {
	width: 18px;
	height: 18px;
}

.admin-note {
	font-size: 10px;
	line-height: 1.4;
	opacity: 0.82;
	padding: 2px 0;
}

.admin-stages-block {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 4px;
	padding-top: 8px;
	border-top: 1px solid rgba(234, 249, 255, 0.18);
	text-transform: none;
	letter-spacing: 0.02em;
}

#admin-stages-title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	opacity: 0.95;
}

#admin-stages-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 190px;
	overflow-y: auto;
	padding-right: 4px;
}

.admin-stage-item {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 12px;
	line-height: 1.25;
}

.admin-stage-index {
	min-width: 26px;
	color: rgba(234, 249, 255, 0.7);
	font-variant-numeric: tabular-nums;
}

.admin-stage-name {
	color: #eaf9ff;
	word-break: break-word;
}

.admin-stage-empty {
	font-size: 12px;
	opacity: 0.75;
}

#world-progress-overlay {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	z-index: 950;
	display: none;
	width: min(92vw, 920px);
	padding: 8px 16px;
	border-radius: 10px;
	font-size: clamp(24px, 3.5vw, 46px);
	font-weight: 700;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	letter-spacing: 0.08em;
	line-height: 1;
	color: #ffffff;
	background: transparent;
	text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
	backdrop-filter: none;
	pointer-events: none;
	user-select: none;
}

#world-progress-overlay {
	display: none;
	align-items: baseline;
	justify-content: center;
	gap: 14px;
	white-space: nowrap;
}

#world-progress-label {
	letter-spacing: 0.12em;
	opacity: 0.92;
}

#world-progress-value {
	font-variant-numeric: tabular-nums;
}

body.show-world-progress #world-progress-overlay {
	display: flex;
}

.custom-pin-wrapper {
	position: relative;
	width: 40px;
	height: 56px;
	background: transparent;
	border: 0;
}

.custom-pin {
	position: relative;
	width: 40px;
	height: 56px;
	filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.custom-pin::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 40px;
	height: 40px;
	background: #ff3b30;
	border: 2px solid #ffffff;
	border-radius: 50%;
	box-sizing: border-box;
	z-index: 1;
}

.custom-pin::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 27px;
	width: 18px;
	height: 18px;
	background: #ff3b30;
	border-left: 2px solid #ffffff;
	border-bottom: 2px solid #ffffff;
	box-sizing: border-box;
	transform: translateX(-50%) rotate(-45deg);
	border-bottom-left-radius: 3px;
	z-index: 0;
}

.custom-pin-inner {
	position: absolute;
	top: 6px;
	left: 6px;
	width: 28px;
	height: 28px;
	background: #ffffff;
	border-radius: 50%;
	overflow: hidden;
	z-index: 2;
}

.custom-pin img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 28px;
	height: 28px;
	object-fit: cover;
	z-index: 3;
	transform: translate(-50%, -50%) scale(1.12);
}

.location-panel-wrapper {
	background: transparent;
	border: 0;
}

.location-panel-label {
	background: rgba(6, 18, 37, 0.92);
	color: #eaf9ff;
	border: 1px solid rgba(234, 249, 255, 0.28);
	border-radius: 8px;
	padding: 7px 10px;
	font-size: var(--location-panel-font-size);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-sizing: border-box;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(4px);
}

.progress-step-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	height: 28px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(6, 18, 37, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.35);
}

.progress-step-badge-preview {
	opacity: 0.68;
	background: rgba(6, 18, 37, 0.68);
	border-color: rgba(255, 255, 255, 0.3);
}

.map-overlay-icon.location-fade-enter {
	opacity: 0;
	transition: opacity 480ms ease;
}

.map-overlay-icon.location-fade-enter.location-fade-visible {
	opacity: 1;
}

.boat-marker-wrapper {
	background: transparent;
	border: 0;
}

.boat-marker-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	object-fit: contain;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

#admin-drag-handle {
	cursor: grab;
	user-select: none;
}

#admin-drag-handle:active {
	cursor: grabbing;
}
