/* =========================================================
   Ringtone site — design system
   Tokens → base → layout → components → pages
   ========================================================= */

:root {
	--accent: #6d4aff;
	--accent-2: #ff4f8b;
	--accent-ink: #ffffff;
	--accent-soft: #efeaff;
	--bg: #f5f5fa;
	--surface: #ffffff;
	--surface-2: #f0f0f6;
	--border: #e4e4ee;
	--text: #15151f;
	--muted: #686879;
	--danger: #e5484d;
	--success: #1f9d63;
	--ring-track: rgba(109, 74, 255, .18);
	--shadow-sm: 0 1px 2px rgba(20, 20, 45, .05);
	--shadow: 0 1px 2px rgba(20, 20, 45, .05), 0 6px 20px rgba(20, 20, 45, .06);
	--shadow-lg: 0 10px 40px rgba(20, 20, 45, .16);
	--radius-lg: 22px;
	--radius: 16px;
	--radius-sm: 10px;
	--page-max: 1200px;
	--gutter: 16px;
	--header-h: 64px;
	--bottom-nav-h: 64px;
	--glow: .10;
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", "Noto Sans Devanagari", Ubuntu, sans-serif;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--accent: #8f75ff;
		--accent-soft: #261f45;
		--bg: #0e0f14;
		--surface: #171920;
		--surface-2: #20232c;
		--border: #2b2f3a;
		--text: #eef0f6;
		--muted: #9aa0b1;
		--ring-track: rgba(143, 117, 255, .22);
		--shadow-sm: none;
		--shadow: 0 1px 0 rgba(255, 255, 255, .03);
		--shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
		--glow: .16;
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--accent: #8f75ff;
	--accent-soft: #261f45;
	--bg: #0e0f14;
	--surface: #171920;
	--surface-2: #20232c;
	--border: #2b2f3a;
	--text: #eef0f6;
	--muted: #9aa0b1;
	--ring-track: rgba(143, 117, 255, .22);
	--shadow-sm: none;
	--shadow: 0 1px 0 rgba(255, 255, 255, .03);
	--shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
	--glow: .16;
	color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 140px; }
@media (min-width: 900px) { html { scroll-padding-top: 88px; } }

body {
	margin: 0;
	min-height: 100vh;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.5;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	overflow-x: hidden;
	padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
}

body.has-np { padding-bottom: calc(var(--bottom-nav-h) + 72px + env(safe-area-inset-bottom)); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 750; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.i {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: middle;
}

.muted { color: var(--muted); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.visually-hidden {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 8px; top: -60px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: var(--accent-ink);
	font-weight: 600;
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-weight: 650;
	font-size: .95rem;
	white-space: nowrap;
	transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary {
	background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--accent-2)));
	color: var(--accent-ink);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn--primary:hover { box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 45%, transparent); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn--block { display: flex; width: 100%; }
.btn--google { background: var(--surface); border-color: var(--border); color: var(--text); min-height: 50px; }
.btn--google:hover { background: var(--surface-2); }
.btn.is-liked { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 40%, var(--border)); }
.btn.is-liked .i { fill: currentColor; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px; height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--muted);
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.icon-btn--accent { color: var(--accent); background: var(--accent-soft); }
.icon-btn--accent:hover { background: var(--accent); color: var(--accent-ink); }
.icon-btn.is-liked { color: var(--accent-2); }
.icon-btn.is-liked .i { fill: currentColor; }
.icon-btn.pop .i { animation: pop .35s ease; }

.link-btn { border: 0; background: none; padding: 4px; color: var(--accent); font-weight: 600; }

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid var(--border);
}

.site-header__inner {
	display: grid;
	grid-template-columns: 1fr auto;
	grid-template-areas: "brand actions" "search search";
	align-items: center;
	gap: 8px 12px;
	max-width: var(--page-max);
	margin: 0 auto;
	padding: 10px var(--gutter);
}

