:root {
  --gummi-pink: #ff5c8a;
  --gummi-pink-dark: #e04370;
  --gummi-bg: #1c1030;
  --gummi-text: #f4eefb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 50% 30%, #2a1650, var(--gummi-bg));
  color: var(--gummi-text);
}

.stage {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  text-align: center;
}

.title {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gummigoo-btn {
  font: inherit;
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 700;
  color: #fff;
  background: var(--gummi-pink);
  border: none;
  border-radius: 999px;
  padding: 0.9rem 2.4rem;
  cursor: pointer;
  box-shadow: 0 8px 0 var(--gummi-pink-dark), 0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
}

.gummigoo-btn:hover {
  background: #ff70a0;
}

/* Squish down when pressed or keyboard-activated */
.gummigoo-btn:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 var(--gummi-pink-dark), 0 4px 10px rgba(0, 0, 0, 0.35);
}

.gummigoo-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.status {
  margin: 0;
  min-height: 1.5em;
  font-size: 1.1rem;
  opacity: 0.95;
}

/* Random image slot. `hidden` keeps it out of flow until the first click.
   Fixed, responsive footprint + object-fit:contain so every image occupies the
   same box regardless of its own aspect ratio — the centered layout doesn't
   jump around as differently-sized pictures load in on each press. */
.gummigoo-img {
  display: block;
  width: min(90vw, 20rem);
  height: min(90vw, 20rem);
  max-height: 50vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.gummigoo-img[hidden] {
  display: none;
}

/* Secondary, low-emphasis reset control */
.reset-btn {
  font: inherit;
  font-size: 0.95rem;
  color: var(--gummi-text);
  background: transparent;
  border: 1px solid rgba(244, 238, 251, 0.35);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.reset-btn:hover {
  opacity: 1;
  border-color: rgba(244, 238, 251, 0.7);
}

.reset-btn:active {
  transform: translateY(1px);
}

.reset-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
