@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600&display=swap');
:root {
	font-family: 'DM Sans', sans-serif;
	color: #fff9f0;
	font-synthesis: none;
	--ink: #30374b;
	--paper: #fffaf1;
	--muted: #c7c6cc;
}
.atmosphere-options { display: grid; gap: 10px; margin-top: 24px; }
.atmosphere-options button { display: grid; gap: 5px; text-align: left; padding: 16px 18px; border: 1px solid #8a8d9e66; border-radius: 10px; }
.atmosphere-options button span { font-size: 12px; opacity: .8; }
.atmosphere-options button[aria-pressed='true'] { background: #d8c6ac44; border-color: #9b805c; }
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	overflow: hidden;
	background: #d8c4cc;
}
button,
a,
input {
	-webkit-tap-highlight-color: transparent;
}
button {
	font: inherit;
	cursor: pointer;
	color: inherit;
	border: 0;
	background: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
	outline: 2px solid #ffe0a7;
	outline-offset: 5px;
}
button {
	transition:
		background 0.2s,
		transform 0.2s;
}
button:hover {
	transform: translateY(-1px);
}
[hidden] {
	display: none !important;
}
#world,
#scene,
.grain {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
}
#scene {
	touch-action: none;
	outline-offset: -4px;
}
.grain {
	pointer-events: none;
	opacity: 0.055;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
body:after {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(90deg, rgba(38, 41, 59, 0.26), transparent 48%), linear-gradient(0deg, rgba(29, 38, 48, 0.3), transparent 19%);
	z-index: 0;
}
header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	padding: 27px 38px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 2;
	border-bottom: 1px solid #ffffff27;
	background: linear-gradient(#35304420, transparent);
}
.brand {
	color: var(--paper);
	text-decoration: none;
	display: flex;
	gap: 13px;
	align-items: center;
	font-family: Georgia, serif;
	font-size: 41px;
	line-height: 1;
}
.brand svg {
	width: 39px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.4;
}
.brand-sub {
	display: block;
	font:
		8px 'DM Sans',
		sans-serif;
	letter-spacing: 2.2px;
	margin-top: 9px;
}
.brand > span {
	display: block;
}
nav {
	display: flex;
	gap: 34px;
	margin-left: 70px;
}
nav button {
	padding: 12px 0;
	font-size: 12px;
	opacity: 0.8;
}
nav button.nav-active {
	opacity: 1;
	border-bottom: 1px solid #fff7dc;
}
nav span {
	margin-left: 7px;
}
.light-button {
	background: #fffaf1;
	color: #41475a;
	border-radius: 6px;
	padding: 13px 18px;
	font-size: 12px;
	box-shadow: 0 4px 24px #65556d0a;
}
.light-button > span {
	font-size: 20px;
	vertical-align: -1px;
	margin-right: 6px;
}
.intro {
	position: fixed;
	left: 42px;
	top: 158px;
	z-index: 1;
	pointer-events: none;
}
.eyebrow,
.tiny-label {
	font-size: 9px;
	letter-spacing: 1.9px;
	font-weight: 600;
}
.eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
}
.eyebrow i,
.world-status i,
.map-caption i {
	width: 5px;
	height: 5px;
	background: #f7dbac;
	display: inline-block;
	border-radius: 50%;
}
h1,
h2,
p {
	margin: 0;
}
h1 {
	font:
		normal clamp(40px, 4.4vw, 68px) / 1.08 Georgia,
		serif;
	letter-spacing: -1.8px;
	margin: 22px 0 19px;
	text-shadow: 0 2px 20px #58516515;
}
.intro p {
	font-size: 13px;
	line-height: 1.9;
	color: #fffbefdc;
}
.text-button {
	pointer-events: auto;
	font-size: 11px;
	padding: 19px 0;
	border-bottom: 1px solid #ffffff58;
}
.text-button span {
	margin-left: 28px;
}
.place-card {
	position: fixed;
	left: 40px;
	bottom: 94px;
	width: 294px;
	padding: 23px 24px 17px;
	background: #323b50e8;
	backdrop-filter: blur(20px);
	border: 1px solid #ffffff26;
	border-radius: 9px;
	z-index: 2;
	box-shadow: 0 12px 40px #34374b12;
}
.card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: #d6c6ad;
}
.star {
	font-size: 26px;
	line-height: 18px;
}
.place-card h2 {
	font:
		24px Georgia,
		serif;
	margin: 17px 0 12px;
}
.place-card p {
	font-size: 11px;
	line-height: 1.8;
	color: #d3d6e0;
}
.card-footer {
	border-top: 1px solid #ffffff20;
	margin-top: 19px;
	padding-top: 13px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.card-footer > span {
	font-size: 8px;
	letter-spacing: 1px;
	color: #c8cbd5;
}
.card-footer > button {
	width: 30px;
	height: 30px;
	background: #fff7e9;
	color: #3a4359;
	border-radius: 50%;
	font-size: 20px;
}
.house-actions {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}
.house-actions button {
	font-size: 10px;
	border-bottom: 1px solid #d8d0c9;
	padding: 5px 0;
}
.map-panel {
	position: fixed;
	right: 39px;
	bottom: 94px;
	width: 225px;
	padding: 12px;
	border: 1px solid #ffffff65;
	border-radius: 9px;
	background: #fbf6ead9;
	backdrop-filter: blur(15px);
	color: #53596a;
	z-index: 2;
	box-shadow: 0 10px 25px #43445c12;
}
.map-heading {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 9px;
	letter-spacing: 2px;
}
.map-heading button {
	font-size: 21px;
	line-height: 18px;
}
#minimap {
	display: block;
	width: 100%;
	height: 133px;
}
.map-caption {
	border-top: 1px solid #636b7d25;
	padding-top: 10px;
	display: flex;
	justify-content: space-between;
	font-size: 8px;
}
.map-caption i {
	background: #90a282;
	width: 4px;
	height: 4px;
	margin-right: 3px;
}
.map-caption b {
	font-weight: 400;
}
.view-controls {
	position: fixed;
	right: 39px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	background: #fff9efed;
	color: #4b5266;
	border: 1px solid #fff9ef;
	border-radius: 24px;
	padding: 7px 4px;
	z-index: 2;
	box-shadow: 0 6px 20px #41405115;
}
.view-controls button {
	height: 35px;
	width: 35px;
	font-size: 20px;
	border-radius: 50%;
}
.view-controls button:hover {
	background: #e9e0dd;
}
.view-controls span {
	height: 1px;
	background: #ddd6d2;
	margin: 5px;
}
.view-controls #help {
	font-size: 15px;
}
footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 25px 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 1;
	font-size: 8px;
	letter-spacing: 1px;
	color: #fffaf0d9;
}
.world-status {
	display: flex;
	gap: 8px;
	align-items: center;
}
.demo-tag {
	font-size: 7px;
	opacity: 0.8;
}
.controls-hint {
	font-size: 7px;
	letter-spacing: 1px;
}
.controls-hint span {
	margin: 0 10px;
	color: #ffffff88;
}
.scene-label {
	position: fixed;
	z-index: 2;
	pointer-events: none;
	background: #303b50e8;
	border: 1px solid #ffffff50;
	border-radius: 5px;
	padding: 9px 13px;
	font-size: 11px;
	white-space: nowrap;
	transform: translate(-50%, -100%);
}
dialog {
	border: 1px solid #e6ded6;
	border-radius: 15px;
	padding: 30px;
	background: #fcf8f0;
	color: var(--ink);
	box-shadow: 0 30px 100px #20263850;
	width: 480px;
	max-width: calc(100% - 32px);
	max-height: 85dvh;
}
dialog::backdrop {
	background: #2b30465e;
	backdrop-filter: blur(7px);
}
dialog h2 {
	font:
		35px/1.15 Georgia,
		serif;
	letter-spacing: -0.7px;
	margin: 14px 0 23px;
}
dialog p {
	font-size: 13px;
	line-height: 1.85;
	margin-bottom: 18px;
}
.dialog-head {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	align-items: start;
}
.dialog-head .tiny-label {
	font-size: 8px;
	color: #898178;
}
.icon-button {
	font-size: 24px;
	line-height: 22px;
}
.search-field {
	display: flex;
	border: 1px solid #c8c6c4;
	border-radius: 7px;
	padding: 10px 14px;
	gap: 10px;
	margin-top: 9px;
}
.search-field > span {
	font-size: 24px;
}
label {
	font-size: 11px;
	color: #636778;
}
input {
	border: 0;
	background: none;
	outline: 0;
	width: 100%;
	font:
		14px 'DM Sans',
		sans-serif;
	color: #30374b;
}
.search-note {
	font-size: 10px !important;
	color: #85828a;
	margin: 12px 0 !important;
}
#search-results {
	max-height: 320px;
	overflow: auto;
}
.result {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 13px 3px;
	border-top: 1px solid #e7e0d8;
	text-align: left;
	gap: 14px;
}
.result .home-icon {
	background: #e2dfd7;
	border-radius: 8px;
	font-size: 24px;
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
}
.result strong {
	display: block;
	font-size: 13px;
	font-weight: 500;
}
.result small {
	font-size: 10px;
	color: #777b87;
}
.result .arrow {
	margin-left: auto;
}
.result:hover {
	background: #f1ece3;
}
.about-note {
	padding: 16px;
	background: #eee9e0;
	font-size: 11px;
	line-height: 1.8;
	border-radius: 8px;
}
.primary {
	padding: 13px 22px;
	border-radius: 6px;
	background: #39435b;
	color: #fff9f0;
	margin-top: 22px;
}
#my-saved-home {
	padding: 12px 0;
	font-size: 12px;
	border-bottom: 1px solid #ccc;
}
dt {
	font-size: 12px;
	font-weight: 600;
	margin-top: 18px;
}
dd {
	font-size: 12px;
	margin: 5px 0;
	color: #6d7281;
}
#toast {
	position: fixed;
	left: 50%;
	bottom: 40px;
	transform: translate(-50%, 15px);
	padding: 14px 22px;
	background: #303b50f0;
	border: 1px solid #ffffff33;
	color: #fff9ef;
	z-index: 10;
	border-radius: 8px;
	font-size: 12px;
	opacity: 0;
	transition: 0.25s;
	pointer-events: none;
	max-width: 90vw;
	text-align: center;
}
#toast.show {
	opacity: 1;
	transform: translate(-50%, 0);
}
#loading {
	position: fixed;
	inset: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(#bbb8d6, #f4d1be);
	color: #45465d;
	transition: opacity 0.7s;
}
#loading h2 {
	font:
		32px Georgia,
		serif;
	margin: 20px;
}
#loading p {
	font-size: 12px;
}
.loading-star {
	font-size: 64px;
	animation: breathe 2s infinite;
}
@keyframes breathe {
	50% {
		opacity: 0.3;
		transform: rotate(30deg);
	}
}
@media (max-height: 760px) and (min-width: 761px) {
	.intro {
		top: 130px;
	}
	h1 {
		font-size: 49px;
		margin: 17px 0;
	}
	.place-card {
		bottom: 75px;
		padding: 18px 22px;
	}
	.intro p {
		font-size: 12px;
	}
	.text-button {
		padding: 11px 0;
	}
	.place-card h2 {
		margin: 10px 0;
	}
	.map-panel {
		bottom: 75px;
	}
}
@media (max-width: 1000px) {
	nav {
		margin-left: 0;
		gap: 20px;
	}
	.controls-hint {
		display: none;
	}
	.intro {
		top: 145px;
	}
	.map-panel {
		width: 190px;
	}
}
@media (max-width: 760px) {
	header {
		padding: 20px;
	}
	.brand {
		font-size: 33px;
	}
	.brand svg {
		width: 29px;
	}
	.brand-sub {
		font-size: 6px;
		letter-spacing: 1.3px;
	}
	nav {
		display: none;
	}
	.light-button {
		font-size: 0;
		padding: 9px 13px;
	}
	.light-button > span {
		font-size: 24px;
		margin: 0;
	}
	.intro {
		left: 23px;
		top: 122px;
	}
	.eyebrow {
		font-size: 7px;
		letter-spacing: 1.2px;
	}
	h1 {
		font-size: 44px;
		margin: 18px 0 13px;
	}
	.intro p {
		font-size: 11px;
	}
	.text-button {
		font-size: 10px;
		padding: 13px 0;
	}
	.place-card {
		left: 20px;
		bottom: 62px;
		width: 235px;
		padding: 15px 18px;
	}
	.place-card h2 {
		font-size: 21px;
		margin: 11px 0 8px;
	}
	.place-card p {
		font-size: 10px;
	}
	.card-top .tiny-label {
		font-size: 7px;
		letter-spacing: 1px;
	}
	.card-footer {
		margin-top: 12px;
		padding-top: 9px;
	}
	.card-footer > span {
		font-size: 6px;
	}
	.map-panel {
		display: none;
	}
	.view-controls {
		right: 18px;
		top: auto;
		bottom: 62px;
		transform: none;
	}
	.view-controls button {
		height: 33px;
		width: 30px;
	}
	.view-controls #sound {
		display: none;
	}
	footer {
		padding: 20px;
		font-size: 6px;
		letter-spacing: 0.6px;
	}
	.demo-tag {
		font-size: 6px;
	}
	.world-status {
		gap: 5px;
	}
	.scene-label {
		font-size: 10px;
	}
	dialog {
		padding: 24px;
	}
	.intro.compact {
		opacity: 0;
		pointer-events: none;
	}
	.house-actions {
		flex-wrap: wrap;
		gap: 5px;
	}
	.house-actions button {
		font-size: 9px;
	}
}
.places {
	position: fixed;
	bottom: 95px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	margin: 0;
	display: block;
	text-align: center;
	white-space: nowrap;
}
.places-label {
	display: block;
	font-size: 8px;
	letter-spacing: 1.6px;
	margin-bottom: 10px;
	text-shadow: 0 1px 8px #30374b;
}
.places > div {
	display: flex;
	background: #343d50ed;
	border: 1px solid #ffffff35;
	border-radius: 30px;
	padding: 5px;
	box-shadow: 0 8px 30px #34374b20;
}
.places button {
	font-size: 11px;
	padding: 11px 14px;
	border-radius: 24px;
	display: flex;
	align-items: center;
	gap: 7px;
}
.places button[aria-pressed='true'] {
	background: #fff5e9;
	color: #343d50;
}
.places i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--place);
}
@media (max-width: 1100px) {
	.places {
		bottom: 28px;
	}
	.places-label {
		display: none;
	}
	.controls-hint {
		display: none;
	}
	footer {
		padding-bottom: 80px;
		pointer-events: none;
	}
}
@media (max-width: 760px) {
	.places {
		display: block;
		top: 105px;
		bottom: auto;
		width: calc(100% - 38px);
	}
	.places > div {
		justify-content: flex-start;
		overflow-x: auto;
		scrollbar-width: thin;
	}
	.places button {
		flex-shrink: 0;
		font-size: 10px;
		padding: 9px 6px;
		gap: 5px;
	}
	.intro {
		top: 174px;
	}
	.intro h1 {
		font-size: 38px;
	}
	.intro p {
		font-size: 10px;
	}
	footer {
		padding-bottom: 20px;
	}
	.place-card {
		bottom: 62px;
	}
}
.intro.compact {
	opacity: 0;
	visibility: hidden;
}
header {
	background: linear-gradient(#34334c60, #34334c15);
}
nav button {
	font-size: 13px;
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	*,
	*:before,
	*:after {
		animation: none !important;
		transition: none !important;
	}
}