.brand { grid-area: brand; display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark {
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	border-radius: 11px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	flex: none;
}
.brand__mark .i { width: 20px; height: 20px; }
/* ZT monogram */
.zt { font-weight: 900; font-size: 15px; letter-spacing: -.06em; line-height: 1; padding-right: .06em; }
.modal__icon .zt { font-size: 22px; }
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.search { grid-area: search; position: relative; min-width: 0; }
.search input {
	width: 100%;
	height: 44px;
	padding: 0 16px 0 44px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface-2);
	outline: none;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search__icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search--inline { grid-area: auto; width: 100%; max-width: 420px; margin: 16px auto 0; }

.top-nav { display: none; }

.header-actions { grid-area: actions; display: flex; align-items: center; gap: 4px; }

.avatar-btn {
	display: grid;
	place-items: center;
	width: 36px; height: 36px;
	margin: 0 2px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	font-weight: 700;
}

.theme-light { display: none; }
:root[data-theme="dark"] .theme-dark { display: none; }
:root[data-theme="dark"] .theme-light { display: block; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-dark { display: none; }
	:root:not([data-theme="light"]) .theme-light { display: block; }
}

@media (min-width: 900px) {
	.site-header__inner {
		grid-template-columns: auto minmax(240px, 520px) 1fr auto;
		grid-template-areas: "brand search nav actions";
		gap: 24px;
		min-height: var(--header-h);
	}
	.top-nav { grid-area: nav; display: flex; gap: 4px; justify-self: end; }
	.top-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--muted); transition: color .15s ease, background-color .15s ease; }
	.top-nav a:hover { color: var(--text); background: var(--surface-2); }
	.top-nav a.is-active { color: var(--accent); background: var(--accent-soft); }
}

/* ---------- Drawer ---------- */

.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(8, 8, 20, .45); opacity: 0; transition: opacity .25s ease; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: min(320px, 86vw);
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 12px calc(24px + env(safe-area-inset-bottom));
	overflow-y: auto;
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px 12px; }
.drawer__panel > a, .drawer__pages a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	border-radius: var(--radius-sm);
	font-weight: 600;
}
.drawer__panel > a:hover, .drawer__pages a:hover { background: var(--surface-2); }
.drawer__panel > a .i { color: var(--muted); }
.drawer__divider { height: 1px; margin: 8px 12px; background: var(--border); }
.drawer__pages a { padding: 9px 12px; font-weight: 500; font-size: .925rem; color: var(--muted); }

/* ---------- Page ---------- */

.page { display: block; max-width: var(--page-max); margin: 0 auto; padding: 8px var(--gutter) 32px; }

