/* /f/<n> (js/pages/drop.js): Apple's product page. The 100 artworks on a grey plate on the left, sticky on a
   desktop, and the name, price and mint on the right; on a phone the name, then the plate, then the mint. Below,
   the tokens minted so far and the details. No color but the art's. */
.drop-page { padding-top: var(--page-top); }
.drop-page .dp-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); grid-template-rows: auto 1fr; grid-template-areas: "art head" "art buy"; column-gap: 64px; align-items: start; }
.drop-page .dp-head { grid-area: head; min-width: 0; padding-top: 12px; }
.drop-page .dp-head .eyebrow { margin-bottom: 10px; }
.drop-page .dp-head .eyebrow a, .drop-page .dp-by a, .drop-page .dp-about a { color: var(--ink); }
.drop-page .dp-head h1 { margin: 0; overflow-wrap: anywhere; }
.drop-page .dp-by { margin: 12px 0 0; font-size: var(--t-m); color: var(--muted); }
/* The holder's line: a long website or ENS name breaks rather than push the page sideways. */
.drop-page .dp-who { overflow-wrap: anywhere; }
.drop-page .dp-who:empty { display: none; }
.drop-page .dp-about { margin: 12px 0 0; font-size: var(--t-m); color: var(--muted); overflow-wrap: anywhere; }
.drop-page .dp-art { grid-area: art; min-width: 0; position: sticky; top: 76px; }
.drop-page .dp-buy { grid-area: buy; min-width: 0; display: flex; flex-direction: column; }

/* The plate: 100 white tiles on grey, as on the setup page. While a drop is part minted, the faded ones are not
   minted yet (js/pages/drop.js update). */
