/* The pile: every toy in one jumbled heap, tilted, overlapping, and bobbing. pile.js throws it and runs the toys. */

/* A smaller logo on this page, so the first screen is mostly pile. */
.masthead {
	padding-top: 16px;
}

.logo__letter {
	font-size: clamp(30px, 7.2vw, 100px);
	border-width: 4px;
	box-shadow: 6px 6px 0 var(--ink);
}

/* The heap. Its own stacking context keeps every piece under the fixed buttons and the game. */

.pile {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
	gap: 30px 22px;
	margin: 8px clamp(10px, 2.5vw, 34px) 40px;
	padding-top: 24px;
}

.pile.is-piled {
	display: block;
	padding: 0;
}

.pile__piece {
	--c: var(--c7);
	width: var(--w, 260px);
	max-width: calc(100vw - 24px);
	margin: 0;
	color: var(--ink);
	rotate: var(--r, -2deg);
}

.pile__piece[hidden] {
	display: none;
}

/* Until the script throws the pile the pieces wait unseen. If it never runs, they show up as a tilted heap. */
.pile.is-waiting .pile__piece {
	opacity: 0;
	animation: pile-reveal 0.3s 4s forwards;
}

@keyframes pile-reveal {
	to {
		opacity: 1;
	}
}

.pile.is-piled .pile__piece {
	position: absolute;
	left: 0;
	top: 0;
	translate: var(--x, 0px) var(--y, 0px);
	rotate: var(--r, 0deg);
	scale: var(--s, 1);
}

.pile.is-column .pile__piece {
	max-width: calc(100% - 8px);
}

.pile.is-thrown .pile__piece {
	transition:
		translate 0.9s cubic-bezier(0.22, 1.3, 0.42, 1) var(--delay, 0s),
		rotate 0.9s cubic-bezier(0.22, 1.3, 0.42, 1) var(--delay, 0s),
		scale 0.5s ease var(--delay, 0s);
}

.pile :focus-visible {
	outline: 4px dashed var(--ink);
	outline-offset: 3px;
}

/* A piece: a colored card that bobs at its own speed and swells on every beat. */

.pile__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 18px 16px 12px;
	background: var(--c);
	border: 5px solid var(--ink);
	box-shadow: 8px 8px 0 var(--ink);
	scale: calc(1 + var(--beat) * var(--punch, 0.03));
	animation: pile-bob var(--bob, 3s) ease-in-out var(--bob-delay, 0s) infinite alternate;
	transition: box-shadow 0.15s;
}

.pile.is-piled[data-pile-mode="mess"] .pile__card,
.pile.is-piled[data-pile-mode="mess"] .pile__grip {
	cursor: grab;
}

.pile__piece:hover .pile__card {
	box-shadow: 13px 13px 0 var(--ink);
}

.pile__piece.is-dragging .pile__card,
.pile__piece.is-dragging .pile__sign {
	scale: 1.05;
	box-shadow: 20px 24px 0 rgba(20, 11, 34, 0.55);
	animation-play-state: paused;
	cursor: grabbing;
}

@keyframes pile-bob {
	from {
		transform: translateY(-4px) rotate(-0.9deg);
	}
	to {
		transform: translateY(5px) rotate(0.9deg);
	}
}

/* In a mess a finger drags a piece by its label, so the rest of the piece still scrolls the page. */
.pile[data-pile-mode="mess"] .pile__grip {
	touch-action: none;
}

.pile__tab {
	align-self: flex-start;
	margin: -32px 0 0 -8px;
	padding: 6px 10px 4px;
	font: 400 15px / 1 var(--block);
	color: var(--c);
	background: var(--ink);
	rotate: -3deg;
}

.pile__small {
	margin: 0;
	font: 600 13px / 1.3 var(--body);
}

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

.pile__button {
	padding: 7px 11px;
	font: 400 14px / 1 var(--block);
	color: var(--ink);
	background: var(--paper);
	border: 4px solid var(--ink);
	border-radius: 0;
	box-shadow: 4px 4px 0 var(--ink);
	cursor: pointer;
}

.pile__button:active {
	translate: 2px 2px;
	box-shadow: 2px 2px 0 var(--ink);
}

.pile__button--go {
	color: var(--c1);
	background: var(--ink);
}

.pile__button--go[aria-pressed="true"] {
	color: var(--ink);
	background: var(--c0);
	animation: pile-thump 0.5s ease-in-out infinite;
}

@keyframes pile-thump {
	50% {
		transform: scale(1.1) rotate(-4deg);
	}
}

