/* The listing page (/l/) and the not-found page: the former inline styles of l/index.html, plus the
   read-only listing, the download banner and the sheet. */
:root { color-scheme: light; --paper: #fbfaf6; --ink: #251e37; --muted: #625c6e; --purple: #4a44c6; --plum: #330e42; --yellow: #ffda66; --line: #dedbe5; --card: #ffffff; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--purple); text-underline-offset: 4px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--purple); outline-offset: 6px; border-radius: 5px; }
.skip { position: absolute; top: -100px; left: 24px; background: white; padding: 12px; z-index: 10; }
.skip:focus { top: 12px; }
header, main, footer { max-width: 1120px; margin: auto; padding-left: 32px; padding-right: 32px; }
header { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; gap: 20px; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; font-size: 30px; font-weight: 800; letter-spacing: -1.4px; }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.support { font-size: 14px; text-decoration: none; color: var(--muted); }
.hero { display: grid; grid-template-columns: 1.18fr 1fr; align-items: center; gap: 72px; padding-top: 36px; padding-bottom: 64px; }
.eyebrow { margin: 0 0 18px; color: var(--purple); font-size: 11px; font-weight: 750; letter-spacing: 2px; }
h1 { font-size: clamp(44px, 5.4vw, 66px); line-height: 1.05; letter-spacing: -3px; margin: 0 0 26px; font-weight: 750; }
h1 span { color: var(--purple); }
.lead { margin: 0 0 28px; font-size: 18px; color: var(--muted); max-width: 440px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 16px; padding: 13px 20px; color: white; background: var(--purple); text-decoration: none; border-radius: 13px; font-size: 15px; font-weight: 650; min-height: 52px; border: 0; cursor: pointer; font-family: inherit; }
.store:hover { background: #3933ad; }
.store svg { width: 22px; height: 24px; flex-shrink: 0; }
[hidden] { display: none !important; }
.existing { margin-top: 24px; padding-left: 16px; border-left: 2px solid #d8d3ea; font-size: 13px; color: var(--muted); max-width: 410px; }
.existing strong { color: var(--ink); display: block; font-size: 14px; margin-bottom: 3px; }
.art { position: relative; padding: 36px 24px 30px; min-height: 440px; border-radius: 130px 130px 28px 28px; background: var(--plum); color: var(--yellow); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 10px 10px 0 #ece8e0; isolation: isolate; }
.art::before { content: ""; position: absolute; inset: 24px; border: 1px solid #ffd96626; border-radius: 110px 110px 15px 15px; pointer-events: none; }
.mascot { width: 180px; height: 180px; border-radius: 38px; transform: rotate(-8deg); box-shadow: 0 12px 30px #12051e40; }
.art-title { margin: 24px 0 18px; font-size: 45px; line-height: 1.05; letter-spacing: -1.8px; font-weight: 750; }
.art-label { margin: 0; font-size: 10px; letter-spacing: 2px; }
.token { position: absolute; width: 43px; height: 43px; border-radius: 50%; border: 7px solid #ffda66; background: #eabb3d; right: 27px; top: 88px; transform: rotate(15deg); box-shadow: 0 4px 0 #a66e1d; }
.die { position: absolute; left: 21px; bottom: 112px; width: 46px; height: 46px; border-radius: 11px; background: #efecff; color: var(--purple); transform: rotate(-15deg); display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 11px; box-shadow: 0 5px 0 #b3a9d5; }
.die i { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; border-top: 1px solid var(--line); padding: 28px 0 36px; }
.step { display: grid; grid-template-columns: 32px 1fr; gap: 13px; }
.number { display: grid; place-items: center; border-radius: 50%; background: #ece9fa; color: var(--purple); font-size: 12px; font-weight: 750; width: 30px; height: 30px; margin-top: 2px; }
.step h2 { font-size: 16px; margin: 0 0 4px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }
footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; padding-top: 23px; padding-bottom: 26px; font-size: 12px; color: var(--muted); }
footer p { margin: 0; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }

/* The listing */
.listing { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; padding-top: 12px; padding-bottom: 48px; }
.photos { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0; padding: 0 0 8px; list-style: none; scrollbar-width: none; }
.photos::-webkit-scrollbar { display: none; }
.photos li { flex: 0 0 100%; scroll-snap-align: start; }
.photos img, .photos .placeholder { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 22px; background: #efecff; }
.photos .placeholder { display: grid; place-items: center; color: var(--purple); }
.photos .placeholder img { width: 120px; height: 120px; border-radius: 26px; aspect-ratio: 1; }
.listing h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -1.4px; margin: 0 0 8px; }
.price { font-size: 30px; font-weight: 750; margin: 0 0 20px; letter-spacing: -1px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 22px; font-size: 15px; }
.facts dt { color: var(--muted); margin: 0; }
.facts dd { margin: 0; }
.description { white-space: pre-line; margin: 0 0 26px; }
.seller { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); font: inherit; color: inherit; cursor: pointer; }
.seller img, .seller .avatar-fallback { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #ece9fa; flex-shrink: 0; }
.seller .name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.seller .rating { color: var(--muted); font-size: 14px; }
.seal { width: 16px; height: 16px; flex-shrink: 0; }
.places { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; }
.places li { padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 15px; }
.places li span { color: var(--muted); }
.places-title, .about-title { margin: 22px 0 8px; font-size: 12px; letter-spacing: 1.6px; color: var(--purple); font-weight: 750; text-transform: uppercase; }
.actions { display: flex; gap: 12px; margin-top: 24px; }
.actions .store { flex: 1; justify-content: center; }
.heart { width: 52px; height: 52px; border-radius: 13px; border: 1px solid var(--line); background: var(--card); font-size: 22px; cursor: pointer; color: var(--purple); }

/* The link to the catalog (/buscar/) */
.more { margin: 18px 0 0; font-size: 15px; font-weight: 650; }

/* Not available */
.unavailable { text-align: center; padding: 48px 0 56px; }
.unavailable h1 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -1.6px; }
.unavailable .stores { justify-content: center; }

/* The download banner */
.banner { position: sticky; bottom: 0; z-index: 5; background: var(--plum); color: white; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.banner .inner { max-width: 1120px; margin: auto; display: flex; align-items: center; gap: 14px; }
.banner img { width: 40px; height: 40px; border-radius: 11px; }
.banner .text { flex: 1; font-size: 14px; line-height: 1.35; }
.banner .text strong { display: block; font-size: 15px; }
.banner .store { background: var(--yellow); color: var(--plum); min-height: 44px; padding: 9px 16px; }
.banner .close { background: transparent; border: 0; color: #ffffffb3; font-size: 22px; line-height: 1; cursor: pointer; padding: 6px; }

/* The sheet */
.sheet { border: 0; border-radius: 24px 24px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); width: 100%; max-width: 100%; margin: auto 0 0; background: var(--paper); color: var(--ink); }
.sheet::backdrop { background: #12051e80; }
.sheet h2 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.6px; }
.sheet p { margin: 0 0 18px; color: var(--muted); }
.sheet .stores { flex-direction: column; }
.sheet .store { justify-content: center; }
.sheet .secondary, .sheet .secondary:hover { background: transparent; color: var(--purple); border: 1px solid var(--line); }
.sheet .later { margin-top: 10px; background: transparent; border: 0; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; width: 100%; padding: 10px; }

@media (min-width: 761px) {
  .sheet { max-width: 440px; margin: auto; border-radius: 24px; }
}
@media (max-width: 760px) {
  header, main, footer { padding-left: 16px; padding-right: 16px; }
  header { padding-top: 20px; padding-bottom: 20px; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 20px; padding-bottom: 38px; }
  h1 { font-size: clamp(42px, 10vw, 62px); letter-spacing: -2px; margin-bottom: 22px; }
  .listing { grid-template-columns: 1fr; gap: 22px; }
  .listing h1 { font-size: clamp(26px, 7vw, 34px); }
  .lead { font-size: 17px; max-width: 500px; }
  .art { min-height: 300px; max-width: 410px; width: calc(100% - 8px); margin: 0 auto; border-radius: 105px 105px 24px 24px; padding: 26px; box-shadow: 7px 7px 0 #ece8e0; }
  .art::before { inset: 17px; border-radius: 90px 90px 12px 12px; }
  .mascot { width: 120px; height: 120px; border-radius: 26px; }
  .art-title { font-size: 34px; margin: 18px 0 16px; }
  .token { width: 34px; height: 34px; border-width: 6px; top: 68px; }
  .die { left: 18px; bottom: 72px; }
  .steps { grid-template-columns: 1fr; gap: 22px; padding-top: 26px; }
  footer { flex-direction: column; gap: 13px; }
  .banner .text { font-size: 13px; }
}
@media (prefers-reduced-motion: no-preference) { .store { transition: background .15s; } }
