/* ==========================================================================
   Teravalis Match. Love where you live.
   Brand foundations from the Teravalis theme (fonts, greens, blues, sand),
   pushed warmer with a desert-sunset "love" gradient for the dating-app feel.
   ========================================================================== */

@font-face { font-family: "Altform"; src: url("https://fonts.howardhughes.com/teravalis/Altform/Altform-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Altform"; src: url("https://fonts.howardhughes.com/teravalis/Altform/Altform-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Altform"; src: url("https://fonts.howardhughes.com/teravalis/Altform/Altform-RegularItalic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Iskry"; src: url("https://fonts.howardhughes.com/teravalis/Iskry_Family/Iskry_Bold/Iskry-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--white: #ffffff;
	--grey-100: #f8f8f8;
	--grey-200: #e4e5e5;
	--grey-300: #c7c7c7;
	--grey-400: #a1a1a1;
	--grey-500: #707070;
	--grey-700: #4a4a4a;
	--grey-900: #2b3034;
	--ink: #141414;

	--sand: #eff0f0;
	--sand-dark: #e1e3e3;
	--green: #47baa3;
	--green-dark: #318171;
	--green-tint: #e3f4f0;
	--blue-tint: #e8f6fe;
	--blue-dark: #007bbd;
	--blue: #00a7ff;
	--blue-light: #00d0fa;
	--orange: #ff9500;
	--coral: #00a7ff; /* accent (was coral) */
	--red: #a45345;

	--love: linear-gradient(115deg, #00a7ff 0%, #3db9c1 42%, #87ac77 72%, #ff9500 100%); /* the gradient from the Teravalis mark */
	--like: linear-gradient(135deg, #47baa3 0%, #00a7ff 100%);
	--nope: #f2546b;

	--font-display: "Iskry", Georgia, serif;
	--font-body: "Altform", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius-s: 6px;
	--radius-m: 8px;
	--radius-card: 8px;
	--shadow-card: 0 18px 40px rgba(20, 20, 20, .16), 0 3px 8px rgba(20, 20, 20, .08);
	--shadow-soft: 0 4px 16px rgba(20, 20, 20, .10);
	--app-max: 440px;
	--safe-bottom: env(safe-area-inset-bottom, 0px);
	--safe-top: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.45;
	color: var(--grey-900);
	background: var(--sand);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	overscroll-behavior: none;
	overflow: hidden;
	position: fixed;
	inset: 0;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--green-dark); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Desktop backdrop ------------------------------------------- */
.backdrop {
	position: fixed; inset: 0;
	background: var(--sand) url("assets/topographic-light.svg") center / cover no-repeat;
	display: none;
}
.backdrop__copy { position: absolute; left: max(40px, calc(50% - 600px)); top: 50%; transform: translateY(-50%); max-width: 300px; }
.backdrop__eyebrow { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--green-dark); margin: 0 0 12px; }
.backdrop__title { font-family: var(--font-display); font-size: 64px; line-height: .95; margin: 0 0 20px; background: var(--love); -webkit-background-clip: text; background-clip: text; color: transparent; }
.backdrop__body { color: var(--grey-700); margin: 0 0 28px; }
.backdrop__keys { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--grey-700); font-size: 14px; }
kbd { display: inline-block; min-width: 26px; padding: 2px 7px; border-radius: 6px; background: var(--white); border: 1px solid var(--grey-200); box-shadow: 0 1px 0 var(--grey-300); font-family: inherit; font-size: 13px; text-align: center; }

@media (min-width: 900px) {
	.backdrop { display: block; }
}
@media (min-width: 900px) and (max-width: 1099px) {
	.backdrop__copy { display: none; }
}

/* ---------- App shell -------------------------------------------------- */
.app {
	position: relative;
	height: 100dvh;
	max-width: var(--app-max);
	margin: 0 auto;
	display: flex; flex-direction: column;
	background: var(--sand);
	overflow: hidden;
}
@media (min-width: 600px) {
	.app {
		height: min(880px, calc(100dvh - 48px));
		margin-top: max(24px, calc((100dvh - 880px) / 2));
		border-radius: 12px;
		box-shadow: 0 30px 80px rgba(20, 20, 20, .18), 0 0 0 1px rgba(20, 20, 20, .04);
	}
}

.topbar {
	flex: none;
	display: flex; align-items: center; justify-content: space-between;
	padding: calc(10px + var(--safe-top)) 16px 6px;
}
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 22px; letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; }
.brand span { background: var(--love); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon-btn {
	width: 40px; height: 40px; border-radius: 50%;
	display: grid; place-items: center;
	color: var(--grey-700);
}
.icon-btn:hover { background: rgba(20,20,20,.05); }
.icon-btn svg { width: 22px; height: 22px; }

.screen { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }

/* ---------- Bottom nav ------------------------------------------------- */
.nav {
	flex: none;
	display: grid; grid-template-columns: repeat(3, 1fr);
	padding: 6px 12px calc(8px + var(--safe-bottom));
	border-top: 1px solid var(--grey-200);
	background: var(--sand);
}
.nav__item { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font-size: 11px; font-weight: 600; color: var(--grey-400); position: relative; }
.nav__item svg { width: 26px; height: 26px; }
.nav__item[aria-current="page"] { color: var(--blue-dark); }
.nav__badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--love); color: var(--white); font-size: 11px; line-height: 18px; text-align: center; }

/* ---------- Welcome ---------------------------------------------------- */
.welcome {
	flex: 1; position: relative; color: var(--white);
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 24px 24px calc(28px + var(--safe-bottom));
	overflow: hidden;
}
.welcome__mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 4px; transform: rotate(-8deg) scale(1.35); }
.welcome__mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.welcome::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,20,20,.15) 0%, rgba(20,20,20,.25) 35%, rgba(20,20,20,.88) 72%); }
.welcome > *:not(.welcome__mosaic) { position: relative; z-index: 1; }
.welcome__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 30px; margin-bottom: 14px; }
.welcome__logo img { width: 40px; height: 40px; }
.welcome h1 { font-family: var(--font-display); font-size: 46px; line-height: .98; margin: 0 0 14px; }
.welcome p { margin: 0 0 24px; font-size: 17px; color: rgba(255,255,255,.88); }
.welcome__small { font-size: 12px !important; color: rgba(255,255,255,.65) !important; margin: 14px 0 0 !important; text-align: center; }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 24px; border-radius: 8px;
	font-weight: 600; font-size: 16px; letter-spacing: .01em;
	transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}
