:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: light;
  font-size: 16px;
  --pink: #ff5c8d;
  --pink-soft: #ffd5e4;
  --card: rgba(255, 255, 255, 0.85);
  --text: #2c0f1c;
  --muted: rgba(44, 15, 28, 0.75);
  --border: rgba(255, 255, 255, 0.4);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  background: #12030b;
  color: var(--text);
}

.slideshow,
.slideshow-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.slideshow {
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(255, 92, 141, 0.12), transparent 60%),
    radial-gradient(circle at bottom, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.65));
}

.slideshow.is-empty {
  background: linear-gradient(135deg, #14050d, #250816 60%, #14050d);
}

.slideshow img {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: cover;
  filter: blur(8px) saturate(1.05);
  transform: scale(1.05);
  opacity: 0;
  transition: opacity 900ms ease;
}

.slideshow img.active {
  opacity: 1;
}

.slideshow-overlay {
  z-index: -1;
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.45), rgba(18, 3, 11, 0.65));
}

.upload-card {
  width: min(420px, 92vw);
  padding: clamp(2rem, 6vw, 2.75rem);
  border-radius: 24px;
  background: var(--card);
  backdrop-filter: blur(16px);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-family: Georgia, serif;
  color: var(--text);
}

#hero-heading {
  font-family: 'Great Vibes', 'Brush Script MT', 'Segoe Script', cursive;
  font-weight: 400;
}

.tagline {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.5;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.picker {
  border: 2px dashed var(--border);
  border-radius: 18px;
  padding: 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  cursor: pointer;
  transition: border-color 200ms ease, transform 200ms ease;
}

.picker span:first-child {
  font-weight: 600;
  font-size: 1.05rem;
}

.picker-hint {
  font-size: 0.9rem;
  color: var(--muted);
}

.picker:hover {
  border-color: var(--pink);
  transform: translateY(-1px);
}

.file-count {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pink);
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.file-row {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.file-row strong {
  font-size: 0.95rem;
}

.file-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.progress {
  width: 100%;
  height: 6px;
  background: var(--pink-soft);
  border-radius: 999px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pink);
  border-radius: inherit;
  transition: width 200ms linear;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 18px 45px rgba(255, 92, 141, 0.35);
  transition: opacity 200ms ease, transform 200ms ease;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.primary-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.limit-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
}

.status {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.35rem;
}

.status.idle {
  color: var(--muted);
}

.status.ready {
  color: #008e5b;
}

.status.uploading {
  color: #c75100;
}

.status.error {
  color: #c00000;
}

.status.success {
  color: #007a3d;
}

.trust-note {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.75rem;
}

@media (max-width: 480px) {
  .upload-card {
    padding: 1.75rem;
  }

  .picker {
    padding: 1rem;
  }
}
.primary-btn:focus-visible {
  outline: 3px solid rgba(255, 92, 141, 0.4);
  outline-offset: 2px;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.album-body {
  min-height: 100vh;
  background: #12030b;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.album-wrapper {
  width: min(1100px, 95vw);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}

.album-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

.gallery-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.filter-btn {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.04);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font: inherit;
  cursor: pointer;
  transition: all 150ms ease;
}

.filter-btn.active {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  box-shadow: 0 10px 20px rgba(255, 92, 141, 0.25);
}

.filter-btn:hover {
  transform: translateY(-1px);
}

.album-body .tagline {
  margin-bottom: 0.25rem;
}

.gallery-status {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  background: #000;
}

.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.gallery-card footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}

.album-body .primary-btn {
  min-width: 180px;
}

.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 20;
}

.welcome-overlay[hidden] {
  display: none;
}

.welcome-card {
  width: min(420px, 92vw);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.welcome-card input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.85rem 1.1rem;
  margin: 0.75rem 0 1rem;
  font-size: 1rem;
}

.welcome-error {
  color: #c00000;
  font-size: 0.85rem;
  min-height: 1.2em;
  margin: 0;
}

progress { width: 100%; height: 8px; accent-color: var(--pink); }
#access-code { padding: 0.85rem; border: 1px solid var(--muted); border-radius: 12px; font: inherit; }
[hidden] { display: none !important; }
#load-more { margin-top: 1.5rem; }
.gallery-card footer { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
