/* ============================================================
   ROOM EDITOR CANVAS
   ============================================================

   Game mode deliberately uses a cropped 426 × 240 viewport.

   Room editor mode displays the complete 27 × 15 tile grid:

   27 × 16 = 432 logical pixels
   15 × 16 = 240 logical pixels
   ============================================================ */

:root {
	--room-editor-width-2x: 864px;
	--room-editor-height-2x: 480px;

	--room-editor-width-3x: 1296px;
	--room-editor-height-3x: 720px;
}


body.editor-mode .application-workspace {
	grid-template-columns:
		minmax(
			var(--editor-left-panel-min-width),
			1fr
		)
		var(--room-editor-width-2x)
		minmax(
			var(--editor-right-panel-min-width),
			1fr
		);
}


body.editor-mode .editor-centre {
	grid-template-rows:
		var(--room-editor-height-2x)
		calc(
			var(--navigation-header-height) +
			var(--navigation-height)
		);
}


body.editor-mode .game-screen,
body.editor-mode #game {
	width:
		var(--room-editor-width-2x);

	height:
		var(--room-editor-height-2x);
}


@media
	(min-width: 1780px)
	and
	(min-height: 820px) {

	body.editor-mode .application-workspace {
		grid-template-columns:
			minmax(
				var(--editor-left-panel-min-width),
				1fr
			)
			var(--room-editor-width-3x)
			minmax(
				var(--editor-right-panel-min-width),
				1fr
			);
	}

	body.editor-mode .editor-centre {
		grid-template-rows:
			var(--room-editor-height-3x)
			calc(
				var(--navigation-header-height) +
				var(--navigation-height)
			);
	}

	body.editor-mode .game-screen,
	body.editor-mode #game {
		width:
			var(--room-editor-width-3x);

		height:
			var(--room-editor-height-3x);
	}

}

/* ============================================================
   ROOM EDITOR INPUT
   ============================================================ */

body.editor-mode #game {
	cursor: crosshair;
	touch-action: none;
	user-select: none;
}

/* ============================================================
   COLLISION TILE PALETTE
   ============================================================ */

.room-tile-palette-panel {
	padding: 12px;
}


.room-tile-palette-panel__header {
	margin-bottom: 8px;

	color:
		#7ed7e8;

	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}


.room-tile-palette {
	display: grid;

	grid-template-columns:
		repeat(4, minmax(0, 1fr));

	gap: 5px;
}


.room-tile-palette__button {
	position: relative;

	display: grid;
	place-items: center;

	min-width: 0;
	height: 42px;

	padding: 4px;

	border:
		1px solid
		rgba(126, 215, 232, 0.24);

	background:
		#07151a;

	color:
		#7ed7e8;

	cursor: pointer;
}


.room-tile-palette__button:hover {
	border-color:
		rgba(126, 215, 232, 0.7);
}


.room-tile-palette__button.is-selected {
	border-color:
		#7ed7e8;

	box-shadow:
		inset 0 0 0 1px
		#7ed7e8;
}


.room-tile-palette__button:focus-visible {
	outline:
		1px solid
		#ffffff;

	outline-offset: 2px;
}


.room-tile-palette__preview {
	width: 32px;
	height: 32px;

	image-rendering: pixelated;
	image-rendering: crisp-edges;

	pointer-events: none;
}


.room-tile-palette__symbol {
	position: absolute;

	right: 2px;
	bottom: 1px;

	color:
		rgba(255, 255, 255, 0.72);

	font: 7px monospace;

	pointer-events: none;
}


.room-tile-palette-selection {
	margin-top: 8px;

	min-height: 14px;

	color:
		#4d8792;

	font-size: 10px;
	line-height: 1.4;
}

/* ============================================================
   ROOM AUTHORING CONTEXT
   ============================================================ */

.room-editor-authoring {
	border-bottom:
		1px solid
		rgba(126, 215, 232, 0.18);
}


