/*
 * The Love Bridge: frontend styles. Design tokens live on the plugin roots only (the bridge, a
 * story page, the list), never globally.
 */

.lb-root,
.lb-story,
.lb-list,
.lb-gift-modal {
	/* Colour tokens */
	--lb-midnight-900: #0b1426;
	--lb-midnight-800: #111d36;
	--lb-midnight-700: #1b2a4a;
	--lb-teal-500: #1f6f78;
	--lb-turquoise-400: #4fb3b8;
	--lb-gold-400: #e9c27a;
	--lb-brass-500: #b8894a;
	--lb-ivory-100: #f6f0e4;
	--lb-ivory-300: #d9d0bf;
	--lb-panel-bg: rgba(17, 29, 54, 0.72);
	--lb-panel-border: rgba(233, 194, 122, 0.22);
	--lb-focus: #f3d79b;
	/* Stage 7: the remaining colours as tokens (same values as before). */
	--lb-ink-900: #1b1408; /* dark text on gold and ivory buttons */
	--lb-error-300: #ffb4a8; /* error text and borders on the dark panels */
	--lb-danger-300: #e3a3a3; /* the border of destructive buttons */
	--lb-success-100: #d9f2e4; /* confirmation text */

	/* Type */
	--lb-font-display: "Love Bridge Display", Georgia, "Times New Roman", serif;
	--lb-font-ui: "Love Bridge UI", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Spacing scale (4/8 px) and radii */
	--lb-space-1: 4px;
	--lb-space-2: 8px;
	--lb-space-3: 12px;
	--lb-space-4: 16px;
	--lb-space-6: 24px;
	--lb-space-8: 32px;
	--lb-radius-sm: 0px;
	--lb-radius-md: 0px;
	--lb-radius-lg: 0px;
}

.lb-root {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	min-height: 420px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--lb-radius-md);
	background:
		radial-gradient(120% 80% at 50% 100%, rgba(31, 111, 120, 0.45) 0%, transparent 60%),
		linear-gradient(180deg, var(--lb-midnight-700) 0%, var(--lb-midnight-900) 100%);
	color: var(--lb-ivory-100);
	font-family: var(--lb-font-ui);
	font-size: 16px;
	line-height: 1.5;
}

.lb-root *,
.lb-root *::before,
.lb-root *::after {
	box-sizing: inherit;
}

/* Phones: the bridge is one screen tall. 100vh on a phone is the height with the browser's address
   bar and toolbar hidden, so with them showing the bottom of the scene sat behind the toolbar
   (Alex, 0.9.0); 100svh is the height with them showing, so the whole scene is always visible.
   Browsers without svh keep 100vh. */
@media (max-width: 600px) {
	.lb-root {
		aspect-ratio: auto;
		min-height: 100vh;
		min-height: 100svh;
		border-radius: 0;
	}
}

.lb-stage {
	position: absolute;
	inset: 0;
}

/* Loading / status */
.lb-status {
	position: absolute;
	inset: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--lb-space-4);
	padding: var(--lb-space-6);
	text-align: center;
	pointer-events: none;
}

.lb-root[data-lb-state="loading"] .lb-status,
.lb-root[data-lb-state="context-lost"] .lb-status,
.lb-root[data-lb-state="error"] .lb-status {
	display: flex;
}

.lb-root[data-lb-state="context-lost"] .lb-status {
	background: rgba(11, 20, 38, 0.55);
}

.lb-status__text {
	margin: 0;
	font-family: var(--lb-font-display);
	font-size: 1.125rem;
	letter-spacing: 0.02em;
	color: var(--lb-ivory-300);
}

.lb-status__glow {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--lb-gold-400);
	box-shadow: 0 0 18px 6px rgba(233, 194, 122, 0.45);
	animation: lb-lantern 2.4s ease-in-out infinite;
}

.lb-root[data-lb-state="error"] .lb-status__glow {
	animation: none;
	opacity: 0.5;
}

@keyframes lb-lantern {
	0%, 100% { opacity: 0.55; transform: scale(0.9); }
	50% { opacity: 1; transform: scale(1.05); }
}

/* Scene canvas */
.lb-canvas {
	display: block;
	width: 100%;
	height: 100%;
	outline: none;
}

/*
 * 0.18.4 (Alex's pick B from pictures): a faint 1 px ring. It shows whenever the scene has the
 * keyboard focus after a key, also when Escape closes a panel and hands the focus back; the 2 px gold
 * one read as a stray square.
 */
.lb-canvas:focus-visible {
	outline: 1px solid rgba(243, 215, 155, 0.3);
	outline-offset: -4px;
}

/* In-scene controls */
.lb-controls {
	position: absolute;
	top: var(--lb-space-3);
	right: var(--lb-space-3);
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: var(--lb-space-2);
	max-width: calc(100% - var(--lb-space-6));
	padding: var(--lb-space-1) var(--lb-space-2);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-lg);
	background: var(--lb-panel-bg);
	font-size: 0.875rem;
}

/* 0.34.0 (Alex, the review's E1 C): the bar keeps its blur on computers only; on a phone it is
   redrawn over the moving scene every frame for a difference hard to see. */
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
	@media (min-width: 601px) and (hover: hover) {
		.lb-controls {
			-webkit-backdrop-filter: blur(8px);
			backdrop-filter: blur(8px);
		}
	}
}

.lb-root:not([data-lb-state="ready"]) .lb-controls {
	display: none;
}

.lb-button,
.lb-select {
	min-height: 32px;
	padding: var(--lb-space-1) var(--lb-space-3);
	border: 1px solid transparent;
	border-radius: var(--lb-radius-md);
	background: transparent;
	color: var(--lb-ivory-100);
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.lb-select {
	border-color: var(--lb-panel-border);
	background: rgba(11, 20, 38, 0.6);
}

.lb-button:hover {
	border-color: var(--lb-panel-border);
	color: var(--lb-gold-400);
}

.lb-button[aria-pressed="false"] {
	color: var(--lb-ivory-300);
}

.lb-button:focus-visible,
.lb-select:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 1px;
}

.lb-controls__quality {
	display: inline-flex;
	align-items: center;
	gap: var(--lb-space-2);
	color: var(--lb-ivory-300);
}

/* Customize panel (admins only): side drawer on desktop, bottom sheet on phones */
.lb-customize {
	position: absolute;
	top: 64px;
	right: var(--lb-space-3);
	bottom: var(--lb-space-3);
	z-index: 3;
	display: flex;
	flex-direction: column;
	width: min(360px, calc(100% - var(--lb-space-6)));
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-md);
	background: rgba(11, 20, 38, 0.88);
	font-size: 0.875rem;
	color: var(--lb-ivory-100);
}

.lb-customize[hidden] {
	display: none;
}

@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
	.lb-customize {
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
	}
}

.lb-customize__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--lb-space-2);
	padding: var(--lb-space-3) var(--lb-space-4) 0;
}

.lb-customize__title {
	margin: 0;
	font-family: var(--lb-font-display);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--lb-ivory-100);
}

.lb-customize__title:focus {
	outline: none;
}

.lb-customize__note {
	margin: var(--lb-space-1) var(--lb-space-4) var(--lb-space-2);
	color: var(--lb-gold-400);
	font-size: 0.8125rem;
}

.lb-customize__body {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	overflow-y: auto;
	padding: 0 var(--lb-space-4) var(--lb-space-3);
	overscroll-behavior: contain;
}

.lb-customize__group {
	padding: var(--lb-space-2) 0;
	border-top: 1px solid var(--lb-panel-border);
}

.lb-customize__group-title {
	margin: 0 0 var(--lb-space-2);
	font-weight: 600;
	color: var(--lb-ivory-100);
	cursor: pointer;
}

.lb-customize__editing {
	padding: var(--lb-space-3);
	margin: var(--lb-space-1) 0 var(--lb-space-2);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: rgba(233, 194, 122, 0.08);
}

.lb-customize__editing .lb-select {
	width: 100%;
	margin-top: var(--lb-space-1);
}

.lb-customize__style-line {
	display: flex;
	gap: var(--lb-space-2);
	align-items: center;
}

.lb-customize__style-line .lb-select {
	flex: 1 1 auto;
	min-width: 0;
}

.lb-customize__field {
	margin: var(--lb-space-2) 0 var(--lb-space-3);
}

.lb-customize__debug {
	margin-top: var(--lb-space-4);
}

.lb-customize__field-head {
	display: flex;
	justify-content: space-between;
	gap: var(--lb-space-2);
	margin-bottom: var(--lb-space-1);
}

.lb-customize__label {
	color: var(--lb-ivory-100);
}

.lb-customize__value {
	color: var(--lb-gold-400);
	font-variant-numeric: tabular-nums;
}

.lb-customize__range {
	width: 100%;
	accent-color: var(--lb-gold-400);
}

.lb-customize__color {
	width: 64px;
	height: 32px;
	padding: 2px;
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: rgba(11, 20, 38, 0.6);
	cursor: pointer;
}

.lb-customize__field .lb-select {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	text-overflow: ellipsis;
}

.lb-customize__switch {
	display: inline-flex;
	align-items: center;
	gap: var(--lb-space-2);
	color: var(--lb-ivory-300);
}

.lb-customize__check {
	width: 18px;
	height: 18px;
	accent-color: var(--lb-gold-400);
}

.lb-customize__help {
	margin: var(--lb-space-1) 0 0;
	color: var(--lb-ivory-300);
	font-size: 0.75rem;
	line-height: 1.4;
}

.lb-customize__hint {
	color: var(--lb-gold-400);
}

.lb-customize__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--lb-space-2);
	padding: var(--lb-space-3) var(--lb-space-4);
	border-top: 1px solid var(--lb-panel-border);
}

.lb-customize__status {
	flex: 1 1 10rem;
	margin: 0;
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
}

.lb-customize__actions {
	display: flex;
	gap: var(--lb-space-2);
}

.lb-button--primary {
	border-color: var(--lb-gold-400);
	background: var(--lb-gold-400);
	color: var(--lb-ink-900);
	font-weight: 600;
}

.lb-button--primary:hover {
	background: var(--lb-ivory-100);
	color: var(--lb-ink-900);
}

.lb-button--quiet {
	border-color: var(--lb-panel-border);
}

.lb-button:disabled,
.lb-button:disabled:hover {
	opacity: 0.45;
	cursor: default;
	border-color: transparent;
	background: transparent;
	color: var(--lb-ivory-300);
}

.lb-customize__close:focus-visible,
.lb-customize input:focus-visible,
.lb-customize summary:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 2px;
}

.lb-button--customize[aria-expanded="true"] {
	border-color: var(--lb-gold-400);
	color: var(--lb-gold-400);
}

@media (max-width: 600px) {
	.lb-customize {
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 60%;
		border-radius: var(--lb-radius-md) var(--lb-radius-md) 0 0;
	}
}

/* Admin-only notes inside the scene */
.lb-preview-note {
	position: absolute;
	top: var(--lb-space-3);
	left: 50%;
	margin: 0;
	padding: var(--lb-space-1) var(--lb-space-3);
	transform: translateX(-50%);
	border-radius: var(--lb-radius-lg);
	background: rgba(184, 137, 74, 0.92);
	color: var(--lb-ink-900);
	font-size: 0.8125rem;
	font-weight: 600;
	pointer-events: none;
}

/* The clock (Alex, 0.12.0): plain text with a soft shadow at the top-left; the colon blinks. */
/* 0.14.2 (Alex; "B Engraved"): the time in the serif with a gold colon, a gold hairline with a
   small heart, the date in small capitals; no panel, a soft shadow for any sky. */
.lb-clock {
	position: absolute;
	top: var(--lb-space-3);
	left: var(--lb-space-4);
	z-index: 1;
	color: var(--lb-ivory-100);
	text-align: center;
	pointer-events: none;
	user-select: none;
}

.lb-clock[hidden] {
	display: none;
}

.lb-clock__time {
	font-family: var(--lb-font-display);
	font-size: 2.375rem;
	line-height: 1;
	letter-spacing: 0.06em;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65), 0 0 18px rgba(0, 0, 0, 0.4);
}

.lb-clock__colon {
	color: var(--lb-gold-400);
}

.lb-clock__ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 6px 0 5px;
	color: var(--lb-gold-400);
	font-size: 9px;
	line-height: 1;
}

.lb-clock__ornament::before,
.lb-clock__ornament::after {
	content: "";
	width: 34px;
	height: 1px;
	background: linear-gradient(90deg, rgba(233, 194, 122, 0), rgba(233, 194, 122, 0.75));
}

.lb-clock__ornament::after {
	transform: scaleX(-1);
}

.lb-clock__date {
	color: var(--lb-ivory-100);
	opacity: 0.88;
	font: 600 0.625rem/1 var(--lb-font-ui);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
	white-space: nowrap;
}

.lb-root:not([data-lb-state="ready"]) .lb-clock {
	display: none;
}

/* A narrow bridge: below the control bar when the two would meet. */
.lb-root--clock-below .lb-clock {
	top: 64px;
}

.lb-clock__colon {
	animation: lb-clock-blink 1s steps(1, end) infinite;
}

.lb-clock--still .lb-clock__colon {
	animation: none;
}

@keyframes lb-clock-blink {
	50% {
		opacity: 0;
	}
}

.lb-debug {
	position: absolute;
	top: var(--lb-space-3);
	left: var(--lb-space-3);
	margin: 0;
	padding: var(--lb-space-2) var(--lb-space-3);
	border-radius: var(--lb-radius-sm);
	background: rgba(0, 0, 0, 0.62);
	color: var(--lb-success-100);
	font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	pointer-events: none;
	white-space: pre;
}

/* The admin debug overlay moves just below the clock (0.14.2: time, ornament and date). */
.lb-root--clock .lb-debug {
	top: calc(var(--lb-space-3) + 5rem);
}

/* 0.14.1: the visitor's frames-per-second readout ("Show FPS"), under the clock; the debug panel
   moves below it when both show. */
.lb-fps {
	position: absolute;
	top: var(--lb-space-3);
	left: var(--lb-space-4);
	z-index: 1;
	color: var(--lb-ivory-100);
	font: 600 0.875rem/1.3 var(--lb-font-ui);
	font-variant-numeric: tabular-nums;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.45);
	pointer-events: none;
}

.lb-fps[hidden] {
	display: none;
}

.lb-root--clock .lb-fps {
	top: calc(var(--lb-space-3) + 4.75rem);
}

.lb-root--clock.lb-root--clock-below .lb-fps {
	top: calc(64px + 4.75rem);
}

.lb-root--fps .lb-debug {
	margin-top: 1.5rem;
}

.lb-root:not([data-lb-state="ready"]) .lb-fps {
	display: none;
}

.lb-root--clock.lb-root--clock-below .lb-debug {
	top: calc(64px + 5rem);
}

/* 0.16.0 (Alex, look "A"): the music button in the control bar, between View and full screen, like
   the full-screen button; a gold edge while the music plays. Hovering it, or keyboard focus on it or
   the slider, opens a small "Music" panel with the volume slider under the bar at its right edge. The
   panel hides by opacity, not display or visibility, so the slider stays in the Tab order. Computers
   only: a touch device gets no button. */
.lb-music {
	display: inline-flex;
	align-items: center;
}

.lb-music__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	padding: var(--lb-space-1);
	border-color: var(--lb-panel-border);
	color: var(--lb-ivory-100);
}