.btn:active { transform: scale(.97); }
.btn--love { background: var(--love); color: var(--white); box-shadow: 0 8px 22px rgba(0, 167, 255, .3); }
.btn--ghost { background: rgba(255,255,255,.14); color: var(--white); border: 1.5px solid rgba(255,255,255,.6); }
.btn--outline { border: 1.5px solid var(--grey-300); color: var(--grey-900); background: var(--white); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.link-btn { color: var(--grey-500); font-weight: 600; font-size: 14px; padding: 8px; }

/* ---------- Quiz ------------------------------------------------------- */
.quiz { flex: 1; display: flex; flex-direction: column; padding: 8px 20px calc(20px + var(--safe-bottom)); min-height: 0; }
.quiz__progress { display: flex; gap: 6px; margin: 4px 0 26px; }
.quiz__progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--grey-200); }
/* Each step takes its own colour from the Teravalis gradient */
.quiz__progress span.is-done:nth-child(1) { background: #00a7ff; }
.quiz__progress span.is-done:nth-child(2) { background: #3db9c1; }
.quiz__progress span.is-done:nth-child(3) { background: #87ac77; }
.quiz__progress span.is-done:nth-child(4) { background: #ff9500; }
.quiz__step { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); margin: 0 0 6px; }
.quiz h2 { font-family: var(--font-display); font-size: 34px; line-height: 1.02; margin: 0 0 8px; }
.quiz__hint { color: var(--grey-500); margin: 0 0 20px; }
.quiz__options { display: grid; gap: 10px; overflow-y: auto; padding-bottom: 12px; flex: 1; min-height: 0; align-content: start; }
.option {
	display: flex; align-items: center; gap: 14px; text-align: left;
	padding: 14px 16px; border-radius: var(--radius-m);
	background: var(--white); border: 2px solid transparent;
	box-shadow: 0 1px 2px rgba(20,20,20,.06);
	transition: border-color .15s, transform .15s;
}
.option:active { transform: scale(.98); }
.option__emoji { font-size: 26px; width: 34px; text-align: center; flex: none; }
.option__label { font-weight: 600; display: block; }
.option__sub { font-size: 13px; color: var(--grey-500); display: block; }
.option[aria-pressed="true"] { border-color: var(--coral); background: var(--blue-tint); }
.option__tick { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--grey-300); flex: none; display: grid; place-items: center; color: var(--white); }
.option[aria-pressed="true"] .option__tick { background: var(--blue); border-color: transparent; }
.quiz__footer { display: flex; gap: 10px; align-items: center; padding-top: 8px; }
.quiz__footer .btn { flex: 1; }

/* ---------- Deck ------------------------------------------------------- */
.deck { flex: 1; min-height: 0; position: relative; margin: 4px 12px 12px; }
.card {
	position: absolute; inset: 0;
	border-radius: var(--radius-card);
	overflow: hidden;
	background: var(--grey-900);
	box-shadow: var(--shadow-card);
	touch-action: none; user-select: none; -webkit-user-select: none;
	will-change: transform;
	transform-origin: 50% 100%;
}
.card.is-behind { transform: scale(.95) translateY(10px); filter: brightness(.92); transition: transform .3s ease, filter .3s; }
.card.is-animating { transition: transform .35s cubic-bezier(.2,.8,.3,1); }
.card__slides { position: absolute; inset: 0; }
.card__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.card__slide.is-active { opacity: 1; }
.card__slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card__slide--plan { background: var(--white); }
.card__slide--plan img { object-fit: contain; padding: 30px 14px 40%; }
.card__slide--map { background: #eceeee; }
.card__slide--map svg { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.card__bars { position: absolute; top: 0; left: 24px; right: 24px; display: flex; gap: 4px; z-index: 4; }
.card__bars button { flex: 1; padding: 8px 0 10px; cursor: pointer; }
.card__bars button:hover span:not(.is-active) { background: rgba(255,255,255,.7); }
.card--light .card__bars button:hover span:not(.is-active) { background: rgba(20,20,20,.35); }
.card__bars span { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4); }
.card__bars span.is-active { background: var(--white); }
.card--light .card__bars span { background: rgba(20,20,20,.15); }
.card--light .card__bars span.is-active { background: var(--grey-900); }
.card__tap { position: absolute; top: 0; bottom: 38%; z-index: 2; }
.card__tap--prev { left: 0; width: 35%; }
.card__tap--next { right: 0; width: 65%; }
.card__badges { position: absolute; top: 22px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 3; pointer-events: none; }
.pill {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 5px 10px; border-radius: 6px;
	font-size: 12px; font-weight: 600; line-height: 1.2;
	background: rgba(255,255,255,.92); color: var(--grey-900);
	backdrop-filter: blur(6px);
}
.pill--love { background: var(--love); color: var(--white); }
.pill--green { background: var(--green); color: var(--white); }
.pill--dark { background: rgba(20,20,20,.6); color: var(--white); }

.card__info {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 90px 64px 100px 18px;
	color: var(--white);
	background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(20,20,20,.55) 32%, rgba(20,20,20,.9) 100%);
	cursor: pointer;
}
.card__name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0; }
.card__name strong { font-family: var(--font-display); font-size: 32px; line-height: 1; font-weight: 700; }
.card__name span { font-size: 20px; opacity: .9; }
.card__meta { margin: 6px 0 0; font-size: 14px; opacity: .85; display: flex; align-items: center; gap: 6px; }
.card__meta svg { width: 14px; height: 14px; flex: none; }
.card__body { margin-top: 10px; min-height: 56px; }
.card__tagline { font-size: 16px; margin: 0; }
.card__label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 6px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.18); color: inherit; backdrop-filter: blur(4px); }
.chip.is-match { background: var(--white); color: var(--grey-900); }
.chip.is-match::before { content: "✓"; color: var(--coral); }
.card__price { margin: 8px 0 0; font-weight: 600; font-size: 15px; }
.card__stats { display: flex; gap: 12px; margin-top: 12px; font-size: 14px; opacity: .95; flex-wrap: wrap; }
.card__stats span { display: inline-flex; align-items: center; gap: 5px; }
.card__stats svg { width: 16px; height: 16px; }
.card__more {
	position: absolute; right: 14px; bottom: 100px; z-index: 3;
	width: 36px; height: 36px; border-radius: 50%;
	background: rgba(255,255,255,.95); color: var(--grey-900);
	display: grid; place-items: center; box-shadow: var(--shadow-soft);
}
.card__more svg { width: 20px; height: 20px; }
.card__slide--plan ~ .card__info, .card.card--light .card__info { }
.card__stamp {
	position: absolute; top: 46px; z-index: 4;
	padding: 4px 14px; border: 4px solid; border-radius: 6px;
	font-family: var(--font-display); font-size: 40px; letter-spacing: .04em;
	opacity: 0; pointer-events: none;
}
.card__stamp--like { left: 22px; color: var(--green); border-color: var(--green); transform: rotate(-14deg); }
.card__stamp--nope { right: 22px; color: var(--nope); border-color: var(--nope); transform: rotate(14deg); }

