/* Ember Drift. Every class starts with "drift-"; the page's Bootstrap 4 does the rest. */

.drift {
	position: relative;
	font-family: inherit;
}

.drift-panel {
	min-height: 1.5rem;
}

.drift-status {
	font-weight: 600;
}

.drift-btn {
	margin: 0.4rem 0.4rem 0 0;
}

.drift-msg {
	margin: 0.6rem 0 0;
}

.drift-bar {
	align-items: center;
	gap: 0.5rem;
}

.drift-switch {
	margin-left: 0.25rem;
}

/* the river: 2 : 3, as wide as the card, at most 70% of the viewport height */
.drift-frame {
	width: 100%;
	max-width: calc(70vh * 2 / 3);
	aspect-ratio: 2 / 3;
	margin: 0 auto;
	border-radius: 0.5rem;
	overflow: hidden;
	background: #0d2230;
	line-height: 0;
}

.drift-canvas {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
	outline: 0;
}

.drift-canvas:focus-visible {
	box-shadow: inset 0 0 0 3px #04a8fb;
}

.drift-hint {
	margin: 0.5rem 0 0;
	text-align: center;
}

.drift-claim {
	margin-top: 1rem;
}

.drift-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
	.drift * {
		scroll-behavior: auto;
		transition: none;
	}
}