.lb-music__toggle:hover {
	color: var(--lb-gold-400);
}

.lb-music--on .lb-music__toggle {
	border-color: var(--lb-gold-400);
	color: var(--lb-gold-400);
}

.lb-music__toggle svg {
	display: block;
}

/* Placed against the bar (the wrapper has no position of its own). */
.lb-music__panel {
	position: absolute;
	top: calc(100% + var(--lb-space-1));
	right: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-md);
	background: rgba(11, 20, 38, 0.94);
	color: var(--lb-ivory-100);
	font-size: 0.8rem;
	white-space: nowrap;
	opacity: 0;
	pointer-events: none;
}

/* Covers the small gap above the panel, so the pointer can move from the button to the slider. */
.lb-music__panel::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 100%;
	left: 0;
	height: calc(var(--lb-space-1) + 2px);
}

.lb-music:hover .lb-music__panel,
.lb-music:has(:focus-visible) .lb-music__panel {
	opacity: 1;
	pointer-events: auto;
}

/* The View menu opens in the same place: the panel gives way to it (even on hover or focus). */
.lb-controls--open .lb-music__panel,
.lb-controls--open .lb-music:hover .lb-music__panel,
.lb-controls--open .lb-music:has(:focus-visible) .lb-music__panel {
	opacity: 0;
	pointer-events: none;
}

.lb-music__volume {
	width: 110px;
	margin: 0;
	accent-color: var(--lb-gold-400);
}

.lb-music__volume:focus-visible {
	outline: 2px solid var(--lb-gold-400);
	outline-offset: 2px;
}

/* ?audiodebug=1: buttons for every playlist and sound. */
.lb-music-debug {
	position: absolute;
	top: 40%;
	left: var(--lb-space-4);
	z-index: 4;
	max-width: min(360px, calc(100% - var(--lb-space-8)));
	padding: var(--lb-space-2) var(--lb-space-3);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: var(--lb-panel-bg);
	color: var(--lb-ivory-100);
	font: 0.75rem/1.4 var(--lb-font-ui);
}

.lb-music-debug__title {
	margin: 0 0 var(--lb-space-1);
	font-weight: 600;
}

.lb-music-debug__row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lb-space-1);
	margin-bottom: var(--lb-space-1);
}

.lb-music-debug__button {
	padding: 2px 8px;
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.lb-music-debug__button[aria-pressed="true"] {
	border-color: var(--lb-gold-400);
	color: var(--lb-gold-400);
}

.lb-music-debug__readout {
	margin: var(--lb-space-1) 0 0;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
}

/* Fallback (no WebGL, or no JavaScript): the explanation, then the list of locks */
.lb-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--lb-space-4);
	padding: var(--lb-space-6);
	overflow: auto;
}

.lb-fallback > .lb-list {
	width: 100%;
	max-width: 40rem;
	padding: var(--lb-space-4) var(--lb-space-6);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-lg);
	background: var(--lb-panel-bg);
}

.lb-fallback[hidden] {
	display: none;
}

/* 0.18.4: with JavaScript (the root marked before the fallback is parsed), hidden from the start
   unless the app finds no WebGL; without JavaScript, shown. */
.lb-root[data-lb-js]:not([data-lb-state="webgl-unavailable"]) > .lb-fallback {
	display: none;
}

.lb-fallback__inner {
	max-width: 34rem;
	padding: var(--lb-space-6);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-lg);
	background: var(--lb-panel-bg);
	text-align: center;
}

@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
	.lb-fallback__inner {
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}
}

.lb-fallback__art {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	margin: 0 auto var(--lb-space-4);
	border-radius: var(--lb-radius-sm);
}

.lb-fallback__title {
	margin: 0 0 var(--lb-space-2);
	font-family: var(--lb-font-display);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.25;
	color: var(--lb-ivory-100);
}

.lb-fallback__text {
	margin: 0 0 var(--lb-space-2);
	color: var(--lb-ivory-300);
}

/* 0.18.4 (Alex's SEO item 2): the welcome card's message first, styled like the title and text
   above; then the line about the 3D view, small. */
.lb-fallback__welcome :is(h1, h2, h3, h4) {
	margin: 0 0 var(--lb-space-2);
	font-family: var(--lb-font-display);
	font-size: 1.5rem;
	font-weight: 400;
	line-height: 1.25;
	color: var(--lb-ivory-100);
}

.lb-fallback__welcome :is(p, ul, ol) {
	margin: 0 0 var(--lb-space-2);
	color: var(--lb-ivory-300);
}

.lb-fallback__welcome img {
	max-width: 100%;
	height: auto;
}

.lb-fallback__note {
	margin: 0 0 var(--lb-space-2);
	font-size: 0.85em;
	color: var(--lb-ivory-300);
	opacity: 0.8;
}

/* Footer links */
.lb-footer {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--lb-space-2) var(--lb-space-4);
	padding: var(--lb-space-2) var(--lb-space-4);
	font-size: 0.875rem;
	/* background: linear-gradient(0deg, rgba(11, 20, 38, 0.75), transparent); */
}

.lb-footer__account,
.lb-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lb-space-4);
}

.lb-link {
	color: var(--lb-gold-400);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.lb-link:hover {
	color: var(--lb-ivory-100);
}

.lb-link:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 2px;
	border-radius: 2px;
}

/* Admin-only note for a second [love_bridge] on one page (outside the plugin roots, so its own
   colours rather than the tokens). */
.lb-admin-notice {
	margin: 1em 0;
	padding: 12px 16px;
	border-left: 4px solid #b8894a;
	background: #fff8e6;
	color: #3c2f1a;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
}

/* ------------------------------------------------------------------ Stage 3: locks */

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

.lb-stage--pointer .lb-canvas {
	cursor: pointer;
}

/* Keyboard locks region: sits over the scene, never takes pointer input. */
.lb-locknav {
	position: absolute;
	inset: 0;
	pointer-events: none;
	outline: none;
}

.lb-locknav:focus-visible {
	box-shadow: inset 0 0 0 2px var(--lb-focus);
}

.lb-root:not([data-lb-state="ready"]) .lb-locknav {
	display: none;
}

/* Hover tooltip: the inscription. */
/* Camera tours, reduced motion (0.9.1): a soft fade between two still views. */
.lb-tour-fade {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: var(--lb-midnight-900);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.6s ease;
}

.lb-tour-fade--on {
	opacity: 1;
}

.lb-tour-fade[hidden] {
	display: none;
}

/*
 * Guided tour subtitles (0.14.2, Settings > Camera tour): the layer of the tour's fade, later in
 * the page so above it. Both lines share one grid cell, so one eases into the other in place.
 */
.lb-subtitles {
	position: absolute;
	right: 0;
	bottom: var(--lb-sub-margin, 10%);
	left: 0;
	z-index: 2;
	display: grid;
	justify-items: center;
	padding: 0 var(--lb-space-4);
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.lb-subtitles[data-lb-position="top"] {
	top: var(--lb-sub-margin, 10%);
	bottom: auto;
}

.lb-subtitles[hidden] {
	display: none;
}

.lb-subtitles--out {
	opacity: 0;
}

.lb-subtitles__line {
	grid-area: 1 / 1;
	max-width: min(52rem, 88%);
	margin: 0;
	color: var(--lb-sub-color, #fff6e6);
	font-family: var(--lb-font-display);
	font-size: min(var(--lb-sub-size, 26px), 5.6vw);
	line-height: 1.3;
	text-align: center;
	text-wrap: balance;
	text-shadow: 0 1px 2px rgba(5, 10, 24, 0.85), 0 0 14px rgba(5, 10, 24, 0.7);
	opacity: 0;
}

.lb-subtitles[data-lb-font="ui"] .lb-subtitles__line {
	font-family: var(--lb-font-ui);
}

.lb-subtitles[data-lb-background="band"] .lb-subtitles__line {
	padding: 0.25em 0.8em;
	border-radius: var(--lb-radius-sm);
	background: rgba(11, 20, 38, 0.62);
	text-shadow: none;
}

.lb-subtitles[data-lb-background="none"] .lb-subtitles__line {
	text-shadow: none;
}

.lb-tooltip {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	max-width: 18rem;
	padding: var(--lb-space-1) var(--lb-space-3);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: rgba(11, 20, 38, 0.88);
	color: var(--lb-ivory-100);
	font-family: var(--lb-font-display);
	font-size: 1rem;
	line-height: 1.3;
	white-space: nowrap;
	pointer-events: none;
	unicode-bidi: isolate;
}

.lb-tooltip[hidden] {
	display: none;
}

/* Short messages over the scene. */
.lb-notice {
	position: absolute;
	top: 64px;
	left: 50%;
	z-index: 4;
	max-width: calc(100% - var(--lb-space-6));
	margin: 0;
	padding: var(--lb-space-2) var(--lb-space-4);
	transform: translateX(-50%);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-md);
	background: rgba(11, 20, 38, 0.9);
	color: var(--lb-ivory-100);
	font-size: 0.875rem;
	text-align: center;
}

.lb-notice[hidden] {
	display: none;
}

.lb-button--discover {
	border-color: var(--lb-panel-border);
	color: var(--lb-gold-400);
}

/* The sheet: story panel and discovery. Side panel on desktop, bottom sheet on phones. */
.lb-sheet {
	position: absolute;
	top: 64px;
	right: var(--lb-space-3);
	bottom: var(--lb-space-3);
	z-index: 3;
	display: flex;
	flex-direction: column;
	width: min(380px, calc(100% - var(--lb-space-6)));
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-md);
	/* 0.34.0 (Alex, E1 C): no background blur, a little darker instead (as calm, no blur work). */
	background: rgba(11, 20, 38, 0.97);
	color: var(--lb-ivory-100);
	font-size: 0.9375rem;
}

.lb-sheet[hidden] {
	display: none;
}

.lb-sheet__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--lb-space-2);
	padding: var(--lb-space-3) var(--lb-space-4) var(--lb-space-2);
	border-bottom: 1px solid var(--lb-panel-border);
}

.lb-sheet__back {
	flex: 0 0 100%;
	align-self: flex-start;
	padding-left: 0;
	color: var(--lb-gold-400);
	text-align: left;
}

.lb-sheet__back[hidden] {
	display: none;
}

.lb-sheet__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-family: var(--lb-font-display);
	font-size: 1.625rem;
	font-weight: 400;
	line-height: 1.2;
	overflow-wrap: anywhere;
	color: var(--lb-ivory-100);
	unicode-bidi: isolate;
}

.lb-sheet[data-lb-view="discover"] .lb-sheet__title {
	font-size: 1.25rem;
}

.lb-sheet__title:focus {
	outline: none;
}

.lb-sheet__close {
	flex: 0 0 auto;
	min-width: 36px;
	font-size: 1.375rem;
	line-height: 1;
}

.lb-sheet__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: var(--lb-space-3) var(--lb-space-4) var(--lb-space-4);
	overscroll-behavior: contain;
}

/* 0.16.0 (Alex, look "A"): the panels that scroll get a slim gold bar on a clear track, no arrows,
   instead of the browser's own (a white track beside a dark panel). Standard properties for
   Chrome, Edge and Firefox; the -webkit- ones for Safari and older Chrome (which ignores them once
   the standard ones apply). 0.39.1 (Alex: "The scrollbar of the games list selection should be a preaty one
   as we have already done at the dialog when we are placing a lock"): the mini games' cards too. */
.lb-sheet__body,
.lb-customize__body,
.lb-fallback,
.lb-game-card,
.lb-game-picks {
	scrollbar-width: thin;
	scrollbar-color: rgba(233, 194, 122, 0.6) transparent;
}

.lb-sheet__body::-webkit-scrollbar,
.lb-customize__body::-webkit-scrollbar,
.lb-fallback::-webkit-scrollbar,
.lb-game-card::-webkit-scrollbar,
.lb-game-picks::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.lb-sheet__body::-webkit-scrollbar-track,
.lb-customize__body::-webkit-scrollbar-track,
.lb-fallback::-webkit-scrollbar-track,
.lb-game-card::-webkit-scrollbar-track,
.lb-game-picks::-webkit-scrollbar-track {
	background: transparent;
}

.lb-sheet__body::-webkit-scrollbar-thumb,
.lb-customize__body::-webkit-scrollbar-thumb,
.lb-fallback::-webkit-scrollbar-thumb,
.lb-game-card::-webkit-scrollbar-thumb,
.lb-game-picks::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background: rgba(233, 194, 122, 0.6);
}

.lb-sheet__body::-webkit-scrollbar-button,
.lb-customize__body::-webkit-scrollbar-button,
.lb-fallback::-webkit-scrollbar-button,
.lb-game-card::-webkit-scrollbar-button,
.lb-game-picks::-webkit-scrollbar-button {
	display: none;
}

.lb-sheet__status {
	margin: var(--lb-space-2) 0;
	color: var(--lb-ivory-300);
}

.lb-sheet__status[hidden] {
	display: none;
}

.lb-sheet a:focus-visible,
.lb-sheet button:focus-visible,
.lb-sheet input:focus-visible,
.lb-sheet select:focus-visible,
.lb-sheet summary:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.lb-sheet {
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 60%;
		border-radius: var(--lb-radius-md) var(--lb-radius-md) 0 0;
	}
}

/* Story panel content */
.lb-story-meta,
.lb-story-where {
	margin: 0 0 var(--lb-space-1);
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-story-where {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lb-space-1) var(--lb-space-3);
	margin-bottom: var(--lb-space-3);
}

.lb-story-where__id {
	color: var(--lb-gold-400);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

.lb-story-private {
	margin: var(--lb-space-3) 0 0;
	padding: var(--lb-space-3);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: rgba(233, 194, 122, 0.08);
	color: var(--lb-ivory-100);
}

.lb-story-photo {
	margin: 0 0 var(--lb-space-3);
}

.lb-story-photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--lb-radius-sm);
}

.lb-story-text {
	unicode-bidi: isolate;
	overflow-wrap: anywhere;
}

.lb-story-text p {
	margin: 0 0 var(--lb-space-3);
}

.lb-story-long {
	margin: 0 0 var(--lb-space-3);
}

.lb-story-long summary {
	margin-bottom: var(--lb-space-2);
	color: var(--lb-gold-400);
	cursor: pointer;
}

.lb-story-link {
	margin: 0 0 var(--lb-space-3);
	overflow-wrap: anywhere;
}

.lb-story-link a {
	unicode-bidi: isolate;
}

.lb-story-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lb-space-2);
	margin-top: var(--lb-space-4);
}

.lb-story-actions .lb-button {
	text-decoration: none;
}

.lb-story-share-status {
	min-height: 1.5em;
	margin: var(--lb-space-2) 0 0;
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

/* Discovery */
.lb-discover__label {
	display: block;
	margin-bottom: var(--lb-space-1);
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-discover__row {
	display: flex;
	gap: var(--lb-space-2);
}

.lb-discover__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 36px;
	padding: var(--lb-space-1) var(--lb-space-3);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: rgba(11, 20, 38, 0.6);
	color: var(--lb-ivory-100);
	font: inherit;
}

.lb-discover__tabs {
	display: flex;
	gap: var(--lb-space-1);
	margin: var(--lb-space-4) 0 var(--lb-space-3);
	border-bottom: 1px solid var(--lb-panel-border);
}

.lb-discover__tab {
	padding: var(--lb-space-2) var(--lb-space-3);
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--lb-ivory-300);
	font: inherit;
	cursor: pointer;
}