.pile__more {
	align-self: flex-end;
	padding: 3px 8px 2px;
	font: 400 12px / 1.2 var(--block);
	color: var(--ink);
	text-decoration: none;
	background: var(--paper);
	border: 3px solid var(--ink);
	rotate: 2deg;
	cursor: pointer;
}

.pile__more:hover {
	background: var(--c1);
}

/* The control buttons keep the top-right corner, above everything in the pile. Each mode shows its own. */
.pile__controls {
	position: absolute;
	top: 0;
	right: 10px;
	z-index: 100001;
	display: flex;
	gap: 14px;
	padding: 4px 8px 8px 4px;
}

.pile__control {
	padding: 8px 14px;
	font: 400 15px / 1 var(--block);
	color: var(--ink);
	background: var(--c7);
	border: 4px solid var(--ink);
	box-shadow: 5px 5px 0 var(--ink);
	rotate: 3deg;
	cursor: pointer;
}

.pile__control:hover {
	background: var(--c1);
	animation: pile-thump 0.4s ease-in-out infinite;
}

.pile__control--mess {
	background: var(--c0);
	animation: pile-wiggle 2.6s ease-in-out infinite;
}

.pile__control--spread {
	background: var(--c3);
	rotate: -2deg;
}

@keyframes pile-wiggle {
	0%,
	80%,
	100% {
		transform: none;
	}
	85% {
		transform: rotate(-6deg) scale(1.06);
	}
	90% {
		transform: rotate(5deg) scale(1.06);
	}
	95% {
		transform: rotate(-3deg);
	}
}

.pile:not(.is-piled) .pile__controls,
.pile[data-pile-mode="spread"] .pile__control--spread,
.pile[data-pile-mode="spread"] .pile__control--shuffle,
.pile[data-pile-mode="mess"] .pile__control--mess {
	display: none;
}

/* The sticky note: say something. Every letter paints. */

.pile__piece--sticky {
	--w: 250px;
}