.page-head { padding: 20px 0 8px; display: grid; gap: 6px; }
.page-head--banner {
	--hue: 260;
	margin-top: 12px;
	padding: 28px 24px;
	border-radius: var(--radius-lg);
	color: #fff;
	background:
		radial-gradient(120% 140% at 100% 0%, hsl(calc(var(--hue) + 40) 90% 62% / .9), transparent 60%),
		linear-gradient(135deg, hsl(var(--hue) 70% 48%), hsl(calc(var(--hue) + 30) 75% 38%));
}
.page-head--banner .stats li { color: rgba(255, 255, 255, .85); }
.page-head--banner .stats b { color: #fff; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 12px; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 16px 0 4px; font-size: .875rem; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .i { width: 14px; height: 14px; opacity: .6; }
.crumbs span { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }

.ad-slot { max-width: var(--page-max); margin: 12px auto; padding: 0 var(--gutter); overflow: hidden; text-align: center; }
.ad-slot:empty { display: none; }
.page .ad-slot { padding: 0; }
.ad-slot > div[role="alert"] { margin: 0 !important; border-radius: var(--radius); }

/* ---------- Chips ---------- */

.chips {
	display: flex;
	gap: 8px;
	margin: 12px calc(var(--gutter) * -1) 4px;
	padding: 2px var(--gutter) 6px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--gutter);
}
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	min-height: 36px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--surface);
	font-size: .875rem;
	font-weight: 600;
	white-space: nowrap;
	scroll-snap-align: start;
	transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.chip--lg { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.chip--lg .i { color: var(--accent); }
.chips--soft .chip { background: var(--surface-2); border-color: transparent; color: var(--text); font-weight: 550; }
.chips--soft .chip:hover { background: var(--accent-soft); color: var(--accent); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
	display: inline-flex;
	align-self: flex-start;
	justify-self: start;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.stats li { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .925rem; }
.stats b { color: var(--text); font-weight: 700; }
.stats a { color: var(--accent); font-weight: 600; }

/* ---------- Ringtone card ---------- */

.rt-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
@media (min-width: 720px) { .rt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .rt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.rt {
	--hue: 262;
	position: relative;
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	grid-template-areas:
		"cover body actions"
		"player player player"
		"tags tags tags";
	align-items: center;
	gap: 12px 14px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 20px;
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	isolation: isolate;
	overflow: hidden;
	transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
	animation: rise .4s ease both;
}
.rt::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(90% 75% at 0% 0%, hsl(var(--hue) 85% 62% / var(--glow)), transparent 62%);
	pointer-events: none;
	transition: opacity .25s ease;
}
.rt:hover { border-color: hsl(var(--hue) 70% 60% / .45); box-shadow: var(--shadow); transform: translateY(-2px); }
.rt.is-playing { border-color: hsl(var(--hue) 75% 60% / .85); box-shadow: 0 0 0 4px hsl(var(--hue) 80% 60% / .14), var(--shadow); }
.rt.is-playing::before { background: radial-gradient(130% 110% at 0% 0%, hsl(var(--hue) 85% 62% / calc(var(--glow) * 2)), transparent 70%); }
.rt--ad { display: block; padding: 0; grid-template-areas: none; }
.rt--ad::before { display: none; }

/* Generated cover art; doubles as the play button */
.cover {
	grid-area: cover;
	position: relative;
	display: grid;
	place-items: center;
	width: 56px; height: 56px;
	padding: 0;
	border: 0;
	border-radius: 16px;
	color: #fff;
	background:
		radial-gradient(70% 70% at 25% 20%, hsl(calc(var(--hue) + 35) 95% 72% / .95), transparent 62%),
		linear-gradient(140deg, hsl(var(--hue) 78% 58%), hsl(calc(var(--hue) + 28) 72% 36%));
	box-shadow: 0 10px 22px -10px hsl(var(--hue) 80% 40% / .9), inset 0 0 0 1px rgba(255, 255, 255, .16);
	overflow: hidden;
	transition: transform .2s ease;
}
.cover::after, .art::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--grain);
	opacity: .28;
	mix-blend-mode: overlay;
	pointer-events: none;
}
.cover:hover { transform: scale(1.06) rotate(-3deg); }
.cover:active { transform: scale(.95); }
.cover .i { position: relative; z-index: 1; width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25)); }

/* Player icon states, shared by every .js-play */
.js-play .pi-stop, .js-play .pi-spin, .js-play .eq { display: none; }
.js-play .pi-play { margin-left: 2px; }
.is-loading .js-play .pi-play, .is-playing .js-play .pi-play { display: none; }
.is-loading .js-play .pi-spin { display: block; animation: spin .8s linear infinite; }
.is-playing .js-play .eq { display: flex; }
@media (hover: hover) {
	.is-playing .js-play:hover .eq { display: none; }
	.is-playing .js-play:hover .pi-stop { display: block; }
}
.eq { position: relative; z-index: 1; align-items: flex-end; gap: 3px; height: 20px; }
.eq i { width: 4px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: eqb .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-duration: .7s; animation-delay: -.2s; }
.eq i:nth-child(3) { animation-duration: 1.1s; animation-delay: -.5s; }
.eq i:nth-child(4) { animation-duration: .8s; animation-delay: -.35s; }