/* Action bar sits over the bottom of the card, Tinder-style */
.actions {
	position: absolute; left: 0; right: 0; bottom: 30px; z-index: 5;
	display: flex; justify-content: center; align-items: center; gap: 18px;
	pointer-events: none;
}
.action {
	pointer-events: auto;
	width: 60px; height: 60px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--white);
	box-shadow: 0 6px 18px rgba(20,20,20,.22);
	transition: transform .15s ease;
}
.action:hover { transform: scale(1.06); }
.action:active { transform: scale(.92); }
.action svg { width: 28px; height: 28px; }
.action--small { width: 46px; height: 46px; }
.action--small svg { width: 20px; height: 20px; }
.action--nope { color: var(--nope); }
.action--like { color: var(--white); background: var(--like); width: 68px; height: 68px; }
.action--like svg { width: 32px; height: 32px; }
.action--undo { color: var(--orange); }
.action--hi { color: var(--blue); }
.action[disabled] { opacity: .45; pointer-events: none; }

.empty {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; padding: 30px; gap: 10px;
}
.empty__emoji { font-size: 64px; }
.empty h2 { font-family: var(--font-display); font-size: 30px; line-height: 1.05; margin: 0; }
.empty p { color: var(--grey-500); margin: 0 0 12px; }

.toast {
	position: absolute; left: 50%; top: 70px; transform: translate(-50%, -20px);
	background: var(--green-dark); color: var(--white); padding: 10px 16px; border-radius: 10px;
	font-size: 14px; font-weight: 600; z-index: 60; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Sheets & overlays ------------------------------------------ */
.overlay {
	position: absolute; inset: 0; z-index: 40;
	background: var(--sand);
	display: flex; flex-direction: column;
	transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
.overlay.is-open { transform: none; }
.overlay__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(10px + var(--safe-top)) 10px 8px 16px; background: var(--sand); }
.overlay__title { font-weight: 600; font-size: 17px; margin: 0; display: flex; align-items: center; gap: 10px; min-width: 0; }
.overlay__title img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.overlay__title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overlay__scroll { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

/* ---------- Full profile (Hinge-style) ---------------------------------- */
.profile { padding: 0 12px 120px; display: grid; gap: 12px; }
.profile__head { padding: 6px 6px 2px; }
.profile__head h1 { font-family: var(--font-display); font-size: 38px; line-height: 1; margin: 0; }
.profile__head p { margin: 6px 0 0; color: var(--grey-500); }
.match-meter { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.match-meter__ring { --p: 80; width: 54px; height: 54px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--coral) calc(var(--p) * 1%), var(--grey-200) 0); }
.match-meter__ring b { width: 44px; height: 44px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-size: 14px; }
.match-meter p { margin: 0; font-size: 14px; color: var(--grey-700); }
.match-meter strong { display: block; color: var(--grey-900); font-size: 15px; }

.panel { background: var(--white); border-radius: var(--radius-card); overflow: hidden; position: relative; }
.panel--pad { padding: 22px 20px; }
.panel__photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; cursor: zoom-in; }
.panel__photo--tall { aspect-ratio: 4 / 5; }
.panel__label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); margin: 0 0 10px; }
.panel h3 { font-size: 15px; font-weight: 600; margin: 0 0 10px; color: var(--grey-700); }
.panel__big { font-family: var(--font-display); font-size: 26px; line-height: 1.12; margin: 0; }
.panel p { margin: 0; }
.panel p + p { margin-top: 10px; }
.panel__like {
	position: absolute; right: 14px; bottom: 14px;
	width: 46px; height: 46px; border-radius: 50%;
	background: var(--white); color: var(--coral);
	box-shadow: var(--shadow-soft); display: grid; place-items: center;
}
.panel__like svg { width: 22px; height: 22px; }
.panel--pad .panel__like { position: static; margin: 14px 0 0 auto; }
.panel__like.is-liked { background: var(--love); color: var(--white); }

