body.mode-3d {
	overflow: hidden;
	height: 100dvh;
	background: #cfc6b6;
}

body.mode-3d .app-3d {
	display: block;
	position: relative;
	height: 100dvh;
	min-height: 100dvh;
	background: none;
}

#scene {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
}

.label-layer {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.person-label {
	position: absolute;
	left: 0;
	top: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	pointer-events: auto;
	cursor: pointer;
	font-family: var(--sans);
	font-size: 0.75rem;
	color: var(--ink);
	letter-spacing: 0.04em;
	text-shadow: 0 1px 0 rgba(243, 234, 219, 0.92);
	white-space: nowrap;
	transform: translate(-50%, calc(-100% - 0.35rem));
}

.person-label.is-self {
	font-weight: 600;
}

body.mode-3d .masthead {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	padding: 0.7rem 1rem 1.4rem;
	background: linear-gradient(to bottom, rgba(207, 198, 182, 0.88), rgba(207, 198, 182, 0));
	pointer-events: none;
}

body.mode-3d .masthead .status,
body.mode-3d .masthead .preview-switch,
body.mode-3d .masthead a {
	pointer-events: auto;
}

body.mode-3d .masthead h1 {
	font-size: 1.35rem;
}

body.mode-3d .presence-pill {
	position: static;
	display: inline-block;
	transform: none;
	margin: 0.45rem 0 0;
	pointer-events: none;
	background: transparent;
	border: 0;
	backdrop-filter: none;
	padding: 0;
}

body.mode-3d .dock {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	transform: none;
	z-index: 2;
	margin: 0;
	width: 100%;
	max-width: none;
	max-height: none;
	overflow: visible;
	padding: 0.7rem 1rem calc(0.45rem + env(safe-area-inset-bottom));
	border: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
	background: linear-gradient(to top, rgba(207, 198, 182, 0.92) 0%, rgba(207, 198, 182, 0.55) 26%, rgba(207, 198, 182, 0) 52%);
	pointer-events: none;
}

body.mode-3d .dock .btn,
body.mode-3d .dock .choice,
body.mode-3d .dock .check,
body.mode-3d .dock .icon-btn,
body.mode-3d .dock .text-btn,
body.mode-3d .dock .preview-switch,
body.mode-3d .dock a,
body.mode-3d .dock input,
body.mode-3d .dock select,
body.mode-3d .dock label {
	pointer-events: auto;
}

body.mode-3d .dock-inner {
	margin: 0;
}

body.mode-3d .dock-kicker {
	margin: 0;
	font-size: 0.72rem;
}

body.mode-3d .choices {
	margin: 0.28rem 0 0.4rem;
	gap: 0.32rem;
}

body.mode-3d .choice,
body.mode-3d .btn {
	padding: 0.28rem 0.7rem;
	font-size: 0.82rem;
}

body.mode-3d .countdown-row {
	margin: 0 0 0.4rem;
	font-size: 0.8rem;
}

body.mode-3d .dock-actions {
	gap: 0.55rem;
}

body.mode-3d .dock-tools {
	margin-top: 0.4rem;
	padding-top: 0.35rem;
	border-top-color: rgba(201, 183, 154, 0.45);
}

.walk-hint {
	margin: 0 0 0.35rem;
	font-family: var(--sans);
	font-size: 0.74rem;
	color: var(--ink-soft);
}

body.mode-3d .timer {
	font-size: 1.2rem;
	margin: 0.05rem 0;
}

body.mode-3d .timer-hint {
	margin: 0 0 0.35rem;
	font-size: 0.76rem;
}

body.mode-3d .popover {
	z-index: 5;
}

@media (max-width: 720px) {
	body.mode-3d .masthead h1 {
		font-size: 1.15rem;
	}

	body.mode-3d .dock {
		padding: 0.55rem 0.75rem calc(0.4rem + env(safe-area-inset-bottom));
	}
}