.rt__body { grid-area: body; display: grid; gap: 4px; min-width: 0; }
.rt__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; font-weight: 700; transition: color .15s ease; }
.rt__body:hover .rt__title { color: var(--accent); }
.rt__meta { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--muted); font-size: .8rem; }
.rt__meta > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rt__meta .i { width: 14px; height: 14px; }
.rt__cat { padding: 1px 8px; border-radius: 999px; background: hsl(var(--hue) 80% 60% / .14); color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.rt__actions { grid-area: actions; display: flex; align-items: center; gap: 2px; align-self: start; }
.rt__actions .icon-btn { width: 36px; height: 36px; }
.rt__actions .i { width: 18px; height: 18px; }

.rt__player { grid-area: player; display: flex; align-items: center; gap: 12px; min-width: 0; }
.rt__time { min-width: 34px; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; text-align: right; }
.is-playing .rt__time { color: var(--text); font-weight: 650; }

.dl-btn {
	display: grid;
	place-items: center;
	flex: none;
	width: 40px; height: 40px;
	border-radius: 13px;
	background: var(--text);
	color: var(--bg);
	transition: transform .15s ease, background .2s ease, color .2s ease;
}
.dl-btn:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.dl-btn:active { transform: scale(.94); }
.dl-btn .i { width: 19px; height: 19px; }

/* Waveform: muted bars, with a coloured copy revealed by --p (0–1) while playing */
.wave { position: relative; flex: 1; min-width: 0; height: 34px; cursor: pointer; touch-action: manipulation; }
.wave__layer { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; }
.wave__layer i { flex: 1; min-width: 2px; height: var(--h); border-radius: 2px; background: color-mix(in srgb, var(--muted) 28%, transparent); transition: background-color .2s ease; }
.wave__layer--fill { clip-path: inset(0 calc(100% - var(--p, 0) * 100%) 0 0); transition: clip-path .25s linear; }
.wave__layer--fill i { background: linear-gradient(180deg, hsl(calc(var(--hue) + 30) 92% 68%), hsl(var(--hue) 78% 56%)); }
.wave:hover .wave__layer:first-child i { background: color-mix(in srgb, var(--muted) 42%, transparent); }
.wave--lg { height: 56px; }
.wave--lg .wave__layer { gap: 3px; }
.wave--lg .wave__layer i { border-radius: 3px; }
.wave__layer i { min-width: 0; }
@media (max-width: 600px) { .wave--lg .wave__layer { gap: 2px; } .wave--lg .wave__layer i:nth-child(2n) { display: none; } }

.rt__tags { grid-area: tags; display: flex; flex-wrap: wrap; gap: 6px; height: 26px; overflow: hidden; }
.rt__tags a {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 10px;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--muted);
	font-size: .75rem;
	font-weight: 600;
	transition: color .15s ease, border-color .15s ease;
}
.rt__tags a:hover { color: var(--text); border-color: hsl(var(--hue) 70% 60% / .6); }

.load-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.load-more .btn { min-width: 200px; }
.intro { max-width: 70ch; margin: 14px 0 8px; font-size: .925rem; }
.intro a { color: var(--text); font-weight: 600; }

/* ---------- Empty states ---------- */

