/* =========================================================================
   Santa Tracker - "Magical night sky" theme. Mobile-first, no build step.
   Everything is scoped to .st-* so it drops cleanly into any theme.
   ========================================================================= */
@font-face { font-family: "ST Christmas"; src: url("../fonts/mountains-of-christmas-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "ST Nunito"; src: url("../fonts/nunito-latin-var.woff2") format("woff2"); font-weight: 200 1000; font-style: normal; font-display: swap; }

.st-wrap, body.st-blank-body, body.santa-tracker-driver-body, .st-intro, .st-howto-fab {
	--st-night-1: #050b1f;
	--st-night-2: #0c1a3f;
	--st-night-3: #1b3170;
	--st-red: #d42a3a;
	--st-red-2: #a8131f;
	--st-gold: #f6c453;
	--st-gold-2: #e3a21a;
	--st-green: #13804a;
	--st-green-2: #0a5530;
	--st-snow: #f5f9ff;
	--st-ink: #18213a;
	--st-muted: #5d667c;
	--st-radius: 22px;
	--st-display: "ST Christmas", "Mountains of Christmas", "Berkshire Swash", Georgia, serif;
	--st-body: "ST Nunito", Nunito, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--st-shadow: 0 18px 40px -12px rgba(5, 11, 31, .45);
}
.st-wrap {
	box-sizing: border-box;
	position: relative;
	width: 100%;
	max-width: 780px;
	margin-left: auto !important;
	margin-right: auto !important;
	font-family: var(--st-body);
	font-size: 17px;
	line-height: 1.55;
	color: var(--st-ink);
	overflow-wrap: anywhere;
	-webkit-text-size-adjust: 100%;
	text-align: left;
}
.st-wrap *, .st-wrap *::before, .st-wrap *::after { box-sizing: border-box; }
.st-wrap [hidden] { display: none !important; }
.st-wrap h1, .st-wrap h2, .st-wrap h3, .st-wrap h4 { margin: 0 0 .45em; line-height: 1.15; color: inherit; font-family: var(--st-body); letter-spacing: 0; text-transform: none; }
.st-wrap p { margin: 0 0 .8em; }
.st-wrap a { color: inherit; }
.st-wrap button { font-family: inherit; }

/* ---------- Night sky ---------- */
.st-sky {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: #fff;
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(120, 160, 255, .28), transparent 60%),
		radial-gradient(900px 400px at 0% 0%, rgba(80, 60, 180, .25), transparent 60%),
		linear-gradient(180deg, var(--st-night-1) 0%, var(--st-night-2) 55%, var(--st-night-3) 100%);
}
.st-sky-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: block; }
.st-sky-fixed { position: fixed; }
.st-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 70px; z-index: 0; display: block; }

.st-moon {
	position: absolute; top: 14px; right: 5%; width: 58px; height: 58px; border-radius: 50%; z-index: -1;
	background: radial-gradient(circle at 35% 35%, #fffbe8 0%, #fdf1c4 55%, #f3dc91 100%);
	box-shadow: 0 0 40px 10px rgba(255, 236, 170, .35), 0 0 120px 30px rgba(255, 236, 170, .15);
}
.st-moon::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: rgba(214, 190, 120, .35); top: 22px; left: 40px; box-shadow: -18px 18px 0 -3px rgba(214, 190, 120, .3), 6px 30px 0 -4px rgba(214, 190, 120, .25); }
.st-fly { position: absolute; top: 34px; left: 0; width: 120px; z-index: -1; opacity: .95; animation: st-fly 22s linear infinite; filter: drop-shadow(0 0 6px rgba(255, 220, 140, .6)); }
.st-fly svg { width: 100%; height: auto; display: block; filter: brightness(0) saturate(0) invert(.04); }
@keyframes st-fly {
	0% { transform: translate(-160px, 60px) rotate(-6deg); }
	50% { transform: translate(50vw, 0) rotate(-2deg); }
	100% { transform: translate(110vw, 40px) rotate(4deg); }
}