.pile__piece--sticky .pile__card {
	gap: 8px;
	padding: 24px 16px 12px;
	background: linear-gradient(172deg, var(--c1) 82%, #e8cf00);
	border: 0;
	box-shadow: 5px 11px 0 rgba(20, 11, 34, 0.45);
}

.pile__tape {
	position: absolute;
	top: -14px;
	left: 50%;
	width: 92px;
	height: 26px;
	background: rgba(255, 250, 240, 0.72);
	border: 2px dashed rgba(20, 11, 34, 0.3);
	translate: -50% 0;
	rotate: -4deg;
}

.pile__piece--sticky .pile__tab {
	margin: 0;
	padding: 0;
	font-size: 22px;
	color: var(--ink);
	background: none;
	rotate: -2deg;
}

.pile__say {
	width: 100%;
	padding: 4px;
	font: 400 18px / 1.1 var(--block);
	color: var(--ink);
	background: transparent;
	border: 0;
	border-bottom: 4px solid var(--ink);
	border-radius: 0;
	caret-color: var(--c0);
}

.pile__say:focus {
	background: rgba(255, 255, 255, 0.45);
}

.pile__say::placeholder {
	color: rgba(20, 11, 34, 0.45);
}

/* The little painting. The canvas has few pixels on purpose, shown big and blocky like the sky. */
.pile__canvas {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 108 / 48;
	background: var(--ink);
	border: 4px solid var(--ink);
	box-shadow: 4px 4px 0 rgba(20, 11, 34, 0.35);
	image-rendering: pixelated;
}

.pile__row--end {
	flex-wrap: nowrap;
	justify-content: space-between;
	min-height: 28px;
}

/* The gallery: the newest framed paintings, each a button that plays its sentence again. */
.pile__gallery {
	display: flex;
	gap: 5px;
}

.pile__thumb {
	padding: 2px;
	background: var(--c4);
	border: 3px solid var(--ink);
	border-radius: 0;
	cursor: pointer;
}

.pile__thumb:nth-child(2n) {
	background: var(--c5);
	rotate: 4deg;
}

.pile__thumb:nth-child(3n) {
	background: var(--c2);
	rotate: -3deg;
}

.pile__thumb:hover {
	translate: 0 -3px;
}

.pile__thumb-art {
	display: block;
	width: 34px;
	height: auto;
	aspect-ratio: 108 / 48;
	image-rendering: pixelated;
}

/* A framed painting lying on the pile. */

.pile__piece--painting {
	--w: 170px;
}

.pile__piece--painting .pile__frame {
	align-items: center;
	gap: 7px;
	padding: 10px 10px 9px;
	background: var(--c4);
	border: 5px solid var(--ink);
	box-shadow: inset 0 0 0 4px var(--c1), 7px 7px 0 var(--ink);
}

.pile__painting-art {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 108 / 48;
	border: 3px solid var(--ink);
	image-rendering: pixelated;
}

.pile__painting-title {
	max-width: 100%;
	overflow: hidden;
	font: italic 700 13px / 1.2 var(--body);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pile__replay {
	padding: 4px 8px;
	font-size: 11px;
}

.pile__piece.is-tumbling {
	transition:
		translate 0.9s cubic-bezier(0.3, 1.25, 0.45, 1),
		rotate 0.9s cubic-bezier(0.3, 1.25, 0.45, 1),
		scale 0.5s ease;
}

/* The beat box. */

.pile__piece--seq {
	--w: 330px;
}

.pile__seq {
	display: grid;
	grid-template-columns: auto repeat(8, 1fr);
	align-items: center;
	gap: 4px;
}

.pile__seq-name {
	padding-right: 4px;
	font: 400 11px / 1 var(--block);
}

.pile__cell {
	--row: var(--c0);
	aspect-ratio: 1;
	min-width: 0;
	padding: 0;
	background: rgba(255, 250, 240, 0.55);
	border: 3px solid var(--ink);
	border-radius: 0;
	cursor: pointer;
	transition: scale 0.08s;
}

.pile__cell[data-row="1"] {
	--row: var(--c5);
}

.pile__cell[data-row="2"] {
	--row: var(--c2);
}

.pile__cell[data-row="3"] {
	--row: var(--c6);
}

.pile__cell[data-step="0"],
.pile__cell[data-step="4"] {
	border-width: 4px;
}

.pile__cell[aria-pressed="true"] {
	background: var(--row);
	box-shadow: inset 0 0 0 2px var(--paper);
}

.pile__cell.is-now {
	scale: 1.25;
	filter: brightness(1.35);
}

/* The pads. */

.pile__piece--pads {
	--w: 260px;
}

.pile__pads {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 7px;
}

.pile__pad {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	aspect-ratio: 1;
	min-width: 0;
	padding: 0;
	font: 400 18px / 1 var(--block);
	color: var(--ink);
	background: var(--pad);
	border: 4px solid var(--ink);
	border-radius: 0;
	box-shadow: 3px 3px 0 var(--ink);
	cursor: pointer;
	touch-action: manipulation;
}

.pile__pad span {
	font: 700 10px / 1 var(--body);
}

.pile__pad:active {
	translate: 2px 2px;
	box-shadow: 1px 1px 0 var(--ink);
}

/* Today's sound, on a cassette. The reels turn while it plays. */

.pile__piece--today {
	--w: 300px;
}

.pile__piece--today .pile__card {
	color: var(--paper);
	background: #2d1f45;
	border-radius: 10px;
	box-shadow: 8px 8px 0 var(--c0);
}

.pile__piece--today:hover .pile__card {
	box-shadow: 13px 13px 0 var(--c0);
}

.pile__piece--today .pile__tab {
	color: var(--ink);
	background: var(--c1);
}

.pile__piece--today :focus-visible {
	outline-color: var(--c1);
}

.pile__tape-deck {
	padding: 10px 12px 12px;
	color: var(--ink);
	background: var(--c1);
	border: 4px solid var(--ink);
	border-radius: 4px;
}

.pile__cassette-label {
	margin: 0 0 8px;
	font: 400 18px / 1.05 var(--block);
}

.pile__reels {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 48px;
	padding: 0 12px;
	background: var(--ink);
	border-radius: 24px;
}

.pile__reels i {
	flex: none;
	width: 34px;
	height: 34px;
	background: repeating-conic-gradient(var(--paper) 0 30deg, var(--ink) 30deg 60deg);
	border: 5px solid var(--c4);
	border-radius: 50%;
	animation: pile-spin 1.1s linear infinite paused;
}

.pile__piece--today.is-playing .pile__reels i {
	animation-play-state: running;
}

@keyframes pile-spin {
	to {
		rotate: 360deg;
	}
}

.pile__tape-window {
	flex: 1;
	height: 16px;
	background: repeating-linear-gradient(90deg, #6b3d1d 0 6px, #5a3218 6px 12px);
	border: 2px solid var(--paper);
}

.pile__today-steps {
	display: grid;
	grid-template-columns: repeat(16, 1fr);
	gap: 2px;
	margin-top: 8px;
}

.pile__today-steps i {
	height: 8px;
	background: rgba(20, 11, 34, 0.2);
}

.pile__today-steps i.is-note {
	background: var(--c0);
}

.pile__today-steps i.is-kick {
	box-shadow: inset 0 -3px 0 var(--ink);
}

.pile__today-steps i.is-now {
	background: var(--ink);
	scale: 1 2;
}

/* Do not press. */

.pile__piece--crash {
	--w: 180px;
}

.pile__piece--crash .pile__card {
	align-items: center;
	padding: 18px 14px 12px;
	background: repeating-linear-gradient(-45deg, var(--c1) 0 14px, var(--ink) 14px 28px);
}

.pile__red {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 122px;
	height: 122px;
	padding: 12px;
	font: 400 19px / 1 var(--block);
	text-align: center;
	color: var(--paper);
	text-decoration: none;
	text-shadow: 2px 2px 0 var(--ink);
	background: radial-gradient(circle at 34% 28%, #ff9a9a, var(--c6) 42%, #b0001a);
	border: 6px solid var(--ink);
	border-radius: 50%;
	box-shadow: 0 9px 0 #73000f, 0 9px 0 6px var(--ink);
	transition: translate 0.08s, box-shadow 0.08s;
}

.pile__red:hover {
	animation: pile-tremble 0.12s linear infinite;
}

.pile__red:active {
	translate: 0 7px;
	box-shadow: 0 2px 0 #73000f, 0 2px 0 6px var(--ink);
}

.pile__piece--crash :focus-visible {
	outline-color: var(--paper);
}

@keyframes pile-tremble {
	25% {
		transform: translate(-2px, 1px) rotate(-3deg);
	}
	75% {
		transform: translate(2px, -1px) rotate(3deg);
	}
}

.pile__piece--crash .pile__small {
	padding: 3px 7px 2px;
	font: 400 11px / 1.2 var(--block);
	text-align: center;
	background: var(--paper);
	border: 3px solid var(--ink);
}

/* Play this page. */

.pile__piece--play {
	--w: 210px;
}

.pile__piece--play .pile__card {
	align-items: flex-start;
	padding: 14px 12px 10px;
	background: var(--c3);
}

.pile__play {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px 10px 12px;
	font: 400 18px / 1 var(--block);
	color: var(--ink);
	background: var(--paper);
	border: 4px solid var(--ink);
	border-radius: 0;
	box-shadow: 5px 5px 0 var(--ink);
	cursor: pointer;
}

.pile__play:hover {
	background: var(--c1);
}

/* A tiny block person: orange head with two eyes, on a cyan body. */
.pile__dude {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
	margin: -10px 2px 0;
	background:
		linear-gradient(var(--ink), var(--ink)) 3px 5px / 3px 5px no-repeat,
		linear-gradient(var(--ink), var(--ink)) 10px 5px / 3px 5px no-repeat,
		var(--c4);
	outline: 3px solid var(--ink);
	animation: pile-hop 0.7s ease-in-out infinite;
}

.pile__dude::after {
	content: "";
	position: absolute;
	left: 2px;
	top: 21px;
	width: 14px;
	height: 9px;
	background: var(--c2);
	outline: 3px solid var(--ink);
}

@keyframes pile-hop {
	50% {
		transform: translateY(-6px);
	}
}

/* The robot's postcard: an airmail edge, a stamp, the robot, and its latest diary line. */

.pile__piece--robot {
	--w: 300px;
}

.pile__piece--robot .pile__card {
	padding-top: 22px;
	background: var(--paper);
	border: 8px solid var(--ink);
	border-image: repeating-linear-gradient(45deg, var(--c6) 0 10px, var(--paper) 10px 20px, var(--c2) 20px 30px, var(--paper) 30px 40px) 8;
	box-shadow: 8px 8px 0 var(--ink);
}

.pile__stamp {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 44px;
	height: 52px;
	background: radial-gradient(circle at 50% 42%, var(--c1) 0 9px, transparent 10px), var(--c);
	border: 3px dashed var(--ink);
	rotate: 7deg;
}

.pile__robot-scene {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	padding-right: 44px;
}

.pile__robot {
	position: relative;
	flex: none;
	width: 58px;
	height: 76px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
	animation: pile-hop 1.4s ease-in-out infinite;
}

.pile__robot-head {
	position: absolute;
	left: 5px;
	top: 14px;
	width: 48px;
	height: 34px;
	background: var(--c7);
	border: 4px solid var(--ink);
}

/* Two eyes that blink. */
.pile__robot-head i {
	position: absolute;
	top: 8px;
	left: 7px;
	width: 8px;
	height: 8px;
	background: var(--ink);
	box-shadow: 18px 0 0 var(--ink);
	animation: pile-blink 3.2s steps(1) infinite;
}

/* An antenna with a light that changes color. */
.pile__robot-head::before {
	content: "";
	position: absolute;
	left: 16px;
	top: -18px;
	width: 6px;
	height: 14px;
	background: var(--ink);
	border-top: 7px solid var(--c0);
	animation: pile-antenna 1.2s steps(1) infinite;
}

.pile__robot-body {
	position: absolute;
	left: 11px;
	top: 50px;
	width: 36px;
	height: 24px;
	background: var(--c4);
	border: 4px solid var(--ink);
}

@keyframes pile-blink {
	0%,
	90% {
		height: 8px;
	}
	91%,
	100% {
		height: 2px;
	}
}

@keyframes pile-antenna {
	0% {
		border-top-color: var(--c0);
	}
	33% {
		border-top-color: var(--c3);
	}
	66% {
		border-top-color: var(--c2);
	}
}

/* The diary and status lines arrive after the pile is thrown, so their room is kept from the start. */
.pile__diary {
	position: relative;
	flex: 1;
	min-height: 5.6em;
	margin: 0 0 22px;
	padding: 7px 9px;
	font: italic 600 14px / 1.3 var(--body);
	background: var(--c7);
	border: 3px solid var(--ink);
}

/* The speech bubble's tail, pointing at the robot. */
.pile__diary::before {
	content: "";
	position: absolute;
	left: -12px;
	bottom: 8px;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-right: 12px solid var(--ink);
}

#pile-robot-now {
	min-height: 2.6em;
}

.pile__progress {
	display: block;
	height: 12px;
	overflow: hidden;
	background: rgba(20, 11, 34, 0.12);
	border: 3px solid var(--ink);
}

.pile__progress span {
	display: block;
	height: 100%;
	background: var(--c3);
	transform: scaleX(var(--done, 0));
	transform-origin: left center;
	transition: transform 1s;
}

/* The creepy note: a dark screen that types what it knows. */

.pile__piece--you {
	--w: 280px;
}

.pile__piece--you .pile__card {
	color: var(--c3);
	background: var(--ink);
	box-shadow: 8px 8px 0 var(--c);
}

.pile__piece--you:hover .pile__card {
	box-shadow: 13px 13px 0 var(--c);
}

.pile__piece--you .pile__tab {
	color: var(--ink);
	background: var(--c);
	outline: 3px solid var(--ink);
}

.pile__piece--you :focus-visible {
	outline-color: var(--c3);
}

/* The note types itself after the pile lands, so its full height is kept from the start. */
.pile__creepy {
	min-height: 10.2em;
	margin: 0;
	font: 500 14px / 1.45 ui-monospace, "SF Mono", Menlo, monospace;
}

.pile__caret {
	display: inline-block;
	width: 0.55em;
	height: 1em;
	vertical-align: -2px;
	background: var(--c3);
	animation: pile-caret 1s steps(1) infinite;
}

@keyframes pile-caret {
	50% {
		opacity: 0;
	}
}

/* Tap a tempo. */

.pile__piece--bpm {
	--w: 190px;
}

.pile__tap {
	width: 100%;
	aspect-ratio: 1.7;
	font: 400 34px / 1 var(--block);
	color: var(--c1);
	background: var(--ink);
	border: 0;
	border-radius: 0;
	box-shadow: 6px 6px 0 var(--paper);
	cursor: pointer;
	touch-action: manipulation;
}

.pile__tap:active {
	translate: 3px 3px;
	box-shadow: 3px 3px 0 var(--paper);
}

.pile__tap.is-counting {
	animation: pile-thump var(--tempo, 0.5s) ease-in-out infinite;
}

.pile__bpm {
	margin: 0;
	font: 400 22px / 1 var(--block);
}

/* The label maker: each word prints as a colored block on black tape. */

.pile__piece--words {
	--w: 340px;
}

.pile__words-in {
	width: 100%;
	padding: 8px 10px;
	font: 400 18px / 1.1 var(--block);
	color: var(--ink);
	background: var(--paper);
	border: 4px solid var(--ink);
	border-radius: 0;
}

.pile__label-tape {
	display: flex;
	gap: 6px;
	min-height: 50px;
	padding: 9px 8px;
	overflow: hidden;
	background: var(--ink);
	border-top: 3px dashed var(--paper);
}

.pile__label-tape b {
	flex: none;
	padding: 6px 8px 3px;
	font: 400 18px / 1 var(--block);
	color: var(--ink);
	background: var(--c);
	rotate: var(--r, 0deg);
}

.pile__label-tape b:last-child {
	animation: pile-print 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

@keyframes pile-print {
	from {
		opacity: 0;
		transform: translateX(-18px) scale(0.6);
	}
}

/* Spot the fake. The domains use the system font, which draws latin and cyrillic letters alike. */

.pile__piece--hacks {
	--w: 260px;
}

.pile__fakes {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pile__fake {
	padding: 7px 10px;
	font: 600 21px / 1.15 system-ui, -apple-system, "Segoe UI", sans-serif;
	text-align: left;
	color: var(--ink);
	background: var(--paper);
	border: 4px solid var(--ink);
	border-radius: 0;
	box-shadow: 4px 4px 0 var(--ink);
	cursor: pointer;
}

.pile__fake:hover {
	background: var(--c7);
}

.pile__fake.is-fake {
	background: var(--c6);
}

.pile__fake.is-real {
	background: var(--c3);
}

.pile__fake mark {
	color: var(--ink);
	background: var(--c1);
	outline: 3px solid var(--ink);
}

/* The sky remote. */

.pile__piece--remote {
	--w: 140px;
}

.pile__piece--remote .pile__card {
	padding: 20px 12px 16px;
	border-radius: 28px 28px 14px 14px;
}

.pile__remote-light {
	align-self: center;
	width: 16px;
	height: 16px;
	background: var(--ink);
	border: 3px solid var(--ink);
	border-radius: 50%;
}

.pile__remote-buttons {
	display: grid;
	gap: 7px;
}

.pile__remote-buttons .pile__button {
	padding: 7px 4px;
	font-size: 12px;
	border-radius: 12px;
}

/* The polaroid of one old photo post. */

.pile__piece--photo {
	--w: 210px;
}

.pile__piece--photo .pile__card {
	gap: 6px;
	padding: 12px 12px 10px;
	background: #fff;
	border: 0;
	box-shadow: 5px 10px 0 rgba(20, 11, 34, 0.5);
}

.pile__piece--photo .pile__card::before {
	content: "";
	position: absolute;
	top: -12px;
	left: 30%;
	width: 70px;
	height: 22px;
	background: rgba(255, 229, 0, 0.6);
	rotate: 8deg;
}

.pile__photo {
	display: block;
	color: var(--ink);
	text-decoration: none;
}

.pile__photo-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	filter: saturate(1.5) contrast(1.1);
	transition: filter 0.3s;
}

.pile__photo:hover .pile__photo-image {
	filter: saturate(2.4) contrast(1.3) hue-rotate(40deg);
}

.pile__photo-title {
	display: block;
	margin-top: 8px;
	font: italic 700 16px / 1.2 var(--body);
}

/* The garden sign, on its post. */

.pile__piece--garden {
	--w: 180px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.pile__sign {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 12px 10px 14px;
	font: 400 17px / 1.1 var(--block);
	text-align: center;
	color: var(--ink);
	text-decoration: none;
	background: repeating-linear-gradient(180deg, var(--c4) 0 16px, #d96400 16px 19px);
	border: 5px solid var(--ink);
	box-shadow: 6px 6px 0 var(--ink);
	scale: calc(1 + var(--beat) * var(--punch, 0.03));
	animation: pile-bob var(--bob, 3s) ease-in-out var(--bob-delay, 0s) infinite alternate;
}

.pile__sign:hover {
	background: repeating-linear-gradient(180deg, var(--c1) 0 16px, #e0c600 16px 19px);
}

/* A chunky arrow pointing down at the garden. */
.pile__arrow {
	position: relative;
	width: 16px;
	height: 18px;
	background: var(--ink);
	animation: pile-point 0.8s ease-in-out infinite;
}

.pile__arrow::after {
	content: "";
	position: absolute;
	left: -12px;
	top: 16px;
	border-left: 20px solid transparent;
	border-right: 20px solid transparent;
	border-top: 18px solid var(--ink);
}

@keyframes pile-point {
	50% {
		transform: translateY(7px);
	}
}

.pile__post {
	width: 18px;
	height: 64px;
	background: var(--c4);
	border: 4px solid var(--ink);
	border-top: 0;
	cursor: grab;
}