.room-editor-authoring__header {
	padding:
		12px 12px 8px;

	color:
		#7ed7e8;

	font-size:
		12px;

	text-transform:
		uppercase;

	letter-spacing:
		0.06em;
}


.room-editor-layer-control {
	display:
		grid;

	gap:
		5px;

	padding:
		0 12px 12px;
}


.room-editor-layer-control__label {
	color:
		#4d8792;

	font-size:
		10px;

	text-transform:
		uppercase;

	letter-spacing:
		0.05em;
}


.room-editor-layer-control__select {
	width:
		100%;

	padding:
		6px 8px;

	border:
		1px solid
		rgba(126, 215, 232, 0.32);

	background:
		#07151a;

	color:
		#d7f5fb;

	font:
		inherit;

	cursor:
		pointer;
}


.room-editor-layer-control__select:focus-visible {
	outline:
		1px solid
		#7ed7e8;

	outline-offset:
		2px;
}


/* ============================================================
   PHYSICS OBJECT PALETTE
   ============================================================ */

.room-physics-palette-panel {
	padding:
		12px;

	border-top:
		1px solid
		rgba(126, 215, 232, 0.12);
}


.room-physics-palette-panel__header {
	margin-bottom:
		8px;

	color:
		#7ed7e8;

	font-size:
		12px;

	text-transform:
		uppercase;

	letter-spacing:
		0.06em;
}


.room-physics-palette {
	display:
		grid;

	grid-template-columns:
		repeat(3, minmax(0, 1fr));

	gap:
		5px;
}


.room-physics-palette__button {
	display:
		grid;

	grid-template-rows:
		40px auto;

	align-items:
		center;

	min-width:
		0;

	padding:
		5px 3px;

	border:
		1px solid
		rgba(126, 215, 232, 0.24);

	background:
		#07151a;

	color:
		#7ed7e8;

	cursor:
		pointer;
}


.room-physics-palette__button:hover {
	border-color:
		rgba(126, 215, 232, 0.7);
}


.room-physics-palette__button.is-selected {
	border-color:
		#7ed7e8;

	box-shadow:
		inset 0 0 0 1px
		#7ed7e8;
}


.room-physics-palette__button:focus-visible {
	outline:
		1px solid
		#ffffff;

	outline-offset:
		2px;
}


.room-physics-palette__preview {
	justify-self:
		center;

	width:
		40px;

	height:
		40px;

	image-rendering:
		pixelated;

	image-rendering:
		crisp-edges;

	pointer-events:
		none;
}


.room-physics-palette__name {
	overflow:
		hidden;

	color:
		rgba(255, 255, 255, 0.76);

	font-size:
		8px;

	line-height:
		1.2;

	text-align:
		center;

	text-overflow:
		ellipsis;

	pointer-events:
		none;
}


.room-physics-palette-selection {
	margin-top:
		8px;

	min-height:
		14px;

	color:
		#4d8792;

	font-size:
		10px;

	line-height:
		1.4;
}


/* ============================================================
   CONTEXTUAL CANVAS CURSORS
   ============================================================ */

body.editor-mode #game.room-editor-canvas--collision {
	cursor:
		crosshair;
}


body.editor-mode #game.room-editor-canvas--actors,
body.editor-mode #game.room-editor-canvas--physics-objects {
	cursor:
		crosshair;
}

.editor-inspector__input {
	width:
		100%;

	box-sizing:
		border-box;

	padding:
		5px 7px;

	border:
		1px solid
		rgba(126, 215, 232, 0.28);

	background:
		#07151a;

	color:
		#d7f5fb;

	font:
		inherit;
}


.editor-inspector__remove-button {
	width:
		100%;

	margin-top:
		6px;

	padding:
		7px 8px;

	border:
		1px solid
		rgba(240, 92, 112, 0.55);

	background:
		rgba(240, 92, 112, 0.08);

	color:
		#f05c70;

	font:
		inherit;

	cursor:
		pointer;
}


.editor-inspector__remove-button:hover {
	background:
		rgba(240, 92, 112, 0.16);
}