/* ---------- Buttons (min 48px tap targets) ---------- */
.st-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 52px; padding: .75em 1.5em;
	border: 0; border-radius: 999px;
	font: inherit; font-family: var(--st-body); font-weight: 900; font-size: 17px; line-height: 1.2; letter-spacing: .01em;
	text-decoration: none !important; cursor: pointer; text-align: center;
	white-space: nowrap; max-width: 100%;
	color: #fff !important;
	background: linear-gradient(180deg, #e8404f, var(--st-red-2));
	box-shadow: 0 6px 0 #7d0d16, 0 12px 24px -8px rgba(168, 19, 31, .6);
	transition: transform .1s ease, box-shadow .1s ease, filter .2s;
	-webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.st-btn:hover { filter: brightness(1.07); }
.st-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #7d0d16; }
.st-wrap :focus-visible { outline: 3px solid var(--st-gold) !important; outline-offset: 3px; }
.st-btn-gold {
	color: #4a2a00 !important;
	background: linear-gradient(180deg, #ffe590 0%, var(--st-gold) 45%, var(--st-gold-2) 100%);
	box-shadow: 0 6px 0 #a86f05, 0 0 0 0 rgba(246, 196, 83, .0), 0 14px 30px -8px rgba(246, 196, 83, .75);
	text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.st-btn-gold:active { box-shadow: 0 2px 0 #a86f05; }
.st-btn-green { background: linear-gradient(180deg, #1fa060, var(--st-green-2)); box-shadow: 0 6px 0 #063a20, 0 12px 24px -8px rgba(19, 128, 74, .6); }
.st-btn-green:active { box-shadow: 0 2px 0 #063a20; }
.st-btn-candy {
	border: 5px solid transparent;
	background:
		linear-gradient(180deg, #e8404f, var(--st-red-2)) padding-box,
		repeating-linear-gradient(-45deg, #fff 0 9px, #d42a3a 9px 18px) border-box;
	box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .55);
}
.st-btn-candy:active { transform: translateY(3px); box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .5); }
.st-btn-ghost { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.st-btn-ghost:active { box-shadow: inset 0 0 0 2px #fff; }
.st-btn-dark { background: linear-gradient(180deg, #2d3754, #161d33); box-shadow: 0 6px 0 #080c18; }
.st-btn-small { min-height: 46px; padding: .5em 1.1em; font-size: 16px; }
.st-btn-block { display: flex; width: 100%; }
.st-btn[disabled] { opacity: .65; cursor: wait; }

/* ---------- Status pills ---------- */
.st-pill { display: inline-flex; align-items: center; gap: .45em; padding: .35em .9em; border-radius: 999px; font-size: 14px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: #e7e9ef; color: #333; }
.st-pill-live { background: var(--st-red); color: #fff; box-shadow: 0 0 0 0 rgba(212, 42, 58, .6); animation: st-ring 1.8s infinite; }
.st-pill-live::before, .st-live-dot { content: ""; display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: #fff; animation: st-blink 1.2s ease-in-out infinite; }
.st-pill-offline { background: #ffe9b3; color: #7a4b00; }
.st-pill-finished { background: #dfe6f3; color: #34405e; }
.st-pill-not_started { background: rgba(246, 196, 83, .2); color: #8a5a00; box-shadow: inset 0 0 0 1.5px rgba(227, 162, 26, .55); }
.st-sky .st-pill-not_started { color: var(--st-gold); background: rgba(246, 196, 83, .14); }
.st-sky .st-pill-finished { background: rgba(255, 255, 255, .16); color: #e6ecff; }
@keyframes st-ring { 0% { box-shadow: 0 0 0 0 rgba(212, 42, 58, .65); } 70% { box-shadow: 0 0 0 12px rgba(212, 42, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 42, 58, 0); } }
@keyframes st-blink { 50% { opacity: .35; } }

/* ---------- Home ---------- */
.st-hero { border-radius: var(--st-radius); padding: 64px 16px 92px; text-align: center; }
.st-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.st-eyebrow { display: inline-block; margin: 0 0 10px !important; padding: .3em .9em; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fdf3d0; font-size: 14px; font-weight: 800; letter-spacing: .03em; }
.st-hero-title {
	font-family: var(--st-display) !important; font-weight: 700; font-size: clamp(48px, 15vw, 92px) !important; line-height: .98 !important;
	margin: 0 0 .15em !important;
	color: var(--st-gold) !important;
	background: linear-gradient(180deg, #fff6d6 10%, var(--st-gold) 55%, #e6a31c 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	filter: drop-shadow(0 0 18px rgba(246, 196, 83, .45)) drop-shadow(0 3px 0 rgba(0, 0, 0, .35));
}
.st-hero-sub { margin: 0 auto 22px !important; max-width: 30em; color: #dfe6ff; font-size: 17px; }
.st-glass {
	background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .07));
	-webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
	border: 1px solid rgba(255, 255, 255, .28);
	box-shadow: 0 0 0 1px rgba(246, 196, 83, .12), 0 0 46px -6px rgba(246, 196, 83, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
	border-radius: 26px;
}
.st-search { position: relative; z-index: 3; margin: 0 0 22px; padding: 18px 14px 12px; text-align: left; }
.st-search-label { display: block; font-family: var(--st-display); font-weight: 700; font-size: clamp(24px, 6.6vw, 32px); line-height: 1.1; margin: 0 0 12px; color: #fff; text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.st-search-box { position: relative; }
.st-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; pointer-events: none; }
.st-wrap .st-search-input {
	display: block; width: 100%; min-height: 62px; margin: 0;
	padding: 14px 18px 14px 52px;
	border: 3px solid transparent !important; border-radius: 999px !important;
	background: #fff !important; color: var(--st-ink) !important;
	font: inherit; font-family: var(--st-body); font-weight: 700; font-size: 18px !important; line-height: 1.2;
	box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5), inset 0 -2px 0 rgba(0, 0, 0, .06);
	-webkit-appearance: none; appearance: none;
	transition: border-color .2s, box-shadow .2s;
}
.st-wrap .st-search-input:focus { border-color: var(--st-gold) !important; box-shadow: 0 0 0 6px rgba(246, 196, 83, .3), 0 10px 30px -8px rgba(0, 0, 0, .5); outline: none !important; }
.st-search-input::placeholder { color: #7c8499; font-weight: 600; opacity: 1; }
.st-search-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.st-results {
	list-style: none; margin: 10px 0 0 !important; padding: 6px !important;
	background: #fff; color: var(--st-ink);
	border-radius: 18px; box-shadow: var(--st-shadow);
	max-height: 55vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.st-result, .st-live-list li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.st-result a, .st-live-list a {
	display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t p" "m p"; gap: 2px 10px; align-items: center;
	min-height: 60px; padding: 10px 12px; border-radius: 14px;
	color: var(--st-ink) !important; text-decoration: none !important;
}
.st-result.is-active a, .st-result a:hover, .st-live-list a:hover { background: #fff4e0; }
.st-result-title { grid-area: t; font-weight: 900; font-size: 17px; }
.st-result-meta { grid-area: m; font-size: 14px; color: var(--st-muted); }
.st-result .st-pill, .st-live-list .st-pill { grid-area: p; font-size: 12px; }
.st-search-status { min-height: 0; margin: 10px 0 0 !important; text-align: center; color: #fff; font-size: 16px; font-weight: 700; }
.st-search-status:empty { display: none; }
.st-search-status a { color: var(--st-gold) !important; }
.st-search-hint { margin: 10px 0 2px !important; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .7); }
.st-btn-add { width: 100%; font-size: 18px; min-height: 60px; }

.st-live-list, .st-how { position: relative; z-index: 1; max-width: 960px; margin: 24px auto 0; padding: 0 12px; }
.st-live-list > * { max-width: 680px; margin-left: auto; margin-right: auto; }
.st-live-list h3 { max-width: 680px; margin: 0 auto 10px !important; display: flex; align-items: center; gap: .5em; font-size: 20px !important; color: var(--st-red); }
.st-live-list .st-live-dot { background: var(--st-red); }
.st-live-list ul { margin: 0 auto !important; padding: 8px !important; background: #fff; border-radius: 20px; box-shadow: var(--st-shadow); border-top: 6px solid var(--st-green); }
.st-how { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 8px; }
.st-how-step { background: #fff; border-radius: 20px; padding: 16px 16px 14px 70px; position: relative; box-shadow: 0 10px 26px -14px rgba(5, 11, 31, .35); }
.st-how-step h3 { font-size: 18px !important; margin-bottom: 2px !important; color: var(--st-ink); }
.st-how-step p { margin: 0 !important; color: var(--st-muted); font-size: 15px; }
.st-how-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: linear-gradient(180deg, #fff2c9, #ffe08a); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08); }

/* ---------- Add form ---------- */
.st-add { border-radius: var(--st-radius); padding: 18px 12px 28px; }
.st-add .st-back a, .st-sky .st-back a { color: #fff !important; }
.st-back { position: relative; z-index: 1; margin: 0 0 12px !important; max-width: 640px; margin-left: auto !important; margin-right: auto !important; }
.st-back a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-decoration: none !important; color: var(--st-red) !important; }
.st-card {
	position: relative; z-index: 1; max-width: 640px; margin: 0 auto;
	background: #fff; color: var(--st-ink); border-radius: 24px; padding: 22px 16px 20px;
	box-shadow: var(--st-shadow), 0 0 60px -10px rgba(246, 196, 83, .35);
	border-top: 8px solid var(--st-red);
}
.st-card::before { /* ribbon bow */ content: "🎀"; position: absolute; top: -26px; left: 50%; transform: translateX(-50%); font-size: 34px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .25)); }
.st-card-art { width: 120px; margin: 4px auto 6px; }
.st-card-art svg { width: 100%; height: auto; display: block; }
.st-card h2, .st-card h1 { font-family: var(--st-display) !important; font-weight: 700; font-size: clamp(32px, 9vw, 44px) !important; color: var(--st-red) !important; text-align: center; }
.st-card > p { color: var(--st-muted); }
.st-note { background: #fff7df; border-left: 5px solid var(--st-gold); padding: 10px 14px; border-radius: 12px; font-size: 16px; color: #6b4a00 !important; }
.st-field { margin: 0 0 16px; }
.st-field label { display: block; font-weight: 800; margin: 0 0 6px; font-size: 16px; }
.st-req { color: var(--st-red); }
.st-wrap .st-field input, .st-wrap .st-field textarea, .st-wrap .st-copy input {
	display: block; width: 100%; max-width: 100%; min-height: 54px; margin: 0;
	padding: 13px 16px;
	border: 2px solid #d5dbe7 !important; border-radius: 14px !important;
	background: #fbfcff !important; color: var(--st-ink) !important;
	font: inherit; font-family: var(--st-body); font-size: 17px !important; /* >=16px stops iOS zoom */
	-webkit-appearance: none; appearance: none;
	transition: border-color .2s, box-shadow .2s;
}
.st-wrap .st-field textarea { min-height: 110px; resize: vertical; }
.st-wrap .st-field input[type="datetime-local"] { min-width: 0; }
.st-wrap .st-field input:focus, .st-wrap .st-field textarea:focus { border-color: var(--st-green) !important; box-shadow: 0 0 0 4px rgba(19, 128, 74, .15); outline: none !important; }
.st-wrap .st-invalid { border-color: var(--st-red) !important; background: #fff5f6 !important; }
.st-err { color: var(--st-red); font-size: 15px; font-weight: 700; margin: 5px 0 0 !important; }
.st-err:empty { display: none; }
.st-hint { color: var(--st-muted); font-size: 14px; margin: 5px 0 0 !important; }
.st-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.st-form-msg { color: var(--st-red); font-weight: 800; }
.st-form-msg:empty { display: none; }
.st-row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
.st-created { text-align: left; }
.st-created h3 { font-family: var(--st-display) !important; font-size: 34px !important; color: var(--st-green) !important; text-align: center; }
.st-link-box { margin: 14px 0; padding: 14px; border-radius: 16px; background: #eef8f1; border: 2px solid #cbe8d5; }
.st-link-secret { background: #fff2f3; border-color: #f4c4ca; }
.st-link-box h4 { font-size: 18px !important; }
.st-link-box p { font-size: 15px; margin: 0 0 10px !important; }
.st-copy { display: flex; gap: 8px; }
.st-copy input { flex: 1 1 auto; min-width: 0; font-size: 16px !important; }

/* ---------- Run page ---------- */
.st-run { max-width: 1100px; }
.st-run-hero { border-radius: var(--st-radius) var(--st-radius) 0 0; padding: 26px 16px 86px; text-align: center; }
.st-run-hero-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.st-run-title { font-family: var(--st-display) !important; font-weight: 700; font-size: clamp(38px, 11vw, 68px) !important; line-height: 1 !important; margin: 0 0 12px !important; color: #fff !important; text-shadow: 0 0 22px rgba(246, 196, 83, .45), 0 3px 0 rgba(0, 0, 0, .3); }
.st-run-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; }
.st-run-meta .st-pill { font-size: 15px; padding: .45em 1.1em; }
.st-start { color: #dfe6ff; font-weight: 700; font-size: 16px; }
.st-map-card { position: relative; z-index: 2; margin: -64px 8px 0; }
.st-map-wrap {
	position: relative; border-radius: 26px; overflow: hidden; background: #dfe9f2;
	border: 6px solid #fff;
	box-shadow: 0 24px 50px -18px rgba(5, 11, 31, .55), 0 0 0 1px rgba(5, 11, 31, .06);
}
/* snow cap along the top edge of the map */
.st-map-wrap::before {
	content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 16px; z-index: 450; pointer-events: none;
	background: radial-gradient(circle at 12px -2px, #fff 11px, transparent 12px) 0 0 / 30px 16px repeat-x;
	filter: drop-shadow(0 2px 2px rgba(5, 11, 31, .15));
}
/* soft frosty vignette */
.st-map-wrap::after { content: ""; position: absolute; inset: 0; z-index: 440; pointer-events: none; box-shadow: inset 0 0 40px rgba(220, 235, 255, .7); border-radius: 20px; }
.st-map { width: 100%; height: calc(100vh - 150px); height: calc(100svh - 150px); min-height: 360px; max-height: 860px; z-index: 0; }
.st-wrap .leaflet-container { font: inherit; font-family: var(--st-body); font-size: 15px; background: #dfe9f2; }
.st-wrap .leaflet-container img { max-width: none !important; max-height: none !important; }
/* gentle wintry tint on OSM tiles: a touch cooler, softer and brighter */
.st-wrap .st-tiles-soft { filter: saturate(.72) brightness(1.06) contrast(.94) hue-rotate(-8deg); }
.st-wrap .leaflet-control-zoom { border: 0 !important; box-shadow: 0 6px 16px rgba(5, 11, 31, .25) !important; border-radius: 14px !important; overflow: hidden; margin-top: 22px !important; }
.st-wrap .leaflet-control-zoom a { width: 44px !important; height: 44px !important; line-height: 44px !important; font-size: 22px !important; color: var(--st-ink) !important; }
.st-wrap .leaflet-popup-content-wrapper { border-radius: 16px; font-weight: 800; }
.st-wrap .leaflet-control-attribution { font-size: 11px; background: rgba(255, 255, 255, .8); }

.st-live-badge {
	position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 460;
	display: inline-flex; align-items: center; gap: .5em; padding: .5em 1.1em; border-radius: 999px;
	background: linear-gradient(180deg, #ef4655, var(--st-red-2)); color: #fff; font-weight: 900; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
	animation: st-ring 1.8s infinite; pointer-events: none;
}
.st-live-badge span { width: .65em; height: .65em; border-radius: 50%; background: #fff; animation: st-blink 1.2s infinite; }

.st-map-overlay { position: absolute; inset: 0; z-index: 470; display: grid; place-items: center; padding: 18px; background: radial-gradient(circle at 50% 40%, rgba(12, 26, 63, .55), rgba(5, 11, 31, .78)); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.st-overlay-card { max-width: 400px; text-align: center; color: #fff; }
.st-overlay-emoji { font-size: 68px; line-height: 1; margin-bottom: 8px; animation: st-bob 2.4s ease-in-out infinite; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .4)); }
.st-overlay-title { font-family: var(--st-display); font-weight: 700; font-size: clamp(30px, 8.5vw, 42px); line-height: 1.05; margin: 0 0 8px !important; color: var(--st-gold); text-shadow: 0 0 18px rgba(246, 196, 83, .5); }
.st-overlay-text { font-size: 16px; color: #e3e9ff; margin: 0 0 12px !important; }
.st-countdown { display: inline-block; margin: 0 0 14px !important; padding: .55em 1.1em; border-radius: 999px; background: rgba(246, 196, 83, .16); border: 1.5px solid rgba(246, 196, 83, .6); color: #ffe7a3; font-weight: 900; font-size: 18px; font-variant-numeric: tabular-nums; }
.st-overlay-card .st-btn { display: flex; margin: 0 auto; }

.st-msg { margin: 12px 0 0 !important; padding: 10px 14px; border-radius: 14px; background: #fff4d9; color: #6b4a00; font-weight: 700; font-size: 16px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.st-chip { display: inline-flex; align-items: center; gap: .4em; min-height: 40px; padding: .4em .95em; border-radius: 999px; background: #fff; box-shadow: 0 4px 14px -6px rgba(5, 11, 31, .3); font-size: 15px; font-weight: 800; color: var(--st-ink); }
.st-chip-gold { background: linear-gradient(180deg, #fff6d8, #ffe7a0); color: #5a3a00; flex-basis: 100%; border-radius: 16px; padding: .6em 1em; font-size: 16px; }
.st-actions { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0 6px; }
.st-actions .st-btn { width: 100%; min-height: 58px; }
.st-about { margin-top: 22px; padding: 18px; background: #fff; border-radius: 20px; box-shadow: 0 10px 26px -14px rgba(5, 11, 31, .35); border-left: 6px solid var(--st-green); }
.st-about h3 { color: var(--st-green); font-size: 20px !important; }

/* Santa map marker */
.st-santa-icon { background: none !important; border: 0 !important; }
.st-santa-marker { position: relative; width: 84px; height: 56px; }
.st-santa-glow { position: absolute; left: 50%; top: 58%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 102, .65) 0%, rgba(255, 214, 102, 0) 70%); animation: st-glow 2s ease-in-out infinite; }
.st-santa-rot, .st-santa-flip { position: absolute; inset: 0; transition: transform .8s ease; }
.st-santa-flip svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .35)); animation: st-bob 1.8s ease-in-out infinite; overflow: visible; }
@keyframes st-bob { 50% { transform: translateY(-4px); } }
@keyframes st-glow { 50% { transform: scale(1.18); opacity: .7; } }
.st-you-icon { background: none !important; border: 0 !important; }
.st-you-dot { width: 22px; height: 22px; border-radius: 50%; background: #1a73e8; border: 4px solid #fff; box-shadow: 0 0 0 6px rgba(26, 115, 232, .25), 0 2px 6px rgba(0, 0, 0, .3); }

/* ---------- Plugin full-width layout (header / footer) ---------- */
body.st-blank-body { margin: 0; padding: 0; overflow-x: hidden; background: #eef3fa; font-family: var(--st-body); color: var(--st-ink); }
.st-blank-header {
	position: sticky; top: 0; z-index: 1000;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	min-height: 60px; padding: 6px max(14px, env(safe-area-inset-right)) 6px max(14px, env(safe-area-inset-left));
	background: rgba(5, 11, 31, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(246, 196, 83, .25);
	box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .6);
}
.admin-bar .st-blank-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .st-blank-header { top: 32px; } }
.st-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: #fff !important; text-decoration: none !important; }
.st-brand-logo { width: 58px; display: block; }
.st-brand-logo svg { width: 100%; height: auto; display: block; }
.st-brand-name { font-family: var(--st-display); font-weight: 700; font-size: 28px; line-height: 1; color: var(--st-gold); text-shadow: 0 0 12px rgba(246, 196, 83, .45); }
.st-blank-search { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 15px; color: #fff !important; text-decoration: none !important; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); }
.st-blank-main { margin: 0; padding: 0 0 28px; }
.st-blank-main > .st-wrap, .st-blank-main > p.st-wrap { max-width: none; }
.st-blank-body .st-hero, .st-blank-body .st-run-hero, .st-blank-body .st-add { border-radius: 0; }
.st-blank-body .st-add { min-height: calc(100svh - 60px); padding-top: 34px; }
.st-blank-body .st-run > .st-map-card, .st-blank-body .st-about, .st-blank-body p.st-back { max-width: 1100px; margin-left: auto; margin-right: auto; }
.st-blank-body .st-about { margin-left: 12px; margin-right: 12px; }
.st-blank-body p.st-wrap.st-back { padding: 0 16px; margin-top: 18px !important; }
.st-blank-footer {
	position: relative; text-align: center; color: #c9d3ee; font-size: 15px;
	padding: 40px 16px max(26px, env(safe-area-inset-bottom));
	background: linear-gradient(180deg, var(--st-night-2), var(--st-night-1));
}
.st-blank-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 18px; background: radial-gradient(circle at 15px 0, #eef3fa 14px, transparent 15px) 0 0 / 34px 18px repeat-x; }
.st-holly { width: 84px; margin: 0 auto 6px; }
.st-holly svg { width: 100%; height: auto; display: block; }
.st-foot-brand { font-family: var(--st-display); font-weight: 700; font-size: 30px; color: var(--st-gold); margin: 0 0 4px; }
.st-blank-footer p { margin: 0 0 6px; }
.st-foot-small { font-size: 13px; opacity: .7; }

/* ---------- Driver page ---------- */
body.santa-tracker-driver-body {
	margin: 0; min-height: 100vh; overflow-x: hidden; font-family: var(--st-body);
	background: linear-gradient(180deg, #050b1f 0%, #0c1a3f 60%, #1b3170 100%);
	padding: max(18px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.st-driver { max-width: 560px; padding-top: 18px; }
.st-driver .st-card h1 { font-size: clamp(32px, 9vw, 44px) !important; margin-bottom: 10px !important; }
.st-driver-kicker { margin: 0 0 4px !important; font-size: 14px; font-weight: 800; color: var(--st-muted) !important; text-align: center; }
.st-big-btn {
	display: block; width: 100%; min-height: 128px; margin: 10px 0 16px; padding: 20px;
	border: 0; border-radius: 28px; cursor: pointer;
	font-family: var(--st-body); font-size: clamp(28px, 8.5vw, 38px); font-weight: 1000; color: #fff;
	background: linear-gradient(180deg, #22b06a, var(--st-green-2));
	box-shadow: 0 9px 0 #053a1f, 0 20px 40px -12px rgba(19, 128, 74, .7);
	touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.st-big-btn:active { transform: translateY(6px); box-shadow: 0 3px 0 #053a1f; }
.st-big-btn.is-on { background: linear-gradient(180deg, #ef4655, var(--st-red-2)); box-shadow: 0 9px 0 #6a0b13, 0 20px 40px -12px rgba(212, 42, 58, .7); animation: st-ring 1.8s infinite; }
.st-driver-status { padding: 12px 14px; border-radius: 16px; background: #f1f3f8; margin: 0 0 14px; }
.st-driver-status p { margin: 0 !important; }
.st-ds-main { font-weight: 900; font-size: 18px; }
.st-ds-detail, .st-ds-wake { font-size: 15px; color: var(--st-muted); }
.st-ds-detail:empty, .st-ds-wake:empty { display: none; }
.st-driver-status.is-ok { background: #e3f6ea; }
.st-driver-status.is-warn { background: #fff3d1; }
.st-driver-status.is-err { background: #ffe1e5; }
.st-map-small .st-map { height: 34vh; min-height: 220px; }
.st-map-small::before { display: none; }
.st-warn { margin: 14px 0; padding: 12px 14px; border-radius: 16px; background: #fff7df; border-left: 5px solid var(--st-gold); font-size: 16px; }
.st-warn ul { margin: 6px 0 0; padding-left: 1.2em; }
.st-public-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--st-green) !important; }

/* ---------- Inside a normal theme (Extendable etc.) ---------- */
.wp-block-post-content > .st-wrap, .entry-content > .st-wrap { max-width: min(780px, 100%); }
.wp-block-post-content > .st-run, .entry-content > .st-run { max-width: min(1100px, 100%); }
body.santa-tracker-page { overflow-x: hidden; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
	.st-hero { padding: 90px 32px 120px; }
	.st-moon { width: 96px; height: 96px; top: 34px; }
	.st-fly { width: 150px; }
	.st-search { padding: 24px 24px 16px; }
	.st-card { padding: 30px 32px 26px; }
	.st-row { grid-template-columns: 1fr 1fr; }
	.st-actions { grid-template-columns: 1fr 1fr; }
	.st-btn-add { width: auto; padding-left: 2.2em; padding-right: 2.2em; }
	.st-how { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.st-how-step { padding: 22px 18px 18px; text-align: center; }
	.st-how-ico { position: static; transform: none; margin: 0 auto 10px; width: 56px; height: 56px; font-size: 28px; }
	.st-run-hero { padding: 40px 24px 100px; }
	.st-map-card { margin: -72px 16px 0; }
	.st-map { height: calc(100vh - 230px); }
	.st-chip-gold { flex-basis: auto; border-radius: 999px; }
	.st-brand-name { font-size: 32px; }
	.st-hills { height: 110px; }
}
@media (min-width: 1132px) { .st-blank-body .st-map-card { margin-left: auto; margin-right: auto; } }

/* ---------- Very small phones (320px) ---------- */
@media (max-width: 360px) {
	.st-wrap { font-size: 16px; }
	.st-hero { padding: 52px 10px 84px; }
	.st-moon { width: 54px; height: 54px; right: 4%; top: 14px; }
	.st-search { padding: 14px 10px 10px; border-radius: 20px; }
	.st-wrap .st-search-input { padding-left: 44px; font-size: 16px !important; }
	.st-search-icon { left: 14px; font-size: 18px; }
	.st-card { padding: 18px 12px; }
	.st-copy { flex-direction: column; }
	.st-copy .st-btn { width: 100%; }
	.st-brand-logo { width: 44px; }
	.st-brand-name { font-size: 23px; }
	.st-blank-search { padding: 0 12px; font-size: 14px; }
	.st-map-card { margin-left: 4px; margin-right: 4px; }
	.st-big-btn { min-height: 110px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
	.st-wrap *, .st-blank-header *, .st-big-btn, .st-intro *, .st-howto-fab { animation: none !important; transition: none !important; }
	.st-fly { animation: none; transform: translate(60vw, 10px); }
	.st-intro-flake { animation: none !important; }
}

/* ---------- Driver: checklist + full-screen LIVE panel ---------- */
.st-center { text-align: center; }
.st-check-intro { text-align: center; color: var(--st-muted); font-weight: 700; }
.st-checklist { list-style: none; margin: 0 0 16px !important; padding: 0 !important; display: grid; gap: 10px; }
.st-checklist li { margin: 0 !important; }
.st-checklist label { display: flex; gap: 14px; align-items: flex-start; min-height: 64px; padding: 14px; border-radius: 18px; background: #f4f7fc; border: 2px solid #dfe5ef; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.st-checklist label:has(input:checked) { background: #e7f7ee; border-color: #8fd3aa; }
.st-checklist input { flex: 0 0 auto; width: 30px; height: 30px; margin: 2px 0 0; accent-color: var(--st-green); }
.st-checklist strong { display: block; font-size: 18px; line-height: 1.25; }
.st-checklist small { display: block; margin-top: 3px; font-size: 14.5px; color: var(--st-muted); line-height: 1.4; }
.st-a2hs { margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: #eef3ff; border-left: 5px solid #4b6fd6; font-size: 15px; }
.st-a2hs p { margin: 0 0 4px !important; }
.st-big-btn[disabled] { background: linear-gradient(180deg, #b8c0cf, #8f98aa); box-shadow: 0 9px 0 #6b7386; cursor: not-allowed; }
.st-go-hint { text-align: center; color: var(--st-muted); font-size: 15px; margin-top: -4px !important; }

.st-scr-live { max-width: 560px; margin: 0 auto; }
.st-alert { display: block; margin: 0 0 12px; padding: 14px 16px; border-radius: 18px; background: #ffdfe3; color: #7a0010; border: 3px solid #e3263a; animation: st-flash 1s steps(2, start) infinite; }
.st-alert-title { display: block; font-size: 20px; font-weight: 1000; }
.st-alert-text { display: block; font-size: 16px; font-weight: 700; margin-top: 4px; }
@keyframes st-flash { 50% { background: #fff; } }
.st-live-panel { position: relative; text-align: center; color: #fff; border-radius: 28px; padding: 26px 16px 20px; margin: 0 0 12px; min-height: 52svh; display: flex; flex-direction: column; justify-content: center; align-items: center; box-shadow: var(--st-shadow); transition: background .4s; background: linear-gradient(180deg, #3a4a78, #1b2647); }
.st-live-panel.is-live { background: radial-gradient(circle at 50% 30%, #2bc77a, #0d6b3a 75%); }
.st-live-panel.is-bad { background: radial-gradient(circle at 50% 30%, #ff5a68, #9b0e1c 75%); }
.st-live-panel.is-paused { background: linear-gradient(180deg, #6b7386, #3b4256); }
.st-live-orb { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 64px; background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); margin-bottom: 10px; }
.st-live-panel.is-live .st-live-orb { animation: st-orb 1.6s infinite; }
.st-live-panel.is-wait .st-live-orb span { animation: st-bob 1.4s ease-in-out infinite; display: inline-block; }
@keyframes st-orb { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); } 70% { box-shadow: 0 0 0 26px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.st-live-state { font-size: clamp(34px, 11vw, 52px); font-weight: 1000; line-height: 1.05; margin: 0 0 6px !important; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.st-live-sent { font-size: 22px; font-weight: 800; margin: 0 0 12px !important; opacity: .95; }
.st-live-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.st-stat { display: inline-flex; align-items: center; min-height: 36px; padding: .3em .9em; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 15px; font-weight: 800; }
.st-stat:empty { display: none; }
.st-stat.is-poor { background: #ffd166; color: #4a2a00; }
.st-battery { margin: 12px 0 0 !important; padding: .4em 1em; border-radius: 999px; background: rgba(0, 0, 0, .2); font-weight: 800; font-size: 15px; }
.st-wake-tap { margin-top: 14px; }
.st-scr-live .st-map-small { margin: 0 0 12px; }
.st-scr-live .st-map-small .st-map { height: 24vh; min-height: 170px; }
.st-keep-open { text-align: center; color: #fff; font-weight: 800; margin: 0 0 12px !important; }
.st-live-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-live-actions .st-btn { width: 100%; min-height: 56px; padding-left: .6em; padding-right: .6em; }
.st-scr-done h1 { text-align: center; }

/* ---------- Add form polish (iOS) ---------- */
.st-wrap .st-field input[type="datetime-local"] { display: block; width: 100%; text-align: left; line-height: 1.3; }
.st-wrap .st-field input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.st-wrap .st-field input[type="datetime-local"]::-webkit-calendar-picker-indicator { opacity: .6; }
.st-create-form .st-btn-block { min-height: 60px; font-size: 18px; margin-top: 6px; }

/* ---------- Success screen ---------- */
.st-card.is-success { padding-top: 26px; }
.st-created-head { text-align: center; margin: 0 0 16px; }
.st-created-burst { font-size: 54px; line-height: 1; margin-bottom: 6px; animation: st-bob 2.4s ease-in-out infinite; }
.st-wrap .st-created-h { font-family: var(--st-display) !important; font-weight: 700; font-size: clamp(32px, 9.5vw, 44px) !important; line-height: 1.05 !important; color: var(--st-green) !important; margin: 0 0 6px !important; outline: none; }
.st-created-title { margin: 0 !important; font-weight: 900; font-size: 18px; color: var(--st-ink); }
.st-created-head .st-note { margin: 12px 0 0 !important; text-align: left; }

.st-save-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(180deg, #fff8e3, #fff1c7); border: 1.5px solid #f3d27a; color: #5a3a00; }
.st-save-note span { font-size: 22px; line-height: 1.2; }
.st-save-note p { margin: 0 !important; font-size: 15.5px; line-height: 1.45; }

.st-link-card { margin: 0 0 14px; padding: 16px 14px 14px; border-radius: 20px; background: #f3faf6; border: 1.5px solid #cfe9da; box-shadow: 0 8px 20px -14px rgba(5, 11, 31, .35); }
.st-link-driver { background: #fdf6f7; border-color: #f1d3d8; }
.st-link-head { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; }
.st-link-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: #fff; box-shadow: 0 3px 10px -4px rgba(5, 11, 31, .3); }
.st-link-head > div { min-width: 0; }
.st-wrap .st-link-head h3 { font-size: 18px !important; margin: 2px 0 2px !important; color: var(--st-ink); }
.st-link-head p { margin: 0 !important; font-size: 14.5px; line-height: 1.4; color: var(--st-muted); }
.st-link-driver .st-link-head h3 { color: #8f1020; }

.st-url-pill { display: flex; align-items: center; min-width: 0; margin: 0 0 12px; padding: 0 16px; min-height: 46px; border-radius: 999px; background: #fff; border: 1.5px dashed #b9d9c6; }
.st-link-driver .st-url-pill { border-color: #ebbcc3; }
.st-url-text { display: block; min-width: 0; flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: #2b3550; overflow-wrap: normal; word-break: normal; }

.st-link-btns { display: grid; grid-template-columns: 1fr; gap: 10px; }
.st-link-btns .st-btn { width: 100%; min-height: 52px; font-size: 17px; }
.st-share-fallback { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-share-fallback[hidden] { display: none !important; }
.st-btn-wa { background: linear-gradient(180deg, #2fd46c, #1a9e4c); box-shadow: 0 5px 0 #11753a; }
.st-btn-fb { background: linear-gradient(180deg, #3b82f6, #1f5fcf); box-shadow: 0 5px 0 #17469a; }
.st-copy-btn.is-copied { background: linear-gradient(180deg, #2bc77a, #13804a); color: #fff !important; box-shadow: 0 6px 0 #0a5530; text-shadow: none; }

.st-email-msg { margin: 4px 0 12px !important; padding: 12px 14px; border-radius: 14px; background: #eef3ff; color: #24366e; font-size: 15px; line-height: 1.45; }
.st-email-msg:empty { display: none; }
.st-email-msg.is-warn { background: #fff4d9; color: #6b4a00; }
.st-created-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.st-text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; color: var(--st-green) !important; text-decoration: none !important; }

@media (min-width: 480px) {
	.st-link-btns { grid-template-columns: 1fr 1fr; }
	.st-share-fallback { grid-column: span 1; }
}
@media (max-width: 360px) {
	.st-link-card { padding: 14px 12px 12px; }
	.st-link-btns .st-btn { font-size: 16px; padding-left: .8em; padding-right: .8em; }
	.st-share-fallback { grid-template-columns: 1fr; }
}

/* ---------- Header nav / footer links / CTA links ---------- */
.st-blank-nav { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.st-blank-myruns { background: linear-gradient(180deg, rgba(246, 196, 83, .28), rgba(246, 196, 83, .12)); border-color: rgba(246, 196, 83, .55); }
.st-blank-search { white-space: nowrap; }
@media (max-width: 479px) {
	.st-blank-nav .st-nav-label { display: none; }
	.st-blank-nav .st-blank-search { padding: 0 13px; }
}
@media (max-width: 360px) { .st-blank-header .st-brand-name { font-size: 20px; } .st-blank-header .st-brand-logo { width: 38px; } }
.st-foot-links a { color: var(--st-gold) !important; font-weight: 800; text-decoration: none !important; display: inline-block; padding: 8px 2px; }
.st-hero-manage { margin: 16px 0 0 !important; font-size: 15px; }
.st-hero-manage a { display: inline-flex; align-items: center; min-height: 44px; color: #fff !important; font-weight: 800; text-decoration: none !important; border-bottom: 1px dashed rgba(246, 196, 83, .7); }
.st-manage-cta { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 14px; border-radius: 18px; text-decoration: none !important; color: var(--st-ink) !important; background: linear-gradient(135deg, #fff8e3, #f2fbf5); border: 1.5px solid #f0d58a; }
.st-manage-cta strong { display: block; font-size: 16px; }
.st-manage-cta small { display: block; color: var(--st-muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.st-manage-ico { font-size: 30px; flex: 0 0 auto; }
.st-manage-arrow { margin-left: auto; font-size: 22px; font-weight: 900; color: var(--st-green); }
.st-manage-link { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 .35em; min-height: 48px; margin: 14px 0 0; color: var(--st-green) !important; font-weight: 800; text-decoration: none !important; text-align: center; }
.st-manage-link small { color: var(--st-muted); font-weight: 600; }
.st-btn-ghost-dark { background: #fff; color: var(--st-ink) !important; box-shadow: inset 0 0 0 2px #cfd6e6; }
.st-btn-ghost-dark:active { box-shadow: inset 0 0 0 2px var(--st-ink); }
.st-pill-pending { background: #fff1d6; color: #8a5a00; }

/* ---------- My Santa runs ---------- */
.st-myruns { min-height: 70vh; padding-top: 30px; }
.st-myruns .st-card { margin-top: 18px; }
.st-mr-login-form .st-btn-block, .st-mr-sent .st-btn-block, .st-mr-empty .st-btn-block { min-height: 58px; font-size: 18px; margin-top: 6px; }
.st-mr-sent { text-align: center; }
.st-mr-sent h2 { outline: none; }
.st-mr-sent-msg { color: var(--st-muted); font-size: 16px; line-height: 1.5; }
.st-mr-foot { margin-top: 12px; border-top: 1px dashed #e1e6f0; padding-top: 6px; }

.st-mr-dash { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.st-mr-head { text-align: center; color: #fff; margin: 0 0 18px; }
.st-mr-head h1 { font-family: var(--st-display) !important; font-weight: 700; font-size: clamp(40px, 12vw, 64px) !important; line-height: 1 !important; margin: 0 0 8px !important; color: var(--st-gold) !important; text-shadow: 0 0 18px rgba(246, 196, 83, .45); }
.st-mr-who { color: #dfe6ff; margin: 0 0 14px !important; font-size: 15px; overflow-wrap: anywhere; }
.st-mr-who strong { color: #fff; }
.st-mr-head-btns { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.st-mr-head-btns .st-btn { min-height: 50px; white-space: nowrap; }
.st-mr-toast { margin: 14px 0 0 !important; padding: 10px 14px; border-radius: 14px; background: rgba(19, 128, 74, .35); border: 1px solid rgba(120, 220, 160, .5); color: #fff; font-weight: 700; }
.st-mr-flash { position: sticky; top: 72px; z-index: 5; margin: 0 0 14px !important; padding: 12px 16px; border-radius: 16px; background: #eafaf0; color: #0a5530; font-weight: 800; box-shadow: var(--st-shadow); text-align: center; }
.st-mr-flash.is-warn { background: #fff4d9; color: #6b4a00; }
.st-mr-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.st-mr-card, .st-mr-card > * { min-width: 0; }
.st-mr-btns > *, .st-mr-actions > * { min-width: 0; }
.st-mr-card {
	position: relative; background: #fff; color: var(--st-ink); border-radius: 24px; padding: 18px 14px 16px;
	box-shadow: var(--st-shadow), 0 0 50px -14px rgba(246, 196, 83, .35);
	border-top: 8px solid var(--st-green);
	transition: opacity .4s, transform .4s;
}
.st-mr-card::after { content: ""; position: absolute; top: -8px; right: 22px; width: 26px; height: 34px; background: linear-gradient(180deg, var(--st-red), var(--st-red-2)); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); }
.st-mr-card.is-gone { opacity: 0; transform: scale(.96); }
.st-mr-top { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.st-mr-top .st-pill { font-size: 12px; }
.st-wrap .st-mr-title { font-family: var(--st-display) !important; font-weight: 700; font-size: clamp(28px, 8vw, 36px) !important; color: var(--st-red) !important; margin: 0 40px 6px 0 !important; overflow-wrap: anywhere; }
.st-mr-meta { list-style: none; margin: 0 0 14px !important; padding: 0 !important; display: grid; gap: 4px; font-size: 15.5px; color: #3d4559; }
.st-mr-meta li { margin: 0; display: flex; gap: .45em; align-items: baseline; }
.st-mr-meta li[hidden] { display: none; }
.st-mr-public { margin-bottom: 12px; }
.st-mr-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-mr-btns .st-btn { min-height: 50px; font-size: 16px; padding-left: .6em; padding-right: .6em; white-space: nowrap; }
.st-mr-btns-3 { grid-template-columns: 1fr 1fr; }
.st-mr-btns-3 .st-btn:first-child { grid-column: 1 / -1; }
@media (min-width: 520px) { .st-mr-btns-3 { grid-template-columns: 1.2fr 1fr 1fr; } .st-mr-btns-3 .st-btn:first-child { grid-column: auto; } }
.st-mr-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-mr-act {
	display: flex; align-items: center; justify-content: center; gap: .45em; min-height: 52px; padding: 8px 10px; border-radius: 16px;
	font: inherit; font-family: var(--st-body); font-weight: 800; font-size: 15px; line-height: 1.15; text-align: center; white-space: nowrap;
	color: var(--st-ink) !important; text-decoration: none !important; cursor: pointer;
	background: #f4f6fb; border: 1.5px solid #dfe4ef; transition: background .15s, border-color .15s, transform .1s;
}
.st-mr-act:hover { background: #fff8e3; border-color: #f0d58a; }
.st-mr-act:active { transform: scale(.98); }
.st-mr-act.is-on { background: #fff1c7; border-color: var(--st-gold-2); }
.st-mr-act[hidden] { display: none; }
.st-mr-act[disabled] { opacity: .6; cursor: progress; }
.st-mr-del { color: var(--st-red-2) !important; background: #fff4f5; border-color: #f4c4ca; }
.st-mr-del:hover { background: #ffe8eb; border-color: var(--st-red); }
.st-mr-open-driver { background: #eef8f1; border-color: #cbe8d5; color: var(--st-green-2) !important; }
.st-mr-newlink { margin: 14px 0 0; }
.st-mr-newlink-msg { margin: 10px 0 0 !important; font-size: 14.5px; color: #24366e; }
.st-mr-newlink-msg.is-warn { color: #6b4a00; }
.st-mr-edit { margin: 16px 0 0; padding: 16px 14px 6px; border-radius: 18px; background: #fbfcff; border: 1.5px dashed #cfd6e6; }
.st-mr-edit h3 { font-size: 19px !important; margin: 0 0 12px !important; color: var(--st-ink); }
.st-mr-edit .st-mr-btns { margin-top: 4px; }
.st-mr-edit .st-hint { margin: 10px 0 8px !important; }
.st-mr-footnote { position: relative; z-index: 1; text-align: center; color: #dfe6ff; margin: 22px 0 0 !important; font-size: 15px; }
.st-mr-footnote a { color: var(--st-gold) !important; font-weight: 800; }
@media (max-width: 360px) {
	.st-mr-act { font-size: 14px; padding: 8px 6px; gap: .3em; }
	.st-mr-btns .st-btn { font-size: 15px; }
	.st-mr-card { padding-left: 12px; padding-right: 12px; }
}
.st-mr-actions .st-mr-del { grid-column: 1 / -1; }
@media (max-width: 360px) { .st-mr-act { white-space: normal; text-wrap: balance; } }


/* ---------- First-visit "How it works" tour ---------- */
body.st-intro-open { overflow: hidden; position: fixed; width: 100%; left: 0; right: 0; }
body.st-intro-open .st-howto-fab { visibility: hidden; pointer-events: none; }
.st-intro[hidden], .st-howto-fab[hidden] { display: none !important; }
.st-intro [hidden] { display: none !important; }

.st-howto-fab {
	position: fixed; z-index: 1500;
	right: max(14px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	display: inline-flex; align-items: center; gap: .4em;
	min-height: 48px; padding: .45em 1.05em .45em .7em;
	border: 0; border-radius: 999px; cursor: pointer;
	font-family: var(--st-body); font-weight: 900; font-size: 15px; letter-spacing: .01em;
	color: #4a2a00;
	background: linear-gradient(180deg, #ffe590 0%, var(--st-gold) 50%, var(--st-gold-2) 100%);
	box-shadow: 0 6px 0 #a86f05, 0 16px 28px -10px rgba(5, 11, 31, .55);
	-webkit-tap-highlight-color: transparent; touch-action: manipulation;
	transition: transform .12s ease, filter .2s;
}
.st-howto-fab:hover { filter: brightness(1.06); }
.st-howto-fab:active { transform: translateY(3px); box-shadow: 0 3px 0 #a86f05; }
.st-howto-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.st-howto-fab-ico { font-size: 18px; line-height: 1; }
body:has(#st-howto-fab:not([hidden])) .st-live-list, body:has(#st-howto-fab:not([hidden])) .st-blank-footer { padding-bottom: 80px; }

.st-intro {
	position: fixed; inset: 0; z-index: 20000;
	display: flex; align-items: center; justify-content: center;
	padding: max(12px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
	font-family: var(--st-body); color: var(--st-ink);
}
.st-intro-backdrop {
	position: absolute; inset: 0;
	background: rgba(5, 11, 31, .72);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	opacity: 0; transition: opacity .22s ease;
}
.st-intro-dialog {
	position: relative; z-index: 1;
	width: min(440px, 100%);
	max-height: min(92dvh, 720px);
	display: flex; flex-direction: column;
	overflow: hidden;
	border-radius: 26px;
	background: var(--st-snow);
	box-shadow: 0 24px 60px -16px rgba(5, 11, 31, .7), 0 0 0 1px rgba(246, 196, 83, .28);
	opacity: 0; transform: translateY(16px) scale(.97);
	transition: opacity .22s ease, transform .22s ease;
}
.st-intro.is-open .st-intro-backdrop { opacity: 1; }
.st-intro.is-open .st-intro-dialog { opacity: 1; transform: none; }
.st-intro :focus-visible { outline: 3px solid var(--st-gold) !important; outline-offset: 3px; }

.st-intro-sky {
	position: relative; flex: 0 0 auto; min-height: 108px;
	display: flex; align-items: flex-end; justify-content: center;
	background:
		radial-gradient(420px 160px at 90% -20%, rgba(120, 160, 255, .35), transparent 60%),
		radial-gradient(280px 120px at 10% 0%, rgba(80, 60, 180, .28), transparent 60%),
		linear-gradient(180deg, var(--st-night-1) 0%, var(--st-night-2) 70%, var(--st-night-3) 100%);
	overflow: hidden;
}
.st-intro-sky::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
	background: repeating-linear-gradient(-45deg, #fff 0 8px, #d42a3a 8px 16px);
}
.st-intro-moon {
	position: absolute; top: 14px; left: 16px; width: 36px; height: 36px; border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #fffbe8 0%, #fdf1c4 55%, #f3dc91 100%);
	box-shadow: 0 0 18px 4px rgba(255, 236, 170, .4);
}
.st-intro-flake { position: absolute; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1; pointer-events: none; animation: st-intro-fall 8s linear infinite; }
.st-intro-flake-a { left: 58px; top: 10px; animation-duration: 7.5s; }
.st-intro-flake-b { left: auto; right: 58px; top: 6px; font-size: 20px; animation-duration: 9s; animation-delay: -2s; }
.st-intro-flake-c { left: 22%; top: 4px; font-size: 13px; opacity: .6; animation-duration: 8s; animation-delay: -4s; }
@keyframes st-intro-fall {
	0% { transform: translateY(-6px) rotate(0deg); opacity: .2; }
	40% { opacity: .85; }
	100% { transform: translateY(70px) rotate(40deg); opacity: 0; }
}

.st-intro-x {
	position: absolute; top: 8px; right: 8px; z-index: 3;
	width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; cursor: pointer;
	display: grid; place-items: center;
	background: rgba(5, 11, 31, .45); color: #fff;
	font-size: 28px; line-height: 1; font-weight: 400;
	-webkit-tap-highlight-color: transparent;
}
.st-intro-x:hover { background: rgba(5, 11, 31, .7); }
.st-intro-x span { margin-top: -2px; }

.st-intro-head {
	position: relative; z-index: 2;
	text-align: center; padding: 18px 52px 18px; color: #fff;
}
.st-intro-eyebrow {
	margin: 0 0 2px !important; font-size: 12px; font-weight: 800;
	letter-spacing: .12em; text-transform: uppercase; color: var(--st-gold);
	text-shadow: 0 0 10px rgba(246, 196, 83, .45);
}
.st-intro-heading {
	margin: 0 !important;
	font-family: var(--st-display) !important;
	font-weight: 700; font-size: 34px !important; line-height: 1.05;
	color: #fff !important; text-shadow: 0 2px 10px rgba(0,0,0,.35);
}

.st-intro-viewport { overflow: hidden; flex: 1 1 auto; }
.st-intro-track {
	display: flex; width: 100%;
	transition: transform .35s cubic-bezier(.22,.7,.3,1);
	will-change: transform;
}
.st-intro-step {
	flex: 0 0 100%; width: 100%;
	padding: 22px 22px 8px;
	text-align: center;
	box-sizing: border-box;
}
.st-intro-ico {
	width: 74px; height: 74px; margin: 8px auto 12px;
	border-radius: 50%; display: grid; place-items: center;
	font-size: 36px; line-height: 1;
	background: linear-gradient(180deg, #fff2c9, #ffe08a);
	box-shadow: inset 0 -3px 0 rgba(0,0,0,.08), 0 10px 18px -10px rgba(168, 111, 5, .55);
}
.st-intro-title {
	margin: 0 0 8px !important;
	font-family: var(--st-display) !important;
	font-size: 28px !important; line-height: 1.15;
	color: var(--st-ink) !important;
}
.st-intro-text {
	margin: 0 auto !important; max-width: 34em;
	font-size: 16.5px; line-height: 1.5; color: var(--st-muted);
}

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

.st-intro-dots {
	display: flex; justify-content: center; align-items: center; gap: 10px;
	padding: 10px 16px 4px;
}
.st-intro-dot {
	width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
	background: #cfd6e6; cursor: pointer;
	transition: transform .2s, background .2s, width .2s;
	-webkit-tap-highlight-color: transparent;
}
.st-intro-dot.is-on {
	width: 22px; border-radius: 999px;
	background: linear-gradient(180deg, var(--st-gold), var(--st-gold-2));
	box-shadow: 0 0 0 3px rgba(246, 196, 83, .28);
}
.st-intro-dot { position: relative; flex: 0 0 auto; }
.st-intro-dot::before { content: ""; position: absolute; inset: -12px; }

.st-intro-nav {
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 10px 16px 20px;
	flex: 0 0 auto;
}
.st-intro-skip {
	border: 0; background: none; cursor: pointer;
	font-family: inherit; font-weight: 800; font-size: 15px;
	color: var(--st-muted); text-decoration: underline; text-underline-offset: 3px;
	min-height: 44px; padding: 0 8px;
	-webkit-tap-highlight-color: transparent;
}
.st-intro-skip:hover { color: var(--st-ink); }
.st-intro-skip[hidden] { display: inline !important; visibility: hidden; pointer-events: none; } /* keep Next aligned on last step */
.st-intro-nav-btns { display: flex; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.st-intro-nav-btns .st-btn { min-width: 92px; }
@media (max-width: 379px) {
	.st-intro-nav { flex-wrap: wrap; }
	.st-intro-nav-btns { width: 100%; }
	.st-intro-nav-btns .st-btn { flex: 1 1 auto; }
}

@media (max-width: 360px) {
	.st-intro-heading { font-size: 28px !important; }
	.st-intro-title { font-size: 24px !important; }
	.st-intro-text { font-size: 15.5px; }
	.st-intro-step { padding: 16px 14px 6px; }
	.st-intro-ico { width: 64px; height: 64px; font-size: 30px; }
}

@media (min-width: 640px) {
	.st-intro-dialog { width: min(480px, 100%); }
	.st-intro-sky { min-height: 118px; }
	.st-intro-heading { font-size: 38px !important; }
	.st-intro-step { padding: 26px 28px 10px; }
	.st-intro-text { font-size: 17px; }
}