.empty { display: grid; justify-items: center; gap: 8px; padding: 48px 16px; text-align: center; }
.empty .btn { margin-top: 12px; }
.empty__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.empty__icon .i { width: 28px; height: 28px; }
.empty--page { padding: 64px 16px; }
.empty__code {
	font-size: clamp(4rem, 3rem + 6vw, 7rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -.04em;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* ---------- Ringtone page ---------- */

.hero {
	--hue: 262;
	position: relative;
	display: grid;
	gap: 20px;
	margin-top: 8px;
	padding: 14px;
	border: 1px solid var(--border);
	border-radius: 28px;
	background: var(--surface);
	box-shadow: var(--shadow);
	isolation: isolate;
	overflow: hidden;
}
.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(70% 90% at 100% 0%, hsl(var(--hue) 85% 62% / calc(var(--glow) * 1.3)), transparent 70%);
}

/* Generated album-style cover */
.art {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 22px;
	color: #fff;
	background:
		radial-gradient(60% 55% at 20% 16%, hsl(calc(var(--hue) + 40) 95% 72% / .95), transparent 62%),
		radial-gradient(70% 60% at 92% 96%, hsl(calc(var(--hue) - 30) 90% 55% / .75), transparent 60%),
		linear-gradient(150deg, hsl(var(--hue) 78% 56%), hsl(calc(var(--hue) + 25) 70% 28%));
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 48px -24px hsl(var(--hue) 80% 35% / .85);
}
.art::after { opacity: .35; }
.art__label {
	position: absolute;
	top: 16px; left: 16px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .7rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	opacity: .92;
}
.art__label .i { width: 16px; height: 16px; }
.art__len {
	position: absolute;
	top: 12px; right: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, .24);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	font-size: .8rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.art__type {
	position: absolute;
	left: 18px; right: 18px; bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: rgba(255, 255, 255, .2);
	font-size: clamp(2.2rem, 9vw, 3.6rem);
	font-weight: 900;
	line-height: .9;
	letter-spacing: -.045em;
	text-transform: uppercase;
	overflow-wrap: anywhere;
	pointer-events: none;
}
.art__rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.art__rings i { grid-area: 1 / 1; width: 120px; height: 120px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 50%; opacity: .55; }
.art__rings i:nth-child(2) { width: 176px; height: 176px; opacity: .3; }
.art__rings i:nth-child(3) { width: 240px; height: 240px; opacity: .15; }
.hero.is-playing .art__rings i { width: 100px; height: 100px; animation: ripple 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.hero.is-playing .art__rings i:nth-child(2) { animation-delay: .8s; }
.hero.is-playing .art__rings i:nth-child(3) { animation-delay: 1.6s; }
.art__play {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 84px; height: 84px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: hsl(var(--hue) 75% 46%);
	box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .45);
	transition: transform .2s ease;
}
.art__play:hover { transform: scale(1.06); }
.art__play:active { transform: scale(.95); }
.art__play .i { width: 32px; height: 32px; }
.art__play .pi-play { margin-left: 4px; }
.art__play .eq { height: 28px; gap: 4px; }
.art__play .eq i { width: 5px; }

.hero__info { display: grid; gap: 14px; align-content: center; min-width: 0; }
.hero__info h1 { overflow-wrap: anywhere; }

.strip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.strip__now, .strip__total { min-width: 32px; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.strip__total { text-align: right; }
.is-playing .strip__now { color: var(--text); font-weight: 650; }

.hero__actions { display: flex; gap: 8px; margin-top: 2px; }
.hero__actions .btn--primary { flex: 1; }
@media (max-width: 479px) {
	.hero__actions .btn--ghost { width: 44px; padding: 0; }
	.hero__actions .btn--ghost span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

@media (min-width: 760px) {
	.hero { grid-template-columns: minmax(260px, 360px) 1fr; gap: 32px; padding: 20px; }
	.art { aspect-ratio: 1; }
	.hero__actions .btn--primary { flex: none; }
}

.panel {
	margin-top: 16px;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}
.panel > h2 { margin-bottom: 14px; }
.panel--flat { background: transparent; border: 0; padding: 4px 0 0; }
.h-sm { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

.dl-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
.dl {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 68px;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface-2);
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dl:hover { border-color: var(--accent); }
.dl:active { transform: scale(.98); }
.dl__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); color: var(--accent); }
.dl__text { display: grid; flex: 1; line-height: 1.3; }
.dl__text small { color: var(--muted); font-size: .825rem; }
.dl__arrow { color: var(--accent); }
.dl--primary {
	border-color: transparent;
	background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent-2)));
	color: #fff;
	box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}