.lb-discover__tab[aria-selected="true"] {
	border-bottom-color: var(--lb-gold-400);
	color: var(--lb-ivory-100);
}

.lb-discover__section {
	margin-bottom: var(--lb-space-3);
}

.lb-discover__section[hidden] {
	display: none;
}

.lb-discover__select {
	width: 100%;
}

.lb-discover__status {
	margin: 0 0 var(--lb-space-2);
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-discover__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lb-discover__pick {
	display: flex;
	align-items: center;
	gap: var(--lb-space-3);
	width: 100%;
	padding: var(--lb-space-2);
	border: 1px solid transparent;
	border-radius: var(--lb-radius-sm);
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.lb-discover__pick:hover {
	border-color: var(--lb-panel-border);
	background: rgba(233, 194, 122, 0.06);
}

.lb-discover__image {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	object-fit: contain;
}

.lb-discover__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.lb-discover__inscription {
	font-family: var(--lb-font-display);
	font-size: 1.125rem;
	line-height: 1.25;
	overflow-wrap: anywhere;
	unicode-bidi: isolate;
}

.lb-discover__meta,
.lb-discover__where {
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
}

.lb-discover__more {
	margin-top: var(--lb-space-2);
}

.lb-discover__more[hidden] {
	display: none;
}

/* ------------------------------------------------------------------ [love_bridge_list] */

.lb-list {
	box-sizing: border-box;
	color: var(--lb-ivory-100);
	font-family: var(--lb-font-ui);
	line-height: 1.5;
}

.lb-list:not(.lb-fallback > .lb-list) {
	padding: var(--lb-space-6);
	border-radius: var(--lb-radius-md);
	background: linear-gradient(180deg, var(--lb-midnight-700) 0%, var(--lb-midnight-900) 100%);
}

.lb-list *,
.lb-list *::before,
.lb-list *::after {
	box-sizing: inherit;
}

.lb-list__title {
	margin: 0 0 var(--lb-space-3);
	font-family: var(--lb-font-display);
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--lb-ivory-100);
}

.lb-list__form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--lb-space-3);
}

.lb-list__field {
	display: flex;
	flex: 1 1 12rem;
	flex-direction: column;
	gap: var(--lb-space-1);
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-list__field input,
.lb-list__field select {
	min-height: 36px;
	padding: var(--lb-space-1) var(--lb-space-3);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: rgba(11, 20, 38, 0.6);
	color: var(--lb-ivory-100);
	font: inherit;
	font-size: 1rem;
}

.lb-list__submit {
	min-height: 36px;
	padding: var(--lb-space-1) var(--lb-space-4);
	border: 1px solid var(--lb-gold-400);
	border-radius: var(--lb-radius-sm);
	background: var(--lb-gold-400);
	color: var(--lb-ink-900);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.lb-list__status {
	margin: var(--lb-space-4) 0 var(--lb-space-2);
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-list__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* [love_bridge_credits] (0.28.0, Alex's pick A): the list's midnight panel, a gold heading per
   group, one line per work with what it is used for underneath. */
.lb-credits__title {
	margin-bottom: var(--lb-space-1);
}

.lb-credits__intro {
	margin: 0 0 var(--lb-space-4);
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-credits__group {
	margin: var(--lb-space-6) 0 var(--lb-space-2);
	padding-bottom: var(--lb-space-1);
	border-bottom: 1px solid var(--lb-panel-border);
	color: var(--lb-gold-400);
	font-family: var(--lb-font-display);
	font-size: 1.15rem;
	font-weight: 400;
}

.lb-credits__items {
	margin: 0;
	padding: 0;
	list-style: none;
}

.lb-credits__item {
	padding: 6px 0;
	border-bottom: 1px solid rgba(233, 194, 122, 0.08);
	overflow-wrap: anywhere;
}

.lb-credits__item a {
	color: var(--lb-ivory-100);
	text-decoration: underline;
	text-decoration-color: var(--lb-gold-400);
}

.lb-credits__note {
	display: block;
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
}

.lb-list__item {
	display: flex;
	align-items: center;
	gap: var(--lb-space-3);
	padding: var(--lb-space-2) 0;
	border-top: 1px solid var(--lb-panel-border);
}

.lb-list__image {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.lb-list__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.lb-list__inscription {
	color: var(--lb-gold-400);
	font-family: var(--lb-font-display);
	font-size: 1.25rem;
	line-height: 1.25;
	overflow-wrap: anywhere;
	unicode-bidi: isolate;
}

.lb-list__meta {
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
}

.lb-list__pages {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lb-space-2);
	margin-top: var(--lb-space-4);
}

.lb-list__page {
	min-width: 36px;
	padding: var(--lb-space-1) var(--lb-space-2);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	color: var(--lb-ivory-100);
	text-align: center;
	text-decoration: none;
}

.lb-list__page[aria-current="page"] {
	border-color: var(--lb-gold-400);
	color: var(--lb-gold-400);
}

.lb-list a:focus-visible,
.lb-list input:focus-visible,
.lb-list select:focus-visible,
.lb-list button:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ Story page */

.lb-story {
	box-sizing: border-box;
	max-width: 46rem;
	margin: var(--lb-space-8) auto;
	padding: 0 var(--lb-space-4);
	font-family: var(--lb-font-ui);
	line-height: 1.6;
}

.lb-story *,
.lb-story *::before,
.lb-story *::after {
	box-sizing: inherit;
}

.lb-story__card {
	padding: var(--lb-space-8);
	border-radius: var(--lb-radius-lg);
	background:
		radial-gradient(120% 60% at 50% 0%, rgba(31, 111, 120, 0.35) 0%, transparent 60%),
		linear-gradient(180deg, var(--lb-midnight-700) 0%, var(--lb-midnight-900) 100%);
	color: var(--lb-ivory-100);
}

.lb-story__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--lb-space-6);
	margin-bottom: var(--lb-space-6);
}

.lb-story__lock {
	flex: 0 0 auto;
	width: 160px;
	height: 160px;
	object-fit: contain;
}

.lb-story__heading {
	flex: 1 1 16rem;
	min-width: 0;
}

.lb-story__eyebrow {
	margin: 0 0 var(--lb-space-1);
	color: var(--lb-gold-400);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lb-story__inscription,
.lb-story__title {
	margin: 0 0 var(--lb-space-2);
	font-family: var(--lb-font-display);
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 400;
	line-height: 1.1;
	color: var(--lb-ivory-100);
	overflow-wrap: anywhere;
	unicode-bidi: isolate;
}

.lb-story__title {
	font-size: clamp(1.5rem, 4vw, 2.25rem);
}

.lb-story__meta,
.lb-story__where,
.lb-story__text {
	margin: 0 0 var(--lb-space-1);
	color: var(--lb-ivory-300);
}

.lb-story__meta span + span,
.lb-story__where .lb-story__id {
	margin-left: var(--lb-space-1);
}

.lb-story__id {
	color: var(--lb-gold-400);
	letter-spacing: 0.04em;
}

.lb-story__note {
	margin: 0 0 var(--lb-space-4);
	padding: var(--lb-space-3);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: rgba(233, 194, 122, 0.08);
}

.lb-story__photo {
	margin: 0 0 var(--lb-space-6);
}

.lb-story__photo img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--lb-radius-md);
}

.lb-story__message {
	font-size: 1.125rem;
	unicode-bidi: isolate;
	overflow-wrap: anywhere;
}

.lb-story__message p {
	margin: 0 0 var(--lb-space-4);
}

.lb-story__long summary {
	margin-bottom: var(--lb-space-3);
	color: var(--lb-gold-400);
	cursor: pointer;
}

.lb-story__link {
	overflow-wrap: anywhere;
}

.lb-story a {
	color: var(--lb-gold-400);
}

.lb-story__link a {
	unicode-bidi: isolate;
}

.lb-story__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--lb-space-3);
	margin-top: var(--lb-space-6);
}

.lb-story__button {
	display: inline-block;
	min-height: 40px;
	padding: var(--lb-space-2) var(--lb-space-4);
	border: 1px solid var(--lb-gold-400);
	border-radius: var(--lb-radius-sm);
	background: var(--lb-gold-400);
	color: var(--lb-ink-900) !important;
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
}

.lb-story__button--quiet {
	background: transparent;
	color: var(--lb-gold-400) !important;
}

.lb-story__button[hidden],
.lb-story__permalink[hidden] {
	display: none;
}

.lb-story__share-status {
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-story__permalink {
	display: flex;
	flex-direction: column;
	gap: var(--lb-space-1);
	margin: var(--lb-space-4) 0 0;
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

/* Two classes (0.17.0): a theme's text-field style (input[type=text]) must not win. */
.lb-story .lb-story__url {
	width: 100%;
	padding: var(--lb-space-2) var(--lb-space-3);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: rgba(11, 20, 38, 0.6);
	color: var(--lb-ivory-100);
	font: inherit;
}

.lb-story a:focus-visible,
.lb-story button:focus-visible,
.lb-story input:focus-visible,
.lb-story summary:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 2px;
}

/* 0.17.0 (Alex): the invitation at the end of a story, to leave your own lock. */
.lb-story__invite {
	display: flex;
	align-items: center;
	gap: var(--lb-space-4);
	margin-top: var(--lb-space-8);
	padding: 20px var(--lb-space-6);
	border: 1px solid rgba(233, 194, 122, 0.28);
	background: rgba(233, 194, 122, 0.06);
}

.lb-story__invite-lock {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.lb-story__invite-text {
	flex: 1 1 auto;
	min-width: 0;
}

.lb-story .lb-story__invite-title {
	margin: 0;
	color: var(--lb-ivory-100);
	font-family: var(--lb-font-display);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1.3;
}

.lb-story__invite-text p {
	margin: 2px 0 0;
	color: var(--lb-ivory-300);
	font-size: 0.9375rem;
}

.lb-story__invite .lb-story__button {
	flex: 0 0 auto;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.lb-story__card {
		padding: var(--lb-space-6) var(--lb-space-4);
	}

	.lb-story__lock {
		width: 112px;
		height: 112px;
	}

	.lb-story__invite {
		flex-wrap: wrap;
		padding: var(--lb-space-4);
	}

	.lb-story__invite .lb-story__button {
		width: 100%;
		text-align: center;
	}
}

/* ------------------------------------------------------------------ Stage 4: control bar */

.lb-button--create {
	white-space: nowrap;
}

/* The control bar (Alex, Stage 4; every screen size since 0.7.1): Place a lock, Discover and View
   on one row; the view settings open from View as a small menu under the bar. */
.lb-controls__view {
	display: inline-block;
	border-color: var(--lb-panel-border);
}

.lb-controls__menu {
	position: absolute;
	top: calc(100% + var(--lb-space-1));
	right: 0;
	z-index: 4;
	display: none;
	flex-direction: column;
	align-items: stretch;
	gap: var(--lb-space-2);
	min-width: 200px;
	padding: var(--lb-space-2);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-md);
	background: rgba(11, 20, 38, 0.94);
}

.lb-controls--open .lb-controls__menu {
	display: flex;
}

.lb-controls__menu .lb-button {
	text-align: left;
}

/* 0.27.2: entries left out during a ride (a theme's button display would show them). */
.lb-controls__menu .lb-button[hidden] {
	display: none;
}

.lb-controls__view[aria-expanded="true"] {
	border-color: var(--lb-gold-400);
	color: var(--lb-gold-400);
}

/* Stage 5 (Alex): the full-screen icon button after View. */
.lb-controls__fullscreen {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	padding: var(--lb-space-1);
	border-color: var(--lb-panel-border);
}

.lb-controls__fullscreen[aria-pressed="false"] {
	color: var(--lb-ivory-100);
}

.lb-controls__fullscreen[aria-pressed="false"]:hover {
	color: var(--lb-gold-400);
}

.lb-controls__fullscreen svg {
	display: block;
}

/* 0.18.0 (Alex): the help card's "?", drawn like the full-screen button, first in the bar. */
.lb-controls__help {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	padding: var(--lb-space-1);
	border-color: var(--lb-panel-border);
}

.lb-controls__help svg {
	display: block;
}

.lb-controls__fullscreen[aria-pressed="true"] .lb-fs-enter,
.lb-controls__fullscreen[aria-pressed="false"] .lb-fs-exit {
	display: none;
}

/* Full screen: the bridge fills the screen (the browser's own full screen) or, where a page cannot
   do that (iPhone), the browser window, over the page, which stops scrolling meanwhile. */
.lb-root:fullscreen {
	width: 100%;
	height: 100%;
	min-height: 0;
	aspect-ratio: auto;
	border-radius: 0;
}

/* Older iPad Safari (prefixed API); a separate rule, as an unknown selector drops its whole rule. */
.lb-root:-webkit-full-screen {
	width: 100%;
	height: 100%;
	min-height: 0;
	aspect-ratio: auto;
	border-radius: 0;
}

.lb-root.lb-root--filled {
	position: fixed;
	inset: 0;
	z-index: 100000;
	width: auto;
	max-width: none;
	height: auto;
	min-height: 0;
	margin: 0;
	aspect-ratio: auto;
	border-radius: 0;
}

html.lb-filled-page,
html.lb-filled-page body {
	overflow: hidden;
}

/* ------------------------------------------------------------------ Stage 4: the wizard */

.lb-wiz {
	display: flex;
	flex-direction: column;
	gap: var(--lb-space-3);
}

.lb-wiz__progress {
	margin: 0;
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.lb-wiz__progress[hidden] {
	display: none;
}

.lb-wiz__heading {
	margin: 0;
	font-family: var(--lb-font-display);
	font-size: 1.375rem;
	font-weight: 400;
	line-height: 1.25;
	color: var(--lb-ivory-100);
}

.lb-wiz__heading:focus {
	outline: none;
}

.lb-wiz__hold {
	margin: 0;
	padding: var(--lb-space-2) var(--lb-space-3);
	border: 1px solid var(--lb-gold-400);
	color: var(--lb-gold-400);
	font-variant-numeric: tabular-nums;
}

.lb-wiz__hold[hidden] {
	display: none;
}

.lb-wiz__body {
	display: flex;
	flex-direction: column;
	gap: var(--lb-space-3);
}

.lb-wiz__text,
.lb-wiz__hint,
.lb-wiz__counter,
.lb-wiz__held {
	margin: 0;
}

.lb-wiz__hint,
.lb-wiz__counter {
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-wiz__held {
	color: var(--lb-gold-400);
}

.lb-wiz__status {
	min-height: 1.5em;
	margin: 0;
	color: var(--lb-ivory-300);
}

.lb-wiz__error {
	margin: var(--lb-space-1) 0 0;
	color: var(--lb-error-300);
	font-size: 0.875rem;
}

.lb-wiz__error::before {
	content: "! ";
	font-weight: 700;
}

.lb-wiz__error[hidden] {
	display: none;
}

.lb-wiz__field {
	display: flex;
	flex-direction: column;
	gap: var(--lb-space-1);
}

.lb-wiz__field[hidden] {
	display: none;
}

.lb-wiz__label {
	color: var(--lb-ivory-100);
	font-weight: 600;
}

.lb-wiz__input,
.lb-wiz__textarea,
.lb-wiz__select,
.lb-wiz__file {
	width: 100%;
	min-height: 40px;
	padding: var(--lb-space-2) var(--lb-space-3);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: rgba(11, 20, 38, 0.7);
	color: var(--lb-ivory-100);
	font: inherit;
	font-size: 1rem;
}

/*
 * 0.17.0: themes style every text field (HybridMag: input[type=text] with its own grey, border and
 * padding), one step stronger than a single class. The same look again, one class stronger, right
 * here so the later, more particular rules (an invalid field's border, the story address) still win.
 */
.lb-root .lb-wiz__input,
.lb-root .lb-wiz__textarea,
.lb-root .lb-wiz__select,
.lb-root .lb-wiz__file {
	padding: var(--lb-space-2) var(--lb-space-3);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: rgba(11, 20, 38, 0.7);
	color: var(--lb-ivory-100);
}

.lb-wiz__textarea {
	resize: vertical;
}

.lb-wiz__input--inscription {
	font-family: "Love Bridge Engraving", var(--lb-font-display);
	font-size: 1.25rem;
	letter-spacing: 0.03em;
}

.lb-wiz [aria-invalid="true"] {
	border-color: var(--lb-error-300);
}

.lb-wiz__choices {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lb-space-2);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.lb-wiz__choices legend {
	margin-bottom: var(--lb-space-2);
	padding: 0;
}

.lb-wiz__choice {
	display: flex;
	flex: 1 1 100%;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--lb-space-1) var(--lb-space-2);
	padding: var(--lb-space-2) var(--lb-space-3);
	border: 1px solid var(--lb-panel-border);
	cursor: pointer;
}

.lb-wiz__choice:has(input:checked) {
	border-color: var(--lb-gold-400);
	background: rgba(233, 194, 122, 0.08);
}

.lb-wiz__choice input {
	accent-color: var(--lb-gold-400);
}

.lb-wiz__choice-note,
.lb-wiz__choice-desc {
	flex: 1 1 100%;
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-wiz__choices--styles .lb-wiz__choice {
	flex: 1 1 calc(50% - var(--lb-space-2));
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	min-width: 0;
}

/* 0.14.2 (Alex): in a column a basis of 100 % is the tile's whole height, so the premium note
   ("with a paid duration, $2.00 more") wrapped into a second column outside the tile and the
   wizard scrolled sideways: in a style tile the note and description take their own height. */
.lb-wiz__choices--styles .lb-wiz__choice-note,
.lb-wiz__choices--styles .lb-wiz__choice-desc {
	flex: 0 0 auto;
	max-width: 100%;
}

.lb-wiz__choice-image {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.lb-wiz__actions,
.lb-wiz__nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lb-space-2);
	margin: 0;
}

/*
 * 0.18.3 (Alex, live): a row stretches its buttons to the tallest (the Google button, 40 px); a link
 * drawn as a button kept its words at the top of the taller box. Centred in it.
 */
.lb-wiz__actions a.lb-button {
	display: inline-flex;
	align-items: center;
}

.lb-wiz__nav {
	position: sticky;
	bottom: calc(-1 * var(--lb-space-4));
	justify-content: flex-end;
	padding: var(--lb-space-3) 0;
	background: rgba(11, 20, 38, 0.96);
}

.lb-wiz__cancel {
	margin-right: auto;
}

.lb-wiz__heart {
	align-self: flex-start;
}

.lb-wiz__photo img,
.lb-wiz__photo-image {
	display: block;
	max-width: 100%;
	height: auto;
}

.lb-wiz__review {
	display: grid;
	grid-template-columns: minmax(7rem, auto) 1fr;
	gap: var(--lb-space-1) var(--lb-space-3);
	margin: 0;
}

.lb-wiz__review dt {
	color: var(--lb-ivory-300);
}

.lb-wiz__review dd {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: var(--lb-space-2);
	margin: 0;
	overflow-wrap: anywhere;
}

.lb-wiz__review-value {
	unicode-bidi: isolate;
}

.lb-button--link {
	min-height: 0;
	padding: 0;
	color: var(--lb-gold-400);
	text-decoration: underline;
}

.lb-wiz__terms {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--lb-space-2);
}

.lb-wiz__terms input {
	margin-top: 0.3em;
	accent-color: var(--lb-gold-400);
}

.lb-wiz__terms label {
	flex: 1 1 0;
}

.lb-wiz__terms .lb-wiz__error {
	flex: 1 1 100%;
}

/* The live preview (3D canvas, or the pre-rendered image with the inscription under it). */
.lb-preview {
	position: relative;
	width: 100%;
	height: 200px;
	margin: 0;
	background: radial-gradient(60% 70% at 50% 45%, rgba(246, 240, 228, 0.12) 0%, transparent 70%);
}

.lb-preview__canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.lb-preview--image {
	display: flex;
	flex-direction: column;
	align-items: center;
	height: auto;
}

.lb-preview__image {
	width: 160px;
	height: 160px;
	object-fit: contain;
}

.lb-preview__engraving {
	min-height: 1.5em;
	font-family: "Love Bridge Engraving", var(--lb-font-display);
	font-size: 1.25rem;
	color: var(--lb-gold-400);
	unicode-bidi: isolate;
}

/* ------------------------------------------------------------------ Stage 4: dashboard */

.lb-root.lb-dash {
	aspect-ratio: auto;
	min-height: 0;
	overflow: visible;
	padding: var(--lb-space-6);
}

.lb-dash__title {
	margin: 0 0 var(--lb-space-3);
	font-family: var(--lb-font-display);
	font-size: 1.75rem;
	font-weight: 400;
	color: var(--lb-ivory-100);
}

.lb-dash__text,
.lb-dash__status,
.lb-dash__limits,
.lb-dash__note {
	margin: 0 0 var(--lb-space-3);
}

.lb-dash__status,
.lb-dash__limits,
.lb-dash__note,
.lb-dash__meta {
	color: var(--lb-ivory-300);
}

.lb-dash__status:empty,
.lb-dash__note:empty {
	display: none;
}

.lb-dash__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lb-space-2);
	margin: 0;
}

