/* After Dark drops: the drops dialog, the photo viewer, the head button and the owner-mode badge.
   Builds on the chat app's tokens and its .dialog / .dialog-card / .send-btn styles in index.html. */

.drops-card { width: min(760px, 100%); max-height: min(88vh, 900px); overflow: auto }
.drops-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px }
.drops-head h2 { margin: 0 }
.drops-scope { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line) }
.drops-scope button { border: 0; background: none; color: var(--muted-2); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer }
.drops-scope button[aria-pressed="true"] { background: var(--surface-2); color: var(--fg) }
.drops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px }
.drops-empty { margin: 0; padding: 28px 16px; text-align: center; color: var(--muted-2); border: 1px dashed var(--line-2); border-radius: 16px }
.drop { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface) }
.drop-cover { position: relative; aspect-ratio: 3 / 4; background: var(--plum); border: 0; padding: 0; cursor: pointer; display: block; width: 100% }
.drop-cover img { width: 100%; height: 100%; object-fit: cover; display: block }
.drop-cover .drop-lock { position: absolute; inset: auto 10px 10px auto; width: 34px; height: 34px; border-radius: 50%; background: rgba(18, 15, 23, .72); color: var(--gold); display: grid; place-items: center }
.drop-cover .drop-count { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(18, 15, 23, .72); color: var(--fg); font-size: 12px; font-weight: 700 }
.drop-tag { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 999px; border: 1px dashed var(--gold); background: rgba(18, 15, 23, .72); color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase }
.drop-body { display: flex; flex-direction: column; gap: 4px; padding: 12px }
.drop-who { margin: 0; font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .08em }
.drop-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.2 }
.drop-blurb { margin: 0; font-size: 13px; color: var(--muted-2); line-height: 1.4 }
.drop-body .send-btn { height: 42px; margin-top: 8px; font-size: 14px; width: 100% }
.drop-body .send-btn.ghost { background: var(--surface-2); color: var(--fg) }

/* The head button next to After Dark. */
.pill-lock .drops-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: #120F17; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center }
@media (max-width: 760px) {
  .pill-lock .drops-badge { position: absolute; top: -4px; right: -4px }
  #btn-drops { position: relative }
}

/* Photo viewer. */
.dialog.drops-viewer { z-index: 80; background: rgba(6, 4, 9, .94); padding: 0 }
.drops-viewer figure { margin: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 56px 16px 72px }
.drops-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px }
.drops-viewer .viewer-bar { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; color: var(--fg); font-weight: 700 }
.drops-viewer .viewer-nav { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 12px }
.drops-viewer button { height: 44px; min-width: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(30, 25, 36, .9); color: var(--fg); font: inherit; font-weight: 700; cursor: pointer }
.drops-viewer button:focus-visible, .drop-cover:focus-visible, .drops-scope button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px }

/* Owner mode: a quiet reminder that the simulations are on in this browser. */
.owner-badge { position: fixed; left: 12px; bottom: 12px; z-index: 90; display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; border: 1px dashed var(--gold, #FFB23F); background: rgba(18, 15, 23, .92); color: var(--gold, #FFB23F); font: 700 12px/1 "Manrope", system-ui, sans-serif }
.owner-badge a { color: var(--fg, #F5EFE8); text-decoration: none; padding: 5px 9px; border-radius: 999px; background: rgba(245, 239, 232, .08) }
/* Inside the chat app it would cover the composer; the After Dark dialogs say "owner mode" there. */
body:has(#vr-app:not([hidden])) .owner-badge { display: none }

.ad-price { margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1 }
.ad-price small { font-family: var(--body); font-size: 14px; font-weight: 600; color: var(--muted-2) }
.ad-sim { align-self: flex-start; margin: 0; padding: 3px 9px; border-radius: 999px; border: 1px dashed var(--gold); color: var(--gold); font-size: 12px; font-weight: 700 }

@media (prefers-reduced-motion: reduce) { .drops-viewer img { transition: none } }
