.stw-app {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: 100vw;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	height: 100vh;
	height: 100svh;
	height: 100dvh;
	margin-left: -50vw;
	background: #090b0f;
	color: #fff;
	overflow: hidden;
	overflow-x: clip;
	overscroll-behavior: contain;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	isolation: isolate;
	box-sizing: border-box;
	z-index: 20;
}

.stw-app *,
.stw-app *::before,
.stw-app *::after {
	box-sizing: inherit;
}

.stw-topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	min-height: 46px;
	padding: max(8px, env(safe-area-inset-top)) 12px 8px;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
	border-bottom: 0;
}

.stw-topbar strong,
.stw-topbar span {
	display: block;
}

.stw-topbar strong {
	color: #fff;
	font-size: 12px;
	line-height: 1.2;
}

.stw-topbar span {
	color: rgba(255, 255, 255, 0.68);
	font-size: 11px;
	line-height: 1.25;
}

.stw-topbar-actions {
	display: flex;
	flex: 0 0 auto;
	gap: 8px;
	align-items: center;
}

.stw-deck-switcher {
	display: flex;
	gap: 4px;
	padding: 3px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 9px;
	background: rgba(0, 0, 0, 0.28);
}

.stw-deck-switcher button {
	min-height: 28px;
	padding: 5px 8px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: rgba(255, 255, 255, 0.72);
	font: inherit;
	font-size: 11px;
	font-weight: 800;
	cursor: pointer;
}

.stw-deck-switcher button[aria-pressed="true"] {
	background: #fff;
	color: #090b0f;
}

.stw-quiet-button {
	flex: 0 0 auto;
	min-height: 34px;
	padding: 7px 9px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	font-weight: 800;
	cursor: pointer;
}

.stw-quiet-button:hover,
.stw-quiet-button:focus {
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.stw-quiet-button span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	margin-left: 4px;
	border-radius: 999px;
	background: #fff;
	color: #090b0f;
	font-size: 12px;
}

.stw-card-stage {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	min-height: 100dvh;
	height: 100vh;
	height: 100svh;
	height: 100dvh;
	overflow: hidden;
	overscroll-behavior: contain;
}

.stw-card {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	overflow: hidden;
	background: #090b0f;
	cursor: grab;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	--stw-swipe-strength: 0;
	transition: transform 180ms ease, opacity 180ms ease;
}

.stw-card-dragging {
	cursor: grabbing;
	touch-action: none;
	transition: none;
}

.stw-card-exit-like,
.stw-card-exit-save {
	opacity: 0;
	transform: translate3d(120vw, -10px, 0) rotate(16deg) scale(0.94);
	transition: transform 420ms cubic-bezier(0.18, 0.78, 0.25, 1), opacity 360ms ease 80ms;
}

.stw-card-exit-nope {
	opacity: 0;
	transform: translate3d(-120vw, -10px, 0) rotate(-16deg) scale(0.94);
	transition: transform 420ms cubic-bezier(0.18, 0.78, 0.25, 1), opacity 360ms ease 80ms;
}

.stw-card-bg {
	position: absolute;
	inset: -34px;
	background-position: center;
	background-size: cover;
	filter: blur(22px);
	opacity: 0.72;
	transform: scale(1.12);
}

.stw-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.06) 25%, rgba(0, 0, 0, 0.78) 100%),
		radial-gradient(circle at center, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.22));
	pointer-events: none;
}

.stw-card-image {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100vh;
	height: 100svh;
	height: 100dvh;
	object-fit: contain;
	filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.38));
	pointer-events: none;
}

.stw-swipe-stamp {
	position: absolute;
	z-index: 3;
	top: 96px;
	padding: 8px 12px;
	border: 4px solid currentColor;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.12);
	font-size: clamp(34px, 9vw, 72px);
	font-weight: 950;
	letter-spacing: 0;
	line-height: 1;
	opacity: 0;
	text-transform: uppercase;
	transform: scale(0.86);
	transition: opacity 140ms ease, transform 160ms ease;
	pointer-events: none;
}

.stw-swipe-like {
	left: 24px;
	color: #35f08f;
	transform: rotate(-12deg) scale(0.86);
}