.lb-dash__account {
	margin-bottom: var(--lb-space-6);
}

/*
 * 0.17.0 (Alex): each lock in its own card, as many side by side as fit, each at least 26rem
 * (416 px, the action row on one line): two in a 1200 px page, one in a narrow theme column.
 */
.lb-dash__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
	align-items: start;
	gap: var(--lb-space-4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lb-dash__lock {
	display: flex;
	flex-direction: column;
	gap: var(--lb-space-3);
	margin: 0;
	padding: 20px;
	border: 1px solid var(--lb-panel-border);
	background: rgba(11, 20, 38, 0.45);
}

.lb-dash__head {
	display: flex;
	align-items: flex-start;
	gap: var(--lb-space-3);
}

.lb-dash__image {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.lb-dash__inscription {
	margin: 0;
	font-family: "Love Bridge Engraving", var(--lb-font-display);
	font-size: 1.375rem;
	font-weight: 600;
	color: var(--lb-ivory-100);
	unicode-bidi: isolate;
}

.lb-dash__meta,
.lb-dash__state {
	margin: var(--lb-space-1) 0 0;
}

.lb-badge {
	display: inline-block;
	padding: 0 var(--lb-space-2);
	border: 1px solid currentColor;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--lb-turquoise-400);
}

.lb-badge--soon {
	color: var(--lb-gold-400);
}

.lb-badge--expired,
.lb-badge--suspended {
	color: var(--lb-ivory-300);
}

.lb-dash__url {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--lb-space-2);
}

.lb-dash__url .lb-wiz__label {
	flex: 1 1 100%;
}

.lb-dash__url .lb-wiz__input {
	flex: 1 1 14rem;
	width: auto;
}

.lb-dash__actions--lock .lb-button {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: var(--lb-space-2) 14px;
}

.lb-dash__manage summary,
.lb-dash__edit summary {
	color: var(--lb-gold-400);
	cursor: pointer;
}

.lb-dash__manage > :not(summary) {
	margin-top: var(--lb-space-3);
}

.lb-dash__form,
.lb-dash__photo {
	display: flex;
	flex-direction: column;
	gap: var(--lb-space-3);
	margin-top: var(--lb-space-3);
}

.lb-dash__form .lb-button--primary {
	align-self: flex-start;
}

.lb-dash a:focus-visible,
.lb-dash button:focus-visible,
.lb-dash input:focus-visible,
.lb-dash textarea:focus-visible,
.lb-dash select:focus-visible,
.lb-dash summary:focus-visible,
.lb-list__create a:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 2px;
}

/* The wizard as a page dialog on the dashboard. */
.lb-sheet--page {
	position: fixed;
	top: 50%;
	right: auto;
	bottom: auto;
	left: 50%;
	z-index: 100000;
	width: min(560px, calc(100% - var(--lb-space-6)));
	max-height: min(90vh, 900px);
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 100vmax rgba(5, 9, 18, 0.6);
}

@media (max-width: 600px) {
	.lb-root.lb-dash {
		min-height: 0;
		padding: var(--lb-space-4);
	}

	.lb-sheet--page {
		top: auto;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 90vh;
		transform: none;
	}
}

.lb-list__create {
	margin: 0 0 var(--lb-space-4);
}

.lb-list__create .lb-button,
a.lb-button {
	display: inline-block;
	text-decoration: none;
}

/*
 * 0.17.0: a link drawn as a button keeps the button's colours. Themes colour and underline every
 * link in a page's content (HybridMag: html.hm-dark .entry-content a, light grey): stronger than
 * .lb-button--primary, it left light text on gold (1.45:1). As the story page's buttons already do.
 */
.lb-root a.lb-button,
.lb-list a.lb-button {
	color: var(--lb-ivory-100) !important;
	text-decoration: none !important;
}

.lb-root a.lb-button:hover,
.lb-list a.lb-button:hover {
	color: var(--lb-gold-400) !important;
}

.lb-root a.lb-button--primary,
.lb-root a.lb-button--primary:hover,
.lb-list a.lb-button--primary,
.lb-list a.lb-button--primary:hover {
	color: var(--lb-ink-900) !important;
}

.lb-wiz__any {
	align-self: flex-start;
}

/* ------------------------------------------------------------------ 0.7.0: time and date sliders */

.lb-controls__slider {
	display: grid;
	grid-template-columns: 3.5em 1fr auto;
	align-items: center;
	gap: var(--lb-space-2);
	color: var(--lb-ivory-300);
}

.lb-controls__slider input[type="range"] {
	width: 100%;
	min-height: 32px;
	accent-color: var(--lb-gold-400);
}

.lb-controls__value {
	min-width: 3.4em;
	color: var(--lb-ivory-100);
	font-variant-numeric: tabular-nums;
}

.lb-controls__locate,
.lb-controls__back {
	border-color: var(--lb-panel-border);
}

.lb-controls__locate[hidden],
.lb-controls__back[hidden] {
	display: none;
}

.lb-controls--previewing .lb-controls__value {
	color: var(--lb-gold-400);
}

/* 0.7.1: the season list at the top of the View menu, aligned with the sliders. */
/* 0.14.1: "Show FPS" in the View menu. */
.lb-controls__check {
	display: flex;
	align-items: center;
	gap: var(--lb-space-2);
	color: var(--lb-ivory-300);
	cursor: pointer;
}

.lb-controls__check input {
	width: 1.1em;
	height: 1.1em;
	margin: 0;
	accent-color: var(--lb-gold-400);
}

.lb-controls__season {
	display: grid;
	grid-template-columns: 3.5em 1fr;
	align-items: center;
	gap: var(--lb-space-2);
	color: var(--lb-ivory-300);
}

.lb-controls__slider input[type="range"]:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 2px;
}

/* ------------------------------------------------------------------ 0.7.0: browsing free spots */

.lb-wiz__browse {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--lb-space-2);
}

.lb-wiz__spot-of {
	flex: 1 1 100%;
	margin: 0;
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-wiz__next-part {
	align-self: flex-start;
}

.lb-wiz__next-part[hidden] {
	display: none;
}

/* ------------------------------------------------------------------ 0.7.0: the account page */

.lb-root.lb-account {
	aspect-ratio: auto;
	min-height: 0;
	max-width: 520px;
	overflow: visible;
	padding: var(--lb-space-6);
}

.lb-account__form {
	display: flex;
	flex-direction: column;
	gap: var(--lb-space-3);
	margin: 0 0 var(--lb-space-4);
}

.lb-account__form p {
	margin: 0;
}

.lb-account__check label {
	display: inline-flex;
	align-items: center;
	gap: var(--lb-space-2);
	color: var(--lb-ivory-300);
}

.lb-account__notice,
.lb-account__error {
	margin: 0 0 var(--lb-space-4);
	padding: var(--lb-space-2) var(--lb-space-3);
	border: 1px solid var(--lb-gold-400);
	color: var(--lb-ivory-100);
}

.lb-account__error {
	border-color: var(--lb-error-300);
}

.lb-account__error::before {
	content: "! ";
	font-weight: 700;
}

/* Never shown: bots fill it in. */
.lb-account__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lb-account a:focus-visible,
.lb-account button:focus-visible,
.lb-account input:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 2px;
}

.lb-account .lb-dash__links {
	gap: var(--lb-space-4);
}

@media (max-width: 600px) {
	.lb-root.lb-account {
		padding: var(--lb-space-4);
	}
}

/* ------------------------------------------------------------------ Stage 5: release, keepsakes, reports */

.lb-release,
.lb-report {
	display: flex;
	flex-direction: column;
	gap: var(--lb-space-3);
}

.lb-release__lock {
	margin: 0;
	color: var(--lb-gold-400);
	font-family: var(--lb-font-display);
	font-size: 1.15rem;
}

.lb-release__intro,
.lb-release__legal {
	margin: 0;
	color: var(--lb-ivory-300);
}

.lb-release__legal {
	font-size: 0.875rem;
}

.lb-release__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lb-space-2);
}

.lb-release__status:empty {
	display: none;
}

.lb-release__done {
	margin: 0;
	color: var(--lb-ivory-100);
}

.lb-story-actions--owner {
	align-items: center;
	margin-top: var(--lb-space-4);
	padding-top: var(--lb-space-3);
	border-top: 1px solid var(--lb-panel-border);
}

.lb-story-own {
	flex-basis: 100%;
	margin: 0;
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-story-report {
	align-self: flex-start;
	margin-top: var(--lb-space-4);
	font-size: 0.875rem;
}

.lb-button--danger {
	border-color: var(--lb-danger-300);
	background: rgba(150, 40, 40, 0.55);
	color: var(--lb-ivory-100);
}

.lb-dash__release {
	align-self: flex-start;
}

.lb-dash__lock {
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.lb-dash__lock--leaving {
	opacity: 0;
	transform: translateY(8px);
}

.lb-dash__keepsakes,
.lb-dash__emails {
	margin-top: var(--lb-space-8);
}

/* Alex (Stage 7): the holiday emails' box in "Your locks". */
.lb-dash__check {
	display: flex;
	gap: var(--lb-space-2);
	align-items: flex-start;
	max-width: 40rem;
	cursor: pointer;
}

.lb-dash__check input {
	margin-top: 0.25em;
}

.lb-dash__keepsakes-title {
	margin: 0 0 var(--lb-space-2);
	font-family: var(--lb-font-display);
	font-weight: 400; /* 0.17.0: a theme's bold headings otherwise (HybridMag) */
}

.lb-dash__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--lb-space-2);
}

.lb-dash__confirm {
	flex-basis: 100%;
	margin: 0;
}

/* Stage 6: paid durations, the way back from the checkout, payments in the dashboard. */
.lb-pay {
	display: flex;
	flex-direction: column;
	gap: var(--lb-space-3);
}

