/* /all page only: the original card grid and side-by-side preview, loaded after style.css. */
/* ---- hero: one line + the bundle offer ---- */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 8px 0 4px; flex-wrap: wrap; }
.hero .script { font-size: 21px; display: block; margin-bottom: -6px; }
.hero h1 { font-family: var(--serif); font-variation-settings: 'opsz' 144; font-weight: 900; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.hero h1 .hl { background: linear-gradient(transparent 55%, var(--hl) 55%); }
.bundle { position: relative; display: flex; align-items: center; gap: 14px; background: var(--ink); color: var(--paper); border-radius: 16px; padding: 10px 10px 10px 18px; box-shadow: 4px 4px 0 var(--orange); }
.bundle .tag { position: absolute; top: -11px; left: 14px; background: var(--orange); color: #fff; font-family: var(--hand); font-weight: 700; font-size: 17px; line-height: 1; padding: 3px 9px 4px; border-radius: 999px; transform: rotate(-3deg); }
.bundle .txt { font-size: 15px; line-height: 1.2; }
.bundle .txt b { font-family: var(--serif); font-weight: 900; font-size: 19px; }
.bundle .txt s { color: rgba(251,245,234,.55); margin-left: 4px; }
.bundle .txt small { display: block; font-size: 12px; color: rgba(251,245,234,.75); margin-top: 2px; }

/* ---- card grid: 4 big cards ---- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 22px; padding: 16px 0 10px; }
@media (max-width: 840px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; } }

/* ---- the other six, compact ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0 4px; }
.chips .lbl { font-family: var(--hand); font-size: 19px; color: var(--muted); margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 10px 4px 4px; font-size: 13px; color: var(--ink); box-shadow: 2px 2px 0 var(--ink); transition: transform .12s ease; }
.chip:hover { transform: translateY(-1px); }
.chip .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--tone); display: grid; place-items: center; }
.chip .dot svg { width: 16px; height: 16px; color: var(--tone-ink); }
.chip .t b { font-family: var(--serif); font-weight: 900; }
.chip .lk { width: 13px; height: 13px; color: var(--muted); display: inline-flex; }
.chip .lk svg { width: 13px; height: 13px; }

.card {
  position: relative; display: flex; flex-direction: column; gap: 0;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: 16px;
  padding: 0; overflow: hidden; text-align: left; color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(var(--tilt, 0deg));
  transition: transform .15s ease, box-shadow .15s ease, filter .2s ease, opacity .2s ease;
  aspect-ratio: 4 / 4.6;
}
.card:nth-child(3n+1) { --tilt: -.6deg; }
.card:nth-child(3n+2) { --tilt: .5deg; }
.card:nth-child(3n) { --tilt: -.3deg; }
.card:hover, .card:focus-visible { transform: rotate(0) translate(-1px, -3px); box-shadow: 5px 6px 0 var(--ink); outline: none; }
.card.locked { filter: grayscale(.85) saturate(.6); opacity: .62; }
.card.locked:hover, .card.locked:focus-visible { filter: none; opacity: 1; }
.card.featured { transform: rotate(0) scale(1.03); box-shadow: 5px 6px 0 var(--orange); border-color: var(--ink); z-index: 1; }
.card.featured:hover { transform: rotate(0) scale(1.03) translateY(-2px); }
.card .tape { position: absolute; top: -8px; left: 50%; width: 66px; height: 16px; transform: translateX(-50%) rotate(-3deg); background: var(--tone); opacity: .95; border: 1px solid rgba(31,27,22,.18); border-radius: 2px; z-index: 2; }
.card:nth-child(even) .tape { transform: translateX(-50%) rotate(2.5deg); }
.card .num { position: absolute; top: 8px; left: 11px; font-family: var(--hand); font-weight: 700; font-size: 16px; color: var(--orange); z-index: 2; }
.card .lock { position: absolute; top: 8px; right: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; z-index: 2; }
.card .lock svg { width: 13px; height: 13px; }
.card .poster { display: block; width: 100%; flex: 1; object-fit: cover; }
.poster-html { flex: 1; display: flex; flex-direction: column; padding: 24px 12px 8px; text-align: center; background: linear-gradient(180deg, var(--card) 0%, var(--card) 55%, var(--tone) 55.1%, var(--tone) 100%); position: relative; }
.poster-html .eyebrow { font-size: 9.5px; letter-spacing: .16em; white-space: nowrap; text-transform: uppercase; color: var(--muted); }
.poster-html .eyebrow b { color: var(--ink); font-weight: 700; }
.poster-html .count { font-family: var(--serif); font-weight: 900; font-size: 46px; line-height: 1; letter-spacing: -0.03em; margin-top: 6px; }
.poster-html .headline { font-family: var(--serif); font-weight: 900; font-size: 12.5px; line-height: 1.2; text-transform: uppercase; letter-spacing: .01em; margin: 4px 0 0; min-height: 2.4em; }
.poster-html .headline .hl { background: linear-gradient(transparent 50%, var(--hl) 50%); padding: 0 2px; }
.poster-html .art { margin-top: auto; display: block; height: 44px; }
.poster-html .art svg { width: 42px; height: 42px; color: var(--tone-ink); }
.poster-html .faces { display: flex; justify-content: center; margin-top: 4px; }
.poster-html .face { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: #fff; overflow: hidden; margin-left: -8px; box-shadow: 0 1px 3px rgba(0,0,0,.2); display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.poster-html .face:first-child { margin-left: 0; }
.poster-html .face img { width: 100%; height: 100%; object-fit: cover; }
.poster-html .face img.logo { width: 60%; height: 60%; object-fit: contain; }
.card .cta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px 10px; border-top: 1.5px solid var(--ink); background: var(--card); }
.card .cta .price { font-family: var(--serif); font-weight: 900; font-size: 22px; }
.card .cta .btn { padding: 8px 12px; font-size: 12px; pointer-events: none; }
.card .cta .peek { width: 100%; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.card.featured .cta { background: var(--ink); color: var(--paper); border-top-color: var(--ink); }

/* ---- preview dialog ---- */
dialog.preview { border: 0; padding: 0; background: transparent; max-width: min(1040px, 96vw); width: 100%; margin: auto; }
dialog.preview::backdrop { background: rgba(31,27,22,.55); backdrop-filter: blur(3px); }
.sheet { position: relative; display: grid; grid-template-columns: 340px 1fr; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; max-height: 92vh; }
@media (max-width: 820px) { .sheet { grid-template-columns: 1fr; overflow-y: auto; } }
.sheet .close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center; }
.sheet .left { padding: 24px 22px 20px; background: var(--tone); border-right: 1.5px solid var(--ink); display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
@media (max-width: 820px) { .sheet .left { border-right: 0; border-bottom: 1.5px solid var(--ink); } }
.sheet .left .script { font-size: 22px; line-height: 1; }
.sheet .left h2 { font-family: var(--serif); font-weight: 900; font-size: 27px; line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
.sheet .left .bigprice { font-family: var(--serif); font-weight: 900; font-size: 44px; line-height: 1; margin-top: 4px; }
.sheet .left .bigprice small { font-family: var(--sans); font-weight: 500; font-size: 11.5px; color: var(--ink-2); display: block; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.sheet .left .btn.big { width: 100%; }
.sheet .left .fine { font-size: 12px; color: var(--ink-2); margin: 0; line-height: 1.4; }
.sheet .left .fine a { color: var(--ink); font-weight: 600; }
.checks { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 7px; }
.checks li { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.35; align-items: flex-start; font-weight: 500; }
.checks svg { width: 16px; height: 16px; color: var(--orange); flex: none; margin-top: 2px; }
.free { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; border: 1.5px dashed var(--ink); border-radius: 12px; padding: 9px 10px; background: rgba(255,255,255,.45); margin-top: 4px; }
.free label { font-family: var(--hand); font-size: 18px; color: var(--ink); grid-column: 1 / -1; line-height: 1.1; }
.free input { font: inherit; font-size: 13.5px; padding: 8px 10px; border: 1.5px solid var(--rule); border-radius: 10px; background: #fff; min-width: 0; }
.free .hp { display: none; }
.free .ok { grid-column: 1 / -1; font-family: var(--hand); font-size: 19px; color: var(--ink); }
.sheet .right { padding: 22px 24px 18px; overflow-y: auto; }
.sheet .right .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; padding-right: 44px; }
.sheet .right h3 { font-family: var(--serif); font-weight: 900; font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.sheet .right h3 .script { font-size: 21px; margin-left: 6px; }
.sheet .right .head small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.picks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
@media (max-width: 600px) { .picks { grid-template-columns: 1fr; } }
.pick { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 7px 10px; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; min-width: 0; }
.pick .avatar { width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--rule); display: grid; place-items: center; overflow: hidden; }
.pick .avatar img { width: 100%; height: 100%; object-fit: cover; }
.pick .avatar img.logo { width: 62%; height: 62%; object-fit: contain; }
.pick .avatar span { font-family: var(--serif); font-weight: 900; font-size: 14px; color: var(--ink); }
.pick .who { min-width: 0; }
.pick .who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .who span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick .who code { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--ink-2); }
.more { font-family: var(--hand); font-size: 19px; color: var(--muted); margin: 10px 0 8px; }
.quote { margin: 0; display: grid; grid-template-columns: 40px 1fr; gap: 10px 12px; align-items: start; padding: 10px 12px; border-top: 1.5px solid var(--rule); }
.quote img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: 14.5px; line-height: 1.35; font-weight: 900; letter-spacing: -0.01em; }
.quote figcaption { grid-column: 2; font-size: 12px; color: var(--muted); }
.quote figcaption b { color: var(--ink); }
.quote figcaption em { font-style: normal; color: var(--orange); font-weight: 600; }

/* ---- /all: five per row, every card open ---- */
.grid.all { grid-template-columns: repeat(5, 1fr); gap: 14px 16px; }
@media (max-width: 1000px) { .grid.all { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .grid.all { grid-template-columns: repeat(2, 1fr); } }
.grid.all .card { aspect-ratio: 4 / 5; }
.grid.all .poster-html .count { font-size: 38px; }
.card.open .cta .btn { padding: 7px 10px; font-size: 11.5px; }
.card .owned { display: none; position: absolute; top: 8px; right: 9px; z-index: 2; background: var(--orange); color: #fff; font-family: var(--hand); font-weight: 700; font-size: 16px; padding: 0 9px 2px; border-radius: 999px; transform: rotate(4deg); }
.card.is-owned .owned { display: inline-block; }
.card.is-owned { opacity: .7; }
@media (max-width: 840px) { .card { aspect-ratio: auto; } .poster-html .count { font-size: 38px; } .poster-html .headline { font-size: 11px; } .poster-html .art { margin-top: 8px; } .card .cta .btn .more { display: none; } .card .cta .btn { white-space: nowrap; } }