.stw-swipe-nope {
	right: 24px;
	color: #ff5f66;
	transform: rotate(12deg) scale(0.86);
}

.stw-swipe-save {
	left: 50%;
	top: 108px;
	color: #facc15;
	transform: translateX(-50%) rotate(-4deg) scale(0.86);
}

.stw-card-intent-like .stw-swipe-like,
.stw-card-intent-nope .stw-swipe-nope,
.stw-card-button-like .stw-swipe-like,
.stw-card-button-nope .stw-swipe-nope,
.stw-card-button-save .stw-swipe-save {
	opacity: var(--stw-swipe-strength);
	transform: rotate(-12deg) scale(1);
}

.stw-card-intent-nope .stw-swipe-nope,
.stw-card-button-nope .stw-swipe-nope {
	transform: rotate(12deg) scale(1);
}

.stw-card-button-save .stw-swipe-save {
	transform: translateX(-50%) rotate(-4deg) scale(1);
}

.stw-card-button-like,
.stw-card-button-nope,
.stw-card-button-save {
	--stw-swipe-strength: 1;
}

.stw-card-overlay {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 116px;
	padding: 34px 18px 14px;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.42) 62%, rgba(0, 0, 0, 0) 100%);
}

.stw-card-overlay h2 {
	max-width: 920px;
	margin: 0 auto 7px;
	color: #fff;
	font-size: clamp(19px, 3vw, 32px);
	line-height: 1.12;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7);
}

.stw-card-match {
	max-width: 920px;
	margin: 0 auto 8px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.stw-card-match-strong {
	color: #bbf7d0;
}

.stw-card-match-taste {
	color: #fde68a;
}

.stw-card-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	max-width: 920px;
	margin: 0 auto;
}

.stw-card-terms span,
.stw-card-terms a {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 28px;
	padding: 5px 8px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.28);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	overflow-wrap: anywhere;
	text-decoration: none;
	pointer-events: auto;
}

.stw-card-terms a:hover,
.stw-card-terms a:focus {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.stw-card-terms .stw-term-positive {
	border-color: rgba(74, 222, 128, 0.48);
	background: rgba(22, 101, 52, 0.52);
}

.stw-controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: grid;
	grid-template-columns: 48px 68px 58px 68px 48px;
	gap: 7px;
	align-items: end;
	justify-content: center;
	padding: 10px max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-right));
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.64) 56%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none;
}

.stw-button {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 8px 6px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	line-height: 1.05;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
	pointer-events: auto;
	transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.stw-button::before {
	display: block;
	margin-bottom: 3px;
	font-size: 20px;
	line-height: 1;
}

.stw-button-nope,
.stw-button-like {
	min-height: 68px;
	font-size: 12px;
}

.stw-button-nope::before {
	content: "\00d7";
	font-size: 28px;
}

.stw-button-like::before {
	content: "\2665";
	font-size: 25px;
}

.stw-button-save {
	min-height: 58px;
	font-size: 11px;
}

.stw-button-save::before {
	content: "\2605";
	font-size: 22px;
}

.stw-button-undo,
.stw-button-saved {
	min-height: 48px;
	font-size: 9px;
}

.stw-button span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	margin-top: 3px;
	border-radius: 999px;
	background: #fff;
	color: #090b0f;
	font-size: 10px;
}

.stw-button:disabled {
	opacity: 0.42;
	cursor: not-allowed;
}

.stw-button:hover,
.stw-button:focus {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	transform: translateY(-1px);
}

.stw-button-nope {
	border-color: rgba(255, 107, 107, 0.95);
	background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.22), rgba(239, 68, 68, 0.28) 52%, rgba(127, 29, 29, 0.34));
	color: #ffe8e8;
}

.stw-button-like {
	border-color: rgba(74, 222, 128, 0.95);
	background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.22), rgba(34, 197, 94, 0.3) 52%, rgba(20, 83, 45, 0.36));
	color: #e8fff0;
}

.stw-button-save {
	border-color: rgba(250, 204, 21, 0.92);
	background: radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.2), rgba(234, 179, 8, 0.28) 54%, rgba(113, 63, 18, 0.34));
	color: #fff8d7;
}

