/* Guest upload page. Mobile-first, big tap targets, one clear job. */

.add-body {
  min-height: 100dvh;
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--purple) 45%, transparent), transparent 55%),
    var(--bg);
}

.add { max-width: 460px; margin: 0 auto; padding: 28px 20px 48px; position: relative; }

.add-head { position: relative; text-align: center; padding: 18px 6px 26px; animation: headIn .7s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes headIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.spark { position: absolute; inset: -20% 0 30%; filter: blur(46px); opacity: 0.5; z-index: -1; overflow: hidden; }
.spark .blob { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; mix-blend-mode: screen; }
.spark .b1 { background: var(--pink); left: -8%; top: 0; }
.spark .b2 { background: var(--gold); right: -6%; top: 20%; opacity: 0.7; }

.kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.add-title { font-size: clamp(34px, 12vw, 48px); font-weight: 800; margin: 8px 0 0; letter-spacing: -0.01em; }
.add-title b { color: var(--gold); font-style: italic; }
.add-sub { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 12px auto 0; max-width: 34ch; }

.panel { display: grid; gap: 16px; animation: headIn .7s cubic-bezier(0.16,1,0.3,1) 0.08s both; }

.field { display: grid; gap: 7px; }
.field-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field-label .opt { color: color-mix(in srgb, var(--muted) 70%, transparent); font-weight: 400; }
#name, #caption {
  width: 100%; padding: 14px 16px; font-size: 16px; color: var(--text);
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
#name::placeholder, #caption::placeholder { color: color-mix(in srgb, var(--muted) 65%, transparent); }

.drop {
  display: grid; justify-items: center; gap: 6px; text-align: center;
  padding: 30px 18px; border-radius: 18px; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--purple) 20%, transparent), var(--card));
  border: 1.5px dashed color-mix(in srgb, var(--pink) 55%, var(--line));
  transition: transform .12s ease, border-color .2s, box-shadow .25s;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--pink) 0%, transparent);
}
.drop:active { transform: scale(0.99); }
.drop.hot { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
.drop-icon {
  color: var(--pink);
  animation: floatIcon 3.2s ease-in-out infinite;
}
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.drop-main { font-size: 18px; font-weight: 700; }
.drop-hint { font-size: 13px; color: var(--muted); }

.queue { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.queue li { position: relative; aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.queue img { width: 100%; height: 100%; object-fit: cover; display: block; }
.queue li .bar { position: absolute; inset: auto 0 0 0; height: 4px; background: var(--gold); width: 0; transition: width .25s; }
.queue li.done .bar { width: 100% !important; background: #5ee6a8; }
.queue li .tick { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(9,4,14,0.45); color: #5ee6a8; opacity: 0; transition: opacity .3s; }
.queue li.done .tick { opacity: 1; }
.queue li.err { outline: 2px solid #ff6b6b; }
.queue li.err .bar { background: #ff6b6b !important; width: 100% !important; }

.uperr { margin: 0; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; text-align: center;
  background: rgba(255,107,107,0.14); border: 1px solid rgba(255,107,107,0.4); color: #ffb3b3; }

.send {
  width: 100%; border: 0; border-radius: 15px; padding: 16px; cursor: pointer;
  font-size: 17px; font-weight: 800; color: #241705;
  background: linear-gradient(180deg, var(--gold), color-mix(in srgb, var(--gold) 70%, var(--pink)));
  box-shadow: 0 10px 26px color-mix(in srgb, var(--pink) 40%, transparent);
  transition: transform .12s ease, opacity .2s;
}
.send:active { transform: translateY(1px) scale(0.995); }
.send[disabled] { opacity: 0.6; }

.fineprint { text-align: center; font-size: 12px; color: color-mix(in srgb, var(--muted) 80%, transparent); margin: 2px 0 0; }

.done { text-align: center; padding: 30px 12px; display: grid; gap: 12px; justify-items: center; animation: pop .5s cubic-bezier(0.16,1,0.3,1); }
.done-badge { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; color: #241705;
  background: linear-gradient(180deg, var(--gold), var(--pink)); box-shadow: 0 12px 30px color-mix(in srgb, var(--pink) 45%, transparent);
  animation: badgePop .7s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes badgePop {
  0% { transform: scale(0.4) rotate(-12deg); opacity: 0; }
  60% { transform: scale(1.08) rotate(3deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.done-title { font-size: 27px; font-weight: 800; margin: 0; }
.done-sub { color: var(--muted); margin: 0; }
.done-thumbs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 4px 0 2px; }
.done-thumbs span { width: 66px; height: 66px; border-radius: 11px; background-size: cover; background-position: center;
  box-shadow: 0 0 0 2px var(--gold), 0 4px 12px rgba(0,0,0,0.35); }
.more { margin-top: 8px; padding: 13px 22px; border-radius: 13px; font-size: 15px; font-weight: 700;
  background: var(--card); color: var(--text); border: 1px solid var(--line); cursor: pointer; }
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: none; opacity: 1; } }

.done-gallery, .panel-gallery { display: block; text-align: center; margin-top: 12px; color: var(--gold);
  text-decoration: none; font-weight: 700; font-size: 14px; }

.off { text-align: center; color: var(--muted); padding: 24px; }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 20; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .done, .done-badge, .add-head, .panel { animation: none; }
  .drop-icon { animation: none; }
}