.vitals { display: grid; grid-template-columns: repeat(3, 1fr); }
.vitals div { padding: 14px 8px; text-align: center; border-right: 1px solid var(--grey-200); border-bottom: 1px solid var(--grey-200); }
.vitals div:nth-child(3n) { border-right: 0; }
.vitals div:nth-last-child(-n+3) { border-bottom: 0; }
.vitals b { display: block; font-size: 18px; }
.vitals span { font-size: 12px; color: var(--grey-500); }

.chips--light .chip { background: var(--sand); color: var(--grey-900); backdrop-filter: none; }
.chips--light .chip.is-match { background: var(--green-tint); color: var(--grey-900); }

.reasons { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.reasons li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.reasons li::before { content: "♥"; color: var(--coral); flex: none; }
.reasons li.is-miss::before { content: "·"; color: var(--grey-400); font-weight: 700; }
.reasons li.is-miss { color: var(--grey-500); }

.floorplan { background: var(--white); cursor: zoom-in; }
.floorplan img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; padding: 14px; }
.floorplan__tabs { display: flex; gap: 6px; padding: 0 20px 6px; flex-wrap: wrap; }
.floorplan__tabs button { padding: 6px 12px; border-radius: 6px; background: var(--sand); font-size: 13px; font-weight: 600; }
.floorplan__tabs button[aria-pressed="true"] { background: var(--blue-dark); color: var(--white); }
.panel__links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.panel__links a, .panel__links button {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 9px 14px; border-radius: 8px; background: var(--sand);
	font-size: 14px; font-weight: 600; color: var(--grey-900); text-decoration: none;
}