.stw-button-read {
	grid-column: 1 / -1;
	order: 1;
	justify-self: center;
	width: min(360px, calc(100vw - 32px));
	min-height: 42px;
	margin-bottom: 2px;
	border-radius: 12px;
	border-color: rgba(255, 255, 255, 0.34);
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 13px;
	text-transform: none;
	backdrop-filter: blur(10px);
}

.stw-button-undo {
	order: 2;
	border-color: rgba(216, 180, 254, 0.5);
	background: rgba(255, 255, 255, 0.08);
}

.stw-button-saved {
	order: 6;
	border-color: rgba(45, 212, 191, 0.58);
	background: rgba(13, 148, 136, 0.18);
}

.stw-button-nope {
	order: 3;
}

.stw-button-save {
	order: 4;
}

.stw-button-like {
	order: 5;
}

.stw-swipe-hint {
	position: absolute;
	z-index: 6;
	left: 50%;
	top: 42%;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	align-items: center;
	transform: translate(-50%, -50%);
	width: min(430px, calc(100vw - 28px));
	padding: 11px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px;
	background: rgba(7, 10, 15, 0.74);
	color: #fff;
	pointer-events: none;
	opacity: 0;
	animation: stw-hint-pulse 2600ms ease 700ms 1 both;
	box-shadow: 0 18px 58px rgba(0, 0, 0, 0.36);
	backdrop-filter: blur(10px);
}

.stw-swipe-hint-choice {
	display: grid;
	gap: 5px;
	min-height: 74px;
	place-content: center;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	text-align: center;
}

.stw-swipe-hint-choice span {
	color: rgba(255, 255, 255, 0.76);
	font-size: 13px;
	font-weight: 800;
	line-height: 1.1;
}

.stw-swipe-hint-choice strong {
	font-size: 22px;
	line-height: 1;
	text-transform: uppercase;
}

.stw-swipe-hint-nope strong {
	color: #ff8a8a;
}

.stw-swipe-hint-nope span::before {
	content: "<";
	margin-right: 6px;
}

.stw-swipe-hint-like strong {
	color: #86efac;
}

.stw-swipe-hint-like span::after {
	content: ">";
	margin-left: 6px;
}

.stw-swipe-hint-hidden {
	display: none;
}

.stw-coach {
	position: absolute;
	z-index: 8;
	left: 50%;
	top: 50%;
	display: grid;
	gap: 10px;
	width: min(390px, calc(100vw - 30px));
	padding: 16px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 18px;
	background: rgba(8, 11, 17, 0.88);
	color: #fff;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
	transform: translate(-50%, -50%);
	backdrop-filter: blur(12px);
}

.stw-coach[hidden] {
	display: none !important;
}

.stw-coach strong {
	font-size: 18px;
	line-height: 1.1;
}

.stw-coach span {
	color: rgba(255, 255, 255, 0.78);
	font-size: 14px;
	line-height: 1.35;
}

.stw-coach button,
.stw-empty-retry {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 999px;
	padding: 10px 14px;
	background: #fff;
	color: #090b0f;
	font: inherit;
	font-size: 13px;
	font-weight: 900;
	cursor: pointer;
}

.stw-persona {
	position: absolute;
	z-index: 6;
	right: 18px;
	top: 68px;
	display: grid;
	gap: 5px;
	max-width: min(320px, calc(100vw - 36px));
	padding: 9px 11px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 12px;
	background: rgba(8, 11, 17, 0.64);
	color: #fff;
	box-shadow: 0 14px 42px rgba(0, 0, 0, 0.32);
	backdrop-filter: blur(12px);
	pointer-events: none;
}

.stw-persona[hidden] {
	display: none !important;
}

.stw-persona span {
	color: rgba(255, 255, 255, 0.62);
	font-size: 10px;
	font-weight: 900;
	letter-spacing: 0;
	line-height: 1.1;
	text-transform: uppercase;
}

.stw-persona strong {
	color: #fff;
	font-size: 16px;
	line-height: 1.1;
}

.stw-persona em {
	color: rgba(255, 255, 255, 0.74);
	font-size: 12px;
	font-style: normal;
	line-height: 1.25;
}