.editor-inspector__control-help {
	display:
		block;

	margin-top:
		3px;

	color:
		#4d8792;

	font-size:
		9px;

	line-height:
		1.35;
}

/* ============================================================
   WORLD OBJECT PALETTE
   ============================================================ */

.room-world-object-palette-panel {
	padding:
		12px;

	border-top:
		1px solid
		rgba(126, 215, 232, 0.12);
}


.room-world-object-palette-panel__header {
	margin-bottom:
		8px;

	color:
		#7ed7e8;

	font-size:
		12px;

	text-transform:
		uppercase;

	letter-spacing:
		0.06em;
}


.room-world-object-palette {
	display:
		grid;

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap:
		5px;
}


.room-world-object-palette__button {
	display:
		grid;

	grid-template-rows:
		48px auto;

	align-items:
		center;

	min-width:
		0;

	padding:
		5px 3px;

	border:
		1px solid
		rgba(126, 215, 232, 0.24);

	background:
		#07151a;

	color:
		#7ed7e8;

	cursor:
		pointer;
}


.room-world-object-palette__button:hover {
	border-color:
		rgba(126, 215, 232, 0.7);
}


.room-world-object-palette__button.is-selected {
	border-color:
		#7ed7e8;

	box-shadow:
		inset 0 0 0 1px
		#7ed7e8;
}


.room-world-object-palette__button:focus-visible {
	outline:
		1px solid
		#ffffff;

	outline-offset:
		2px;
}


.room-world-object-palette__preview {
	justify-self:
		center;

	width:
		48px;

	height:
		48px;

	image-rendering:
		pixelated;

	image-rendering:
		crisp-edges;

	pointer-events:
		none;
}


.room-world-object-palette__name {
	overflow:
		hidden;

	color:
		rgba(255, 255, 255, 0.76);

	font-size:
		8px;

	line-height:
		1.2;

	text-align:
		center;

	text-overflow:
		ellipsis;

	pointer-events:
		none;
}


.room-world-object-palette-selection {
	margin-top:
		8px;

	min-height:
		14px;

	color:
		#4d8792;

	font-size:
		10px;

	line-height:
		1.4;
}


body.editor-mode #game.room-editor-canvas--world-objects {
	cursor:
		crosshair;
}


/* ============================================================
   CHARACTER PALETTE
   ============================================================ */

.room-character-palette-panel {
	padding:
		12px;

	border-top:
		1px solid
		rgba(126, 215, 232, 0.12);
}


.room-character-palette-panel__header {
	margin-bottom:
		8px;

	color:
		#7ed7e8;

	font-size:
		12px;

	text-transform:
		uppercase;

	letter-spacing:
		0.06em;
}


.room-character-palette {
	display:
		grid;

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap:
		5px;
}


.room-character-palette__button {
	display:
		grid;

	grid-template-rows:
		48px auto;

	align-items:
		center;

	min-width:
		0;

	padding:
		5px 3px;

	border:
		1px solid
		rgba(126, 215, 232, 0.24);

	background:
		#07151a;

	color:
		#7ed7e8;

	cursor:
		pointer;
}


.room-character-palette__button:hover {
	border-color:
		rgba(126, 215, 232, 0.7);
}


.room-character-palette__button.is-selected {
	border-color:
		#7ed7e8;

	box-shadow:
		inset 0 0 0 1px
		#7ed7e8;
}


.room-character-palette__button:focus-visible {
	outline:
		1px solid
		#ffffff;

	outline-offset:
		2px;
}


.room-character-palette__preview {
	justify-self:
		center;

	width:
		48px;

	height:
		48px;

	image-rendering:
		pixelated;

	image-rendering:
		crisp-edges;

	pointer-events:
		none;
}


.room-character-palette__name {
	overflow:
		hidden;

	color:
		rgba(255, 255, 255, 0.76);

	font-size:
		8px;

	line-height:
		1.2;

	text-align:
		center;

	text-overflow:
		ellipsis;

	pointer-events:
		none;
}