.lb-pay__title {
	margin: 0;
	font-family: var(--lb-font-display);
}

.lb-pay__status,
.lb-pay__text {
	margin: 0;
	color: var(--lb-ivory-100);
}

.lb-pay__status:empty {
	display: none;
}

.lb-pay__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lb-space-2);
}

.lb-pay__test {
	color: var(--lb-gold-400);
}

.lb-wiz__paid-only {
	color: var(--lb-ivory-300);
}

.lb-dash__extend {
	align-self: flex-start;
}

.lb-dash__waiting {
	margin-bottom: var(--lb-space-8);
}

.lb-dash__payments {
	margin-top: var(--lb-space-8);
}

.lb-dash__payments > summary {
	cursor: pointer;
	font-family: var(--lb-font-display);
}

.lb-dash__history {
	margin: var(--lb-space-2) 0 0;
	padding-left: var(--lb-space-4);
	color: var(--lb-ivory-300);
}

/* Sign in with Google (0.12.0): Google's own button style (their brand rules). */
.lb-google {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid #747775;
	border-radius: 4px;
	background: #ffffff;
	color: #1f1f1f;
	font: 500 14px/1.2 Roboto, "Segoe UI", Arial, sans-serif;
	text-decoration: none;
}

.lb-google:hover {
	background: #f2f4f5;
	color: #1f1f1f;
}

.lb-google:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 2px;
}

.lb-google__logo {
	flex: 0 0 auto;
}

/*
 * 0.18.3 (Alex, live): themes colour and underline every link in a page's content (HybridMag:
 * html.hm-dark .entry-content a, light grey #eee; .entry-content a, underlined), stronger than
 * .lb-google: the words vanished on the white button. Google's colours win, as the link-buttons'
 * do (0.17.0).
 */
a.lb-google,
a.lb-google:hover,
a.lb-google:focus,
a.lb-google:visited {
	color: #1f1f1f !important;
	text-decoration: none !important;
}

a.lb-google {
	background: #ffffff !important;
}

a.lb-google:hover {
	background: #f2f4f5 !important;
}

.lb-account__alt {
	margin: var(--lb-space-3) 0 var(--lb-space-2);
}

.lb-account__or {
	margin: 0 0 var(--lb-space-2);
	color: inherit;
	font-size: 0.875rem;
	opacity: 0.75;
}

/* The welcome card's entrance (was the splash screen's, 0.12.0). */
@keyframes lb-card-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

/* The welcome card (Stage 7's intro card, SPEC §14 "Landing"; Alex: at the bottom left; 0.14.2:
   with the splash screen's message, as wide as a wide message needs, up to 520 px). Above the
   footer links; not a dialog. Below the story sheet, the panels and the menus
   (z-index 3 and 4): on a phone the bottom sheet opened over it and its Close button was covered.
   0.14.2 (Alex: "more elegant"; his pick "A Letter"): centred like an invitation, the heading
   over a small gold heart between hairlines, softer body text with more air, the free places as a
   small-caps caption, the buttons centred, "Don't show again" and the close button quiet. */
.lb-intro {
	position: absolute;
	left: var(--lb-space-4);
	bottom: calc(var(--lb-space-4) + 2.25rem);
	z-index: 2;
	width: fit-content;
	min-width: min(360px, calc(100% - 2 * var(--lb-space-4)));
	max-width: min(520px, calc(100% - 2 * var(--lb-space-4)));
	padding: var(--lb-space-8) 40px var(--lb-space-6);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-md);
	/* 0.34.0 (Alex, E1 C): no background blur, a little darker instead. */
	background: linear-gradient(180deg, rgba(17, 29, 54, 0.95) 0%, rgba(11, 20, 38, 0.97) 100%);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(233, 194, 122, 0.12);
	color: var(--lb-ivory-100);
	font-size: 0.9375rem;
	line-height: 1.65;
	text-align: center;
}

.lb-intro[hidden] {
	display: none;
}

/* Opened from the View menu the card takes the focus; it is not a control: no ring. */
.lb-intro:focus {
	outline: none;
}

/* The admin's message (HTML from the editor, cleaned by the server). */
.lb-intro__message h1,
.lb-intro__message h2,
.lb-intro__message h3 {
	margin: 0 0 var(--lb-space-3);
	font-family: var(--lb-font-display);
	font-size: 1.75rem;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0.01em;
	color: var(--lb-ivory-100);
}

.lb-intro__message h3 {
	font-size: 1.25rem;
}

/* A heading that opens the message keeps clear of the close button on both sides (stays centred). */
.lb-intro__message > h1:first-child,
.lb-intro__message > h2:first-child,
.lb-intro__message > h3:first-child {
	padding: 0 var(--lb-space-6);
}

/* Under a heading that opens the message: a small gold heart between two hairlines. */
.lb-intro__message > h1:first-child::after,
.lb-intro__message > h2:first-child::after {
	content: "\2665";
	display: block;
	width: 140px;
	margin: var(--lb-space-3) auto var(--lb-space-2);
	background:
		linear-gradient(90deg, rgba(233, 194, 122, 0) 0%, rgba(233, 194, 122, 0.7) 38%, rgba(233, 194, 122, 0) 38%, rgba(233, 194, 122, 0) 62%, rgba(233, 194, 122, 0.7) 62%, rgba(233, 194, 122, 0) 100%) center / 100% 1px no-repeat;
	color: var(--lb-gold-400);
	font-family: var(--lb-font-ui);
	font-size: 0.6875rem;
	line-height: 1;
}

.lb-intro__message p,
.lb-intro__message ul,
.lb-intro__message ol {
	margin: 0 0 var(--lb-space-3);
	color: var(--lb-ivory-300);
}

.lb-intro__message ul,
.lb-intro__message ol {
	display: inline-block;
	padding-left: 1.2em;
	text-align: left;
}

.lb-intro__message > :last-child {
	margin-bottom: 0;
}

/* The close button sits in the top right corner: a first line that is not a heading keeps clear. */
.lb-intro__message > :first-child:not(h1, h2, h3) {
	margin-right: var(--lb-space-4);
	margin-left: var(--lb-space-4);
}

.lb-intro__message a {
	color: var(--lb-gold-400);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lb-intro__message a:hover {
	color: var(--lb-ivory-100);
}

.lb-intro__message img {
	max-width: 100%;
	height: auto;
}

/* 0.14.3 (Alex, option B): a piece of a paragraph between two typed line breaks (intro.js
   splitTypedLines), its lines evened out so no word sits alone before a break. */
.lb-intro__line {
	display: block;
	text-wrap: balance;
}

.lb-intro__count {
	margin: var(--lb-space-6) 0 var(--lb-space-4);
	color: var(--lb-gold-400);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	line-height: 1.4;
	text-transform: uppercase;
}

/* Without a message the free places open the card: no gap above them. */
.lb-intro__close + .lb-intro__count {
	margin-top: 0;
}

.lb-intro__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: var(--lb-space-6) 0 0;
}

.lb-intro__count + .lb-intro__actions {
	margin-top: 0;
}

/* 0.14.2: "Don't show again", quiet, as a small link at the card's foot. */
.lb-intro__never {
	display: inline-block;
	margin-top: var(--lb-space-4);
	padding: var(--lb-space-1) 0;
	border: 0;
	background: none;
	color: rgba(246, 240, 228, 0.6);
	font: inherit;
	font-size: 0.8125rem;
	text-decoration: underline;
	text-decoration-color: rgba(246, 240, 228, 0.3);
	text-underline-offset: 3px;
	cursor: pointer;
}

.lb-intro__never:hover {
	color: var(--lb-ivory-100);
	text-decoration-color: currentColor;
}

.lb-intro__never:focus-visible {
	outline: 2px solid var(--lb-gold-400);
	outline-offset: 2px;
}

.lb-intro__close {
	position: absolute;
	top: var(--lb-space-3);
	right: var(--lb-space-3);
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: var(--lb-radius-sm, 4px);
	background: transparent;
	color: rgba(246, 240, 228, 0.6);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.lb-intro__close:hover {
	background: rgba(255, 255, 255, 0.06);
	color: var(--lb-ivory-100);
}

.lb-intro__close:focus-visible {
	outline: 2px solid var(--lb-gold-400);
	outline-offset: 2px;
}

/* Phones: less padding round the same layout. */
@media (max-width: 480px) {
	.lb-intro {
		padding: var(--lb-space-6) var(--lb-space-6) var(--lb-space-4);
	}

	.lb-intro__message h1,
	.lb-intro__message h2 {
		font-size: 1.5rem;
	}
}

/*
 * 0.18.0 (Alex): the help card. The welcome card's look, in the middle of the bridge and clear of
 * the bar, above the panels and menus (layer 5); its text scrolls (the slim gold scrollbar) and the
 * Close button stays in view.
 */
.lb-intro.lb-help {
	top: 50%;
	bottom: auto;
	left: 50%;
	z-index: 5;
	display: flex;
	flex-direction: column;
	width: min(560px, calc(100% - 2 * var(--lb-space-4)));
	min-width: 0;
	max-width: none;
	max-height: calc(100% - 7rem);
	padding-bottom: var(--lb-space-4);
	transform: translate(-50%, -50%);
}

.lb-intro.lb-help[hidden] {
	display: none;
}

.lb-help__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding-right: var(--lb-space-1);
	text-align: left;
	scrollbar-width: thin;
	scrollbar-color: rgba(233, 194, 122, 0.6) transparent;
}

.lb-help__body::-webkit-scrollbar {
	width: 6px;
}

.lb-help__body::-webkit-scrollbar-thumb {
	border-radius: 3px;
	background: rgba(233, 194, 122, 0.6);
}

.lb-help__body > .lb-help__title {
	text-align: center;
}

.lb-help__body h3 {
	margin: var(--lb-space-4) 0 var(--lb-space-1);
	font-size: 1.15rem;
	color: var(--lb-gold-400);
}

.lb-help__body ul,
.lb-help__body ol {
	display: block;
}

.lb-help__body strong,
.lb-help__body b {
	color: var(--lb-ivory-100);
	font-weight: 600;
}

.lb-help__actions {
	flex: 0 0 auto;
	display: flex;
	justify-content: center;
	padding-top: var(--lb-space-4);
}

/* 0.28.0 (Alex: "we always need motion"): for every visitor (was only without reduced motion). */
.lb-intro:not([hidden]) {
	animation: lb-card-in 0.35s ease-out;
}

/* 0.18.0: the help card rises into place keeping its centring (lb-card-in's transform replaced
   it: the card showed off to the right for a moment, then jumped). */
.lb-intro.lb-help:not([hidden]) {
	animation: lb-help-in 0.35s ease-out;
}

@keyframes lb-help-in {
	from {
		opacity: 0;
		transform: translate(-50%, calc(-50% + 8px));
	}
}

/* Stage 7 (Alex): who took a lock's photo, under it. */
/* Alex (Stage 7): a demo lock's line above its photo. */
.lb-story-example,
.lb-story__example {
	margin: 0 0 var(--lb-space-2);
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
	letter-spacing: 0.01em;
}

.lb-story-photo__credit,
.lb-story__credit {
	margin-top: var(--lb-space-1);
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
	font-style: italic;
}

/* ------------------------------------------------------------------------------------------
 * 0.25.0 Gifts (Alex: "Send a lock as a Gift"; his picks: the invitation box under the buttons,
 * the gift card with a live preview, the sealed envelope).
 * ------------------------------------------------------------------------------------------ */

.lb-gift-icon {
	flex: none;
	width: 15px;
	height: 15px;
	margin-right: 6px;
	vertical-align: -2px;
}

.lb-button--gold-line {
	border-color: var(--lb-gold-400);
	color: var(--lb-gold-400);
}

.lb-button--gold-line:hover {
	border-color: var(--lb-ivory-100);
	color: var(--lb-ivory-100);
}

/* The invitation box (pick C). The same size wherever it is (the panel, Your locks, a story). */
.lb-gift-invite {
	font-size: 15px;
	line-height: 1.45;
	margin-top: var(--lb-space-4);
	padding: var(--lb-space-3) var(--lb-space-4) var(--lb-space-4);
	border: 1px solid var(--lb-panel-border);
	border-top: 2px solid var(--lb-gold-400);
	background: rgba(233, 194, 122, 0.06);
	color: var(--lb-ivory-100);
}

.lb-gift-invite__title {
	margin: 0 0 var(--lb-space-1);
	color: var(--lb-gold-400);
	font: 400 1.3125rem/1.25 var(--lb-font-display);
}

.lb-gift-invite__text {
	margin: 0 0 var(--lb-space-3);
	color: var(--lb-ivory-300);
	line-height: 1.45;
}

.lb-gift-invite__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--lb-space-2);
}

.lb-gift-invite__status:empty {
	display: none;
}

.lb-gift-invite__status {
	margin: var(--lb-space-2) 0 0;
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-dash__lock .lb-gift-invite {
	margin-top: var(--lb-space-3);
}

/* The sealed envelope (the gift card's preview and the gift's page). */
.lb-envelope {
	position: relative;
	width: 260px;
	height: 172px;
	perspective: 900px;
	color: #3a2d17;
}

.lb-envelope__back,
.lb-envelope__front,
.lb-envelope__flap,
.lb-envelope__letter {
	position: absolute;
	left: 0;
	right: 0;
}

.lb-envelope__back {
	top: 0;
	bottom: 0;
	background: linear-gradient(160deg, #f8f2e6, #e9dfcb);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.lb-envelope__front {
	top: 0;
	bottom: 0;
	z-index: 2;
	background:
		linear-gradient(to top right, transparent 49.6%, rgba(120, 95, 50, 0.22) 50%, transparent 50.6%),
		linear-gradient(to top left, transparent 49.6%, rgba(120, 95, 50, 0.22) 50%, transparent 50.6%),
		linear-gradient(160deg, #f6efe2, #ebe0ca);
	clip-path: polygon(0 100%, 0 30%, 50% 72%, 100% 30%, 100% 100%);
}

.lb-envelope__flap {
	top: 0;
	z-index: 3;
	height: 56%;
	background: linear-gradient(180deg, #efe6d3, #e2d5bb);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	transform-origin: top center;
}

.lb-envelope__letter {
	top: 10%;
	bottom: 6%;
	left: 7%;
	right: 7%;
	z-index: 1;
	visibility: hidden;
	display: grid;
	place-items: center;
	background: #fffaf0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.lb-envelope__heart {
	color: #b8894a;
	font-size: 2.25rem;
	line-height: 1;
}

.lb-envelope__seal {
	position: absolute;
	top: 56%;
	left: 50%;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin: -30px 0 0 -23px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #f3d79b, #b8894a 70%);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.lb-envelope__seal svg {
	fill: #7a4e1d;
}

.lb-envelope__to {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 12px;
	z-index: 4;
	margin: 0;
	overflow: hidden;
	color: #3a2d17;
	font: 400 1.375rem/1.2 var(--lb-font-display);
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
	unicode-bidi: isolate;
}

/* "Open your gift": the seal breaks, the flap opens, the letter rises. */
.lb-envelope.is-opening .lb-envelope__seal {
	animation: lb-seal-break 0.4s ease-in forwards;
}

.lb-envelope.is-opening .lb-envelope__flap {
	animation: lb-flap-open 0.55s 0.35s ease-in-out forwards;
}

.lb-envelope.is-opening .lb-envelope__letter {
	visibility: visible;
	animation: lb-letter-rise 0.5s 0.8s ease-out forwards;
}

@keyframes lb-seal-break {
	40% {
		transform: scale(1.12);
	}
	to {
		opacity: 0;
		transform: scale(0.6) rotate(-18deg);
	}
}

@keyframes lb-flap-open {
	49% {
		z-index: 3;
	}
	50% {
		z-index: 0;
	}
	to {
		z-index: 0;
		transform: rotateX(180deg);
	}
}

@keyframes lb-letter-rise {
	to {
		transform: translateY(-42%);
	}
}

/* The gift card (pick B): over the page, the preview beside the form. */
.lb-gift-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: var(--lb-space-4);
	overflow: auto;
	background: rgba(6, 11, 22, 0.62);
	color: var(--lb-ivory-100);
	font-family: var(--lb-font-ui);
	font-size: 15px;
	line-height: 1.45;
}

.lb-gift-modal *,
.lb-gift-modal *::before,
.lb-gift-modal *::after {
	box-sizing: border-box;
}

.lb-gift-card {
	display: grid;
	grid-template-columns: 320px minmax(0, 1fr);
	gap: var(--lb-space-6);
	width: min(880px, 100%);
	max-height: calc(100vh - 2 * var(--lb-space-4));
	padding: var(--lb-space-6);
	overflow: auto;
	position: relative;
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-lg);
	background: linear-gradient(180deg, var(--lb-midnight-800), var(--lb-midnight-900));
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lb-gift-card__preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--lb-space-4);
	padding-right: var(--lb-space-6);
	border-right: 1px solid var(--lb-panel-border);
	text-align: center;
}

.lb-gift-card__see {
	margin: 0;
	color: var(--lb-ivory-300);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.lb-gift-card__note {
	max-width: 280px;
	margin: 0;
	color: var(--lb-ivory-100);
	font: 400 1.0625rem/1.4 var(--lb-font-display);
	overflow-wrap: anywhere;
	unicode-bidi: isolate;
}

.lb-gift-card__arrives {
	margin: 0;
	color: var(--lb-gold-400);
	font-size: 0.875rem;
}

.lb-gift-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--lb-space-3);
	padding-bottom: var(--lb-space-3);
	border-bottom: 1px solid var(--lb-panel-border);
}

