/* Poketech – Pixelmaler */
.pt-px-lcd { padding: 8px; }
.pt-px-grid {
	display: grid;
	grid-template-columns: repeat(16, minmax(0, 1fr));
	gap: 1px;
	background: #a7bcaf;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}
.pt-px-cell {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 0;
	border: 0;
	border-radius: 0;
	cursor: crosshair;
}
.pt-px-cell:focus-visible { outline: 2px solid var(--pt-copper); outline-offset: -2px; position: relative; z-index: 1; }
.pt-px-c0 { background: #b4c9bb; }
.pt-px-c1 { background: #7f9e92; }
.pt-px-c2 { background: #4b6b66; }
.pt-px-c3 { background: #1d3535; }

.pt-px-tools { display: flex !important; flex-direction: row !important; align-items: center; justify-content: space-between; gap: 10px; }
.pt-px-colors { display: flex; gap: 8px; }
.pt-px-color {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.pt-wrap .pt-px-color.is-on { box-shadow: 0 0 0 3px var(--pt-bg), 0 0 0 5px var(--pt-copper-light); }
.pt-px-color:focus-visible { outline: 2px solid var(--pt-copper-light); outline-offset: 4px; }

.pt-px-post {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	background: var(--pt-bg-deep);
	border: 1px solid var(--pt-copper);
	border-radius: 12px;
}
.pt-px-notice a { color: var(--pt-copper-light); }

.pt-px-gallery { display: flex; flex-direction: column; gap: 8px; }
.pt-px-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-px-thumb { position: relative; }
.pt-px-load {
	display: block;
	padding: 0;
	border: 1px solid var(--pt-line);
	border-radius: 6px;
	background: var(--pt-bg-deep);
	cursor: pointer;
	overflow: hidden;
	line-height: 0;
}
.pt-px-load img { display: block; width: 64px; height: 48px; image-rendering: pixelated; }
.pt-px-load:hover { border-color: var(--pt-copper); }
.pt-px-del {
	position: absolute;
	top: -6px;
	right: -6px;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--pt-panel);
	color: var(--pt-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pt-px-del:hover { color: var(--pt-copper-light); }
.pt-px-empty { margin: 0; font-family: var(--pt-font-lcd); font-size: 18px; color: var(--pt-muted); }
