* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center;
  font-family: system-ui, sans-serif;
  background: linear-gradient(135deg, #ff9a3c, #ff4f6d);
  color: #fff; padding: 16px;
}
main { text-align: center; width: 100%; max-width: 520px; }
h1 { font-size: clamp(2.2rem, 9vw, 4rem); margin: 0 0 1.5rem; text-shadow: 0 3px 0 rgba(0,0,0,.2); }

.meme { margin: 0; }
.panel {
  background: #1d1d1d; border-radius: 12px; padding: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
.caption {
  font-family: Impact, "Anton", "Arial Black", sans-serif;
  text-transform: uppercase; font-size: clamp(1rem, 4.5vw, 1.5rem);
  margin: .3rem 0; letter-spacing: .03em;
  -webkit-text-stroke: 1px #000; text-shadow: 2px 2px 0 #000;
}
.scene {
  position: relative; height: 200px; margin: .5rem 0; border-radius: 8px;
  background: linear-gradient(#4a2a12, #7a3b10);
  display: flex; align-items: flex-end; justify-content: center; gap: .5rem;
  overflow: hidden;
}
.dog { font-size: 4.5rem; }
.coffee { font-size: 2.5rem; margin-bottom: .6rem; }
.fire {
  position: absolute; top: 10px; left: 0; right: 0; font-size: 2.6rem;
  animation: flicker 0.6s infinite alternate;
}
@keyframes flicker { from { transform: scale(1); opacity: .85; } to { transform: scale(1.08); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fire { animation: none; } }
figcaption { margin-top: 1rem; opacity: .9; font-weight: 600; }