.map { background: #eceeee; }
.map svg { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; }
.map__legend { display: flex; gap: 12px; flex-wrap: wrap; padding: 10px 20px 0; font-size: 12px; color: var(--grey-500); }
.map__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.walks { display: grid; gap: 10px; margin-top: 14px; }
.walk { display: flex; align-items: center; gap: 12px; }
.walk__icon { width: 40px; height: 40px; border-radius: 8px; background: var(--sand); display: grid; place-items: center; font-size: 20px; flex: none; }
.walk b { display: block; font-size: 15px; }
.walk span { font-size: 13px; color: var(--grey-500); }

.lots { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-m); background: var(--sand); text-decoration: none; color: inherit; }
.lot__dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--grey-300); }
.lot--available .lot__dot { background: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.lot b { display: block; font-size: 15px; }
.lot span { font-size: 13px; color: var(--grey-500); }
.lot__arrow { margin-left: auto; color: var(--grey-400); }
.lots__summary { font-size: 14px; color: var(--grey-500); margin-top: 12px !important; }

.nearby { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.nearby li { display: flex; gap: 12px; }
.nearby__icon { font-size: 22px; width: 30px; text-align: center; flex: none; }
.nearby b { font-size: 15px; }
.nearby p { font-size: 14px; color: var(--grey-500); margin: 2px 0 0 !important; }
.nearby__tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 4px; background: var(--sand); color: var(--grey-700); margin-left: 6px; vertical-align: 2px; }
.nearby__tag--soon { background: #fff1dc; color: #9a5a00; }
.nearby__tag--match { background: var(--green-tint); color: var(--green-dark); }
.fineprint { font-size: 12px; color: var(--grey-500); margin-top: 14px !important; }

.profile__bar {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
	display: flex; justify-content: center; gap: 18px;
	padding: 16px 16px calc(18px + var(--safe-bottom));
	background: linear-gradient(180deg, rgba(239,240,240,0), var(--sand) 45%);
	pointer-events: none;
}
.profile__bar .action { pointer-events: auto; }

/* ---------- Lightbox ---------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(10,10,10,.96); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .2s; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__head { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + var(--safe-top)) 10px 6px 16px; color: var(--white); font-size: 14px; }
.lightbox__head .icon-btn { color: var(--white); }


.lightbox__stage.is-light { background: var(--white); }


.lightbox__nav { display: flex; justify-content: space-between; padding: 10px 16px calc(14px + var(--safe-bottom)); }
.lightbox__nav button { color: var(--white); padding: 10px 16px; border-radius: 10px; background: rgba(255,255,255,.12); font-weight: 600; }
.lightbox__caption { color: rgba(255,255,255,.7); font-size: 13px; text-align: center; padding: 0 20px; }

/* ---------- Likes & messages ------------------------------------------- */
.likes { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 16px 24px; }
.likes h2 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green-dark); margin: 18px 0 10px; }
.matches-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.matches-row::-webkit-scrollbar { display: none; }
.match-bubble { flex: none; width: 76px; text-align: center; font-size: 13px; font-weight: 600; }
.match-bubble img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid transparent; background: var(--love) border-box; margin: 0 auto 6px; padding: 2px; background-clip: padding-box, border-box; }
.match-bubble__ring { width: 76px; height: 76px; border-radius: 50%; padding: 3px; background: var(--love); margin: 0 auto 6px; }
.match-bubble__ring img { width: 100%; height: 100%; border: 3px solid var(--sand); padding: 0; margin: 0; background: var(--sand); }
.match-bubble span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.threads { display: grid; gap: 2px; }
.thread { display: flex; align-items: center; gap: 12px; padding: 10px 4px; text-align: left; border-radius: 8px; width: 100%; }
.thread:hover { background: rgba(20,20,20,.04); }
.thread img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.thread b { display: block; }
.thread span { display: block; font-size: 14px; color: var(--grey-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread > div { min-width: 0; flex: 1; }
.thread__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex: none; }
.like-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.like-tile { position: relative; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 3 / 4; background: var(--grey-900); color: var(--white); text-align: left; }
.like-tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.like-tile div { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 10px 10px; background: linear-gradient(180deg, transparent, rgba(20,20,20,.85)); }
.like-tile b { display: block; font-size: 16px; }
.like-tile span { font-size: 12px; opacity: .85; }
.like-tile .pill { position: absolute; top: 8px; left: 8px; }
.likes__empty { text-align: center; padding: 40px 20px; color: var(--grey-500); }
.likes__empty div { font-size: 48px; }

/* ---------- Chat -------------------------------------------------------- */
.chat { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 20px; }
.chat__date { text-align: center; font-size: 12px; color: var(--grey-400); margin: 6px 0; }
.chat__intro { text-align: center; padding: 10px 20px 4px; }
.chat__intro img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; }
.chat__intro p { margin: 0; font-size: 14px; color: var(--grey-500); }
.chat__intro b { display: block; font-size: 17px; color: var(--grey-900); }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.4; animation: bubble .25s ease; }
.bubble--them { align-self: flex-start; background: var(--white); border-bottom-left-radius: 4px; }
.bubble--me { align-self: flex-end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.bubble--system { align-self: center; background: transparent; color: var(--grey-500); font-size: 12px; text-align: center; max-width: 90%; }
.bubble a { color: inherit; font-weight: 600; }
.bubble ul { margin: 6px 0 0; padding-left: 18px; }
.typing { align-self: flex-start; background: var(--white); border-radius: 14px; padding: 12px 16px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--grey-400); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; } }
@keyframes bubble { from { transform: translateY(6px); opacity: 0; } }
.chat__replies { flex: none; display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px calc(12px + var(--safe-bottom)); border-top: 1px solid var(--grey-200); scrollbar-width: none; }
.chat__replies::-webkit-scrollbar { display: none; }
.form-card { align-self: stretch; background: var(--white); border-radius: 12px; padding: 16px; display: grid; gap: 10px; animation: bubble .25s ease; }
.form-card h4 { margin: 0; font-size: 16px; }
.form-card p { margin: 0; font-size: 13px; color: var(--grey-500); }
.form-card label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--grey-700); }
.form-card input, .form-card textarea { width: 100%; padding: 11px 12px; border-radius: 6px; border: 1.5px solid var(--grey-200); background: var(--grey-100); font-size: 16px; }
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--coral); background: var(--white); }
.form-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Preferences ------------------------------------------------- */
.prefs { flex: 1; overflow-y: auto; padding: 4px 16px 24px; }
.prefs .panel { margin-bottom: 12px; }
.prefs dl { margin: 0; display: grid; gap: 12px; }
.prefs dt { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); }
.prefs dd { margin: 2px 0 0; font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: center; }
.stat-row b { display: block; font-family: var(--font-display); font-size: 30px; }
.stat-row span { font-size: 12px; color: var(--grey-500); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Light slides (floorplan, map) get a light caption instead of the dark fade */
.card--light .card__info { color: var(--grey-900); background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.92) 30%, #fff 100%); }
.card--light .chip { background: var(--sand); }
.card--light .card__more { background: var(--blue-dark); color: var(--white); }
.card .card__info, .card .card__info .chip { transition: background .2s, color .2s; }
.likes { overflow-x: hidden; }
.thread { overflow: hidden; }
@media (max-width: 340px) {
	.actions { gap: 10px; }
	.action { width: 52px; height: 52px; }
	.action--like { width: 60px; height: 60px; }
	.action--small { width: 40px; height: 40px; }
}

/* Card front: slow crossfade through the plan's photos, with a gentle drift */
.card__fade { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; opacity: 0; transform: scale(1.01); transition: opacity 1.2s ease, transform 6s ease-out; }
.card__fade.is-on { opacity: 1; transform: scale(1.06); }

/* Full-window lightbox */


.lightbox__stage.is-light { background: var(--white); margin: 0 16px; border-radius: 8px; }


.lightbox__head, .lightbox__nav, .lightbox__caption { max-width: 1200px; width: 100%; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) {
	.lightbox__nav button { padding: 12px 22px; }
}

/* Zoomable stage: transforms instead of scroll bars */
.lightbox__stage { flex: 1; min-height: 0; position: relative; overflow: hidden; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; cursor: zoom-in; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center center; will-change: transform; pointer-events: none; }
.lightbox__stage img.is-animating { transition: transform .3s cubic-bezier(.2,.8,.3,1); }
.lightbox__stage.is-zoomed { cursor: grab; }
.lightbox__stage.is-zoomed:active { cursor: grabbing; }
.lightbox__tools { display: flex; gap: 2px; }
.lightbox__tools .icon-btn[disabled] { opacity: .35; pointer-events: none; }
.lightbox__tools .icon-btn:hover { background: rgba(255,255,255,.1); }

/* Quiz: checkboxes for pick-any; pick-one options are highlighted by their border only */
.option__tick--check { border-radius: 5px; font-size: 14px; font-weight: 700; }

/* Panel hearts are decorative only (not a second like button) */
.panel__like { box-shadow: none; pointer-events: none; display: grid; width: 40px; height: 40px; }
.panel__like svg { width: 18px; height: 18px; }
.panel--pad .panel__like { background: var(--sand); }
.panel > .panel__like { background: rgba(255,255,255,.85); }

/* Single-photo plans: a slow drift so the card front still feels alive */
.card__drift { animation: drift 14s ease-in-out infinite alternate; transform-origin: 30% 50%; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.18) translateX(-3%); } }

