/* =========================================================
   PlayNimbo — site styles v3
   Plus Jakarta Sans · light & dark · per-game accents
   ========================================================= */
:root {
	--bg: #f5f6fb;
	--bg-2: #eef0f8;
	--surface: #ffffff;
	--surface-2: #f8f9fd;
	--ink: #0f172a;
	--ink-2: #334155;
	--muted: #64748b;
	--line: #e5e8f1;
	--brand: #6366f1;
	--brand-2: #8b5cf6;
	--brand-ink: #4338ca;
	--brand-soft: #eef0ff;
	--ok: #10b981;
	--ok-soft: #e7f8f1;
	--warm: #f59e0b;
	--warm-soft: #fff5e1;
	--radius: 22px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
	--shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 28px rgba(15, 23, 42, .07);
	--shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 22px 50px rgba(15, 23, 42, .12);
	--wrap: 1160px;
	--font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--grad: linear-gradient(135deg, #22d3ee 0%, #6366f1 55%, #8b5cf6 100%);
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0b1020;
		--bg-2: #1a2240;
		--surface: #141b30;
		--surface-2: #19213a;
		--ink: #e8ecf6;
		--ink-2: #c3cbe0;
		--muted: #8f9bb8;
		--line: #242d48;
		--brand-soft: #1e2350;
		--brand-ink: #a5b4fc;
		--ok-soft: #0f2e27;
		--warm-soft: #33260c;
		--shadow-sm: none;
		--shadow: 0 1px 0 rgba(255,255,255,.03), 0 10px 30px rgba(0,0,0,.35);
		--shadow-lg: 0 20px 50px rgba(0,0,0,.5);
		color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
	background:
		radial-gradient(1200px 500px at 85% -120px, rgba(99,102,241,.13), transparent 60%),
		radial-gradient(900px 420px at -10% -80px, rgba(34,211,238,.12), transparent 60%),
		var(--bg);
	background-repeat: no-repeat;
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid rgba(99,102,241,.5); outline-offset: 2px; border-radius: 8px; }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px 56px; }