.lb-gift-card__title {
	margin: 0;
	color: var(--lb-ivory-100);
	font: 400 1.75rem/1.2 var(--lb-font-display);
}

.lb-gift-card__title:focus {
	outline: none;
}

.lb-gift-card__close {
	min-width: 36px;
	font-size: 1.375rem;
	line-height: 1;
}

.lb-gift-card__lock {
	margin: var(--lb-space-2) 0 var(--lb-space-3);
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
}

.lb-gift-card__field {
	display: flex;
	flex-direction: column;
	gap: var(--lb-space-1);
	margin-bottom: var(--lb-space-3);
}

.lb-gift-card__optional {
	color: var(--lb-ivory-300);
	font-weight: 400;
}

.lb-gift-card__help {
	margin: 0;
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
}

.lb-gift-card__input {
	width: 100%;
	min-height: 36px;
	padding: 6px 10px;
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: rgba(11, 20, 38, 0.6);
	color: var(--lb-ivory-100);
	font: inherit;
}

textarea.lb-gift-card__input {
	resize: vertical;
}

.lb-gift-card__input:focus-visible,
.lb-gift-card__chip:focus-visible,
.lb-gift-card__choice input:focus-visible,
.lb-gift-card__radio input:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 1px;
}

.lb-gift-card__how,
.lb-gift-card__when {
	margin: 0 0 var(--lb-space-3);
	padding: 0;
	border: 0;
}

.lb-gift-card__how legend,
.lb-gift-card__when legend {
	margin-bottom: var(--lb-space-1);
	padding: 0;
}

.lb-gift-card__how {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--lb-space-2);
}

.lb-gift-card__how > legend,
.lb-gift-card__how > .lb-gift-card__email,
.lb-gift-card__how > .lb-gift-card__help {
	grid-column: 1 / -1;
}

.lb-gift-card__email {
	margin: 0;
}

.lb-gift-card__email[hidden],
.lb-gift-card__when[hidden],
.lb-gift-card__note[hidden],
.lb-gift-card__chips[hidden] {
	display: none;
}

.lb-gift-card__choice {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: var(--lb-space-2);
	padding: var(--lb-space-2) var(--lb-space-3);
	border: 1px solid var(--lb-panel-border);
	cursor: pointer;
}

.lb-gift-card__choice:has(input:checked) {
	border-color: var(--lb-gold-400);
	background: rgba(233, 194, 122, 0.08);
}

.lb-gift-card__choice input {
	grid-row: 1 / span 2;
	margin: 3px 0 0;
	accent-color: var(--lb-gold-400);
}

.lb-gift-card__choice-text {
	font-weight: 600;
	font-size: 0.875rem;
}

.lb-gift-card__choice-note {
	color: var(--lb-ivory-300);
	font-size: 0.75rem;
}

.lb-gift-card__when-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--lb-space-3);
}

.lb-gift-card__radio {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	cursor: pointer;
}

.lb-gift-card__radio input {
	margin: 0;
	accent-color: var(--lb-gold-400);
}

.lb-gift-card__date {
	width: auto;
	min-width: 150px;
	color-scheme: dark;
}

.lb-gift-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: var(--lb-space-2);
}

.lb-gift-card__chip {
	min-height: 28px;
	padding: 2px 10px;
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-sm);
	background: transparent;
	color: var(--lb-ivory-300);
	font: inherit;
	font-size: 0.8125rem;
	cursor: pointer;
}

.lb-gift-card__chip.is-on,
.lb-gift-card__chip:hover {
	border-color: var(--lb-gold-400);
	color: var(--lb-gold-400);
}

.lb-gift-card__status {
	min-height: 1.4em;
	margin: 0 0 var(--lb-space-2);
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-gift-card__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--lb-space-2);
}

.lb-gift-card__actions--start {
	justify-content: flex-start;
	margin: var(--lb-space-3) 0;
}

.lb-gift-card__text {
	margin: var(--lb-space-3) 0 0;
	color: var(--lb-ivory-100);
}

.lb-gift-card__link {
	margin-bottom: var(--lb-space-2);
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
}

.lb-gift-card__take-back {
	margin-top: var(--lb-space-3);
	border-color: transparent;
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
}

.lb-gift-card .lb-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 720px) {
	.lb-gift-modal {
		align-items: flex-start;
		padding: var(--lb-space-2);
	}

	.lb-gift-card {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--lb-space-4);
		max-height: none;
		padding: var(--lb-space-4);
	}

	.lb-gift-card__preview {
		gap: var(--lb-space-2);
		padding: 0 0 var(--lb-space-4);
		border-right: 0;
		border-bottom: 1px solid var(--lb-panel-border);
	}

	.lb-gift-card__preview .lb-envelope {
		width: 200px;
		height: 132px;
	}

	.lb-gift-card__preview .lb-envelope__to {
		bottom: 8px;
		font-size: 1.125rem;
	}

	.lb-gift-card__preview .lb-envelope__seal {
		width: 36px;
		height: 36px;
		margin: -24px 0 0 -18px;
	}

	.lb-gift-card__how {
		grid-template-columns: minmax(0, 1fr);
	}

	/* On a phone the preview comes first: Close stays at the card's top corner. */
	.lb-gift-card__close {
		position: absolute;
		top: var(--lb-space-2);
		right: var(--lb-space-2);
	}
}

/* The gift's page (pick A, the sealed envelope). */
.lb-gift {
	max-width: 52rem;
}

.lb-gift__stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--lb-space-4);
	min-height: 70vh;
	padding: var(--lb-space-8) var(--lb-space-4);
	border-radius: var(--lb-radius-lg);
	background:
		radial-gradient(60% 45% at 50% 55%, rgba(233, 194, 122, 0.16) 0%, transparent 70%),
		radial-gradient(ellipse at 50% 20%, var(--lb-midnight-700), var(--lb-midnight-900) 75%);
	color: var(--lb-ivory-100);
	text-align: center;
	justify-content: center;
}

.lb-gift__to {
	margin: 0;
	color: var(--lb-ivory-100);
	font: 400 clamp(2.25rem, 7vw, 3.25rem)/1.1 var(--lb-font-display);
	overflow-wrap: anywhere;
	unicode-bidi: isolate;
}

.lb-gift__line {
	max-width: 30rem;
	margin: 0 0 var(--lb-space-4);
	color: var(--lb-ivory-300);
	font-size: 1.0625rem;
	unicode-bidi: isolate;
}

.lb-gift .lb-envelope {
	width: 300px;
	height: 198px;
	margin-bottom: var(--lb-space-4);
}

.lb-gift__actions {
	margin: 0;
}

.lb-gift__open {
	min-height: 44px;
	padding: var(--lb-space-2) var(--lb-space-6);
	font-size: 1.0625rem;
}

@media (max-width: 380px) {
	.lb-gift .lb-envelope {
		width: 260px;
		height: 172px;
	}
}

/* The gift opened on the bridge. */
.lb-gift-view__for {
	margin: 0 0 var(--lb-space-3);
	color: var(--lb-gold-400);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	unicode-bidi: isolate;
}

.lb-gift-view__note {
	margin: 0 0 var(--lb-space-3);
	padding: 0 0 0 var(--lb-space-3);
	border-left: 2px solid var(--lb-gold-400);
	color: var(--lb-ivory-100);
	font: 400 1.25rem/1.4 var(--lb-font-display);
	unicode-bidi: isolate;
}

.lb-gift-view__note p {
	margin: 0 0 var(--lb-space-2);
}

.lb-gift-view__meta {
	margin: 0;
	color: var(--lb-ivory-300);
	font-size: 0.875rem;
}

.lb-gift-view__preview {
	margin: var(--lb-space-3) 0 0;
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
	font-style: italic;
}

/*
 * 0.26.0 (Alex): "Be a swan". The welcome card's tile (pick B), the ride's bar in the controls
 * bar's place (pick A: short labels on phones), the postcards at the right (pick A), the keys'
 * hint and the stick (touch screens).
 */
.lb-intro__ride {
	margin-top: var(--lb-space-4);
	padding-top: var(--lb-space-3);
	border-top: 1px solid var(--lb-panel-border);
}

.lb-intro__ride-label {
	margin: 0 0 var(--lb-space-2);
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
}

.lb-intro__tiles {
	display: flex;
	justify-content: center;
	gap: var(--lb-space-3);
}

/* 0.27.0: two tiles (the boat, the plane) share the row; on a phone they narrow together. */
.lb-intro__tile {
	display: flex;
	flex-direction: column;
	flex: 0 1 180px;
	min-width: 0;
	padding: 0;
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-md);
	background: rgba(11, 20, 38, 0.6);
	color: var(--lb-ivory-100);
	font: inherit;
	font-size: 0.875rem;
	line-height: 1.2;
	cursor: pointer;
	overflow: hidden;
}

.lb-intro__tile:hover {
	border-color: var(--lb-gold-400);
	color: var(--lb-gold-400);
}

.lb-intro__tile:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 2px;
}

.lb-intro__tile-picture {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 9 / 5;
	object-fit: cover;
}

.lb-intro__tile-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 7px 4px;
}

.lb-intro__tile-icon {
	flex: none;
}

/* While riding, the ride's bar stands where the controls bar was; the welcome card, the clock, the
   footer's links (under the stick on a phone) and the bridge's own bar step aside. 0.27.2: View and
   full screen stand at the end of the ride's bar (app.js controls.riding()); its menu opens over the
   postcards. */
.lb-ride-bar {
	z-index: 3;
}

/* 0.35.2 (Alex's pick B): the ride buttons under the bar at the top right, one under the other (the plane
   first), the drawing and the words in the bar's look; none while riding. No z-index of their own and before
   the bar in the page: the bar's View menu and music panel open over them. */
.lb-ride-starts {
	position: absolute;
	/* ui/controls.js: under the bar showing (the ride's while riding). */
	top: var(--lb-starts-top, 64px);
	right: var(--lb-space-3);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
}

.lb-ride-starts[hidden],
.lb-ride-start[hidden] {
	display: none;
}

/* 0.37.1 (Alex: "The "Play a game" button should be always visible", his pick R1): while riding it stays
   under the ride's bar (the ride buttons go) and the lock postcards stand under it. */
.lb-root--ride-games .lb-ride-cards {
	margin-top: 48px;
}

/* On a phone in a game the clock fills the width under the bar: the button goes under the clock's words
   (ui/games.js sets --lb-game-below). */
@media (max-width: 600px) {
	.lb-root--game .lb-ride-starts {
		top: var(--lb-game-below, var(--lb-starts-top, 64px));
	}
}

.lb-ride-start {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 10px;
	border: 1px solid var(--lb-panel-border);
	border-radius: 999px;
	background: var(--lb-panel-bg);
	color: var(--lb-ivory-100);
	font: 600 0.8rem var(--lb-font-ui);
	cursor: pointer;
}

.lb-ride-start:hover {
	border-color: var(--lb-gold-400);
}

.lb-ride-start:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 2px;
}

.lb-ride-start__icon {
	flex: none;
	color: var(--lb-gold-400);
}

.lb-root--riding .lb-controls:not(.lb-ride-bar),
.lb-root--riding .lb-intro,
.lb-root--riding .lb-clock,
.lb-root--riding .lb-footer {
	display: none;
}

.lb-ride-bar[hidden],
.lb-ride-cards[hidden],
.lb-ride-keys[hidden],
.lb-ride-stick[hidden] {
	display: none;
}

.lb-ride-bar .lb-button {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.lb-ride-bar__short {
	display: none;
}

.lb-root[data-lb-ride-autopilot] [data-lb-ride-auto] {
	border-color: var(--lb-gold-400);
	color: var(--lb-gold-400);
}

.lb-ride-cards {
	position: absolute;
	top: 64px;
	right: var(--lb-space-4);
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: var(--lb-space-3);
	width: min(340px, calc(100% - 2 * var(--lb-space-4)));
	pointer-events: none;
}

.lb-ride-card {
	display: flex;
	align-items: center;
	gap: var(--lb-space-3);
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-md);
	background: linear-gradient(180deg, rgba(17, 29, 54, 0.86) 0%, rgba(11, 20, 38, 0.9) 100%);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	color: var(--lb-ivory-100);
	font: inherit;
	font-size: 0.875rem;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	pointer-events: auto;
	opacity: 0;
	transform: translateX(16px);
	transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s ease;
}

.lb-ride-card--in {
	opacity: 1;
	transform: none;
}

.lb-ride-card:hover,
.lb-ride-card:focus-visible {
	border-color: var(--lb-gold-400);
}

.lb-ride-card:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 2px;
}

.lb-ride-card__photo {
	flex: none;
	width: 64px;
	height: 64px;
	object-fit: cover;
}