.room-character-palette-selection {
	margin-top:
		8px;

	min-height:
		14px;

	color:
		#4d8792;

	font-size:
		10px;

	line-height:
		1.4;
}


body.editor-mode #game.room-editor-canvas--characters {
	cursor:
		crosshair;
}

.room-emitter-palette__icon {
	display: block;

	width: 32px;
	height: 32px;

	object-fit: contain;

	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

.room-emitter-palette {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.room-emitter-palette__button {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;

	min-width: 0;
	padding: 7px 5px;

	border: 1px solid #315963;
	background: #07151a;
	color: #b8dce3;

	cursor: pointer;
}

.room-emitter-palette__button:hover,
.room-emitter-palette__button.is-selected {
	border-color: #7ed7e8;
	color: #ffffff;
}

.room-emitter-palette__button.is-selected {
	background: #12303a;
}

.room-emitter-palette__icon {
	display: block;
	width: 32px;
	height: 32px;
	object-fit: contain;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}

.room-emitter-palette__name {
	max-width: 100%;
	font-size: 10px;
	line-height: 1.2;
	text-align: center;
}

.room-emitter-palette-selection {
	margin-top: 8px;
	font-size: 10px;
	color: #7fa9b2;
}

/* ============================================================
   Emitter inspector controls
   ============================================================ */

.editor-inspector__control--emitter {
	gap: 6px;
}

.editor-inspector__emitter-heading {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.editor-inspector__emitter-source {
	font-size: 0.72rem;
	opacity: 0.65;
	white-space: nowrap;
}

.editor-inspector__slider-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 72px auto;
	align-items: center;
	gap: 7px;
}

.editor-inspector__slider-row:has(
	.editor-inspector__slider-bound
) {
	grid-template-columns: 30px minmax(0, 1fr) 72px auto;
}

.editor-inspector__slider-bound,
.editor-inspector__slider-suffix {
	font-size: 0.75rem;
	opacity: 0.7;
}

.editor-inspector__range {
	width: 100%;
	min-width: 0;
}

.editor-inspector__input--compact {
	width: 100%;
	min-width: 0;
}

.editor-inspector__emitter-reset {
	justify-self: start;
	padding: 4px 7px;
	font: inherit;
	font-size: 0.72rem;
	cursor: pointer;
}

.editor-inspector__emitter-reset:disabled {
	cursor: default;
	opacity: 0.4;
}

/* ============================================================
   FRONT ART ASSET BROWSER
   ============================================================ */

.room-art-asset-panel {
	padding:
		12px;

	border-top:
		1px solid
		rgba(126, 215, 232, 0.12);
}


.room-art-asset-panel__header {
	display:
		flex;

	align-items:
		center;

	justify-content:
		space-between;

	gap:
		8px;

	margin-bottom:
		8px;
}


.room-art-asset-panel__title {
	color:
		#7ed7e8;

	font-size:
		12px;

	text-transform:
		uppercase;

	letter-spacing:
		0.06em;
}


.room-art-asset-panel__refresh {
	padding:
		4px 7px;

	border:
		1px solid
		rgba(126, 215, 232, 0.32);

	background:
		#07151a;

	color:
		#7fa9b2;

	font:
		inherit;

	font-size:
		9px;

	cursor:
		pointer;
}


.room-art-asset-panel__refresh:hover:not(:disabled) {
	border-color:
		#7ed7e8;

	color:
		#ffffff;
}


.room-art-asset-panel__refresh:disabled {
	opacity:
		0.45;

	cursor:
		default;
}


.room-art-asset-status {
	min-height:
		14px;

	margin-bottom:
		8px;

	color:
		#4d8792;

	font-size:
		9px;

	line-height:
		1.4;
}


.room-art-asset-status.is-loading {
	color:
		#7ed7e8;
}


.room-art-asset-status.has-error {
	color:
		#f05c70;
}


.room-art-asset-browser {
	display:
		grid;

	gap:
		10px;
}


.room-art-asset-folders {
	display:
		grid;

	gap:
		2px;

	max-height:
		170px;

	padding:
		4px;

	overflow-y:
		auto;

	border:
		1px solid
		rgba(126, 215, 232, 0.18);

	background:
		#061116;
}


.room-art-folder-row {
	display:
		grid;

	grid-template-columns:
		18px minmax(0, 1fr);

	align-items:
		center;

	min-width:
		0;

	padding-left:
		calc(
			var(--art-folder-depth, 0) *
			9px
		);
}


.room-art-folder-row__toggle,
.room-art-folder-row__toggle-spacer {
	display:
		grid;

	place-items:
		center;

	width:
		18px;

	height:
		22px;
}


.room-art-folder-row__toggle {
	padding:
		0;

	border:
		0;

	background:
		transparent;

	color:
		#4d8792;

	font:
		11px var(--font-mono);

	cursor:
		pointer;
}


.room-art-folder-row__toggle:hover {
	color:
		#7ed7e8;
}


.room-art-folder-row__select {
	display:
		grid;

	grid-template-columns:
		minmax(0, 1fr)
		auto;

	gap:
		6px;

	align-items:
		center;

	min-width:
		0;

	padding:
		4px 5px;

	border:
		1px solid
		transparent;

	background:
		transparent;

	color:
		#7fa9b2;

	font:
		10px var(--font-mono);

	text-align:
		left;

	cursor:
		pointer;
}


.room-art-folder-row__select:hover {
	color:
		#d7f5fb;

	background:
		rgba(126, 215, 232, 0.05);
}


.room-art-folder-row__select.is-selected {
	border-color:
		rgba(126, 215, 232, 0.35);

	background:
		#102a33;

	color:
		#ffffff;
}


.room-art-folder-row__label {
	overflow:
		hidden;

	text-overflow:
		ellipsis;

	white-space:
		nowrap;
}


.room-art-folder-row__count {
	color:
		#4d8792;

	font-size:
		8px;
}


.room-art-asset-grid {
	display:
		grid;

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap:
		6px;

	max-height:
		310px;

	overflow-y:
		auto;
}


.room-art-asset-card {
	display:
		grid;

	grid-template-rows:
		72px auto auto;

	gap:
		4px;

	align-items:
		center;

	min-width:
		0;

	padding:
		5px;

	border:
		1px solid
		rgba(126, 215, 232, 0.24);

	background:
		#07151a;

	color:
		#7fa9b2;

	cursor:
		pointer;
}


.room-art-asset-card:hover {
	border-color:
		rgba(126, 215, 232, 0.7);
}


.room-art-asset-card.is-selected {
	border-color:
		#7ed7e8;

	background:
		#12303a;

	box-shadow:
		inset 0 0 0 1px
		#7ed7e8;
}


.room-art-asset-card__preview,
.room-art-asset-selection__preview {
	position:
		relative;

	display:
		grid;

	place-items:
		center;

	overflow:
		hidden;

	background-color:
		#0b1b21;

	background-image:
		linear-gradient(
			45deg,
			rgba(126, 215, 232, 0.08) 25%,
			transparent 25%
		),
		linear-gradient(
			-45deg,
			rgba(126, 215, 232, 0.08) 25%,
			transparent 25%
		),
		linear-gradient(
			45deg,
			transparent 75%,
			rgba(126, 215, 232, 0.08) 75%
		),
		linear-gradient(
			-45deg,
			transparent 75%,
			rgba(126, 215, 232, 0.08) 75%
		);

	background-size:
		8px 8px;

	background-position:
		0 0,
		0 4px,
		4px -4px,
		-4px 0;
}


.room-art-asset-card__preview {
	width:
		100%;

	height:
		72px;
}


.room-art-asset-card__image {
	display:
		block;

	max-width:
		64px;

	max-height:
		64px;

	object-fit:
		contain;

	image-rendering:
		pixelated;

	image-rendering:
		crisp-edges;

	pointer-events:
		none;
}


.room-art-asset-card.has-error
.room-art-asset-card__preview::after {
	content:
		'Missing';

	color:
		#f05c70;

	font-size:
		9px;
}


.room-art-asset-card__name {
	overflow:
		hidden;

	color:
		rgba(255, 255, 255, 0.82);

	font-size:
		9px;

	line-height:
		1.2;

	text-align:
		center;

	text-overflow:
		ellipsis;

	white-space:
		nowrap;
}


.room-art-asset-card__dimensions {
	color:
		#4d8792;

	font:
		8px var(--font-mono);

	text-align:
		center;
}


.room-art-asset-browser__empty {
	grid-column:
		1 / -1;

	margin:
		0;

	padding:
		9px;

	color:
		#4d8792;

	font:
		9px/1.4 var(--font-mono);
}


.room-art-asset-selection {
	display:
		grid;

	grid-template-columns:
		52px minmax(0, 1fr);

	gap:
		8px;

	align-items:
		center;

	margin-top:
		10px;

	padding-top:
		10px;

	border-top:
		1px solid
		rgba(126, 215, 232, 0.14);
}


.room-art-asset-selection__preview {
	width:
		52px;

	height:
		52px;

	border:
		1px solid
		rgba(126, 215, 232, 0.22);
}


.room-art-asset-selection__image {
	display:
		block;

	max-width:
		48px;

	max-height:
		48px;

	object-fit:
		contain;

	image-rendering:
		pixelated;

	image-rendering:
		crisp-edges;
}


.room-art-asset-selection__details {
	display:
		grid;

	gap:
		3px;

	min-width:
		0;

	color:
		#7fa9b2;

	font:
		9px/1.3 var(--font-mono);
}


.room-art-asset-selection__name {
	overflow:
		hidden;

	color:
		#d7f5fb;

	font-family:
		var(--font-editor);

	font-size:
		11px;

	font-weight:
		normal;

	text-overflow:
		ellipsis;

	white-space:
		nowrap;
}


.room-art-asset-selection__details code {
	overflow:
		hidden;

	color:
		#4d8792;

	font:
		8px var(--font-mono);

	text-overflow:
		ellipsis;

	white-space:
		nowrap;
}


.room-art-asset-selection__empty {
	grid-column:
		1 / -1;

	margin:
		0;

	color:
		#4d8792;

	font:
		9px/1.4 var(--font-mono);
}


/* ============================================================
   ROOM ART PLACEMENT
   ============================================================ */

body.editor-mode
#game.room-editor-canvas--parallax,
body.editor-mode
#game.room-editor-canvas--behind-art,
body.editor-mode
#game.room-editor-canvas--near-art,
body.editor-mode
#game.room-editor-canvas--front-art,
body.editor-mode
#game.room-editor-canvas--occlusion-art {
	cursor:
		crosshair;
}



/* ============================================================
   ROOM BACKGROUND METADATA
   ============================================================ */

.editor-room-background-current {
	display: grid;
	gap: 6px;

	padding: 6px;

	border:
		1px solid
		rgba(126, 215, 232, 0.18);

	background:
		#061116;

	color:
		#4d8792;

	font:
		9px/1.4 var(--font-mono);
}


.editor-room-background-current__image {
	display: block;

	width: 100%;

	aspect-ratio:
		432 / 240;

	object-fit:
		contain;

	background:
		#0b1b21;

	image-rendering:
		pixelated;

	image-rendering:
		crisp-edges;
}


.editor-room-background-current code {
	overflow: hidden;

	color:
		#7fa9b2;

	font:
		8px var(--font-mono);

	text-overflow:
		ellipsis;

	white-space:
		nowrap;
}


.editor-room-background-grid {
	display: grid;

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap: 6px;

	max-height: 300px;

	overflow-y: auto;
}


.editor-room-background-card {
	display: grid;

	grid-template-rows:
		48px
		auto
		auto;

	gap: 3px;

	min-width: 0;

	padding: 4px;

	border:
		1px solid
		rgba(126, 215, 232, 0.24);

	background:
		#07151a;

	color:
		#7fa9b2;

	cursor:
		pointer;
}


.editor-room-background-card:hover:not(:disabled) {
	border-color:
		#7ed7e8;
}


.editor-room-background-card.is-selected {
	border-color:
		#7ed7e8;

	background:
		#12303a;

	box-shadow:
		inset 0 0 0 1px
		#7ed7e8;
}


.editor-room-background-card:disabled {
	border-color:
		rgba(226, 170, 79, 0.4);

	opacity: 0.5;

	cursor:
		not-allowed;
}


.editor-room-background-card img {
	display: block;

	width: 100%;
	height: 48px;

	object-fit:
		contain;

	background:
		#0b1b21;

	image-rendering:
		pixelated;

	image-rendering:
		crisp-edges;
}


.editor-room-background-card span {
	overflow: hidden;

	color:
		#d7f5fb;

	font-size: 9px;

	text-align:
		center;

	text-overflow:
		ellipsis;

	white-space:
		nowrap;
}


.editor-room-background-card small {
	color:
		#4d8792;

	font:
		8px var(--font-mono);

	text-align:
		center;
}


.editor-room-background-grid__empty {
	grid-column:
		1 / -1;

	margin: 0;

	padding: 8px;

	color:
		#4d8792;

	font:
		9px/1.4 var(--font-mono);
}


.editor-room-background-clear {
	width: 100%;

	padding: 6px 8px;

	border:
		1px solid
		rgba(240, 92, 112, 0.5);

	background:
		rgba(240, 92, 112, 0.08);

	color:
		#f05c70;

	font:
		inherit;

	font-size: 9px;

	cursor:
		pointer;
}


.editor-room-background-clear:hover {
	background:
		rgba(240, 92, 112, 0.16);
}


/* ============================================================
   ROOM RUNTIME TILE VISIBILITY
   ============================================================ */

.editor-room-collision-visibility {
	display:
		grid;

	grid-template-columns:
		auto minmax(0, 1fr);

	gap:
		8px;

	align-items:
		center;

	padding:
		7px 8px;

	border:
		1px solid
		rgba(126, 215, 232, 0.24);

	background:
		#07151a;

	color:
		#d7f5fb;

	font-size:
		11px;

	cursor:
		pointer;
}

.editor-room-collision-visibility:hover {
	border-color:
		rgba(126, 215, 232, 0.7);
}

.editor-room-collision-visibility input {
	margin:
		0;

	accent-color:
		#7ed7e8;

	cursor:
		pointer;
}

.editor-room-collision-visibility:focus-within {
	outline:
		1px solid
		#7ed7e8;

	outline-offset:
		2px;
}

/* ============================================================
   ROOM EDITOR VISIBILITY AND SHORTCUTS
   ============================================================ */

.room-editor-visibility {
	display:
		grid;

	gap:
		8px;

	padding:
		0 12px 12px;
}


.room-editor-visibility__header {
	color:
		#4d8792;

	font-size:
		10px;

	text-transform:
		uppercase;

	letter-spacing:
		0.05em;
}


.room-editor-visibility__grid {
	display:
		grid;

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap:
		5px;
}


.room-editor-visibility__option {
	display:
		grid;

	grid-template-columns:
		auto minmax(0, 1fr);

	gap:
		6px;

	align-items:
		center;

	min-width:
		0;

	padding:
		5px 6px;

	border:
		1px solid
		rgba(126, 215, 232, 0.2);

	background:
		#07151a;

	color:
		#7fa9b2;

	font-size:
		9px;

	cursor:
		pointer;
}


.room-editor-visibility__option:hover {
	border-color:
		rgba(126, 215, 232, 0.62);

	color:
		#d7f5fb;
}


.room-editor-visibility__option:focus-within {
	outline:
		1px solid
		#7ed7e8;

	outline-offset:
		1px;
}


.room-editor-visibility__option input {
	margin:
		0;

	accent-color:
		#7ed7e8;

	cursor:
		pointer;
}


.room-editor-visibility__option span {
	overflow:
		hidden;

	text-overflow:
		ellipsis;

	white-space:
		nowrap;
}


.room-editor-visibility__option kbd {
	justify-self:
		end;
}


.room-editor-visibility__option--wide {
	grid-column:
		1 / -1;

	grid-template-columns:
		auto minmax(0, 1fr) auto;
}


.room-editor-shortcuts {
	display:
		flex;

	flex-wrap:
		wrap;

	gap:
		4px 6px;

	align-items:
		center;

	margin:
		0;

	color:
		#4d8792;

	font:
		8px/1.45 var(--font-mono);
}


.room-editor-shortcuts kbd,
.room-editor-visibility kbd {
	padding:
		1px 4px;

	border:
		1px solid
		rgba(126, 215, 232, 0.24);

	background:
		#061116;

	color:
		#7fa9b2;

	font:
		8px/1.35 var(--font-mono);
}


/* ============================================================
   MUTABLE TERRAIN AUTHORING
   ============================================================ */

.room-parallax-context {
	display: grid;
	gap: 5px;
	margin-bottom: 10px;
	padding: 8px;
	border: 1px solid rgba(126, 215, 232, 0.18);
	background: #061116;
	font: 9px/1.4 var(--font-mono);
}

.room-parallax-context[hidden] {
	display: none;
}

.room-parallax-context__layer-control {
	display: grid;
	gap: 4px;
	color: #4d8792;
}

.room-parallax-context__layer-control .room-editor-layer-control__select {
	margin: 0;
}


.room-parallax-context__row {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	color: #4d8792;
}

.room-parallax-context__row strong {
	color: #7ed7e8;
	font-weight: 600;
}


.room-editor-layer-note {
	margin:
		9px 0 0;

	color:
		#4d8792;

	font-size:
		9px;

	line-height:
		1.45;
}


body.editor-mode #game.room-editor-canvas--mutable-terrain {
	cursor:
		crosshair;
}