.stw-persona-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.stw-persona-tags span {
	padding: 3px 7px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.78);
	font-size: 10px;
	font-weight: 800;
	text-transform: none;
}

@keyframes stw-hint-pulse {
	0%,
	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.96);
	}

	18%,
	80% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

.stw-empty,
.stw-loading {
	display: grid;
	min-height: 100svh;
	place-content: center;
	padding: 24px;
	text-align: center;
}

.stw-empty[hidden],
.stw-loading[hidden] {
	display: none !important;
}

.stw-empty h2,
.stw-loading h2 {
	margin: 0 0 8px;
	color: #fff;
	font-size: 32px;
}

.stw-empty p,
.stw-loading p {
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
}

.stw-empty-retry {
	justify-self: center;
	margin-top: 16px;
}

.stw-saved-panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 7;
	max-height: min(64svh, 560px);
	padding: 14px 12px max(18px, env(safe-area-inset-bottom));
	background: rgba(16, 20, 27, 0.98);
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.45);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateY(100%);
	transition: transform 180ms ease;
}

.stw-saved-panel-open {
	transform: translateY(0);
}

.stw-saved-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 1100px;
	margin: 0 auto 12px;
}

.stw-saved-panel h2 {
	margin: 0;
	color: #fff;
	font-size: clamp(18px, 4vw, 22px);
}

.stw-saved-actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.stw-saved-insight {
	max-width: 1100px;
	margin: -4px auto 12px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	line-height: 1.35;
}

.stw-saved-copy,
.stw-saved-close {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	padding: 8px 13px;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	cursor: pointer;
}

.stw-saved-copy {
	background: #fff;
	color: #090b0f;
}

.stw-saved-copy:hover,
.stw-saved-copy:focus,
.stw-saved-close:hover,
.stw-saved-close:focus {
	background: rgba(255, 255, 255, 0.18);
}

.stw-saved-copy:hover,
.stw-saved-copy:focus {
	background: rgba(255, 255, 255, 0.86);
	color: #090b0f;
}

.stw-saved-list {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 0 8px;
}

.stw-saved-group {
	margin: 0 0 16px;
}

.stw-saved-group h3 {
	margin: 0 0 2px;
	color: #fff;
	font-size: 15px;
	line-height: 1.2;
}

.stw-saved-group p {
	margin: 0 0 8px;
	color: rgba(255, 255, 255, 0.58);
	font-size: 12px;
	line-height: 1.25;
}

.stw-saved-group-list {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x proximity;
	touch-action: pan-x;
	-webkit-overflow-scrolling: touch;
}

.stw-saved-item {
	display: grid;
	grid-template-columns: 54px 1fr auto;
	gap: 10px;
	align-items: center;
	flex: 0 0 min(260px, 78vw);
	min-height: 64px;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	color: #fff;
	background: rgba(255, 255, 255, 0.05);
	scroll-snap-align: start;
}

.stw-saved-remove {
	appearance: none;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	font: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.stw-saved-remove:hover,
.stw-saved-remove:focus {
	background: rgba(255, 255, 255, 0.18);
}

.stw-saved-item img {
	width: 54px;
	height: 46px;
	object-fit: cover;
	border-radius: 6px;
	background: #222;
}

.stw-saved-item a {
	color: #fff;
	text-decoration: none;
}

.stw-saved-item a:hover,
.stw-saved-item a:focus {
	color: #fff;
	text-decoration: underline;
}

.stw-saved-item a {
	overflow-wrap: anywhere;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.stw-saved-empty {
	max-width: 1100px;
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
}

.stw-toast {
	position: fixed;
	z-index: 9999;
	left: 50%;
	bottom: 22px;
	width: min(360px, calc(100vw - 32px));
	transform: translateX(-50%);
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	background: rgba(12, 18, 26, 0.96);
	color: #fff;
	text-align: center;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.36);
}

.stw-fallback {
	padding: 18px 16px 24px;
	background: #fff;
	border-top: 1px solid #e5e7eb;
	color: #1d2327;
	font-size: 15px;
	line-height: 1.45;
}

.stw-fallback > * {
	max-width: 960px;
	margin-left: auto;
	margin-right: auto;
}

.stw-fallback h2 {
	margin-top: 0 !important;
	margin-bottom: 6px !important;
	color: #1d2327;
	font-size: clamp(20px, 2vw, 28px) !important;
	line-height: 1.15 !important;
}

.stw-fallback h3 {
	margin: 16px auto 8px !important;
	color: #1d2327;
	font-size: 17px !important;
	line-height: 1.25 !important;
}

.stw-fallback p {
	margin-top: 0;
	margin-bottom: 12px;
	max-width: 960px;
	color: #4b5563;
	font-size: 15px;
}

.stw-fallback ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 6px 18px;
	padding-left: 20px;
	margin-top: 0;
	margin-bottom: 0;
}