/* Chat suggestions: wrap so every question is visible, CTA full width below */
.chat__replies { display: grid; gap: 10px; overflow: visible; }
.chat__replies-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__chips button { padding: 9px 14px; border-radius: 8px; background: var(--white); border: 1.5px solid var(--grey-200); font-size: 14px; font-weight: 600; transition: border-color .15s, transform .15s; }
.chat__chips button:hover { border-color: var(--coral); }
.chat__chips button:active { transform: scale(.96); }
.chat__replies .btn { min-height: 48px; }

/* Each photo drifts in gently while it's showing */
.card__slide img { transform: scale(1); transition: transform 5s ease-out; }
.card__slide.is-active img:not(.card__drift) { transform: scale(1.05); }

/* Toasts can wrap on narrow screens */
.toast { white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 32px); border-radius: 10px; line-height: 1.35; }

/* Profile floating bar: ✕ / ♥ plus the "I'm interested" enquiry button */
.profile__bar { align-items: center; gap: 12px; }
.profile__bar .btn--bar { pointer-events: auto; min-height: 56px; padding: 0 20px; box-shadow: 0 6px 18px rgba(20,20,20,.18); }
.profile__bar .btn--outline.btn--bar { border-color: transparent; }
@media (max-width: 380px) {
	.profile__bar { gap: 8px; }
	.profile__bar .btn--bar { padding: 0 14px; font-size: 15px; }
}
.profile__bar .btn--bar { min-width: 220px; }

/* ---------- Matchmaking transition ---------------------------------------- */
.matchmaking {
	position: absolute; inset: 0; z-index: 90;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	padding: 24px; text-align: center; cursor: pointer;
	background: var(--sand) url("assets/topographic-light.svg") center / cover no-repeat;
	opacity: 0; transition: opacity .5s ease;
}
.matchmaking.is-open { opacity: 1; }
.matchmaking__stage { position: relative; width: 280px; height: 280px; margin-bottom: 18px; }
.matchmaking__logo {
	position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px;
	filter: drop-shadow(0 10px 22px rgba(0, 167, 255, .3));
	animation: heartbeat 1.1s ease-in-out infinite;
}
.matchmaking.is-done .matchmaking__logo { animation: logoPop .55s cubic-bezier(.2,1.6,.4,1) forwards; }
.matchmaking__ripple {
	position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px;
	border-radius: 50%; border: 2px solid var(--coral); opacity: 0;
	animation: ripple 1.4s ease-out infinite;
}
.matchmaking.is-done .matchmaking__ripple { animation: none; }
.matchmaking__orbit {
	position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
	border-radius: 50%; object-fit: cover; border: 3px solid var(--white);
	box-shadow: 0 6px 16px rgba(20,20,20,.18); opacity: 0;
	animation: orbit 2.2s cubic-bezier(.45,.05,.4,1) forwards;
}
.matchmaking__line {
	margin: 0; min-height: 2.4em; max-width: 320px;
	font-family: var(--font-display); font-size: 24px; line-height: 1.15; color: var(--grey-900);
	opacity: 0; transform: translateY(8px);
}
.matchmaking__line.is-in { animation: lineIn .45s ease forwards; }
.matchmaking__line--result { font-size: 36px; }
.matchmaking__grad { background: var(--love); -webkit-background-clip: text; background-clip: text; color: transparent; }
.matchmaking__sub { margin: 0; min-height: 1.4em; color: var(--grey-700); font-weight: 600; }

