:root {
  --accent: #ff65a3;
  --accent-2: #ff7eb3;
  --bg-soft: #F8F6F4;
  --text: #4A4A4A;
  --muted: #999999;
  --shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.home-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: transparent;
  padding: 24px 16px;
  box-sizing: border-box;
}
.home-card {
  width: 280px;
  max-width: 90vw;
  border-radius: 18px;
  background: var(--bg-soft);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow);
  padding: 15px;
  margin: 16px auto;
  text-align: center;
  box-sizing: border-box;
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.home-card h1 {
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--text);
  text-shadow: none;
}
.drag-handle {
  cursor: move;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.home-page input[type="file"] {
  display: none;
}
.home-page .file-label {
  display: inline-block;
  padding: 12px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background-color: var(--bg-soft);
  color: #666666;
  cursor: pointer;
  transition: transform .15s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
  width: 100%;
  text-align: center;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  box-sizing: border-box;
}
.home-page .file-label:hover {
  transform: translateY(-1px);
  background-color: #fff;
  border-color: #ccc;
}
.home-page .file-label.drag-over {
  background-color: #eef2ff;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(255,101,163,0.25);
}
.home-page button {
  background-color: #8EC691;
  color: white;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  transition: transform .1s ease, box-shadow .2s ease, filter .2s ease;
  width: 100%;
  box-shadow: 0 6px 16px rgba(142,198,145,0.35);
  margin-bottom: 12px;
  box-sizing: border-box;
}
.home-page button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.home-page button:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(40,167,69,0.25);
}
.home-page .upload-count {
  display: block;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin-top: 8px;
  text-align: center;
}
.home-page .upload-count:first-of-type {
  margin-top: 12px;
}
.home-page .donate {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: opacity 6s ease-in-out;
}
.home-page .donate.fade-out {
  opacity: 0;
}
.home-page .donate img {
  width: 240px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.home-page .donate p {
  color: black;
  margin: 0 0 8px;
}
@media (max-width: 480px) {
  .home-card {
    padding: 22px 18px;
    border-radius: 16px;
  }
  .home-page .donate img {
    width: 200px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}
.click-ripple {
  position: fixed;
  pointer-events: none;
  border: 2px solid rgba(255,255,255,0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: .9;
  animation: ripple .45s ease-out forwards;
  z-index: 9999;
}
@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(8);
    opacity: 0;
  }
}
.click-text {
  position: fixed;
  pointer-events: none;
  font-weight: 700;
  will-change: transform, opacity;
  transform: translate(-50%, -50%);
  animation: floatText .8s ease-out forwards;
  z-index: 9999;
}
@keyframes floatText {
  to {
    transform: translate(calc(-50% + var(--tx, 0px)), calc(-50% - 120px)) rotate(var(--rot, 0deg)) scale(.86);
    opacity: 0;
  }
}
.click-emoji {
  position: fixed;
  pointer-events: none;
  will-change: transform, opacity;
  transform: translate(-50%, -50%) scale(1);
  z-index: 9999;
}
.click-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}