.stw-fallback li {
	margin: 0;
	font-size: 14px;
	line-height: 1.35;
}

.stw-fallback a {
	color: #135e96;
}

.stw-admin-debug {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	padding: 10px 16px;
	background: #f6f7f7;
	border-top: 1px solid #dcdcde;
	color: #1d2327;
	font-size: 12px;
	line-height: 1.3;
}

.stw-admin-debug strong,
.stw-admin-debug span,
.stw-admin-debug button {
	display: inline-flex;
	padding: 4px 7px;
	border: 1px solid #dcdcde;
	border-radius: 999px;
	background: #fff;
}

.stw-admin-debug button {
	color: #1d2327;
	font: inherit;
	cursor: pointer;
}

@media (min-width: 760px) {
	.stw-card-stage,
	.stw-card-image,
	.stw-empty,
	.stw-loading {
		min-height: 100svh;
		min-height: 100dvh;
		height: 100svh;
		height: 100dvh;
	}

	.stw-controls {
		grid-template-columns: 54px 78px 66px 78px 54px;
		justify-content: center;
		gap: 10px;
	}

	.stw-card-overlay {
		bottom: 122px;
	}

	.stw-topbar {
		padding-left: 24px;
		padding-right: 24px;
	}
}

/* v0.25.1: Desktop Chrome should let the page keep scrolling when the wheel is over the image/card. */
@media (pointer: fine) {
	.stw-app,
	.stw-card-stage {
		overscroll-behavior: auto;
	}
}