@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.12); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } 60% { transform: scale(1); } }
@keyframes logoPop { 0% { transform: scale(1); } 50% { transform: scale(1.3) rotate(-6deg); } 100% { transform: scale(1.15); } }
@keyframes ripple { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.8); opacity: 0; } }
@keyframes orbit {
	0% { transform: rotate(var(--a)) translateX(150px) rotate(calc(-1 * var(--a))) scale(.5); opacity: 0; }
	15% { opacity: 1; }
	75% { transform: rotate(calc(var(--a) + 220deg)) translateX(110px) rotate(calc(-1 * (var(--a) + 220deg))) scale(1); opacity: 1; }
	100% { transform: rotate(calc(var(--a) + 300deg)) translateX(0) rotate(calc(-1 * (var(--a) + 300deg))) scale(.3); opacity: 0; }
}
@keyframes lineIn { to { opacity: 1; transform: none; } }

/* Cards wait hidden under the matchmaking screen, then glide in as it fades */
.deck .card.is-waiting { opacity: 0; transition: none; }
.deck .card.is-waiting:not(.is-behind) { transform: translateY(36px) scale(.96); }
.deck .card.is-arriving:not(.is-behind) { transition: transform .8s cubic-bezier(.16,1,.3,1), opacity .5s ease; }
.deck .card.is-arriving.is-behind { transition: opacity .6s ease .25s; }
.matchmaking__line--result { white-space: normal; }
.matchmaking__emoji { margin-left: 8px; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.matchmaking__logo, .matchmaking__ripple { animation: none !important; }
	.matchmaking__ripple { display: none; }
	.matchmaking__line.is-in { animation-duration: .01ms !important; }
}
.matchmaking__keep { white-space: nowrap; }

/* Opportunity callout ("build me new") */
.panel__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-m); background: #fff4e3; color: var(--grey-900); font-size: 14px; line-height: 1.4; }
.panel__note > span { font-size: 18px; line-height: 1.2; }
.panel__note p { margin: 0 !important; }
.panel__note--map { margin: 12px 20px 0; }

