/* Shared styles for the text pages (credits, privacy, 404) */
.page { max-width: 980px; margin: 0 auto; padding: clamp(40px, 8vw, 90px) var(--gutter) 0; }
.page__title { font: 800 clamp(2.4rem, 7vw, 4.6rem)/1 var(--f-display); letter-spacing: -.05em; margin: 16px 0 22px; text-transform: lowercase; }
.page__title em { color: var(--lime); font-size: 1.1em; }
.page__lead { max-width: 62ch; color: var(--muted); font-size: 1.08rem; }
.page a { color: var(--lime); text-underline-offset: 3px; }
.page__section { margin-top: 56px; }
.page__section h2 { font: 800 1.5rem/1.1 var(--f-display); letter-spacing: -.04em; margin-bottom: 18px; text-transform: lowercase; }
.page__section h2 .count { color: var(--dim); font-size: .7em; }
.page__section p, .page__section li { color: var(--muted); max-width: 70ch; }
.page__section p + p { margin-top: 12px; }
.page__section ul.bullets { display: grid; gap: 10px; }
.page__section ul.bullets li { position: relative; padding-left: 22px; }
.page__section ul.bullets li::before { content: "✦"; position: absolute; left: 0; color: var(--lime); }
.page__section b { color: var(--ink); }
.page__note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 138, 42, .1); border: 1px solid rgba(255, 138, 42, .3); color: #ffc38f; font-size: .92rem; }

.credit-list--plain { display: grid; gap: 10px; }
.credit-list--plain li { padding: 14px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.credit-list--plain b { display: inline-block; min-width: 5em; color: var(--ink); }

.search input { width: min(100%, 360px); margin-bottom: 18px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: 500 .95rem var(--f-body); }
.search input:focus { outline: 2px solid var(--lime); outline-offset: 2px; }
.credit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.credit { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.credit img { width: 64px; height: 80px; border-radius: 10px; object-fit: cover; background: #1a1a26; }
.credit div { display: grid; gap: 3px; min-width: 0; font-size: .82rem; color: var(--muted); }
.credit b { font: 700 .98rem/1.2 var(--f-display); letter-spacing: -.03em; color: var(--ink); }
.credit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.credit-loading { color: var(--muted); }

.lost { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; padding: 40px var(--gutter); }
.lost__code { font: 900 clamp(6rem, 30vw, 14rem)/.8 var(--f-display); letter-spacing: -.08em; background: linear-gradient(90deg, var(--lime), var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lost p { color: var(--muted); }

/* link-buttons on text pages */
.btn { text-decoration: none; }

/* owner stats page (stats.html) */
.stats__login { display: grid; gap: 10px; max-width: 420px; margin-top: 24px; }
.stats__login label { font: 600 .8rem/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.stats__login input { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font: 500 1rem var(--f-body); }
.stats__msg { color: #ff8a8a; min-height: 1.2em; font-size: .9rem; }
.stats__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 26px 0 18px; }
.stats__tile { display: grid; gap: 6px; padding: 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.stats__tile span { font: 600 .78rem/1 var(--f-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stats__tile b { font: 900 2.4rem/1 var(--f-display); letter-spacing: -.05em; color: var(--lime); }
.stats__tile small { color: var(--dim); font-size: .8rem; }
.stats__range { display: inline-flex; gap: 6px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.stats__range button { padding: 8px 14px; border-radius: 999px; border: 0; background: none; color: var(--muted); font: 600 .85rem var(--f-body); cursor: pointer; }
.stats__range button[aria-pressed="true"] { background: var(--lime); color: #000; }
.stats__h { margin: 28px 0 12px; font: 700 1.1rem/1 var(--f-display); letter-spacing: -.03em; }
.stats__chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding: 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.stats__chart i { flex: 1; min-width: 2px; height: max(2px, var(--h)); border-radius: 4px 4px 0 0; background: linear-gradient(to top, var(--pink), var(--lime)); }
.stats__tablewrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); }
.stats__table { width: 100%; border-collapse: collapse; font: 500 .88rem/1.2 var(--f-mono); }
.stats__table th, .stats__table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stats__table th:first-child, .stats__table td:first-child { text-align: left; }
.stats__table th { color: var(--muted); font-weight: 600; background: var(--panel); }
.stats__foot { margin-top: 14px; color: var(--dim); font-size: .8rem; }
.stats__link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }

/* legal pages (terms.html, privacy.html) */
.legal p, .legal li { line-height: 1.65; }
.legal .page__section p + p { margin-top: 10px; }
.legal__tldr { margin: 22px 0 8px; padding: 18px 20px; border-radius: 18px; background: rgba(215, 255, 58, .07); border: 1px solid rgba(215, 255, 58, .3); }
.legal__tldr b { color: var(--lime); }
/* placeholders the owner still has to fill in: impossible to miss */
.fill-me { padding: 1px 6px; border-radius: 6px; background: #ffe27a; color: #000; font-weight: 700; }
