:root {
  --bg: #0f1115;
  --bg-2: #181b22;
  --text: #eceef3;
  --muted: #9aa1b2;
  --accent: #7c9cff;
  --accent-2: #b48cff;
}

* { box-sizing: border-box; margin: 0; }

html, body { height: 100%; }

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  padding: 16px;
  gap: 14px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, #1e2440 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 110%, #2a1e40 0%, transparent 60%),
    var(--bg);
}

header { display: flex; justify-content: center; }

.badge {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
}
.badge b { color: var(--text); font-weight: 600; }

main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#pic {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: var(--bg-2);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
#pic.fading { opacity: 0; transform: scale(0.985); }

#msg { color: var(--muted); text-align: center; padding: 0 20px; }

footer { display: flex; justify-content: center; }

button {
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  padding: 14px 34px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(124, 156, 255, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(124, 156, 255, 0.45); }
button:active { transform: translateY(0) scale(0.98); }
button:disabled { filter: grayscale(1); opacity: 0.5; cursor: not-allowed; }

@media (max-width: 600px) {
  body { padding: 12px; gap: 10px; }
  #pic { border-radius: 12px; }
  button { width: 100%; }
}