/* ---------- buttons ---------- */
.btn, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 13px 20px; font: 700 .97rem/1 var(--font); cursor: pointer; text-decoration: none !important; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:active, .button:active { transform: translateY(1px); }
.btn--primary, .button--primary { color: #fff; background: var(--grad); box-shadow: 0 8px 22px rgba(99,102,241,.35); }
.btn--primary:hover, .button--primary:hover { box-shadow: 0 10px 28px rgba(99,102,241,.45); transform: translateY(-1px); }
.btn--ghost, .button--ghost { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover, .button--ghost:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header__inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; flex: none; }
.brand__mark { width: 38px; height: 38px; border-radius: 11px; box-shadow: 0 6px 16px rgba(99,102,241,.35); }
.brand__name { font-size: 1.28rem; font-weight: 600; letter-spacing: -.03em; }
.brand__name b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { color: var(--ink-2); font-weight: 600; padding: 9px 13px; border-radius: 11px; font-size: .95rem; text-decoration: none; }
.nav a:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.header__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.streak-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--warm-soft); color: #b45309; border-radius: 999px; padding: 7px 13px; font-weight: 800; font-size: .9rem; white-space: nowrap; }
.streak-pill[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .streak-pill { color: #fbbf24; } }
.search { display: flex; align-items: center; background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.search input { border: 0; background: transparent; color: var(--ink); padding: 10px 12px; width: 180px; font: inherit; font-size: .93rem; outline: none; }
.search button { border: 0; background: transparent; padding: 0 12px 0 4px; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.search svg, .burger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); cursor: pointer; place-items: center; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 28px; align-items: stretch; margin: 36px 0 26px; }
.hero__text { padding: 8px 0; display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-weight: 700; font-size: .82rem; color: var(--brand-ink); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 16px; color: var(--muted); font-size: 1.12rem; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.progress-card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.progress-card__top { display: flex; align-items: center; gap: 16px; }
.ring { --p: 0; width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--bg-2) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; font-weight: 800; font-size: 1.2rem; }
.progress-card h2 { font-size: 1.1rem; }
.progress-card small { color: var(--muted); font-size: .88rem; }
.progress-card [data-countdown] { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week__day { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); }
.week__dot { margin: 6px auto 0; width: 30px; height: 30px; border-radius: 10px; background: var(--bg-2); display: grid; place-items: center; color: #fff; font-size: .8rem; }
.week__day.is-done .week__dot { background: var(--ok); }
.week__day.is-part .week__dot { background: color-mix(in srgb, var(--ok) 45%, var(--bg-2)); }
.week__day.is-today { color: var(--ink); }
.week__day.is-today .week__dot { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }
.week__day.is-future .week__dot { opacity: .45; }
.progress-card__foot { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.progress-card__foot b { color: var(--ink); }

/* ---------- puzzle cards ---------- */
.puzzle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.puzzle-card { --accent: var(--brand); --accent-soft: var(--brand-soft); position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-decoration: none !important; transition: transform .2s, box-shadow .2s; overflow: hidden; isolation: isolate; }
.puzzle-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(180deg, var(--accent-soft), transparent); z-index: -1; opacity: .9; }
.puzzle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.puzzle-card--nimbogram { --accent: #10b981; --accent-soft: #e3f8ef; }
.puzzle-card--cloud-path { --accent: #4f46e5; --accent-soft: #e6ecff; }
.puzzle-card--sun-moon { --accent: #f59e0b; --accent-soft: #fff1d9; }
@media (prefers-color-scheme: dark) {
	.puzzle-card--nimbogram { --accent-soft: #0f2e27; }
	.puzzle-card--cloud-path { --accent: #818cf8; --accent-soft: #1c2150; }
	.puzzle-card--sun-moon { --accent-soft: #33260c; }
}
.puzzle-card__head { display: flex; align-items: center; gap: 14px; }
.puzzle-card__icon { width: 60px; height: 60px; border-radius: 16px; flex: none; box-shadow: 0 8px 20px rgba(15,23,42,.15); }
.puzzle-card__title { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.puzzle-card__tag { display: block; color: var(--muted); font-size: .92rem; line-height: 1.35; margin-top: 2px; }
.puzzle-card__chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.chip--level { color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.chip--streak { color: #b45309; background: var(--warm-soft); box-shadow: none; }
.puzzle-card__status { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 13px; font-weight: 800; color: #fff; background: var(--accent); box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 35%, transparent); transition: filter .15s; text-align: center; }
.puzzle-card:hover .puzzle-card__status { filter: brightness(1.06); }
.puzzle-card.is-solved .puzzle-card__status { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.puzzle-card.is-started .puzzle-card__status { background: var(--ink); color: var(--surface); box-shadow: none; }
.puzzle-grid--compact .puzzle-card { padding: 16px; gap: 12px; }
.puzzle-grid--compact .puzzle-card__icon { width: 48px; height: 48px; border-radius: 13px; }
.puzzle-grid--compact .puzzle-card__chips { display: none; }
.puzzle-grid--compact .puzzle-card__status { padding: 10px; font-size: .92rem; }

/* ---------- sections ---------- */
.section { margin: 56px 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section__head h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 800; }
.section__head p { color: var(--muted); margin-top: 6px; }
.section__head a { font-weight: 700; white-space: nowrap; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.step__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin: 14px 0 6px; font-size: 1.05rem; font-weight: 800; }
.step p { color: var(--muted); font-size: .94rem; }
.prose { background: var(--surface); border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow); color: var(--ink-2); }
.prose h2 { font-size: 1.4rem; font-weight: 800; color: var(--ink); margin: 1.4em 0 .55em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); margin: 1.2em 0 .4em; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; font-weight: 700; color: var(--ink); padding: 15px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 500; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 15px; margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }

/* ---------- game cards ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.game-card__link { display: flex; flex-direction: column; height: 100%; color: var(--ink); background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; text-decoration: none !important; }
.game-card__link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.game-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--grad); overflow: hidden; }
.game-card__media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.game-card__link:hover .game-card__media > img { transform: scale(1.05); }
.game-card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.game-card__placeholder img { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.game-card__badge { position: absolute; left: 10px; top: 10px; background: rgba(15,23,42,.72); color: #fff; font-weight: 700; font-size: .72rem; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(6px); }
.game-card__body { display: block; padding: 12px 14px 14px; }
.game-card__title { display: block; font-weight: 800; }
.game-card__meta { display: block; color: var(--muted); font-size: .86rem; }

/* ---------- ad slots ---------- */
.ad-slot { margin: 26px auto; text-align: center; }
.ad-slot:empty { display: none; }
.ad-slot--side { margin: 16px 0 0; }

/* ---------- inner pages ---------- */
.page { padding-top: 22px; }
.speedbar { font-size: .86rem; color: var(--muted); margin: 0 0 14px; }
.speedbar a { color: var(--muted); }
.archive-head { margin: 8px 0 24px; }
.archive-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.archive-head__desc { color: var(--muted); margin-top: 8px; max-width: 680px; }
.game-grid--list > .pagination, .game-grid--list > nav, .game-grid--list > .notice, .game-grid--list > .navigation { grid-column: 1 / -1; }

.puzzle-page__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.puzzle-page__icon { width: 64px; height: 64px; border-radius: 18px; flex: none; box-shadow: 0 10px 24px rgba(15,23,42,.18); }
.puzzle-page__head h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 800; }
.puzzle-page__head p { color: var(--muted); margin-top: 2px; }
.puzzle-frame { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.puzzle-frame iframe { display: block; width: 100%; height: 760px; border: 0; background: transparent; }
.other-puzzles { margin: 40px 0; }
.other-puzzles h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 16px; }
.puzzle-page__about { margin-top: 22px; }

.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
.game-frame { position: relative; aspect-ratio: 16 / 9; background: #0f1720; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.game-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.game-frame:fullscreen { border-radius: 0; aspect-ratio: auto; }
.game-facade { position: absolute; inset: 0; display: grid; place-items: center; }
.game-facade__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) saturate(1.1); }
.game-facade__play { position: relative; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; background: var(--grad); color: #fff; font: 800 1.2rem var(--font); padding: 16px 34px; cursor: pointer; box-shadow: 0 14px 34px rgba(99,102,241,.5); transition: transform .15s; }
.game-facade__play:hover { transform: scale(1.04); }
.game-facade__play svg { width: 22px; height: 22px; fill: currentColor; }
.game-empty { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.game-toolbar { display: flex; gap: 8px; margin-top: 12px; }
.facts { margin: 0; background: var(--surface); border-radius: var(--radius); padding: 6px 18px; box-shadow: var(--shadow); }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.game-page .prose { margin-top: 24px; }

.static-page, .auth-card, .search-page, .notice { background: var(--surface); border-radius: var(--radius); padding: 30px 34px; box-shadow: var(--shadow); margin-bottom: 20px; color: var(--ink-2); }
.static-page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.static-page h2 { color: var(--ink); font-size: 1.3rem; margin: 1.4em 0 .5em; }
.static-page p, .static-page ul { margin: 0 0 1em; }
.notice { border-left: 4px solid var(--warm); padding: 18px 22px; }
.notice p { margin: 4px 0 0; color: var(--muted); }
.auth-card { max-width: 440px; margin: 10px auto 20px; }
.form-field { display: grid; gap: 6px; margin-bottom: 14px; }
.form-field span { font-weight: 700; font-size: .9rem; color: var(--ink); }
.form-field input, .form-field textarea, .form-field select, .search-page input { width: 100%; border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; background: var(--surface-2); color: var(--ink); }
.form-field input:focus, .form-field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.form-checkbox { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.search-hit { background: var(--surface); border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; box-shadow: var(--shadow); }
.search-hit__title { margin: 0 0 4px; font-size: 1.1rem; }
.search-hit__meta { color: var(--muted); font-size: .85rem; display: flex; gap: 6px; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 26px 0; }
.pagination a, .pagination span { padding: 9px 14px; border-radius: 11px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; text-decoration: none; }

/* comments */
.comments { margin-top: 34px; }
.comments h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 14px; }
.comments__count { color: var(--muted); font-weight: 600; }
.comment { background: var(--surface); border-radius: 16px; padding: 16px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.comment__head { display: flex; align-items: center; gap: 10px; }
.comment__avatar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.comment__user { flex: 1; }
.comment__date { display: block; font-size: .8rem; color: var(--muted); }
.comment__actions { display: flex; gap: 6px; align-items: center; }
.comment__vote { border: 0; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface-2); color: var(--ink); border-radius: 8px; width: 28px; height: 28px; cursor: pointer; }
.comment__body { margin-top: 8px; color: var(--ink-2); }
.comment__tools { display: flex; gap: 12px; font-size: .85rem; margin-top: 6px; }
.addcomment { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); margin-top: 14px; }
.addcomment h3 { margin: 0 0 14px; }

/* ---------- footer ---------- */
.footer { margin-top: 40px; border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 34px 24px 18px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.15rem; font-weight: 600; text-decoration: none !important; }
.footer__brand img { width: 30px; height: 30px; border-radius: 9px; }
.footer__brand b { font-weight: 800; }
.footer p { margin-top: 8px; color: var(--muted); font-size: .92rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.footer nav a { color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.footer .footer__copy { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 26px; font-size: .84rem; color: var(--muted); }

/* ---------- install banner ---------- */
.install { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; width: min(520px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 18px; padding: 12px 12px 12px 14px; box-shadow: var(--shadow-lg); }
.install[hidden] { display: none; }
.install img { width: 40px; height: 40px; border-radius: 11px; }
.install div { flex: 1; font-size: .9rem; line-height: 1.35; }
.install b { display: block; }
.install small { color: var(--muted); }
.install .btn { padding: 10px 14px; }
.install__close { border: 0; background: transparent; color: var(--muted); font-size: 1.3rem; cursor: pointer; padding: 4px 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.game-layout { grid-template-columns: 1fr; }
	.search input { width: 130px; }
}
@media (max-width: 860px) {
	.hero { grid-template-columns: 1fr; margin-top: 22px; gap: 18px; }
	.puzzle-grid { grid-template-columns: 1fr; gap: 14px; }
	.puzzle-grid--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.main { padding: 0 16px 40px; }
	.header__inner { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
	.burger { display: grid; }
	.header .search { display: none; }
	.nav { order: 10; flex: 1 1 100%; flex-direction: column; display: none; padding: 6px 0 4px; }
	.nav.is-open { display: flex; }
	.header.menu-open .search { display: flex; order: 11; flex: 1 1 100%; }
	.header.menu-open .search input { width: 100%; }
	.nav a { padding: 12px 10px; font-size: 1rem; }
	.hero h1 { font-size: 2.15rem; }
	.lead { font-size: 1rem; margin-top: 12px; }
	.hero__cta { margin-top: 18px; }
	.hero__cta .btn { flex: 1; }
	.progress-card { padding: 18px; }
	.puzzle-grid--compact { grid-template-columns: 1fr; }
	.puzzle-card { padding: 16px; }
	.steps { grid-template-columns: 1fr; gap: 12px; }
	.step { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 18px; }
	.step h3 { margin: 0 0 4px; align-self: center; }
	.step p { grid-column: 2; }
	.game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.prose, .static-page, .auth-card, .search-page { padding: 22px 18px; }
	.form-grid { grid-template-columns: 1fr; }
	.puzzle-frame { margin: 0 -16px; border-radius: 0; box-shadow: none; background: transparent; }
	.puzzle-page__icon { width: 52px; height: 52px; border-radius: 15px; }
	.section { margin: 40px 0; }
}
@media (max-width: 420px) {
	.brand__name { font-size: 1.15rem; }
	.streak-pill { padding: 6px 10px; }
}
.streak-pill svg { width: 15px; height: 15px; flex: none; }
.progress-card { justify-content: space-between; }
.puzzle-card--sun-moon { --accent: #ea580c; }
@media (max-width: 760px) {
	.home-top { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
	.home-top .hero { display: contents; }
	.home-top .hero__text { order: 1; padding: 0; }
	.home-top #puzzles { order: 2; }
	.home-top .progress-card { order: 3; }
	.hero__cta .btn--ghost { display: none; }
	.hero h1 { font-size: 2rem; }
	.eyebrow { margin-bottom: 12px; }
}
