:root {
	--bg: #f7f8fa;
	--surface: #ffffff;
	--text: #1f2937;
	--text-muted: #6b7280;
	--border: #e5e7eb;
	--accent: #ef4444;
	--accent-dark: #dc2626;
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
	--radius: 12px;
}

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif;
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.hero {
	background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
	color: white;
	padding: 56px 0;
}

.hero-inner {
	display: flex;
	align-items: center;
	gap: 16px;
}

.hero-icon {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	background: rgba(255, 255, 255, 0.15);
}

.hero h1 {
	font-size: 36px;
	margin: 0;
	letter-spacing: -0.02em;
}

.hero .tagline {
	margin: 0;
	font-size: 16px;
	opacity: 0.9;
}

.block {
	margin: 48px 0;
}

.block-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--border);
}

.block-head h2 {
	font-size: 22px;
	margin: 0;
	letter-spacing: -0.01em;
}

.block-sub {
	color: var(--text-muted);
	font-size: 13px;
	margin: 0;
}

.controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.controls label {
	font-size: 13px;
	color: var(--text-muted);
}

.controls select,
.controls input {
	height: 34px;
	padding: 0 10px;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--surface);
	color: var(--text);
	font-size: 13px;
}

.controls input[type="number"] {
	width: 80px;
}

.controls input[type="text"] {
	width: 220px;
}

.controls button {
	height: 34px;
	padding: 0 16px;
	background: var(--accent);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
}

.controls button:hover {
	background: var(--accent-dark);
}

.controls button:disabled {
	background: #cbd5e1;
	cursor: not-allowed;
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.card {
	background: var(--surface);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform 0.15s, box-shadow 0.15s;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06), 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-image {
	aspect-ratio: 1 / 1;
	width: 100%;
	background: #f1f5f9;
	object-fit: cover;
	display: block;
}

.card-body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.card-name {
	font-size: 13px;
	line-height: 1.4;
	color: var(--text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 36px;
}

.card-meta {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.tag {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f1f5f9;
	color: var(--text-muted);
	font-weight: 500;
}

.tag.rocket {
	background: #eff6ff;
	color: #2563eb;
}

.tag.free {
	background: #f0fdf4;
	color: #16a34a;
}

.card-price {
	font-size: 16px;
	font-weight: 700;
	color: var(--text);
	margin-top: auto;
}

.empty,
.loading,
.error {
	grid-column: 1 / -1;
	padding: 48px 16px;
	text-align: center;
	color: var(--text-muted);
	font-size: 14px;
	background: var(--surface);
	border-radius: var(--radius);
	border: 1px dashed var(--border);
}

.error {
	color: var(--accent-dark);
	border-color: #fecaca;
	background: #fef2f2;
}

.footer {
	margin-top: 64px;
	padding: 24px 0;
	border-top: 1px solid var(--border);
	color: var(--text-muted);
	font-size: 12px;
}

.footer p {
	margin: 0;
}

@media (max-width: 640px) {
	.hero {
		padding: 40px 0;
	}

	.hero h1 {
		font-size: 28px;
	}

	.hero-icon {
		width: 44px;
		height: 44px;
		border-radius: 10px;
	}

	.controls {
		margin-left: 0;
	}

	.grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
}