.dl--primary .dl__icon { background: rgba(255, 255, 255, .18); color: #fff; }
.dl--primary .dl__text small, .dl--primary .dl__arrow { color: rgba(255, 255, 255, .85); }

/* Ringtone facts under the download buttons */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 14px 0 0; }
.facts div { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); min-width: 0; }
.facts dt { font-size: .75rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 650; font-size: .925rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts a { color: inherit; }

.howto { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 4px; }
.howto summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	font-weight: 650;
	cursor: pointer;
	list-style: none;
}
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); transition: transform .2s ease; }
.howto[open] summary::after { transform: rotate(45deg); }
.howto__cols { display: grid; gap: 16px; padding-bottom: 4px; }
@media (min-width: 640px) { .howto__cols { grid-template-columns: 1fr 1fr; } }
.howto h3 { margin-bottom: 6px; }
.howto ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 4px; font-size: .925rem; }
.howto ol b { color: var(--text); font-weight: 600; }

.cta {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 16px;
	padding: 16px 18px;
	border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--border));
	border-radius: var(--radius-lg);
	background: var(--accent-soft);
	transition: border-color .15s ease;
}
.cta:hover { border-style: solid; }
.cta > span:nth-child(2) { display: grid; flex: 1; }
.cta small { font-size: .875rem; }
.cta > .i { color: var(--accent); }
.cta__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: #fff; }

/* ---------- Categories ---------- */

.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.cat-tile {
	--hue: 260;
	position: relative;
	display: grid;
	align-content: end;
	gap: 2px;
	min-height: 112px;
	padding: 16px;
	overflow: hidden;
	border-radius: var(--radius);
	color: #fff;
	background:
		radial-gradient(120% 120% at 100% 0%, hsl(calc(var(--hue) + 40) 85% 58% / .75), transparent 55%),
		linear-gradient(135deg, hsl(var(--hue) 68% 42%), hsl(calc(var(--hue) + 25) 72% 30%));
	text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
	box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease;
	animation: rise .35s ease both;
}
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-tile__name { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.cat-tile__count { font-size: .8rem; opacity: .85; }
.cat-tile__icon { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; opacity: .3; transform: rotate(12deg); }

/* ---------- Profile ---------- */

.profile {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
	padding: 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
}
.profile__avatar {
	--hue: 260;
	display: grid;
	place-items: center;
	width: 72px; height: 72px;
	border-radius: 50%;
	background: linear-gradient(135deg, hsl(var(--hue) 70% 55%), hsl(calc(var(--hue) + 40) 80% 55%));
	color: #fff;
	font-size: 1.75rem;
	font-weight: 800;
}
.profile__info { display: grid; gap: 6px; min-width: 0; }
.profile__info h1 { font-size: 1.5rem; }
.profile__actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 720px) { .profile { grid-template-columns: auto 1fr auto; } .profile__actions { grid-column: auto; } }

/* ---------- Auth ---------- */

.auth-card {
	display: grid;
	justify-items: center;
	gap: 12px;
	max-width: 420px;
	margin: 32px auto;
	padding: 32px 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: var(--shadow);
	text-align: center;
}
.auth-card h1 { font-size: 1.6rem; }
.perks { display: grid; gap: 10px; width: 100%; margin: 8px 0; padding: 0; list-style: none; text-align: left; }
.perks li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 550; font-size: .925rem; }
.perks .i { color: var(--accent); }
.fine-print { font-size: .8rem; color: var(--muted); }
.fine-print a { color: var(--accent); }

.modal { position: fixed; inset: 0; z-index: 70; display: grid; align-items: end; justify-items: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8, 8, 20, .5); animation: fade .2s ease; }
.modal__panel {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 10px;
	width: 100%;
	max-width: 420px;
	padding: 28px 24px calc(24px + env(safe-area-inset-bottom));
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	text-align: center;
	animation: sheet .3s cubic-bezier(.2, .8, .2, 1);
}
.modal__panel .btn--google { margin-top: 8px; }
.modal__close { position: absolute; top: 10px; right: 10px; }
.modal__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.modal__icon .i { width: 28px; height: 28px; }
@media (min-width: 640px) {
	.modal { align-items: center; }
	.modal__panel { border-radius: var(--radius-lg); padding-bottom: 28px; animation: pop-in .25s ease; }
}

