/* Boztik Deliver Experience 2.0 — locally hosted premium interaction layer */
:root {
  --deliver-lime: #a5ff57;
  --deliver-lime-soft: rgba(165,255,87,.13);
  --deliver-ink: #080b0e;
}
body {
  background:
    radial-gradient(ellipse at 50% -12%, rgba(142,255,61,.11), transparent 42%),
    radial-gradient(ellipse at 100% 48%, rgba(63,112,82,.08), transparent 36%),
    #07090c;
}
.deliver-page {
  width: min(1240px, calc(100% - 40px));
  padding-top: clamp(24px, 4vw, 54px);
  padding-bottom: 54px;
}
.deliver-brand img { filter: drop-shadow(0 0 18px rgba(142,255,61,.13)); }
.deliver-header-tag {
  border: 1px solid rgba(165,255,87,.22);
  background: linear-gradient(135deg, rgba(165,255,87,.10), rgba(255,255,255,.025));
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 8px 28px rgba(0,0,0,.18);
}
.deliver-card-refined {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(20,25,30,.97), rgba(10,13,17,.98));
  box-shadow: 0 28px 90px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.045);
}
.deliver-gallery-header { margin-bottom: 20px; }
.deliver-file-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 21px;
  background: linear-gradient(155deg, rgba(24,29,35,.98), rgba(12,15,19,.98));
  box-shadow: 0 18px 48px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.035);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.deliver-file-card:hover {
  border-color: rgba(165,255,87,.2);
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(0,0,0,.3), 0 0 28px rgba(142,255,61,.035);
}
.deliver-file-preview {
  overflow: hidden;
  border-radius: 16px;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.075), transparent 70%), #080b0e;
}
.deliver-file-preview img { display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1), filter .5s ease; }
.deliver-file-card:hover .deliver-file-preview img { transform: scale(1.012); filter: saturate(1.035); }
.deliver-file-eyebrow { color: #a5ff57; letter-spacing: .14em; font-weight: 800; }
.deliver-file-name { color: #f4f7f2; letter-spacing: -.018em; }
.deliver-file-basic-meta { color: #96a294; }
.deliver-file-download {
  min-height: 47px;
  border: 1px solid rgba(165,255,87,.28);
  border-radius: 12px;
  background: linear-gradient(110deg, rgba(165,255,87,.14), rgba(165,255,87,.07));
  color: #d9ffd0;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.deliver-file-download:hover { transform: translateY(-1px); border-color: rgba(165,255,87,.55); background: rgba(165,255,87,.17); }
.deliver-file-view { min-height: 47px; border-radius: 12px; }
.deliver-gallery-header h2 {
  letter-spacing: -.035em;
  font-size: clamp(1.55rem, 3vw, 2.1rem);
}
.deliver-primary-action-wrap { gap: 14px; }
.deliver-download-all {
  position: relative;
  isolation: isolate;
  min-height: 64px;
  border: 1px solid rgba(190,255,151,.5);
  border-radius: 17px;
  background: linear-gradient(115deg, #a5ff57 0%, #83e83b 48%, #baff83 100%);
  color: #091006;
  box-shadow: 0 12px 34px rgba(142,255,61,.16), inset 0 1px rgba(255,255,255,.48);
  font-weight: 850;
  letter-spacing: -.015em;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s ease, filter .22s ease;
}
.deliver-download-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(142,255,61,.23), inset 0 1px rgba(255,255,255,.5);
  filter: saturate(1.08);
}
.deliver-download-all:focus-visible,
[data-download]:focus-visible {
  outline: 3px solid rgba(165,255,87,.8);
  outline-offset: 4px;
}
.deliver-download-all:disabled { filter: saturate(.55); transform: none; }
.boztik-files-support-layout { gap: clamp(18px, 3vw, 34px); }

/* Compact optional support note appears only after the first successful download. */
.deliver-support-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 680px);
  margin: 12px auto 4px;
  padding: 15px 16px;
  border: 1px solid rgba(165,255,87,.17);
  border-radius: 16px;
  background: linear-gradient(115deg, rgba(165,255,87,.075), rgba(255,255,255,.025) 55%, rgba(255,255,255,.015));
  box-shadow: 0 12px 34px rgba(0,0,0,.2), inset 0 1px rgba(255,255,255,.035);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.deliver-support-nudge[hidden] { display: none !important; }
.deliver-support-nudge.is-visible { opacity: 1; transform: translateY(0); }
.deliver-support-nudge__copy { min-width: 0; }
.deliver-support-nudge__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--deliver-lime);
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.deliver-support-nudge__copy strong { display: block; color: #f5f8f2; font-size: .91rem; }
.deliver-support-nudge__copy p { margin: 4px 0 0; color: #aeb9ad; font-size: .78rem; line-height: 1.45; }
.deliver-support-nudge__actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.deliver-support-nudge__actions a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 11px; border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px; color: #edf4e9; background: rgba(255,255,255,.045);
  font-size: .76rem; font-weight: 750; text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.deliver-support-nudge__actions a:hover { border-color: rgba(165,255,87,.4); background: rgba(165,255,87,.08); }
.deliver-support-nudge__actions button {
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  color: #aab4a8; background: transparent; font-size: 1.25rem; cursor: pointer;
}
.deliver-support-nudge__actions button:hover { color: #fff; background: rgba(255,255,255,.08); }

/* Click reaction overlays. The engine itself and all styling are served by Boztik. */
#deliver-animation-layer { z-index: 350; }
.deliver-reaction-canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.deliver-reaction-caption {
  position: fixed; z-index: 370; top: clamp(90px, 19vh, 180px); left: 50%;
  display: grid; gap: 6px; width: min(88vw, 480px); padding: 17px 22px;
  border: 1px solid rgba(255,255,255,.16); border-radius: 17px;
  background: linear-gradient(135deg, rgba(12,16,19,.92), rgba(20,25,29,.82));
  box-shadow: 0 22px 70px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.08);
  text-align: center; backdrop-filter: blur(16px);
  opacity: 0; transform: translate(-50%, 16px) scale(.96);
  transition: opacity .35s ease, transform .55s cubic-bezier(.16,1,.3,1);
}
.deliver-reaction-caption.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }
.deliver-reaction-caption.is-leaving { opacity: 0; transform: translate(-50%, -10px) scale(.98); }
.deliver-reaction-caption strong { color: #fff; font-size: clamp(1rem, 3vw, 1.35rem); font-weight: 900; letter-spacing: .1em; }
.deliver-reaction-caption span { color: #c1c9c0; font-size: .82rem; line-height: 1.45; }
.deliver-reaction-caption--runaway { border-color: rgba(165,255,87,.42); }
.deliver-reaction-caption--runaway strong { color: #b7ff7a; }
.deliver-reaction-caption--haunted { border-color: rgba(174,89,255,.42); box-shadow: 0 0 45px rgba(112,44,150,.18), 0 22px 70px rgba(0,0,0,.5); }
.deliver-reaction-caption--haunted strong { color: #d9b5ff; text-shadow: 0 0 20px rgba(174,89,255,.42); }
.deliver-reaction-caption--celebrate,
.deliver-reaction-caption--birthday,
.deliver-reaction-caption--achievement { border-color: rgba(255,211,119,.42); }
.deliver-reaction-caption--celebrate strong,
.deliver-reaction-caption--birthday strong,
.deliver-reaction-caption--achievement strong { color: #ffe2a0; text-shadow: 0 0 24px rgba(255,194,82,.25); }
.deliver-reaction-caption--romance { border-color: rgba(255,160,190,.36); }
.deliver-reaction-caption--romance strong { color: #ffc4d7; }
.deliver-reaction-caption--gratitude strong,
.deliver-reaction-caption--reveal strong { color: #c6ff9e; }

.deliver-reaction-button--runaway { animation: deliverRunaway 1.1s cubic-bezier(.2,.8,.2,1) both; }
.deliver-reaction-button--haunted { animation: deliverHaunted 1.05s ease both; }
.deliver-reaction-button--celebrate,
.deliver-reaction-button--birthday { animation: deliverCelebrate .95s cubic-bezier(.16,1,.3,1) both; }
.deliver-reaction-button--romance { animation: deliverRomance 1.05s cubic-bezier(.16,1,.3,1) both; }
.deliver-reaction-button--achievement { animation: deliverAchievement .95s cubic-bezier(.16,1,.3,1) both; }
.deliver-reaction-button--gratitude,
.deliver-reaction-button--reveal { animation: deliverReveal .9s ease both; }
@keyframes deliverRunaway {
  0%,100% { transform: translate3d(0,0,0) rotate(0) scale(1); filter: none; }
  16% { transform: translate3d(34px,-18px,0) rotate(4deg) scale(.96); }
  34% { transform: translate3d(-42px,-8px,0) rotate(-5deg) scale(.94); }
  52% { transform: translate3d(28px,14px,0) rotate(3deg) scale(.97); }
  70% { transform: translate3d(-12px,-5px,0) rotate(-1deg) scale(1.025); }
  86% { transform: translate3d(4px,0,0) scale(1.01); }
}
@keyframes deliverHaunted {
  0%,100% { filter: none; transform: translateX(0); }
  15%,45%,72% { filter: brightness(1.55) hue-rotate(22deg); transform: translateX(-2px); }
  30%,60% { filter: brightness(.65) hue-rotate(-18deg); transform: translateX(3px); }
}
@keyframes deliverCelebrate {
  0%,100% { transform: translateY(0) scale(1); box-shadow: 0 12px 34px rgba(142,255,61,.16); }
  42% { transform: translateY(-4px) scale(1.035); box-shadow: 0 0 0 8px rgba(255,211,119,.12), 0 18px 46px rgba(255,190,80,.24); }
}
@keyframes deliverRomance {
  0%,100% { transform: scale(1); filter: none; }
  38% { transform: scale(1.035); filter: drop-shadow(0 0 15px rgba(255,155,190,.35)); }
}
@keyframes deliverAchievement {
  0%,100% { transform: translateY(0); }
  45% { transform: translateY(-5px); filter: drop-shadow(0 0 18px rgba(255,211,119,.4)); }
}
@keyframes deliverReveal {
  0%,100% { filter: none; }
  45% { filter: brightness(1.2) drop-shadow(0 0 14px rgba(165,255,87,.28)); }
}

/* Command Centre sound controls */
.dash-animation-sound-option {
  display: flex; align-items: center; gap: 11px; margin-top: 13px; padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.09); border-radius: 12px;
  background: rgba(255,255,255,.025); cursor: pointer;
}
.dash-animation-sound-option input { width: 17px; height: 17px; accent-color: #a5ff57; flex: 0 0 auto; }
.dash-animation-sound-option span { display: grid; gap: 3px; }
.dash-animation-sound-option strong { color: #e9f0e5; font-size: .84rem; }
.dash-animation-sound-option small { color: #9aa69a; font-size: .74rem; line-height: 1.4; }

body.is-photoshop-battles .deliver-card-refined {
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 28px 90px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.05);
}
body.is-photoshop-battles .deliver-download-all {
  background: linear-gradient(115deg, #a5ff57, #78df38 55%, #baff83);
}
@media (max-width: 700px) {
  .deliver-page { width: min(100% - 24px, 1240px); padding-top: 20px; }
  .deliver-card-refined { border-radius: 19px; }
  .deliver-support-nudge { align-items: flex-start; flex-direction: column; padding: 13px; }
  .deliver-support-nudge__actions { width: 100%; }
  .deliver-support-nudge__actions a { flex: 1; justify-content: center; }
  .deliver-reaction-caption { top: 14vh; }
}
@media (prefers-reduced-motion: reduce) {
  .deliver-reaction-button--runaway,
  .deliver-reaction-button--haunted,
  .deliver-reaction-button--celebrate,
  .deliver-reaction-button--birthday,
  .deliver-reaction-button--romance,
  .deliver-reaction-button--achievement,
  .deliver-reaction-button--gratitude,
  .deliver-reaction-button--reveal { animation: none !important; }
  .deliver-reaction-caption { transition: none; transform: translate(-50%,0); }
}


.deliver-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.dash-animation-preview-stage .deliver-reaction-caption {
  position: absolute;
  top: 18px;
  left: 50%;
  width: min(90%, 440px);
}
.dash-animation-preview-stage .deliver-reaction-canvas {
  position: absolute;
  inset: 0;
}
.deliver-reaction-preview-wrap {
  position: absolute;
  z-index: 4;
  top: 72%;
  left: 50%;
  width: min(280px, 82%);
  transform: translate(-50%, -50%);
}
.deliver-reaction-preview-wrap .deliver-download-all { width: 100%; }

.deliver-reaction-dodge { animation: deliverDodge 720ms cubic-bezier(.16,1,.3,1) both; }
@keyframes deliverDodge {
  0%,100% { transform: translate3d(0,0,0) rotate(0); }
  24% { transform: translate3d(34px,-12px,0) rotate(3deg); }
  52% { transform: translate3d(-26px,-5px,0) rotate(-2deg); }
  76% { transform: translate3d(8px,2px,0) rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .deliver-reaction-dodge { animation: none !important; }
}
