.ark-world {
	background: linear-gradient(#dcefe8, #c9e3dd 56%, #b2d3cf);
}
.ark-game {
	--paper: #fffaf0;
	--ink: #243e3c;
	width: min(760px, 100%);
	background: #fffaf0;
	border-color: #9dbfba;
	box-shadow: 0 12px 40px -24px #355e5e88;
}
.ark-game h1 span {
	color: #13736d;
}
.ark-scene {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	height: clamp(155px, 32svh, 274px);
	margin-top: 5px;
	border-radius: 18px 18px 8px 8px;
	background:
		radial-gradient(ellipse at 82% 18%, #faefd0, transparent 48%),
		linear-gradient(#b7dce5 0%, #edf1d6 67%, #72b5b3 67%, #488e9c);
}
.ark-story {
	position: absolute;
	left: 0;
	top: 0;
	width: 54%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 47%;
	mask-image: linear-gradient(90deg, #000 77%, transparent);
}
#ark-boat {
	position: absolute;
	z-index: 2;
	right: 0;
	bottom: 3%;
	width: 73%;
	max-width: 465px;
	aspect-ratio: 704 / 421;
	background: url("./ark-boat.webp") center / 100% 100% no-repeat;
	filter: drop-shadow(0 4px 2px #345d584d);
}
.port {
	position: absolute;
	left: 20.8%;
	top: 27.5%;
	width: 26.4%;
	height: 33%;
}
.port.spare {
	left: 52.2%;
	top: 28%;
}
.port img,
.ark-game .port #keepsake {
	position: static;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center bottom;
	filter: drop-shadow(0 1px 1px #24190c77);
}
.waterline {
	position: absolute;
	z-index: 2;
	bottom: 0;
	right: 0;
	width: 62%;
	height: 13%;
	pointer-events: none;
	background:
		radial-gradient(ellipse at 50% 100%, #9acfc2 64%, transparent 67%) 0 0 / 25% 70% repeat-x,
		linear-gradient(transparent 52%, #86bdba 55%, #66a7ac);
	mask-image: linear-gradient(90deg, transparent, #000 25%);
}
.ark-game .guide {
	height: clamp(60px, 13svh, 96px);
	margin: 4px 0;
	gap: 14px;
}
.ark-game #momo {
	width: 26%;
}
.ark-game .bubble {
	width: auto;
	max-width: 64%;
	min-height: 47px;
	padding: 5px 12px;
	font-size: clamp(19px, 4.5vw, 26px);
}
.ark-game .cue-icon img {
	width: 38px;
	height: 38px;
}
.ark-game .blanket {
	border-radius: 8px 8px 16px 16px;
	padding: clamp(8px, 2.3vw, 16px);
	background: radial-gradient(ellipse at 45% 0%, #ecedbf, transparent 80%), #ccdbb0;
	border-bottom: 3px solid #a8b991;
}
.ark-game .blanket::before {
	border: 0;
}
.ark-game .choices {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 7px;
}
.ark-game .piece,
.ark-game .piece:last-child {
	grid-column: auto;
	height: clamp(89px, 18svh, 147px);
}
.ark-game[data-phase="board"]:not(.paused) #ark-boat {
	filter: drop-shadow(3px 0 #ffcd38) drop-shadow(-3px 0 #ffcd38) drop-shadow(0 3px #935d14);
}
.ark-game[data-phase="board"]:not(.paused) #ark-boat::after {
	content: "";
	position: absolute;
	z-index: 3;
	right: 12%;
	top: 14%;
	width: 31%;
	height: 38%;
	background: url("../dinos-mix-up/art/pointing-hand.webp") center / contain no-repeat;
	transform: rotate(132deg);
	filter: drop-shadow(0 2px 2px #49332088);
}
.ark-game[data-phase="board"] .piece:not(.waiting) {
	opacity: 0.45;
}
.ark-game[data-phase="complete"] .port img {
	visibility: visible;
}
@keyframes sail {
	from {
		transform: translateX(-12%);
	}
	to {
		transform: translateX(0);
	}
}
@media (prefers-reduced-motion: no-preference) {
	.ark-game[data-phase="complete"] #ark-boat {
		animation: sail 1.8s ease-out both;
	}
}
@media (orientation: landscape) and (max-height: 510px) {
	.ark-game {
		grid-template-columns: 47% 53%;
		align-items: center;
	}
	.ark-scene {
		grid-column: 1;
		grid-row: 2 / 4;
		margin: 0 5px 0 0;
		height: min(61svh, 224px);
	}
	.ark-game .guide {
		grid-column: 2;
		grid-row: 2;
		flex-direction: row;
		height: min(24svh, 80px);
	}
	.ark-game #momo {
		height: 100%;
	}
	.ark-game .blanket,
	.ark-game .end-card {
		grid-column: 2;
		grid-row: 3;
	}
	.ark-game .piece {
		height: min(32svh, 108px);
	}
	.ark-game .other-game {
		grid-column: 1 / -1;
	}
}
