/* Oddusee Share Button: red, black and white */
.osq-btn {
	position: fixed;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 99990;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 18px;
	border: 2px solid rgb(255, 255, 255);
	border-radius: 999px;
	background: rgb(214, 26, 42);
	color: rgb(255, 255, 255);
	font: 700 16px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: .04em;
	text-transform: uppercase;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.osq-btn { transition: transform .25s ease, opacity .25s ease; }
/* Phones: the button slides away while you scroll down to read, and comes
   back when you scroll up, so it never sits on top of what you are reading. */
.osq-btn.osq-away { transform: translateY(160%); opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .osq-btn { transition: none; } }
.osq-btn.osq-left { left: 16px; }
.osq-btn.osq-right { right: 16px; }
.osq-btn:hover, .osq-btn:focus-visible { background: rgb(0, 0, 0); color: rgb(255, 255, 255); outline: none; }
.osq-btn svg { flex: 0 0 auto; }

html.osq-lock, html.osq-lock body { overflow: hidden !important; }

.osq-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: calc(20px + env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px));
	background: rgb(0, 0, 0);
	color: rgb(255, 255, 255);
	overflow-y: auto;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	box-sizing: border-box;
}
.osq-modal[hidden] { display: none !important; }
.osq-modal *, .osq-modal *::before, .osq-modal *::after { box-sizing: border-box; }

.osq-inner {
	width: 100%;
	max-width: 520px;
	margin: auto;
	text-align: center;
	border-top: 6px solid rgb(214, 26, 42);
	padding-top: 18px;
}
.osq-kicker {
	margin: 0 0 6px;
	color: rgb(255, 70, 85);
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .22em;
	text-transform: uppercase;
}
.osq-title {
	margin: 0 0 16px;
	color: rgb(255, 255, 255);
	font-size: clamp(22px, 6vw, 32px);
	font-weight: 800;
	line-height: 1.15;
	text-transform: none;
}
.osq-code {
	width: min(86vw, 58vh, 440px);
	margin: 0 auto;
	padding: 18px;
	background: rgb(255, 255, 255);
	border: 4px solid rgb(214, 26, 42);
	border-radius: 14px;
	line-height: 0;
}
.osq-code canvas {
	display: block;
	width: 100% !important;
	height: auto !important;
	image-rendering: pixelated;
}
.osq-note {
	margin: 12px 0 16px;
	color: rgb(235, 235, 235);
	font-size: 15px;
}
.osq-switch {
	display: flex;
	gap: 0;
	max-width: 440px;
	margin: 0 auto 12px;
	border: 2px solid rgb(255, 255, 255);
	border-radius: 999px;
	overflow: hidden;
}
.osq-choice {
	flex: 1 1 50%;
	margin: 0;
	padding: 13px 10px;
	border: 0;
	border-radius: 0;
	background: rgb(0, 0, 0);
	color: rgb(255, 255, 255);
	font: 700 16px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}
.osq-choice.is-on { background: rgb(214, 26, 42); color: rgb(255, 255, 255); }
.osq-copy {
	display: block;
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	padding: 14px 16px;
	border: 2px solid rgb(214, 26, 42);
	border-radius: 999px;
	background: rgb(255, 255, 255);
	color: rgb(0, 0, 0);
	font: 800 16px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: .06em;
	cursor: pointer;
}
.osq-copy.is-done { background: rgb(214, 26, 42); color: rgb(255, 255, 255); border-color: rgb(255, 255, 255); }
.osq-choice:focus-visible, .osq-copy:focus-visible, .osq-close:focus-visible { outline: 3px solid rgb(255, 255, 255); outline-offset: 2px; }
.osq-link {
	margin: 10px auto 0;
	max-width: 440px;
	color: rgb(220, 220, 220);
	font-size: 13px;
	word-break: break-all;
}
.osq-close {
	position: fixed;
	top: calc(10px + env(safe-area-inset-top, 0px));
	right: 12px;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 2px solid rgb(255, 255, 255);
	border-radius: 50%;
	background: rgb(214, 26, 42);
	color: rgb(255, 255, 255);
	font: 400 32px/1 Arial, sans-serif;
	cursor: pointer;
	z-index: 1;
}
@media (max-height: 640px) {
	.osq-title { margin-bottom: 10px; }
	.osq-note { margin: 8px 0 10px; }
}
@media print { .osq-btn, .osq-modal { display: none !important; } }