/* ---------- Pages (terms, privacy…) ---------- */

.prose-wrap { max-width: 760px; margin: 0 auto; }
.prose-wrap > h1 { margin: 8px 0 20px; }
.prose { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); line-height: 1.7; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose span[style*="color"] { color: inherit !important; }
/* "About this category" text under a category's list */
.about { margin-top: 28px; }
.about h2 { margin-bottom: 12px; }
.about .prose { max-width: 760px; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 32px; border-top: 1px solid var(--border); background: var(--surface); }
.site-footer__inner { display: grid; gap: 20px; max-width: var(--page-max); margin: 0 auto; padding: 28px var(--gutter) 8px; }
.site-footer__inner p { margin-top: 10px; max-width: 320px; font-size: .9rem; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; }
.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__copy { max-width: var(--page-max); margin: 0 auto; padding: 12px var(--gutter) 24px; font-size: .825rem; }
@media (min-width: 900px) { .site-footer__inner { grid-template-columns: 1fr 1.4fr; } .site-footer__links { justify-content: flex-end; align-content: start; } }

/* ---------- Bottom nav (mobile) ---------- */

.bottom-nav {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 45;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr; /* 5 items logged in, 4 without the Upload button */
	align-items: center;
	height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	border-top: 1px solid var(--border);
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	backdrop-filter: saturate(180%) blur(14px);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
}
.bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; color: var(--muted); font-size: .7rem; font-weight: 600; }
.bottom-nav a .i { width: 22px; height: 22px; }
.bottom-nav a.is-active { color: var(--accent); }
.bottom-nav a.is-active .i { stroke-width: 2.4; }
.bottom-nav__plus {
	display: grid;
	place-items: center;
	width: 48px; height: 48px;
	margin-top: -18px;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--accent), var(--accent-2));
	color: #fff;
	box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 45%, transparent);
}
.bottom-nav__plus .i { width: 24px !important; height: 24px !important; stroke-width: 2.6; }

@media (min-width: 900px) {
	body { padding-bottom: 0; }
	body.has-np { padding-bottom: 96px; }
	.bottom-nav { display: none; }
}

/* ---------- Now playing ---------- */

.now-playing {
	position: fixed;
	left: 8px; right: 8px;
	bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 8px);
	z-index: 44;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 12px;
	padding: 10px 10px 10px 10px;
	overflow: hidden;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow-lg);
	animation: sheet .3s cubic-bezier(.2, .8, .2, 1);
}
.now-playing[hidden] { display: none; }
.now-playing__bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--ring-track); }
.now-playing__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, hsl(var(--hue) 78% 56%), hsl(calc(var(--hue) + 30) 92% 66%)); transition: width .25s linear; }
.now-playing { --hue: 262; }
.now-playing__toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 12px; color: #fff; background: radial-gradient(70% 70% at 25% 20%, hsl(calc(var(--hue) + 35) 95% 72% / .95), transparent 62%), linear-gradient(140deg, hsl(var(--hue) 78% 58%), hsl(calc(var(--hue) + 28) 72% 36%)); }
.now-playing__toggle .i { width: 18px; height: 18px; }
.now-playing__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.now-playing__time { font-size: .8rem; font-variant-numeric: tabular-nums; }
.now-playing__dl span { display: none; }
@media (min-width: 480px) { .now-playing__dl span { display: inline; } }
@media (min-width: 900px) {
	.now-playing { left: 50%; right: auto; bottom: 16px; width: 560px; transform: translateX(-50%); animation: none; }
}

/* ---------- Toast ---------- */