.editor-inspector__action-button {
	width:
		100%;

	margin-top:
		6px;

	padding:
		7px 8px;

	border:
		1px solid
		rgba(126, 215, 232, 0.5);

	background:
		rgba(126, 215, 232, 0.08);

	color:
		#7ed7e8;

	font:
		inherit;

	cursor:
		pointer;
}

.editor-inspector__action-button:hover {
	background:
		rgba(126, 215, 232, 0.16);
}

/* Enemy spawn zones ------------------------------------------------------ */

.room-character-palette-panel__header--zones {
	margin-top: 0.75rem;
	border-top: 1px solid rgba(126, 215, 232, 0.2);
	padding-top: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.room-enemy-spawn-zone-create {
	border: 1px solid rgba(126, 215, 232, 0.5);
	background: rgba(7, 21, 26, 0.8);
	color: #7ed7e8;
	font: inherit;
	font-size: 0.72rem;
	padding: 0.25rem 0.45rem;
	cursor: pointer;
}

.room-enemy-spawn-zone-list {
	display: grid;
	gap: 0.35rem;
	margin-top: 0.45rem;
}

.room-enemy-spawn-zone-list__button {
	width: 100%;
	border: 1px solid rgba(126, 215, 232, 0.25);
	background: rgba(7, 21, 26, 0.55);
	color: inherit;
	font: inherit;
	text-align: left;
	padding: 0.4rem 0.5rem;
	cursor: pointer;
}

.room-enemy-spawn-zone-list__button:hover,
.room-enemy-spawn-zone-list__button.is-selected {
	border-color: #7ed7e8;
	background: rgba(126, 215, 232, 0.1);
}

.room-enemy-spawn-zone-list__empty {
	margin: 0;
	font-size: 0.75rem;
	opacity: 0.7;
}