.drop-page .dp-stage { display: grid; justify-items: center; }
.drop-page .dp-frame { position: relative; width: min(100%, calc(100svh - 150px)); min-width: min(100%, 420px); aspect-ratio: 1; background: var(--tint); border-radius: var(--radius); padding: 14px; }
.drop-page .dp-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; height: 100%; transition: opacity .3s; }
.drop-page .dp-tile { aspect-ratio: 1; padding: 0; display: grid; place-items: center; background: #fff; border-radius: 6px; overflow: hidden; cursor: zoom-in; transition: transform .25s cubic-bezier(.32, .72, 0, 1), box-shadow .25s, opacity .4s; }
.drop-page .dp-tile:hover { background: #fff; }
.drop-page .dp-tile canvas.art, .drop-page .dp-zoom canvas.art { width: 100%; }
.drop-page .dp-tile.dp-faded { opacity: .3; }
@media (hover: hover) {
  .drop-page .dp-tile:hover { transform: scale(1.08); position: relative; z-index: 1; box-shadow: 0 6px 18px rgba(0, 0, 0, .1); }
  .drop-page .dp-tile.dp-faded:hover { opacity: .6; }
}
/* One artwork grown out of its tile to fill the plate (the FLIP in js/pages/drop.js). */
.drop-page .dp-zoom { position: absolute; inset: 14px; display: grid; place-items: center; background: #fff; border-radius: 16px; overflow: hidden; transform-origin: 0 0; cursor: zoom-out; touch-action: pan-y; }
.drop-page .dp-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(29, 29, 31, .06); cursor: pointer; }
.drop-page .dp-close:hover { background: rgba(29, 29, 31, .12); }
.drop-page .dp-close svg { width: 12px; height: 12px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.drop-page .dp-cap { margin: 14px 0 0; min-height: 1.47em; font-size: 15px; color: var(--muted); text-align: center; }
.drop-page .dp-cap a { color: var(--ink); font-weight: 500; text-decoration: none; }
.drop-page .dp-cap a:hover { text-decoration: underline; }
.drop-page.dp-founder .dp-cap { display: none; }

/* The price, how many are minted, and what a buyer can do now. */
.drop-page .dp-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 32px 0 0; }
.drop-page .dp-price b { font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.drop-page .dp-price span { font-size: 17px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.drop-page .dp-price span:first-child { font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--ink); } /* ETH alone, with no dollar rate */
.drop-page .dp-count { margin-top: 24px; }
.drop-page .dp-bar { display: block; height: 4px; border-radius: 2px; background: var(--tint-2); overflow: hidden; }
.drop-page .dp-bar i { display: block; height: 100%; border-radius: 2px; background: var(--ink); transition: width .8s ease; }
.drop-page .dp-count p { margin: 8px 0 0; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.drop-page .dp-act { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
.drop-page .dp-act:empty { display: none; }
.drop-page .dp-row { display: flex; align-items: center; gap: 12px; }
.drop-page .dp-mint { min-width: 0; text-align: center; }
.drop-page .dp-row .dp-mint { flex: 1; }
.drop-page .dp-note { margin: 0; font-size: var(--t-s); color: var(--muted); }
/* What the mint costs with the network fee: bold dollars, then the ETH, quiet. */
.drop-page .dp-total { margin: -6px 0 0; font-size: var(--t-s); color: var(--muted); font-variant-numeric: tabular-nums; }
.drop-page .dp-total:empty { display: none; }
.drop-page .dp-total b { color: var(--ink); font-weight: 600; }
.drop-page .dp-total span { white-space: nowrap; }
.drop-page .dp-big { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.drop-page .dp-tick { font-variant-numeric: tabular-nums; }
.drop-page .dp-when { margin: -6px 0 0; font-size: 15px; color: var(--muted); }
/* Buttons under the buy box: a main one across the full width, the others side by side under it. */
.drop-page .dp-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.drop-page .dp-btns:empty { display: none; }
.drop-page .dp-btns .dp-mint { flex: 1 1 100%; }
.drop-page .dp-share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.drop-page .dp-share svg { flex: none; width: 18px; height: 18px; margin-top: -3px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drop-page .dp-btns .dp-share.dp-mint svg { width: 20px; height: 20px; }
.drop-page.dp-founder .dp-buy { margin-top: 36px; gap: 0; }
.drop-page.dp-founder .dp-btns { margin-top: 20px; }
/* Ethereum didn't answer: why, and Try again (the page also tries again by itself). */
.drop-page .dp-fail { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 36px; }
.drop-page .dp-fail p { margin: 0; font-size: 15px; color: var(--muted); }

/* After a mint: what it made, big. */
.drop-page .dp-done { display: flex; flex-direction: column; gap: 18px; }
.drop-page .dp-done h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.drop-page .dp-done h2:focus { outline: none; }
.drop-page .dp-got { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.drop-page .dp-got.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.drop-page .dp-got.one { grid-template-columns: minmax(0, 1fr); }
.drop-page .dp-got-tok { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--ink); text-decoration: none; font-size: var(--t-s); font-weight: 500; }
.drop-page .dp-got-tok:hover span:last-child { text-decoration: underline; }
.drop-page .dp-got-art { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: var(--radius-s); box-shadow: 0 0 0 1px var(--tint-2); overflow: hidden; }
.drop-page .dp-got-art:empty { background: var(--tint); box-shadow: none; animation: pulse 1.2s ease-in-out infinite; }
.drop-page .dp-done .row-btns { margin: 0; }

/* Below: every token minted, then the details. */
.drop-page .dp-minted, .drop-page .dp-details { margin-top: 112px; }
.drop-page .dp-minted h2, .drop-page .dp-details h2 { margin: 0 0 24px; }
.drop-page .dp-toks { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 12px; }
.drop-page .dp-tok { display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 8px; background: var(--tint); border-radius: var(--radius-s); color: var(--ink); text-decoration: none; transition: transform .3s cubic-bezier(.32, .72, 0, 1), box-shadow .3s; }
@media (hover: hover) { .drop-page .dp-tok:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); } }
.drop-page .dp-tok-art { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border-radius: 9px; overflow: hidden; }
.drop-page .dp-tok-k { font-size: 13px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
/* Activity: a row a mint, sale or transfer, newest first: the token, what happened and to whom, the price and when. */
.drop-page .dp-activity { margin-top: 112px; }
.drop-page .dp-activity h2 { margin: 0 0 12px; }
.drop-page .dp-evs { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.drop-page .dp-ev { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--tint-2); }
.drop-page .dp-ev-art { width: 52px; height: 52px; display: grid; place-items: center; background: var(--tint); border-radius: 10px; overflow: hidden; }
.drop-page .dp-ev-art canvas.art { width: 100%; }
.drop-page .dp-ev p { margin: 0; }
.drop-page .dp-ev p + p { margin-top: 2px; font-size: var(--t-s); color: var(--muted); }
.drop-page .dp-ev-what { min-width: 0; }
.drop-page .dp-ev-what p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-page .dp-ev-what b { font-weight: 600; }
.drop-page .dp-ev-what span { color: var(--muted); }
.drop-page .dp-ev-side { text-align: right; font-variant-numeric: tabular-nums; }
.drop-page .dp-ev-price b { font-weight: 600; }
.drop-page .dp-ev-price span { font-size: var(--t-s); color: var(--muted); white-space: nowrap; }
.drop-page .dp-ev-price span:first-child { font-size: inherit; color: var(--ink); } /* ETH alone, with no dollar rate */
.drop-page .dp-ev-side a { color: var(--muted); text-decoration: none; }
.drop-page .dp-ev-side a:hover { color: var(--ink); text-decoration: underline; }
.drop-page .dp-evs-more { margin-top: 20px; }
.drop-page .dp-details .kv { gap: 0; max-width: 34rem; }
.drop-page .dp-details .kv div { padding: 13px 0; border-bottom: 1px solid var(--tint-2); }
.drop-page .dp-details .kv dd a { color: var(--ink); }
.drop-page .dp-details .kv dd b { font-weight: 600; }
.drop-page .dp-details .kv dd span { white-space: nowrap; }

/* While it loads. */
.drop-page .dp-skel { display: block; width: 50%; height: 18px; margin-top: 16px; border-radius: 9px; background: var(--tint-2); animation: pulse 1.2s ease-in-out infinite; }
.drop-page .dp-skel-h { width: 72%; height: 52px; margin-top: 0; border-radius: 14px; }
.drop-page .dp-buy > .dp-skel:first-child { margin-top: 36px; width: 30%; height: 32px; }

/* One column: the name, the plate, then the mint. */
@media (max-width: 980px) {
  /* The slim Mint bar (js/pages/drop.js stickyBar) stays up below the box too: room for it under the footer. */
  body:has(.sticky-mint) .site-foot { padding-bottom: calc(48px + 74px + env(safe-area-inset-bottom, 0px)); }
  .drop-page .dp-top { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; grid-template-areas: "head" "art" "buy"; max-width: 560px; margin-inline: auto; }
  .drop-page .dp-head { padding-top: 0; }
  .drop-page .dp-art { position: static; margin-top: 28px; }
  .drop-page .dp-frame { width: 100%; min-width: 0; }
  .drop-page .dp-price { margin-top: 20px; }
  .drop-page .dp-minted, .drop-page .dp-details, .drop-page .dp-activity { margin-top: 80px; }
}
@media (max-width: 640px) {
  .drop-page .dp-art { margin-top: 22px; }
  .drop-page .dp-frame { padding: 10px; border-radius: 18px; }
  .drop-page .dp-grid { gap: 4px; }
  .drop-page .dp-tile { border-radius: 4px; }
  .drop-page .dp-zoom { inset: 10px; border-radius: 12px; }
  .drop-page .dp-close { top: 10px; right: 10px; }
  .drop-page .dp-cap { margin-top: 12px; }
  .drop-page .dp-price { margin-top: 12px; }
  .drop-page .dp-price b { font-size: 28px; }
  .drop-page .dp-act { margin-top: 28px; }
  .drop-page .dp-minted, .drop-page .dp-details { margin-top: 64px; }
  .drop-page .dp-toks { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .drop-page .dp-tok { gap: 4px; padding: 3px 3px 5px; border-radius: 10px; }
  .drop-page .dp-tok-art { border-radius: 7px; }
  .drop-page .dp-tok-k { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .drop-page .dp-tile:hover, .drop-page .dp-tok:hover { transform: none; } }