/* v0.20.0 mobile polish: keep the shortcode UI app-like on phones without touching theme headers or global WordPress styles. */
@media (max-width: 640px) {
	.stw-app {
		width: 100vw;
		max-width: 100vw;
		min-height: 100dvh;
		min-height: var(--stw-mobile-vh, 100dvh);
		height: 100dvh;
		height: var(--stw-mobile-vh, 100dvh);
		margin-top: 0;
		overflow: hidden;
		overflow-x: clip;
		touch-action: pan-y;
		z-index: 9990;
	}

	.stw-app button,
	.stw-app a {
		touch-action: manipulation;
	}

	.stw-topbar {
		z-index: 8;
		display: grid;
		grid-template-columns: minmax(0, 1fr);
		gap: 7px;
		align-items: stretch;
		min-height: 0;
		padding: calc(env(safe-area-inset-top) + 8px) 12px 9px;
		background: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.44) 72%, rgba(0, 0, 0, 0));
	}

	.stw-topbar > div:first-child {
		min-width: 0;
	}

	.stw-topbar strong,
	.stw-topbar span {
		overflow: hidden;
	}

	.stw-topbar strong {
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.stw-topbar span {
		white-space: normal;
	}

	.stw-topbar-actions {
		width: 100%;
		min-width: 0;
		justify-content: space-between;
	}

	.stw-deck-switcher {
		flex: 1 1 auto;
		min-width: 0;
	}

	.stw-deck-switcher button {
		flex: 1 1 0;
		min-width: 0;
		min-height: 30px;
		padding: 5px 6px;
	}

	.stw-quiet-button {
		min-height: 32px;
		padding: 6px 8px;
		white-space: nowrap;
	}

	.stw-card-stage {
		min-height: 100dvh;
		min-height: var(--stw-mobile-vh, 100lvh);
		height: 100dvh;
		height: var(--stw-mobile-vh, 100lvh);
	}

	.stw-persona {
		left: auto;
		right: 10px;
		top: calc(env(safe-area-inset-top) + 96px);
		max-width: min(230px, calc(100vw - 20px));
		padding: 7px 9px;
		opacity: 0.92;
	}

	.stw-persona strong {
		font-size: 14px;
	}

	.stw-persona em {
		display: none;
	}

	.stw-persona-tags {
		gap: 3px;
	}

	.stw-persona-tags span {
		padding: 2px 6px;
		font-size: 9px;
	}

	.stw-card {
		display: flex;
		align-items: flex-start;
		justify-content: center;
		padding-top: 96px;
		padding-top: clamp(86px, calc(var(--stw-mobile-vh, 100lvh) * 0.18), 112px);
		touch-action: pan-y;
	}

	.stw-card-dragging {
		touch-action: none;
	}

	.stw-card-bg {
		inset: -24px;
		filter: blur(18px);
		opacity: 0.66;
	}

	.stw-card-image {
		width: 100%;
		height: clamp(230px, calc(var(--stw-mobile-vh, 100lvh) - 288px), calc(var(--stw-mobile-vh, 100lvh) * 0.55));
		min-height: 230px;
		object-fit: contain;
		object-position: center center;
	}

	.stw-card-overlay {
		bottom: calc(130px + env(safe-area-inset-bottom));
		padding: 54px 18px 12px;
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.56) 58%, rgba(0, 0, 0, 0) 100%);
	}

	.stw-card-match {
		margin-bottom: 6px;
		font-size: 11px;
	}

	.stw-card-overlay h2 {
		display: -webkit-box;
		overflow: hidden;
		margin-bottom: 8px;
		font-size: clamp(18px, 5.2vw, 23px);
		line-height: 1.13;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
	}

	.stw-card-terms {
		max-height: 66px;
		overflow: hidden;
		gap: 5px;
	}

	.stw-card-terms span,
	.stw-card-terms a {
		min-height: 26px;
		padding: 4px 8px;
		font-size: 11px;
	}

	.stw-controls {
		grid-template-columns: 44px 64px 56px 64px 44px;
		gap: 7px;
		padding: 9px max(10px, env(safe-area-inset-left)) calc(env(safe-area-inset-bottom) + 14px) max(10px, env(safe-area-inset-right));
		background: linear-gradient(0deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.78) 62%, rgba(0, 0, 0, 0) 100%);
	}

	.stw-button-read {
		width: min(344px, calc(100vw - 36px));
		min-height: 44px;
		margin: 0 auto 5px;
		border-radius: 15px;
	}

	.stw-button {
		min-height: 46px;
		padding: 7px 4px;
	}

	.stw-button-nope,
	.stw-button-like {
		min-height: 64px;
	}

	.stw-button-save {
		min-height: 56px;
	}

	.stw-button::before {
		margin-bottom: 2px;
	}

	.stw-swipe-stamp {
		top: 116px;
		top: clamp(102px, calc(var(--stw-mobile-vh, 100lvh) * 0.2), 150px);
		font-size: clamp(32px, 11vw, 52px);
	}
}

@media (max-width: 420px) {
	.stw-topbar {
		align-items: stretch;
	}

	.stw-topbar-actions {
		flex-direction: row;
		gap: 5px;
		align-items: center;
	}

	.stw-deck-switcher button {
		padding: 4px 6px;
		font-size: 10px;
	}

	.stw-controls {
		grid-template-columns: 44px 64px 54px 64px 44px;
		gap: 6px;
	}

	.stw-button {
		min-height: 44px;
		padding: 7px 4px;
	}

	.stw-button-nope,
	.stw-button-like {
		min-height: 64px;
	}

	.stw-button-save {
		min-height: 54px;
	}

	.stw-card-overlay {
		bottom: calc(130px + env(safe-area-inset-bottom));
		padding-left: 14px;
		padding-right: 14px;
	}

	.stw-swipe-hint {
		top: 39%;
		width: min(360px, calc(100vw - 24px));
		padding: 9px;
	}

	.stw-swipe-hint-choice {
		min-height: 66px;
	}

	.stw-swipe-hint-choice strong {
		font-size: 18px;
	}

	.stw-swipe-hint-choice span {
		font-size: 12px;
	}

	.stw-coach {
		top: 46%;
	}
}
