/* Public collection pages (server-rendered). Dice & Pixel palette, light only. */
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("/fonts/fredoka-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("/fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2"); }

:root {
  --navy: #1D2340; --coral: #FF5A5F; --teal: #22B8A7; --amber: #FFB020; --cream: #FFF6E9;
  --line: #ecdcc4; --muted: #59607a; --card: #fff;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--navy);
  font: 16px/1.5 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, .kicker { font-family: "Fredoka", "Nunito", system-ui, sans-serif; font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: .1em 0 .2em; }
h2 { font-size: 1.2rem; margin: 1.4em 0 .4em; }

.top { padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; }
.top-link { font-weight: 700; text-decoration: none; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--navy); min-height: 40px; display: inline-flex; align-items: center; }
.brand img { height: 36px; width: auto; }
main { max-width: 1120px; margin: 0 auto; padding: 16px; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 32px 16px; }

.hero { padding: 16px 0 8px; }
.kicker { color: var(--teal); text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: 0; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; margin: .2em 0 .6em; }
.stats { margin: 0; }
.stats .pile { color: #b3272d; }

/* Flex rows space their items with margins, not `gap`: old WebViews (Chrome < 84) ignore flex gap.
   Each item gets 8px right + bottom; the container's negative right margin cancels the last one so
   rows wrap exactly where gap would. */
.chips { display: flex; flex-wrap: wrap; margin: 12px -8px 12px 0; }
.chips > * { margin: 0 8px 8px 0; }
.chip { text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .9rem; min-height: 36px; display: inline-flex; align-items: center; }
.chip.on { background: var(--navy); color: var(--cream); border-color: var(--navy); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.grid.small { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 6px 18px rgba(29,35,64,.12); transform: translateY(-1px); }
.thumb { aspect-ratio: 1; background: #f6ead7; display: flex; align-items: center; justify-content: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.nophoto { font-size: 2.2rem; opacity: .5; }
.nophoto.big { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; font-size: 4rem; background: #f6ead7; border-radius: 12px; }
/* aspect-ratio is Chrome 88+: old WebViews (Android 11's WebView 83) get padding-based boxes instead. */
@supports not (aspect-ratio: 1 / 1) {
  .thumb { display: block; position: relative; height: 0; padding-top: 100%; }
  .thumb > * { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
  .nophoto.big { display: block; height: 0; padding: 37.5% 0; line-height: 0; text-align: center; }
}
.info { padding: 8px 10px 10px; display: flex; flex-direction: column; }
.info > * + * { margin-top: 4px; }
.info strong { font-size: .95rem; line-height: 1.25; }
.info small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { color: var(--muted); padding: 32px 0; }

.badge { display: inline-block; width: fit-content; border-radius: 999px; border: 1px solid; padding: 1px 9px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.st-wanted { background: #fff3d6; border-color: #f2c25a; color: var(--navy); }
.st-owned { background: #ffe8e9; border-color: #ff9ea1; color: #a3262b; }
.st-progress { background: #def5f2; border-color: #7fd6cc; color: #0f6b60; }
.st-done { background: var(--teal); border-color: var(--teal); color: #fff; }
.st-gone { background: #eee; border-color: #ddd; color: #666; }

.crumbs { margin: 0 0 8px; } .crumbs a { text-decoration: none; color: var(--muted); }
.item { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gallery figcaption { font-size: .8rem; color: var(--muted); padding: 6px 10px; }
.status { display: flex; align-items: center; flex-wrap: wrap; color: var(--muted); margin: 0 -8px 4px 0; }
.status > * { margin: 0 8px 8px 0; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 0; }
dt { color: var(--muted); } dd { margin: 0; }
.links { display: flex; flex-wrap: wrap; margin: 16px -8px -8px 0; }
.links > * { margin: 0 8px 8px 0; }
.btn { text-decoration: none; border-radius: 10px; padding: 10px 14px; font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; background: var(--navy); color: var(--cream); }
.btn-tiktok { background: #111; color: #fff; } .btn-youtube { background: #c4302b; color: #fff; } .btn-post { background: var(--coral); color: #fff; }
.plain { padding-left: 18px; margin: 0; }
.timeline { list-style: none; padding: 0 0 0 12px; margin: 0; border-left: 3px solid rgba(34,184,167,.4); }
.timeline li { padding: 2px 0; } .timeline time { color: var(--muted); margin-right: 6px; }
.credit { font-size: .8rem; color: var(--muted); margin-top: 20px; }

body.embed { background: transparent; }
body.embed main { padding: 8px; max-width: none; }
.embed-head { display: flex; align-items: baseline; flex-wrap: wrap; margin: 0 -8px 0 0; }
.embed-head > * { margin: 0 8px 8px 0; }
.embed-head a { text-decoration: none; font-family: "Fredoka", sans-serif; font-size: 1.1rem; }
.embed-head span { color: var(--muted); font-size: .85rem; }

@media (max-width: 760px) {
  .item { grid-template-columns: 1fr; gap: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Landing (/): flex gap avoided on purpose (old WebViews), see the note above. */
.landing-hero { text-align: center; padding: 32px 0 16px; max-width: 720px; margin: 0 auto; }
.landing-icon { margin: 0 auto 8px; border-radius: 16px; }
.landing-hero .lead { margin-left: auto; margin-right: auto; }
.landing-cta { justify-content: center; }
.btn-light { background: #fff; color: var(--navy); border: 1px solid var(--navy); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; margin: 24px 0; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.feature h2 { margin: .4em 0 .2em; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon { font-size: 1.8rem; }
.steps, .beta { max-width: 720px; margin: 24px auto; }
.steps ol { padding-left: 20px; } .steps li { margin: 6px 0; }
.beta { background: #fff3d6; border: 1px solid #f2c25a; border-radius: 12px; padding: 4px 16px 12px; }
