:root {
	--bg: #fff7f2;
	--card: #ffffff;
	--ink: #1d1512;
	--ink-2: #5f524c;
	--line: #eaded6;
	--accent: #ff4d2e;
	--accent-ink: #ffffff;
	--accent-dark: #d93a1e;
	--soft: #ffe9e0;
	--ok: #12a150;
	--r: 16px;
	--pad: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0; text-wrap: balance; }
h1 { font-size: 28px; letter-spacing: -0.01em; }
h2 { font-size: 21px; }
p { margin: 0; }
main { max-width: 1040px; margin: 0 auto; padding: 0 var(--pad) 48px; }
section, .cards, .chips, .ad, .note { margin-top: 32px; }

.top { max-width: 1040px; margin: 0 auto; padding: 12px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: -0.02em; min-height: 44px; }
.logo-mark { color: var(--accent); flex: none; }
.lang { position: relative; font-size: 14px; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang ul { position: absolute; inset-inline-end: 0; top: 48px; z-index: 5; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 8px 24px rgba(29, 21, 18, 0.12); min-width: 180px; }
.lang a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; text-decoration: none; }
.lang a[aria-current] { background: var(--soft); font-weight: 600; }

.crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.hero { margin-top: 8px; }
.crumb + .hero { margin-top: 0; }
.hero + .chips { margin-top: 24px; }
.hero .lead { margin-top: 12px; font-size: 17px; color: var(--ink-2); max-width: 46em; }
.meta { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

.how { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.how h2 { font-size: 17px; }
.how ol { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.how li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.how li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--soft); color: var(--accent-dark); font-weight: 700; font-size: 14px; display: grid; place-items: center; margin-top: -1px; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.chips + .cards { margin-top: 16px; }

.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card-img { display: block; aspect-ratio: 3 / 4; background: var(--soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-name { font-size: 18px; }
.card-name a { text-decoration: none; }
.prompt { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; overflow-wrap: anywhere; }
.prompt .clamp { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.more { align-self: flex-start; min-height: 44px; margin: -12px 0; padding: 0; border: 0; background: none; color: var(--accent-dark); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 0; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; }
.btn-copy { background: var(--accent); color: var(--accent-ink); width: 100%; margin-top: auto; }
.btn-copy:active { background: var(--accent-dark); }
.btn-copy.done { background: var(--ok); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.all { margin-top: 20px; text-align: center; }

.note { font-size: 13px; color: var(--ink-2); }
.one .note { margin-top: 12px; }

.tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; text-decoration: none; color: #fff; background: var(--soft); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0)); }
.tile-name { position: absolute; z-index: 1; inset-inline: 12px; bottom: 30px; font-weight: 800; font-size: 18px; line-height: 1.2; }
.tile-n { position: absolute; z-index: 1; inset-inline: 12px; bottom: 10px; font-size: 13px; opacity: 0.9; }
.group > .cards { margin-top: 16px; }

.ad { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r); background: #1d1512; color: #fff; text-decoration: none; }
.cards > .ad { margin-top: 0; }
.ad-art { width: 72px; height: 72px; border-radius: 16px; background: var(--accent); display: grid; place-items: center; }
.ad-body { display: grid; gap: 6px; justify-items: start; }
.ad-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #ffb199; }
.ad-title { font-size: 19px; font-weight: 800; line-height: 1.25; }
.ad-text { font-size: 14.5px; line-height: 1.5; color: #e7dcd6; }
.btn-ad { margin-top: 6px; min-height: 44px; background: #fff; color: #1d1512; font-size: 15px; }

.tips ul { margin: 12px 0 0; padding-inline-start: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq h2 { margin-bottom: 8px; }
.faq summary { min-height: 52px; padding: 10px 0; line-height: 1.4; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--ink-2); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; color: var(--ink-2); }

.one h1 { margin-top: 0; }
.one-img { margin-top: 16px; width: 100%; max-width: 480px; border-radius: var(--r); background: var(--soft); }
.one .label { margin-top: 24px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.one .prompt { margin-top: 8px; font-size: 16px; color: var(--ink); }
.one .btn-copy { margin-top: 16px; max-width: 480px; }

.text { max-width: 44em; margin-top: 16px; }
.text h2 { margin-top: 32px; font-size: 19px; }
.text p { margin-top: 12px; color: var(--ink-2); }
.text a { color: var(--accent-dark); }

.foot { border-top: 1px solid var(--line); padding: 24px var(--pad) 40px; max-width: 1040px; margin: 0 auto; font-size: 13px; color: var(--ink-2); display: grid; gap: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--ink); }

.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(29, 21, 18, 0.5); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-card { position: relative; width: 100%; max-width: 480px; background: var(--card); border-radius: 20px 20px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.sheet-title { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; }
.sheet-text { color: var(--ink-2); }
.sheet-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.btn-app { background: var(--ink); color: #fff; padding: 0 12px; font-size: 15px; }
.sheet-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--ink-2); cursor: pointer; }

@media (min-width: 640px) {
	h1 { font-size: 36px; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.cards > .ad { grid-column: 1 / -1; }
	.tiles { grid-template-columns: repeat(4, 1fr); }
	.sheet { align-items: center; }
	.sheet-card { border-radius: 20px; }
	.one { display: grid; grid-template-columns: minmax(0, 420px) 1fr; column-gap: 32px; align-items: start; }
	.one h1, .one .one-img, .one > .note { grid-column: 1; }
	.one h1 { grid-column: 1 / -1; margin-bottom: 16px; }
	.one-img { margin-top: 0; grid-row: 2 / span 4; }
	.one > .note { grid-row: 6; }
	.one .label { grid-column: 2; grid-row: 2; margin-top: 0; }
	.one .prompt { grid-column: 2; grid-row: 3; }
	.one .btn-copy { grid-column: 2; grid-row: 4; max-width: none; }
}
@media (min-width: 1000px) {
	.cards { grid-template-columns: repeat(3, 1fr); }
}