/* ---------- Like / pass ceremony ------------------------------------------ */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 2000; overflow: hidden; }
.fx-heart { position: absolute; font-size: 22px; line-height: 1; will-change: transform, opacity; }
.fx-heart--fly { font-size: 28px; filter: drop-shadow(0 4px 8px rgba(0,167,255,.35)); }
.fx-ring { position: absolute; width: 90px; height: 90px; border-radius: 50%; border: 3px solid var(--coral); }
.card.is-animating.is-passed { filter: grayscale(1) brightness(.85); opacity: .6; transition: transform .35s cubic-bezier(.2,.8,.3,1), filter .25s ease, opacity .35s ease; }
.card.is-animating.is-liked { transition: transform .35s cubic-bezier(.3,.6,.3,1); }
.toast.has-action { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; }
.toast__action { color: #8fe3ff; font-weight: 700; padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,.12); white-space: nowrap; }
.toast__action:hover { background: rgba(255,255,255,.22); }

/* Saved toggle + removing likes */
.like-tile-wrap { position: relative; }
.like-tile-wrap .like-tile { width: 100%; }
.like-tile__remove {
	position: absolute; top: 8px; right: 8px; z-index: 2;
	width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
	background: rgba(20,20,20,.55); color: var(--white); backdrop-filter: blur(4px);
}
.like-tile__remove svg { width: 14px; height: 14px; }
.like-tile__remove:hover { background: var(--nope); }

/* Saved status at the top of the profile */
.saved-tag { display: flex; align-items: center; gap: 10px; margin: 12px 0 0 !important; font-size: 14px; }
.saved-tag span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: var(--blue-tint); color: var(--blue-dark); font-weight: 600; }
.saved-tag span svg { width: 14px; height: 14px; }
.saved-tag__remove { color: var(--grey-500); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.saved-tag__remove:hover { color: var(--nope); }

/* Header: the TERAVALIS wordmark from the logo (no marque) beside "matchmaker" */
.brand .brand__wordmark { width: auto; height: 13px; margin: 0 2px 0 2px; position: relative; top: 1px; }

/* ---------- Icons (Phosphor duotone, in Teravalis colours) -------------- */
.ico { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 24px; }
.ico--blue   { color: #007bbd; background: #e8f6fe; }
.ico--teal   { color: #2a9aa3; background: #e4f6f7; }
.ico--green  { color: #5f8a52; background: #eef4ea; }
.ico--orange { color: #d97a00; background: #fff3e0; }
.option .ico { margin-left: -4px; }
.tone-blue { color: #007bbd; }
.tone-orange { color: #d97a00; }
.pill i { font-size: 14px; }
.mark { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
.mark--white { filter: brightness(0) invert(1); }
.nearby__icon { width: auto; font-size: 0; }
.nearby__icon .ico { width: 34px; height: 34px; font-size: 20px; border-radius: 8px; }
.walk__icon { font-size: 22px; color: var(--green-dark); }
.panel__note > i { font-size: 20px; color: var(--orange); flex: none; margin-top: 1px; }
.btn i { font-size: 20px; }
.panel__links i { font-size: 16px; }
.toast__icon { font-size: 18px; vertical-align: -3px; margin-right: 6px; color: #8fe3ff; }
.toast.has-action .toast__icon { margin-right: 0; }
.empty__icon .ico { width: 72px; height: 72px; font-size: 40px; border-radius: 18px; margin: 0 auto; }
.pref-ico { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 6px; background: var(--blue-tint); color: var(--blue-dark); font-size: 16px; vertical-align: -7px; }
.matchmaking__emoji .mark { width: 34px; height: 34px; vertical-align: -4px; }
.fx-heart--fly .mark { width: 34px; height: 34px; filter: drop-shadow(0 4px 8px rgba(0, 167, 255, .35)); }

/* Compact card details: price/specs moved up with the match tag; lighter fade at the bottom */
.card__info { padding: 56px 18px 100px; background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(20,20,20,.6) 40%, rgba(20,20,20,.88) 100%); }
.card__body { margin-top: 6px; min-height: 0; }
.card__tagline { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pill--specs { gap: 9px; }
.pill--specs > span { display: inline-flex; align-items: center; gap: 4px; }
.pill--specs svg { width: 14px; height: 14px; color: var(--grey-500); }

/* ---------- One-time tour ------------------------------------------------- */
.coach { position: absolute; inset: 0; z-index: 6; background: rgba(10, 18, 24, .45); display: flex; align-items: flex-end; justify-content: center; padding: 0 16px 112px; animation: coachIn .25s ease; }
.coach.is-leaving { opacity: 0; transition: opacity .25s; }
@keyframes coachIn { from { opacity: 0; } }
.coach__card { width: 100%; max-width: 380px; background: var(--white); border-radius: 12px; padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 12px; box-shadow: 0 16px 40px rgba(10,10,10,.28); animation: bubble .3s ease; }
.coach__icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 26px; color: var(--blue-dark); background: var(--blue-tint); }
.coach__card b { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.15; }
.coach__card p { margin: 4px 0 0; font-size: 14px; color: var(--grey-700); }
.coach__foot { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.coach__dots { display: flex; gap: 5px; margin-right: auto; }
.coach__dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--grey-300); }
.coach__dots i.is-on { background: var(--blue); }
.coach__skip { color: var(--grey-500); font-weight: 600; font-size: 14px; padding: 8px; }
.coach__next { min-height: 40px; padding: 0 18px; font-size: 14px; }
.actions .action.is-spotlight { position: relative; z-index: 7; pointer-events: none; box-shadow: 0 0 0 4px var(--white), 0 0 0 9px rgba(0, 167, 255, .55), 0 10px 24px rgba(10,10,10,.3); animation: spotPulse 1.4s ease-in-out infinite; }
@keyframes spotPulse { 50% { transform: scale(1.08); } }
.actions:has(.is-spotlight) { z-index: 7; }
.actions:has(.is-spotlight) .action:not(.is-spotlight) { opacity: .35; }
.actions:has(.is-spotlight) .action { pointer-events: none; }

/* ---------- One-time tips ------------------------------------------------- */
.tip { position: absolute; z-index: 20; padding: 14px 16px 12px; border-radius: 12px; background: var(--white); box-shadow: 0 14px 36px rgba(10,10,10,.24), 0 0 0 1px rgba(0,167,255,.25); animation: bubble .3s ease; }
.tip.is-leaving { opacity: 0; transition: opacity .2s; }
.tip b { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.15; }
.tip p { margin: 4px 0 8px; font-size: 14px; color: var(--grey-700); }
.tip button { float: right; padding: 6px 14px; border-radius: 8px; background: var(--blue); color: var(--white); font-size: 14px; font-weight: 600; }
.tip__arrow { position: absolute; bottom: -8px; width: 16px; height: 16px; background: var(--white); transform: rotate(45deg); box-shadow: 3px 3px 6px rgba(10,10,10,.08); }
.is-tip-target { box-shadow: 0 0 0 4px var(--white), 0 0 0 8px rgba(0, 167, 255, .5) !important; animation: spotPulse 1.4s ease-in-out infinite; }
.card__body .card__stats { margin-top: 8px; }
.backdrop__keys { display: none; } /* keyboard shortcuts still work, just not listed */
.card__body .card__stats { margin-top: 0; margin-bottom: 6px; }
.topbar .brand { min-height: 40px; } /* same header height with or without the filter button */

/* ---------- Quiz options: hover touches ---------------------------------- */
.option { transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease, background .18s ease; }
.option .ico { transition: transform .18s ease, background .18s ease; }
.option:active { transform: translateY(0) scale(.98); }
@media (hover: hover) {
	.option:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20,20,20,.10); border-color: rgba(0,167,255,.25); }
	.option:hover .ico { transform: scale(1.08); }
	.option:hover .ico--blue   { background: #d9f0fd; }
	.option:hover .ico--teal   { background: #d3eff1; }
	.option:hover .ico--green  { background: #e2eddc; }
	.option:hover .ico--orange { background: #ffe8c7; }
	.option[aria-pressed="true"]:hover { border-color: var(--coral); }
	.option:hover:active { transform: translateY(0) scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
	.option:hover, .option:hover .ico { transform: none; }
}