.lb-ride-card__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.lb-ride-card__words {
	font-family: var(--lb-font-display);
	font-size: 1.25rem;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

.lb-ride-card__excerpt {
	color: var(--lb-ivory-300);
	overflow-wrap: anywhere;
}

.lb-ride-card__lock {
	flex: none;
	width: 34px;
	height: 34px;
	margin-left: auto;
	object-fit: contain;
}

/* 0.30.0 (Alex's pick B): the owner's own lock, the whole card gold, dark words, a red heart line. */
.lb-ride-card--own {
	border-color: #fff0c2;
	background: linear-gradient(160deg, #f8e2a0 0%, #e6bb55 45%, #c9952e 100%);
	box-shadow: 0 0 28px rgba(240, 190, 80, 0.6), 0 10px 30px rgba(0, 0, 0, 0.35);
	color: #2b1d03;
}

.lb-ride-card--own .lb-ride-card__excerpt {
	color: #4a3510;
}

.lb-ride-card--own:hover,
.lb-ride-card--own:focus-visible {
	border-color: #7a1020;
}

.lb-ride-card__own {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #7a1020;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.lb-ride-card__own svg {
	color: #c8102e;
}

/* 0.30.0 (Alex's pick B): the postcard photo's round camera button: bottom right on a computer; on a
   touch screen above the action buttons, on their side. */
.lb-ride-photo {
	position: absolute;
	right: 24px;
	bottom: 90px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid var(--lb-gold-400);
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #f3d58f, #d7a94f 70%);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
	color: #2a1d05;
	cursor: pointer;
}

.lb-ride-photo:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 3px;
}

.lb-ride-photo[hidden] {
	display: none;
}

.lb-ride-photo--touch {
	right: 42px;
	bottom: 222px;
}

.lb-ride-photo--touch.lb-ride-photo--left {
	right: auto;
	left: 42px;
}

/* The picture taken, over the scene (his pick A: a white postcard frame, a little tilted). */
.lb-ride-photo-view {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--lb-space-4);
	padding: var(--lb-space-4);
	background: rgba(6, 10, 20, 0.72);
}

.lb-ride-photo-view__card {
	margin: 0;
	transform: rotate(-1.2deg);
}

.lb-ride-photo-view__card img {
	display: block;
	width: auto;
	height: auto;
	max-width: min(760px, 92vw);
	max-height: calc(100vh - 160px);
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}

.lb-ride-photo-view__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--lb-space-3);
}

.lb-ride-keys {
	position: absolute;
	left: 50%;
	bottom: var(--lb-space-4);
	z-index: 2;
	margin: 0;
	padding: 6px 14px;
	transform: translateX(-50%);
	border: 1px solid var(--lb-panel-border);
	border-radius: var(--lb-radius-md);
	background: rgba(11, 20, 38, 0.55);
	color: var(--lb-ivory-300);
	font-size: 0.8125rem;
	white-space: nowrap;
	pointer-events: none;
}

.lb-ride-stick {
	position: absolute;
	left: 22px;
	bottom: 30px;
	z-index: 2;
	box-sizing: border-box;
	width: 128px;
	height: 128px;
	border: 1px solid rgba(233, 194, 122, 0.45);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(11, 20, 38, 0.15) 0%, rgba(11, 20, 38, 0.45) 100%);
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
}

.lb-ride-stick--right {
	right: 22px;
	left: auto;
}

.lb-ride-stick__knob {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 42%;
	height: 42%;
	margin: -21% 0 0 -21%;
	border-radius: 50%;
	background: radial-gradient(circle at 40% 35%, rgba(246, 240, 228, 0.95) 0%, rgba(233, 194, 122, 0.85) 100%);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
	pointer-events: none;
}

.lb-ride-stick--held .lb-ride-stick__knob {
	box-shadow: 0 4px 18px rgba(233, 194, 122, 0.55);
}

/* Reading a story: the postcards and the stick step aside under the story card. */
.lb-root[data-lb-ride-reading] .lb-ride-cards,
.lb-root[data-lb-ride-reading] .lb-ride-stick,
.lb-root[data-lb-ride-reading] .lb-ride-photo,
.lb-root[data-lb-ride-reading] .lb-ride-keys {
	display: none;
}

@media (max-width: 600px) {
	.lb-ride-bar {
		left: var(--lb-space-3);
		justify-content: space-between;
	}

	.lb-ride-bar__long {
		display: none;
	}

	.lb-ride-bar__short {
		display: inline;
	}

	.lb-ride-cards {
		top: 60px;
		left: var(--lb-space-3);
		right: var(--lb-space-3);
		width: auto;
	}
}

/* 0.27.2: with View and full screen in it, the ride's bar fits a small phone (360 px). */
@media (max-width: 420px) {
	.lb-ride-bar {
		gap: var(--lb-space-1);
		padding-left: var(--lb-space-1);
		padding-right: var(--lb-space-1);
	}

	.lb-ride-bar .lb-button {
		padding-left: var(--lb-space-2);
		padding-right: var(--lb-space-2);
	}
}

/* 0.26.1 (Alex's pick B): the action button under the right thumb (touch screens); its ring shows
   the wait before the next boost (--lb-wait, 1 .. 0). */
.lb-ride-action {
	position: absolute;
	right: 26px;
	bottom: 40px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 84px;
	height: 84px;
	padding: 0;
	border: 1px solid var(--lb-gold-400);
	border-radius: 50%;
	background: radial-gradient(circle at 40% 35%, rgba(233, 194, 122, 0.95) 0%, rgba(184, 137, 74, 0.9) 100%);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
	color: var(--lb-ink-900);
	font: 600 0.75rem var(--lb-font-ui);
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	cursor: pointer;
}

.lb-ride-action--left {
	right: auto;
	left: 26px;
}

/* 0.29.0 (Alex's pick A): the second action, smaller, up and to the side of the action button (an
   arc, as game pads): 10px in from its side, its middle level with the action button's top. */
.lb-ride-action--second {
	right: 120px;
	bottom: 97px;
	width: 60px;
	height: 60px;
	font-size: 0.62rem;
}

.lb-ride-action--second.lb-ride-action--left {
	right: auto;
	left: 120px;
}

.lb-ride-action--second[data-lb-ride-action2="on"] {
	box-shadow: 0 0 22px rgba(233, 194, 122, 0.85);
}

.lb-ride-action[hidden] {
	display: none;
}

.lb-ride-action::after {
	content: "";
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	background: conic-gradient(rgba(246, 240, 228, 0.85) calc(var(--lb-wait, 0) * 360deg), transparent 0);
	-webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
	mask: radial-gradient(circle, transparent 62%, #000 63%);
	pointer-events: none;
}

.lb-ride-action[data-lb-ride-action="wait"] {
	filter: saturate(0.4) brightness(0.8);
}

.lb-ride-action[data-lb-ride-action="on"] {
	box-shadow: 0 0 22px rgba(233, 194, 122, 0.85);
}

.lb-ride-action:focus-visible {
	outline: 2px solid var(--lb-focus);
	outline-offset: 4px;
}

/* 0.27.1 (Alex's pick A): the speed meter, a small dial at the top left (where the clock was); on a
   touch screen above the stick, on its side. The gold arc fills to the top speed. */
.lb-ride-speed {
	position: absolute;
	left: 16px;
	top: 16px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 92px;
	height: 92px;
	border: 1px solid rgba(233, 194, 122, 0.55);
	border-radius: 50%;
	background: rgba(11, 20, 38, 0.62);
	color: var(--lb-ivory-100);
	font-family: var(--lb-font-ui);
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
}

.lb-ride-speed[hidden] {
	display: none;
}

.lb-ride-speed--touch {
	top: auto;
	left: 22px;
	bottom: calc(30px + var(--lb-stick, 128px) + 14px);
}

.lb-ride-speed--right {
	left: auto;
	right: 22px;
}

.lb-ride-speed__dial {
	position: absolute;
	inset: 6px;
}

.lb-ride-speed__track,
.lb-ride-speed__fill {
	fill: none;
	stroke-width: 3;
	stroke-linecap: round;
}

.lb-ride-speed__track {
	stroke: rgba(246, 240, 228, 0.18);
}

.lb-ride-speed__fill {
	stroke: var(--lb-gold-400);
}

.lb-ride-speed__value {
	margin-top: 6px;
	font-size: 26px;
	font-weight: 600;
	line-height: 1;
}

.lb-ride-speed__unit {
	font-size: 11px;
	letter-spacing: 0.04em;
	opacity: 0.75;
}

/* 0.35.0 (Alex's pick A): the plane's boost tank, a slim bar beside the speed meter, as tall as it, in
   its colours; the line marks 20 %; grey while locked (run empty, until 20 %). Shown while boosting or
   refilling, it fades out when full. On a touch screen beside the meter above the stick (inside, towards
   the middle); in the meter's place when the meter is off. */
.lb-ride-tank {
	position: absolute;
	left: calc(16px + 92px + 8px);
	top: 16px;
	z-index: 2;
	width: 12px;
	height: 92px;
	box-sizing: border-box;
	border: 1px solid rgba(233, 194, 122, 0.55);
	border-radius: 6px;
	background: rgba(11, 20, 38, 0.62);
	overflow: hidden;
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.2s ease;
}

.lb-ride-tank[hidden] {
	display: none;
}

.lb-ride-tank[data-lb-ride-tank="full"] {
	opacity: 0;
	transition: opacity 0.6s ease;
}

.lb-ride-tank--alone {
	left: 16px;
}

.lb-ride-tank--touch {
	top: auto;
	left: calc(22px + 92px + 8px);
	bottom: calc(30px + var(--lb-stick, 128px) + 14px);
}

.lb-ride-tank--touch.lb-ride-tank--alone {
	left: 22px;
}

.lb-ride-tank--right,
.lb-ride-tank--touch.lb-ride-tank--right {
	left: auto;
	right: calc(22px + 92px + 8px);
}

.lb-ride-tank--right.lb-ride-tank--alone {
	right: 22px;
}

.lb-ride-tank__fill {
	position: absolute;
	left: 2px;
	right: 2px;
	bottom: 2px;
	height: calc((100% - 4px) * var(--lb-tank, 1));
	border-radius: 4px;
	background: linear-gradient(180deg, #f3d48f 0%, #d9a95a 100%);
}

.lb-ride-tank[data-lb-ride-tank="locked"] .lb-ride-tank__fill {
	background: linear-gradient(180deg, #9aa1ad 0%, #6f7684 100%);
}

.lb-ride-tank__mark {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(2px + (100% - 4px) * 0.2);
	height: 1px;
	background: rgba(246, 240, 228, 0.75);
}

.lb-root[data-lb-ride-reading] .lb-ride-speed,
.lb-root[data-lb-ride-reading] .lb-ride-tank {
	display: none;
}

.lb-root[data-lb-ride-reading] .lb-ride-action {
	display: none;
}

/* 0.31.0 (Alex's pick A): the round people button in the ride's bar, shown while others ride; the red
   number is how many; crossed out while riding alone. */
.lb-ride-people {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0 !important;
	border-radius: 50% !important;
}
.lb-ride-people[hidden] {
	display: none;
}
.lb-ride-people__n {
	position: absolute;
	top: -4px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: #c8102e;
	color: #fff;
	font: 700 11px/18px system-ui, sans-serif;
	text-align: center;
}
.lb-ride-people--alone {
	opacity: 0.55;
}
.lb-ride-people--alone .lb-ride-people__n {
	display: none;
}
.lb-ride-people--alone::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	top: 50%;
	height: 2px;
	background: currentColor;
	transform: rotate(-40deg);
}

/* 0.37.0 (Alex: the paper plane's mini games). The clock (his pick C): large, at the top centre under the
   bar, a progress line and a line of words under it; the countdown in the middle; a pointer at the edge to
   the target off screen; the cards (picker, result, leaderboard) in the middle. */
.lb-game-hud {
	position: absolute;
	left: 50%;
	top: 64px;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	transform: translateX(-50%);
	color: var(--lb-ivory-100);
	font-family: var(--lb-font-ui);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
	pointer-events: none;
	white-space: nowrap;
}

.lb-game-hud__clock {
	font-size: 2.6rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.lb-game-hud__line {
	width: min(260px, 60vw);
	height: 5px;
	overflow: hidden;
	border-radius: 3px;
	background: rgba(246, 240, 228, 0.25);
}

.lb-game-hud__line i {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--lb-gold-400);
	transform: scaleX(var(--lb-share, 0));
	transform-origin: left center;
}

.lb-game-hud__sub {
	color: var(--lb-gold-400);
	font-size: 0.85rem;
	font-weight: 600;
}

/* 0.40.0 Ghost Race: the gap to the ghost under the clock's words, rose behind, green ahead (his picture). */
.lb-game-hud__gap {
	color: var(--lb-ivory-100);
	font-size: 0.95rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.lb-game-hud__gap[hidden] {
	display: none;
}

.lb-game-hud__gap--behind {
	color: #ffb3c0;
}

.lb-game-hud__gap--ahead {
	color: #a8ecb0;
}

.lb-game-count {
	position: absolute;
	left: 50%;
	top: 42%;
	z-index: 4;
	transform: translate(-50%, -50%);
	color: var(--lb-ivory-100);
	font: 800 8rem/1 var(--lb-font-ui);
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
	pointer-events: none;
}

.lb-game-count--go {
	color: var(--lb-gold-400);
	font-size: 5rem;
}

.lb-game-pointer {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--lb-gold-400);
	font: 600 0.8rem var(--lb-font-ui);
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
	pointer-events: none;
}

.lb-game-pointer svg {
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.lb-game-card {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 6;
	box-sizing: border-box;
	width: min(440px, calc(100% - 2 * var(--lb-space-4)));
	max-height: calc(100% - 140px);
	overflow: auto;
	padding: 18px 20px;
	border: 1px solid var(--lb-panel-border);
	border-radius: 16px;
	background: var(--lb-panel-bg);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(8px);
	color: var(--lb-ivory-100);
	font-family: var(--lb-font-ui);
	transform: translate(-50%, -50%);
}

.lb-game-card__title {
	margin: 0 0 10px;
	padding-right: 64px;
	color: var(--lb-gold-400);
	font-size: 1.1rem;
}

.lb-game-card__close {
	position: absolute;
	top: 12px;
	right: 12px;
}

.lb-game-card__score {
	font-size: 2.4rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.lb-game-card__best {
	margin: 4px 0 2px;
	color: var(--lb-gold-400);
	font-weight: 700;
}

.lb-game-card__note {
	margin: 0 0 12px;
	font-size: 0.85rem;
	opacity: 0.85;
}

.lb-game-card__note a {
	color: var(--lb-gold-400);
}

/* 0.43.0 Message in a Bottle: the stories the bottles carried, as the ride's own postcards. */
.lb-game-card__found {
	margin: 10px 0 0;
	color: var(--lb-gold-400);
	font-size: 0.85rem;
	font-weight: 700;
}

.lb-game-card__stories {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin: 6px 0 12px;
}

.lb-game-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.lb-game-pick {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 4px 10px;
	padding: 10px 0;
	border-top: 1px solid rgba(233, 194, 122, 0.18);
}

.lb-game-pick__text b,
.lb-game-pick__text span,
.lb-game-pick__best span {
	display: block;
}

/* 0.40.0 Ghost Race (Alex's pick G1): its own row, a button for each of its games, one under the other. */
.lb-game-pick--ghost {
	grid-template-columns: 1fr auto;
}

.lb-game-pick__ghost {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lb-game-pick__ghost .lb-button {
	padding: 5px 10px;
	font-size: 0.8rem;
	white-space: nowrap;
}

.lb-game-pick__text span,
.lb-game-pick__best {
	font-size: 0.78rem;
	opacity: 0.8;
}

.lb-game-pick__best {
	text-align: right;
	white-space: nowrap;
}

.lb-game-pick__board {
	grid-column: 1 / -1;
	justify-self: start;
	font-size: 0.78rem;
}

/* 0.37.1 (Alex's pick B): the rides' pictures (the welcome card's tiles) over the list; the ride's drawing
   on the title's line; Leaderboard a link. */
.lb-game-rides {
	margin: 0 0 8px;
}

/* 0.43.1 (Alex: "the close button at the top-right that if you scroll down is disappearing, Instead I suggest only the
   mini-games list is scrollable under the Take the boat and Fly a paper plane"): the picker card stays still (its title,
   Close, the rides' pictures) and only its list of games scrolls. */
.lb-game-card[data-lb-game-card="picker"] {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.lb-game-card[data-lb-game-card="picker"] > * {
	flex: none;
}

.lb-game-card[data-lb-game-card="picker"] > .lb-game-picks {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	overscroll-behavior: contain;
}

.lb-game-pick__text b.lb-game-pick__name {
	display: flex;
	align-items: center;
	gap: 6px;
}

.lb-game-pick__ride {
	flex: none;
	color: var(--lb-gold-400);
}

.lb-game-pick__board.lb-button--link:hover {
	border-color: transparent;
	color: var(--lb-ivory-100);
}

.lb-game-board__period {
	margin: 0 0 8px;
	font-size: 0.8rem;
	opacity: 0.8;
}

.lb-game-board__list {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.lb-game-board__row {
	display: grid;
	grid-template-columns: 2.2em 1fr auto;
	gap: 8px;
	padding: 5px 0;
	border-top: 1px solid rgba(233, 194, 122, 0.12);
	font-variant-numeric: tabular-nums;
}

.lb-game-board__row--you {
	color: var(--lb-gold-400);
	font-weight: 700;
}

.lb-game-board__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.lb-game-board__empty,
.lb-game-board__you {
	margin: 0 0 12px;
	font-size: 0.85rem;
}

@media (max-width: 600px) {
	.lb-game-hud__clock {
		font-size: 2.2rem;
	}

	.lb-game-count {
		font-size: 6rem;
	}

	/* 0.46.2 (Alex's pick B, docs/brief/screenshots/0.46.1/phone-row/sheet-phone-row.png): on a phone the scores on their
	   own line under the rule, across the row, so a long one leaves the title and Play alone. */
	.lb-game-pick:not(.lb-game-pick--ghost) {
		grid-template-columns: 1fr auto;
	}

	.lb-game-pick > [data-lb-game-play] {
		grid-column: 2;
		grid-row: 1;
	}

	.lb-game-pick__best {
		display: flex;
		grid-column: 1 / -1;
		grid-row: 2;
		flex-wrap: wrap;
		gap: 0 0.8em;
		text-align: left;
		white-space: normal;
	}
}

.lb-game-hud[hidden],
.lb-game-count[hidden],
.lb-game-pointer[hidden],
.lb-game-card[hidden] {
	display: none;
}

/* theme-guard:start (generated by tools/css-theme-guard.mjs; do not edit) */
.lb-root:not(#lb-theme-guard) {
	background:
		radial-gradient(120% 80% at 50% 100%, rgba(31, 111, 120, 0.45) 0%, transparent 60%),
		linear-gradient(180deg, var(--lb-midnight-700) 0%, var(--lb-midnight-900) 100%);
}

.lb-root[data-lb-state="context-lost"] .lb-status:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.55);
}

.lb-status__glow:not(#lb-theme-guard) {
	background: var(--lb-gold-400);
}

.lb-controls:not(#lb-theme-guard) {
	background: var(--lb-panel-bg);
}

.lb-button:not(#lb-theme-guard),
.lb-select:not(#lb-theme-guard) {
	background: transparent;
}

.lb-select:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.6);
}

.lb-customize:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.88);
}

.lb-customize__editing:not(#lb-theme-guard) {
	background: rgba(233, 194, 122, 0.08);
}

.lb-customize__color:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.6);
}