.toast-region {
	position: fixed;
	left: 50%;
	top: calc(var(--header-h) + 56px);
	z-index: 80;
	display: grid;
	gap: 8px;
	transform: translateX(-50%);
	pointer-events: none;
	width: max-content;
	max-width: calc(100vw - 32px);
}
@media (min-width: 900px) { .toast-region { top: calc(var(--header-h) + 12px); } }
.toast {
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--text);
	color: var(--bg);
	font-size: .9rem;
	font-weight: 600;
	box-shadow: var(--shadow-lg);
	animation: toast 2.6s ease forwards;
}

/* ---------- Upload ---------- */

.upload { max-width: 720px; display: grid; gap: 16px; margin-top: 8px; }
.upload .panel { margin-top: 0; }

.steps { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { display: flex; align-items: center; gap: 8px; flex: 1; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .85rem; font-weight: 600; }
.steps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); font-size: .75rem; flex: none; }
.steps li.is-active { color: var(--text); border-color: var(--accent); }
.steps li.is-active span, .steps li.is-done span { background: var(--accent); color: #fff; }
@media (max-width: 420px) { .steps li { font-size: 0; gap: 0; justify-content: center; } .steps li span { font-size: .75rem; } }

.dropzone {
	display: grid;
	justify-items: center;
	gap: 6px;
	padding: 48px 24px;
	border: 2px dashed color-mix(in srgb, var(--accent) 40%, var(--border));
	border-radius: var(--radius-lg);
	background: var(--surface);
	text-align: center;
	cursor: pointer;
	transition: border-color .15s ease, background-color .15s ease;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone[hidden] { display: none; }
.dropzone b { font-size: 1.1rem; }
.dropzone__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border-radius: 20px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.dropzone__icon .i { width: 30px; height: 30px; }

.editor { display: grid; gap: 14px; }
.editor__file { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.editor__file > .i { color: var(--accent); }
.editor__file .truncate { flex: 1; }
.waveform { padding: 12px; border-radius: var(--radius); background: var(--surface-2); }
.waveform__svg { display: block; width: 100%; height: 110px; touch-action: none; }
.waveform__bg { clip-path: url(#waveform-mask); -webkit-clip-path: url(#waveform-mask); fill: color-mix(in srgb, var(--muted) 45%, transparent); }
.waveform__sel { clip-path: url(#waveform-mask); -webkit-clip-path: url(#waveform-mask); fill: var(--accent); }
.waveform__line { stroke: var(--accent-2); stroke-width: .6; vector-effect: non-scaling-stroke; }
.waveform__handle { fill: var(--accent); }
.draggable { cursor: grab; }
.editor__controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.editor__len { color: var(--muted); }
.editor__len b { color: var(--text); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hint { font-size: .85rem; }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 650; font-size: .925rem; }
.field input, .field select {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field input:focus, .field select:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.tag-input { display: flex; gap: 8px; }
.tag-input .btn { width: 48px; padding: 0; flex: none; border-radius: var(--radius-sm); min-height: 48px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-list:empty { display: none; }
.tag-list button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 12px; border: 0; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .85rem; font-weight: 600; }
.tag-list button .i { width: 14px; height: 14px; }
.form-error { padding: 10px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-weight: 600; font-size: .9rem; }
.form-error[hidden] { display: none; }
.form__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.success { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 32px 20px; }
.success .form__actions { justify-content: center; margin-top: 8px; }
.success__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.success__icon .i { width: 30px; height: 30px; }

/* ---------- Motion ---------- */

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(24px); opacity: 0; } }
@keyframes pop-in { from { transform: scale(.96); opacity: 0; } }
@keyframes pop { 40% { transform: scale(1.35); } }
@keyframes eqb { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
@keyframes ripple { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes toast { 0% { opacity: 0; transform: translateY(-8px); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Verified creator tick */
.verified-badge { display: inline-block; margin-left: 6px; vertical-align: -0.12em; }
h1 .verified-badge { vertical-align: -0.08em; }
