/* Culture: the toll, the guestbook, chains, Wrapped. Same tokens as app.css. */

.cul-ic { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--chip); color: var(--ink); }
.cul-ic .i { width: 18px; height: 18px; }
.cul-link { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.cul-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 10px; background: var(--ink); color: var(--on-ink); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip[aria-current="page"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }

/* ---- the toll: a quote card lit by the city */
.cul-toll { position: relative; overflow: hidden; isolation: isolate; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.cul-toll > :not(.aurora) { position: relative; z-index: 1; }
.cul-toll .aurora { opacity: .4; }
.cul-toll-t { margin: 2px 0 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); text-wrap: balance; }
.cul-toll.compact { padding: 16px 18px; }
.cul-toll.compact .cul-toll-t { font-size: 18px; }
.cul-nudge { transition: transform var(--dur-quick) var(--ease), box-shadow var(--dur-med) var(--ease); }
@media (hover: hover) { .cul-nudge:hover { box-shadow: var(--shadow-lift); } }
.cul-nudge:active { transform: scale(.98); }

/* ---- tolls paid: a strip of photo cards */
.cul-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 8px; scroll-snap-type: x proximity; scroll-padding: 0 var(--gutter); overscroll-behavior-x: contain; }
.cul-strip::-webkit-scrollbar { display: none; }
.cul-strip.one { grid-auto-flow: row; grid-template-columns: minmax(0, 320px); margin: 0; padding: 0; overflow: visible; }
.cul-moment { margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 8px 8px 12px; border-radius: var(--r-card); background: var(--card); box-shadow: 0 0 0 1px var(--border), var(--shadow-card); min-width: 0; }
.cul-moment figcaption { padding: 0 6px; }
.cul-moment p { margin: 0; }
.cul-mph { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-well); overflow: hidden; background: linear-gradient(160deg, var(--chip), var(--well)); }
.cul-mph.none { aspect-ratio: 4 / 2; }
.cul-mph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--dur-med) var(--ease); }
.cul-mph img.loaded { opacity: 1; }

/* ---- the guestbook */
.cul-entries { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.cul-entry { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; background: var(--well); min-width: 0; }
.cul-note { margin: 0; font-size: 16px; line-height: 1.45; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.cul-spot { margin: 0; display: flex; gap: 6px; align-items: flex-start; color: var(--ink-2); }
.cul-spot .i { margin-top: 3px; color: var(--muted); flex: none; }
.cul-entry footer { min-width: 0; }

/* ---- paying the toll */
.cul-pay > :not(.aurora) { position: relative; z-index: 1; }
.cul-pay .aurora { opacity: .4; }
.cul-pick { position: relative; flex: none; width: 112px; height: 140px; border-radius: var(--r-well); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); background: var(--chip); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; transition: transform var(--dur-quick) var(--ease), background-color var(--dur-quick) var(--ease); }
@media (hover: hover) { .cul-pick:hover { background: var(--chip-hover); } }
.cul-pick:active { transform: scale(.97); }
.cul-pick.has { background: var(--well); }
.cul-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cul-up { position: absolute; inset: 0; background: color-mix(in srgb, var(--page) 55%, transparent); }
.cul-up::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; border: 2px solid var(--ink); border-right-color: transparent; animation: cul-spin .8s linear infinite; }
@keyframes cul-spin { to { transform: rotate(360deg); } }

/* ---- share card preview (9:16) */
.cul-card-prev { position: relative; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--well); box-shadow: 0 0 0 1px var(--border), var(--shadow-lift); }
.cul-card-prev img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--dur-med) var(--ease); }
.cul-card-prev img.loaded { opacity: 1; }
.sheet .cul-card-prev { max-width: min(280px, 46vh * 9 / 16); }

/* ---- chains */
.cul-globe { height: min(56vh, 560px); min-height: 340px; }
@media (max-width: 600px) { .cul-globe { min-height: 300px; height: 52vh; border-radius: 24px; } }
.cul-pio .aurora { opacity: .7; }
.cul-timeline { list-style: none; margin: 0; padding: 0 0 0 6px; display: flex; flex-direction: column; position: relative; }
.cul-timeline::before { content: ""; position: absolute; left: 10px; top: 22px; bottom: 22px; width: 1.5px; background: linear-gradient(var(--line), var(--dots), var(--line)); }
.cul-link-row { display: flex; align-items: center; gap: 14px; padding: 12px 8px 12px 0; min-width: 0; }
.cul-link-row .t { font-size: 15px; font-weight: 500; letter-spacing: -.01em; }
.cul-link-row .s { font-size: 13px; color: var(--muted); }
.cul-dot { position: relative; z-index: 1; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--page); }
.cul-anon { background: linear-gradient(140deg, #8B5CF6, #D946EF); }

/* ---- Wrapped */
.cul-wrapped { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .cul-wrapped { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; } .cul-wcard { position: sticky; top: 96px; padding-top: 32px; } }
.cul-face { padding: 6px 12px 6px 6px; border-radius: var(--r-pill); background: var(--chip); transition: background-color var(--dur-quick) var(--ease), transform var(--dur-quick) var(--ease); }
@media (hover: hover) { .cul-face:hover { background: var(--chip-hover); } }
.cul-face:active { transform: scale(.97); }
.crumbs .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }

@media (prefers-reduced-motion: reduce) { .cul-up::after { animation: none; } }