.lb-button--primary:not(#lb-theme-guard) {
	background: var(--lb-gold-400);
}

.lb-button--primary:hover:not(#lb-theme-guard) {
	background: var(--lb-ivory-100);
}

.lb-button:disabled:not(#lb-theme-guard),
.lb-button:disabled:hover:not(#lb-theme-guard) {
	background: transparent;
}

.lb-preview-note:not(#lb-theme-guard) {
	background: rgba(184, 137, 74, 0.92);
}

.lb-clock__ornament:not(#lb-theme-guard)::before,
.lb-clock__ornament:not(#lb-theme-guard)::after {
	background: linear-gradient(90deg, rgba(233, 194, 122, 0), rgba(233, 194, 122, 0.75));
}

.lb-debug:not(#lb-theme-guard) {
	background: rgba(0, 0, 0, 0.62);
}

.lb-music__panel:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.94);
}

.lb-music-debug:not(#lb-theme-guard) {
	background: var(--lb-panel-bg);
}

.lb-music-debug__button:not(#lb-theme-guard) {
	background: transparent;
}

.lb-fallback > .lb-list:not(#lb-theme-guard) {
	background: var(--lb-panel-bg);
}

.lb-fallback__inner:not(#lb-theme-guard) {
	background: var(--lb-panel-bg);
}

.lb-admin-notice:not(#lb-theme-guard) {
	background: #fff8e6;
}

.lb-tour-fade:not(#lb-theme-guard) {
	background: var(--lb-midnight-900);
}

.lb-subtitles[data-lb-background="band"] .lb-subtitles__line:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.62);
}

.lb-tooltip:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.88);
}

.lb-notice:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.9);
}

.lb-sheet:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.97);
}

.lb-sheet__body:not(#lb-theme-guard)::-webkit-scrollbar-track,
.lb-customize__body:not(#lb-theme-guard)::-webkit-scrollbar-track,
.lb-fallback:not(#lb-theme-guard)::-webkit-scrollbar-track,
.lb-game-card:not(#lb-theme-guard)::-webkit-scrollbar-track,
.lb-game-picks:not(#lb-theme-guard)::-webkit-scrollbar-track {
	background: transparent;
}

.lb-sheet__body:not(#lb-theme-guard)::-webkit-scrollbar-thumb,
.lb-customize__body:not(#lb-theme-guard)::-webkit-scrollbar-thumb,
.lb-fallback:not(#lb-theme-guard)::-webkit-scrollbar-thumb,
.lb-game-card:not(#lb-theme-guard)::-webkit-scrollbar-thumb,
.lb-game-picks:not(#lb-theme-guard)::-webkit-scrollbar-thumb {
	background: rgba(233, 194, 122, 0.6);
}

.lb-story-private:not(#lb-theme-guard) {
	background: rgba(233, 194, 122, 0.08);
}

.lb-discover__input:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.6);
}

.lb-discover__tab:not(#lb-theme-guard) {
	background: transparent;
}

.lb-discover__pick:not(#lb-theme-guard) {
	background: transparent;
}

.lb-discover__pick:hover:not(#lb-theme-guard) {
	background: rgba(233, 194, 122, 0.06);
}

.lb-list:not(.lb-fallback > .lb-list):not(#lb-theme-guard) {
	background: linear-gradient(180deg, var(--lb-midnight-700) 0%, var(--lb-midnight-900) 100%);
}

.lb-list__field input:not(#lb-theme-guard),
.lb-list__field select:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.6);
}

.lb-list__submit:not(#lb-theme-guard) {
	background: var(--lb-gold-400);
}

.lb-story__card:not(#lb-theme-guard) {
	background:
		radial-gradient(120% 60% at 50% 0%, rgba(31, 111, 120, 0.35) 0%, transparent 60%),
		linear-gradient(180deg, var(--lb-midnight-700) 0%, var(--lb-midnight-900) 100%);
}

.lb-story__note:not(#lb-theme-guard) {
	background: rgba(233, 194, 122, 0.08);
}

.lb-story__button:not(#lb-theme-guard) {
	background: var(--lb-gold-400);
}

.lb-story__button--quiet:not(#lb-theme-guard) {
	background: transparent;
}

.lb-story .lb-story__url:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.6);
}

.lb-story__invite:not(#lb-theme-guard) {
	background: rgba(233, 194, 122, 0.06);
}

.lb-controls__menu:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.94);
}

.lb-wiz__input:not(#lb-theme-guard),
.lb-wiz__textarea:not(#lb-theme-guard),
.lb-wiz__select:not(#lb-theme-guard),
.lb-wiz__file:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.7);
}

.lb-root .lb-wiz__input:not(#lb-theme-guard),
.lb-root .lb-wiz__textarea:not(#lb-theme-guard),
.lb-root .lb-wiz__select:not(#lb-theme-guard),
.lb-root .lb-wiz__file:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.7);
}

.lb-wiz__choice:has(input:checked):not(#lb-theme-guard) {
	background: rgba(233, 194, 122, 0.08);
}

.lb-wiz__nav:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.96);
}

.lb-preview:not(#lb-theme-guard) {
	background: radial-gradient(60% 70% at 50% 45%, rgba(246, 240, 228, 0.12) 0%, transparent 70%);
}

.lb-dash__lock:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.45);
}

.lb-button--danger:not(#lb-theme-guard) {
	background: rgba(150, 40, 40, 0.55);
}

.lb-google:not(#lb-theme-guard) {
	background: #ffffff;
}

.lb-google:hover:not(#lb-theme-guard) {
	background: #f2f4f5;
}

a.lb-google:not(#lb-theme-guard) {
	background: #ffffff !important;
}

a.lb-google:hover:not(#lb-theme-guard) {
	background: #f2f4f5 !important;
}

.lb-intro:not(#lb-theme-guard) {
	background: linear-gradient(180deg, rgba(17, 29, 54, 0.95) 0%, rgba(11, 20, 38, 0.97) 100%);
}

.lb-intro__message > h1:first-child:not(#lb-theme-guard)::after,
.lb-intro__message > h2:first-child:not(#lb-theme-guard)::after {
	background:
		linear-gradient(90deg, rgba(233, 194, 122, 0) 0%, rgba(233, 194, 122, 0.7) 38%, rgba(233, 194, 122, 0) 38%, rgba(233, 194, 122, 0) 62%, rgba(233, 194, 122, 0.7) 62%, rgba(233, 194, 122, 0) 100%) center / 100% 1px no-repeat;
}

.lb-intro__never:not(#lb-theme-guard) {
	background: none;
}

.lb-intro__close:not(#lb-theme-guard) {
	background: transparent;
}

.lb-intro__close:hover:not(#lb-theme-guard) {
	background: rgba(255, 255, 255, 0.06);
}

.lb-help__body:not(#lb-theme-guard)::-webkit-scrollbar-thumb {
	background: rgba(233, 194, 122, 0.6);
}

.lb-gift-invite:not(#lb-theme-guard) {
	background: rgba(233, 194, 122, 0.06);
}

.lb-envelope__back:not(#lb-theme-guard) {
	background: linear-gradient(160deg, #f8f2e6, #e9dfcb);
}

.lb-envelope__front:not(#lb-theme-guard) {
	background:
		linear-gradient(to top right, transparent 49.6%, rgba(120, 95, 50, 0.22) 50%, transparent 50.6%),
		linear-gradient(to top left, transparent 49.6%, rgba(120, 95, 50, 0.22) 50%, transparent 50.6%),
		linear-gradient(160deg, #f6efe2, #ebe0ca);
}

.lb-envelope__flap:not(#lb-theme-guard) {
	background: linear-gradient(180deg, #efe6d3, #e2d5bb);
}

.lb-envelope__letter:not(#lb-theme-guard) {
	background: #fffaf0;
}

.lb-envelope__seal:not(#lb-theme-guard) {
	background: radial-gradient(circle at 35% 35%, #f3d79b, #b8894a 70%);
}

.lb-gift-modal:not(#lb-theme-guard) {
	background: rgba(6, 11, 22, 0.62);
}

.lb-gift-card:not(#lb-theme-guard) {
	background: linear-gradient(180deg, var(--lb-midnight-800), var(--lb-midnight-900));
}

.lb-gift-card__input:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.6);
}

.lb-gift-card__choice:has(input:checked):not(#lb-theme-guard) {
	background: rgba(233, 194, 122, 0.08);
}

.lb-gift-card__chip:not(#lb-theme-guard) {
	background: transparent;
}

.lb-gift__stage:not(#lb-theme-guard) {
	background:
		radial-gradient(60% 45% at 50% 55%, rgba(233, 194, 122, 0.16) 0%, transparent 70%),
		radial-gradient(ellipse at 50% 20%, var(--lb-midnight-700), var(--lb-midnight-900) 75%);
}

.lb-intro__tile:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.6);
}

.lb-ride-start:not(#lb-theme-guard) {
	background: var(--lb-panel-bg);
}

.lb-ride-card:not(#lb-theme-guard) {
	background: linear-gradient(180deg, rgba(17, 29, 54, 0.86) 0%, rgba(11, 20, 38, 0.9) 100%);
}

.lb-ride-card--own:not(#lb-theme-guard) {
	background: linear-gradient(160deg, #f8e2a0 0%, #e6bb55 45%, #c9952e 100%);
}

.lb-ride-photo:not(#lb-theme-guard) {
	background: radial-gradient(circle at 35% 30%, #f3d58f, #d7a94f 70%);
}

.lb-ride-photo-view:not(#lb-theme-guard) {
	background: rgba(6, 10, 20, 0.72);
}

.lb-ride-keys:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.55);
}

.lb-ride-stick:not(#lb-theme-guard) {
	background: radial-gradient(circle, rgba(11, 20, 38, 0.15) 0%, rgba(11, 20, 38, 0.45) 100%);
}

.lb-ride-stick__knob:not(#lb-theme-guard) {
	background: radial-gradient(circle at 40% 35%, rgba(246, 240, 228, 0.95) 0%, rgba(233, 194, 122, 0.85) 100%);
}

.lb-ride-action:not(#lb-theme-guard) {
	background: radial-gradient(circle at 40% 35%, rgba(233, 194, 122, 0.95) 0%, rgba(184, 137, 74, 0.9) 100%);
}

.lb-ride-action:not(#lb-theme-guard)::after {
	background: conic-gradient(rgba(246, 240, 228, 0.85) calc(var(--lb-wait, 0) * 360deg), transparent 0);
}

.lb-ride-speed:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.62);
}

.lb-ride-tank:not(#lb-theme-guard) {
	background: rgba(11, 20, 38, 0.62);
}

.lb-ride-tank__fill:not(#lb-theme-guard) {
	background: linear-gradient(180deg, #f3d48f 0%, #d9a95a 100%);
}

.lb-ride-tank[data-lb-ride-tank="locked"] .lb-ride-tank__fill:not(#lb-theme-guard) {
	background: linear-gradient(180deg, #9aa1ad 0%, #6f7684 100%);
}

.lb-ride-tank__mark:not(#lb-theme-guard) {
	background: rgba(246, 240, 228, 0.75);
}

.lb-ride-people__n:not(#lb-theme-guard) {
	background: #c8102e;
}

.lb-ride-people--alone:not(#lb-theme-guard)::after {
	background: currentColor;
}

.lb-game-hud__line:not(#lb-theme-guard) {
	background: rgba(246, 240, 228, 0.25);
}

.lb-game-hud__line i:not(#lb-theme-guard) {
	background: var(--lb-gold-400);
}

.lb-game-card:not(#lb-theme-guard) {
	background: var(--lb-panel-bg);
}
/* theme-guard:end */
